/* Therval — charte v2.1. Cinq couleurs, Poppins, pas de dégradé, pas de noir pur. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }

:root {
  --therval-foret: #17382B;
  --therval-prairie: #2F6B4F;
  --therval-ocre: #C27A2C;
  --therval-terre: #6B4A2B;
  --therval-lin: #F4F0E6;
  --blanc: #FFFFFF;
  --trait: 2px;
  --rayon: 12px;
  --espace: 1rem;
  --largeur-contenu: 1120px;
  --police: "Poppins", Arial, sans-serif;
  --filet: rgba(23, 56, 43, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--police);
  font-weight: 400;
  font-size: 1.0625rem; /* 17 px */
  line-height: 1.5;
  color: var(--therval-foret);
  background: var(--therval-lin);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--therval-prairie); text-decoration-thickness: var(--trait); text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--therval-foret); }
:focus-visible { outline: 3px solid var(--therval-ocre); outline-offset: 3px; }

h1, h2, h3 { font-weight: 600; line-height: 1.15; margin: 0 0 calc(var(--espace) * .75); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.125rem, 4.5vw + 1rem, 3.25rem); }
h2 { font-size: clamp(1.625rem, 2.5vw + 1rem, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 var(--espace); max-width: 38em; }
ul { padding-left: 1.2em; }
.eyebrow { display: block; font-weight: 500; font-size: .9375rem; color: var(--therval-terre); margin-bottom: .5rem; }
.section--foret .eyebrow { color: var(--therval-lin); opacity: .8; }
.lead { font-size: 1.1875rem; }
.chiffre { display: block; font-weight: 500; font-size: 2.5rem; line-height: 1; color: var(--therval-ocre); }
.chiffre small { display: block; font-weight: 400; font-size: .9375rem; color: var(--therval-foret); margin-top: .5rem; line-height: 1.4; }
.section--foret .chiffre small { color: var(--therval-lin); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.visually-hidden:focus { position: fixed !important; top: 1rem; left: 1rem; width: auto; height: auto; clip: auto; padding: .75rem 1rem; background: var(--therval-foret); color: var(--therval-lin); z-index: 200; border-radius: 8px; }
.lien-bouton { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-decoration-thickness: var(--trait); text-underline-offset: 3px; cursor: pointer; }

.container { width: 100%; max-width: var(--largeur-contenu); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section--lin { background: var(--therval-lin); }
.section--blanc { background: var(--blanc); }
.section--foret { background: var(--therval-foret); color: var(--therval-lin); }
.section--foret h2, .section--foret h3 { color: var(--therval-lin); }
.section--foret a { color: var(--therval-lin); }
.section__intro { margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.section__intro p { max-width: 42em; }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.card { background: var(--blanc); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column; }
.card__tete { margin: 0; padding: 1rem 1.25rem; font-weight: 600; font-size: 1.125rem; line-height: 1.3; }
.card--ocre .card__tete { background: var(--therval-ocre); color: var(--therval-lin); }
.card--prairie .card__tete { background: var(--therval-prairie); color: var(--therval-lin); }
.card--foret .card__tete { background: var(--therval-foret); color: var(--therval-lin); }
.card__corps { padding: 1.25rem; background: var(--therval-lin); flex: 1; }
.section--lin .card__corps { background: var(--blanc); }
.card__corps ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.card__corps li { padding-left: 2.6rem; position: relative; font-size: 1rem; }
.card__corps li strong { display: block; font-weight: 600; font-size: 1.0625rem; }
.card__corps li::before { content: ""; position: absolute; left: 0; top: .1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--therval-prairie); }
.card--ocre .card__corps li::before { background: var(--therval-ocre); }
.card--foret .card__corps li::before { background: var(--therval-foret); }
.card__image { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

.btn { display: inline-block; font: inherit; font-weight: 600; text-decoration: none; padding: .85rem 1.5rem; border-radius: var(--rayon); border: var(--trait) solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; line-height: 1.3; }
.btn--ocre { background: var(--therval-ocre); color: var(--therval-lin); font-size: 1.125rem; }
.btn--ocre:hover, .btn--ocre:focus-visible { background: var(--therval-foret); color: var(--therval-lin); }
.btn--foret { background: var(--therval-foret); color: var(--therval-lin); }
.btn--foret:hover, .btn--foret:focus-visible { background: var(--therval-prairie); color: var(--therval-lin); }
.btn--contour { background: transparent; color: var(--therval-foret); border-color: var(--therval-foret); }
.btn--contour:hover, .btn--contour:focus-visible { background: var(--therval-foret); color: var(--therval-lin); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--therval-lin); border-bottom: var(--trait) solid var(--filet); }
.site-header .container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.site-logo { display: block; line-height: 0; flex: 0 0 auto; }
.site-logo img { width: 180px; min-width: 180px; height: auto; }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; height: 3px; width: 26px; margin: 0 auto; background: var(--therval-foret); border-radius: 2px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 1.6vw, 1.5rem); align-items: center; }
.site-nav a { font-weight: 500; font-size: .9375rem; text-decoration: none; color: var(--therval-foret); white-space: nowrap; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--therval-prairie); }
.site-nav a:not(.btn) { padding-bottom: .2rem; border-bottom: var(--trait) solid transparent; transition: border-color .2s, color .2s; }
.site-nav a.est-actif:not(.btn) { color: var(--therval-prairie); border-bottom-color: var(--therval-ocre); }
.site-nav .btn { padding: .6rem 1.1rem; font-size: .9375rem; }
.site-nav .btn:hover, .site-nav .btn:focus-visible { color: var(--therval-lin); }
@media (max-width: 899px) {
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--therval-lin); border-bottom: var(--trait) solid var(--filet); display: none; }
  .site-nav.est-ouvert { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0 1rem; }
  .site-nav li { padding: .6rem clamp(1rem, 4vw, 2rem); }
  .site-nav .btn { display: block; text-align: center; margin: .5rem 0 0; }
}
@media (min-width: 900px) { .nav-toggle { display: none; } }

