/* ==========================================================================
   3D MODEL — Conception & Usinage
   Direction artistique reprise de la maquette fournie par le client :
   vert sauge sur fonds très clairs, formes arrondies, respiration large.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Jetons de design (prélevés sur la maquette)
   -------------------------------------------------------------------------- */
:root {
  /* Vert de marque */
  --vert: #78a792;
  --vert-fonce: #5f8f79;
  --vert-clair: #a8c7b9;
  --vert-voile: #e4efe9;
  --vert-brume: #f3f8f5;

  /* Encre et gris */
  --encre: #2e353e;
  --encre-2: #4a5057;
  --gris: #6b7075;
  --gris-clair: #9aa0a4;
  --trait: #ecedee;
  --trait-fort: #dfe1e2;

  /* Fonds */
  --fond: #fdfdfd;
  --fond-2: #f6f8f7;
  --blanc: #ffffff;

  /* États */
  --succes: #3d7d5f;
  --succes-fond: #edf5f1;
  --erreur: #a8452f;
  --erreur-fond: #fbeeeb;

  /* Typographie */
  --font-titre: "Outfit", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-texte: "DM Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;

  --fs-eyebrow: 0.75rem;
  --fs-small: 0.875rem;
  --fs-body: 1rem;
  --fs-lead: 1.0625rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.625rem, 1.1rem + 2.1vw, 2.5rem);
  --fs-h1: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);

  /* Rythme */
  --wrap: 1200px;
  --wrap-narrow: 740px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(3.5rem, 7vw, 6.5rem);

  /* Formes */
  --r-pill: 999px;
  --r-card: 14px;
  --r-media: 18px;
  --r-band: 26px;
  --r-input: 10px;

  --ombre: 0 1px 2px rgba(46, 53, 62, 0.04), 0 6px 20px -10px rgba(46, 53, 62, 0.10);
  --ombre-haute: 0 2px 4px rgba(46, 53, 62, 0.05), 0 18px 38px -16px rgba(46, 53, 62, 0.18);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre-2);
  font-family: var(--font-texte);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }

a { color: var(--vert-fonce); text-underline-offset: 3px; }
a:hover { color: var(--encre); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-titre);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.012em;
  margin: 0 0 0.55em;
  color: var(--encre);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.022em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.018em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 1.0625rem; }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }

blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--vert-brume);
  border-left: 3px solid var(--vert);
  border-radius: var(--r-card);
  color: var(--encre);
}

hr { border: 0; border-top: 1px solid var(--trait); margin: 3rem 0; }

code, kbd, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
pre { background: var(--encre); color: #eef1f0; padding: 1.25rem; border-radius: var(--r-card); overflow-x: auto; }

table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: var(--fs-small); }
th, td { border: 1px solid var(--trait); padding: 0.7rem 0.9rem; text-align: left; }
th { background: var(--vert-brume); font-family: var(--font-titre); font-weight: 500; color: var(--encre); }

