/* ==========================================================================
   DEY'S SMILE : feuille de style principale
   Palette : vert #86BB46 (marque) · jaune #FAAB04 (accent) · encre #16240F
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

:root {
  --green: #86bb46;
  --green-600: #6da232;
  --green-700: #55832a;
  --green-tint: #f3f8ea;
  --yellow: #faab04;
  --ink: #16240f;
  --ink-soft: #24361a;
  --text: #4c5a41;
  --line: #e2e9d8;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(22, 36, 15, 0.08);
  --shadow-lg: 0 20px 50px rgba(22, 36, 15, 0.14);
  --font-heading: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-serif: "Playfair Display", serif;
  --handdrawn-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* `clip` et non `hidden` : `hidden` crée un conteneur de défilement qui
   neutralise tout `position: sticky` de la page (cf. carte des réalisations). */
html { scroll-behavior: smooth; overflow-x: clip; scrollbar-gutter: stable; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 1rem;
  overflow-x: clip; /* voir le commentaire sur html ci-dessus */
}

@media (min-width: 681px) {
  body { zoom: 0.9; }
}


img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

section { scroll-margin-top: 86px; }

.section { padding: 96px 0; }
.section--soft { background: var(--green-tint); }
.section--dark { background: var(--ink); }

/* ---- Titres de section ---- */
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 10px;
}

h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h2 span { color: var(--green); }

.section__head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section__lead { margin-top: 14px; }

/* ---- Boutons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(134, 187, 70, 0.4);
}
.btn--primary:hover { background: var(--green-600); }

.btn--outline {
  border: 2px solid var(--line);
  color: var(--ink);
}
.btn--outline:hover { border-color: var(--green); color: var(--green-600); }

.btn--light {
  background: var(--white);
  color: var(--ink);
}

.btn--whatsapp {
  background: #0f7a41;
  color: var(--white);
}
.btn--whatsapp svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }

/* ---- SVG par défaut (icônes au trait) ---- */
svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ==========================================================================
   En-tête (flottant, transparent au-dessus du hero)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header--scrolled {
  background: rgba(22, 36, 15, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
  transition: padding 0.3s ease;
}

.header--scrolled .header__inner {
  padding: 8px 0;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 52px; height: auto; transition: width 0.3s ease; }

.header--scrolled .brand__logo {
  width: 40px;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.02em;
}
.brand__text small { font-size: 0.72rem; color: #d9ecbc; font-weight: 600; }

/* Nav desktop */
.nav__desktop { display: flex; align-items: center; gap: 8px; }

/* Nav mobile : caché par défaut sur desktop */
.nav { display: none; }

.nav__link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--white);
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s ease, color 0.25s ease;
}

.nav__link:hover { background: rgba(255, 255, 255, 0.26); }

.nav__link--active {
  background: var(--white);
  color: var(--ink);
}

.nav__cta { padding: 11px 22px; margin-left: 14px; }

.header__mobile { display: none; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.burger span {
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger--open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger--open span:nth-child(2) { opacity: 0; }
.burger--open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Hero (plein écran, image de fond, wordmark géant)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  overflow: hidden;
  color: var(--white);
}

@media (min-width: 681px) {
  .hero {
    min-height: calc(100vh / 0.9);
    min-height: calc(100svh / 0.9);
  }
}


.hero__bg { position: absolute; inset: 0; }

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(13, 22, 8, 0.55), rgba(13, 22, 8, 0.12) 38%, rgba(13, 22, 8, 0.35) 70%, rgba(13, 22, 8, 0.62)),
    linear-gradient(to left, rgba(13, 22, 8, 0.4), transparent 55%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  align-self: stretch;
  width: min(1600px, 100% - 80px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 130px;
}

.hero__row {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 28px;
}

.hero__content { max-width: 620px; }

.hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.1vw, 2.7rem);
  font-weight: 700;
  margin-bottom: 28px;
}

.hero h1 em { font-weight: 600; }

.hero__lead {
  max-width: 560px;
  margin: -12px 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.65;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.28);
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn--glass {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--glass:hover { background: rgba(255, 255, 255, 0.3); }

.hero__proof {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 7px 20px 7px 8px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.hero__avatars { display: flex; }

.hero__avatars span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.hero__avatars span:nth-child(1) { background: var(--green-600); }
.hero__avatars span:nth-child(2) { background: var(--yellow); margin-left: -10px; }
.hero__avatars span:nth-child(3) { background: var(--green-700); margin-left: -10px; }

.hero__wordmark {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12.6vw;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--white);
  text-align: center;
  white-space: nowrap;
  margin-bottom: -0.08em;
}

.hero__wordmark em { font-weight: 500; }

.stars { color: var(--yellow); letter-spacing: 2px; font-size: 1rem; }

/* ==========================================================================
   Chiffres clés
   ========================================================================== */
.stats { background: var(--ink); padding: 56px 0; }

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat span { color: #b9cf9c; font-size: 0.92rem; }

.stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--green);
}

/* ==========================================================================
   Présentation
   ========================================================================== */
.about__tabs { display: flex; gap: 10px; margin-bottom: 32px; }

.about__tab {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--green-tint);
}

.about__tab--active {
  color: var(--ink);
  background: #e3edcf;
  font-weight: 700;
}

.about__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 48px;
}

.about__head h2 { flex: 1; margin-bottom: 0; }

.about__intro {
  max-width: 430px;
  padding-bottom: 6px;
  font-size: 0.98rem;
}

.about__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.about__gallery > * { min-width: 0; }

.about__photo {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about__photo img { width: 100%; height: 100%; object-fit: cover; }

/* La photo haute n'a pas de ratio propre : elle s'étire pour égaler
   la hauteur de la colonne de droite (photo large + bloc chiffres). */
.about__photo--tall img { position: absolute; inset: 0; }

.about__photo--tall figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 32px 28px 28px;
  background: linear-gradient(to top, rgba(13, 22, 8, 0.92), rgba(13, 22, 8, 0.6) 55%, rgba(13, 22, 8, 0.05) 100%);
  color: var(--white);
}

.about__photo--tall h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45); }
.about__photo--tall figcaption p { color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; margin-bottom: 18px; }

