/* ═══ Variante A — « La nef » ═══
   Je lis ceci comme : site d'une maître verrier restauratrice pour des communes, des collectivités et des
   particuliers ; le travail de la page = montrer le travail (photos) et faire appeler ; ton humble, lumineux.
   Type marketing. Curseurs : variance 3 · motion 1 · densité 1 (aérée).
   DA : lumière qui traverse le verre, fond crème chaud, grandes photos, beaucoup de blanc.
   Palette partie des cartes du 12/09 (#0C5C91 / #C9A46B / #16181C) : bleu assombri, jaune d'argent,
   rouge sang-de-bœuf en repère (< 5 %). Polices : Cormorant Garamond (capitales) + Figtree. */
@font-face { font-family: "Cormorant"; src: url("polices/cormorant-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("polices/cormorant-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("polices/Figtree-400-700.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --schema: light;
  --fond: #F7F1E6;
  --fond-2: #EEE3CF;
  --texte: #241E18;
  --texte-2: #5B5044;
  --titre: #14304D;
  --lien: #1B4B76;
  --accent: #B8904F;
  --accent-texte: #75551F;
  --rouge: #8A2A22;
  --trait: #E1D4BD;
  --trait-fort: #B9A788;
  --btn-fond: #14304D;
  --btn-fond-survol: #0B213A;
  --btn-texte: #FBF7EF;
  --champ: #FFFCF6;
  --focus: #8A2A22;
  --tete-fond: rgb(247 241 230 / .96);
  --f-titre: "Cormorant", "Iowan Old Style", Georgia, serif;
  --f-texte: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --f-chiffres: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --r: 2px;
  --r-img: 0;
  --r-pastille: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --d1: 140ms;
  --d2: 360ms;
  --gouttiere: clamp(1.25rem, 5vw, 4.5rem);
  --largeur: 1240px;
  --pad-sec: clamp(5rem, 11vw, 10rem);
  --t-corps: 1.0625rem;
  --t-chapo: clamp(1.25rem, 1.05rem + .75vw, 1.6rem);
  --t-h1: clamp(3rem, 1.6rem + 6.4vw, 7.25rem);
  --t-h2: clamp(2.3rem, 1.5rem + 3.4vw, 4.5rem);
  --t-h3: clamp(1.55rem, 1.35rem + .8vw, 2.05rem);
  --t-citation: clamp(1.55rem, 1.15rem + 1.8vw, 2.7rem);
  --pl-min: 230px;
  --pl-gap: clamp(1.25rem, 2.6vw, 2.5rem);
  --pl-ratio: 4 / 5;
}

/* ═══ Michèle Darèes — Vitraux d'art · socle commun des trois variantes ═══
   Structure et composants seulement : toutes les couleurs, polices et mesures viennent des tokens
   définis dans a.css / b.css / c.css (concaténés après ce fichier). CSP : aucun style en ligne. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; color-scheme: var(--schema); }
body { margin: 0; background: var(--fond); color: var(--texte); font-family: var(--f-texte); font-size: var(--t-corps);
  line-height: 1.6; font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--lien); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-titre); color: var(--titre); text-wrap: balance; margin: 0; }
h2 { font-size: var(--t-h2); line-height: 1.08; }
h3 { font-size: var(--t-h3); line-height: 1.2; }
p { margin: 0 0 1em; }
sup { font-size: .68em; line-height: 0; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.evitement { position: absolute; left: 1rem; top: -5rem; z-index: 100; background: var(--texte); color: var(--fond); padding: .7rem 1rem; }
.evitement:focus { top: 1rem; }

/* — en-tête — */
.tete { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1.75rem;
  padding: .6rem var(--gouttiere); background: var(--tete-fond); border-bottom: 1px solid var(--trait); }
.marque { display: grid; grid-template-columns: auto auto; column-gap: .75rem; align-items: center; margin-right: auto;
  color: var(--titre); text-decoration: none; min-height: 48px; }
.marque__main { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.marque__nom { font-family: var(--f-titre); font-size: 1.15rem; font-weight: 600; line-height: 1.1; align-self: end; }
.marque__metier { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-2); line-height: 1.3; align-self: start; }
.nav { display: flex; flex-wrap: wrap; gap: 0 1.35rem; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--texte); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--lien); text-decoration: underline; }
.tete__tel { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--f-chiffres); font-variant-numeric: tabular-nums;
  font-weight: 600; white-space: nowrap; color: var(--titre); text-decoration: none; }
.menu { font: inherit; font-size: .95rem; min-height: 44px; padding: .45rem 1rem; border: 1px solid var(--trait-fort);
  border-radius: var(--r); background: transparent; color: var(--texte); cursor: pointer; }
@media (max-width: 899px) {
  .js .nav--repli { display: none; width: 100%; flex-direction: column; padding: .25rem 0 .75rem; }
  .js .nav--repli.on { display: flex; }
  .js .nav--repli a { border-top: 1px solid var(--trait); font-size: 1.05rem; }
  .js .tete__tel { display: none; }
}
@media (min-width: 900px) { .menu { display: none !important; } }

/* — sélecteur de langue « Traduction » (details/summary : marche sans JS) — */
.langues { position: relative; }
.langues summary { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .3rem .75rem;
  border: 1px solid var(--trait-fort); border-radius: var(--r-pastille); cursor: pointer; list-style: none;
  font-family: var(--f-texte); font-size: .85rem; color: var(--texte); white-space: nowrap; }
