/* ──────────────────────────────────────────────────────────────
   Florent Martin Photographie — feuille de style
   Couleurs, police et tailles réglables dans le bloc :root.
   ────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("polices/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("polices/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Couleurs */
  --ardoise: #182833;      /* texte, sections sombres : le bleu des toits d'ardoise */
  --brume: #eceeec;        /* fond principal */
  --craie: #f7f8f7;        /* fond des sections claires */
  --lichen: #5a6964;       /* texte secondaire */
  --moisson: #e9b43f;      /* boutons d'action */
  --loire: #2a6984;        /* liens */
  --ligne: rgba(24, 40, 51, .14);
  /* Typographie */
  --police: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serre: 72%;            /* largeur des caractères des titres */
  /* Mise en page */
  --largeur: 1320px;
  --marge: clamp(1.25rem, 4vw, 3rem);
  --arrondi: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--brume);
  color: var(--ardoise);
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
}
img, video { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: var(--loire); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ardoise); }
:focus-visible { outline: 3px solid var(--moisson); outline-offset: 3px; }

h1, h2, h3 { font-stretch: var(--serre); font-weight: 720; line-height: 1; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.8rem, 7vw, 6rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
h3 { font-size: 1.6rem; line-height: 1.1; }
p { margin: 0 0 1em; }

.conteneur { width: min(100% - 2 * var(--marge), var(--largeur)); margin-inline: auto; }
.etroit { max-width: 62ch; }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--craie { background: var(--craie); }
.section--sombre { background: var(--ardoise); color: var(--brume); }
.section--sombre a { color: #fff; }
.intro { font-size: 1.2rem; color: var(--lichen); max-width: 52ch; }
.section--sombre .intro { color: #b9c4c0; }

.aller-au-contenu { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ardoise); color: #fff; padding: .6rem 1rem; }
.aller-au-contenu:focus { left: 1rem; }
[id] { scroll-margin-top: 6rem; }
.avec-heros .bandeau-statut { position: absolute; inset: 0 0 auto 0; }
.avec-heros .bandeau-statut ~ .entete { top: 2.15rem; }
.avec-heros .bandeau-statut ~ .entete.entete--plein { top: 0; }
.bandeau-statut { position: relative; z-index: 40; background: var(--moisson); color: var(--ardoise); text-align: center; padding: .45rem 1rem; font-size: .9rem; }

/* ── Boutons et liens d'action ───────────────────────────── */
.bouton {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--moisson); color: var(--ardoise);
  font: inherit; font-weight: 600; text-decoration: none;
  padding: .85rem 1.5rem; border: 0; border-radius: 99px; cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.bouton:hover { background: #f3c55c; color: var(--ardoise); transform: translateY(-1px); }
.bouton--clair { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.bouton--clair:hover { background: rgba(255,255,255,.14); color: #fff; }
.lien-fort { font-weight: 600; color: var(--ardoise); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: .15em; transition: background-size .25s ease; }
.lien-fort:hover { background-size: 40% 1.5px; color: var(--ardoise); }
.section--sombre .lien-fort { color: #fff; }

/* ── En-tête ─────────────────────────────────────────────── */
.entete { position: relative; z-index: 30; background: var(--brume); }
.entete-interieur { display: flex; align-items: center; gap: 2rem; min-height: 4.75rem; }
.marque { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ardoise); margin-right: auto; }
.marque-texte { display: flex; align-items: baseline; gap: .55rem; }
.marque:hover { color: var(--ardoise); }
.marque-nom { font-stretch: var(--serre); font-weight: 760; font-size: 1.5rem; letter-spacing: -.01em; }
.marque-sous { font-size: .95rem; color: var(--lichen); }
.marque-logo { height: 44px; width: auto; flex-shrink: 0; }
.pied-logo { height: 57px; width: auto; margin-bottom: 1rem; }
@media (max-width: 420px) { .marque-sous { display: none; } .marque-logo { height: 38px; } }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu-large { display: flex; gap: 1.6rem; }
.menu a { color: inherit; text-decoration: none; font-size: .98rem; padding-block: .35rem; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .25s ease; }
.menu a:hover, .menu a[aria-current="page"] { background-size: 100% 1.5px; }
.entete .bouton { padding: .6rem 1.15rem; font-size: .95rem; }
.menu-mobile { display: none; position: relative; }
.menu-mobile summary { list-style: none; cursor: pointer; padding: .5rem .95rem; border-radius: 99px; box-shadow: inset 0 0 0 1.5px currentColor; font-weight: 600; }
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile ul { position: absolute; right: 0; top: calc(100% + .6rem); background: var(--craie); color: var(--ardoise); border-radius: var(--arrondi); padding: .6rem 0; min-width: 14rem; box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.menu-mobile li a { display: block; padding: .65rem 1.3rem; background: none; }

/* En-tête posé sur la grande image */
.avec-heros .entete { position: absolute; inset: 0 0 auto 0; background: transparent; color: #fff; }
.avec-heros .entete .marque, .avec-heros .entete .marque:hover { color: #fff; }
.avec-heros .entete .marque-sous { color: rgba(255,255,255,.8); }
.avec-heros .entete::before { content: ""; position: absolute; inset: 0 0 -3rem 0; background: linear-gradient(rgba(8,16,22,.55), rgba(8,16,22,0)); pointer-events: none; z-index: -1; }
/* … puis fixé en haut, sur fond clair, dès qu'on fait défiler la page */
.avec-heros .entete.entete--plein { position: fixed; background: rgba(236,238,236,.94); color: var(--ardoise); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--ligne); animation: descendre .35s ease; }
.avec-heros .entete.entete--plein::before { display: none; }
.avec-heros .entete.entete--plein .marque, .avec-heros .entete.entete--plein .marque:hover { color: var(--ardoise); }
.avec-heros .entete.entete--plein .marque-sous { color: var(--lichen); }
@keyframes descendre { from { transform: translateY(-100%); } to { transform: none; } }

@media (max-width: 980px) {
  .menu-large, .entete .bouton { display: none; }
  .menu-mobile { display: block; }
}

/* ── Grande image d'ouverture ────────────────────────────── */
.heros { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100svh; color: #fff; background: var(--ardoise); overflow: hidden; isolation: isolate; }
.heros--page { min-height: min(72svh, 760px); }
.heros-media, .diapo { position: absolute; inset: 0; z-index: -2; margin: 0; }
.heros-media img, .diapo img, .heros-media video { width: 100%; height: 100%; object-fit: cover; }
.diapo { opacity: 0; transition: opacity 1.6s ease; }
.diapo.est-active { opacity: 1; }
.diapo.est-active img { animation: recul 9s ease-out both; }
@keyframes recul { from { transform: scale(1.09); } to { transform: scale(1); } }
.heros::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8,16,22,.78) 0%, rgba(8,16,22,.35) 38%, rgba(8,16,22,0) 62%); }
.heros-contenu { padding-block: 9rem 2.5rem; }
.heros h1 { font-size: clamp(3.6rem, 10.5vw, 9.5rem); font-weight: 760; line-height: .88; letter-spacing: -.02em; max-width: 12ch; margin-bottom: .3em; text-wrap: balance; }
.heros--page h1 { font-size: clamp(3rem, 8vw, 7rem); max-width: 14ch; }
.heros-sous-titre { font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 40ch; color: rgba(255,255,255,.9); margin-bottom: 1.8rem; }
.boutons { display: flex; flex-wrap: wrap; gap: .8rem; }
.heros-pied { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; padding-bottom: 1.6rem; border-top: 1px solid rgba(255,255,255,.22); padding-top: 1rem; font-size: .92rem; color: rgba(255,255,255,.85); }
.diapo-legende { margin: 0; min-height: 1.5em; }
.diapo-points { display: flex; gap: .5rem; }
.diapo-points button { position: relative; width: 2.6rem; height: 1.6rem; padding: 0; border: 0; background: none; cursor: pointer; }
.diapo-points button::before, .diapo-points button::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(255,255,255,.35); }
.diapo-points button::after { background: #fff; transform: scaleX(0); transform-origin: left; }
.diapo-points button.est-active::after { animation: avance var(--duree, 6.5s) linear forwards; }
.diapo-points button.est-vue::after { transform: scaleX(1); }
@keyframes avance { to { transform: scaleX(1); } }
.fil { font-size: 1rem; margin-bottom: .8rem; }
.fil a { color: rgba(255,255,255,.9); }

/* ── Titres de section ───────────────────────────────────── */
.tete-section { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1rem 3rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.tete-section h2 { margin: 0; }
.tete-section .intro { margin: .9rem 0 0; }

/* ── Territoires : mosaïque ──────────────────────────────── */
.mosaique { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(15rem, 24vw, 21rem); gap: .75rem; list-style: none; margin: 0; padding: 0; }
.tuile { grid-column: span 5; position: relative; overflow: hidden; border-radius: var(--arrondi); background: var(--ardoise); }
.tuile:first-child { grid-column: span 7; grid-row: span 2; }
.tuile a { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.2rem, 2.5vw, 2rem); color: #fff; text-decoration: none; }
.tuile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.tuile a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8,16,22,.75), rgba(8,16,22,0) 60%); }
.tuile a { isolation: isolate; }
.tuile:hover img { transform: scale(1.05); }
.tuile h3 { font-size: clamp(2.2rem, 4.5vw, 4.2rem); margin: 0 0 .2em; letter-spacing: -.02em; }
.tuile:first-child h3 { font-size: clamp(2.8rem, 6.5vw, 6.2rem); }
.tuile p { margin: 0; max-width: 36ch; color: rgba(255,255,255,.88); font-size: .98rem; }
.tuile .etiquette { position: absolute; top: 1rem; left: 1rem; background: var(--moisson); color: var(--ardoise); font-size: .8rem; font-weight: 600; padding: .2rem .65rem; border-radius: 99px; }
@media (max-width: 820px) {
  .mosaique { grid-template-columns: 1fr; grid-auto-rows: 19rem; }
  .tuile, .tuile:first-child, .tuile:nth-child(n+4) { grid-column: auto; grid-row: auto; }
  .tuile:first-child { grid-row: span 1; }
}

/* ── Pour qui ────────────────────────────────────────────── */
.deux-colonnes { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: start; }
.colle { position: sticky; top: 7rem; }
.cibles { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.4rem; }
.cibles h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: .35em; }
.cibles p { margin: 0; color: var(--lichen); max-width: 48ch; }
@media (max-width: 820px) { .deux-colonnes { grid-template-columns: 1fr; } .colle { position: static; } }

/* ── Offres ──────────────────────────────────────────────── */
.offres { display: grid; gap: clamp(3.5rem, 8vw, 7rem); }
.offre { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; align-items: center; }
.offre-image { grid-column: 1 / span 7; overflow: hidden; border-radius: var(--arrondi); aspect-ratio: 3 / 2; background: var(--ardoise); }
.offre-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.offre:hover .offre-image img { transform: scale(1.04); }
.offre-texte { grid-column: 9 / span 4; }
.offre:nth-child(even) .offre-image { grid-column: 6 / span 7; grid-row: 1; }
.offre:nth-child(even) .offre-texte { grid-column: 1 / span 4; grid-row: 1; }
.offre h3 { font-size: clamp(2rem, 3.4vw, 3rem); }
.offre p { color: var(--lichen); }
@media (max-width: 820px) {
  .offre, .offre:nth-child(even) { grid-template-columns: 1fr; }
  .offre-image, .offre-texte, .offre:nth-child(even) .offre-image, .offre:nth-child(even) .offre-texte { grid-column: auto; grid-row: auto; }
}

/* ── Bande défilante du portfolio ────────────────────────── */
.bande-cadre { position: relative; }
.bande { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; --bord: max(var(--marge), calc((100% - var(--largeur)) / 2)); scroll-padding-inline: var(--bord); padding-inline: var(--bord); padding-bottom: 1rem; list-style: none; margin: 0; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.35) transparent; }
.bande li { flex: 0 0 auto; scroll-snap-align: start; }
.bande figure { margin: 0; }
.bande img { height: clamp(15rem, 30vw, 25rem); width: auto; aspect-ratio: var(--r, 1.5); object-fit: cover; border-radius: var(--arrondi); }
.bande figcaption { color: #b9c4c0; font-size: .9rem; margin-top: .6rem; max-width: 34ch; }
.bande-boutons { display: flex; gap: .5rem; }
.bande-boutons button { width: 3rem; height: 3rem; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font: inherit; font-size: 1.3rem; cursor: pointer; transition: background-color .2s ease; }
.bande-boutons button:hover { background: rgba(255,255,255,.24); }

/* ── Étapes ──────────────────────────────────────────────── */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; counter-reset: etape; }
.etapes li { counter-increment: etape; }
.etapes li::before { content: counter(etape); display: block; font-stretch: var(--serre); font-weight: 760; font-size: clamp(4rem, 8vw, 6.5rem); line-height: .9; color: var(--loire); margin-bottom: 1.2rem; }
.etapes h3 { margin-bottom: .4em; }
.etapes p { color: var(--lichen); margin: 0; }
@media (max-width: 820px) { .etapes { grid-template-columns: 1fr; } }

/* ── Appel final ─────────────────────────────────────────── */
.appel { position: relative; isolation: isolate; color: #fff; min-height: min(70svh, 640px); display: flex; align-items: flex-end; background: var(--ardoise); overflow: hidden; }
.appel .heros-media { z-index: -2; }
.appel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top right, rgba(8,16,22,.82), rgba(8,16,22,.2)); }
.appel-interieur { padding-block: clamp(3rem, 7vw, 6rem); }
.appel h2 { max-width: 15ch; margin-bottom: .6em; }

/* ── Pages de texte ──────────────────────────────────────── */
.page-texte { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 3rem clamp(2rem, 6vw, 6rem); align-items: start; }
.page-texte--seule { grid-template-columns: minmax(0, 1fr); max-width: 46rem; }
.texte { max-width: 66ch; }
.texte > :first-child { margin-top: 0; }
.texte p:first-child { font-size: 1.2rem; }
.texte h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-top: 2.2em; }
.texte ul, .texte ol { padding-left: 1.2rem; }
.texte li { margin-bottom: .5rem; }
.texte li::marker { color: var(--loire); }
.texte .bouton { margin-top: 1rem; }
.encart { background: var(--craie); border-radius: var(--arrondi); padding: 1.6rem; position: sticky; top: 7rem; }
.encart h2 { font-size: 1.6rem; }
.encart p { color: var(--lichen); }
.encart strong { font-stretch: var(--serre); font-size: 2.4rem; font-weight: 720; color: var(--ardoise); display: block; line-height: 1; }
.encart ul { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .8rem; }
@media (max-width: 820px) { .page-texte { grid-template-columns: 1fr; } .encart { position: static; } }