::selection { background: var(--vert); color: #fff; }

:focus-visible { outline: 2px solid var(--vert-fonce); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--encre); color: #fff; padding: 0.75rem 1.25rem; font-size: var(--fs-small);
}
.skip-link:focus { left: 0; color: #fff; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. Mise en page
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--voile { background: var(--fond-2); }
.section--vert { background: var(--vert-brume); }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (max-width: 1100px) { .grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .grid--2, .grid--3, .grid--4, .grid--6 { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   4. Sur-titres et têtes de section
   -------------------------------------------------------------------------- */
.eyebrow {
  display: block;
  font-family: var(--font-titre);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vert);
  margin: 0 0 0.85rem;
}

.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p { color: var(--gris); font-size: var(--fs-lead); }
.section-head--center { margin-inline: auto; text-align: center; }

/* --------------------------------------------------------------------------
   5. Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-titre);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), transform 0.22s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--vert); color: #fff; }
.btn--primary:hover { background: var(--vert-fonce); color: #fff; box-shadow: 0 8px 20px -8px rgba(120, 167, 146, 0.7); }

.btn--ghost { background: #fff; color: var(--encre); border-color: var(--vert-clair); }
.btn--ghost:hover { background: var(--vert-brume); color: var(--encre); border-color: var(--vert); }

.btn--dark { background: var(--encre); color: #fff; }
.btn--dark:hover { background: #1f252c; color: #fff; }

.btn--blanc { background: #fff; color: var(--encre); }
.btn--blanc:hover { background: var(--vert-brume); color: var(--encre); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.arrow { transition: transform 0.22s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-titre); font-size: var(--fs-small); font-weight: 500;
  text-decoration: none; color: var(--vert-fonce);
}
.link-arrow:hover { color: var(--encre); }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.22s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   6. En-tête
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(140%) blur(12px);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 1px 22px rgba(46, 53, 62, 0.07); }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 88px;
}

.brand { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.brand img { max-height: 56px; width: auto; }
.brand__mark { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-titre);
  font-size: 1.65rem; font-weight: 600; letter-spacing: 0.005em; color: var(--vert-fonce);
}
.brand__name span { font-weight: 300; color: var(--vert-clair); }
.brand__baseline {
  font-family: var(--font-titre);
  font-size: 0.5625rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--vert); margin-top: 0.45rem;
}

.site-nav ul { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  position: relative; font-size: 0.9375rem; font-weight: 400;
  text-decoration: none; color: var(--encre-2); padding-block: 0.5rem;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--vert); border-radius: 2px;
  transition: width 0.24s var(--ease);
}
.site-nav a:hover { color: var(--encre); }
.site-nav a:hover::after,
.site-nav .current-menu-item > a::after,
.site-nav .current_page_parent > a::after { width: 100%; }
.site-nav .current-menu-item > a { color: var(--vert-fonce); }

.site-nav .sub-menu {
  position: absolute; display: none; flex-direction: column; min-width: 220px;
  padding: 0.5rem 0; background: #fff; border-radius: var(--r-card);
  border: 1px solid var(--trait); box-shadow: var(--ombre);
}
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: flex; }
.site-nav .sub-menu a { display: block; padding: 0.55rem 1.1rem; }
.site-nav .sub-menu a::after { display: none; }
.site-nav .sub-menu a:hover { background: var(--vert-brume); }

.header-actions { display: flex; align-items: center; gap: 0.85rem; }

.header-tel {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.9375rem; text-decoration: none; color: var(--encre-2); white-space: nowrap;
}
.header-tel svg { width: 18px; height: 18px; color: var(--vert); }
.header-tel:hover { color: var(--vert-fonce); }

.nav-toggle {
  display: none; width: 46px; height: 46px; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--trait-fort); border-radius: var(--r-pill); cursor: pointer;
}
.nav-toggle span { position: relative; display: block; width: 18px; height: 2px; background: var(--encre); border-radius: 2px; transition: background 0.2s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  background: var(--encre); border-radius: 2px; transition: transform 0.24s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .header-tel { display: none; }
  .site-header__inner { min-height: 74px; }
  .site-nav {
    position: fixed; inset: 74px 0 auto;
    max-height: calc(100dvh - 74px); overflow-y: auto;
    background: #fff; border-bottom: 1px solid var(--trait);
    box-shadow: var(--ombre);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1.5rem; }
  .site-nav li { border-bottom: 1px solid var(--trait); }
  .site-nav a { display: block; padding: 1rem 0; font-size: 1.0625rem; }
  .site-nav a::after { display: none; }
  .site-nav .sub-menu { position: static; display: flex; border: 0; box-shadow: none; padding: 0 0 0.5rem 1rem; }
  .header-actions .btn { display: none; }
}

/* --------------------------------------------------------------------------
   7. Bandeau d'accueil
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, #f1f6f4 0%, #f7f9f8 45%, #fdfdfd 100%);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.14; }

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(3rem, 7vw, 6rem);
  position: relative;
}

.hero h1 { margin-bottom: 1.15rem; font-weight: 500; }
.hero h1 .vert { color: var(--vert); display: block; }
.hero__lead { font-size: var(--fs-lead); color: var(--gris); max-width: 32rem; margin-bottom: 2.25rem; }
.hero .btn-row { margin-bottom: 2.75rem; }

.hero__meta { display: flex; flex-wrap: wrap; gap: 0 2.5rem; margin: 0; padding-top: 1.75rem; border-top: 1px solid var(--trait); }
.hero__meta div { padding-block: 0.3rem; }
.hero__meta dt { font-size: 0.6875rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gris-clair); margin-bottom: 0.25rem; }
.hero__meta dd { margin: 0; font-family: var(--font-titre); font-weight: 500; color: var(--encre); }

/* Visuel : lettrage « 3D » fantôme, trame de points, image client */
.hero__figure { position: relative; margin: 0; }
.hero__figure svg { width: 100%; height: auto; overflow: visible; }
.hero__photo { position: absolute; inset: 10% 8% 14% 14%; display: grid; place-items: center; }
.hero__photo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 40px rgba(46, 53, 62, 0.16)); }