.about__side {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about__photo--wide { aspect-ratio: 2 / 1; }

.about__note {
  background: var(--green-tint);
  border-radius: var(--radius);
  padding: 28px;
}

.about__note p { margin-bottom: 22px; color: var(--ink-soft); }
.about__note strong { color: var(--green-600); }

.about__join {
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 26px;
  background: var(--ink);
  color: var(--white);
  box-shadow: none;
}

.about__join:hover { background: var(--ink-soft); }

.about__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.about__arrow svg { width: 16px; height: 16px; stroke-width: 2.6; }

/* ==========================================================================
   Services
   ========================================================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card__media { aspect-ratio: 16 / 9; overflow: hidden; }

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card__media img { transform: scale(1.06); }

.card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body h3 { font-size: 1.12rem; }
.card__body p { font-size: 0.93rem; flex: 1; }

.card__link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card__link::after { content: "→"; transition: transform 0.2s ease; }
.card__link:hover::after { transform: translateX(4px); }

/* ==========================================================================
   Nos Innovations
   ========================================================================== */
.innovations__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.innovations__card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.innovations__card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green);
}

.innovations__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
  display: grid;
  place-items: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.innovations__card:hover .innovations__icon {
  background: var(--green);
  color: var(--white);
}

.innovations__icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.innovations__card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--ink);
}

.innovations__card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

@media (max-width: 1020px) {
  .innovations__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .innovations__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Galerie photos (mur défilant)
   ========================================================================== */
.gallery { overflow: hidden; }
/* .section.gallery et non .gallery seul : les paliers responsives redéfinissent
   plus bas `.section { padding: ... }`, à spécificité égale mais après cette
   règle. Sans les deux classes, une gouttière réapparaît sous le mur de photos
   en dessous de 1020px. */
.section.gallery { padding-bottom: 0; }
.gallery .section__head { margin-bottom: 56px; }

.gallery__viewport {
  height: 400px;
  overflow: hidden;
  perspective: 2200px;
  perspective-origin: 50% 0%;
}

.gallery__wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  height: 700px;
  transform: rotateX(56deg);
  transform-origin: 50% 0%;
}

.gallery__col { overflow: hidden; height: 100%; }

/* La piste contient 3 fois le même couple d'images. L'animation la fait glisser
   d'exactement un tiers, donc d'un motif : la copie suivante prend la place de
   la précédente et la boucle est invisible.
   La gouttière de fin est indispensable : sans elle la piste mesure
   3 motifs moins une gouttière, le tiers ne tombe plus juste, et la boucle
   saute à chaque cycle en laissant un vide en bas de colonne. */
.gallery__track {
  display: flex;
  flex-direction: column;
  --gallery-gap: 20px;
  gap: var(--gallery-gap);
  padding-bottom: var(--gallery-gap);
  width: 100%;
  will-change: transform;
}

.gallery__col--up .gallery__track { animation: gallery-up 26s linear infinite; }
.gallery__col--down .gallery__track { animation: gallery-down 26s linear infinite; }

.gallery__col:nth-child(2) .gallery__track { animation-duration: 32s; }
.gallery__col:nth-child(3) .gallery__track { animation-duration: 22s; }
.gallery__col:nth-child(4) .gallery__track { animation-duration: 30s; }

@keyframes gallery-up {
  from { transform: translateY(0); }
  to { transform: translateY(calc(-100% / 3)); }
}

@keyframes gallery-down {
  from { transform: translateY(calc(-100% / 3)); }
  to { transform: translateY(0); }
}

.gallery__trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: zoom-in;
}

.gallery__trigger:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

.gallery__track img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.gallery__trigger:hover img { transform: scale(1.025); filter: brightness(1.08); }
.gallery__track:hover, .gallery__track:focus-within { animation-play-state: paused; }
.gallery__track > .gallery__trigger:nth-child(odd) img { height: 320px; }
.gallery__track > .gallery__trigger:nth-child(even) img { height: 240px; }

