/* =========================================================
   Atelier Cédric DiDaT — feuille de style de la maquette
   ========================================================= */
:root {
  --c-principale: #1b4c61;
  --c-accent: #ce570e;
  --c-texte: #2d516a;
  --c-clair: #e7f6ff;
  --c-ligne: #d1dae5;
  --c-blanc: #fff;
  --f-titre: "Afacad", "Assistant", sans-serif;
  --f-texte: "Assistant", system-ui, sans-serif;
  --largeur: 1140px;
  --ombre: 0 10px 30px rgba(27, 76, 97, .12);
  --rayon: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-texte);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-texte);
  background: #f4f4f2 var(--fond-page, none) center top / cover fixed;
}
img { max-width: 100%; display: block; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { color: var(--c-principale); }
h1, h2, h3, h4 { font-family: var(--f-titre); color: var(--c-principale); line-height: 1.2; margin: 0 0 .6em; font-weight: 500; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 999; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

/* ---------- Boîte de page (fond texturé visible sur les côtés) ---------- */
.page-box {
  max-width: calc(var(--largeur) + 120px);
  margin: 0 auto;
  background: var(--c-blanc);
  min-height: 100vh;
  box-shadow: 0 0 40px rgba(0, 0, 0, .06);
  display: flex; flex-direction: column;
}
main { flex: 1; padding: 0 60px 70px; outline: none; }
@media (max-width: 921px) { main { padding: 0 22px 50px; } }

/* ---------- En-tête ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 60px; position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px);
  transition: padding .3s, box-shadow .3s;
}
.site-header.compact { padding-top: 10px; padding-bottom: 10px; box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.brand { display: flex; align-items: center; gap: 14px; color: inherit; }
.brand-logo { width: 92px; height: 92px; object-fit: contain; transition: width .3s, height .3s; }
.compact .brand-logo { width: 64px; height: 64px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-metier { font-family: var(--f-titre); font-size: 1.45rem; color: var(--c-principale); }
.brand-nom { color: var(--c-accent); font-size: 1rem; }
.brand-nom::before { content: "| "; }

.main-nav > ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; align-items: center; }
.main-nav li { position: relative; }
.main-nav a {
  display: block; padding: 10px 14px; color: var(--c-texte); font-size: 1rem;
  position: relative; transition: color .25s;
}
.main-nav > ul > li > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.main-nav a:hover, .main-nav a.actif { color: var(--c-accent); }
.main-nav > ul > li > a:hover::after, .main-nav > ul > li > a.actif::after { transform: scaleX(1); }
.has-sub > a { padding-right: 28px; }
.has-sub > a::before { content: "⌄"; position: absolute; right: 10px; top: 6px; font-size: .9rem; }
.sub-toggle { display: none; }
.sub {
  list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; box-shadow: var(--ombre); border-top: 2px solid var(--c-accent);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s ease;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { padding: 8px 18px; }
.sub a:hover { background: var(--c-clair); }

.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--c-principale); margin: 6px 0; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 921px) {
  .site-header { padding: 14px 22px; flex-wrap: wrap; }
  .brand-logo { width: 68px; height: 68px; }
  .burger { display: block; }
  .main-nav { flex-basis: 100%; max-height: 0; overflow: hidden; transition: max-height .4s ease; }
  .main-nav.ouvert { max-height: 520px; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding-top: 10px; }
  .main-nav li { border-top: 1px solid var(--c-ligne); }
  .main-nav > ul > li > a::after { display: none; }
  .has-sub > a::before { display: none; }
  .sub-toggle { display: block; position: absolute; right: 0; top: 0; width: 48px; height: 46px; background: none; border: 0; cursor: pointer; color: var(--c-texte); }
  .sub-toggle::before { content: "+"; font-size: 1.3rem; }
  .sub-toggle[aria-expanded="true"]::before { content: "–"; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; display: none; }
  .sub.ouvert { display: block; }
  .has-sub:hover .sub { display: none; }
  .has-sub:hover .sub.ouvert { display: block; }
}

/* ---------- Animations d'apparition ---------- */
.anim { opacity: 0; transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.anim.a-gauche { transform: translateX(-60px); }
.anim.a-droite { transform: translateX(60px); }
.anim.a-bas { transform: translateY(50px); }
.anim.a-fondu { transform: none; }
.anim.vu { opacity: 1; transform: none; }
.anim.a-aucune { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) { .anim { opacity: 1 !important; transform: none !important; transition: none; } }

.titre-section { text-align: center; margin: 60px 0 30px; }
.titre-section h2 { margin-bottom: .2em; }
.titre-section .points { color: var(--c-accent); letter-spacing: .4em; }
.page-titre { margin: 30px 0 30px; }

/* ---------- Carrousel ---------- */
.carrousel { position: relative; overflow: hidden; aspect-ratio: 3 / 2; max-height: 76vh; width: 100%; background: #eef1f3; }
.carrousel .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.carrousel .slide.on { opacity: 1; }
.carrousel .slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s linear; }
.carrousel .slide.on img { transform: scale(1); }
.car-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.75); border: 0; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.6rem; color: var(--c-principale); transition: background .2s; }
.car-nav:hover { background: #fff; }
.car-prev { left: 14px; } .car-next { right: 14px; }
.car-dots { display: flex; justify-content: center; gap: 8px; margin: 14px 0 0; }
.car-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--c-ligne); cursor: pointer; padding: 0; transition: background .2s, transform .2s; }
.car-dots button.on { background: var(--c-accent); transform: scale(1.3); }