.ghost-3d { fill: none; stroke: var(--vert-clair); stroke-width: 1.4; opacity: 0.45; }
.halo { fill: url(#tdm-halo); }
.dots { fill: var(--vert-clair); opacity: 0.6; }
.part-line { fill: none; stroke: var(--vert); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.part-fill { fill: var(--vert); opacity: 0.08; }

@media (prefers-reduced-motion: no-preference) {
  .hero__figure .draw { stroke-dasharray: var(--len, 900); stroke-dashoffset: var(--len, 900); animation: trace 1.6s var(--ease) 0.15s forwards; }
  .hero__figure .fade { opacity: 0; animation: apparait 0.8s var(--ease) 0.9s forwards; }
}
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes apparait { to { opacity: 1; } }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__figure { max-width: 460px; margin-top: 1rem; }
}

/* Bandeau des pages intérieures */
.page-hero {
  background: linear-gradient(160deg, #f1f6f4 0%, #f8faf9 60%, #fdfdfd 100%);
  position: relative; overflow: hidden;
}
.page-hero__inner { position: relative; padding-block: clamp(2.75rem, 6vw, 4.75rem); }
/* La contrainte de largeur porte sur le contenu, pas sur le conteneur :
   sinon .wrap (margin-inline:auto) recentrerait tout le bloc. */
.page-hero__inner > * { max-width: 46rem; }
.page-hero p { font-size: var(--fs-lead); color: var(--gris); margin-bottom: 0; }

.breadcrumb { font-size: 0.75rem; color: var(--gris-clair); margin-bottom: 1rem; }
.breadcrumb a { color: var(--gris); text-decoration: none; }
.breadcrumb a:hover { color: var(--vert-fonce); }
.breadcrumb span { padding-inline: 0.4rem; }

/* --------------------------------------------------------------------------
   8. Cartes
   -------------------------------------------------------------------------- */
.card {
  display: flex; flex-direction: column; gap: 0.6rem;
  padding: clamp(1.25rem, 2vw, 1.6rem);
  background: #fff;
  border: 1px solid var(--trait);
  border-radius: var(--r-card);
  transition: border-color 0.24s var(--ease), box-shadow 0.24s var(--ease), transform 0.24s var(--ease);
}
.card:hover { border-color: var(--vert-clair); box-shadow: var(--ombre-haute); transform: translateY(-3px); }

.card__icon {
  display: grid; place-items: center;
  width: 54px; height: 54px; margin-bottom: 0.55rem;
  border: 1px solid var(--vert-clair); border-radius: var(--r-pill);
  color: var(--vert); background: var(--vert-brume);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin: 0; font-size: 1.0625rem; font-weight: 500; }
.card p { color: var(--gris); font-size: var(--fs-small); line-height: 1.6; margin: 0; }
.card .link-arrow { margin-top: auto; padding-top: 0.5rem; }

/* Fiches détaillées de la page Services */
.service-row {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem); align-items: start;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: #fff; border: 1px solid var(--trait); border-radius: var(--r-card);
  margin-bottom: 1rem;
}
.service-row__icone {
  display: grid; place-items: center; width: 56px; height: 56px;
  border: 1px solid var(--vert-clair); border-radius: var(--r-pill);
  background: var(--vert-brume); color: var(--vert);
}
.service-row__icone svg { width: 26px; height: 26px; }
.service-row h3 { margin-bottom: 0.35rem; }
.service-row p { color: var(--gris); margin: 0; font-size: var(--fs-small); }
.service-row__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }

.tag {
  font-size: 0.75rem; color: var(--vert-fonce); background: var(--vert-brume);
  border: 1px solid var(--vert-voile); border-radius: var(--r-pill);
  padding: 0.22rem 0.7rem; text-decoration: none;
}
a.tag:hover { background: var(--vert-voile); color: var(--encre); }

@media (max-width: 820px) {
  .service-row { grid-template-columns: 56px minmax(0, 1fr); }
  .service-row > :last-child { grid-column: 2; }
}

/* Machines du parc */
.machine {
  padding: clamp(1.35rem, 2.2vw, 1.75rem);
  background: #fff;
  border: 1px solid var(--trait);
  border-radius: var(--r-card);
}
.machine--phare { border-color: var(--vert-clair); box-shadow: var(--ombre); }
.machine__tete { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 0.9rem; }
.machine__icone {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 48px; height: 48px; border-radius: var(--r-pill);
  border: 1px solid var(--vert-clair); background: var(--vert-brume); color: var(--vert);
}
.machine__icone svg { width: 24px; height: 24px; }
.machine h3 { margin: 0 0 0.25rem; font-size: 1.0625rem; }
.machine__course {
  margin: 0; font-size: 0.8125rem; font-weight: 500; color: var(--vert-fonce);
}
.machine > p { color: var(--gris); font-size: var(--fs-small); margin: 0; }

/* Outils de CFAO */
.cfao__baseline {
  margin-top: 1.5rem; font-style: italic; color: var(--vert-fonce); font-size: var(--fs-small);
}
.logiciels {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.logiciel {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; margin: 0; text-align: center;
  padding: clamp(1.5rem, 3vw, 2.25rem) 1.25rem;
  background: #fff; border: 1px solid var(--trait); border-radius: var(--r-card);
  transition: border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.logiciel:hover { border-color: var(--vert-clair); box-shadow: var(--ombre); }
/* Hauteur imposée pour que les deux marques pèsent pareil, quelles que
   soient leurs proportions d'origine. */
.logiciel img { width: auto; max-width: 100%; object-fit: contain; }
.logiciel figcaption { font-size: 0.8125rem; color: var(--gris); line-height: 1.45; }

@media (max-width: 480px) { .logiciels { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   9. Étapes (séquence réelle : la numérotation porte une information)
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1rem; }
.step {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 1.25rem;
  align-items: start; padding: 1.5rem 1.75rem;
  background: #fff; border: 1px solid var(--trait); border-radius: var(--r-card);
}
.step__num {
  counter-increment: step;
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: var(--r-pill); background: var(--vert); color: #fff;
  font-family: var(--font-titre); font-weight: 500; font-size: 0.9375rem;
}
.step__num::before { content: counter(step); }
.step h3 { margin-bottom: 0.3rem; font-size: 1.0625rem; }
.step p { color: var(--gris); margin: 0; font-size: var(--fs-small); }

@media (max-width: 560px) { .step { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   10. Chiffres clés
   -------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.stat__icone { color: var(--vert); margin-bottom: 0.85rem; }
.stat__icone svg { width: 34px; height: 34px; }
.stat__value {
  font-family: var(--font-titre); font-weight: 500;
  font-size: clamp(1.3rem, 1.9vw, 1.5rem); line-height: 1.2;
  color: var(--vert); letter-spacing: -0.015em;
}
.stat__label { margin-top: 0.35rem; font-size: var(--fs-small); color: var(--gris); line-height: 1.5; }

/* --------------------------------------------------------------------------
   11. Deux colonnes texte / visuel
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media img { width: 100%; border-radius: var(--r-media); }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split--reverse .split__media { order: 0; } }

/* Substitut d'image tant que le client n'a pas fourni ses photos */
.media-vide {
  aspect-ratio: 4 / 3; border-radius: var(--r-media);
  background: linear-gradient(150deg, var(--vert-voile), var(--fond-2));
  border: 1px solid var(--trait);
  display: grid; place-items: center; color: var(--vert-clair);
}
.media-vide svg { width: 30%; max-width: 130px; }

.checklist { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.checklist li { position: relative; padding-left: 1.9rem; color: var(--gris); font-size: var(--fs-small); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.38em;
  width: 17px; height: 17px; border-radius: var(--r-pill);
  background: var(--vert-brume); border: 1px solid var(--vert-clair);
}
.checklist li::after {
  content: ""; position: absolute; left: 5px; top: 0.7em;
  width: 6px; height: 3px; border-left: 1.5px solid var(--vert); border-bottom: 1.5px solid var(--vert);
  transform: rotate(-45deg);
}
.checklist strong { color: var(--encre); font-weight: 500; }

/* Bloc d'informations tabulé */
.cartouche { border: 1px solid var(--trait); border-radius: var(--r-card); background: #fff; overflow: hidden; }
.cartouche__row { display: grid; grid-template-columns: 38% minmax(0, 1fr); border-bottom: 1px solid var(--trait); }
.cartouche__row:last-child { border-bottom: 0; }
.cartouche__key { padding: 0.9rem 1.1rem; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gris-clair); background: var(--vert-brume); }
.cartouche__val { padding: 0.9rem 1.1rem; font-size: var(--fs-small); color: var(--encre-2); }
.cartouche__val a { text-decoration: none; }
.cartouche__val a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   12. Réalisations
   -------------------------------------------------------------------------- */
.work {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--trait); border-radius: var(--r-card); overflow: hidden;
  transition: box-shadow 0.24s var(--ease), transform 0.24s var(--ease), border-color 0.24s var(--ease);
}
.work:hover { transform: translateY(-3px); box-shadow: var(--ombre-haute); border-color: var(--vert-clair); color: inherit; }

.work__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--vert-brume); }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.work:hover .work__media img { transform: scale(1.04); }
.work__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--vert-voile), var(--fond-2)); color: var(--vert-clair);
}
.work__placeholder svg { width: 40%; max-width: 110px; }

.work__body { padding: 1.25rem 1.4rem 1.5rem; }
.work__cat { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--vert); margin-bottom: 0.5rem; }
.work h3 { font-size: 1.0625rem; margin-bottom: 0.35rem; }
.work p { font-size: var(--fs-small); color: var(--gris); margin: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.25rem; }
.filter {
  font-size: 0.875rem; padding: 0.5rem 1.1rem;
  border: 1px solid var(--trait-fort); border-radius: var(--r-pill);
  background: #fff; color: var(--encre-2); text-decoration: none;
  transition: all 0.2s var(--ease);
}
.filter:hover { border-color: var(--vert); color: var(--vert-fonce); }
.filter.is-active { background: var(--vert); border-color: var(--vert); color: #fff; }

/* --------------------------------------------------------------------------
   13. Bandeau d'appel à l'action
   -------------------------------------------------------------------------- */
.cta-band { padding-block: 0 var(--section-y); }
.cta-band__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2.5rem;
  padding: clamp(2.25rem, 4vw, 3.25rem) clamp(1.75rem, 4vw, 3.5rem);
  background: var(--vert); border-radius: var(--r-band); color: rgba(255, 255, 255, 0.92);
  position: relative; overflow: hidden;
}
.cta-band__inner::after {
  content: ""; position: absolute; right: -70px; top: -90px;
  width: 320px; height: 320px; border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, 0.08);
  pointer-events: none; /* sinon le cercle passe au-dessus du bouton et bloque le clic */
}
.cta-band .btn-row { z-index: 2; }
.cta-band h2 { color: #fff; margin-bottom: 0.5rem; position: relative; }
.cta-band p { max-width: 34rem; margin: 0; position: relative; font-size: var(--fs-small); }
.cta-band .btn-row { position: relative; flex: 0 0 auto; }

@media (max-width: 800px) { .cta-band__inner { flex-direction: column; align-items: flex-start; } }

/* --------------------------------------------------------------------------
   14. Formulaire
   -------------------------------------------------------------------------- */
.form-shell { background: #fff; border: 1px solid var(--trait); border-radius: var(--r-media); padding: clamp(1.5rem, 3vw, 2.5rem); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.field { display: flex; flex-direction: column; gap: 0.4rem; margin: 0; }
.field label { font-size: 0.8125rem; font-weight: 500; color: var(--encre); }
.field label .req { color: var(--vert); }

.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="file"], .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: var(--fs-body); color: var(--encre);
  background: var(--fond-2); border: 1px solid var(--trait-fort); border-radius: var(--r-input);
  padding: 0.8rem 1rem; transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus {
  background: #fff; border-color: var(--vert); outline: none; box-shadow: 0 0 0 3px rgba(120, 167, 146, 0.18);
}
.field input[type="file"] { padding: 0.6rem; font-size: var(--fs-small); cursor: pointer; }
.field .hint { font-size: 0.75rem; color: var(--gris-clair); }

.mention-rgpd {
  margin: 0.25rem 0 0; font-size: 0.8125rem; color: var(--gris-clair); line-height: 1.55;
}

.pot { position: absolute !important; left: -9999px !important; }

.notice {
  padding: 1rem 1.15rem; border-radius: var(--r-card); border-left: 3px solid;
  font-size: var(--fs-small); margin-bottom: 1.75rem;
}
.notice--ok { background: var(--succes-fond); border-color: var(--succes); color: var(--succes); }
.notice--ko { background: var(--erreur-fond); border-color: var(--erreur); color: var(--erreur); }
.notice ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.notice strong { display: block; margin-bottom: 0.15rem; }

.map-frame { border: 1px solid var(--trait); border-radius: var(--r-media); overflow: hidden; line-height: 0; background: var(--fond-2); }
.map-frame iframe { width: 100%; height: 320px; border: 0; }

/* --------------------------------------------------------------------------
   15. Blog
   -------------------------------------------------------------------------- */
.post-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--trait); border-radius: var(--r-card); overflow: hidden;
  transition: box-shadow 0.24s var(--ease), transform 0.24s var(--ease), border-color 0.24s var(--ease);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--ombre-haute); border-color: var(--vert-clair); }