.langues summary::-webkit-details-marker { display: none; }
.langues summary::after { content: ""; width: .4rem; height: .4rem; margin-left: .15rem; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--d1) var(--ease); }
.langues[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.langues summary b { font-weight: 600; color: var(--titre); letter-spacing: .04em; }
.langues__liste { position: absolute; right: 0; top: calc(100% + .35rem); z-index: 60; min-width: 11rem; margin: 0; padding: .35rem;
  list-style: none; background: var(--fond); border: 1px solid var(--trait-fort); border-radius: var(--r);
  box-shadow: 0 12px 30px -12px rgb(0 0 0 / .35); }
.langues__liste a { display: flex; gap: .6rem; align-items: center; min-height: 44px; padding: .2rem .7rem; border-radius: var(--r);
  color: var(--texte); text-decoration: none; font-size: .95rem; }
.langues__liste a b { width: 1.8rem; font-weight: 600; color: var(--accent-texte); }
.langues__liste a:hover { background: var(--fond-2); }
.langues__liste a[aria-current="page"] { background: var(--fond-2); font-weight: 600; }
@media (max-width: 899px) { .langues__t { display: none; } }
/* téléphone : logo, nom, langue et menu tiennent sur UNE ligne (le menu ouvert passe dessous) */
@media (max-width: 599px) {
  .tete { gap: .25rem .5rem; }
  .marque { flex: 1 1 0; min-width: 0; grid-template-columns: auto minmax(0, 1fr); column-gap: .55rem; }
  .marque__main { width: 38px; height: 38px; }
  .marque__nom { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .marque__metier { font-size: .62rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .langues summary { padding: .3rem .6rem; }
  .menu { padding: .45rem .75rem; }
}
@media (max-width: 379px) { .marque__metier { display: none; } .marque__main { width: 34px; height: 34px; } .marque__nom { font-size: .95rem; } }

/* — éléments propres à une variante : cachés par défaut — */
.verriere, .bandeau { display: none; }
.fig__cadre { display: block; }

/* — boutons — */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.35rem;
  border: 1px solid var(--btn-fond); border-radius: var(--r); background: var(--btn-fond); color: var(--btn-texte);
  font-family: var(--f-texte); font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color var(--d1) var(--ease), border-color var(--d1) var(--ease), color var(--d1) var(--ease); }
.btn:hover { background: var(--btn-fond-survol); border-color: var(--btn-fond-survol); text-decoration: none; }
.btn--2 { background: transparent; color: var(--titre); border-color: var(--trait-fort); }
.btn--2:hover { background: var(--fond-2); border-color: var(--titre); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 0; }

/* — gabarits de section — */
.sec { max-width: calc(var(--largeur) + 2 * var(--gouttiere)); margin-inline: auto; padding: var(--pad-sec) var(--gouttiere); }
.large { padding-inline: max(var(--gouttiere), calc((100% - var(--largeur)) / 2)); }
.sur { margin: 0 0 .9rem; font-family: var(--f-chiffres); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-texte); }
.chapo { margin: 1.1rem 0 0; font-size: var(--t-chapo); line-height: 1.45; max-width: 44ch; }
.sec__corps { margin-top: clamp(2rem, 4vw, 3.5rem); }
.prose { max-width: 68ch; }
.fig { margin: 0; }
.fig img { width: auto; max-width: 100%; border-radius: var(--r-img); }
.fig figcaption { margin-top: .6rem; font-size: .875rem; line-height: 1.45; color: var(--texte-2); }

/* — ouverture — */
.ouverture { display: grid; gap: 2.5rem; padding-block: clamp(2rem, 6vw, 5rem); }
.ouverture h1 { font-size: var(--t-h1); line-height: .98; }
.ouverture h1 span { display: block; }
.faits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; margin: 2.25rem 0 0; }
.faits div { border-top: 1px solid var(--trait-fort); padding-top: .55rem; }
.faits dt { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-2); }
.faits dd { margin: .15rem 0 0; font-weight: 600; color: var(--titre); line-height: 1.35; }

/* — La Romieu — */
.une { display: grid; gap: 1.5rem 3rem; padding-block: clamp(3rem, 7vw, 6rem); }
.une h2 { margin-bottom: 1rem; }
.reportage { display: grid; align-content: start; overflow: hidden; border: 1px solid var(--trait-fort); border-radius: var(--r);
  background: var(--fond-2); color: inherit; text-decoration: none; }
.reportage__img { position: relative; display: block; }
.reportage__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.reportage__lecture { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  background: var(--rouge); box-shadow: 0 0 0 8px rgb(255 255 255 / .22); transition: transform var(--d1) var(--ease); }
.reportage__lecture::after { content: ""; position: absolute; left: 30px; top: 23px; border-style: solid; border-width: 15px 0 15px 24px;
  border-color: transparent transparent transparent #fff; }
.reportage:hover .reportage__lecture { transform: scale(1.06); }
.reportage__txt { display: block; padding: 1rem 1.25rem 1.15rem; }
.reportage__txt strong { display: block; font-family: var(--f-titre); font-size: 1.4rem; line-height: 1.2; color: var(--titre); }
.reportage:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.reportage__txt span { font-size: .9rem; color: var(--texte-2); }
.une__note { margin: 0; font-size: .8rem; color: var(--texte-2); }

/* — parole — */
.parole { margin: 0; padding-block: var(--pad-sec); }
.parole p { max-width: 36em; margin: 0 auto 1.25rem; font-family: var(--f-titre); font-size: var(--t-citation); line-height: 1.42; }
.parole footer { max-width: 36em; margin: 0 auto; font-size: .9rem; color: var(--texte-2); }

/* — atelier — */
.atelier__figs { display: grid; gap: 1.5rem; margin: 2.5rem 0; align-items: start; }
.frise { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 0; }
.frise li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--trait); }
.frise b { font-family: var(--f-chiffres); font-variant-numeric: tabular-nums; color: var(--titre); }

/* — tableau — */
.tableau { overflow-x: auto; margin: 0 0 2.5rem; }
.tableau:focus-visible { outline-offset: 0; }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .95rem; }
caption { text-align: left; padding-bottom: .75rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-2); }
th, td { padding: .7rem 1rem .7rem 0; border-bottom: 1px solid var(--trait); text-align: left; vertical-align: top; }
thead th { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-2); border-bottom-color: var(--trait-fort); }
tbody th { font-weight: 600; color: var(--titre); }
td:nth-child(3) { font-variant-numeric: tabular-nums; }
.monuments__figs { display: grid; gap: 1.5rem; align-items: end; }

/* — restaurer — */
.restaurer__visage { margin: 2.5rem 0; }
.regles { display: grid; gap: 2rem 3rem; margin: 2.5rem 0; }
.regles h3 { margin-bottom: 1rem; }
.causes ul { margin: 0; padding: 0; list-style: none; }
.causes li { padding: .55rem 0 .55rem 1.4rem; border-top: 1px solid var(--trait); position: relative; }
.causes li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: .55rem; height: .55rem; background: var(--rouge); }
.trois dl { margin: 0; }
.trois dl div { padding: .8rem 0; border-top: 1px solid var(--trait); }
.trois dt { font-weight: 600; color: var(--titre); }
.trois dd { margin: .2rem 0 0; }
.methode { margin: 2.5rem 0; }
.methode h3 { margin-bottom: 1rem; }
.methode ul { margin: 0; padding-left: 1.2rem; max-width: 72ch; }
.methode li { margin-bottom: .6rem; }
.methode li::marker { color: var(--accent); }
.avant-apres, .details { display: grid; gap: 1.25rem; margin: 2.5rem 0 0; }
.details { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* — créer — */
.services { display: grid; gap: 2rem; }
.serv { display: grid; align-content: start; gap: 1rem; }
.serv__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-img); }
.serv h3 { margin-bottom: .5rem; }
.tags { margin: 0; font-family: var(--f-chiffres); font-size: .8rem; letter-spacing: .04em; color: var(--accent-texte); }

/* — geisha — */
.geisha__figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.geisha__figs .g1, .geisha__figs .g5 { grid-column: 1 / -1; }

/* — Gers — */
.chantiers { display: grid; gap: 2rem; margin-top: 2.5rem; }
.chantier { display: grid; gap: 1rem; align-content: start; }
.chantier__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-img); }
.chantier h3 span { display: block; margin-top: .2rem; font-family: var(--f-chiffres); font-size: .78rem; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent-texte); }
.chantier h3 { margin-bottom: .6rem; }