/* Lightbox de la galerie */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(44px, 1fr) minmax(0, 1100px) minmax(44px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 32px;
  background: rgba(8, 15, 5, 0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
  touch-action: pan-y pinch-zoom;
  overscroll-behavior: contain;
}

.lightbox--open { opacity: 1; visibility: visible; }
.lightbox__figure { grid-column: 2; max-width: 1100px; margin: 0; opacity: 0; transform: translateY(20px) scale(0.985); transition: opacity 0.24s ease, transform 0.24s ease; }
.lightbox--open .lightbox__figure { opacity: 1; transform: translateY(0) scale(1); }
.lightbox__image { width: 100%; max-height: calc(100dvh - 130px); object-fit: contain; border-radius: var(--radius); box-shadow: 0 24px 72px rgba(0, 0, 0, 0.45); }
.lightbox__caption { margin-top: 14px; color: var(--white); font-size: 0.92rem; text-align: center; }
.lightbox__control {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.24s ease, opacity 0.2s ease;
}

.lightbox--open .lightbox__control { opacity: 1; }
.lightbox__control:hover { background: var(--green); border-color: var(--green); transform: scale(1.04); }
.lightbox__control:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.lightbox__control svg { width: 22px; height: 22px; }
.lightbox__close { position: absolute; top: 24px; right: 24px; transform: translateY(-10px); z-index: 100; }
.lightbox__previous { justify-self: end; transform: translateX(-14px); }
.lightbox__next { justify-self: start; transform: translateX(14px); }
.lightbox--open .lightbox__close, .lightbox--open .lightbox__previous, .lightbox--open .lightbox__next { transform: translate(0); }
.lightbox__figure--next { animation: lightbox-next 0.26s ease; }
.lightbox__figure--previous { animation: lightbox-previous 0.26s ease; }
/* Pendant le glissé au doigt : l'image suit le doigt, sans transition ni animation. */
.lightbox__figure--dragging { transition: none; animation: none; }

/* Verrouillage du défilement de la page derrière la lightbox et le menu mobile.
   `html` porte overflow-x: hidden, donc l'overflow du body n'est plus propagé
   au viewport : il faut bloquer html, et figer le body pour iOS Safari
   (voir lockPageScroll() dans main.js). */
html.scroll-locked { overflow: hidden; }
body.scroll-locked { overflow: hidden; overscroll-behavior: none; }

@media (max-width: 680px) {
  body.scroll-locked { position: fixed; left: 0; right: 0; width: 100%; }
}

/* Zoom on lightbox image */
.lightbox__image { cursor: zoom-in; transition: transform 0.3s ease; transform-origin: center center; }
.lightbox__image--zoomed { transform: scale(1.8); cursor: zoom-out; }
.lightbox--no-arrows .lightbox__previous, .lightbox--no-arrows .lightbox__next { display: none !important; }

@keyframes lightbox-next {
  from { opacity: 0.3; transform: translateX(24px) scale(0.99); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes lightbox-previous {
  from { opacity: 0.3; transform: translateX(-24px) scale(0.99); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.content-demo-note {
  max-width: 760px;
  margin: 36px auto 0;
  padding: 14px 18px;
  border-left: 3px solid var(--yellow);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
}

.content-demo-note strong { color: var(--yellow); }

.projects .content-demo-note { margin: 0 auto 28px; background: var(--white); color: var(--text); border-color: var(--yellow); }
.projects .content-demo-note strong { color: var(--green-700); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 28px 0 72px;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.project-card > img { width: 100%; height: 205px; object-fit: cover; }
.project-card__body { padding: 24px; }
.project-card__meta { margin-bottom: 10px; color: var(--green); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.project-card h3 { margin-bottom: 10px; color: var(--ink); font-size: 1.1rem; }
.project-card__body > p:not(.project-card__meta) { color: var(--text); font-size: 0.91rem; }
.project-card__details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.project-card__details div { border-top: 1px solid var(--line); padding-top: 10px; }
.project-card__details dt { color: var(--green); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.project-card__details dd { margin: 3px 0 0; color: var(--ink); font-size: 0.82rem; }

/* --------------------------------------------------------------------------
   Carte interactive des réalisations (préfixe .rmap)
   Mise en page : fiches 2/3 à gauche · carte du Bénin 1/3 à droite (sticky).
   Les fiches restent des .project-card standards, aucun style réinventé.
   -------------------------------------------------------------------------- */

.rmap-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 44px;
  align-items: start;
}

/* sans min-width:0, cet élément de grille refuse de rétrécir sous la largeur
   cumulée des fiches du carrousel et fait déborder la colonne */
.rmap-cards { min-width: 0; }

/* --- barre de filtre au-dessus du carrousel --- */
.rmap-filter {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.rmap-filter__label {
  font-family: var(--font-heading); font-weight: 700;
  color: var(--ink); font-size: 1.05rem;
}
.rmap-filter__label span { color: var(--green-700); }
.rmap-filter__reset {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px; font: inherit; font-size: 0.8rem; font-weight: 600;
  color: var(--ink-soft); cursor: pointer; transition: 0.2s ease;
}
.rmap-filter__reset:hover {
  border-color: var(--green); background: var(--green-tint); color: var(--green-700);
}

/* --- carrousel : une seule fiche entière à la fois, la suivante dépasse --- */
.rmap-carousel { display: flex; align-items: center; gap: 12px; }

.rmap-track {
  flex: 1; min-width: 0;
  display: flex; gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
  /* le padding laisse respirer l'ombre des fiches ; scroll-padding le compense
     pour que la 1re fiche s'accroche bien à scrollLeft = 0 */
  padding: 4px; scroll-padding: 4px;
}
.rmap-track::-webkit-scrollbar { display: none; }
.rmap-track:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: var(--radius); }
/* une seule fiche entière remplit la piste ; s'il n'y en a qu'une, c'est tout */
.rmap-track > .project-card { flex: 0 0 100%; scroll-snap-align: start; }
.rmap-track > .project-card[hidden] { display: none; }
/* dès qu'il reste des fiches à voir, on rétrécit pour laisser apparaître une
   partie de la suivante : l'utilisateur comprend qu'il y a une suite.
   En fin de carrousel, c'est mécaniquement une partie de la précédente qui apparaît à gauche. */
.rmap-track--peek > .project-card { flex: 0 0 70%; }

.rmap-arrow {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  cursor: pointer; box-shadow: var(--shadow); transition: 0.2s ease;
}
/* sans cette règle, le `display: flex` ci-dessus l'emporte sur l'attribut hidden */
.rmap-arrow[hidden] { display: none; }
.rmap-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rmap-arrow:hover:not(:disabled) { border-color: var(--green); background: var(--green-tint); color: var(--green-700); }
.rmap-arrow:disabled { opacity: 0.3; cursor: default; box-shadow: none; }

.rmap-counter { margin-top: 14px; text-align: center; font-size: 0.82rem; color: var(--text); font-weight: 600; }

/* départements cliquables (seuls ceux qui ont une réalisation) */
.rmap-dept.is-active { cursor: pointer; }
.rmap-dept.is-active:hover { fill: #bcdb96; }
.rmap-dept.is-active:focus-visible { outline: 2px solid var(--green-700); outline-offset: 2px; }
.rmap-pin.is-muted { opacity: 0.3; }

/* la colonne s'étire sur toute la hauteur pour laisser le sticky voyager ;
   ne pas mettre .reveal sur .rmap-aside : son transform casserait le sticky. */
.rmap-aside { align-self: stretch; }
.rmap-aside__inner { position: sticky; top: calc(var(--header-h, 64px) + 24px); }

.rmap-mapcaption {
  text-align: center; font-family: var(--font-heading); font-weight: 700;
  font-size: 0.95rem; color: var(--ink); margin-bottom: 14px;
}
.rmap-mapwrap {
  position: relative; width: 100%; max-width: 270px; margin: 0 auto;
  aspect-ratio: 812 / 1605;
}
.rmap-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rmap-dept { fill: #eef4e4; stroke: #fff; stroke-width: 1.6; transition: fill 0.3s ease; }
.rmap-dept.is-active { fill: #d3e7b6; }
.rmap-dept.is-current { fill: #a9d178; }

.rmap-pins { position: absolute; inset: 0; }
.rmap-pin {
  position: absolute; transform: translate(-50%, -50%);
  padding: 0; background: none; border: 0; cursor: pointer; line-height: 0;
}
.rmap-pin__dot {
  display: block; width: 14px; height: 14px; border-radius: 50%;
  background: var(--yellow); border: 2.5px solid #fff;
  box-shadow: 0 2px 6px rgba(22, 36, 15, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}
.rmap-pin__label {
  position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-family: var(--font-body);
  font-size: 0.7rem; font-weight: 600; line-height: 1; padding: 4px 9px;
  border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity 0.15s ease;
}
.rmap-pin:hover .rmap-pin__dot,
.rmap-pin:focus-visible .rmap-pin__dot { transform: scale(1.35); }
.rmap-pin:hover .rmap-pin__label,
.rmap-pin:focus-visible .rmap-pin__label,
.rmap-pin.is-active .rmap-pin__label { opacity: 1; }
.rmap-pin.is-active { z-index: 6; }
.rmap-pin.is-active .rmap-pin__dot {
  background: var(--green-600); width: 17px; height: 17px;
  box-shadow: 0 0 0 4px rgba(134, 187, 70, 0.28), 0 3px 8px rgba(22, 36, 15, 0.35);
}

.rmap-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  text-align: center;
}
.rmap-stats strong {
  display: block; font-family: var(--font-heading); color: var(--green-700);
  font-size: 1.5rem; line-height: 1;
}
.rmap-stats span {
  display: block; margin-top: 5px; color: var(--text);
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
}
.rmap-aside__hint {
  margin-top: 14px; text-align: center; font-size: 0.78rem; color: var(--text); line-height: 1.5;
}
.rmap-aside__hint b { color: var(--green-700); }

/* fiche ciblée par un clic sur la carte */
.project-card { scroll-margin-top: 100px; transition: box-shadow 0.3s ease, border-color 0.3s ease; }
.project-card.is-highlighted {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(134, 187, 70, 0.3), var(--shadow-lg);
}

/* une seule fiche par vue dès que la colonne devient étroite
   (le pas de défilement JS suit le même seuil de 1100px) */
/* en écran étroit, la fiche a besoin de sa largeur : simple bord qui dépasse */
@media (max-width: 1100px) {
  .rmap-track--peek > .project-card { flex: 0 0 calc(100% - 56px); }
}
@media (max-width: 900px) {
  .rmap-layout { grid-template-columns: 1fr; gap: 36px; }
  .rmap-aside { order: -1; } /* la carte passe au-dessus des fiches */
  .rmap-aside__inner { position: static; }
  .rmap-mapwrap { max-width: 240px; }

  /* les flèches passent sous la fiche, centrées */
  .rmap-carousel { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .rmap-track { flex: 0 0 100%; order: 1; }
  .rmap-arrow--prev { order: 2; }
  .rmap-arrow--next { order: 3; }
  .rmap-counter { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery__col--up .gallery__track,
  .gallery__col--down .gallery__track { animation: none; }
}

/* ==========================================================================
   Pourquoi nous choisir
   ========================================================================== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature {
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.feature:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.feature__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--green-tint);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.feature__icon svg { width: 26px; height: 26px; color: var(--green-600); }

.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { font-size: 0.92rem; }

/* ==========================================================================
   Processus
   ========================================================================== */
.section--dark .eyebrow { color: var(--green); }
.section--dark h2 { color: var(--white); }

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: steps;
  list-style: none;
}

.step {
  background: var(--ink-soft);
  border: 1px solid rgba(134, 187, 70, 0.25);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}

.step__number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  opacity: 0.85;
  display: block;
  margin-bottom: 12px;
}

.step h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: #b9cf9c; font-size: 0.92rem; }

/* ==========================================================================
   Témoignages
   ========================================================================== */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

.testimonial .stars { display: block; margin-bottom: 16px; }

.testimonial blockquote {
  font-size: 0.98rem;
  font-style: italic;
  margin-bottom: 22px;
}

.testimonial figcaption { display: flex; align-items: center; gap: 14px; }

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

.testimonial figcaption strong { display: block; color: var(--ink); line-height: 1.3; }
.testimonial figcaption small { color: var(--text); font-size: 0.82rem; }

/* ===========================================================================
   Questions fréquentes et préparation de la demande
   ========================================================================== */
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; }
.faq__intro > p:not(.eyebrow) { max-width: 440px; margin-top: 16px; }
.faq .content-demo-note { margin: 24px 0 0; background: var(--white); color: var(--text); border-color: var(--yellow); }
.faq .content-demo-note strong { color: var(--green-700); }
.faq__list { display: grid; gap: 12px; }
.faq__list details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq__list summary { cursor: pointer; color: var(--ink); font-family: var(--font-heading); font-weight: 700; padding: 19px 30px 19px 0; position: relative; list-style: none; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; position: absolute; right: 0; top: 15px; color: var(--green-600); font-size: 1.5rem; font-weight: 400; }
.faq__list details[open] summary::after { content: "−"; }
.faq__list details p { padding: 0 0 20px; font-size: 0.92rem; }

.request-guide__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; }
.request-guide__grid li { display: grid; gap: 9px; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.request-guide__grid strong { color: var(--green-700); font-family: var(--font-heading); font-size: 1.05rem; }
.request-guide__grid span { font-size: 0.92rem; }

/* ==========================================================================
   Ils nous font confiance (bande défilante)
   ========================================================================== */
.trustbar {
  background: var(--green-tint);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}

.trustbar__inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.trustbar__label {
  flex-shrink: 0;
  max-width: 185px;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--text);
}

.trustbar__label strong { color: var(--ink); }

.trustbar__marquee {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.trustbar__track { display: flex; width: max-content; }

.trustbar__group {
  display: flex;
  align-items: center;
  gap: 72px;
  padding-right: 72px;
  animation: trust-scroll 26s linear infinite;
}

.trustbar__marquee:hover .trustbar__group { animation-play-state: paused; }

@keyframes trust-scroll {
  to { transform: translateX(-100%); }
}

.trustbar__item {
  display: inline-flex;
  align-items: center;
  gap: 50px;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: #6f8059;
}

.trustbar__item svg { width: 30px; height: 30px; color: var(--yellow); }

.trustbar__item--img img {
  height: 62px;
  width: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 5px 10px;
}

@media (prefers-reduced-motion: reduce) {
  .trustbar__group { animation: none; }
  .trustbar__marquee { overflow-x: auto; }
}

/* ==========================================================================
   Appel à l'action
   ========================================================================== */
.cta {
  background: linear-gradient(120deg, var(--green-700), var(--green) 70%);
  color: var(--white);
  padding: 72px 0;
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta h2 { color: var(--white); max-width: 620px; margin-bottom: 12px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta p { opacity: 0.92; max-width: 560px; }

.cta__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   Bandeau de page (sous-pages : Contact, Services, À propos)
   ========================================================================== */
.page-banner {
  background: var(--ink);
  padding: 170px 0 64px;
}

.page-banner__breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #b9cf9c;
  margin-bottom: 18px;
}

.page-banner__breadcrumb a:hover { color: var(--green); }

.page-banner h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin-bottom: 16px;
}

.page-banner__lead {
  max-width: 520px;
  color: #b9cf9c;
  font-size: 1.02rem;
}

/* ==========================================================================
   Page Services : sommaire + détail
   ========================================================================== */
.services-toc {
  background: var(--green-tint);
  border-bottom: 1px solid var(--line);
  position: sticky;
  /* --header-h est publiée par main.js : le sommaire se colle juste sous
     l'en-tête, sans laisser voir le contenu défiler entre les deux */
  top: var(--header-h, 64px);
  z-index: 30;
}

.services-toc__inner {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 0;
}

.services-toc a {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.services-toc a:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.services-detail__list {
  display: grid;
  gap: 88px;
}

.service-block {
  /* la cible doit arriver sous l'en-tête ET sous le sommaire, tous deux collants */
  scroll-margin-top: calc(var(--header-h, 64px) + var(--toc-h, 67px) + 20px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.service-block--align-top { align-items: start; }

.service-block--reverse .service-block__media { order: 2; }
.service-block--reverse .service-block__body { order: 1; }

.service-block__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.service-block__media img { width: 100%; height: 100%; object-fit: cover; }

.service-block__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.service-block__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 16px;
  background: var(--green-tint);
  color: var(--green-600);
}

.service-block__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-block__index {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--green-600);
  background: var(--green-tint);
  padding: 6px 14px;
  border-radius: 999px;
}

.service-block__body p { margin: 14px 0 20px; }

.service-block__features {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.service-block__features li {
  position: relative;
  padding-left: 30px;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.service-block__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center/12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ScrollSpy : lien actif dans le sommaire */
.services-toc a.services-toc--active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* ---- Bandeau chiffres clés intercalé ---- */
.services-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 48px 40px;
  background: linear-gradient(135deg, var(--green-700), var(--green) 80%);
  border-radius: 24px;
  text-align: center;
  color: var(--white);
  box-shadow: 0 16px 48px rgba(82, 143, 33, 0.25);
}

.services-stats__number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 6px;
  color: var(--white);
}

.services-stats__label {
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.88;
}

/* ---- Aide à la décision : quelle solution ? ---- */
.solution-finder__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.solution-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.solution-card__tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--green-600);
  background: var(--green-tint);
  padding: 5px 12px;
  border-radius: 999px;
}

.solution-card__need {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink);
}

.solution-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  flex: 1;
}

.solution-card__link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.solution-card__link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.solution-card__link:hover { color: var(--green-700); }
.solution-card__link:hover svg { transform: translateX(3px); }

/* ---- Nos engagements ---- */
.commitments__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.commitment {
  text-align: center;
  padding: 8px;
}

.commitment__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: var(--green-tint);
  color: var(--green-600);
  margin-bottom: 18px;
}

.commitment__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.commitment h3 { font-size: 1.02rem; margin-bottom: 8px; }
.commitment p { font-size: 0.9rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .solution-finder__grid { grid-template-columns: repeat(2, 1fr); }
  .commitments__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .solution-finder__grid { grid-template-columns: 1fr; }
}

/* ---- Section « Comment ça marche ? » ---- */
.services-process {
  background: var(--green-tint);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

/* Ligne de connexion horizontale */
.process-steps::before {
  content: "";
  position: absolute;
  top: 44px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-step__icon {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover .process-step__icon {
  border-color: var(--green);
  box-shadow: 0 8px 28px rgba(134, 187, 70, 0.2);
}

.process-step__icon svg {
  width: 28px;
  height: 28px;
  color: var(--green-600);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-step__num {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.82rem;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 260px;
  margin: 0 auto;
}

@media (max-width: 1020px) {
  .services-stats { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .process-steps::before { display: none; }
}

@media (max-width: 680px) {
  .services-stats { grid-template-columns: 1fr 1fr; padding: 32px 24px; gap: 24px; }
  .process-steps { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   Page 404
   ========================================================================== */
.error-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--ink);
  padding: 140px 0 80px;
}

.error-page__inner {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.error-page__sun {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(134, 187, 70, 0.14);
  margin-bottom: 24px;
}

.error-page__sun svg {
  width: 34px;
  height: 34px;
  color: var(--yellow);
  stroke-width: 1.8;
}

.error-page__code {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  color: var(--green);
  opacity: 0.9;
  margin-bottom: 8px;
}

.error-page h1 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 18px;
}

.error-page__lead {
  color: #b9cf9c;
  font-size: 1.02rem;
  margin-bottom: 36px;
}

.error-page__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.error-page__actions .btn--outline {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.error-page__actions .btn--outline:hover {
  border-color: var(--green);
  color: var(--green);
}

.error-page__links {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.error-page__links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #b9cf9c;
  transition: color 0.2s ease;
}

.error-page__links a:hover { color: var(--green); }

/* ==========================================================================
   Page À propos : frise chronologique + équipe de direction
   ========================================================================== */
.ap-timeline {
  margin: 28px 0 32px;
  display: grid;
  gap: 0;
}

.ap-timeline__item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 24px;
}

.ap-timeline__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--green), var(--line));
}

.ap-timeline__year {
  min-width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-tint);
  border: 2px solid var(--green);
  color: var(--green-700);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease;
}

.ap-timeline__item:hover .ap-timeline__year {
  background: var(--green);
  color: var(--white);
}

.ap-timeline__content { padding-top: 8px; }
.ap-timeline__content h3 { font-size: 1rem; margin-bottom: 4px; }
.ap-timeline__content p { font-size: 0.9rem; margin-bottom: 0; }

/* ==========================================================================
   Page À propos : Nos Valeurs
   ========================================================================== */
.values__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.value-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  text-align: center;
  flex: 1 1 160px;
  max-width: 220px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green);
}

.value-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.value-card:hover .value-card__icon {
  background: var(--green);
  color: var(--white);
}

.value-card__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h3 {
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 8px;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.4;
}

/* ==========================================================================
   Page À propos : équipe de direction
   ========================================================================== */
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Photo de groupe : équipe élargie */
.team__group {
  margin-top: 56px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.team__group img {
  display: block;
  width: 100%;
  height: auto;
}

.team__group figcaption {
  padding: 18px 24px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

@media (max-width: 680px) {
  .team__group { margin-top: 36px; }
  .team__group figcaption { padding: 14px 18px; font-size: 0.85rem; }
}

.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.team-card__photo {
  width: 100%;
  height: 248px;
  border-radius: 0;
  overflow: hidden;
  margin: 0;
  border-bottom: 4px solid var(--green);
  background: var(--green-tint);
}

.team-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.35s ease; }
.team-card:hover .team-card__photo img { transform: scale(1.04); }

.team-card h3 { padding: 24px 24px 0; font-size: 1.08rem; margin-bottom: 4px; }
.team-card p { padding: 0 24px; font-size: 0.9rem; color: var(--green-600); font-weight: 700; margin-bottom: 22px; }

.team-card__social { display: flex; justify-content: flex-start; gap: 10px; margin-top: auto; padding: 16px 24px; border-top: 1px solid var(--line); }

.team-card__social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.team-card__social a:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* ==========================================================================
   Page Contact : coordonnées + formulaire
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.contact__side { display: grid; gap: 28px; align-content: start; }

.contact-info__lead { margin: 16px 0 32px; }

.contact-info__list {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-tint);
  display: grid;
  place-items: center;
}

.contact-info__icon svg { width: 20px; height: 20px; color: var(--green-600); }

.contact-info__item strong { display: block; color: var(--ink); margin-bottom: 4px; }
.contact-info__item p { font-size: 0.94rem; }
.contact-info__item a:hover { color: var(--green-600); }

.contact-info__social {
  display: flex;
  gap: 12px;
  margin-bottom: 0;
}

.contact-info__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.contact-info__social a:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.contact-info__photo {
  aspect-ratio: 16 / 7;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-info__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

/* ---- Formulaire ---- */
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form__group { margin-bottom: 20px; }

.form__label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.form__input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form__input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(134, 187, 70, 0.15);
}

.form__select { appearance: none; cursor: pointer; }
.form__textarea { resize: vertical; min-height: 130px; }

.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__submit {
  width: 100%;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.form__submit svg { width: 18px; height: 18px; stroke-width: 2.4; }

.form__alert {
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.form__alert--success {
  background: var(--green-tint);
  color: var(--green-700);
  border: 1px solid rgba(134, 187, 70, 0.35);
}

.form__alert--error {
  background: #fdeeee;
  color: #b3261e;
  border: 1px solid rgba(179, 38, 30, 0.25);
}

/* ---- Carte ---- */
.map { line-height: 0; }
.map iframe { width: 100%; height: 440px; border: 0; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.footer { background: var(--ink); color: #b9cf9c; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1.2fr;
  gap: 48px;
  padding: 72px 0 56px;
}

.brand--footer { margin-bottom: 18px; }
.brand--footer img { width: 48px; height: auto; }
.brand--footer .brand__text strong { color: var(--white); }

.footer__about p { font-size: 0.92rem; margin-bottom: 20px; }

.footer__social { display: flex; gap: 12px; }

.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(185, 207, 156, 0.35);
  display: grid;
  place-items: center;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.footer__social a:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.footer__social svg { width: 16px; height: 16px; }

.footer__col h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer__col ul { display: grid; gap: 10px; }

.footer__col ul a {
  font-size: 0.92rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer__col ul a:hover { color: var(--green); padding-left: 4px; }

.footer address { font-style: normal; font-size: 0.92rem; display: grid; gap: 14px; }
.footer address strong { color: var(--white); }
.footer address a:hover { color: var(--green); }

.footer__bottom {
  border-top: 1px solid rgba(185, 207, 156, 0.2);
  padding: 20px 0;
  font-size: 0.85rem;
  text-align: center;
}

.footer__legal { display: flex; justify-content: center; gap: 18px; margin-top: 8px; }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--green); }

/* ===========================================================================
   Pages légales
   ========================================================================== */
.legal-page__content { max-width: 820px; }
.legal-page__content h2 { font-size: 1.35rem; margin: 38px 0 12px; }
.legal-page__content ul { display: grid; gap: 8px; margin-top: 16px; list-style: disc; padding-left: 22px; }
.legal-page__content a { color: var(--green-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal-page__notice { padding: 16px 18px; border-left: 3px solid var(--yellow); background: var(--green-tint); }

/* ==========================================================================
   Bouton retour en haut
   ========================================================================== */
.backtop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 40;
}

.backtop--visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ==========================================================================
   Animations d'apparition
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .lightbox, .lightbox__figure, .lightbox__control { transition: none; }
  .lightbox__figure--next, .lightbox__figure--previous { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1020px) {
  .section { padding: 72px 0; }

  .hero__inner { padding-top: 110px; }
  .hero__row { flex-direction: column; align-items: flex-start; gap: 28px; }

  .about__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .about__intro { max-width: none; }
  .about__gallery { grid-template-columns: 1fr; }
  .about__photo--tall { aspect-ratio: 4 / 3; }

  .services__grid, .features__grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid, .request-guide__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }

  .footer__grid { grid-template-columns: repeat(2, 1fr); }

  .gallery__viewport { height: 360px; }
  .gallery__wall { height: 560px; transform: rotateX(56deg); }
  .gallery__track > .gallery__trigger:nth-child(odd) img { height: 240px; }
  .gallery__track > .gallery__trigger:nth-child(even) img { height: 180px; }

  .page-banner { padding: 140px 0 56px; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 32px; }

  .service-block { grid-template-columns: 1fr; gap: 24px; }
  .service-block--reverse .service-block__media,
  .service-block--reverse .service-block__body { order: initial; }
  .services-detail__list { gap: 56px; }

  .team__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  body { line-height: 1.6; }
  .section, .cta { padding: 48px 0; }

  .burger { display: flex; }

  .header__inner { gap: 12px; }
  .brand__logo { width: 40px; }
  .brand__text strong { font-size: 1rem; white-space: nowrap; }
  .brand__text small { display: none; }

  .header__mobile { display: flex; align-items: center; gap: 10px; }

  .header__cta-mobile {
    padding: 9px 16px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .nav__desktop { display: none; }

  .nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 22, 8, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    padding: 32px 24px;
    overflow-y: auto;
  }

  /* Uniformiser les liens du menu mobile */
  .nav .nav__link {
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: var(--white);
    letter-spacing: 0.01em;
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  .nav .nav__link:hover,
  .nav .nav__link--active {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
  }

  /* Bouton CTA dans le menu mobile */
  .nav .nav__cta {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 14px 20px;
    background: var(--white);
    color: var(--ink);
    font-weight: 700;
    border: none;
  }

  .nav--open { transform: translateX(0); }

  /* Bouton fermer (X), coin supérieur droit */
  .nav__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--white);
    transition: background 0.2s ease;
  }
  .nav__close:hover { background: rgba(255, 255, 255, 0.2); }
  .nav__close svg { width: 20px; height: 20px; stroke: var(--white); fill: none; stroke-width: 2.5; }

  /* Bloc bas du menu : contact + réseaux */
  .nav__footer {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  /* Infos de contact */
  .nav__contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .nav__contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s ease;
  }
  .nav__contact-link:hover { color: var(--white); }
  .nav__contact-link svg { width: 15px; height: 15px; stroke: currentColor; fill: none; flex-shrink: 0; }

  /* Séparateur */
  .nav__footer::before {
    content: "";
    display: block;
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
  }

  /* Icônes réseaux sociaux */
  .nav__social {
    display: flex;
    gap: 14px;
  }
  .nav__social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.7);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }
  .nav__social a:hover {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
  }
  .nav__social svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }
  .nav__social-wa svg { stroke: none; fill: currentColor; }

  .burger { position: relative; z-index: 1000; }

  .services__grid, .features__grid, .testimonials__grid,
  .process__grid, .stats__grid, .project-grid, .request-guide__grid { grid-template-columns: 1fr; }

  .faq__grid { grid-template-columns: 1fr; gap: 32px; }
  .project-grid { margin-bottom: 48px; }

  /* Perspective bien plus courte qu'en desktop : la distorsion se lit au rapport
     perspective / largeur du mur. À 2200px sur un mur de ~1440px l'effet est net,
     mais sur 390px de large il faut descendre vers 600px pour retrouver la même
     inclinaison, sinon le mur paraît plat. */
  .gallery__viewport { height: 360px; perspective: 600px; }
  .gallery__wall {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    height: 520px;
    transform: rotateX(54deg);
  }
  .gallery__col:nth-child(n+3) { display: none; }
  .gallery__track > .gallery__trigger:nth-child(odd) img { height: 220px; }
  .gallery__track > .gallery__trigger:nth-child(even) img { height: 160px; }

  .lightbox { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; padding: 20px 10px; }
  .lightbox__image { max-height: calc(100dvh - 130px); border-radius: 10px; }
  .lightbox__control { width: 44px; height: 44px; }
  .lightbox__close { top: 14px; right: 14px; }

  .hero__inner { padding-top: 96px; }
  .hero__row { margin-bottom: 22px; align-items: center; text-align: center; }
  .hero h1 { font-size: 1.7rem; margin-bottom: 22px; text-align: center; }
  .hero__lead { display: none; }
  .hero__actions { flex-direction: column; align-items: center; gap: 10px; width: 100%; }
  .hero__actions .btn { width: 100%; max-width: 300px; justify-content: center; padding: 12px; font-size: 0.9rem; }
  .hero__proof { display: none; }

  .trustbar__inner { flex-direction: column; gap: 18px; }
  .trustbar__label { max-width: none; text-align: center; }

  .about__tabs { flex-wrap: wrap; }
  .about__note { padding: 22px; }
  .about__join { flex-wrap: wrap; }

  .cta__inner { flex-direction: column; text-align: center; align-items: center; gap: 28px; }
  .cta__actions { flex-direction: column; align-items: center; gap: 14px; width: 100%; }
  .cta__actions .btn { width: 100%; max-width: 300px; justify-content: center; }

  .footer__grid { grid-template-columns: 1fr; gap: 28px; padding: 48px 0 32px; }

  .page-banner { padding: 118px 0 40px; }
  .page-banner__lead { max-width: none; }
  .contact-form { padding: 24px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .map iframe { height: 300px; }

  .services-toc__inner { padding: 12px 0; gap: 6px; }
  .services-toc a { padding: 7px 14px; font-size: 0.82rem; }
  .services-detail__list { gap: 40px; }

  .team__grid { grid-template-columns: 1fr; }

  .error-page { padding: 118px 0 56px; }
  .error-page__actions .btn { width: 100%; max-width: 280px; justify-content: center; }
  .error-page__links { gap: 18px 24px; }
}

/* ==========================================================================
   Trophées & Distinctions
   ========================================================================== */

/* Fond sombre pour la section */
.awards {
  background: var(--ink);
}

.awards .eyebrow { color: var(--yellow) !important; }
.awards .section__head h2 { color: var(--white); }
.awards .section__head h2 span { color: var(--green); }
.awards .section__lead { color: rgba(255,255,255,0.68); }

.awards__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 980px;
  margin: 0 auto;
}

/* ---- Carte trophée ---- */
.award-card {
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.award-card:hover {
  transform: translateY(-8px);
  border-color: rgba(250, 171, 4, 0.35);
  box-shadow: 0 32px 64px rgba(0,0,0,0.45), 0 0 0 1px rgba(250,171,4,0.15);
}

/* Zone image */
.award-card__img-wrap {
  background: rgba(255,255,255,0.04);
  padding: 40px 44px 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Variante fond blanc translucide pour le trophée en verre */
.award-card__img-wrap--glass {
  background: rgba(255,255,255,0.92);
}

.award-card__img-wrap .gallery__trigger {
  background: transparent;
  border: none;
  padding: 0;
  cursor: zoom-in;
  display: flex;
  justify-content: center;
  align-items: center;
}
.award-card__img-wrap .gallery__trigger:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 4px; }

.award-card__img-wrap img {
  max-height: 240px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.45));
  transition: transform 0.4s ease, filter 0.4s ease;
}

.award-card:hover .award-card__img-wrap img {
  transform: scale(1.05) translateY(-4px);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.55));
}

