/* ==========================================================================
   Bâtiments Espaces Verts SARL — feuille de style
   Couleurs issues du logo officiel. Contrastes vérifiés AA (RGAA / WCAG 2.1).
   ========================================================================== */

:root {
  --vert: #62b600;          /* vert clair du logo — accent, jamais du texte sur blanc */
  --vert-logo: #3a8c1a;     /* vert foncé du logo */
  --vert-fonce: #2f7d14;    /* boutons / liens — 5,1:1 sur blanc */
  --vert-nuit: #163d0b;
  --bleu: #106287;          /* bleu du logo — 6,9:1 sur blanc */
  --bleu-fonce: #0b3a52;
  --bleu-nuit: #072a3c;
  --texte: #18231d;
  --texte-doux: #4d5a53;
  --fond: #ffffff;
  --fond-doux: #f4f8f1;
  --creme: #fafbf7;
  --bordure: #e2eadb;
  --rayon: 18px;
  --rayon-s: 12px;
  --ombre-s: 0 2px 8px rgba(11, 58, 82, .06);
  --ombre: 0 18px 40px -12px rgba(11, 58, 82, .22);
  --max: 1200px;
  --police: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --police-titre: "Archivo", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--vert-fonce); text-underline-offset: 3px; }
a:hover { color: var(--vert-nuit); }

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