.post-card__media { aspect-ratio: 16 / 10; background: var(--vert-brume); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.35rem 1.45rem 1.5rem; flex: 1; }
.post-card h2, .post-card h3 { font-size: 1.0625rem; margin: 0; }
.post-card h2 a, .post-card h3 a { color: inherit; text-decoration: none; }
.post-card p { font-size: var(--fs-small); color: var(--gris); margin: 0; }
.post-card .link-arrow { margin-top: auto; padding-top: 0.4rem; }

.meta { font-size: 0.75rem; color: var(--gris-clair); display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.meta a { color: var(--vert-fonce); text-decoration: none; }

.entry-content { font-size: 1.0625rem; }
.entry-content > * { margin-bottom: 1.35em; }
.entry-content h2 { margin-top: 2.1em; font-size: 1.625rem; }
.entry-content h3 { margin-top: 1.8em; font-size: 1.25rem; }
.entry-content img, .entry-content figure { border-radius: var(--r-media); }
.entry-content figcaption { font-size: 0.8125rem; color: var(--gris-clair); margin-top: 0.6rem; }
.entry-content li { margin-bottom: 0.45em; }
.alignwide { max-width: min(1120px, 92vw); margin-inline: auto; }
.alignfull { max-width: 100vw; margin-inline: calc(50% - 50vw); }
.alignleft { float: left; margin: 0.4rem 1.75rem 1.25rem 0; max-width: 45%; }
.alignright { float: right; margin: 0.4rem 0 1.25rem 1.75rem; max-width: 45%; }
.aligncenter { margin-inline: auto; }
.wp-caption-text { font-size: 0.8125rem; color: var(--gris-clair); }
.sticky .post-card { border-color: var(--vert); }

.pagination { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 3rem; justify-content: center; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding-inline: 0.6rem;
  font-size: 0.9375rem; text-decoration: none; color: var(--encre-2);
  border: 1px solid var(--trait-fort); border-radius: var(--r-pill); background: #fff;
}
.pagination .page-numbers:hover { border-color: var(--vert); color: var(--vert-fonce); }
.pagination .current { background: var(--vert); border-color: var(--vert); color: #fff; }

.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 3rem; }
.post-nav a { display: block; padding: 1.15rem 1.35rem; border: 1px solid var(--trait); border-radius: var(--r-card); text-decoration: none; background: #fff; transition: border-color 0.2s var(--ease); }
.post-nav a:hover { border-color: var(--vert-clair); }
.post-nav small { display: block; font-size: 0.75rem; color: var(--gris-clair); margin-bottom: 0.3rem; }
.post-nav span { font-family: var(--font-titre); font-weight: 500; color: var(--encre); }
.post-nav .is-next { text-align: right; }
@media (max-width: 600px) { .post-nav { grid-template-columns: minmax(0, 1fr); } .post-nav .is-next { text-align: left; } }

.searchform { display: flex; gap: 0.5rem; }
.searchform input[type="search"] {
  flex: 1; font-family: inherit; font-size: var(--fs-body); padding: 0.8rem 1rem;
  background: var(--fond-2); border: 1px solid var(--trait-fort); border-radius: var(--r-pill);
}
.searchform input[type="search"]:focus { background: #fff; border-color: var(--vert); outline: none; }

.comments-area { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--trait); }
.comment-list { list-style: none; margin: 0 0 2.5rem; padding: 0; }
.comment-list li { margin-bottom: 1.5rem; }
.comment-list .children { list-style: none; margin: 1.25rem 0 0 1.5rem; padding-left: 1.25rem; border-left: 2px solid var(--trait); }
.comment-body { background: var(--fond-2); border-radius: var(--r-card); padding: 1.15rem 1.35rem; }
.comment-meta { font-size: 0.8125rem; color: var(--gris-clair); margin-bottom: 0.5rem; }
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea {
  width: 100%; font-family: inherit; font-size: var(--fs-body); padding: 0.8rem 1rem;
  background: var(--fond-2); border: 1px solid var(--trait-fort); border-radius: var(--r-input);
}
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--encre); margin-bottom: 0.35rem; }
.comment-form input[type="submit"] {
  padding: 0.85rem 1.6rem; background: var(--vert); color: #fff;
  font-family: var(--font-titre); font-weight: 500; font-size: 0.9375rem;
  border: 0; border-radius: var(--r-pill); cursor: pointer;
}
.comment-form input[type="submit"]:hover { background: var(--vert-fonce); }