/* Corps de la carte */
.award-card__body {
  padding: 26px 30px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Badge année */
.award-card__year {
  display: inline-block;
  background: rgba(250, 171, 4, 0.15);
  color: var(--yellow);
  border: 1px solid rgba(250, 171, 4, 0.30);
  padding: 4px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: fit-content;
}

.award-card__body h3 {
  font-size: 1.25rem;
  color: var(--white);
  margin: 4px 0 0;
  line-height: 1.3;
}

.award-card__subtitle {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1.4;
  margin: 0;
}

.award-card__body > p:not(.award-card__subtitle):not(.award-card__org) {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.7;
  margin: 4px 0 0;
  flex: 1;
}

.award-card__body > p strong {
  color: rgba(255,255,255,0.92);
  font-weight: 600;
}

.award-card__body > p em {
  font-style: italic;
  color: rgba(255,255,255,0.80);
}

.award-card__org {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.38);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 8px;
}

/* ---- Responsive awards ---- */
@media (max-width: 860px) {
  .awards__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 520px;
  }
}

@media (max-width: 680px) {
  .award-card__img-wrap { padding: 28px 32px 24px; }
  .award-card__img-wrap img { max-height: 190px; }
  .award-card__body { padding: 22px 24px 28px; }
}

/* ---- Hand-Drawn Elements & Playfair Display ---- */
.font-serif {
  font-family: var(--font-serif) !important;
  font-style: italic;
  font-weight: 600;
}
.badge-handdrawn {
  display: inline-block;
  background-color: var(--yellow);
  color: var(--ink);
  padding: 8px 24px;
  border: 2px solid var(--ink);
  border-radius: var(--handdrawn-radius);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: var(--space-4);
  box-shadow: 2px 2px 0 var(--ink);
}
.badge-handdrawn--green {
  background-color: var(--green);
  color: var(--white);
}
.badge-sunburst {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--yellow);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  transform: rotate(15deg);
  z-index: 10;
  padding: 10px;
}
.badge-sunburst span {
  transform: rotate(-15deg);
  display: inline-block;
}
/* ---- Graffiti Background Elements ---- */
.bg-graffiti-container {
  position: relative;
  overflow: hidden;
}
.bg-graffiti-bulb {
  position: absolute;
  width: 300px;
  height: 350px;
  background-image: url('../assets/img/illustrations/graffiti-bulb.svg');
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.15;
  color: var(--green-700); /* Will apply to currentColor in SVG if inlined, but since it's background-image, currentColor is black by default. Let's make an SVG data URI instead if we want color, or use a CSS mask! */
  z-index: 0;
  pointer-events: none;
}
/* Better to use mask for color control */
.bg-graffiti-bulb-mask {
  position: absolute;
  width: 350px;
  height: 400px;
  background-image: url('../assets/img/illustrations/graffiti-bulb.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}



/* ===================================================================
   Rassurance sous le formulaire de contact
   =================================================================== */
.form__reassurance {
  margin-top: 14px;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text);
}
.form__reassurance strong { color: var(--green-700); }
.form__reassurance a {
  color: var(--green-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   Écran de chargement : batterie / panneau solaire qui se charge
   ========================================================================== */

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 2000;             /* au-dessus de la lightbox (1000) et du menu (999) */
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(134, 187, 70, 0.14), transparent 62%),
    var(--white);
  opacity: 1;
  visibility: visible;
  /* On absorbe le défilement tactile plutôt que de verrouiller `html` :
     un overflow: hidden posé pendant le chargement casserait la restauration
     de la position de défilement au retour arrière. */
  touch-action: none;
  overscroll-behavior: contain;
  /* Repli sans JavaScript : la page se découvre seule si main.js ne tourne pas. */
  animation: loader-out 0.45s ease 1.7s forwards;
}

/* body porte zoom: 0.9 au-dessus de 680px : les longueurs de l'overlay sont
   donc réduites d'autant. On divise pour retomber sur le viewport réel. */
@media (min-width: 681px) {
  .loader { width: calc(100vw / 0.9); height: calc(100dvh / 0.9); }
}

/* main.js prend la main dès qu'il s'exécute : il pilote la progression. */
html.is-loading .loader,
.loader--done { animation: none; }

.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

/* ---- La batterie ---- */
.loader__battery {
  position: relative;
  width: clamp(190px, 46vw, 296px);
  aspect-ratio: 2.5 / 1;
  padding: 9px;
  border: 4px solid var(--ink);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

/* La borne « + » de la batterie. */
.loader__battery::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -16px;
  width: 12px;
  height: 32%;
  transform: translateY(-50%);
  background: var(--ink);
  border-radius: 0 5px 5px 0;
}

/* Niveau de charge : largeur pilotée par --level (main.js) ou par l'animation
   de repli ci-dessous. */
.loader__fill {
  position: absolute;
  inset: 9px auto 9px 9px;
  width: calc((100% - 18px) * var(--level, 0));
  border-radius: 7px;
  background: linear-gradient(90deg, var(--green-700), var(--green) 72%, var(--yellow));
  transition: width 0.25s ease-out;
  animation: loader-charge 1.6s cubic-bezier(0.32, 0.68, 0.36, 1) forwards;
}

html.is-loading .loader__fill { animation: none; }

/* Trame de cellules photovoltaïques posée par-dessus le niveau. */
.loader__grid {
  position: absolute;
  inset: 9px;
  border-radius: 7px;
  background:
    repeating-linear-gradient(90deg, transparent 0 23.5%, rgba(22, 36, 15, 0.16) 23.5% calc(23.5% + 2px)),
    repeating-linear-gradient(0deg, transparent 0 49%, rgba(22, 36, 15, 0.16) 49% calc(49% + 2px));
  pointer-events: none;
}

/* ---- Compteur et signature ---- */
.loader__percent {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.loader__percent .loader__unit {
  color: var(--green-600);
  font-size: 0.9rem;
  margin-left: 2px;
}

.loader__brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  color: var(--ink);
}

.loader__brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-top: 6px;
}

/* ---- Sortie ---- */
.loader--done {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.45s ease, visibility 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

@keyframes loader-charge {
  from { width: 0; }
  to   { width: calc(100% - 18px); }
}

@keyframes loader-out {
  to { opacity: 0; visibility: hidden; transform: translateY(-12px); }
}

/* Mouvement réduit : pas d'écran de chargement du tout, la page est servie
   directement (main.js retire aussi le verrou de défilement). */
@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
}