h1, h2, h3 {
  font-family: var(--police-titre);
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--bleu-nuit);
  margin: 0 0 .55em;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.conteneur { width: min(100% - 32px, var(--max)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.evitement {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--bleu); color: #fff; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.evitement:focus { top: 12px; color: #fff; }

/* Petit titre au-dessus des h2 */
.etiquette {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--vert-fonce); font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; font-size: .78rem; margin-bottom: 14px;
}
.etiquette::before { content: ""; width: 28px; height: 2px; background: var(--vert); border-radius: 2px; }
.etiquette.claire { color: #b9ec7c; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1em 1.7em; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; font-size: 1rem; font-family: inherit; line-height: 1.2;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }
.btn-principal { background: var(--vert-fonce); color: #fff; box-shadow: 0 10px 24px -10px rgba(47,125,20,.7); }
.btn-principal:hover { background: var(--vert-nuit); color: #fff; }
.btn-blanc { background: #fff; color: var(--bleu-nuit); }
.btn-blanc:hover { background: var(--fond-doux); color: var(--bleu-nuit); }
.btn-contour { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-contour:hover { background: rgba(255,255,255,.16); color: #fff; border-color: #fff; }

/* ---------- Barre d'infos ---------- */
.barre-infos { background: var(--bleu-nuit); color: #cfe0ea; font-size: .86rem; }
.barre-infos .conteneur { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; }
.barre-infos ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.barre-infos li { display: flex; align-items: center; gap: 8px; }
.barre-infos svg { width: 15px; height: 15px; color: var(--vert); }
.barre-infos a { color: #fff; text-decoration: none; font-weight: 600; }
.barre-infos a:hover { color: #b9ec7c; }
.barre-infos .badge-devis { color: #b9ec7c; font-weight: 600; }
@media (max-width: 860px) { .barre-infos { display: none; } }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(160%) blur(10px);
  transition: box-shadow .3s;
}
.entete.defile { box-shadow: 0 6px 24px -10px rgba(7,42,60,.25); }
.entete .conteneur {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 92px; padding-block: 8px;
}
.marque { display: flex; align-items: center; text-decoration: none; }
.marque-bloc { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.marque .logo { height: 58px; width: auto; }
.slogan {
  font-family: var(--police-titre); font-weight: 300; color: var(--bleu);
  font-size: .84rem; letter-spacing: .01em; line-height: 1.1; white-space: nowrap;
}

.nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; align-items: center; }
.nav a:not(.btn) {
  position: relative; display: block; padding: .55em .85em;
  color: var(--texte); text-decoration: none; font-weight: 600; font-size: .96rem;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: .85em; right: .85em; bottom: .25em; height: 2px;
  background: var(--vert); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover { color: var(--vert-fonce); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav .btn { margin-left: 10px; padding: .8em 1.4em; }

.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--bleu-nuit); }
.burger svg { width: 28px; height: 28px; }

@media (max-width: 980px) {
  .burger { display: block; }
  .nav {
    position: absolute; inset: 100% 0 auto 0; background: #fff;
    border-top: 1px solid var(--bordure); box-shadow: var(--ombre); display: none;
  }
  .nav.ouvert { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px 16px 20px; }
  .nav a:not(.btn) { padding: .9em 1em; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin: 10px 0 0; }
}
@media (max-width: 420px) { .marque .logo { height: 46px; } .slogan { font-size: .72rem; } }

/* ---------- Héros ---------- */
.heros {
  position: relative; isolation: isolate; color: #fff;
  min-height: min(86vh, 760px); display: flex; align-items: center;
  padding: 96px 0 150px;
}
.heros-fond { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.heros-fond img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; animation: zoom-lent 18s ease-out both; }
.heros::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7,42,60,.92) 0%, rgba(7,42,60,.72) 42%, rgba(7,42,60,.15) 100%),
    linear-gradient(0deg, rgba(7,42,60,.55) 0%, transparent 40%);
}
@keyframes zoom-lent { from { transform: scale(1.08); } to { transform: scale(1); } }

.heros-contenu { max-width: 680px; }
.heros h1 { color: #fff; margin-bottom: .35em; }
.heros h1 em { font-style: normal; color: var(--vert); }
.heros .pastille {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: .45em 1em .45em .5em; border-radius: 999px; font-weight: 600; font-size: .9rem;
  margin-bottom: 24px; backdrop-filter: blur(6px);
}
.heros .pastille span { background: var(--vert); color: var(--bleu-nuit); border-radius: 999px; padding: .1em .65em; font-weight: 800; font-size: .78rem; }
.heros .chapo { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: #e3edf2; max-width: 34em; }
.heros .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Bande de confiance qui chevauche le héros */
.confiance { position: relative; z-index: 2; margin-top: -84px; }
.confiance ul {
  list-style: none; margin: 0; padding: 10px;
  background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.confiance li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.confiance li + li { border-left: 1px solid var(--bordure); }
.confiance .ico {
  flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--fond-doux), #e4f2d6); color: var(--vert-fonce);
}
.confiance .ico svg { width: 24px; height: 24px; }
.confiance strong { display: block; font-family: var(--police-titre); color: var(--bleu-nuit); font-size: 1.02rem; line-height: 1.25; }
.confiance .sous { font-size: .86rem; color: var(--texte-doux); line-height: 1.35; display: block; }
@media (max-width: 980px) {
  .confiance ul { grid-template-columns: 1fr 1fr; }
  .confiance li:nth-child(3) { border-left: 0; }
  .confiance li:nth-child(n+3) { border-top: 1px solid var(--bordure); }
}
@media (max-width: 560px) {
  .confiance ul { grid-template-columns: 1fr; }
  .confiance li + li { border-left: 0; border-top: 1px solid var(--bordure); }
}

/* ---------- Sections ---------- */
section { scroll-margin-top: 100px; }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-douce { background: var(--fond-doux); }
.entete-section { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.entete-section .etiquette::after { content: ""; width: 28px; height: 2px; background: var(--vert); border-radius: 2px; }
.entete-section p { color: var(--texte-doux); font-size: 1.12rem; }

/* ---------- Services (cartes photo) ---------- */
.grille-services { display: grid; gap: 26px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grille-services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grille-services { grid-template-columns: 1fr; } }

.service {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--rayon); overflow: hidden;
  box-shadow: var(--ombre-s); border: 1px solid var(--bordure);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--ombre); }
.service .photo { position: relative; aspect-ratio: 16 / 11; }
.service .photo .cadre { position: absolute; inset: 0; overflow: hidden; }
.service .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service:hover .photo img { transform: scale(1.07); }
.service .photo .cadre::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,42,60,.35), transparent 50%); }
.service .ico {
  position: absolute; left: 22px; bottom: -26px; z-index: 1;
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--vert-fonce); color: #fff; box-shadow: 0 10px 20px -8px rgba(47,125,20,.7);
}
.service .ico svg { width: 26px; height: 26px; }
.service .corps { padding: 42px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.service h3 { margin-bottom: .4em; }
.service p { color: var(--texte-doux); font-size: .98rem; }
.service ul { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.service li { font-size: .82rem; font-weight: 600; color: var(--bleu); background: #eef5f9; padding: .3em .8em; border-radius: 999px; }
.service .lien {
  margin-top: auto; display: inline-flex; align-items: center; gap: .4em;
  font-weight: 700; text-decoration: none; color: var(--vert-fonce);
}
.service .lien svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.service:hover .lien svg { transform: translateX(4px); }
.service .lien::after { content: ""; position: absolute; inset: 0; } /* toute la carte cliquable */

.aussi { margin-top: 44px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 12px; }
.aussi strong { color: var(--bleu-nuit); margin-right: 4px; }
.aussi span { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--bordure); padding: .5em 1em; border-radius: 999px; font-weight: 600; font-size: .92rem; }
.aussi span svg { width: 16px; height: 16px; color: var(--vert-fonce); }

/* ---------- L'entreprise ---------- */
.apropos { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (max-width: 900px) { .apropos { grid-template-columns: 1fr; } }
.apropos-visuel { position: relative; padding: 0 0 40px 40px; }
.apropos-visuel::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 72%; height: 78%;
  background: var(--vert); border-radius: var(--rayon); opacity: .9;
}
.apropos-visuel::after {
  content: ""; position: absolute; right: -14px; top: -14px; width: 120px; height: 120px;
  background-image: radial-gradient(var(--bleu) 2px, transparent 2.5px); background-size: 16px 16px; opacity: .35;
}
.apropos-visuel img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--rayon); box-shadow: var(--ombre); }
.badge-exp {
  position: absolute; z-index: 2; right: 24px; bottom: 6px;
  background: var(--bleu-nuit); color: #fff; border-radius: var(--rayon-s);
  padding: 18px 22px; display: flex; align-items: center; gap: 14px; box-shadow: var(--ombre);
}
.badge-exp strong { font-family: var(--police-titre); font-size: 2.6rem; line-height: 1; color: var(--vert); }
.badge-exp span { font-size: .9rem; line-height: 1.3; font-weight: 600; }
.apropos-texte > p { color: var(--texte-doux); font-size: 1.08rem; }

.atouts { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; }
@media (max-width: 560px) { .atouts { grid-template-columns: 1fr; } }
.atouts li { display: flex; gap: 14px; }
.atouts .coche {
  flex: none; width: 30px; height: 30px; border-radius: 50%; background: #e6f4d8; color: var(--vert-fonce);
  display: grid; place-items: center; margin-top: 2px;
}
.atouts .coche svg { width: 16px; height: 16px; }
.atouts h3 { margin-bottom: .15em; font-size: 1.05rem; }
.atouts p { margin: 0; color: var(--texte-doux); font-size: .95rem; line-height: 1.55; }

/* ---------- Chiffres ---------- */
.chiffres { background: var(--bleu-nuit); color: #fff; padding: 60px 0; position: relative; overflow: hidden; }
.chiffres::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  border: 40px solid rgba(98,182,0,.12);
}
.chiffres ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
@media (max-width: 760px) { .chiffres ul { grid-template-columns: 1fr 1fr; } }
.chiffres li { text-align: center; }
.chiffres strong { display: block; font-family: var(--police-titre); font-size: clamp(2.4rem, 4.5vw, 3.4rem); line-height: 1; color: var(--vert); margin-bottom: 8px; }
.chiffres span { color: #cfe0ea; font-weight: 600; font-size: .95rem; }

/* ---------- Méthode ---------- */
.etapes { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; grid-template-columns: repeat(4, 1fr); position: relative; }
.etapes::before {
  content: ""; position: absolute; top: 36px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--vert) 0 10px, transparent 10px 18px);
}
@media (max-width: 900px) { .etapes { grid-template-columns: 1fr 1fr; } .etapes::before { display: none; } }
@media (max-width: 520px) { .etapes { grid-template-columns: 1fr; } }
.etapes li { text-align: center; position: relative; }
.etapes .num {
  width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: #fff; border: 2px solid var(--vert); color: var(--bleu-nuit);
  font-family: var(--police-titre); font-weight: 800; font-size: 1.5rem;
  box-shadow: 0 0 0 8px var(--fond-doux);
  transition: background .3s, color .3s;
}
.etapes li:hover .num { background: var(--vert-fonce); color: #fff; border-color: var(--vert-fonce); }
.etapes p { margin: 0 auto; color: var(--texte-doux); max-width: 240px; font-size: .97rem; }

/* ---------- Crédit d'impôt ---------- */
.credit {
  display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
  background: linear-gradient(120deg, #eaf6dd 0%, #f6fbf1 100%);
  border: 1px solid #d3e9bd; border-radius: var(--rayon); padding: 36px clamp(24px, 4vw, 48px);
  margin-top: 72px;
}
.credit .pourcent {
  width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center;
  background: var(--vert-fonce); color: #fff; font-family: var(--police-titre); font-weight: 800; font-size: 2.2rem;
  box-shadow: 0 0 0 10px rgba(98,182,0,.18);
}
.credit h3 { font-size: 1.45rem; margin-bottom: .3em; }
.credit p { margin: 0; color: var(--texte-doux); }
.credit small { display: block; margin-top: 8px; color: var(--texte-doux); font-size: .82rem; }
@media (max-width: 760px) { .credit { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* ---------- Bandeau appel à l'action ---------- */
.appel {
  position: relative; isolation: isolate; color: #fff; text-align: center;
  padding: clamp(80px, 10vw, 130px) 0; overflow: hidden;
}
.appel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.appel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(22,61,11,.9), rgba(7,42,60,.82)); }
.appel h2 { color: #fff; max-width: 820px; margin-inline: auto; }
.appel p { color: #e3edf2; font-size: 1.15rem; max-width: 620px; margin: 0 auto 34px; }
.appel .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ---------- Réalisations ---------- */
.galerie { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .galerie { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .galerie { grid-template-columns: 1fr; } }
.galerie figure { margin: 0; }
.galerie img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; border-radius: var(--rayon); }
.galerie .visuel {
  aspect-ratio: 4 / 3; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center;
  color: var(--bleu); font-weight: 600; font-size: .9rem; padding: 16px;
  border: 2px dashed #c7d8bb; border-radius: var(--rayon); background: var(--creme);
}
.galerie .visuel svg { width: 34px; height: 34px; color: #9fbf86; }
.galerie figcaption { padding: 14px 4px 0; font-weight: 700; color: var(--bleu-nuit); }
.galerie figcaption span { display: block; font-weight: 500; color: var(--texte-doux); font-size: .9rem; }

/* ---------- Zone ---------- */
.zone-carte {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: #fff; border-radius: var(--rayon); padding: clamp(28px, 5vw, 56px); box-shadow: var(--ombre-s); border: 1px solid var(--bordure);
}
@media (max-width: 800px) { .zone-carte { grid-template-columns: 1fr; } }
.zone-carte p { color: var(--texte-doux); margin: 0; }
.zone-carte h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.communes { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.communes li { display: inline-flex; align-items: center; gap: 8px; background: var(--fond-doux); padding: .5em 1em; border-radius: 999px; font-weight: 600; color: var(--bleu-nuit); }
.communes li svg { width: 15px; height: 15px; color: var(--vert-fonce); }

/* ---------- FAQ ---------- */
.faq-grille { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .faq-grille { grid-template-columns: 1fr; } }
.faq-intro { position: sticky; top: 120px; }
@media (max-width: 900px) { .faq-intro { position: static; } }
.faq-intro > p { color: var(--texte-doux); }
.carte-aide { margin-top: 28px; background: var(--bleu-nuit); color: #cfe0ea; border-radius: var(--rayon); padding: 28px; }
.carte-aide h3 { color: #fff; }
.carte-aide p { margin-bottom: .6em; }
.carte-aide a.tel { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: var(--police-titre); font-size: 1.4rem; font-weight: 800; text-decoration: none; }
.carte-aide a.tel svg { width: 22px; height: 22px; color: var(--vert); }
.faq details { background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon-s); margin-bottom: 12px; transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--ombre-s); border-color: #cfe3bf; }
.faq summary {
  cursor: pointer; padding: 20px 24px; font-weight: 700; color: var(--bleu-nuit); font-size: 1.04rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--fond-doux); color: var(--vert-fonce); font-size: 1.3rem; font-weight: 600; line-height: 1;
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--vert-fonce); color: #fff; }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--texte-doux); }

/* ---------- Contact ---------- */
.contact-grille {
  display: grid; grid-template-columns: .9fr 1.3fr; border-radius: calc(var(--rayon) + 4px); overflow: hidden;
  box-shadow: var(--ombre); background: #fff;
}
@media (max-width: 900px) { .contact-grille { grid-template-columns: 1fr; } }
.contact-infos {
  position: relative; isolation: isolate; color: #e3edf2; padding: clamp(32px, 5vw, 52px);
  background: linear-gradient(160deg, var(--bleu-fonce), var(--bleu-nuit));
  overflow: hidden;
}
.contact-infos::after {
  content: ""; position: absolute; right: -90px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%;
  border: 36px solid rgba(98,182,0,.16); z-index: -1;
}
.contact-infos h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.coordonnees { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 22px; }
.coordonnees li { display: flex; gap: 16px; align-items: flex-start; line-height: 1.5; }
.coordonnees .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.coordonnees svg { width: 20px; height: 20px; color: var(--vert); }
.coordonnees small { display: block; color: #9fbccc; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.coordonnees a { color: #fff; font-weight: 600; text-decoration: none; }
.coordonnees a:hover { color: #b9ec7c; }

.formulaire { padding: clamp(28px, 5vw, 52px); }
.formulaire h3 { font-size: 1.4rem; }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .champs { grid-template-columns: 1fr; } }
.champ { display: flex; flex-direction: column; gap: 7px; }
.champ.large { grid-column: 1 / -1; }
.champ label { font-weight: 600; font-size: .92rem; color: var(--bleu-nuit); }
.champ .obligatoire { color: #b3261e; }
.champ input, .champ select, .champ textarea {
  font: inherit; font-size: 1rem; padding: .85em 1em; border: 1.5px solid #cfdac8; border-radius: 10px;
  background: var(--creme); color: var(--texte); transition: border-color .2s, background .2s, box-shadow .2s;
}
.champ input:hover, .champ select:hover, .champ textarea:hover { border-color: #a9bd9c; }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  border-color: var(--vert-fonce); background: #fff; outline: none; box-shadow: 0 0 0 4px rgba(98,182,0,.25);
}
.champ textarea { min-height: 140px; resize: vertical; }
.consentement { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--texte-doux); margin: 22px 0; line-height: 1.5; }
.consentement input { margin-top: 3px; width: 19px; height: 19px; flex: none; accent-color: var(--vert-fonce); }
.formulaire .btn { width: 100%; }
.mention-form { font-size: .8rem; color: var(--texte-doux); margin: 16px 0 0; line-height: 1.5; }
.message-form { margin-top: 14px; padding: 12px 16px; border-radius: 10px; font-weight: 600; display: none; }
.message-form.ok { display: block; background: #e5f4d9; color: var(--vert-nuit); }
.message-form.erreur { display: block; background: #fbe4e2; color: #8c1d16; }
.piege { position: absolute; left: -9999px; }

/* ---------- Pied de page ---------- */
.pied { background: var(--bleu-nuit); color: #b7cdd9; padding: 72px 0 28px; font-size: .95rem; }
.pied a { color: #e3edf2; text-decoration: none; }
.pied a:hover { color: #b9ec7c; }
.pied .colonnes { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .pied .colonnes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pied .colonnes { grid-template-columns: 1fr; } }
.pied h2 { color: #fff; font-size: 1rem; margin-bottom: 18px; letter-spacing: 0; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.logo-pied { height: 76px; width: auto; background: #fff; border-radius: 14px; padding: 12px 16px; box-sizing: content-box; margin-bottom: 18px; }
.pied .bas {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 52px; padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .85rem;
}
.pied .bas p { margin: 0; }
.pied .bas ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- Pages légales ---------- */
.page-legale { padding: 64px 0 96px; background: var(--fond-doux); }
.page-legale .conteneur { max-width: 860px; background: #fff; border-radius: var(--rayon); padding: clamp(28px, 5vw, 56px); box-shadow: var(--ombre-s); }
.page-legale h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-legale h2 { font-size: 1.35rem; margin-top: 2em; }
.page-legale .a-completer { background: #fff3c4; padding: 0 .3em; border-radius: 4px; }

/* ---------- Bouton WhatsApp flottant ---------- */
.appel-mobile {
  display: grid; position: fixed; right: 16px; bottom: 16px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: var(--vert-fonce); color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.28); place-items: center;
}
.appel-mobile::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--vert); animation: pulse 2.4s infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.5); opacity: 0; } }
.appel-mobile svg { width: 26px; height: 26px; }

/* ---------- Apparition au défilement ---------- */
.js .revele { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .revele.visible { opacity: 1; transform: none; }
.js .revele[data-delai="1"] { transition-delay: .1s; }
.js .revele[data-delai="2"] { transition-delay: .2s; }
.js .revele[data-delai="3"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .revele { opacity: 1; transform: none; }
}

/* Lien réseau social (pied de page) */
.pied .reseau { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; margin-top: 4px; }
.pied .reseau svg { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; transition: background .2s; }
.pied .reseau:hover svg { background: #1877f2; }

/* Carte service sans photo (dératisation) */
.service .cadre-uni { background: radial-gradient(circle at 70% 30%, #1d6b8f, var(--bleu-nuit)); }
.service .cadre-uni::before {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: radial-gradient(#fff 1.5px, transparent 2px); background-size: 18px 18px;
}

/* Section formation */
.formation { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (max-width: 900px) { .formation { grid-template-columns: 1fr; } .formation-visuel { max-width: 360px; margin-inline: auto; } }
.formation-visuel img { width: 100%; height: auto; border-radius: var(--rayon); box-shadow: var(--ombre); transform: rotate(-2deg); }
.formation > div > p { color: var(--texte-doux); font-size: 1.08rem; }

/* ==========================================================================
   Boutique — catalogue des plantes
   ========================================================================== */
.nav a[aria-current="page"] { color: var(--vert-fonce); }
.bandeau-page {
  position: relative; overflow: hidden; color: #fff; padding: clamp(48px, 7vw, 84px) 0;
  background: radial-gradient(circle at 85% 20%, rgba(98,182,0,.35), transparent 45%), linear-gradient(135deg, var(--bleu-nuit), var(--bleu-fonce) 55%, var(--vert-nuit));
}
.bandeau-page h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); }
.bandeau-page p { color: #dbe8ef; max-width: 640px; font-size: 1.1rem; }
.fil { font-size: .9rem; color: #b7cdd9; margin-bottom: 14px; }
.fil a { color: #fff; }
.atouts-boutique { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.atouts-boutique li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }
.atouts-boutique svg { width: 18px; height: 18px; color: var(--vert); }

.boutique { padding-top: 48px; }
.barre-filtres { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.filtres { display: flex; flex-wrap: wrap; gap: 8px; }
.filtre {
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  padding: .55em 1.15em; border-radius: 999px; border: 1.5px solid var(--bordure); background: #fff; color: var(--bleu-nuit);
  transition: background .2s, border-color .2s, color .2s;
}
.filtre:hover { border-color: var(--vert-fonce); }
.filtre[aria-pressed="true"] { background: var(--vert-fonce); border-color: var(--vert-fonce); color: #fff; }
.compteur { margin: 0; color: var(--texte-doux); font-weight: 600; }

.grille-plantes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.plante {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon);
  overflow: hidden; box-shadow: var(--ombre-s); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.plante:hover { transform: translateY(-5px); box-shadow: var(--ombre); }
.plante[hidden] { display: none; }
.plante-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--fond-doux); }
.plante-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.plante:hover .plante-photo img { transform: scale(1.05); }
.plante-badges { position: absolute; left: 12px; top: 12px; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.plante-badges li { background: rgba(255,255,255,.94); color: var(--bleu-nuit); font-size: .74rem; font-weight: 700; padding: .25em .7em; border-radius: 999px; }
.plante-corps { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.plante h3 { font-size: 1.12rem; margin-bottom: .1em; }
.plante-latin { font-style: italic; color: var(--texte-doux); font-size: .88rem; margin: 0 0 .6em; }
.plante-desc { color: var(--texte-doux); font-size: .93rem; line-height: 1.55; margin-bottom: .8em; }
.plante-soins { list-style: none; padding: 0; margin: 0 0 .8em; display: grid; gap: 6px; font-size: .86rem; color: var(--texte); }
.plante-soins li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.plante-soins svg { flex: none; width: 17px; height: 17px; color: var(--vert-fonce); margin-top: 1px; }
.plante-pot { font-size: .84rem; color: var(--bleu); font-weight: 600; margin: 0 0 14px; }
.plante-pied { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--bordure); padding-top: 14px; }
.plante-prix { margin: 0; font-family: var(--police-titre); font-weight: 800; font-size: 1.2rem; color: var(--bleu-nuit); }
.plante-prix.sur-demande { font-family: var(--police); font-size: .9rem; font-weight: 600; color: var(--texte-doux); }
.btn-petit { padding: .65em 1em; font-size: .88rem; gap: .45em; }
.btn-petit svg { width: 17px; height: 17px; }
.btn-petit:hover svg { transform: none; }
.note-catalogue { margin: 32px 0 0; font-size: .85rem; color: var(--texte-doux); text-align: center; }

.etapes-3 { grid-template-columns: repeat(3, 1fr); }
.etapes-3::before { left: 18%; right: 18%; }
@media (max-width: 760px) { .etapes-3 { grid-template-columns: 1fr; } .etapes-3::before { display: none; } }
.appel-uni { background: linear-gradient(120deg, var(--vert-nuit), var(--bleu-nuit)); }
.appel-uni::before { display: none; }
.plante, .service { min-width: 0; }
.plante-pied { flex-wrap: wrap; }
@media (max-width: 420px) { .plante-pied .btn { width: 100%; } }

/* ==========================================================================
   Pages intérieures (services, entreprise, réalisations, formation, contact)
   ========================================================================== */
.centre { text-align: center; margin-top: 40px; }
.btn-lien { background: none; color: var(--vert-fonce); padding-inline: .6em; }
.btn-lien:hover { color: var(--vert-nuit); transform: none; }
.btn-contour-vert { background: #fff; color: var(--vert-fonce); border-color: var(--vert-fonce); }
.btn-contour-vert:hover { background: var(--fond-doux); color: var(--vert-nuit); }
.formation .btn-lien { margin-left: 6px; }

/* Vitrine plantes (accueil) */
.vitrine { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 860px) { .vitrine { grid-template-columns: 1fr 1fr; } }
.vitrine a { position: relative; display: block; border-radius: var(--rayon); overflow: hidden; text-decoration: none; aspect-ratio: 3 / 4; }
.vitrine img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.vitrine a:hover img { transform: scale(1.06); }
.vitrine span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; color: #fff; font-weight: 700; background: linear-gradient(0deg, rgba(7,42,60,.85), transparent); }

/* Sommaire des services */
.sommaire { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 56px; }
.sommaire a { padding: .5em 1.1em; border-radius: 999px; background: var(--fond-doux); color: var(--bleu-nuit); font-weight: 600; text-decoration: none; font-size: .93rem; }
.sommaire a:hover { background: var(--vert-fonce); color: #fff; }

/* Détail d'un service */
.detail-service { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding: 48px 0; scroll-margin-top: 110px; }
.detail-service + .detail-service { border-top: 1px solid var(--bordure); }
.detail-service:nth-of-type(even) .detail-photo { order: 2; }
@media (max-width: 860px) { .detail-service { grid-template-columns: 1fr; } .detail-service:nth-of-type(even) .detail-photo { order: 0; } }
.detail-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); box-shadow: var(--ombre); }
.detail-texte > p { color: var(--texte-doux); font-size: 1.06rem; }
.liste-coches { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.liste-coches li { display: flex; gap: 12px; align-items: flex-start; }
.liste-coches .coche { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #e6f4d8; color: var(--vert-fonce); display: grid; place-items: center; margin-top: 1px; }
.liste-coches .coche svg { width: 14px; height: 14px; }
.pour-qui { background: var(--fond-doux); border-left: 3px solid var(--vert); padding: 12px 16px; border-radius: 0 10px 10px 0; color: var(--texte); font-size: .97rem; }
.actions-detail { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Valeurs */
.valeurs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .valeurs { grid-template-columns: 1fr; } }
.valeur { background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 32px 28px; box-shadow: var(--ombre-s); }
.valeur-num { display: block; font-family: var(--police-titre); font-weight: 800; font-size: 2.4rem; color: var(--vert); line-height: 1; margin-bottom: 14px; }
.valeur p { color: var(--texte-doux); margin: 0; }

/* Bande de photos d'équipe */
.bande-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 760px) { .bande-photos { grid-template-columns: 1fr 1fr; } }
.bande-photos img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--rayon); }

/* Galerie complète + visionneuse */
.galerie-complete { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.photo-real { margin: 0; min-width: 0; }
.photo-real[hidden] { display: none; }
.photo-real .ouvrir { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--rayon); overflow: hidden; }
.photo-real img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s var(--ease); }
.photo-real .ouvrir:hover img { transform: scale(1.05); }
.photo-real figcaption { padding: 10px 2px 0; font-weight: 700; color: var(--bleu-nuit); font-size: .97rem; }
.photo-real figcaption span { display: block; font-weight: 500; color: var(--texte-doux); font-size: .85rem; }
.visionneuse { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.visionneuse::backdrop { background: rgba(4, 20, 30, .92); }
.visionneuse[open] { display: grid; place-items: center; }
.visionneuse figure { margin: 0; text-align: center; }
.visionneuse img { max-width: min(92vw, 1000px); max-height: 82vh; width: auto; height: auto; border-radius: 12px; margin: auto; }
.visionneuse figcaption { color: #fff; margin-top: 12px; font-weight: 600; }
.visionneuse button { position: fixed; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 52px; height: 52px; font-size: 2rem; line-height: 1; cursor: pointer; }
.visionneuse button:hover { background: rgba(255,255,255,.25); }
.visionneuse .fermer { top: 18px; right: 18px; }
.visionneuse .prec { left: 18px; top: 50%; transform: translateY(-50%); }
.visionneuse .suiv { right: 18px; top: 50%; transform: translateY(-50%); }

/* Formation */
.programme { display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .programme { grid-template-columns: 1fr; } .extraits { max-width: 300px; margin-inline: auto; } }
.programme > div > p { color: var(--texte-doux); }
.modules { padding-left: 1.3em; display: grid; gap: 10px; margin: 0; }
.modules li::marker { color: var(--vert-fonce); font-weight: 800; }
.extraits img { width: 100%; height: auto; border-radius: var(--rayon); box-shadow: var(--ombre); transform: rotate(2deg); }
.deux-blocs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .deux-blocs { grid-template-columns: 1fr; } }
.infos-pratiques { background: var(--bleu-nuit); color: #e3edf2; border-radius: var(--rayon); padding: 32px; }
.infos-pratiques h3 { color: #fff; }
.infos-pratiques dl { margin: 0 0 24px; display: grid; gap: 0; }
.infos-pratiques dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.infos-pratiques dt { color: #9fbccc; font-weight: 600; }
.infos-pratiques dd { margin: 0; text-align: right; font-weight: 600; }

/* ==========================================================================
   HÉROS v2 — mosaïque de vrais chantiers + animations
   ========================================================================== */
.heros-v2 {
  min-height: auto; padding: clamp(56px, 8vw, 96px) 0 150px; overflow: hidden;
  background: radial-gradient(120% 90% at 0% 0%, #0d4a63 0%, transparent 55%), linear-gradient(140deg, var(--bleu-nuit) 0%, #0a3346 45%, #12391a 100%);
}
.heros-v2::before { display: none; }
.heros-grille { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; z-index: 1; }
@media (max-width: 960px) { .heros-grille { grid-template-columns: 1fr; } }

/* Décor animé */
.heros-deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.halo { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: derive 22s ease-in-out infinite alternate; }
.halo-1 { width: 520px; height: 520px; background: #62b600; opacity: .22; top: -160px; right: 8%; }
.halo-2 { width: 460px; height: 460px; background: #1b7fa8; opacity: .35; bottom: -180px; left: -120px; animation-duration: 26s; animation-delay: -6s; }
.halo-3 { width: 300px; height: 300px; background: #3a8c1a; opacity: .25; top: 40%; left: 38%; animation-duration: 30s; animation-delay: -12s; }
@keyframes derive { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-30px) scale(1.08); } 100% { transform: translate(-30px,25px) scale(.95); } }
.grille-deco {
  position: absolute; inset: 0; opacity: .07;
  background-image: radial-gradient(#fff 1px, transparent 1.4px); background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
}
.feuille { position: absolute; top: -40px; color: var(--vert); opacity: 0; animation: tombe linear infinite; }
.feuille svg { width: 100%; height: 100%; }
.f1 { left: 6%;  width: 18px; height: 18px; animation-duration: 16s; animation-delay: 1s; }
.f2 { left: 22%; width: 12px; height: 12px; animation-duration: 21s; animation-delay: 6s; color: #8fd14f; }
.f3 { left: 41%; width: 16px; height: 16px; animation-duration: 18s; animation-delay: 11s; }
.f4 { left: 58%; width: 10px; height: 10px; animation-duration: 24s; animation-delay: 3s; color: #8fd14f; }
.f5 { left: 74%; width: 14px; height: 14px; animation-duration: 19s; animation-delay: 8s; }
.f6 { left: 90%; width: 12px; height: 12px; animation-duration: 23s; animation-delay: 14s; }
@keyframes tombe {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: .45; }
  50% { transform: translate(40px, 50vh) rotate(160deg); }
  90% { opacity: .35; }
  100% { transform: translate(-20px, 105vh) rotate(320deg); opacity: 0; }
}

/* Texte : apparitions */
.heros-v2 .heros-contenu { max-width: 640px; }
.heros-v2 h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1.04; letter-spacing: -.025em; margin-bottom: .4em; }
.heros-v2 h1 em { position: relative; display: inline-block; color: var(--vert); white-space: nowrap; }
.mot { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.mot > span { display: inline-block; transform: translateY(105%); animation: monte .95s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i) * 95ms + 150ms); }
@keyframes monte { to { transform: translateY(0); } }
.trait { position: absolute; left: 0; bottom: -.12em; width: 100%; height: .32em; overflow: visible; }
.trait path { fill: none; stroke: var(--vert); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: dessine 1s cubic-bezier(.6,0,.2,1) 1.05s forwards; opacity: .85; }
@keyframes dessine { to { stroke-dashoffset: 0; } }
.apparait { opacity: 0; transform: translateY(18px); animation: apparait .9s var(--ease) forwards; animation-delay: calc(var(--t) * 100ms + 150ms); }
@keyframes apparait { to { opacity: 1; transform: none; } }
.heros-v2 .pastille { display: inline-flex; align-items: center; gap: 10px; padding: .45em 1em .45em .7em; }
.point-live { width: 8px; height: 8px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 0 rgba(98,182,0,.7); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(98,182,0,.6); } 70% { box-shadow: 0 0 0 9px rgba(98,182,0,0); } 100% { box-shadow: 0 0 0 0 rgba(98,182,0,0); } }
.pastille-tag { background: var(--vert); color: var(--bleu-nuit); border-radius: 999px; padding: .1em .65em; font-weight: 800; font-size: .78rem; }
.heros-v2 .chapo { color: #d7e6ee; }
.heros-preuves { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: #b8cfdb; font-weight: 600; }
.heros-preuves li { display: flex; align-items: center; gap: 8px; }
.heros-preuves li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--vert); transform: rotate(45deg); }

/* Reflet sur le bouton principal */
.btn-brille { position: relative; overflow: hidden; isolation: isolate; }
.btn-brille::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg);
  animation: reflet 4.5s ease-in-out 2.2s infinite;
}
@keyframes reflet { 0%, 70% { left: -60%; } 100% { left: 130%; } }

/* Mosaïque de photos */
.heros-mosaique { position: relative; height: clamp(440px, 46vw, 600px); }
.carte { position: absolute; transform: translate3d(calc(var(--mx, 0) * var(--d) * 1px), calc(var(--my, 0) * var(--d) * 1px), 0); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.carte .flotte {
  position: relative; width: 100%; height: 100%; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08);
  opacity: 0; animation: entre 1.1s cubic-bezier(.2,.8,.2,1) forwards, flotte 7s ease-in-out infinite;
}
.carte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.4s ease, transform 7s ease-out; }
.carte img.active { opacity: 1; transform: scale(1); }
.c1 { left: 0; top: 7%; width: 54%; height: 72%; z-index: 2; }
.c1 .flotte { animation-delay: .35s, 1.4s; }
.c2 { right: 0; top: 0; width: 42%; height: 50%; z-index: 1; }
.c2 .flotte { animation-delay: .55s, 0s; animation-duration: 1.1s, 8s; }
.c3 { right: 5%; bottom: 0; width: 44%; height: 44%; z-index: 3; }
.c3 .flotte { animation-delay: .75s, 2.6s; animation-duration: 1.1s, 9s; }
@keyframes entre { from { opacity: 0; transform: translateY(40px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes flotte { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.badge-flottant {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.96); color: var(--bleu-nuit); border-radius: 16px; padding: 12px 16px 12px 12px;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.45); font-size: .85rem; line-height: 1.3;
  transform: translate3d(calc(var(--mx, 0) * var(--d) * 1px), calc(var(--my, 0) * var(--d) * 1px), 0); transition: transform .5s cubic-bezier(.2,.8,.2,1);
  opacity: 0; animation: pop .8s cubic-bezier(.2,1.4,.4,1) forwards;
}
.badge-flottant strong { display: block; font-family: var(--police-titre); font-size: .98rem; }
.bf-ico { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--vert-fonce); color: #fff; }
.bf-ico-bleu { background: var(--bleu); }
.bf-ico svg { width: 20px; height: 20px; }
.bf-1 { left: -4%; bottom: 10%; animation-delay: 1.3s; }
.bf-2 { right: -2%; top: 52%; animation-delay: 1.6s; }
@keyframes pop { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }

@media (max-width: 960px) {
  .heros-mosaique { height: 420px; max-width: 520px; width: 100%; margin-inline: auto; }
  .bf-1 { left: 0; } .bf-2 { right: 0; }
}
@media (max-width: 520px) {
  .heros-mosaique { height: 360px; }
  .badge-flottant { font-size: .78rem; padding: 9px 12px 9px 9px; }
  .bf-ico { width: 32px; height: 32px; }
  .heros-v2 h1 em { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .mot > span, .apparait, .carte .flotte, .badge-flottant { transform: none !important; opacity: 1 !important; }
  .trait path { stroke-dashoffset: 0; }
  .feuille { display: none; }
}
.point-live { flex: none; }
.pastille-tag { flex: none; white-space: nowrap; }
@media (max-width: 520px) {
  .heros-v2 .pastille { font-size: .8rem; gap: 8px; }
  .heros-v2 .actions .btn { width: 100%; }
}
.heros-v2 .pastille .point-live { padding: 0; width: 9px; height: 9px; border-radius: 50%; }

/* ==========================================================================
   HÉROS institutionnel (remplace la version animée)
   ========================================================================== */
.btn { border-radius: 8px; }
.heros-inst {
  min-height: auto; padding: clamp(56px, 7vw, 88px) 0 140px; overflow: hidden;
  background: linear-gradient(180deg, #082c3f 0%, var(--bleu-nuit) 100%);
  border-top: 3px solid var(--vert);
}
.heros-inst::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; display: block;
  background: radial-gradient(70% 80% at 85% 20%, rgba(16,98,135,.35), transparent 70%);
}
.heros-inst .heros-grille { grid-template-columns: 1fr 1.05fr; }
.heros-inst .heros-contenu { max-width: 560px; }
.hi-surtitre {
  display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
  color: #a9c4d3; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.hi-surtitre::before { content: ""; width: 32px; height: 2px; background: var(--vert); }
.heros-inst h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1.08; letter-spacing: -.02em; margin-bottom: .5em; }
.heros-inst h1 em { display: block; font-style: normal; color: var(--vert); }
.heros-inst .chapo { color: #cfdee7; font-size: clamp(1.05rem, 1.4vw, 1.18rem); max-width: 30em; }
.heros-inst .actions { margin-top: 32px; }
.heros-inst .btn-contour { border-color: rgba(255,255,255,.4); backdrop-filter: none; }

/* Grille de photos alignée */
.hi-grille { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: clamp(400px, 40vw, 520px); }
.hi-photo { position: relative; margin: 0; overflow: hidden; border-radius: 10px; background: #0b3a52; }
.hp-1 { grid-row: 1 / 3; }
.hi-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.hi-photo img.active { opacity: 1; }
.hi-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 11px;
  background: linear-gradient(0deg, rgba(7,42,60,.85), transparent); color: #fff;
  font-size: .8rem; font-weight: 600; letter-spacing: .02em;
}
@media (max-width: 960px) { .hi-grille { height: 420px; } }
@media (max-width: 520px) { .hi-grille { height: 340px; gap: 8px; } .heros-inst .actions .btn { width: 100%; } }

/* Repères chiffrés */
.hi-reperes { position: relative; z-index: 1; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.14); }
.hi-reperes div { padding: 22px 20px 0 0; }
.hi-reperes div + div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.14); }
.hi-reperes dt { font-family: var(--police-titre); font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: #fff; line-height: 1.1; }
.hi-reperes dd { margin: 4px 0 0; color: #a9c4d3; font-size: .9rem; }
@media (max-width: 760px) {
  .hi-reperes { grid-template-columns: 1fr 1fr; }
  .hi-reperes div:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* Animation d'entrée unique et discrète */
.heros-inst .apparait { animation-duration: .8s; }
.heros-inst { display: block; }
.heros-inst { padding-bottom: clamp(48px, 6vw, 72px); }
@media (max-width: 960px) {
  .heros-inst .heros-grille { grid-template-columns: 1fr; }
  .heros-inst .heros-contenu { max-width: none; }
}
@media (max-width: 760px) {
  .hi-reperes { row-gap: 18px; }
  .hi-reperes div { padding-top: 18px; }
}

/* ==========================================================================
   Vidéos « reels »
   ========================================================================== */
.section-sombre { background: var(--bleu-nuit); color: #d6e4ec; }
.section-sombre h2 { color: #fff; }
.section-sombre .entete-section p { color: #a9c4d3; }
.reels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
@media (max-width: 1100px) { .reels { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .reels { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.reel { position: relative; margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 9 / 16; background: #0b3a52; min-width: 0; }
.reel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-ouvrir { position: absolute; inset: 0; border: 0; padding: 0; background: linear-gradient(0deg, rgba(7,42,60,.75) 0%, transparent 45%); cursor: pointer; }
.reel-play {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.9); color: var(--bleu-nuit); transition: transform .2s;
}
.reel-play svg { width: 15px; height: 15px; margin-left: 2px; }
.reel-ouvrir:hover .reel-play { transform: scale(1.1); }
.reel figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; color: #fff; font-size: .82rem; font-weight: 600; line-height: 1.35; pointer-events: none; }
.galerie-complete .reel { aspect-ratio: 4 / 5; }
.galerie-complete .reel figcaption { font-size: .9rem; }
.visionneuse video { max-width: min(92vw, 520px); max-height: 82vh; border-radius: 12px; background: #000; display: block; margin: auto; }
.visionneuse video[hidden], .visionneuse img[hidden] { display: none; }

/* ==========================================================================
   ACCUEIL institutionnel
   ========================================================================== */
:root { --gris-inst: #f4f6f7; }
.section-douce { background: var(--gris-inst); }
.inst-gris { background: var(--gris-inst); }
.inst-num { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--vert-fonce); margin-bottom: 14px; }
.section-sombre .inst-num, .inst-contact .inst-num { color: #9fd65a; }
.inst-entete { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 48px; padding-bottom: 28px; border-bottom: 1px solid var(--bordure); }
.section-sombre .inst-entete { border-color: rgba(255,255,255,.14); }
.inst-entete > div { max-width: 640px; }
.inst-entete h2 { margin-bottom: .35em; font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.inst-entete p { margin: 0; color: var(--texte-doux); font-size: 1.06rem; }
.section-sombre .inst-entete p { color: #a9c4d3; }
.inst-lien { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; color: var(--vert-fonce); text-decoration: none; white-space: nowrap; }
.inst-lien svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.inst-lien:hover svg, a:hover .inst-lien svg { transform: translateX(4px); }
.section-sombre .inst-lien { color: #9fd65a; }

/* Segments clients */
.inst-clients { border-bottom: 1px solid var(--bordure); }
.segments { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.segments li { display: flex; gap: 14px; align-items: center; padding: 30px 24px; }
.segments li + li { border-left: 1px solid var(--bordure); }
.segments svg { flex: none; width: 34px; height: 34px; color: var(--bleu); }
.segments strong { display: block; font-family: var(--police-titre); color: var(--bleu-nuit); font-size: 1rem; }
.segments span { font-size: .86rem; color: var(--texte-doux); }
@media (max-width: 900px) { .segments { grid-template-columns: 1fr 1fr; } .segments li:nth-child(3) { border-left: 0; } .segments li:nth-child(n+3) { border-top: 1px solid var(--bordure); } }
@media (max-width: 480px) { .segments li { padding: 20px 10px; flex-direction: column; align-items: flex-start; gap: 8px; } }

/* Pôles d'expertise */
.poles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .poles { grid-template-columns: 1fr; } }
.pole { background: #fff; border: 1px solid var(--bordure); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.pole-photo { aspect-ratio: 16 / 10; overflow: hidden; }
.pole-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pole:hover .pole-photo img { transform: scale(1.04); }
.pole-corps { padding: 26px 26px 10px; flex: 1; }
.pole-num { font-family: var(--police-titre); font-weight: 800; color: var(--vert); font-size: .95rem; }
.pole h3 { font-size: 1.35rem; margin: 6px 0 .4em; }
.pole-corps > p { color: var(--texte-doux); font-size: .97rem; }
.pole-liens { list-style: none; padding: 0; margin: 18px 0 0; }
.pole-liens li { border-top: 1px solid var(--bordure); }
.pole-liens a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; color: var(--bleu-nuit); font-weight: 600; text-decoration: none; }
.pole-liens a svg { width: 17px; height: 17px; color: var(--vert-fonce); transition: transform .25s var(--ease); }
.pole-liens a:hover { color: var(--vert-fonce); }
.pole-liens a:hover svg { transform: translateX(4px); }

/* Entreprise */
.inst-entreprise { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .inst-entreprise { grid-template-columns: 1fr; } }
.inst-entreprise h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.inst-mission { font-size: 1.12rem; color: var(--texte); line-height: 1.75; padding-left: 20px; border-left: 3px solid var(--vert); }
.engagements { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 32px 0 34px; border-top: 1px solid var(--bordure); }
.engagements div { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--bordure); }
.engagements div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--bordure); }
.engagements dt { font-family: var(--police-titre); font-weight: 700; color: var(--bleu-nuit); margin-bottom: 4px; }
.engagements dd { margin: 0; color: var(--texte-doux); font-size: .93rem; line-height: 1.55; }
@media (max-width: 520px) { .engagements { grid-template-columns: 1fr; } .engagements div:nth-child(even) { padding-left: 0; border-left: 0; } }
.inst-photo { margin: 0; }
.inst-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.inst-photo figcaption { margin-top: 10px; font-size: .85rem; color: var(--texte-doux); }

/* Méthode */
.inst-etapes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--bleu-nuit); }
.inst-etapes li { padding: 26px 24px 0 0; }
.inst-etapes li + li { padding-left: 24px; border-left: 1px solid var(--bordure); }
.inst-etapes span { font-family: var(--police-titre); font-weight: 800; color: var(--vert); font-size: 1.05rem; }
.inst-etapes h3 { font-size: 1.15rem; margin: 8px 0 .4em; }
.inst-etapes p { margin: 0; color: var(--texte-doux); font-size: .95rem; }
@media (max-width: 860px) { .inst-etapes { grid-template-columns: 1fr 1fr; row-gap: 28px; } .inst-etapes li:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 520px) { .inst-etapes { grid-template-columns: 1fr; } .inst-etapes li + li { padding-left: 0; border-left: 0; } }

/* Mosaïque éditoriale */
.mosaique-edito { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 14px; }
.mosaique-edito figure { position: relative; margin: 0; border-radius: 10px; overflow: hidden; }
.mosaique-edito .me-grand { grid-row: 1 / 3; }
.mosaique-edito img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mosaique-edito figure:hover img { transform: scale(1.04); }
.mosaique-edito figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; color: #fff; font-weight: 700; font-size: .95rem; background: linear-gradient(0deg, rgba(7,42,60,.85), transparent); }
.mosaique-edito figcaption span { display: block; font-weight: 500; font-size: .8rem; color: #cfe0ea; }
@media (max-width: 860px) { .mosaique-edito { grid-template-columns: 1fr 1fr; grid-template-rows: 320px 200px 200px; } .mosaique-edito .me-grand { grid-row: auto; grid-column: 1 / 3; } }

/* Autres activités */
.activites { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .activites { grid-template-columns: 1fr; } }
.activite { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; padding: 20px; border: 1px solid var(--bordure); border-radius: 10px; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
.activite:hover { border-color: #b9cdd8; box-shadow: var(--ombre-s); }
.activite img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; }
.activite h3 { font-size: 1.25rem; margin-bottom: .35em; }
.activite p { color: var(--texte-doux); font-size: .95rem; }
@media (max-width: 480px) { .activite { grid-template-columns: 1fr; } }

/* Bandeau contact final */
.inst-contact { background: var(--bleu-nuit); color: #d6e4ec; padding: clamp(56px, 7vw, 88px) 0; border-top: 3px solid var(--vert); }
.inst-contact h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.inst-contact p { color: #a9c4d3; max-width: 520px; }
.inst-contact-grille { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .inst-contact-grille { grid-template-columns: 1fr; } }
.inst-contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inst-tel { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; color: #fff; text-decoration: none; transition: border-color .2s, background .2s; }
.inst-tel:hover { border-color: var(--vert); background: rgba(255,255,255,.04); color: #fff; }
.inst-tel svg { flex: none; width: 22px; height: 22px; color: var(--vert); }
.inst-tel small { display: block; color: #9fbccc; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.inst-tel span { font-family: var(--police-titre); font-weight: 700; font-size: 1.15rem; }
.inst-boutons { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }
.inst-boutons .btn { flex: 1; }
.inst-boutons .btn svg { width: 18px; height: 18px; }
@media (max-width: 480px) { .inst-contact-actions { grid-template-columns: 1fr; } }

/* Bouton WhatsApp flottant plus discret */
.appel-mobile { width: 52px; height: 52px; }
.appel-mobile::before { display: none; }

/* ==========================================================================
   HÉROS — motion institutionnel
   ========================================================================== */
:root { --ease-inst: cubic-bezier(.77, 0, .18, 1); --ease-doux: cubic-bezier(.16, 1, .3, 1); }

/* Texte : lignes masquées + fondus */
.heros-motion .m-ligne { display: block; overflow: hidden; padding-bottom: .06em; }
.heros-motion .m-ligne > * { display: inline-block; transform: translateY(110%); animation: m-monte 1.1s var(--ease-inst) forwards; animation-delay: calc(var(--t) * 120ms + 250ms); }
.heros-motion h1 em { display: inline-block; }
@keyframes m-monte { to { transform: translateY(0); } }
.m-fondu { opacity: 0; transform: translateY(14px); animation: m-fondu 1s var(--ease-doux) forwards; animation-delay: calc(var(--t) * 120ms + 250ms); }
@keyframes m-fondu { to { opacity: 1; transform: none; } }
.heros-motion .hi-surtitre::before { display: none; }
.hi-filet { display: inline-block; width: 0; height: 2px; background: var(--vert); animation: m-filet .9s var(--ease-inst) .2s forwards; }
@keyframes m-filet { to { width: 32px; } }

/* Cadres photo : ouverture en rideau */
.heros-motion .hi-photo { clip-path: inset(100% 0 0 0); animation: m-rideau 1.3s var(--ease-inst) forwards; }
.heros-motion .hp-1 { animation-delay: .35s; }
.heros-motion .hp-2 { animation-delay: .55s; }
.heros-motion .hp-3 { animation-delay: .75s; }
@keyframes m-rideau { to { clip-path: inset(0 0 0 0); } }
.heros-motion .hi-photo img { opacity: 0; transition: none; transform: scale(1.12); }
.heros-motion .hi-photo img.active { opacity: 1; animation: m-recadre 1.6s var(--ease-doux) .35s both, m-lent 9s linear 1.9s forwards; }
@keyframes m-recadre { from { transform: scale(1.12); } to { transform: scale(1.04); } }
@keyframes m-lent { from { transform: scale(1.04); } to { transform: scale(1); } }
/* Image entrante : balayage vertical au-dessus de l'image affichée */
.heros-motion .hi-photo img.entrante { opacity: 1; z-index: 1; transform: scale(1.06); clip-path: inset(100% 0 0 0); animation: m-balayage 1.2s var(--ease-inst) forwards; }
@keyframes m-balayage { to { clip-path: inset(0 0 0 0); transform: scale(1.04); } }
.heros-motion .hi-photo figcaption { z-index: 2; opacity: 0; transform: translateY(10px); animation: m-fondu .9s var(--ease-doux) forwards; }
.heros-motion .hp-1 figcaption { animation-delay: 1.4s; }
.heros-motion .hp-2 figcaption { animation-delay: 1.6s; }
.heros-motion .hp-3 figcaption { animation-delay: 1.8s; }

/* Barre de progression du diaporama */
.hi-progression { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.18); z-index: 3; }
.hi-progression i { display: block; height: 100%; width: 0; background: var(--vert); }
.hi-progression i.en-cours { animation: m-progression 6.5s linear forwards; }
@keyframes m-progression { to { width: 100%; } }
.en-pause .hi-progression i.en-cours, .en-pause img.active { animation-play-state: paused; }

/* Repères : filet tracé + compteurs */
.heros-motion .hi-reperes { border-top: 0; position: relative; }
.heros-motion .hi-reperes::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255,255,255,.14); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-inst); }
.heros-motion .hi-reperes.visible::before { transform: scaleX(1); }
.heros-motion .hi-reperes > div { opacity: 0; transform: translateY(12px); transition: opacity .9s var(--ease-doux), transform .9s var(--ease-doux); }
.heros-motion .hi-reperes.visible > div { opacity: 1; transform: none; }
.heros-motion .hi-reperes.visible > div:nth-child(2) { transition-delay: .12s; }
.heros-motion .hi-reperes.visible > div:nth-child(3) { transition-delay: .24s; }
.heros-motion .hi-reperes.visible > div:nth-child(4) { transition-delay: .36s; }
.heros-motion .hi-reperes dt span { font-variant-numeric: tabular-nums; }

/* Survol sobre */
.heros-motion .hi-photo:hover img.active { transform: scale(1.02); transition: transform 1.2s var(--ease-doux); }

@media (prefers-reduced-motion: reduce) {
  .heros-motion .m-ligne > *, .m-fondu, .heros-motion .hi-photo, .heros-motion .hi-photo figcaption { transform: none !important; opacity: 1 !important; clip-path: none !important; }
  .heros-motion .hi-photo img.active { transform: none !important; }
  .hi-filet { width: 32px; }
  .hi-progression { display: none; }
  .heros-motion .hi-reperes > div { opacity: 1; transform: none; }
  .heros-motion .hi-reperes::before { transform: none; }
}

/* Partenariats internationaux */
.partenaire { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; margin-bottom: 28px; }
@media (max-width: 900px) { .partenaire { grid-template-columns: 1fr; } }
.partenaire-carte { background: #fff; border: 1px solid var(--bordure); border-top: 3px solid var(--vert); border-radius: 10px; padding: 30px; }
.partenaire-pays { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bleu); margin-bottom: 10px; }
.partenaire-carte h3 { font-size: 1.4rem; }
.partenaire-carte > p { color: var(--texte-doux); }
.inst-tel-clair { color: var(--bleu-nuit); border-color: var(--bordure); margin-top: 6px; }
.inst-tel-clair:hover { color: var(--bleu-nuit); background: var(--gris-inst); }
.inst-tel-clair small { color: var(--texte-doux); }
.partenaire-photos { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; gap: 12px; }
.partenaire-photos figure { position: relative; margin: 0; border-radius: 10px; overflow: hidden; }
.partenaire-photos figure:first-child { grid-column: span 2; grid-row: span 2; }
.partenaire-photos img { width: 100%; height: 100%; object-fit: cover; }
.partenaire-photos figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; color: #fff; font-size: .8rem; font-weight: 600; background: linear-gradient(0deg, rgba(7,42,60,.85), transparent); }
@media (max-width: 560px) { .partenaire-photos { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; } }
.reels-2 { grid-template-columns: repeat(2, minmax(0, 220px)); justify-content: start; }
.partenaire { margin-bottom: 0; }
.partenaire-gauche { display: grid; gap: 16px; }
.partenaire-gauche .reels-2 { grid-template-columns: 1fr 1fr; }
.partenaire-gauche .reel { aspect-ratio: 4 / 5; }

/* Références clients */
.inst-references { padding: 44px 0 52px; border-bottom: 1px solid var(--bordure); }
.ref-titre { text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--texte-doux); font-family: var(--police); margin-bottom: 26px; }
.logos-ref { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); align-items: center; gap: 28px 40px; }
.logos-ref li { display: flex; align-items: center; justify-content: center; height: 64px; }
.logos-ref img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .65; transition: filter .4s, opacity .4s; }
.logos-ref li:hover img { filter: none; opacity: 1; }
@media (max-width: 900px) { .logos-ref { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .logos-ref { grid-template-columns: repeat(2, 1fr); gap: 22px 28px; } .logos-ref li { height: 52px; } }
.logos-ref-grand { gap: 16px; margin-bottom: 32px; }
.logos-ref-grand li { height: 120px; padding: 22px; background: #fff; border: 1px solid var(--bordure); border-radius: 10px; }
.logos-ref-grand img { filter: none; opacity: 1; }
.secteurs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--bordure); }
.secteurs li { padding: 20px 20px 0 0; color: var(--texte-doux); font-size: .93rem; }
.secteurs li + li { padding-left: 20px; border-left: 1px solid var(--bordure); }
.secteurs strong { display: block; font-family: var(--police-titre); color: var(--bleu-nuit); font-size: 1.02rem; margin-bottom: 3px; }
@media (max-width: 760px) { .secteurs { grid-template-columns: 1fr; } .secteurs li + li { padding-left: 0; border-left: 0; } }
.partenaire-mention { margin: 0 0 10px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-doux); }
#partenariats .partenaire { grid-template-columns: 1fr; max-width: 760px; }
#partenariats .partenaire { grid-template-columns: .85fr 1.15fr; max-width: none; }
@media (max-width: 900px) { #partenariats .partenaire { grid-template-columns: 1fr; } }
#partenariats .partenaire-photos { grid-template-columns: 1fr; grid-auto-rows: auto; }
#partenariats .partenaire-photos figure:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
#partenariats .partenaire-photos img { object-position: center 45%; }
#partenariats .partenaire-photos img { object-position: center 20%; }
/* Image unique du partenaire : carré, armoiries entières */
#partenariats .partenaire { grid-template-columns: 1fr minmax(0, 440px); align-items: start; }
#partenariats .partenaire-photos figure:first-child { aspect-ratio: 1 / 1; }
#partenariats .partenaire-photos img { object-position: center; }
@media (max-width: 900px) { #partenariats .partenaire { grid-template-columns: 1fr; } #partenariats .partenaire-droite { max-width: 520px; } }