.portrait { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem clamp(2rem, 6vw, 6rem); align-items: start; }
.portrait-image { position: sticky; top: 7rem; border-radius: var(--arrondi); overflow: hidden; }
@media (max-width: 820px) { .portrait { grid-template-columns: 1fr; } .portrait-image { position: static; max-width: 26rem; } }

.titre-page { padding-top: clamp(3rem, 6vw, 5rem); }

/* ── Galerie justifiée (rangs de hauteur égale, photos entières) ── */
.galerie { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.galerie::after { content: ""; flex: 1000000 1 0; }
.galerie li { flex: calc(var(--r, 1.5) * 100) 1 calc(var(--r, 1.5) * 12rem); }
.galerie figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--arrondi); background: var(--ardoise); }
.galerie a { display: block; cursor: zoom-in; }
.galerie img { width: 100%; height: auto; aspect-ratio: var(--r, 1.5); object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .3s ease; }
.galerie figcaption { position: absolute; inset: auto 0 0 0; padding: 2.2rem 1rem .8rem; color: #fff; font-size: .92rem; line-height: 1.35; background: linear-gradient(to top, rgba(8,16,22,.8), rgba(8,16,22,0)); opacity: 0; transform: translateY(.4rem); transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
.galerie figure:hover img { transform: scale(1.03); }
.galerie figure:hover figcaption, .galerie figure:focus-within figcaption { opacity: 1; transform: none; }
@media (hover: none) { .galerie figcaption { opacity: 1; transform: none; } }
@media (max-width: 600px) { .galerie li { flex-basis: 100%; } }

.grille-videos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); }
.grille-videos figure { margin: 0; }
.grille-videos video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--arrondi); }
.grille-videos figcaption { font-size: .92rem; color: var(--lichen); margin-top: .5rem; }