/* Héro */
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 1.5rem; }

/* Pied de page */
.site-footer { background: var(--therval-foret); color: var(--therval-lin); padding: 3rem 0 2rem; font-size: .9375rem; }
.site-footer a { color: var(--therval-lin); }
.site-footer .container { display: grid; gap: 2rem; }
@media (min-width: 900px) { .site-footer .container { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer img { width: 200px; }
.site-footer p { margin-top: 1rem; }
.site-footer h3 { font-size: 1rem; color: var(--therval-lin); margin-bottom: .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer .copyright { grid-column: 1 / -1; border-top: 1px solid rgba(244, 240, 230, .2); padding-top: 1.25rem; margin: 0; opacity: .8; }

/* Page merci et pages légales */
.page-simple { padding: clamp(3rem, 8vw, 6rem) 0; }
.page-simple .container { max-width: 760px; }
.page-simple h2 { font-size: 1.375rem; margin-top: 2rem; }

/* Comment ça marche */
.schema { margin: 0 0 2rem; background: var(--blanc); border-radius: var(--rayon); padding: clamp(.75rem, 2vw, 1.5rem); }
.schema svg { width: 100%; height: auto; display: block; }
@media (max-width: 599px) { .schema__libelles { display: none; } }
.etapes { list-style: none; counter-reset: etape; margin: 0; padding: 1.25rem 0 0; border-top: 1px solid rgba(23, 56, 43, .15); display: grid; gap: 1rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.etapes li { counter-increment: etape; position: relative; padding-left: 2.6rem; }
.etapes li::before { content: counter(etape); position: absolute; left: 0; top: 0; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--therval-foret); color: var(--therval-lin); font-weight: 600; display: grid; place-items: center; font-size: .9375rem; }
.etapes strong { font-weight: 600; }

/* Pour qui, compris, bâtiment */
.card__corps--simple h3 { margin-bottom: .5rem; }
.card__corps--simple p { margin: 0; font-size: 1rem; }
.card__tete small { display: block; font-weight: 400; font-size: .9375rem; opacity: .9; }
/* Visuels d'équipement (originaux HD exportés à 480 px de large) : 160 px de haut */
.duo { display: flex; align-items: flex-start; justify-content: center; gap: 1rem; margin-bottom: 1.25rem; }
.duo figure, .equipement { margin: 0 0 1.25rem; text-align: center; font-size: .8125rem; color: var(--therval-terre); }
.duo figure { margin: 0; max-width: 11em; }
.duo img, .equipement img { display: block; height: 160px; width: auto; margin: 0 auto .4rem; border-radius: 6px; }
.duo__plus { font-size: 2rem; font-weight: 500; color: var(--therval-ocre); align-self: center; }
/* Trois cartes côte à côte : la zone visuel a la même hauteur partout, la première puce démarre au même niveau */
@media (min-width: 900px) { .duo, .equipement { min-height: 15.5rem; margin-bottom: 1.25rem; } .equipement { display: flex; flex-direction: column; justify-content: center; align-items: center; } }
.etapes--ocre li::before { background: var(--therval-ocre); }
.etapes--colonne { grid-template-columns: 1fr; }
.batiment { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .batiment { grid-template-columns: 1fr 1fr; } }
.batiment__image { border-radius: var(--rayon); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.batiment__action { margin: 1.75rem 0 0; max-width: none; }

/* Qui sommes-nous, CEE, contact */
.qui { margin-bottom: 2.5rem; }
.valeurs { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; align-self: center; }
.valeurs li { padding-left: 2.6rem; position: relative; }
.valeurs li::before { content: ""; position: absolute; left: 0; top: .15rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--therval-ocre); }
.valeurs strong { display: block; }
.chiffres > div { background: rgba(244, 240, 230, .08); border-radius: var(--rayon); padding: 1.25rem; display: grid; grid-template-columns: 56px 1fr; gap: .35rem 1rem; align-items: center; }
.chiffres .chiffre { font-size: 2rem; }
.chiffres .picto { width: 56px; height: 56px; grid-row: 1 / span 2; align-self: start; }
.chiffre__eq { grid-column: 2; font-size: .8rem; font-weight: 600; color: var(--therval-ocre); }
.chiffre__approx { margin-right: .15em; }
.cee { padding: 2rem 0; border-top: var(--trait) solid var(--filet); border-bottom: var(--trait) solid var(--filet); }
.cee p { margin: 0; max-width: 60em; }
.cee__ligne { display: flex; align-items: center; gap: 1.25rem 1.5rem; flex-wrap: wrap; }
.cee__ligne p { flex: 1 1 28em; }
.cee__action { flex: 0 0 auto; white-space: nowrap; }
.cee__logo { flex: 0 0 auto; width: 72px; height: 72px; }
@media (max-width: 599px) { .cee__logo { width: 56px; height: 56px; } }
.contact { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.3fr; } }
.coordonnees { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .5rem; font-weight: 500; }
.formulaire { background: var(--therval-lin); border-radius: var(--rayon); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.champ { grid-column: 1 / -1; display: grid; gap: .35rem; }
@media (min-width: 600px) { .champ--demi { grid-column: auto; } }
.champ label { font-weight: 500; font-size: .9375rem; }
.champ input, .champ select, .champ textarea { font: inherit; padding: .7rem .9rem; border: var(--trait) solid rgba(23, 56, 43, .25); border-radius: 8px; background: var(--blanc); color: var(--therval-foret); width: 100%; }
.champ input:focus-visible, .champ select:focus-visible, .champ textarea:focus-visible { border-color: var(--therval-prairie); outline: 3px solid var(--therval-ocre); outline-offset: 2px; }
.champ input[aria-invalid="true"], .champ select[aria-invalid="true"] { border-color: var(--therval-ocre); }
.champ--case { grid-template-columns: auto 1fr; align-items: start; gap: .6rem; }
.champ--case input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; }
.champ--case label { font-weight: 400; font-size: .9375rem; }
.champ--piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire__erreur { grid-column: 1 / -1; margin: 0; padding: .75rem 1rem; border-radius: 8px; background: var(--blanc); border: var(--trait) solid var(--therval-ocre); }
.formulaire .btn { grid-column: 1 / -1; justify-self: start; }
.formulaire__note { grid-column: 1 / -1; margin: 0; font-size: .875rem; color: var(--therval-terre); }

/* Consentement */
.consent { position: fixed; inset: auto 0 0 0; z-index: 100; padding: 1rem; }
.consent__boite { max-width: 720px; margin: 0 auto; background: var(--therval-lin); border: var(--trait) solid var(--therval-foret); border-radius: var(--rayon); padding: 1.25rem; }
.consent__boite p { margin: 0 0 1rem; max-width: none; }
.consent__services { display: grid; gap: .75rem; margin-bottom: 1rem; }
.consent__service { display: flex; gap: .6rem; align-items: start; font-size: .9375rem; }
.consent__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.consent__actions .btn { font-size: 1rem; padding: .7rem 1.1rem; }
.page-simple code { font-family: Consolas, monospace; font-size: .9em; background: var(--blanc); padding: .1em .4em; border-radius: 4px; }

/* ===== Héro plein écran ===== */
.hero--plein { position: relative; min-height: calc(100svh - 4.5rem); display: flex; align-items: flex-end; padding: 0; overflow: hidden; background: var(--therval-foret); }
.hero__fond { position: absolute; inset: 0; }
.hero__fond img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 68%; }
.hero__video { opacity: 0; transition: opacity .8s ease; }
.hero__video.est-prete { opacity: 1; }
.hero__pause { position: absolute; right: 1rem; bottom: 1rem; z-index: 2; font: inherit; font-size: .875rem; font-weight: 500; padding: .5rem .9rem; border-radius: 999px; background: var(--therval-foret); color: var(--therval-lin); border: var(--trait) solid rgba(244, 240, 230, .6); cursor: pointer; }
.hero__pause:hover, .hero__pause:focus-visible { background: var(--therval-prairie); }
.hero--plein .container { position: relative; display: block; padding-top: clamp(6rem, 18vh, 12rem); padding-bottom: clamp(2rem, 6vh, 4rem); }
.hero__cartouche { background: rgba(244, 240, 230, .94); border-radius: var(--rayon); padding: clamp(1.5rem, 4vw, 2.75rem); max-width: 560px; }
.hero__cartouche h1 { margin-bottom: 1rem; }
.hero__cartouche .lead { font-size: 1.125rem; }
@media (min-width: 900px) {
  .hero--plein { align-items: center; }
  .hero--plein .container { padding-top: clamp(4rem, 10vh, 8rem); padding-bottom: clamp(4rem, 10vh, 8rem); }
  .hero__cartouche .lead { font-size: 1.1875rem; }
}
@media (max-width: 599px) {
  .hero--plein { min-height: auto; }
  .hero__fond { position: relative; aspect-ratio: 4 / 3; }
  .hero--plein .container { padding-top: 0; margin-top: -3rem; }
  .hero__cartouche { border-radius: var(--rayon); }
}

/* ===== En-tête compact ===== */
.site-header .container { transition: min-height .2s ease; }
.site-header.est-compact .container { min-height: 3.5rem; }
.site-logo img { transition: width .2s ease; }
.site-header.est-compact .site-logo img { width: 150px; min-width: 150px; }
@media (max-width: 899px) { .site-header.est-compact .site-logo img { width: 180px; min-width: 180px; } }

/* ===== Apparition au défilement ===== */
.avec-anim [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.avec-anim [data-reveal].est-visible { opacity: 1; transform: none; }
.avec-anim [data-reveal="gauche"] { transform: translateX(-18px); }
.avec-anim [data-reveal="droite"] { transform: translateX(18px); }
.sans-anim [data-reveal] { opacity: 1; transform: none; }

/* ===== Survols ===== */
.card { transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px -18px rgba(23, 56, 43, .45); }
.card picture { overflow: hidden; display: block; }
.card__image { transition: transform .5s ease; }
.card:hover .card__image { transform: scale(1.05); }
.btn--ocre { box-shadow: 0 0 0 0 rgba(194, 122, 44, 0); transition: background-color .15s, color .15s, box-shadow .3s; }
.btn--ocre:hover, .btn--ocre:focus-visible { box-shadow: 0 0 0 6px rgba(194, 122, 44, .22); }
.batiment__image, .hero__fond img { transition: transform .6s ease; }
.batiment:hover .batiment__image { transform: scale(1.02); }
.chiffres > div { transition: background-color .2s; }
.chiffres > div:hover { background: rgba(244, 240, 230, .14); }

/* ===== Schéma animé ===== */
.schema .flux { stroke-dasharray: 6 10; }
.avec-anim .schema.est-actif .flux { animation: flux 1.4s linear infinite; }
.avec-anim .schema.est-actif .flux--lent { animation-duration: 2.2s; }
@keyframes flux { to { stroke-dashoffset: -32; } }
.avec-anim .schema .pastille { opacity: 0; transform: scale(.6); transform-box: fill-box; transform-origin: center; transition: opacity .35s ease, transform .35s cubic-bezier(.2, .8, .3, 1.2); }
.avec-anim .schema.est-actif .pastille { opacity: 1; transform: scale(1); }
.avec-anim .schema.est-actif .pastille:nth-of-type(1) { transition-delay: .1s; }
.avec-anim .schema.est-actif .pastille:nth-of-type(2) { transition-delay: .4s; }
.avec-anim .schema.est-actif .pastille:nth-of-type(3) { transition-delay: .7s; }
.avec-anim .schema.est-actif .pastille:nth-of-type(4) { transition-delay: 1s; }
.avec-anim .schema.est-actif .pastille:nth-of-type(5) { transition-delay: 1.3s; }
.avec-anim .schema.est-actif .pastille:nth-of-type(6) { transition-delay: 1.6s; }
.avec-anim .schema .soleil { transform-box: fill-box; transform-origin: center; transform: translateY(14px) scale(.9); opacity: 0; transition: transform .9s ease, opacity .9s ease; }
.avec-anim .schema.est-actif .soleil { transform: none; opacity: 1; }
.avec-anim .schema .rayons { opacity: 0; transition: opacity .8s ease .6s; }
.avec-anim .schema.est-actif .rayons { opacity: 1; }
.avec-anim .schema ~ .etapes li { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
.avec-anim .schema.est-actif ~ .etapes li { opacity: 1; transform: none; }
.avec-anim .schema.est-actif ~ .etapes li:nth-child(1) { transition-delay: .1s; }
.avec-anim .schema.est-actif ~ .etapes li:nth-child(2) { transition-delay: .4s; }
.avec-anim .schema.est-actif ~ .etapes li:nth-child(3) { transition-delay: .7s; }
.avec-anim .schema.est-actif ~ .etapes li:nth-child(4) { transition-delay: 1s; }
.avec-anim .schema.est-actif ~ .etapes li:nth-child(5) { transition-delay: 1.3s; }
.avec-anim .schema.est-actif ~ .etapes li:nth-child(6) { transition-delay: 1.6s; }
.avec-anim .schema.est-actif .flux-panneau { animation: flux-panneau 1.6s linear infinite; }
/* Pictogrammes des chiffres : rayons qui s'allument, grange qui se dessine, points qui apparaissent */
.avec-anim .picto--soleil .rayons line { stroke-dasharray: 10; stroke-dashoffset: 10; }
.avec-anim .est-visible .picto--soleil .rayons line { animation: trait .45s ease-out forwards; }
.avec-anim .est-visible .picto--soleil .rayons line:nth-child(2) { animation-delay: .08s; }
.avec-anim .est-visible .picto--soleil .rayons line:nth-child(3) { animation-delay: .16s; }
.avec-anim .est-visible .picto--soleil .rayons line:nth-child(4) { animation-delay: .24s; }
.avec-anim .est-visible .picto--soleil .rayons line:nth-child(5) { animation-delay: .32s; }
.avec-anim .est-visible .picto--soleil .rayons line:nth-child(6) { animation-delay: .4s; }
.avec-anim .est-visible .picto--soleil .rayons line:nth-child(7) { animation-delay: .48s; }
.avec-anim .est-visible .picto--soleil .rayons line:nth-child(8) { animation-delay: .56s; }
.avec-anim .picto--grange .trait { stroke-dasharray: 100; stroke-dashoffset: 100; }
.avec-anim .est-visible .picto--grange .trait { animation: trait .9s ease-out forwards; }
.avec-anim .est-visible .picto--grange .trait:nth-child(2) { animation-delay: .3s; }
.avec-anim .est-visible .picto--grange .trait:nth-child(3) { animation-delay: .7s; }
.avec-anim .est-visible .picto--grange .trait:nth-child(4) { animation-delay: .9s; }
.avec-anim .picto--france .points circle { transform: scale(0); transform-box: fill-box; transform-origin: center; }
.avec-anim .est-visible .picto--france .points circle { animation: point .4s cubic-bezier(.2, .8, .3, 1.3) forwards; }
.avec-anim .est-visible .picto--france .points circle:nth-child(2) { animation-delay: .2s; }
.avec-anim .est-visible .picto--france .points circle:nth-child(3) { animation-delay: .4s; }
.avec-anim .est-visible .picto--france .points circle:nth-child(4) { animation-delay: .6s; }
@keyframes trait { to { stroke-dashoffset: 0; } }
@keyframes point { to { transform: scale(1); } }
@keyframes flux-panneau { to { stroke-dashoffset: -48; } }

/* ===== Réalisations ===== */
.galerie { display: grid; gap: clamp(.75rem, 1.5vw, 1.25rem); grid-template-columns: 1fr; }
@media (min-width: 600px) { .galerie { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .galerie { grid-template-columns: repeat(3, 1fr); } }
.realisation { margin: 0; position: relative; border-radius: var(--rayon); overflow: hidden; background: var(--therval-foret); }
.realisation img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .6s ease; }
.realisation:hover img { transform: scale(1.04); }
.realisation figcaption { position: absolute; inset: auto 0 0 0; padding: 2.25rem .9rem .8rem; color: var(--therval-lin); font-size: .875rem; line-height: 1.35; background: rgba(23, 56, 43, .82); }
.realisation figcaption strong { display: block; font-weight: 600; font-size: .9375rem; }
@media (min-width: 900px) {
  .realisation figcaption { transform: translateY(100%); transition: transform .3s ease; padding-top: .8rem; }
  .realisation:hover figcaption, .realisation:focus-within figcaption { transform: none; }
}
.sans-anim .realisation figcaption { transform: none; }
@media (hover: none) { .realisation figcaption { transform: none; } }

/* Appel à l'action en bas de section */
.section__note { margin: 1.25rem auto 0; max-width: none; font-size: .75rem; color: var(--therval-terre); text-align: center; }
.renvoi { font-size: .6em; font-weight: 500; color: var(--therval-terre); vertical-align: super; line-height: 0; margin-left: .1em; }
.section__action { margin: clamp(1.5rem, 4vw, 2.5rem) 0 0; max-width: none; text-align: center; }