/* — planches — */
.filtres { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem; padding: 0; border: 0; }
.filtres label { display: inline-flex; align-items: center; min-height: 44px; padding: .35rem 1rem; border: 1px solid var(--trait-fort);
  border-radius: var(--r-pastille); cursor: pointer; font-size: .95rem; color: var(--texte); }
.filtres label:hover { border-color: var(--titre); }
.filtres input:checked + label { background: var(--btn-fond); border-color: var(--btn-fond); color: var(--btn-texte); }
.filtres input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.catalogue:has(#f-restauration:checked) .pl:not([data-s="restauration"]),
.catalogue:has(#f-creation:checked) .pl:not([data-s="creation"]),
.catalogue:has(#f-blasons:checked) .pl:not([data-s="blasons"]),
.catalogue:has(#f-geisha:checked) .pl:not([data-s="geisha"]),
.catalogue:has(#f-objets:checked) .pl:not([data-s="objets"]) { display: none; }
/* 16/09 — seconde galerie : les photographies de chantier de Michèle (groupe « serie2 ») */
.catalogue:has(#f2-eauze:checked) .pl:not([data-s="eauze"]),
.catalogue:has(#f2-romieu:checked) .pl:not([data-s="romieu"]),
.catalogue:has(#f2-saramon:checked) .pl:not([data-s="saramon"]),
.catalogue:has(#f2-fleurance:checked) .pl:not([data-s="fleurance"]) { display: none; }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--pl-min)), 1fr)); gap: var(--pl-gap); }
.gal.lot:not(.ouvert) .pl:nth-child(n+25) { display: none; }
.pl { margin: 0; }
.pl a { display: block; color: inherit; text-decoration: none; }
.pl .vue { display: block; overflow: hidden; background: var(--fond-2); border-radius: var(--r-img); }
.pl .vue img { width: 100%; aspect-ratio: var(--pl-ratio); object-fit: cover; transition: transform var(--d2) var(--ease); }
@media (hover: hover) { .pl a:hover .vue img { transform: scale(1.035); } }
.pl figcaption { display: block; padding-top: .5rem; font-size: .82rem; line-height: 1.38; }
.pl .n { display: block; font-family: var(--f-chiffres); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-texte); }
.pl .c { display: block; color: var(--texte-2); }
.gal__plus { margin: 2rem 0 0; text-align: center; }

/* — 16/09 : les trois chantiers racontés (Eauze, La Romieu, Saramon) — */
.oeuvres .sec__corps { display: grid; gap: clamp(3.5rem, 8vw, 7rem); }
.oeuvre { display: grid; gap: 1.5rem; }
.oeuvre__cote { display: grid; gap: 1.5rem; align-content: start; }
.oeuvre__tete { display: grid; gap: .4rem; }
.oeuvre__tete h3 { margin: 0; }
.oeuvre__grande { margin: 0; }
.oeuvre__txt p { max-width: 62ch; }
.oeuvre__txt p:last-child { margin-bottom: 0; }
.oeuvre__suite { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.oeuvre .avant-apres { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; gap: 1rem; }
/* 18/09 — Fleurance : trois détails, trois colonnes dès le téléphone */
.oeuvre__suite--3 { --cols: 3; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.oeuvre__suite--4 { --cols: 4; }
.oeuvre__suite--6 { --cols: 6; }

/* — contact — */
.contact__grille { display: grid; gap: 2.5rem; align-items: start; }
.coord { margin: 0; }
.coord div { padding: .8rem 0; border-top: 1px solid var(--trait); }
.coord dt { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-2); }
.coord dd { margin: .15rem 0 0; font-size: 1.1rem; font-weight: 600; color: var(--titre); overflow-wrap: anywhere; }
.form h3 { margin-bottom: .4rem; }
.form__note { font-size: .9rem; color: var(--texte-2); }
.form p { margin: 0 0 1rem; }
.form label { display: block; margin-bottom: .3rem; font-size: .9rem; font-weight: 600; }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; padding: .6rem .8rem; border: 1px solid var(--trait-fort);
  border-radius: var(--r); background: var(--champ); color: var(--texte); font: inherit; font-size: 1rem; }
.form textarea { min-height: 8rem; resize: vertical; }
.form__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.form__etat { min-height: 1.5em; font-size: .95rem; color: var(--titre); }

/* — pied — */
.pied { display: grid; gap: 1.5rem 3rem; padding-block: 3rem 2rem; border-top: 1px solid var(--trait); font-size: .95rem; }
.pied__t { margin-bottom: .5rem; font-family: var(--f-chiffres); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-2); font-weight: 600; }
.pied p { margin: 0; }
.pied a { color: var(--texte); }
.pied__credits { grid-column: 1 / -1; font-size: .82rem; color: var(--texte-2); }

/* — visionneuse — */
.lb { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0;
  background: rgb(9 11 15 / .95); color: #F1ECE3; }
.lb::backdrop { background: rgb(0 0 0 / .6); }
.lb[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.lb__fig { display: grid; place-items: center; align-content: center; gap: .75rem; height: 100%; margin: 0; padding: 3.5rem 0 1.25rem; }
.lb__img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 8.5rem); object-fit: contain; }
.lb__cap { max-width: 62ch; padding: 0 1rem; text-align: center; font-size: .95rem; color: #E7E0D4; }
.lb button { min-width: 56px; min-height: 56px; border: 0; background: transparent; color: #F1ECE3; font: inherit; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb__x { position: absolute; top: .4rem; right: .4rem; }
body.lb-open { overflow: hidden; }

@media (min-width: 700px) {
  .details { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .avant-apres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* — 18/09 : pages annexes du domaine (mentions légales, 404) — */
.annexe__corps { max-width: calc(52rem + 2 * var(--gouttiere)); }
.annexe__corps h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 2rem; }
.annexe__corps h2 { font-size: 1.35rem; margin: 2.2rem 0 .6rem; }
.annexe__corps p { overflow-wrap: anywhere; }
.annexe__retour { margin-top: 3rem; }

/* ═══ A « La nef » — mise en page (chargée après le socle) ═══
   14/09 : placements d'images retravaillés (demande de Paul) — bandeau pleine largeur, collage de l'atelier,
   hauteurs d'images alignées par rangée, grande mosaïque Geisha, chantiers en cartes à grande photo. */
h1, h2 { font-weight: 500; text-transform: uppercase; letter-spacing: .015em; }
h3 { font-weight: 600; }
.sur { font-weight: 600; }
.chapo { font-family: var(--f-titre); font-size: var(--t-chapo); font-weight: 500; max-width: 38ch; color: var(--texte); }
.sec__tete { max-width: 60rem; }
.sec__tete h2::after { content: ""; display: block; width: 4.5rem; height: 2px; margin-top: 1.4rem; background: var(--accent); }

/* ouverture : texte à gauche, grand vitrail à droite, plein écran */
.ouverture { max-width: calc(var(--largeur) + 2 * var(--gouttiere)); margin-inline: auto; padding-inline: var(--gouttiere); }
.ouverture h1 { color: var(--titre); }
.ouverture h1 span { margin-top: 1rem; font-size: .3em; letter-spacing: .22em; color: var(--rouge); font-weight: 600; }
.ouverture__img img { margin-inline: auto; box-shadow: 0 30px 80px -40px rgb(60 40 10 / .45); }
.ouverture__img figcaption { max-width: 34ch; margin-inline: auto; text-align: center; }

/* La Romieu : bande bleu nuit, lumière dorée */
.une { background: #10263E; color: #EFE7DA;
  --texte: #EFE7DA; --texte-2: #CFC5B5; --titre: #FAF4EA; --accent-texte: #DDBF83; --trait-fort: rgb(239 231 218 / .32); --fond-2: #163250; --lien: #E8CC94; }
.une p { max-width: 52ch; font-size: 1.1rem; }

/* parole : grande citation centrée */
.parole { background: var(--fond-2); text-align: center; }
.parole p { font-weight: 500; color: var(--titre); }
.parole p::before { content: ""; display: block; width: 3rem; height: 2px; margin: 0 auto 2rem; background: var(--rouge); }
.parole footer { text-align: center; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }

/* bandeau pleine largeur : six verres côte à côte, même hauteur — la « nef » du site */
.bandeau { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: var(--fond-2); }
.bandeau__v { display: block; overflow: hidden; }
.bandeau__v img { width: 100%; height: clamp(140px, 22vw, 300px); object-fit: cover; }
@media (min-width: 900px) { .bandeau { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.prose { font-size: 1.1rem; }
.fig figcaption { font-size: .9rem; }

/* images alignées : même hauteur par rangée, recadrage doux (jamais au-delà de la définition native) */
.monuments__figs .fig__cadre img, .avant-apres .fig__cadre img, .details .fig__cadre img, .geisha__figs .fig__cadre img,
.atelier__figs .fig__cadre img, .chantier__img img, .contact__img .fig__cadre img { width: 100%; object-fit: cover; }
.monuments__figs .fig__cadre img { height: clamp(260px, 34vw, 500px); }
.avant-apres .fig__cadre img { height: clamp(200px, 28vw, 420px); }
.details .fig__cadre img { aspect-ratio: 1 / 1; }
.restaurer__visage img { margin-inline: auto; }
.atelier__figs .fig__cadre { border: 10px solid var(--fond); box-shadow: 0 30px 70px -40px rgb(60 40 10 / .5); }

.atelier__figs { gap: 2rem; }
.monuments__figs { gap: 1.5rem; }
.avant-apres { gap: 1.5rem; }
.details { gap: 1rem; }
.services { gap: 3.5rem 3rem; }
.serv__img img { aspect-ratio: 3 / 2; }
.serv h3 { font-size: 1.9rem; }
.chantiers { gap: 3rem 2.5rem; }
.chantier { border-top: 1px solid var(--trait); padding-top: 1.25rem; }
.chantier__img img { aspect-ratio: 4 / 3; }
.chantier--seul { background: var(--fond-2); padding: 1.5rem; border-top: 0; }
.chantier h3 { font-size: 1.9rem; }
.geisha__figs { gap: 1rem; }
.frise b { color: var(--rouge); }
.coord dd { font-size: 1.25rem; }

/* — 16/09 : les trois chantiers racontés (photographies de Michèle) — */
.oeuvres { background: var(--fond-2); }
/* entre le h2 de la section et le h3 courant : un chantier est un sous-niveau */
.oeuvre__tete h3 { font-family: var(--f-titre); font-size: clamp(1.9rem, 1.35rem + 1.9vw, 3.1rem); font-weight: 500;
  text-transform: uppercase; letter-spacing: .015em; line-height: 1.06; color: var(--titre); }
.oeuvre__tete h3::after { content: ""; display: block; width: 3rem; height: 2px; margin-top: 1.1rem; background: var(--rouge); }
.oeuvre__tete .sur { color: var(--accent-texte); }
.oeuvre__grande .fig__cadre { border: 10px solid var(--fond); box-shadow: 0 30px 70px -40px rgb(60 40 10 / .5); }
.oeuvre__grande .fig__cadre img { width: 100%; object-fit: cover; height: clamp(340px, 78vw, 620px); }
.oeuvre__suite .fig__cadre img, .oeuvre .avant-apres .fig__cadre img { width: 100%; object-fit: cover; }
.oeuvre__suite .fig__cadre img { aspect-ratio: 1 / 1; }
.oeuvre .avant-apres .fig__cadre img { height: clamp(190px, 42vw, 300px); }
.oeuvre__suite .fig figcaption { font-size: .8rem; }

/* — 16/09 : la galerie des photographies de chantier — */
.photos { border-top: 1px solid var(--trait); }

@media (min-width: 700px) {
  .chantiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .ouverture { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; min-height: calc(100vh - 4.5rem); gap: 4rem; }
  .ouverture__img img { max-height: calc(100vh - 10rem); width: auto; }
  .une { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; }
  .une__note { grid-column: 2; }
  /* atelier : collage de deux photos qui se chevauchent à droite du texte */
  .atelier .sec__corps { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 0 5rem; align-items: start; }
  .atelier .prose { grid-column: 1; grid-row: 1; }
  .atelier__figs { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; display: block; }
  .atelier__figs .fig--portrait { width: 62%; margin-left: auto; }
  .atelier__figs .fig--portrait .fig__cadre img { aspect-ratio: 11 / 12; }
  .atelier__figs .fig--large { width: 88%; margin-top: -6rem; position: relative; z-index: 1; }
  .atelier__figs .fig--large .fig__cadre img { aspect-ratio: 3 / 2; }
  .atelier .frise { grid-column: 1; grid-row: 2; }
  /* monuments : trois verres de même hauteur, le XIIIe siècle en tête */
  .monuments__figs { grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 2.6fr); }
  .restaurer .sec__corps { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 0 5rem; }
  .restaurer .sec__corps > * { grid-column: 1 / -1; }
  .restaurer .prose { grid-column: 1; }
  .restaurer .restaurer__visage { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-self: start; }
  .restaurer .regles { grid-column: 1; }
  .regles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .serv--seul { align-self: center; }
  /* Geisha : la cuisine en grand à gauche, trois vues alignées, le détail en large dessous */
  .geisha__figs { grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; }
  .geisha__figs .g1 { grid-column: 1; grid-row: 1 / span 2; }
  .geisha__figs .g1 .fig__cadre img { height: clamp(460px, 50vw, 760px); }
  .geisha__figs .g2, .geisha__figs .g3, .geisha__figs .g4 { grid-column: auto; grid-row: 1; }
  .geisha__figs .g2 .fig__cadre img, .geisha__figs .g3 .fig__cadre img, .geisha__figs .g4 .fig__cadre img { height: clamp(240px, 26vw, 420px); }
  .geisha__figs .g5 { grid-column: 2 / span 3; grid-row: 2; }
  .geisha__figs .g5 .fig__cadre img { height: clamp(160px, 18vw, 280px); }
  .chantiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* chantiers racontés : récit et grande photo en regard, la bande de détails dessous ;
     un chantier sur deux inverse les côtés */
  .oeuvre { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem 4.5rem; align-items: start; }
  .oeuvre__cote { grid-column: 1; grid-row: 1; padding-top: 1rem; }
  .oeuvre__grande { grid-column: 2; grid-row: 1; }
  .oeuvre__grande .fig__cadre img { height: clamp(460px, 46vw, 720px); }
  .oeuvre__suite { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
  .oeuvre:nth-child(even) .oeuvre__cote { grid-column: 2; }
  .oeuvre:nth-child(even) .oeuvre__grande { grid-column: 1; }
  .contact__grille { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 4rem; }
  .contact__img .fig__cadre img { aspect-ratio: 3 / 4; }
}
@media (min-width: 1200px) {
  .gal { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 18/09 — « Créer » : trois colonnes dès 900 px. En deux colonnes, trois photos des plaquettes
   (400, 429 et 519 px de large) s'affichaient à 596 px, donc agrandies au-delà de leur taille native. */
@media (min-width: 900px) {
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ═══ 19/09/2026 — V2 d'après l'appel avec Michèle (site réel seulement, chargée en dernier) ═══
   1. Plus aucune photographie recadrée : chaque image garde ses proportions (visages entiers, ajours entiers).
   2. Les chantiers : récit + une piste horizontale de photographies ; la légende suit l'image au centre.
   3. Fleurance (2008) rejoint le prix, sous la frise du parcours.
   4. Page /relecture/ (aperçu privé) pour l'appel du 20/09. */

/* — 1. images entières — */
.atelier__figs .fig__cadre img, .contact__img .fig__cadre img, .reportage__img img,
.monuments__figs .fig__cadre img, .avant-apres .fig__cadre img, .details .fig__cadre img,
.geisha__figs .fig__cadre img, .serv__img img, .chantier__img img {
  aspect-ratio: auto !important; height: auto !important; object-fit: fill; }
.atelier__figs .fig__cadre img, .contact__img .fig__cadre img, .reportage__img img { width: 100%; }
.monuments__figs, .avant-apres, .details, .geisha__figs { align-items: start; }

/* l'atelier : ses deux photos l'une sous l'autre, décalées, sans qu'aucune ne cache l'autre */
@media (min-width: 900px) {
  .atelier__figs .fig--portrait { width: 70%; margin-left: auto; }
  .atelier__figs .fig--large { width: 92%; margin-top: 2.25rem; }
  .monuments__figs .fig__cadre img { width: 100%; }
  .geisha__figs .g1 .fig__cadre img, .geisha__figs .g2 .fig__cadre img, .geisha__figs .g3 .fig__cadre img,
  .geisha__figs .g4 .fig__cadre img, .geisha__figs .g5 .fig__cadre img { width: 100%; }
}

/* — 2. chantiers — */
.chapitres { display: grid; gap: clamp(4.5rem, 10vw, 8.5rem); }
.chapitre { min-width: 0; }
.chapitre__tete { display: grid; gap: .4rem; }
.chapitre__tete .sur { color: var(--accent-texte); margin: 0; }
.chapitre__tete h3 { margin: 0; font-family: var(--f-titre); font-size: clamp(1.9rem, 1.35rem + 1.9vw, 3.1rem); font-weight: 500;
  text-transform: uppercase; letter-spacing: .015em; line-height: 1.06; color: var(--titre); }
.chapitre__tete h3::after { content: ""; display: block; width: 3rem; height: 2px; margin-top: 1.1rem; background: var(--rouge); }
.chapitre__txt { margin-top: 1.6rem; }
.chapitre__txt p { margin: 0 0 1rem; }
@media (min-width: 900px) {
  .chapitre__txt--long { max-width: none; columns: 2; column-gap: 3.5rem; }
  .chapitre__txt--long p { break-inside: avoid; }
}

/* la piste : les photographies à la file, entières, posées sur la même ligne de base ; elle va jusqu’aux bords */
.defile { margin-top: 2.25rem; }
.defile__piste { position: relative; display: flex; align-items: flex-end; gap: clamp(.75rem, 1.6vw, 1.5rem);
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  margin-inline: calc(-1 * var(--gouttiere)); padding: .5rem var(--gouttiere) 1.1rem;
  scroll-padding-inline: var(--gouttiere); scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.defile__piste:focus-visible { outline: 2px solid var(--accent-texte); outline-offset: -2px; }
.defile__piste::-webkit-scrollbar { height: 6px; }
.defile__piste::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
.vue { flex: 0 0 auto; margin: 0; scroll-snap-align: center; display: table; }
.vue__imgs { display: flex; gap: .5rem; align-items: center; }
.vue__lien { display: block; line-height: 0; cursor: zoom-in; }
.vue img { display: block; width: auto; height: auto; max-width: 84vw; max-height: 60vh; border-radius: var(--r-img);
  box-shadow: 0 24px 60px -36px rgb(60 40 10 / .55); }
.vue--paire img { max-width: 41vw; }
.vue figcaption { display: table-caption; caption-side: bottom; padding-top: .6rem; font-size: .9rem; line-height: 1.45; }
.vue__num { font-family: var(--f-chiffres); font-size: .72rem; letter-spacing: .1em; color: var(--accent-texte); }
.vue__leg { display: block; font-family: var(--f-titre); font-size: 1.15rem; line-height: 1.3; color: var(--titre); }
.vue__desc { display: block; color: var(--texte-2); }
@media (min-width: 900px) {
  .vue img { height: clamp(340px, 62vh, 640px); max-height: none; max-width: 78vw; object-fit: contain; }
  .vue--paire img { max-width: 39vw; }
}
/* avec le script : une seule légende, sous la piste, qui suit l'image au centre ; les autres s'effacent */
.js .vue figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; }
.js .vue { opacity: 1; }
.js .vue img { transition: box-shadow var(--d2) var(--ease); box-shadow: 0 18px 46px -34px rgb(60 40 10 / .42); }
.js .vue.est-active img { box-shadow: 0 26px 64px -30px rgb(60 40 10 / .62); }
.no-js .defile__barre, .no-js .defile__progres { display: none; }

.defile__barre { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem 1.75rem; align-items: start;
  margin-top: 1.1rem; min-height: 6.2rem; }
.defile__compte { margin: .1rem 0 0; font-family: var(--f-chiffres); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--accent-texte); }
.defile__num { font-size: 1.6rem; line-height: 1; color: var(--rouge); }
.defile__total { font-size: .8rem; letter-spacing: .08em; }
.defile__texte { min-width: 0; }
.defile__leg { margin: 0; font-family: var(--f-titre); font-size: clamp(1.3rem, 1.1rem + .75vw, 1.7rem); font-weight: 500; line-height: 1.22; color: var(--titre); }
.defile__desc { margin: .4rem 0 0; max-width: 72ch; font-size: .98rem; line-height: 1.55; color: var(--texte-2); }
.defile__texte.est-neuf { animation: legende var(--d2) var(--ease); }
@keyframes legende { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.defile__fleches { display: flex; gap: .5rem; margin: 0; }
.defile__fleches button { width: 3rem; height: 3rem; border: 1px solid var(--trait-fort); border-radius: 50%; background: var(--fond);
  color: var(--titre); font: inherit; font-size: 1.15rem; line-height: 1; cursor: pointer;
  transition: background var(--d2) var(--ease), color var(--d2) var(--ease), opacity var(--d2) var(--ease); }
.defile__fleches button:hover:not(:disabled), .defile__fleches button:focus-visible { background: var(--titre); color: var(--fond); }
.defile__fleches button:focus-visible { outline: 2px solid var(--accent-texte); outline-offset: 2px; }
.defile__fleches button:disabled { opacity: .3; cursor: default; }
.defile__progres { height: 2px; margin-top: 1rem; background: var(--trait); overflow: hidden; }
.defile__progres span { display: block; height: 100%; background: var(--accent); transform-origin: left center;
  transform: scaleX(var(--p, .05)); transition: transform var(--d2) var(--ease); }
@media (max-width: 599px) {
  .defile__barre { grid-template-columns: minmax(0, 1fr) auto; min-height: 9.5rem; }
  .defile__texte { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .js .vue img, .defile__progres span, .defile__fleches button { transition: none; }
  .defile__texte.est-neuf { animation: none; }
}

/* — 3. la distinction de 2008, sous le parcours — */
.distinction { margin-top: clamp(3rem, 7vw, 5.5rem); padding-top: 2rem; border-top: 1px solid var(--trait); min-width: 0; }
.distinction .sur { margin: 0 0 .4rem; }
.distinction h3 { margin: 0; font-family: var(--f-titre); font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.6rem); font-weight: 500;
  text-transform: uppercase; letter-spacing: .015em; line-height: 1.08; color: var(--titre); }
.distinction .prose { margin-top: 1.2rem; }
@media (min-width: 900px) { .atelier .distinction { grid-column: 1 / -1; grid-row: 3; } }

/* — 4. page de relecture (aperçu privé) — */
.relecture .annexe__corps { max-width: 72rem; }
.rel__chap { margin: 3.5rem 0 .5rem; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); }
.rel__chap span { font-family: var(--f-texte); font-size: .9rem; text-transform: none; letter-spacing: 0; color: var(--texte-2); }
.rel__liste { list-style: none; margin: 0; padding: 0; }
.rel__item { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 1rem 1.75rem; padding: 1.1rem 0; border-top: 1px solid var(--trait); align-items: start; }
.rel__imgs { display: flex; gap: .4rem; }
.rel__imgs img { width: auto; height: auto; max-width: 100%; max-height: 9rem; }
.rel__item p { margin: 0; }
.rel__num { font-family: var(--f-chiffres); font-variant-numeric: tabular-nums; font-size: 1.2rem; color: var(--rouge); }
.rel__leg { font-family: var(--f-titre); font-size: 1.3rem; line-height: 1.25; color: var(--titre); }
.rel__desc { margin-top: .3rem !important; font-size: .95rem; color: var(--texte-2); }
.rel__etat { display: inline-block; margin-top: .55rem !important; padding: .15rem .55rem; border: 1px solid currentColor;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-2); }
.rel__etat--dictee { color: #2E5B34; }
.rel__etat--confirmer { color: var(--rouge); }
.rel__note { margin-top: .4rem !important; font-size: .88rem; color: var(--rouge); }
@media (max-width: 599px) { .rel__item { grid-template-columns: minmax(0, 1fr); } }

/* couples d’images (générés par build.py) : même hauteur, la paire tient dans l’écran */
.vue--h40 img { height: min(66vh, 40vw) !important; max-width: none !important; object-fit: fill !important; }
@media (min-width: 900px) { .vue--h40 img { height: min(62vh, 640px, 40vw) !important; } }
.vue--h55 img { height: min(66vh, 55vw) !important; max-width: none !important; object-fit: fill !important; }
@media (min-width: 900px) { .vue--h55 img { height: min(62vh, 640px, 55vw) !important; } }
@media (max-width: 599px) { .vue--w22 .vue__imgs { flex-direction: column; } .vue--w22 img { width: min(84vw, 22vh) !important; height: auto !important; } }
@media (max-width: 599px) { .vue--w28 .vue__imgs { flex-direction: column; } .vue--w28 img { width: min(84vw, 28vh) !important; height: auto !important; } }


/* ═══ 03/10/2026 — polissage FLY LAB : finitions seulement (textes, photos, couleurs et polices inchangés) ═══ */

/* 1. Photos entières : leur hauteur est réservée avant le chargement. Le « aspect-ratio: auto !important » du 19/09
      effaçait le ratio tiré des attributs width/height : 30 photos mesuraient 0 px avant d'arriver, la page grandissait
      de 5 660 px (écran 1 280) à 15 000 px (téléphone) en défilant et les liens du menu tombaient à côté de leur section.
      Une règle par format d'image présent dans la page (attributs width/height de index.html). */
:is(.atelier__figs .fig__cadre, .contact__img .fig__cadre, .reportage__img, .monuments__figs .fig__cadre, .avant-apres .fig__cadre, .details .fig__cadre, .geisha__figs .fig__cadre, .serv__img, .chantier__img) img[width="397"][height="1549"] { aspect-ratio: 397 / 1549 !important; }
:is(.atelier__figs .fig__cadre, .contact__img .fig__cadre, .reportage__img, .monuments__figs .fig__cadre, .avant-apres .fig__cadre, .details .fig__cadre, .geisha__figs .fig__cadre, .serv__img, .chantier__img) img[width="400"][height="600"] { aspect-ratio: 400 / 600 !important; }
:is(.atelier__figs .fig__cadre, .contact__img .fig__cadre, .reportage__img, .monuments__figs .fig__cadre, .avant-apres .fig__cadre, .details .fig__cadre, .geisha__figs .fig__cadre, .serv__img, .chantier__img) img[width="429"][height="600"] { aspect-ratio: 429 / 600 !important; }
:is(.atelier__figs .fig__cadre, .contact__img .fig__cadre, .reportage__img, .monuments__figs .fig__cadre, .avant-apres .fig__cadre, .details .fig__cadre, .geisha__figs .fig__cadre, .serv__img, .chantier__img) img[width="443"][height="826"] { aspect-ratio: 443 / 826 !important; }
:is(.atelier__figs .fig__cadre, .contact__img .fig__cadre, .reportage__img, .monuments__figs .fig__cadre, .avant-apres .fig__cadre, .details .fig__cadre, .geisha__figs .fig__cadre, .serv__img, .chantier__img) img[width="519"][height="600"] { aspect-ratio: 519 / 600 !important; }
:is(.atelier__figs .fig__cadre, .contact__img .fig__cadre, .reportage__img, .monuments__figs .fig__cadre, .avant-apres .fig__cadre, .details .fig__cadre, .geisha__figs .fig__cadre, .serv__img, .chantier__img) img[width="550"][height="1200"] { aspect-ratio: 550 / 1200 !important; }
:is(.atelier__figs .fig__cadre, .contact__img .fig__cadre, .reportage__img, .monuments__figs .fig__cadre, .avant-apres .fig__cadre, .details .fig__cadre, .geisha__figs .fig__cadre, .serv__img, .chantier__img) img[width="778"][height="1200"] { aspect-ratio: 778 / 1200 !important; }
:is(.atelier__figs .fig__cadre, .contact__img .fig__cadre, .reportage__img, .monuments__figs .fig__cadre, .avant-apres .fig__cadre, .details .fig__cadre, .geisha__figs .fig__cadre, .serv__img, .chantier__img) img[width="782"][height="1532"] { aspect-ratio: 782 / 1532 !important; }
:is(.atelier__figs .fig__cadre, .contact__img .fig__cadre, .reportage__img, .monuments__figs .fig__cadre, .avant-apres .fig__cadre, .details .fig__cadre, .geisha__figs .fig__cadre, .serv__img, .chantier__img) img[width="788"][height="1200"] { aspect-ratio: 788 / 1200 !important; }
:is(.atelier__figs .fig__cadre, .contact__img .fig__cadre, .reportage__img, .monuments__figs .fig__cadre, .avant-apres .fig__cadre, .details .fig__cadre, .geisha__figs .fig__cadre, .serv__img, .chantier__img) img[width="808"][height="1200"] { aspect-ratio: 808 / 1200 !important; }
:is(.atelier__figs .fig__cadre, .contact__img .fig__cadre, .reportage__img, .monuments__figs .fig__cadre, .avant-apres .fig__cadre, .details .fig__cadre, .geisha__figs .fig__cadre, .serv__img, .chantier__img) img[width="829"][height="759"] { aspect-ratio: 829 / 759 !important; }
:is(.atelier__figs .fig__cadre, .contact__img .fig__cadre, .reportage__img, .monuments__figs .fig__cadre, .avant-apres .fig__cadre, .details .fig__cadre, .geisha__figs .fig__cadre, .serv__img, .chantier__img) img[width="900"][height="1200"] { aspect-ratio: 900 / 1200 !important; }
:is(.atelier__figs .fig__cadre, .contact__img .fig__cadre, .reportage__img, .monuments__figs .fig__cadre, .avant-apres .fig__cadre, .details .fig__cadre, .geisha__figs .fig__cadre, .serv__img, .chantier__img) img[width="935"][height="856"] { aspect-ratio: 935 / 856 !important; }
:is(.atelier__figs .fig__cadre, .contact__img .fig__cadre, .reportage__img, .monuments__figs .fig__cadre, .avant-apres .fig__cadre, .details .fig__cadre, .geisha__figs .fig__cadre, .serv__img, .chantier__img) img[width="936"][height="338"] { aspect-ratio: 936 / 338 !important; }
:is(.atelier__figs .fig__cadre, .contact__img .fig__cadre, .reportage__img, .monuments__figs .fig__cadre, .avant-apres .fig__cadre, .details .fig__cadre, .geisha__figs .fig__cadre, .serv__img, .chantier__img) img[width="980"][height="840"] { aspect-ratio: 980 / 840 !important; }
:is(.atelier__figs .fig__cadre, .contact__img .fig__cadre, .reportage__img, .monuments__figs .fig__cadre, .avant-apres .fig__cadre, .details .fig__cadre, .geisha__figs .fig__cadre, .serv__img, .chantier__img) img[width="980"][height="1512"] { aspect-ratio: 980 / 1512 !important; }
:is(.atelier__figs .fig__cadre, .contact__img .fig__cadre, .reportage__img, .monuments__figs .fig__cadre, .avant-apres .fig__cadre, .details .fig__cadre, .geisha__figs .fig__cadre, .serv__img, .chantier__img) img[width="1003"][height="676"] { aspect-ratio: 1003 / 676 !important; }
:is(.atelier__figs .fig__cadre, .contact__img .fig__cadre, .reportage__img, .monuments__figs .fig__cadre, .avant-apres .fig__cadre, .details .fig__cadre, .geisha__figs .fig__cadre, .serv__img, .chantier__img) img[width="1047"][height="1493"] { aspect-ratio: 1047 / 1493 !important; }
:is(.atelier__figs .fig__cadre, .contact__img .fig__cadre, .reportage__img, .monuments__figs .fig__cadre, .avant-apres .fig__cadre, .details .fig__cadre, .geisha__figs .fig__cadre, .serv__img, .chantier__img) img[width="1070"][height="988"] { aspect-ratio: 1070 / 988 !important; }
:is(.atelier__figs .fig__cadre, .contact__img .fig__cadre, .reportage__img, .monuments__figs .fig__cadre, .avant-apres .fig__cadre, .details .fig__cadre, .geisha__figs .fig__cadre, .serv__img, .chantier__img) img[width="1200"][height="1600"] { aspect-ratio: 1200 / 1600 !important; }
:is(.atelier__figs .fig__cadre, .contact__img .fig__cadre, .reportage__img, .monuments__figs .fig__cadre, .avant-apres .fig__cadre, .details .fig__cadre, .geisha__figs .fig__cadre, .serv__img, .chantier__img) img[width="1202"][height="944"] { aspect-ratio: 1202 / 944 !important; }
:is(.atelier__figs .fig__cadre, .contact__img .fig__cadre, .reportage__img, .monuments__figs .fig__cadre, .avant-apres .fig__cadre, .details .fig__cadre, .geisha__figs .fig__cadre, .serv__img, .chantier__img) img[width="1252"][height="1200"] { aspect-ratio: 1252 / 1200 !important; }
:is(.atelier__figs .fig__cadre, .contact__img .fig__cadre, .reportage__img, .monuments__figs .fig__cadre, .avant-apres .fig__cadre, .details .fig__cadre, .geisha__figs .fig__cadre, .serv__img, .chantier__img) img[width="1536"][height="1536"] { aspect-ratio: 1536 / 1536 !important; }
:is(.atelier__figs .fig__cadre, .contact__img .fig__cadre, .reportage__img, .monuments__figs .fig__cadre, .avant-apres .fig__cadre, .details .fig__cadre, .geisha__figs .fig__cadre, .serv__img, .chantier__img) img[width="1600"][height="992"] { aspect-ratio: 1600 / 992 !important; }
:is(.atelier__figs .fig__cadre, .contact__img .fig__cadre, .reportage__img, .monuments__figs .fig__cadre, .avant-apres .fig__cadre, .details .fig__cadre, .geisha__figs .fig__cadre, .serv__img, .chantier__img) img[width="1600"][height="1066"] { aspect-ratio: 1600 / 1066 !important; }
:is(.atelier__figs .fig__cadre, .contact__img .fig__cadre, .reportage__img, .monuments__figs .fig__cadre, .avant-apres .fig__cadre, .details .fig__cadre, .geisha__figs .fig__cadre, .serv__img, .chantier__img) img[width="1600"][height="1068"] { aspect-ratio: 1600 / 1068 !important; }
:is(.atelier__figs .fig__cadre, .contact__img .fig__cadre, .reportage__img, .monuments__figs .fig__cadre, .avant-apres .fig__cadre, .details .fig__cadre, .geisha__figs .fig__cadre, .serv__img, .chantier__img) img[width="1600"][height="1200"] { aspect-ratio: 1600 / 1200 !important; }
:is(.atelier__figs .fig__cadre, .contact__img .fig__cadre, .reportage__img, .monuments__figs .fig__cadre, .avant-apres .fig__cadre, .details .fig__cadre, .geisha__figs .fig__cadre, .serv__img, .chantier__img) img[width="2048"][height="2048"] { aspect-ratio: 2048 / 2048 !important; }

/*    Même défaut dans les pistes de photos sur téléphone (largeur et hauteur « auto ») : la hauteur affichée après chargement
      vaut min(60vh, 84vw × h / l) ; on la pose d'avance, image par image. */
@media (max-width: 899px) {
  figure.vue:not(.vue--paire) img[width="1200"][height="1600"] { height: min(60vh, 84vw * 1600 / 1200); }
  figure.vue:not(.vue--paire) img[width="1530"][height="2040"] { height: min(60vh, 84vw * 2040 / 1530); }
  figure.vue:not(.vue--paire) img[width="1536"][height="1536"] { height: min(60vh, 84vw * 1536 / 1536); }
  figure.vue:not(.vue--paire) img[width="1536"][height="2048"] { height: min(60vh, 84vw * 2048 / 1536); }
  figure.vue:not(.vue--paire) img[width="1600"][height="1200"] { height: min(60vh, 84vw * 1200 / 1600); }
  figure.vue:not(.vue--paire) img[width="1600"][height="1390"] { height: min(60vh, 84vw * 1390 / 1600); }
  figure.vue:not(.vue--paire) img[width="1600"][height="1600"] { height: min(60vh, 84vw * 1600 / 1600); }
  figure.vue:not(.vue--paire) img[width="1600"][height="2133"] { height: min(60vh, 84vw * 2133 / 1600); }
  figure.vue:not(.vue--paire) img[width="1600"][height="2438"] { height: min(60vh, 84vw * 2438 / 1600); }
  figure.vue:not(.vue--paire) img[width="2048"][height="2048"] { height: min(60vh, 84vw * 2048 / 2048); }
  figure.vue:not(.vue--paire) img[width="2304"][height="3072"] { height: min(60vh, 84vw * 3072 / 2304); }
  figure.vue:not(.vue--paire) img[width="2400"][height="3200"] { height: min(60vh, 84vw * 3200 / 2400); }
}
/*    Le visage de « Réparer » et la grande photo d'ouverture : même cause (largeur « auto »). La photo d'ouverture
      apparaissait d'un coup et déplaçait l'écran d'accueil (CLS 0,108 mesuré à 1 280 px). */
.restaurer__visage img, .ouverture__img img { width: 100%; }
@media (min-width: 900px) {
  .restaurer__visage img { width: min(100%, 30vw); }
  .ouverture__img img { width: min(100%, 45vw, calc((100vh - 10rem) * .75)); }
}

/* 2. Pied de page : la gouttière du site (il touchait les bords de l'écran, à 390 comme à 1 280 px). */
.pied { padding-inline: max(var(--gouttiere), calc((100% - var(--largeur)) / 2)); }

/* 3. Téléphone : un bouton « Appeler » toujours visible dans l'en-tête (le numéro y était masqué sous 900 px). */
.tete__tel-court { display: none; }
@media (max-width: 899px) {
  .js .tete .tete__tel--appel { display: inline-flex; order: 1; gap: .45rem; min-height: 44px; padding: .45rem .85rem;
    border: 1px solid var(--btn-fond); border-radius: var(--r); background: var(--btn-fond); color: var(--btn-texte);
    font-family: var(--f-texte); font-size: .95rem; font-weight: 600; }
  .js .tete .tete__tel--appel:hover { background: var(--btn-fond-survol); }
  .js .tete .tete__tel--appel::before { content: ""; flex: none; width: 1.05rem; height: 1.05rem; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.1.37 2.3.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.1.37 2.3.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat; }
  .js .tete__tel--appel .tete__tel-num { display: none; }
  .js .tete__tel--appel .tete__tel-court { display: inline; }
  .js .tete .menu { order: 2; }
  .js .tete .nav { order: 3; }
}
@media (max-width: 379px) { .js .tete .tete__tel--appel { gap: .35rem; padding: .45rem .6rem; font-size: .9rem; } }
@media (max-width: 354px) {
  .js .tete .tete__tel--appel { min-width: 44px; justify-content: center; }
  .js .tete__tel--appel .tete__tel-court { display: none; }
}

/* 4. Bloc contact : téléphone et courriel faciles à toucher (24 px de haut → 44 px). */
.coord dd a { display: inline-flex; align-items: center; min-height: 44px; }

/* 5. Petits textes : plancher relevé (« Vitraux d'art » de l'en-tête faisait 9,9 px sur téléphone). */
.faits dt, .coord dt { font-size: .78rem; }
.pl .n { font-size: .75rem; }
@media (max-width: 599px) { .marque__metier { font-size: .7rem; } }

/* ═══ 10/10/2026 — embellissement léger FLY LAB (textes, photos, couleurs et polices inchangés) ═══ */

/* 1. Téléphone : la photo du vitrail remonte dans le premier écran (elle n'apparaissait qu'après les quatre « faits »,
      à 900 px du haut ; un site de vitraux s'ouvrait sans vitrail). Les faits passent juste sous la photo. */
@media (max-width: 899px) {
  .ouverture { gap: 0; }
  .ouverture__txt { display: contents; }
  .ouverture > .ouverture__img { order: 2; margin-top: 2.25rem; }
  .ouverture .faits { order: 3; margin-top: 2.5rem; }
  .ouverture__img img { width: min(100%, 26rem); }
}

/* 2. Titres équilibrés sur leurs lignes, paragraphes sans mot orphelin (navigateurs récents ; sans effet ailleurs). */
h1, h2, h3, figcaption { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

/* 3. Pied de page au téléphone : liens plus faciles à toucher (18 px de haut → interligne aéré). */
@media (max-width: 899px) {
  .pied p { line-height: 2.1; }
  .pied a { padding-block: .35rem; }
}

/* 4. Focus clavier visible, dans le bleu de l'atelier. */
:where(a, button, summary):focus-visible { outline: 2px solid var(--titre); outline-offset: 3px; border-radius: 2px; }