/* ── Contact ─────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
.formulaire { background: var(--craie); border-radius: var(--arrondi); padding: clamp(1.4rem, 3vw, 2.4rem); }
.formulaire p { margin: 0 0 1.2rem; }
.formulaire label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.facultatif { font-weight: 400; color: var(--lichen); }
.formulaire input, .formulaire select, .formulaire textarea { width: 100%; font: inherit; color: inherit; background: #fff; border: 1.5px solid var(--ligne); border-radius: var(--arrondi); padding: .8rem .9rem; transition: border-color .2s ease; }
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { outline: none; border-color: var(--loire); }
.formulaire .mention { font-size: .85rem; color: var(--lichen); }
.champ-piege { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.message-erreur { background: #fbe3dc; color: #7b1f0d; border-radius: var(--arrondi); padding: .9rem 1rem; }
.vide { background: var(--craie); border-radius: var(--arrondi); padding: 1.4rem 1.6rem; color: var(--lichen); }

/* ── Pied de page ────────────────────────────────────────── */
.pied { background: var(--ardoise); color: #b9c4c0; font-size: .95rem; }
.pied a { color: #fff; text-decoration: none; }
.pied a:hover { text-decoration: underline; color: #fff; }
.pied-haut { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 2rem; padding-block: clamp(3.5rem, 7vw, 5.5rem) 3rem; }
.pied-marque { font-stretch: var(--serre); font-weight: 760; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: #fff; margin: 0 0 .6rem; }
.pied h2 { font-family: var(--police); font-stretch: 100%; font-size: .95rem; font-weight: 600; color: #fff; letter-spacing: 0; margin-bottom: 1rem; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.pied-bas { box-shadow: 0 -1px 0 rgba(255,255,255,.12); padding-block: 1.3rem 1.8rem; font-size: .85rem; color: #8e9b96; }
.pied-bas p { margin: 0; }
.pied-apercu { padding-bottom: 1.2rem; font-size: .9rem; }
.pied-apercu p { margin: 0; padding: .8rem 1rem; border-radius: var(--arrondi); background: rgba(233,180,63,.14); color: #e9d6a8; }
@media (max-width: 820px) { .pied-haut { grid-template-columns: 1fr 1fr; } .pied-haut > :first-child { grid-column: 1 / -1; } }

/* ── Visionneuse ─────────────────────────────────────────── */
.visionneuse { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; }
.visionneuse::backdrop { background: rgba(8,12,16,.95); }
.visionneuse[open] { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) 4.5rem; grid-template-rows: minmax(0, 1fr) auto; align-items: center; }
.visionneuse figure { grid-column: 2; grid-row: 1; margin: 0; height: 100%; display: flex; align-items: center; justify-content: center; padding: 3.5rem 0 1rem; min-height: 0; }
.visionneuse img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.visionneuse-bas { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 1.5rem 1.4rem; font-size: .95rem; color: #d8dfdc; }
.visionneuse button { background: none; border: 0; color: #fff; font: inherit; font-size: 2.2rem; line-height: 1; cursor: pointer; padding: .8rem; opacity: .8; }
.visionneuse button:hover { opacity: 1; }
.visionneuse-prec { grid-column: 1; grid-row: 1; }
.visionneuse-suiv { grid-column: 3; grid-row: 1; }
.visionneuse-fermer { position: fixed; top: .5rem; right: .8rem; font-size: 1.8rem !important; }
@media (max-width: 600px) { .visionneuse[open] { grid-template-columns: 0 minmax(0, 1fr) 0; } .visionneuse-prec, .visionneuse-suiv { display: none; } }

/* ── Compléments ─────────────────────────────────────────── */
.section--titre { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.section--titre h1 { margin-bottom: .6em; }
.diapo-commandes { display: flex; align-items: center; gap: 1rem; }
.diapo-pause { background: none; border: 0; padding: .3rem 0; color: rgba(255,255,255,.85); font: inherit; font-size: .88rem; cursor: pointer; text-decoration: underline; text-underline-offset: .25em; text-decoration-color: rgba(255,255,255,.4); }
.diapo-pause:hover { color: #fff; }
.heros.est-en-pause .diapo-points button.est-active::after { animation: none; transform: scaleX(1); }
.tuile:nth-child(n+4) { grid-column: span 6; }
.tuile:nth-child(4):last-child { grid-column: span 12; }
.mosaique:has(> :nth-child(6)) .tuile:nth-child(n+4) { grid-column: span 4; }
.appel--sans-image { min-height: 0; background: var(--loire); }
.appel--sans-image::after { display: none; }
.texte.intro { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section--haut-serre { padding-top: 0; }
.tete-section > a { justify-self: start; }
.visionneuse-bas p { margin: 0; }
.visionneuse-compteur { color: #8e9b96; white-space: nowrap; }
.section--sombre .tete-section { align-items: end; }
.section--sombre > .conteneur:last-child { margin-top: 2rem; }
@media (max-width: 820px) {
  .tete-section { grid-template-columns: 1fr; }
  .heros-pied { flex-direction: column; align-items: flex-start; }
  .tuile:nth-child(n+4), .tuile:nth-child(4):last-child, .mosaique:has(> :nth-child(6)) .tuile:nth-child(n+4) { grid-column: auto; }
}

/* ── Ma sélection ────────────────────────────────────────── */
.choisir { position: absolute; top: .6rem; right: .6rem; z-index: 2; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; background: rgba(8,16,22,.55); color: #fff; font: inherit; cursor: pointer; opacity: 0; transition: opacity .2s ease, background-color .2s ease, transform .2s ease; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.choisir::before { content: "+"; font-size: 1.6rem; font-weight: 400; line-height: 1; margin-top: -.1rem; }
.choisir[aria-pressed="true"] { background: var(--moisson); color: var(--ardoise); opacity: 1; }
.choisir[aria-pressed="true"]::before { content: "✓"; font-size: 1.15rem; font-weight: 700; margin-top: 0; }
.galerie figure:hover .choisir, .choisir:focus-visible { opacity: 1; }
.choisir:hover { transform: scale(1.08); }
.choisir[hidden] { display: none; }
@media (hover: none) { .choisir { opacity: 1; } }
.galerie figcaption .ref { display: block; margin-top: .2rem; font-size: .8rem; color: rgba(255,255,255,.75); }
.signe-plus { display: inline-grid; place-items: center; width: 1.45em; height: 1.45em; border-radius: 50%; background: var(--ardoise); color: #fff; font-weight: 500; line-height: 1; vertical-align: -.15em; }

.pilule-selection { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 35; display: inline-flex; align-items: center; gap: .65rem; padding: .7rem .75rem .7rem 1.25rem; border-radius: 99px; background: var(--ardoise); color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 12px 32px rgba(8,16,22,.28); animation: monter .35s ease; }
.pilule-selection:hover { background: #22384a; color: #fff; }
@media (max-width: 600px) { .pilule-selection { right: .8rem; bottom: .8rem; padding: .55rem .6rem .55rem 1rem; font-size: .95rem; } }
.pilule-selection[hidden] { display: none; }
.pilule-nombre { display: inline-grid; place-items: center; min-width: 1.85rem; height: 1.85rem; padding: 0 .45rem; border-radius: 99px; background: var(--moisson); color: var(--ardoise); font-size: .92rem; }
.pilule-selection.vient-de-changer .pilule-nombre { animation: bondir .45s ease; }
@keyframes monter { from { transform: translateY(1.2rem); opacity: 0; } }
@keyframes bondir { 40% { transform: scale(1.3); } }

.ma-selection { margin-bottom: 1.6rem; padding-bottom: 1.4rem; box-shadow: 0 1px 0 var(--ligne); }
.ma-selection h2 { font-size: 1.6rem; margin-bottom: .6rem; }
.formulaire .ma-selection-origine { color: var(--lichen); margin-bottom: .8rem; }
.ma-selection-liste { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; }
.ma-selection-liste li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: .9rem; align-items: center; }
.ma-selection-liste img { width: 4.5rem; height: 3rem; object-fit: cover; border-radius: var(--arrondi); background: var(--brume); }
.ma-selection-liste strong { display: block; font-size: .92rem; }
.ma-selection-liste span { display: block; font-size: .88rem; line-height: 1.35; color: var(--lichen); }
.ma-selection-liste button { background: none; border: 0; padding: .3rem; color: var(--loire); font: inherit; font-size: .9rem; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

.visionneuse-bas > div:first-child { min-width: 0; }
.visionneuse .visionneuse-ref { margin-top: .15rem; color: #8e9b96; font-size: .88rem; }
.visionneuse-actions { display: flex; align-items: center; gap: 1.2rem; flex-shrink: 0; }
.visionneuse .visionneuse-choisir { font-size: .95rem; line-height: 1.2; opacity: 1; padding: .6rem 1.1rem; border-radius: 99px; background: rgba(255,255,255,.14); }
.visionneuse .visionneuse-choisir:hover { background: rgba(255,255,255,.24); }
.visionneuse .visionneuse-choisir[aria-pressed="true"] { background: var(--moisson); color: var(--ardoise); }
.visionneuse .visionneuse-choisir[hidden] { display: none; }
@media (max-width: 600px) { .visionneuse-bas { flex-direction: column; } .visionneuse-actions { justify-content: space-between; } }

.planche { margin: 1.1rem 0 0; font-size: .95rem; }
.planche a { font-weight: 600; }
.texte .signature { margin-top: 1.6rem; color: var(--lichen); font-size: 1rem; }

/* ── Transition entre les pages ──────────────────────────── */
@view-transition { navigation: auto; }
.page-territoire .heros--page .heros-media img { view-transition-name: photo-heros; }
::view-transition-group(photo-heros) { animation-duration: .6s; animation-timing-function: cubic-bezier(.2,.7,.2,1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ── Page de statistiques ────────────────────────────────── */
.page-statistiques h2 { font-size: 1.8rem; margin-top: 2.5rem; }
.tableau-defilant { overflow-x: auto; }
.tableau-stats { width: 100%; border-collapse: collapse; font-size: .98rem; }
.tableau-stats th, .tableau-stats td { padding: .7rem .8rem; text-align: left; white-space: nowrap; box-shadow: 0 1px 0 var(--ligne); }
.tableau-stats thead th { font-size: .85rem; font-weight: 600; color: var(--lichen); }
.tableau-stats tbody th { font-weight: 600; white-space: normal; }
.tableau-stats .nombre { text-align: right; font-variant-numeric: tabular-nums; }
.tableau-stats .jamais-ouverte td:last-child { color: #9a3b1f; font-weight: 600; }

/* ── Proportions des photos (galeries) ───────────────────── */
.r-5 { --r: 0.5; }
.r-6 { --r: 0.6; }
.r-7 { --r: 0.7; }
.r-8 { --r: 0.8; }
.r-9 { --r: 0.9; }
.r-10 { --r: 1; }
.r-11 { --r: 1.1; }
.r-12 { --r: 1.2; }
.r-13 { --r: 1.3; }
.r-14 { --r: 1.4; }
.r-15 { --r: 1.5; }
.r-16 { --r: 1.6; }
.r-17 { --r: 1.7; }
.r-18 { --r: 1.8; }
.r-19 { --r: 1.9; }
.r-20 { --r: 2; }
.r-21 { --r: 2.1; }
.r-22 { --r: 2.2; }
.r-23 { --r: 2.3; }
.r-24 { --r: 2.4; }
.r-25 { --r: 2.5; }
.r-26 { --r: 2.6; }
.r-27 { --r: 2.7; }
.r-28 { --r: 2.8; }
.r-29 { --r: 2.9; }
.r-30 { --r: 3; }
.r-31 { --r: 3.1; }
.r-32 { --r: 3.2; }
.r-33 { --r: 3.3; }
.r-34 { --r: 3.4; }
.r-35 { --r: 3.5; }
.r-36 { --r: 3.6; }
.r-37 { --r: 3.7; }
.r-38 { --r: 3.8; }
.r-39 { --r: 3.9; }
.r-40 { --r: 4; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .diapo { transition: none; }
}

/* Couleurs d'attente (générées) */
.c-118877{background-color:#118877}.c-224455{background-color:#224455}.c-445533{background-color:#445533}.c-447799{background-color:#447799}.c-553311{background-color:#553311}.c-556622{background-color:#556622}.c-556677{background-color:#556677}.c-557788{background-color:#557788}.c-558899{background-color:#558899}.c-667733{background-color:#667733}.c-667755{background-color:#667755}.c-667766{background-color:#667766}.c-667788{background-color:#667788}.c-668877{background-color:#668877}.c-668888{background-color:#668888}.c-668899{background-color:#668899}.c-6699bb{background-color:#6699bb}.c-777744{background-color:#777744}.c-778877{background-color:#778877}.c-778888{background-color:#778888}.c-778899{background-color:#778899}.c-779966{background-color:#779966}.c-77aabb{background-color:#77aabb}.c-886633{background-color:#886633}.c-887755{background-color:#887755}.c-887788{background-color:#887788}.c-887799{background-color:#887799}.c-888888{background-color:#888888}.c-889988{background-color:#889988}.c-889999{background-color:#889999}.c-8899aa{background-color:#8899aa}.c-88aa99{background-color:#88aa99}.c-88aacc{background-color:#88aacc}.c-88aaee{background-color:#88aaee}.c-996655{background-color:#996655}.c-996688{background-color:#996688}.c-999988{background-color:#999988}.c-9999aa{background-color:#9999aa}.c-9999bb{background-color:#9999bb}.c-aa7755{background-color:#aa7755}.c-aa9977{background-color:#aa9977}.c-aaaa99{background-color:#aaaa99}.c-bbaaaa{background-color:#bbaaaa}.c-bbbbbb{background-color:#bbbbbb}.c-ddaa77{background-color:#ddaa77}