/* --------------------------------------------------------------------------
   16. Pied de page
   -------------------------------------------------------------------------- */
.site-footer { background: var(--blanc); border-top: 1px solid var(--trait); font-size: var(--fs-small); color: var(--gris); }
.site-footer__top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3rem); padding-block: clamp(2.75rem, 5vw, 4rem);
}
@media (max-width: 900px) { .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .site-footer__top { grid-template-columns: minmax(0, 1fr); } }

.site-footer h2 {
  font-family: var(--font-titre); font-size: 0.9375rem; font-weight: 500;
  letter-spacing: 0; text-transform: none; color: var(--encre); margin-bottom: 1.1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.site-footer a { color: var(--gris); text-decoration: none; }
.site-footer a:hover { color: var(--vert-fonce); }
.site-footer__intro { margin: 1.25rem 0 0; max-width: 24rem; line-height: 1.7; }

.footer-contact li { display: flex; align-items: flex-start; gap: 0.6rem; }
.footer-contact svg { width: 17px; height: 17px; color: var(--vert); flex: 0 0 auto; margin-top: 0.2rem; }

.socials { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--vert); color: #fff; transition: background 0.2s var(--ease);
}
.socials a:hover { background: var(--vert-fonce); color: #fff; }
.socials svg { width: 18px; height: 18px; }

.site-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding-block: 1.35rem; border-top: 1px solid var(--trait);
  font-size: 0.8125rem; color: var(--gris-clair);
}
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer__bottom p { margin: 0; }

/* --------------------------------------------------------------------------
   17. Révélation au défilement (masquage conditionné à la présence de JS)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .reveal-stagger > * { opacity: 0; transform: translateY(16px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
  .js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
  .js .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.06s; }
  .js .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.12s; }
  .js .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.18s; }
  .js .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.24s; }
  .js .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.3s; }
  .js .reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.36s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------------------------
   18. Divers
   -------------------------------------------------------------------------- */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none !important; }
  body { color: #000; background: #fff; }
}
