/* GS Concept — mise en scène de la page À propos. */
:root {
  --gp-ease: cubic-bezier(.2, .8, .2, 1);
  --gp-spring: cubic-bezier(.34, 1.56, .64, 1);
  --gp-accent-clair: #65e082;
}

body[data-page="a-propos"] { overflow-x: clip; }
.gp-section { position: relative; overflow: hidden; }
.gp-accent-dark,
.fond-sombre .gp-accent-dark { color: var(--gp-accent-clair) !important; }

/* Apparitions posées par le JS uniquement : sans JS, le contenu reste visible. */
[data-gp-reveal] {
  transition: opacity .8s var(--gp-ease), transform .9s var(--gp-ease), filter .8s ease;
}
[data-gp-reveal].gp-hidden { opacity: 0; transform: translateY(34px); filter: blur(5px); }
[data-gp-reveal="left"].gp-hidden { transform: translateX(-44px); }

/* Hero : profondeur très légère, sans balayage lumineux sur la photo. */
.gp-hero-media { transform: scale(1.035); transition: transform 1.4s var(--gp-ease); }
.gp-hero.gp-ready .gp-hero-media { transform: scale(1); }

/* Photo lisible : le voile ne sert que le texte, en bas à gauche. */
.gp-hero-voile {
  background:
    linear-gradient(0deg, rgba(var(--overlay-rgb), .86) 0%, rgba(var(--overlay-rgb), .5) 34%, rgba(var(--overlay-rgb), 0) 68%),
    linear-gradient(90deg, rgba(var(--overlay-rgb), .42) 0%, rgba(var(--overlay-rgb), 0) 55%);
}

/* Bloc histoire et diaporama manuel. */
.gp-story-visual::before {
  content: "";
  position: absolute;
  inset: -16px 16px 16px -16px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 32px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  transform: translate(-5px, -5px);
  transition: transform .7s var(--gp-ease);
}
.gp-story-visual:hover::before { transform: translate(-10px, -10px); }
.gp-slides { box-shadow: 0 28px 60px -34px rgba(0, 45, 12, .48); }
.gp-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity .65s ease, transform 1.1s var(--gp-ease);
  pointer-events: none;
}
.gp-slide.gp-active { opacity: 1; transform: scale(1); pointer-events: auto; }
.gp-slide-controls {
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.gp-slide-arrow,
.gp-slide-dot {
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(10, 30, 15, .72);
  color: #fff;
  box-shadow: 0 5px 18px rgba(0,0,0,.22);
  cursor: pointer;
}
.gp-slide-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font: 700 20px/1 sans-serif;
}
.gp-slide-dots { display: flex; gap: 7px; }
.gp-slide-dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; }
.gp-slide-dot[aria-current="true"] { background: var(--gp-accent-clair); border-color: var(--gp-accent-clair); }
.gp-slide-arrow:focus-visible,
.gp-slide-dot:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Bandeau d'appel : photo de chantier nette à gauche, voile derrière le texte seulement. */
.gp-cta-voile {
  background: linear-gradient(90deg, rgba(var(--overlay-rgb), .04) 0%, rgba(var(--overlay-rgb), .1) 30%, rgba(var(--overlay-rgb), .86) 54%, rgb(var(--overlay-rgb)) 78%);
}

/* Carrousel de chantiers : photos seules, sans autoplay (flèches, jauge, glisser au doigt).
   3 visibles dès 980 px, 2 dès 640 px, 1 en dessous — même rendu que « Nos derniers projets » de l'accueil. */