/* ---------- Cartes « nouvelles » ---------- */
.grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 921px) { .grille-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grille-3 { grid-template-columns: 1fr; } }
.carte { position: relative; display: block; overflow: hidden; aspect-ratio: 1; background: #ddd; color: #fff; }
.carte img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.carte:hover img { transform: scale(1.06); }
.carte .bandeau {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 12px 12px; text-align: center;
  background: rgba(20, 30, 36, .62); transition: background .3s;
}
.carte:hover .bandeau { background: rgba(206, 87, 14, .85); }
.carte .bandeau strong { display: block; font-family: var(--f-titre); font-weight: 600; font-size: 1.35rem; letter-spacing: .02em; line-height: 1.1; color: #fff; }
.carte .bandeau span { font-size: .95rem; opacity: .95; }
.carte-date { font-size: .85rem; color: #8a9aa6; margin-top: 8px; }
.voir-plus { text-align: center; margin-top: 18px; }
.voir-plus a { color: var(--c-texte); letter-spacing: .06em; }
.voir-plus a:hover { color: var(--c-accent); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--c-accent); color: #fff; font-size: .75rem; padding: 3px 9px; letter-spacing: .05em; z-index: 2; }

/* Nouvelles : carte mise en avant */
.une { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; background: var(--c-clair); margin-bottom: 34px; color: inherit; }
.une .une-img { overflow: hidden; aspect-ratio: 4/3; }
.une img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.une:hover img { transform: scale(1.04); }
.une .une-txt { padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.une .une-txt small { color: var(--c-accent); text-transform: uppercase; letter-spacing: .1em; }
.une h2 { margin: .3em 0; }
@media (max-width: 760px) { .une { grid-template-columns: 1fr; } }

/* ---------- Projets : filtre couleur ---------- */
.filtres { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 10px 0 34px; }
.filtres button {
  font: inherit; font-size: .95rem; letter-spacing: .03em; padding: 8px 16px; cursor: pointer;
  background: color-mix(in srgb, var(--cat) 18%, white); color: #222;
  border: 1px dotted var(--cat); transition: background .25s, color .25s, transform .2s;
}
.filtres button:hover { transform: translateY(-2px); }
.filtres button.on { background: var(--cat); color: #fff; border-style: solid; }
.projet-tuile { position: relative; display: block; overflow: hidden; aspect-ratio: 1; background: #ccc; }
.projet-tuile img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .5s ease, transform .7s ease; }
.projet-tuile .voile { position: absolute; inset: 0; background: var(--cat, #8a9aa6); mix-blend-mode: multiply; opacity: .78; transition: opacity .5s ease; }
.projet-tuile .infos {
  position: absolute; inset: auto 0 0 0; padding: 70px 16px 18px; text-align: center; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.45);
  background: linear-gradient(rgba(10,22,30,0), rgba(10,22,30,.55) 40%, rgba(10,22,30,.88)); transform: translateY(100%); transition: transform .45s ease;
}
.projet-tuile .infos strong { display: block; font-family: var(--f-titre); font-size: 1.3rem; font-weight: 600; line-height: 1.15; }
.projet-tuile:hover img, .projet-tuile:focus img { filter: none; transform: scale(1.05); }
.projet-tuile:hover .voile, .projet-tuile:focus .voile { opacity: 0; }
.projet-tuile:hover .infos, .projet-tuile:focus .infos { transform: none; }
.projet-tuile.cache { display: none; }
@media (hover: none) { .projet-tuile .infos { transform: none; } }

/* ---------- Fiche projet ---------- */
.fiche { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.fiche aside { background: var(--c-clair); padding: 24px; border-left: 4px solid var(--cat, var(--c-accent)); }
.fiche aside dl { margin: 0; }
.fiche aside dt { font-weight: 700; color: var(--c-principale); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-top: 12px; }
.fiche aside dd { margin: 2px 0 0; }
.fiche .type { font-size: 1.15rem; color: var(--c-accent); }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 30px; }
.galerie button { padding: 0; border: 0; cursor: zoom-in; aspect-ratio: 4/3; overflow: hidden; background: #eee; }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.galerie button:hover img { transform: scale(1.06); }
.hero-projet { margin-bottom: 30px; }
.hero-projet img { width: 100%; height: auto; display: block; }
.retour { display: inline-block; margin: 20px 0; }
@media (max-width: 860px) { .fiche { grid-template-columns: 1fr; } }

/* ---------- Atelier ---------- */
.intro { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; padding: 40px; margin-top: 30px; }
.intro.photo-droite { grid-template-columns: 1fr 300px; }
.intro.photo-droite .intro-photo { order: 2; }
.intro-photo img { width: 100%; aspect-ratio: 2/3; object-fit: cover; box-shadow: var(--ombre); }
.intro blockquote { margin: 0 0 .3em; font-family: var(--f-titre); font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--c-principale); }
.intro .sous-titre { color: var(--c-accent); font-weight: 600; margin-bottom: 1.2em; }
@media (max-width: 860px) { .intro, .intro.photo-droite { grid-template-columns: 1fr; padding: 24px; } .intro-photo { max-width: 280px; margin: auto; } .intro.photo-droite .intro-photo { order: 0; } }

.matieres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.matiere { position: relative; overflow: hidden; aspect-ratio: 1; background: #ccc; }
.matiere img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.matiere .m-txt { position: absolute; inset: 0; padding: 24px; background: rgba(27, 76, 97, .88); color: #fff; display: flex; flex-direction: column; justify-content: center; opacity: 0; transition: opacity .4s; font-size: .95rem; }
.matiere h3 { position: absolute; left: 0; bottom: 0; margin: 0; background: #fff; color: var(--c-principale); padding: 8px 16px; font-size: 1.1rem; transition: opacity .3s; }
.matiere:hover img, .matiere:focus-within img { transform: scale(1.08); }
.matiere:hover .m-txt, .matiere:focus .m-txt { opacity: 1; }
.matiere:hover h3 { opacity: 0; }
.matiere .m-txt h4 { color: #fff; font-size: 1.2rem; }
@media (max-width: 760px) { .matieres { grid-template-columns: 1fr; } .matiere .m-txt { position: static; opacity: 1; background: var(--c-principale); } .matiere { aspect-ratio: auto; } .matiere img { aspect-ratio: 4/3; } .matiere h3 { display: none; } }

.deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 860px) { .deux-col { grid-template-columns: 1fr; gap: 20px; } }
.moyens h4 { font-family: var(--f-texte); font-weight: 700; font-size: .95rem; color: var(--c-principale); margin: 1.2em 0 .3em; text-transform: none; }
.moyens ul { margin: 0; padding-left: 22px; }
.moyens li::marker { color: var(--c-accent); }
.moyens .note { margin-top: 1.4em; font-style: italic; background: var(--c-clair); padding: 14px 18px; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--c-ligne); }
.timeline li { position: relative; padding-bottom: 26px; }
.timeline li::before { content: ""; position: absolute; left: -30px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--c-principale); transition: border-color .3s, transform .3s; }
.timeline li:hover::before { border-color: var(--c-accent); transform: scale(1.2); }
.timeline h4 { margin: 0; font-size: 1.15rem; }
.timeline .meta { font-size: .9rem; color: #6c7f8c; }
.timeline .meta b { color: var(--c-accent); font-weight: 600; margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--c-ligne); }
.timeline p { margin: .3em 0 0; font-size: .95rem; }

/* ---------- Bonus : trois volets ---------- */
.bonus-tete { text-align: center; max-width: 640px; margin: 34px auto 30px; }
.bonus-tete p { color: #5f7482; font-size: 1.08rem; }
.volets { display: flex; gap: 14px; height: 520px; }
.volet { position: relative; flex: 1; overflow: hidden; color: #fff; display: block; transition: flex .7s cubic-bezier(.2,.8,.2,1), opacity .9s ease, transform .9s ease; min-width: 0; }
.volets:hover .volet { flex: .8; }
.volets .volet:hover, .volets .volet:focus-visible { flex: 2.2; color: #fff; }
.volet img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .7s, transform 1.2s; }
.volet .voile { position: absolute; inset: 0; background: var(--bg); mix-blend-mode: multiply; opacity: .85; transition: opacity .7s; }
.volet::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(10,25,32,.75)); }
.volet:hover img, .volet:focus-visible img { filter: none; transform: scale(1.05); }
.volet:hover .voile, .volet:focus-visible .voile { opacity: .25; }
.volet-num { position: absolute; top: 18px; left: 22px; z-index: 2; font-family: var(--f-titre); font-size: 3.4rem; line-height: 1; opacity: .55; }
.volet-txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 26px; }
.volet h2 { color: #fff; font-size: 1.9rem; margin: 0 0 4px; white-space: nowrap; }
.volet-compte { font-size: .95rem; opacity: .9; }
.volet-compte b { font-family: var(--f-titre); font-size: 1.4rem; font-weight: 600; }
.volet-plus { display: block; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s ease, opacity .5s ease .15s; }
.volet:hover .volet-plus, .volet:focus-visible .volet-plus { max-height: 220px; opacity: 1; }
.volet-plus p { margin: 12px 0 14px; font-size: 1.05rem; max-width: 40ch; }
.volet-btn { display: inline-block; border: 1px solid #fff; padding: 8px 18px; letter-spacing: .05em; font-size: .9rem; transition: background .3s, color .3s; }
.volet-btn i { font-style: normal; display: inline-block; transition: transform .3s; }
.volet:hover .volet-btn { background: #fff; color: var(--c-principale); }
.volet:hover .volet-btn i { transform: translateX(5px); }
@media (max-width: 860px) {
  .volets { flex-direction: column; height: auto; }
  .volets .volet, .volets:hover .volet, .volets .volet:hover, .volets .volet:focus, .volets:hover .volet:focus { flex: none !important; height: 380px; }
  .volet-num { font-size: 2.4rem; top: 14px; left: 18px; }
  .volet-plus { max-height: 220px; opacity: 1; }
  .volet .voile { opacity: .55; }
}
@media (hover: none) { .volet-plus { max-height: 220px; opacity: 1; } }

/* ---------- Dessins (galerie justifiée) ---------- */
.justifie { display: flex; flex-wrap: wrap; gap: 8px; }
.justifie::after { content: ""; flex-grow: 999; }
.justifie button { padding: 0; border: 0; height: 220px; flex-grow: 1; cursor: zoom-in; overflow: hidden; background: #f1f1f1; position: relative; }
.justifie img { height: 100%; width: 100%; object-fit: cover; transition: transform .5s, filter .3s; }
.justifie button:hover img { transform: scale(1.05); }
.justifie button span { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px; background: rgba(0,0,0,.55); color: #fff; font-size: .85rem; opacity: 0; transition: opacity .3s; text-align: left; }
.justifie button:hover span { opacity: 1; }
@media (max-width: 600px) { .justifie button { height: 150px; } }

/* ---------- Pied de page : textes alignés à droite contre le dessin ---------- */
.site-footer { position: relative; padding: 34px 40px 0; background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.9)), var(--fond-page, none) center / cover; border-top: 1px solid var(--c-ligne); font-size: .9rem; }
.pied-principal { display: flex; justify-content: center; align-items: center; gap: 22px; }
.pied-principal address { font-style: normal; text-align: right; }
.pied-principal p { margin: 0 0 .3em; }
.site-footer strong { color: var(--c-principale); }
.pied-principal img { width: 120px; flex: none; transition: transform .4s; }
.pied-principal img:hover { transform: rotate(-4deg) scale(1.05); }
.site-footer .zones { margin: 18px -40px 0; padding: 7px 20px 8px; text-align: center; font-size: .66rem; line-height: 1.5; color: #ccd4da; border-top: 1px solid #edf0f2; letter-spacing: .02em; }
@media (max-width: 700px) { .site-footer { padding: 26px 18px 0; } .pied-principal { gap: 12px; } .pied-principal img { width: 80px; } .site-footer .zones { margin: 16px -18px 0; } }

.to-top { position: fixed; right: 20px; bottom: 20px; width: 40px; height: 40px; background: var(--c-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .8rem; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 40; }
.to-top.on { opacity: 1; pointer-events: auto; }
.to-top:hover { color: #fff; background: var(--c-principale); }

/* ---------- Visionneuse ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(10, 18, 24, .92); z-index: 200; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 90vw; max-height: 88vh; text-align: center; }
.lightbox img { max-width: 90vw; max-height: 80vh; margin: auto; }
.lightbox figcaption { color: #dfe7ec; margin-top: 10px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; padding: 10px 18px; }
.lb-close { top: 10px; right: 14px; } .lb-prev { left: 10px; } .lb-next { right: 10px; }

.texte-long p { max-width: 75ch; }
.vide { padding: 30px; background: var(--c-clair); text-align: center; }

/* ---------- Projets : encadré de présentation de la catégorie ---------- */
.cat-intro { aspect-ratio: 1; background: color-mix(in srgb, var(--cat) 55%, white); color: #1f2d33; padding: 22px 22px; overflow: auto; display: flex; align-items: center;
  font-size: .9rem; line-height: 1.5; opacity: 0; transform: scale(.94); transition: opacity .6s ease, transform .6s ease; border-left: 5px solid var(--cat); }
.cat-intro.vu { opacity: 1; transform: none; }
.cat-intro[hidden] { display: none; }
.cat-intro strong { display: block; font-family: var(--f-titre); font-size: 1.15rem; line-height: 1.25; margin-bottom: .6em; color: #12313d; }
.cat-intro p { margin: 0; }
@media (max-width: 560px) { .cat-intro { aspect-ratio: auto; } }

/* ---------- Atelier : missions ---------- */
.missions-intro { text-align: center; max-width: 70ch; margin: -10px auto 26px; }
.missions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mission { position: relative; padding: 24px 22px 20px; background: #f6f8fa; border-top: 3px solid var(--c-principale); transition: border-color .3s, transform .3s, box-shadow .3s; }
.mission:hover { border-color: var(--c-accent); transform: translateY(-4px); box-shadow: var(--ombre); }
.mission span { position: absolute; top: 14px; right: 18px; font-family: var(--f-titre); font-size: 1.8rem; color: var(--c-ligne); }
.mission h3 { margin-bottom: .4em; }
.mission p { margin: 0; font-size: .95rem; }
@media (max-width: 860px) { .missions { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .missions { grid-template-columns: 1fr; } }

/* ---------- Divers ---------- */
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.accroche { text-align: center; font-family: var(--f-titre); font-size: 1.2rem; color: var(--c-principale); margin: 34px auto 0; max-width: 60ch; }
.fil { font-size: .85rem; color: #7a8c98; margin: 22px 0 16px; }
.fil a { color: #7a8c98; } .fil a:hover { color: var(--c-accent); }
.h3 { font-size: 1.25rem; }
.cta-projet { margin-top: 40px; padding: 22px; background: var(--c-clair); text-align: center; }
.cta-projet .btn { margin: 0 0 0 12px; }

/* ---------- Publications : étagère ---------- */
.biblio-aide { color: #7a8c98; font-size: .95rem; margin-top: -14px; }
.biblio-zone { position: relative; margin-top: 10px; padding-bottom: 14px; }
.biblio { display: flex; align-items: flex-end; gap: 34px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 96px 46px 0; scroll-snap-type: x proximity; }
.biblio::-webkit-scrollbar { display: none; }
.livre-place { flex: none; scroll-snap-align: start; }
.livre { position: relative; display: block; padding: 0; border: 0; background: none; cursor: pointer; }
.livre-corps { position: relative; display: block; transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s; box-shadow: 6px 8px 14px rgba(27,76,97,.18); }
.livre-corps img { height: 250px; width: auto; max-width: none; display: block; border-radius: 0 2px 2px 0; background: #eef1f3; }
.livre-tranche { position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.2) 60%, transparent); }
.livre:hover .livre-corps, .livre:focus-visible .livre-corps, .livre.ouvert .livre-corps { transform: translateY(-14px); box-shadow: 8px 22px 26px rgba(27,76,97,.22); }
.livre.ouvert .livre-corps { outline: 2px solid var(--c-accent); outline-offset: 4px; }
.livre-bulle { position: absolute; left: 50%; bottom: calc(100% + 24px); transform: translate(-50%, 8px); width: 200px; background: var(--c-principale); color: #fff; padding: 9px 12px; font-size: .85rem; line-height: 1.3;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 3; text-align: center; }
.livre-bulle::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--c-principale); }
.livre-bulle b { display: block; font-family: var(--f-titre); font-size: 1rem; font-weight: 500; }
.livre-bulle span { color: #f5b88e; }
.livre:hover .livre-bulle, .livre:focus-visible .livre-bulle { opacity: 1; transform: translate(-50%, 0); }
/* Étagère : tablette fine aux couleurs du site, avec deux équerres */
.etagere { position: relative; height: 10px; margin: 0 20px; background: linear-gradient(#f7f6f2, #e9e6df); border-top: 2px solid var(--c-principale); box-shadow: 0 10px 14px -10px rgba(27,76,97,.45); }
.biblio-fl { position: absolute; top: calc(50% + 30px); transform: translateY(-50%); z-index: 4; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--c-ligne); background: rgba(255,255,255,.95); color: var(--c-principale); font-size: 1.5rem; cursor: pointer; box-shadow: var(--ombre); transition: background .25s, color .25s; }
.biblio-fl:hover { background: var(--c-principale); color: #fff; }
.biblio-fl.g { left: 0; } .biblio-fl.d { right: 0; }
.biblio-fl[hidden] { display: none; }
.livre-detail { display: grid; grid-template-columns: 220px 1fr; gap: 34px; padding: 34px; margin-top: 46px; background: #f4f7f9; border-top: 3px solid var(--c-principale); position: relative; opacity: 0; transform: translateY(-14px); transition: opacity .5s, transform .5s; }
.livre-detail.vu { opacity: 1; transform: none; }
.livre-detail[hidden] { display: none; }
.ld-couv img { width: 100%; box-shadow: var(--ombre); }
.ld-txt h2 { font-weight: 600; }
.ld-txt dl { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0 0 1.2em; }
.ld-txt dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #6c7f8c; }
.ld-txt dd { margin: 0; font-weight: 700; color: var(--c-principale); }
.livre-fermer { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 2rem; color: var(--c-principale); cursor: pointer; line-height: 1; }
@media (max-width: 700px) { .biblio { gap: 22px; padding: 80px 30px 0; } .livre-corps img { height: 190px; } .livre-detail { grid-template-columns: 1fr; padding: 24px; } .ld-couv img { max-width: 200px; } .biblio-fl { width: 36px; height: 36px; } }

/* Autres publications (sobre) */
.autres { list-style: none; padding: 0; margin: 10px 0 0; border-top: 1px solid var(--c-ligne); }
.autres li { border-bottom: 1px solid var(--c-ligne); }
.autres li > a, .autres li > div { display: block; padding: 14px 4px 14px 26px; position: relative; color: var(--c-texte); transition: background .25s, padding-left .25s; }
.autres li > a::before, .autres li > div::before { content: "—"; position: absolute; left: 4px; top: 14px; color: var(--c-accent); }
.autres li > a:hover { background: #f6f8fa; padding-left: 32px; color: var(--c-texte); }
.a-src { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #8a9aa6; }
.a-titre { display: block; font-style: italic; }
.a-proj { display: block; font-size: .88rem; color: var(--c-accent); }

/* ---------- Contact ---------- */
.contact-tete { text-align: center; margin: 34px auto 10px; max-width: 640px; }
.contact-tete p { color: #5f7482; font-size: 1.08rem; }
.contact { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; margin-top: 30px; align-items: start; }
.carte-contact { background: #f4f7f9; border: 1px solid var(--c-ligne); padding: 32px 24px 24px; text-align: center; position: sticky; top: 120px; }
.cc-photo { position: relative; width: 190px; height: 190px; margin: 0 auto 20px; }
.cc-photo img { width: 190px; height: 190px; border-radius: 50%; object-fit: cover; transition: transform .6s; }
.carte-contact:hover .cc-photo img { transform: scale(1.04); }
.cc-anneau { position: absolute; inset: -9px; border-radius: 50%; border: 2px dashed var(--c-accent); animation: tourne 26s linear infinite; opacity: .7; }
@keyframes tourne { to { transform: rotate(360deg); } }
.carte-contact h2 { font-weight: 700; font-size: 1.35rem; margin-bottom: .2em; }
.carte-contact .st { color: var(--c-accent); font-weight: 600; margin-bottom: 1.2em; }
.cc-ligne { display: flex; gap: 14px; align-items: center; text-align: left; padding: 10px 12px; color: var(--c-texte); border-radius: 6px; transition: background .25s, transform .25s; }
.cc-ligne:hover { background: #fff; transform: translateX(4px); color: var(--c-principale); }
.cc-ligne small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #8a9aa6; }
.cc-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--c-principale); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: background .25s; }
.cc-ligne:hover .cc-ico { background: var(--c-accent); }
.cc-carte { margin-top: 16px; overflow: hidden; border-radius: 6px; }
.cc-carte iframe { width: 100%; height: 190px; border: 0; display: block; filter: grayscale(.6) contrast(1.05); transition: filter .4s; }
.cc-carte:hover iframe { filter: none; }

.chips { border: 0; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-weight: 700; color: var(--c-principale); margin-bottom: 10px; padding: 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 16px; border: 1px solid #b9c5cf; border-radius: 30px; cursor: pointer; font-size: .92rem; transition: all .25s; user-select: none; }
.chip:hover span { border-color: var(--c-principale); transform: translateY(-2px); }
.chip input:checked + span { background: var(--c-principale); border-color: var(--c-principale); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.flottant { position: relative; margin-top: 18px; }
.flottant input, .flottant textarea { width: 100%; font: inherit; padding: 22px 14px 8px; border: 0; border-bottom: 2px solid #c9d3db; background: #f7f9fa; border-radius: 4px 4px 0 0; transition: border-color .3s, background .3s; }
.flottant textarea { min-height: 160px; resize: vertical; }
.flottant label { position: absolute; left: 14px; top: 15px; color: #7a8c98; pointer-events: none; transition: all .2s ease; }
.flottant input:focus, .flottant textarea:focus { outline: none; border-color: var(--c-accent); background: #fff; }
.flottant input:focus + label, .flottant input:not(:placeholder-shown) + label,
.flottant textarea:focus + label, .flottant textarea:not(:placeholder-shown) + label { top: 5px; font-size: .75rem; color: var(--c-accent); }
.form.essaye .flottant :invalid { border-color: #c0392b; }
.compteur { position: absolute; right: 10px; bottom: 8px; font-size: .75rem; color: #9aa8b2; }
.deux-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form .rgpd { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; margin-top: 16px; color: #5a6c78; }
.form .rgpd input { width: auto; margin-top: 4px; }
.btn-envoi { display: inline-flex; gap: 12px; align-items: center; overflow: hidden; }
.btn-envoi i { font-style: normal; transition: transform .5s; }
.btn-envoi:hover i { transform: translateX(4px); }
.btn-envoi.part i { transform: translate(60px, -30px) rotate(-20deg); opacity: 0; transition: transform .8s, opacity .8s; }
.form-ok { padding: 14px 18px; margin-top: 16px; }
.form-ok.erreur { background: #fdecea; color: #8a1c12; }
.form-ok.merci { background: #e6f4ea; color: #1e5a32; display: flex; gap: 14px; align-items: center; }
.form-ok svg { width: 44px; height: 44px; flex: none; fill: none; stroke: #1e8a3e; stroke-width: 3; }
.form-ok svg circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: trace .6s forwards; }
.form-ok svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: trace .4s .5s forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .carte-contact { position: static; } .deux-champs { grid-template-columns: 1fr; } }

/* =========================================================
   Effets dynamiques (version 4)
   ========================================================= */

/* Transitions douces entre les pages */
main.entree { animation: entree .55s ease both; }
@keyframes entree { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
#progression { position: fixed; left: 0; right: 0; top: 0; height: 3px; background: var(--c-accent); transform-origin: left; transform: scaleX(0); z-index: 120; transition: transform .1s linear; }
#progression[hidden] { display: none; }

/* Accueil : image plein écran */
.hero.carrousel { aspect-ratio: auto; height: calc(100vh - 122px); min-height: 460px; max-height: none; margin: 0 -60px; width: auto; }
.hero .slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,25,32,.62) 0%, rgba(10,25,32,.18) 55%, transparent 80%), linear-gradient(transparent 70%, rgba(10,25,32,.35)); }
.hero-txt { position: absolute; left: 60px; bottom: 90px; z-index: 3; color: #fff; max-width: 560px; animation: heroTxt 1.2s .2s ease both; }
@keyframes heroTxt { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.hero-txt h1 { color: #fff; margin: 0 0 .3em; font-weight: 500; }
.hero-txt h1 span { display: block; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; letter-spacing: .01em; }
.hero-txt h1 small { display: block; font-family: var(--f-texte); font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 14px; opacity: .9; }
.hero-txt p { font-size: 1.15rem; margin-bottom: 1.4em; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.hero-btn { background: var(--c-accent); margin: 0; }
.hero-btn i { font-style: normal; display: inline-block; transition: transform .3s; }
.hero-btn:hover i { transform: translateX(5px); }
.hero .car-dots { position: absolute; right: 60px; bottom: 34px; margin: 0; z-index: 3; }
.hero .car-dots button { background: rgba(255,255,255,.55); }
.hero .car-dots button.on { background: #fff; }
.hero .car-prev, .hero .car-next { z-index: 3; }
.hero-bas { position: absolute; left: 50%; bottom: 20px; margin-left: -18px; width: 36px; height: 56px; border: 2px solid rgba(255,255,255,.8); border-radius: 20px; background: none; cursor: pointer; z-index: 3; }
.hero-bas span { position: absolute; left: 50%; top: 10px; width: 4px; height: 10px; margin-left: -2px; background: #fff; border-radius: 2px; animation: molette 1.8s infinite; }
@keyframes molette { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(18px); } }
@media (max-width: 921px) {
  .hero.carrousel { margin: 0 -22px; height: calc(100svh - 90px); min-height: 420px; }
  .hero-txt { left: 22px; right: 22px; bottom: 80px; }
  .hero .car-dots { right: auto; left: 22px; bottom: 30px; }
  .hero .car-prev, .hero .car-next { display: none; }
  .hero-bas { display: none; }
}

/* Chiffres clés */
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 50px 0 10px; border-top: 1px solid var(--c-ligne); border-bottom: 1px solid var(--c-ligne); }
.chiffre { text-align: center; padding: 26px 10px; position: relative; }
.chiffre + .chiffre::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: var(--c-ligne); }
.chiffre b { display: block; font-family: var(--f-titre); font-weight: 500; font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--c-principale); line-height: 1.05; }
.chiffre b small { font-size: .45em; color: var(--c-accent); vertical-align: middle; margin-right: 4px; }
.chiffre > span { color: #6c7f8c; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; }
@media (max-width: 700px) { .chiffres { grid-template-columns: 1fr 1fr; } .chiffre:nth-child(3)::before { display: none; } }

/* Avant / après */
.avant-apres { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center; margin-top: 60px; }
.aa-txt h2 { margin-bottom: .4em; }
.lien-fleche { display: inline-block; margin-top: 6px; font-weight: 600; }
.lien-fleche i { font-style: normal; display: inline-block; transition: transform .3s; }
.lien-fleche:hover i { transform: translateX(5px); }
.compare-fig { margin: 0; }
.compare-fig figcaption { font-size: .85rem; color: #7a8c98; margin-top: 8px; }
.compare { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: #eee; user-select: none; }
.compare > img, .compare-avant img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-avant { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare.demo .compare-avant, .compare.demo .c-poignee { transition: clip-path .6s ease, left .6s ease; }
.c-poignee { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.35); pointer-events: none; }
.c-poignee i { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; color: var(--c-principale); display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; letter-spacing: 2px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.c-lab { position: absolute; top: 14px; background: rgba(10,25,32,.6); color: #fff; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; pointer-events: none; }
.c-lab.g { left: 14px; } .c-lab.d { right: 14px; }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare input[type=range]:focus-visible + * , .compare:focus-within .c-poignee i { outline: 3px solid var(--c-accent); }
@media (max-width: 860px) { .avant-apres { grid-template-columns: 1fr; gap: 20px; } }
.titre-nouvelles { font-size: 1.6rem !important; }

/* Nouvelles : ligne du temps */
.fil-temps { list-style: none; margin: 30px 0 0; padding: 0; position: relative; }
.fil-temps::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--c-ligne); }
.ft-annee { text-align: center; margin: 30px 0 20px; position: relative; z-index: 1; }
.ft-annee span { display: inline-block; background: var(--c-principale); color: #fff; font-family: var(--f-titre); font-size: 1.3rem; padding: 6px 22px; border-radius: 30px; }
.ft-item { width: 50%; position: relative; padding: 0 40px 26px; }
.ft-item.d { margin-left: 50%; }
.ft-item::before { content: ""; position: absolute; top: 34px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--c-accent); z-index: 1; }
.ft-item.g::before { right: -8px; } .ft-item.d::before { left: -8px; }
.ft-carte { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; background: #f6f8fa; padding: 12px; color: var(--c-texte); transition: transform .35s, box-shadow .35s, background .35s; }
.ft-item.g .ft-carte { grid-template-columns: 1fr 120px; text-align: right; }
.ft-item.g .ft-img { order: 2; }
.ft-carte:hover { transform: translateY(-4px); box-shadow: var(--ombre); background: #fff; color: var(--c-texte); }
.ft-img { aspect-ratio: 1; overflow: hidden; }
.ft-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ft-carte:hover .ft-img img { transform: scale(1.08); }
.ft-txt time { display: block; font-size: .8rem; color: var(--c-accent); text-transform: uppercase; letter-spacing: .06em; }
.ft-txt strong { display: block; font-family: var(--f-titre); font-size: 1.25rem; color: var(--c-principale); line-height: 1.2; margin: 2px 0 4px; }
.ft-txt span { display: block; font-size: .9rem; }
.ft-txt em { font-style: normal; font-size: .85rem; color: #7a8c98; }
@media (max-width: 760px) {
  .fil-temps::before { left: 14px; }
  .ft-annee { text-align: left; }
  .ft-item, .ft-item.d { width: auto; margin-left: 0; padding: 0 0 20px 38px; }
  .ft-item.g::before, .ft-item.d::before { left: 7px; right: auto; }
  .ft-item.g .ft-carte, .ft-carte { grid-template-columns: 90px 1fr; text-align: left; }
  .ft-item.g .ft-img { order: 0; }
}

/* Projets : vue grille / carte */
.vues { display: flex; justify-content: center; gap: 0; margin: -14px 0 26px; }
.vues button { font: inherit; font-size: .9rem; padding: 7px 18px; border: 1px solid var(--c-ligne); background: #fff; cursor: pointer; color: var(--c-texte); transition: background .25s, color .25s; }
.vues button:first-child { border-radius: 20px 0 0 20px; } .vues button:last-child { border-radius: 0 20px 20px 0; border-left: 0; }
.vues button.on { background: var(--c-principale); color: #fff; border-color: var(--c-principale); }
.carte-projets[hidden], #grille-projets[hidden] { display: none; }
#leaflet { height: 560px; background: #eef1f3; }
#leaflet .leaflet-tile-pane { filter: saturate(.45) brightness(1.03); }
.leaflet-tooltip.etiquette { font-family: var(--f-texte); font-size: .8rem; color: var(--c-principale); border: 0; border-radius: 3px; box-shadow: 0 4px 12px rgba(0,0,0,.15); padding: 5px 9px; }
.pop { display: block; color: var(--c-texte); width: 190px; }
.pop .vg { display: block; overflow: hidden; aspect-ratio: 1; margin-bottom: 6px; } .pop img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.pop strong { display: block; font-family: var(--f-titre); font-size: 1.05rem; color: var(--c-principale); }
.pop span { font-size: .85rem; color: #7a8c98; }
@media (max-width: 700px) { #leaflet { height: 420px; } }

/* Page projet : galerie qui défile */
.defile-tete { display: flex; justify-content: space-between; align-items: end; margin-top: 50px; gap: 20px; }
.defile-tete .h3 { margin: 0; }
.defile-tete button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--c-ligne); background: #fff; font-size: 1.4rem; cursor: pointer; color: var(--c-principale); margin-left: 6px; transition: background .25s, color .25s; }
.defile-tete button:hover { background: var(--c-principale); color: #fff; }
.defile { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px 0 14px; scrollbar-width: thin; cursor: grab; }
.defile.tire { cursor: grabbing; scroll-snap-type: none; }
.defile button { flex: 0 0 auto; height: 420px; min-width: 280px; padding: 0; border: 0; background: #eee; scroll-snap-align: start; position: relative; overflow: hidden; cursor: zoom-in; }
.defile img { height: 100%; width: auto; max-width: none; transition: transform .7s; pointer-events: none; }
.defile button:hover img { transform: scale(1.03); }
.defile button span { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; padding: 2px 8px; }
@media (max-width: 700px) { .defile button { height: 260px; } }

/* Atelier : matériaux en volets */
.volets-matieres { height: 440px; }
.volets-matieres .volet { cursor: default; }
.volets-matieres .volet h3 { color: #fff; font-size: 1.7rem; margin: 0; white-space: nowrap; }
.volets-matieres .volet-plus p { font-size: .98rem; }
.volets-matieres .volet:focus .volet-plus, .volets-matieres .volet:focus-within .volet-plus { max-height: 260px; opacity: 1; }
.volets:hover .volet:focus { flex: .8; }

/* CV : la ligne se trace */
.timeline.trace::after { content: ""; position: absolute; left: 7px; top: 8px; width: 2px; height: calc((100% - 16px) * var(--trace, 0)); background: var(--c-accent); transition: height .15s linear; }
.timeline.trace .t-item { opacity: .35; transform: translateX(14px); transition: opacity .5s, transform .5s; }
.timeline.trace .t-item.atteint { opacity: 1; transform: none; }
.timeline.trace .t-item.atteint::before { border-color: var(--c-accent); }
.timeline.trace li::before { z-index: 1; }

/* Dessins : loupe */
.justifie .loupe img { transition: transform .35s ease; }
.justifie .loupe:hover img { transform: scale(1.9); }
.lightbox img { opacity: 0; transform: scale(.98); transition: opacity .35s, transform .35s; }
.lightbox img.lb-on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  main.entree, .hero-txt { animation: none; }
  .timeline.trace .t-item { opacity: 1; transform: none; }
}

/* Boutons (commun à tout le site) */
.btn { display: inline-block; font: inherit; background: var(--c-principale); color: #fff; border: 0; padding: 12px 28px; margin-top: 18px; cursor: pointer; letter-spacing: .05em; transition: background .25s, transform .25s; border-radius: var(--rayon); }
.btn:hover { background: var(--c-accent); color: #fff; }
.hero-btn { background: var(--c-accent); margin: 0; }
.hero-btn:hover { background: #fff; color: var(--c-principale); }

/* Boutons (commun à tout le site) */
.btn { display: inline-block; font: inherit; background: var(--c-principale); color: #fff; border: 0; padding: 12px 28px; margin-top: 18px; cursor: pointer; letter-spacing: .05em; transition: background .25s, transform .25s; border-radius: var(--rayon); }
.btn:hover { background: var(--c-accent); color: #fff; }
.hero-btn { background: var(--c-accent); margin: 0; }
.hero-btn:hover { background: #fff; color: var(--c-principale); }

/* =========================================================
   Motion design : intro « mur de briques » + transitions « dessin technique »
   ========================================================= */
html.intro-en-cours, html.intro-en-cours body { overflow: hidden; }
.intro-mur { position: fixed; inset: 0; z-index: 1000; overflow: hidden; background: #e9e7e2; perspective: 1200px; }
.im-briques i { position: absolute; display: block; box-sizing: border-box; border: 3px solid #dedad2; border-radius: 2px;
  background: linear-gradient(160deg, #fdfcfa, #f1efea 60%, #e8e5de); filter: brightness(calc(1 - var(--g)));
  box-shadow: inset 0 -2px 3px rgba(0,0,0,.05), inset 0 2px 2px rgba(255,255,255,.8);
  transition: transform 1.25s cubic-bezier(.55,.05,.7,.4) var(--d), opacity 1s ease calc(var(--d) + .25s); }
.intro-mur.ouvre .im-briques i { transform: translate3d(var(--tx), var(--ty), 260px) rotate(var(--rz)) rotateX(35deg); opacity: 0; }
.im-logo { position: absolute; left: 50%; top: 50%; width: 190px; height: 190px; margin: -95px 0 0 -95px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; z-index: 3;
  transform: scale(.6); opacity: 0; transition: transform .9s cubic-bezier(.2,1.4,.4,1), opacity .6s; }
.intro-mur.pret .im-logo { transform: scale(1); opacity: 1; }
.im-rond { position: absolute; inset: 0; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 18px 40px rgba(27,76,97,.25), 0 0 0 8px rgba(255,255,255,.6), inset 0 -6px 14px rgba(0,0,0,.06); transition: transform .25s ease, box-shadow .25s ease; }
.im-rond img { width: 64%; height: 64%; object-fit: contain; }
.im-logo:hover .im-rond { transform: scale(1.04); }
.im-onde { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c-accent); animation: onde 1.8s ease-out infinite; pointer-events: none; }
@keyframes onde { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.intro-mur.appui .im-rond { transform: scale(.86); box-shadow: 0 6px 14px rgba(27,76,97,.3), 0 0 0 4px rgba(255,255,255,.6), inset 0 6px 14px rgba(0,0,0,.12); }
.intro-mur.appui .im-onde { animation: none; opacity: 0; }
.intro-mur.ouvre .im-logo { transform: scale(1.25); opacity: 0; transition: transform .7s ease .1s, opacity .5s ease .25s; }
.intro-mur.ouvre { background: transparent; transition: background .3s; }
.im-texte { position: absolute; left: 0; right: 0; top: calc(50% + 120px); text-align: center; z-index: 3; margin: 0; font-family: var(--f-titre); font-size: 1.25rem; color: var(--c-principale);
  letter-spacing: .04em; opacity: 0; transform: translateY(10px); transition: opacity .6s .5s, transform .6s .5s; }
.im-texte b { font-weight: 500; }
.intro-mur.pret .im-texte { opacity: 1; transform: none; }
.im-aide { position: absolute; left: 0; right: 0; top: calc(50% + 156px); text-align: center; z-index: 3; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #8a9aa6; opacity: 0; animation: clignote 2s 1.4s infinite; }
@keyframes clignote { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.im-passer { position: absolute; right: 22px; bottom: 20px; z-index: 3; background: none; border: 0; color: #7a8c98; font: inherit; font-size: .85rem; cursor: pointer; }
.im-passer:hover { color: var(--c-accent); }
.intro-mur.ouvre .im-texte, .intro-mur.ouvre .im-aide, .intro-mur.ouvre .im-passer { opacity: 0; transition: opacity .3s; animation: none; }
.intro-mur.efface { opacity: 0; transition: opacity .45s; }

.transition-plan { position: fixed; inset: 0; z-index: 900; pointer-events: none; color: var(--c-principale);
  background-color: #f5f3ee; background-image: repeating-linear-gradient(0deg, rgba(27,76,97,.07) 0 1px, transparent 1px 24px), repeating-linear-gradient(90deg, rgba(27,76,97,.07) 0 1px, transparent 1px 24px);
  clip-path: inset(0 0 100% 0); transition: clip-path .42s cubic-bezier(.7,0,.3,1); }
.transition-plan.couvre { clip-path: inset(0 0 0 0); }
.transition-plan.leve { clip-path: inset(100% 0 0 0); transition: clip-path .55s cubic-bezier(.7,0,.3,1); }
.tr-svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: currentColor; }
.tr-svg line, .tr-svg rect, .tr-svg path { stroke-dasharray: 3000; stroke-dashoffset: 3000; }
.tr-construction line { stroke-width: .8; opacity: .35; }
.tr-construction .axe { stroke-dasharray: 18 6 3 6; stroke: var(--c-accent); opacity: .6; stroke-dashoffset: 0; clip-path: inset(0 100% 0 0); }
.tr-plan rect, .tr-plan path { stroke-width: 3; }
.tr-plan .porte { stroke-width: 1.2; }
.tr-cote line { stroke-width: 1; }
.tr-cote text { fill: currentColor; stroke: none; font-family: var(--f-texte); font-size: 13px; letter-spacing: .05em; opacity: 0; }
.couvre .tr-construction line { animation: trait .7s ease forwards .1s; }
.couvre .tr-construction .axe { animation: axe .6s ease forwards .25s; }
.couvre .tr-plan rect { animation: trait .6s ease forwards .25s; }
.couvre .tr-plan path { animation: trait .5s ease forwards .45s; }
.couvre .tr-cote line { animation: trait .4s ease forwards .5s; }
.couvre .tr-cote text { animation: apparait .3s ease forwards .7s; }
@keyframes trait { to { stroke-dashoffset: 0; } }
@keyframes axe { to { clip-path: inset(0 0 0 0); } }
@keyframes apparait { to { opacity: 1; } }
.tr-titre { position: absolute; left: 20vw; top: calc(26vh - 92px); font-family: var(--f-titre); opacity: 0; transform: translateY(8px); }
.couvre .tr-titre { animation: titre .45s ease forwards .3s; }
@keyframes titre { to { opacity: 1; transform: none; } }
.tr-titre small { display: block; font-family: var(--f-texte); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--c-accent); }
.tr-titre strong { display: block; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 500; line-height: 1.1; }
.tr-titre span { font-size: 1rem; color: #6c7f8c; }
.tr-cartouche { position: absolute; right: 24px; bottom: 24px; display: grid; grid-template-columns: auto auto; border: 1.5px solid currentColor; font-size: .78rem; background: rgba(255,255,255,.6); opacity: 0; }
.couvre .tr-cartouche { animation: apparait .3s ease forwards .45s; }
.tr-cartouche div { padding: 6px 12px; border: .5px solid rgba(27,76,97,.4); }
.tr-cartouche small { display: block; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: #8a9aa6; }
@media (max-width: 700px) {
  .im-logo { width: 150px; height: 150px; margin: -75px 0 0 -75px; }
  .im-texte { top: calc(50% + 96px); font-size: 1.05rem; } .im-aide { top: calc(50% + 128px); }
  .tr-titre { left: 8vw; } .tr-cartouche { left: 16px; right: 16px; grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Motion design v2 : intro « bouton et tracés » + transitions « croquis »
   ========================================================= */
html.intro-en-cours, html.intro-en-cours body { overflow: hidden; }
.intro2 { position: fixed; inset: 0; z-index: 1000; overflow: hidden; color: #fff; }
.ii-volet { position: absolute; top: 0; bottom: 0; width: 50.5%; background: radial-gradient(circle at 100% 50%, color-mix(in srgb, var(--intro-fond, var(--c-principale)) 92%, white), var(--intro-fond, var(--c-principale)) 70%);
  transition: transform 1.2s cubic-bezier(.77,0,.18,1), opacity 1.1s ease .2s; }
.ii-volet.g { left: 0; }
.ii-volet.d { right: 0; background: radial-gradient(circle at 0% 50%, color-mix(in srgb, var(--intro-fond, var(--c-principale)) 92%, white), var(--intro-fond, var(--c-principale)) 70%); }
.intro2.ouvre .ii-volet.g { transform: translateX(-60%); opacity: 0; }
.intro2.ouvre .ii-volet.d { transform: translateX(60%); opacity: 0; }

.ii-svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #fff; pointer-events: none; }
.ii-svg line, .ii-svg circle, .ii-svg path { vector-effect: non-scaling-stroke; }
.ii-rayons line { stroke-width: .7; stroke-opacity: .35; stroke-dasharray: 2 7; stroke-dashoffset: 0;
  clip-path: circle(0 at 50% 50%); }
.ii-rayons line.fort { stroke: #e9a272; stroke-opacity: .7; stroke-dasharray: 14 6 2 6; }
.intro2 .ii-rayons { clip-path: circle(0% at 50% 50%); transition: clip-path 1.6s cubic-bezier(.2,.7,.2,1) .35s; }
.intro2.pret .ii-rayons { clip-path: circle(75% at 50% 50%); }
.ii-rayons line { clip-path: none; animation: defile 6s linear infinite; }
@keyframes defile { to { stroke-dashoffset: -90; } }
.ii-cercles circle, .ii-cercles path { stroke-width: .8; stroke-opacity: .45; stroke-dasharray: 1200; stroke-dashoffset: 1200; transition: stroke-dashoffset 1.6s ease; }
.ii-cercles .c1 { stroke-opacity: .7; transition-delay: .2s; }
.ii-cercles .c2 { stroke-dasharray: 3 6; stroke-dashoffset: 0; opacity: 0; transition: opacity 1s .5s; transform-origin: 50% 50%; animation: tourneLent 40s linear infinite; }
.ii-cercles .c3 { stroke-opacity: .18; transition-delay: .6s; }
.ii-cercles .arc { stroke: #e9a272; stroke-opacity: .8; stroke-width: 1.2; transition-delay: .9s; }
.intro2.pret .ii-cercles circle, .intro2.pret .ii-cercles path { stroke-dashoffset: 0; }
.intro2.pret .ii-cercles .c2 { opacity: 1; }
@keyframes tourneLent { to { transform: rotate(360deg); } }
.ii-grad line { stroke-width: .8; stroke-opacity: .5; }
.ii-grad { opacity: 0; transform-origin: 50% 50%; transform: rotate(-20deg); transition: opacity 1.2s .7s, transform 2.4s cubic-bezier(.2,.7,.2,1) .5s; }
.intro2.pret .ii-grad { opacity: 1; transform: none; }
.ii-croix { stroke-width: 1; opacity: 0; transition: opacity .8s 1.2s; }
.intro2.pret .ii-croix { opacity: .6; }
.intro2.appui .ii-svg { opacity: 0; transform: scale(1.12); transition: opacity .7s ease, transform 1.1s ease; transform-origin: 50% 50%; }

.ii-bouton { position: absolute; left: 50%; top: 50%; width: 244px; height: 244px; margin: -122px 0 0 -122px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; z-index: 3;
  opacity: 0; transform: scale(.7); transition: transform 1s cubic-bezier(.2,1.3,.4,1) .15s, opacity .7s .15s; }
.intro2.pret .ii-bouton { opacity: 1; transform: none; }
.ii-rond { position: absolute; inset: 14px; border-radius: 50%; background: #fbfaf7; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.35), inset 0 -8px 16px rgba(0,0,0,.06); transition: transform .3s ease, box-shadow .3s ease; }
.ii-rond img { width: 72%; height: 72%; object-fit: contain; }
.ii-halo { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); animation: halo 2.6s ease-out infinite; }
@keyframes halo { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.ii-bouton:hover .ii-rond, .ii-bouton:focus-visible .ii-rond { transform: scale(1.04); box-shadow: 0 26px 60px rgba(0,0,0,.4), 0 0 0 6px rgba(233,162,114,.35); }
.ii-bouton:focus-visible { outline: none; }
.intro2.appui .ii-rond { transform: scale(.88); box-shadow: 0 8px 18px rgba(0,0,0,.35), inset 0 8px 18px rgba(0,0,0,.12); }
.intro2.appui .ii-halo { animation: none; opacity: 0; }
.intro2.ouvre .ii-bouton { transform: scale(1.5); opacity: 0; transition: transform 1s ease, opacity .8s ease; }

.ii-texte { position: absolute; left: 0; right: 0; top: calc(50% + 214px); text-align: center; z-index: 3; opacity: 0; transform: translateY(12px); transition: opacity .9s .9s, transform .9s .9s; }
.ii-texte span { display: block; font-size: .78rem; letter-spacing: .4em; text-transform: uppercase; color: #e9a272; margin-bottom: 6px; }
.ii-texte b { font-family: var(--f-titre); font-weight: 400; font-size: 1.7rem; letter-spacing: .06em; }
.intro2.pret .ii-texte { opacity: 1; transform: none; }
.ii-aide { position: absolute; left: 0; right: 0; top: calc(50% + 292px); text-align: center; z-index: 3; font-size: .72rem; letter-spacing: .5em; text-transform: uppercase; opacity: 0; animation: respire 2.6s 1.6s ease-in-out infinite; }
@keyframes respire { 0%, 100% { opacity: 0; } 50% { opacity: .75; } }
.ii-passer { position: absolute; right: 26px; bottom: 22px; z-index: 3; background: none; border: 0; color: rgba(255,255,255,.65); font: inherit; font-size: .82rem; letter-spacing: .1em; cursor: pointer; }
.ii-passer:hover { color: #fff; }
.intro2.appui .ii-texte, .intro2.appui .ii-aide, .intro2.appui .ii-passer { opacity: 0; transition: opacity .4s; animation: none; }
.intro2.efface { opacity: 0; transition: opacity .55s; }
@media (max-width: 700px) {
  .ii-bouton { width: 196px; height: 196px; margin: -98px 0 0 -98px; }
  .ii-texte { top: calc(50% + 200px); } .ii-texte b { font-size: 1.35rem; }
  .ii-aide { top: calc(50% + 274px); }
}


/* =========================================================
   Page projet : en-tête + modules
   ========================================================= */
.projet-tete { margin-bottom: 30px; padding-left: 18px; border-left: 4px solid var(--cat); }
.projet-tete h1 { margin-bottom: .2em; }
.projet-tete .type { color: var(--c-accent); font-size: 1.15rem; margin: 0; }
.mod-ligne { display: grid; grid-template-columns: var(--gtc); gap: 34px; margin: 0 0 40px; }
.mod-ligne.esp-serre { gap: 14px; margin-bottom: 20px; }
.mod-ligne.esp-large { gap: 56px; margin-bottom: 70px; }
.mod-ligne.av-centre { align-items: center; }
.mod-ligne.av-bas { align-items: end; }
.mod-ligne.fond-clair { background: #f4f7f9; padding: 34px; }
.mod-ligne.fond-categorie { background: color-mix(in srgb, var(--fc) 16%, white); padding: 34px; }
.mod-ligne.fond-sombre { background: var(--c-principale); color: #eef3f6; padding: 34px; }
.mod-ligne.fond-sombre h2, .mod-ligne.fond-sombre h3, .mod-ligne.fond-sombre h4 { color: #fff; }
.mod-col { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.mod-col > *:first-child { margin-top: 0; }
@media (max-width: 860px) { .mod-ligne { grid-template-columns: 1fr !important; gap: 20px; } .mod-ligne.n4, .mod-ligne.n5, .mod-ligne.n6 { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 520px) { .mod-ligne.n4, .mod-ligne.n5, .mod-ligne.n6 { grid-template-columns: 1fr !important; } .mod-ligne[class*="fond-"]:not(.fond-aucun) { padding: 20px; } }
.al-centre { text-align: center; } .al-droite { text-align: right; } .al-justifie { text-align: justify; hyphens: auto; }
.mod-titre { margin: 0; }
.mod-titre.souligne::after { content: ""; display: block; width: 46px; height: 3px; background: var(--fc, var(--c-accent)); margin-top: 10px; }
.mod-titre.al-centre.souligne::after { margin-left: auto; margin-right: auto; }
.mod-titre.al-droite.souligne::after { margin-left: auto; }
.mod-texte p { margin: 0 0 1em; } .mod-texte p:last-child { margin-bottom: 0; }
.mod-texte.t-grand { font-size: 1.25rem; line-height: 1.55; color: var(--c-principale); font-family: var(--f-titre); }
.mod-texte.t-petit { font-size: .9rem; }
.mod-image { margin: 0; }
.mod-image button { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; overflow: hidden; }
.mod-image img { width: 100%; height: auto; transition: transform .6s; }
.mod-image button:hover img { transform: scale(1.03); }
.mod-image.f-carre img { aspect-ratio: 1; object-fit: cover; } .mod-image.f-paysage img { aspect-ratio: 3/2; object-fit: cover; } .mod-image.f-portrait img { aspect-ratio: 3/4; object-fit: cover; }
.mod-image figcaption, .mod-video figcaption { font-size: .85rem; color: #7a8c98; margin-top: 6px; }
/* Fiche projet (compacte : intitulé et valeur sur la même ligne) */
.mod-fiche { container-type: inline-size; background: color-mix(in srgb, var(--fc) 8%, white); border-left: 3px solid var(--fc); padding: 12px 16px 10px; font-size: .9rem; line-height: 1.35; }
.mod-fiche h3 { font-size: .7rem; font-family: var(--f-texte); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--fc); margin: 0 0 4px; }
.mod-fiche dl { margin: 0; }
.mod-fiche dl > div { display: grid; grid-template-columns: 7.2em 1fr; gap: 10px; padding: 4px 0; border-bottom: 1px dotted color-mix(in srgb, var(--fc) 40%, white); }
.mod-fiche dl > div:last-child { border-bottom: 0; }
.mod-fiche dt { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding-top: .2em; color: color-mix(in srgb, var(--fc) 70%, #1b2b33); }
.mod-fiche dd { margin: 0; color: var(--c-texte); }
/* Fiche posée sur une ligne large : les informations se répartissent en colonnes */
@container (min-width: 620px) { .mod-fiche dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 28px; } .mod-fiche dl > div:last-child { border-bottom: 1px dotted color-mix(in srgb, var(--fc) 40%, white); } }
/* Volets d'images */
.mod-volets { display: flex; gap: 8px; }
.mod-volets .mv { position: relative; flex: 1; min-width: 0; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: #eee; transition: flex .7s cubic-bezier(.2,.8,.2,1); }
.mod-volets:hover .mv { flex: .7; }
.mod-volets .mv:hover, .mod-volets .mv:focus-visible { flex: 2.4; }
.mod-volets img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s; }
.mod-volets .mv:hover img { transform: scale(1.04); }
.mod-volets .voile { display: none; }
.mod-volets.filtre .voile { display: block; position: absolute; inset: 0; background: var(--bg); mix-blend-mode: multiply; opacity: .75; transition: opacity .6s; }
.mod-volets.filtre img { filter: grayscale(1); transition: filter .6s, transform 1s; }
.mod-volets.filtre .mv:hover img { filter: none; } .mod-volets.filtre .mv:hover .voile { opacity: 0; }
.mv-leg { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; text-align: left; font-size: .9rem; background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transition: opacity .4s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mod-volets .mv:hover .mv-leg { opacity: 1; }
@media (max-width: 700px) { .mod-volets { flex-direction: column; height: auto !important; } .mod-volets .mv, .mod-volets:hover .mv, .mod-volets .mv:hover { flex: none; height: 220px; } }
/* Galerie en grille */
.mod-galerie { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 10px; }
.mod-galerie button { padding: 0; border: 0; background: #eee; cursor: zoom-in; overflow: hidden; }
.mod-galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mod-galerie.g-carre button { aspect-ratio: 1; } .mod-galerie.g-paysage button { aspect-ratio: 3/2; }
.mod-galerie.g-naturel { display: block; columns: var(--n); column-gap: 10px; }
.mod-galerie.g-naturel button { display: block; width: 100%; margin-bottom: 10px; break-inside: avoid; } .mod-galerie.g-naturel img { height: auto; }
.mod-galerie button:hover img { transform: scale(1.05); }
@media (max-width: 700px) { .mod-galerie { grid-template-columns: repeat(2, 1fr); } .mod-galerie.g-naturel { columns: 2; } }
.mod-defile .defile-tete { margin-top: 0; }
/* Étapes */
.mod-etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 22px; counter-reset: e; }
.mod-etapes li { position: relative; }
.mod-etapes button { padding: 0; border: 0; background: #f4f4f4; cursor: zoom-in; width: 100%; margin-bottom: 12px; overflow: hidden; }
.mod-etapes img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #fff; transition: transform .5s; }
.mod-etapes button:hover img { transform: scale(1.04); }
.mod-etapes b { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--fc, var(--c-accent)); color: #fff; align-items: center; justify-content: center; font-family: var(--f-titre); margin-right: 8px; float: left; }
.mod-etapes h4 { margin: 4px 0 6px; font-size: 1.05rem; }
.mod-etapes p { font-size: .92rem; clear: both; margin: 6px 0 0; }
@media (max-width: 760px) { .mod-etapes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .mod-etapes { grid-template-columns: 1fr; } }
/* Citation, encadré, chiffres, liste, vidéo, bouton, séparateur */
.mod-citation { margin: 0; padding: 10px 0 10px 28px; border-left: 3px solid var(--fc); }
.mod-citation p { font-family: var(--f-titre); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.35; color: var(--c-principale); margin: 0; }
.mod-citation p::before { content: "« "; color: var(--fc); } .mod-citation p::after { content: " »"; color: var(--fc); }
.mod-citation cite { display: block; margin-top: 10px; font-style: normal; color: #7a8c98; font-size: .9rem; }
.mod-encadre { background: color-mix(in srgb, var(--fc) 13%, white); border-left: 4px solid var(--fc); padding: 20px 24px; }
.mod-encadre h4 { margin: 0 0 8px; } .mod-encadre p { margin: 0 0 .6em; } .mod-encadre p:last-child { margin: 0; }
.mod-chiffres { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--c-ligne); border-bottom: 1px solid var(--c-ligne); }
.mod-chiffres > div { flex: 1 1 140px; text-align: center; padding: 20px 10px; }
.mod-chiffres b { display: block; font-family: var(--f-titre); font-weight: 500; font-size: 2.4rem; color: var(--fc, var(--c-principale)); line-height: 1.1; }
.mod-chiffres span:last-child { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: #6c7f8c; }
.mod-liste-titre { margin: 0 0 6px; }
.mod-liste { margin: 0; padding-left: 22px; } .mod-liste li { margin-bottom: 4px; } .mod-liste li::marker { color: var(--fc, var(--c-accent)); }
.mod-liste.l-coches { list-style: none; padding-left: 0; } .mod-liste.l-coches li::before { content: "✓"; color: var(--fc, var(--c-accent)); font-weight: 700; margin-right: 10px; }
.mod-video { margin: 0; } .mod-video > div { position: relative; aspect-ratio: 16/9; } .mod-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mod-bouton { margin: 0; } .mod-bouton .btn { margin: 0; }
.btn-contour { background: transparent; color: var(--c-principale); box-shadow: inset 0 0 0 2px var(--c-principale); }
.btn-contour:hover { background: var(--c-principale); color: #fff; }
.mod-sep { border: 0; border-top: 1px solid var(--c-ligne); margin: 10px 0; width: 100%; }
.mod-sep.points { border: 0; text-align: center; color: var(--c-accent); letter-spacing: .5em; }
.mod-sep.espace { border: 0; height: 30px; }

/* =========================================================
   Atelier : « Mes missions »
   ========================================================= */
.offre-intro { text-align: center; max-width: 68ch; margin: -6px auto 34px; font-size: 1.08rem; }
.offre-bloc { margin: 0 0 46px; }
.offre-h { display: flex; align-items: baseline; gap: 14px; font-size: 1.5rem; border-bottom: 1px solid var(--c-ligne); padding-bottom: 10px; margin-bottom: 20px; }
.offre-h span { font-size: .85rem; font-family: var(--f-texte); color: var(--c-accent); letter-spacing: .1em; }
.offre-sous { color: #5f7482; margin: -6px 0 20px; }
.cibles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cible { padding: 20px; background: #f4f7f9; border-top: 3px solid var(--c-principale); transition: transform .3s, border-color .3s, box-shadow .3s; }
.cible:hover { transform: translateY(-4px); border-color: var(--c-accent); box-shadow: var(--ombre); }
.cible b { display: block; font-family: var(--f-titre); font-size: 1.3rem; font-weight: 500; color: var(--c-principale); margin-bottom: 4px; }
.cible span { font-size: .95rem; }
.typos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.typos li { padding: 8px 16px; border: 1px solid var(--c-ligne); border-radius: 30px; font-size: .95rem; background: #fff; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.typos li:hover { background: var(--c-principale); border-color: var(--c-principale); color: #fff; transform: translateY(-2px); }
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.phase { position: relative; padding: 26px 24px 22px; background: #f6f8fa; border-right: 1px solid #fff; transition: background .3s; }
.phase:hover { background: #eef3f6; }
.phase:not(:last-child)::after { content: ""; position: absolute; right: -14px; top: 34px; width: 26px; height: 26px; background: #f6f8fa; border-top: 2px solid var(--c-accent); border-right: 2px solid var(--c-accent); transform: rotate(45deg); z-index: 2; }
.ph-num { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: var(--c-principale); color: #fff; align-items: center; justify-content: center; font-family: var(--f-titre); font-size: 1.2rem; margin-bottom: 12px; }
.phase h4 { font-size: 1.4rem; margin: 0; }
.ph-sous { color: var(--c-accent); font-weight: 600; margin: 2px 0 12px; }
.phase ul { margin: 0; padding-left: 18px; font-size: .95rem; } .phase li { margin-bottom: 5px; } .phase li::marker { color: var(--c-accent); }
.autorisations { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.au-titre { font-weight: 700; color: var(--c-principale); margin-right: 4px; }
.au { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border: 1px solid var(--c-ligne); border-radius: 30px; font-size: .92rem; }
.au b { display: inline-flex; width: 34px; height: 26px; border-radius: 14px; background: var(--c-principale); color: #fff; align-items: center; justify-content: center; font-size: .8rem; letter-spacing: .04em; }
.convictions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.conviction { padding: 20px; border-left: 3px solid #6f9a5b; background: #f3f7f1; transition: transform .3s; }
.conviction:hover { transform: translateY(-3px); }
.conviction h4 { margin: 0 0 6px; color: #3f6b33; }
.conviction p { margin: 0; font-size: .93rem; }
@media (max-width: 860px) {
  .cibles, .phases { grid-template-columns: 1fr; } .convictions { grid-template-columns: 1fr 1fr; }
  .phase { border-right: 0; border-bottom: 1px solid #fff; }
  .phase:not(:last-child)::after { right: auto; left: 30px; top: auto; bottom: -14px; transform: rotate(135deg); }
}
@media (max-width: 520px) { .convictions { grid-template-columns: 1fr; } .pour-tous { padding: 28px 20px; } }

/* =========================================================
   Accueil : résumé des missions + premier pas
   ========================================================= */
.resume-offre { margin-top: 60px; text-align: center; }
.ro-tete p { max-width: 62ch; margin: 0 auto 26px; color: #5f7482; }
.ro-phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: p; }
.ro-phases li { position: relative; padding: 26px 20px 20px; border: 1px solid var(--c-ligne); transition: border-color .3s, transform .3s, box-shadow .3s; }
.ro-phases li:hover { border-color: var(--c-accent); transform: translateY(-4px); box-shadow: var(--ombre); }
.ro-num { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--c-principale); color: #fff; align-items: center; justify-content: center; font-family: var(--f-titre); font-size: 1.3rem; margin-bottom: 10px; }
.ro-phases h3 { margin: 0 0 4px; font-size: 1.4rem; }
.ro-phases p { margin: 0; color: var(--c-accent); }
.ro-typo { list-style: none; padding: 0; margin: 22px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; max-width: 900px; }
.ro-typo li { font-size: .88rem; padding: 4px 12px; background: #f4f7f9; border-radius: 20px; color: var(--c-texte); }
.ro-lien { margin-top: 18px; }
@media (max-width: 760px) { .ro-phases { grid-template-columns: 1fr; } }

.premier-pas { margin: 60px -60px 0; padding: 50px 60px 46px; background: var(--c-principale); color: #e6eef2; text-align: center; position: relative; overflow: hidden; }
.premier-pas::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 32px), repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 32px); pointer-events: none; }
.pp-tete small { display: block; font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: #f2b58b; margin-bottom: 8px; }
.pp-tete h2 { color: #fff; margin-bottom: .3em; }
.pp-tete p { margin: 0 0 22px; }
.pp-etapes { display: flex; justify-content: center; align-items: center; gap: 0; margin-bottom: 24px; }
.pp-etapes span { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); display: flex; align-items: center; justify-content: center; font-size: .85rem; transition: all .35s; }
.pp-etapes span.on { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.pp-etapes i { width: 60px; height: 1.5px; background: rgba(255,255,255,.3); }
.pp-pas { display: none; position: relative; }
.pp-pas.on { display: block; animation: ppEntre .5s ease both; }
@keyframes ppEntre { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.pp-pas h3 { color: #fff; font-size: 1.35rem; margin-bottom: 16px; }
.pp-choix { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto; }
.pp-choix button { font: inherit; font-size: .95rem; padding: 11px 20px; border-radius: 30px; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.04); color: #fff; cursor: pointer; transition: all .25s; }
.pp-choix button:hover, .pp-choix button:focus-visible { background: #fff; color: var(--c-principale); transform: translateY(-2px); }
.pp-fin { display: flex; gap: 12px; justify-content: center; align-items: stretch; flex-wrap: wrap; }
.pp-fin .flottant { margin: 0; width: 320px; max-width: 100%; }
.pp-fin .flottant input { background: #fff; }
.pp-fin .btn { margin: 0; background: var(--c-accent); }
.pp-fin .btn:hover { background: #fff; color: var(--c-principale); }
.pp-recap { font-size: .88rem; color: #b9cbd4; margin: 14px 0 0; }
.pp-retour { background: none; border: 0; color: #b9cbd4; font: inherit; font-size: .88rem; cursor: pointer; margin-top: 14px; }
.pp-retour:hover { color: #fff; }
.pp-merci { background: #e6f4ea; color: #1e5a32; padding: 10px 14px; display: inline-block; }
@media (max-width: 921px) { .premier-pas { margin: 50px -22px 0; padding: 40px 22px; } .pp-etapes i { width: 34px; } }

/* Un architecte pour tous (nouvelle mise en page) */
.pour-tous { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; margin: 20px 0 30px; background: #f4f7f9; overflow: hidden; }
.pt-texte { padding: 44px 44px 40px; background: var(--c-principale); color: #e3ecf0; position: relative; }
.pt-texte::after { content: ""; position: absolute; right: -40px; top: 0; bottom: 0; width: 80px; background: var(--c-principale); transform: skewX(-8deg); z-index: 0; }
.pt-texte > * { position: relative; z-index: 1; }
.pt-texte small { display: block; font-size: .72rem; letter-spacing: .35em; text-transform: uppercase; color: #f2b58b; margin-bottom: 10px; }
.pt-texte h3 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; margin-bottom: .6em; }
.pt-texte p { margin: 0 0 .9em; }
.pt-texte .btn { background: var(--c-accent); margin-top: 8px; }
.pt-texte .btn:hover { background: #fff; color: var(--c-principale); }
.pt-reperes { padding: 40px 36px 34px 64px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.pt-titre { margin: 0; font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--c-accent); font-weight: 700; }
.repere { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: start; padding-bottom: 18px; border-bottom: 1px solid var(--c-ligne); }
.repere:last-child { border-bottom: 0; padding-bottom: 0; }
.repere b { font-family: var(--f-titre); font-weight: 500; font-size: 2.2rem; line-height: 1; color: var(--c-principale); white-space: nowrap; }
.repere p { margin: 0; font-size: .95rem; }
@media (max-width: 860px) { .pour-tous { grid-template-columns: 1fr; } .pt-texte::after { display: none; } .pt-texte { padding: 32px 24px; } .pt-reperes { padding: 28px 24px; } .repere { grid-template-columns: 90px 1fr; } .repere b { font-size: 1.8rem; } }

/* Nouvelles : quinconce régulière (même espacement entre toutes les cartes) */
.fil-temps { margin-top: 40px; }
.fil-temps .ft-item { padding: 0 28px; }
.fil-temps .ft-item + .ft-item { margin-top: -50px; }
.fil-temps .ft-carte { height: 128px; grid-template-columns: 108px 1fr; padding: 10px; gap: 14px; overflow: hidden; }
.fil-temps .ft-item.g .ft-carte { grid-template-columns: 1fr 108px; }
.fil-temps .ft-img { height: 108px; }
.fil-temps .ft-txt strong { font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fil-temps .ft-txt span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .88rem; line-height: 1.35; }
.fil-temps .ft-item::before { top: 56px; }
@media (max-width: 760px) {
  .fil-temps .ft-item + .ft-item { margin-top: 12px; }
  .fil-temps .ft-item, .fil-temps .ft-item.d { padding: 0 0 0 38px; }
  .fil-temps .ft-item.g .ft-carte, .fil-temps .ft-carte { grid-template-columns: 90px 1fr; height: auto; min-height: 110px; }
  .fil-temps .ft-item.g .ft-img { order: 0; } .fil-temps .ft-img { height: 90px; }
  .fil-temps .ft-item.g .ft-carte { text-align: left; }
}

/* Contact : formulaire en 4 étapes, comme le « premier pas » */
.cf-etape { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid #eef1f3; }
.cf-etape > span { width: 30px; height: 30px; border-radius: 50%; background: var(--c-principale); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--f-titre); }
.cf-etape .chips { margin: 0; }
.cf-etape .chips legend, .cf-legende { font-weight: 700; color: var(--c-principale); margin: 4px 0 10px; padding: 0; }
.cf-champ > .flottant:first-of-type { margin-top: 0; }
.form.pre-rempli .cf-etape:nth-child(-n+3) > span { background: #1e8a3e; }
.form.pre-rempli .cf-etape:nth-child(-n+3) > span { font-size: 0; }
.form.pre-rempli .cf-etape:nth-child(-n+3) > span::before { content: "✓"; font-size: 1rem; }
.pp-merci { background: #e6f4ea; color: #1e5a32; padding: 10px 14px; display: inline-block; }

/* ---------- À proximité (fin des pages projet) ---------- */
.proximite { margin-top: 48px; }
.proximite h2, .page-commune h2 { font-size: 1.15rem; color: var(--c-principale); margin: 0 0 14px; letter-spacing: .02em; }
.prox-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.prox { display: flex; gap: 12px; align-items: center; color: var(--c-texte); text-decoration: none; background: #fff; padding: 8px; border: 1px solid #e8ecef; transition: border-color .3s, transform .3s; }
.prox:hover { border-color: var(--c-accent); transform: translateY(-2px); }
.prox .vg { width: 74px; height: 74px; flex: none; overflow: hidden; display: block; } .prox img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prox b { display: block; font-size: .95rem; line-height: 1.2; } .prox small { color: #7a8c98; font-size: .8rem; }
.proximite > p { margin: 12px 0 0; font-size: .9rem; }
@media (max-width: 760px) { .prox-grille { grid-template-columns: 1fr; } }

/* ---------- Pages « Architecte à [commune] » ---------- */
.page-commune { max-width: 1000px; margin: 0 auto; }
.page-commune h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--c-principale); margin: 6px 0 10px; }
.page-commune h1 span { color: var(--c-accent); font-weight: 400; }
.page-commune .chapeau { font-size: 1.1rem; line-height: 1.6; max-width: 760px; margin: 0 0 12px; }
.page-commune .texte-perso { max-width: 760px; }
.page-commune h2 { margin-top: 36px; }
.commune-projets { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.cp { display: block; color: var(--c-texte); text-decoration: none; background: #fff; border: 1px solid #e8ecef; transition: border-color .3s, transform .3s; }
.cp:hover { border-color: var(--c-accent); transform: translateY(-3px); }
.cp .vg { display: block; overflow: hidden; aspect-ratio: 3/2; } .cp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp span { display: block; padding: 10px 14px 12px; } .cp b { display: block; font-size: 1.05rem; } .cp small { display: block; color: #7a8c98; font-size: .85rem; }
.commune-phases { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: ph; }
.commune-phases li { counter-increment: ph; background: var(--c-clair); padding: 14px 16px; border-top: 3px solid var(--c-accent); }
.commune-phases li::before { content: "0" counter(ph); display: block; font-size: .75rem; color: var(--c-accent); font-weight: 700; letter-spacing: .1em; }
.commune-phases b { display: block; color: var(--c-principale); } .commune-phases span { font-size: .9rem; color: #5d6f7b; }
.voisines { line-height: 2; } .voisines small { color: #9aa8b2; }
@media (max-width: 700px) { .commune-phases { grid-template-columns: 1fr; } }

/* ---------- Questions fréquentes ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid #e3e8eb; padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 36px 14px 0; position: relative; font-weight: 600; color: var(--c-principale); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 10px; font-size: 1.5rem; font-weight: 300; color: var(--c-accent); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; line-height: 1.65; }

/* ---------- Plan du site ---------- */
.plan-site { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.plan-site h2 { font-size: 1.05rem; color: var(--c-principale); border-bottom: 2px solid var(--c-accent); padding-bottom: 6px; }
.plan-site h3 { font-size: .95rem; margin: 16px 0 4px; }
.plan-site ul { padding-left: 18px; margin: 0; line-height: 1.7; } .plan-site small { color: #8a9aa5; }
@media (max-width: 860px) { .plan-site { grid-template-columns: 1fr; } }
.site-footer .zones a { color: inherit; text-decoration: none; } .site-footer .zones a:hover { color: var(--c-accent); }
@media (max-width: 860px) { .volets-matieres { height: auto; } }
/* Séparateurs d'années dans la ligne de temps des Nouvelles */
.fil-temps .ft-annee { margin: 34px 0 22px; }
.fil-temps .ft-annee:first-child { margin-top: 0; }
.fil-temps .ft-annee span { font-size: 1.15rem; padding: 5px 20px; box-shadow: 0 0 0 6px #fff; }
@media (max-width: 760px) { .fil-temps .ft-annee { margin: 22px 0 12px; } .fil-temps .ft-annee span { margin-left: 0; } }
/* ---------- Anti-robot du formulaire de contact ---------- */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.antirobot { margin: 6px 0 16px; padding: 14px 16px; background: var(--c-clair); border-left: 3px solid var(--c-accent); }
.antirobot .ar-consigne { margin: 0 0 10px; font-size: .92rem; }
.ar-rail { position: relative; height: 52px; border-radius: 26px; background: #fff; border: 1px solid #d9e1e6;
  background-image: repeating-linear-gradient(90deg, transparent 0 23px, #eef2f4 23px 24px); }
.ar-cible, .ar-poignee { position: absolute; top: 3px; width: 46px; height: 44px; border-radius: 22px; display: grid; place-items: center; }
.ar-cible { border: 2px dashed var(--c-accent); background: color-mix(in srgb, var(--c-accent) 8%, white); }
.ar-cible svg { width: 22px; fill: none; stroke: var(--c-accent); stroke-width: 1.5; stroke-dasharray: 2 2; opacity: .7; }
.ar-poignee { left: 0; border: 0; padding: 0; background: var(--c-principale); color: #fff; cursor: grab; touch-action: none; box-shadow: 0 3px 10px rgba(27,76,97,.3); z-index: 1; }
.ar-poignee svg { width: 22px; fill: #fff; }
.antirobot.tient .ar-poignee { cursor: grabbing; transform: scale(1.06); }
.ar-poignee:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.ar-etat { margin: 8px 0 0; min-height: 1.2em; font-size: .85rem; color: #6b7c88; }
.antirobot.ok { border-left-color: #2e8b57; }
.antirobot.ok .ar-poignee { background: #2e8b57; cursor: default; }
.antirobot.ok .ar-cible { border-color: #2e8b57; }
.antirobot.ok .ar-etat { color: #2e8b57; font-weight: 600; }
.antirobot.secoue { animation: secoue .5s; }
@keyframes secoue { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.sec-nouvelles { margin-top: 60px; }