.gp-car-wrap { max-width: 1240px; margin: 0 auto; }
.gp-car-nav { display: flex; justify-content: flex-end; gap: 10px; margin: 0 auto 20px; padding: 0 10px; }
.gp-car-btn {
  width: 48px; height: 48px; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  border: 1.5px solid var(--bord); background: var(--carte); color: var(--titre);
  transition: transform .3s var(--gp-ease), background .3s, box-shadow .3s;
}
.gp-car-next { border-color: var(--accent); background: var(--accent); color: var(--sur-accent); }
.gp-car-btn:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 10px 22px -12px rgba(0, 45, 12, .5); }
.gp-car-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.gp-car-view { overflow: hidden; touch-action: pan-y; }
.gp-car-track { display: flex; transition: transform .7s cubic-bezier(.65, 0, .35, 1); }
.gp-car-slide { flex: 0 0 33.333%; padding: 0 10px; box-sizing: border-box; }
.gp-car-card { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--carte); box-shadow: 0 24px 50px -34px rgba(0, 45, 12, .48); }
.gp-car-card img { display: block; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .7s var(--gp-ease); -webkit-user-drag: none; user-select: none; }
.gp-car-slide:hover .gp-car-card img { transform: scale(1.045); }
.gp-car-gauge { margin: 30px 10px 0; height: 3px; background: var(--bord); border-radius: 3px; overflow: hidden; }
.gp-car-fill { height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .7s cubic-bezier(.65, 0, .35, 1); }
@media (max-width: 979px) { .gp-car-slide { flex-basis: 50%; } }
@media (max-width: 639px) { .gp-car-slide { flex-basis: 100%; padding: 0 4px; } .gp-car-card { aspect-ratio: 4 / 3; } }

/* Les cartes se dessinent au défilement. */
.gp-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 45, 12, .04);
}
.gp-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-fonce), var(--gp-accent-clair));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--gp-ease) .2s;
}
.gp-in .gp-card::after,
.gp-card:hover::after { transform: scaleX(1); }
.gp-card:hover { box-shadow: 0 28px 50px -28px rgba(0, 45, 12, .52); }
.gp-card > span svg * {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.25s var(--gp-ease) .2s;
}
.gp-in .gp-card > span svg * { stroke-dashoffset: 0; }
.gp-counter { display: inline-block; min-width: 1.3em; font-weight: 800; color: var(--accent-texte); }

.gp-why::before {
  content: "";
  position: absolute;
  top: -240px;
  right: -160px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .12;
  filter: blur(110px);
}
.gp-why .gp-card { background: rgba(255,255,255,.07) !important; border-color: rgba(255,255,255,.18) !important; }
.gp-why .gp-card h3 { color: #fff !important; }
.gp-why .gp-card p { color: rgba(255,255,255,.82) !important; }
.gp-why .gp-card > span { background: rgba(101,224,130,.14) !important; color: var(--gp-accent-clair) !important; }

.gp-cta-media { transform: scale(1.04); transition: transform 1.4s var(--gp-ease); }
.gp-cta.gp-in .gp-cta-media { transform: scale(1); }

@media (max-width: 640px) {
  .gp-section { padding: 68px 16px !important; }
  .gp-story-grid { padding: 0 !important; gap: 46px !important; }
  .gp-story-visual::before { inset: -10px 10px 10px -10px; }
  .gp-car-btn { width: 44px; height: 44px; }
  .gp-cta-voile { background: linear-gradient(0deg, rgb(var(--overlay-rgb)) 0%, rgba(var(--overlay-rgb), .9) 55%, rgba(var(--overlay-rgb), .25) 100%); }
  .gp-hero-voile { background: linear-gradient(0deg, rgba(var(--overlay-rgb), .88) 0%, rgba(var(--overlay-rgb), .5) 45%, rgba(var(--overlay-rgb), 0) 80%); }
  .gp-slide-controls { right: 10px; bottom: 10px; left: 10px; }
  .gp-slide-arrow { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-gp-reveal], .gp-hero-media, .gp-slide, .gp-card, .gp-card::after, .gp-car-track, .gp-car-fill, .gp-car-card img,
  .gp-card > span svg *, .gp-story-visual::before, .gp-cta-media {
    animation: none !important;
    transition: none !important;
  }
  [data-gp-reveal].gp-hidden { opacity: 1 !important; transform: none !important; filter: none !important; }
  .gp-story-visual:hover::before { transform: translate(-5px, -5px); }
  .gp-card > span svg * { stroke-dashoffset: 0; }
}
