/* ==========================================================================
   Foncière de Liadi — feuille de style unique
   Couleurs et polices : celles de la charte du logo « La rue » du client.
   ========================================================================== */

/* Polices de la charte du logo, auto-hébergées (licence SIL OFL, voir assets/fonts/)
   - Libre Caslon Display : nom et grands titres
   - Jost : tout le reste */
@font-face {
  font-family: "Libre Caslon Display";
  src: url("../fonts/caslon-display-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  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;
}
@font-face {
  font-family: "Libre Caslon Display";
  src: url("../fonts/caslon-display-latin-ext.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  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;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

/* Couleurs relevées sur la planche du logo (bleu nuit, or, or clair, crème) */
:root {
  --encre: #14213d;        /* bleu nuit : texte, boutons, bandeaux */
  --texte-doux: #4a5368;   /* texte secondaire (contraste AA sur crème) */
  --accent: #14213d;       /* action principale = bleu nuit du logo */
  --accent-fonce: #0c1529;
  --or: #b08d3c;           /* or du logo : filets et détails (jamais pour du petit texte sur fond clair) */
  --or-texte: #7d5f1f;     /* or assombri pour le petit texte sur fond clair (contraste AA) */
  --or-clair: #d9b46a;     /* or clair : texte sur fond bleu nuit */
  --fond: #fffdf8;         /* crème du logo */
  --fond-pierre: #f3eee4;  /* sections alternées */
  --trait: #e3dccd;
  --nuit-profond: #0e1830;
  --blanc: #ffffff;
  --rayon: 2px;
  --largeur: 1180px;
  --gouttiere: 20px;
  --pas: clamp(64px, 9vw, 120px);
  --titres: "Libre Caslon Display", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--encre);
  background: var(--fond);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-fonce); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.bandeau-sombre :focus-visible, .pied :focus-visible { outline-color: #fff; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--titres); font-weight: 400; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h3 { font-size: 1.18rem; font-weight: 600; }
p { margin: 0 0 1em; }
.chapo { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--texte-doux); max-width: 40em; }
.surtitre {
  display: block; font-size: .8rem; font-weight: 500; letter-spacing: .28em;
  text-transform: uppercase; color: var(--or-texte); margin-bottom: 1.1rem;
}

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }
.section { padding: var(--pas) 0; }
.section--pierre { background: var(--fond-pierre); }
.lien-evitement {
  position: absolute; left: -9999px; top: 0; background: var(--encre); color: #fff; padding: 12px 16px; z-index: 100;
}
.lien-evitement:focus { left: 12px; top: 12px; }

/* Marqueur des informations manquantes : bien visible tant que non complété */
.a-completer { background: #fff3c4; color: #5c4400; padding: 0 .25em; border-radius: 2px; font-weight: 600; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 24px; border-radius: var(--rayon);
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--accent); background: var(--accent); color: #fff;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--accent-fonce); border-color: var(--accent-fonce); color: #fff; }
.btn--contour { background: transparent; color: var(--accent); }
.btn--contour:hover { background: var(--accent); color: #fff; }
.btn--clair { background: #fff; border-color: #fff; color: var(--encre); }
.btn--clair:hover { background: var(--fond-pierre); border-color: var(--fond-pierre); color: var(--encre); }
.btn--clair-contour { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn--clair-contour:hover { background: #fff; color: var(--encre); border-color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50; background: rgba(255,253,248,.97);
  border-bottom: 1px solid var(--trait);
}
.entete__ligne { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; }
/* Logo (reconstitution SVG provisoire, voir outils/generer-logo.py) */
.logo { display: inline-block; line-height: 0; }
.logo img { height: 54px; width: auto; }
@media (min-width: 980px) { .logo img { height: 64px; } }

.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 10px 12px; text-decoration: none; color: var(--encre); font-weight: 500; font-size: .96rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--or); }
.entete__tel { display: none; }

.menu-bouton {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  background: none; border: 1.5px solid var(--trait); border-radius: var(--rayon); font: inherit; font-weight: 600; color: var(--encre); cursor: pointer;
}
.menu-bouton span { display: block; width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
.nav-mobile { border-top: 1px solid var(--trait); padding: 8px 0 20px; }
.nav-mobile[hidden] { display: none; }
.nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile a { display: block; padding: 14px 0; border-bottom: 1px solid var(--trait); text-decoration: none; color: var(--encre); font-weight: 500; font-size: 1.05rem; }
.nav-mobile a[aria-current="page"] { color: var(--accent); font-weight: 650; }

@media (min-width: 980px) {
  .nav { display: block; }
  .menu-bouton, .nav-mobile { display: none !important; }
  .entete__tel { display: inline-flex; min-height: 44px; padding: 10px 18px; }
}

/* ---------- Héros ---------- */

/* En-tête de page intérieure */
.tete-page { background: var(--fond-pierre); padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--trait); }
.tete-page h1 { font-size: clamp(2rem, 4.4vw, 3rem); max-width: 18em; }
.fil { font-size: .88rem; color: var(--texte-doux); margin-bottom: 1.4rem; }
.fil ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fil li + li::before { content: "/"; margin-right: 6px; color: var(--trait); }
.fil a { color: var(--texte-doux); }

/* ---------- Blocs photo + texte en alternance ---------- */
.duo { display: grid; gap: 32px; align-items: center; }
.duo + .duo { margin-top: var(--pas); }
.duo__photo { position: relative; }
.duo__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); }
.duo__photo--haut img { aspect-ratio: 4 / 5; }
.duo__texte h2 { margin-bottom: .6em; }
@media (min-width: 900px) {
  .duo { grid-template-columns: 1fr 1fr; gap: 72px; }
  .duo--inverse .duo__photo { order: 2; }
}

.liste-traits { list-style: none; margin: 1.4rem 0 1.8rem; padding: 0; border-top: 1px solid var(--trait); }
.liste-traits li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--trait); position: relative; }
.liste-traits li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 12px; height: 2px; background: var(--or); }
.liste-traits strong { font-weight: 650; }

/* ---------- Étapes numérotées ---------- */
.etapes { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 0; counter-reset: etape; border-top: 1px solid var(--trait); }
.etapes li { counter-increment: etape; display: grid; align-content: start; grid-template-columns: 64px 1fr; gap: 8px 20px; padding: 28px 0; border-bottom: 1px solid var(--trait); }
.etapes li::before { content: counter(etape, decimal-leading-zero); font-family: var(--titres); font-size: 2rem; color: var(--or-texte); line-height: 1.1; font-variant-numeric: tabular-nums; }
.etapes h3 { margin-bottom: .3em; }
.etapes p { margin: 0; color: var(--texte-doux); }
@media (min-width: 900px) {
  .etapes { grid-template-columns: repeat(5, 1fr); border-top: 0; gap: 28px; }
  .etapes li { grid-template-columns: 1fr; border-bottom: 0; border-top: 2px solid var(--or); padding: 20px 0 0; }
}

/* ---------- Zones d'intervention ---------- */

/* ---------- Bandeau sombre ---------- */
.bandeau-sombre { background: var(--encre); color: #e8ebee; }
.bandeau-sombre h2, .bandeau-sombre h3 { color: #fff; }
.bandeau-sombre .chapo { color: #c5cbd8; }
.bandeau-sombre .surtitre { color: var(--or-clair); }
.bandeau-sombre a:not(.btn) { color: #fff; }
.engagements { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid rgba(255,255,255,.16); }
.engagements > div { padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.engagements p { margin: 0; color: #c3cad1; }
@media (min-width: 900px) {
  .engagements { grid-template-columns: repeat(3, 1fr); gap: 48px; border-top: 0; }
  .engagements > div { border-bottom: 0; border-top: 1px solid var(--or); }
}

/* ---------- Dossier à préparer (liste à cocher) ---------- */
.dossier { display: grid; gap: 40px; }

@media (min-width: 900px) { .dossier { grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: start; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-top: 40px; border-top: 1px solid var(--trait); }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-weight: 600; font-size: 1.08rem; position: relative; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.6rem; font-weight: 300; color: var(--or-texte); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 22px; color: var(--texte-doux); max-width: 46em; }

/* ---------- Appel final ---------- */
.appel { text-align: left; }
.appel__grille { display: grid; gap: 28px; align-items: end; }

@media (min-width: 900px) { .appel__grille { grid-template-columns: 1.4fr 1fr; } .appel .actions { justify-content: flex-end; } }

/* ---------- Opérations / galerie ---------- */

/* ---------- Contact ---------- */
.contact-grille { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact-grille { grid-template-columns: 1fr 1.2fr; gap: 72px; } }
.coordonnees { margin: 0; }
.coordonnees div { padding: 18px 0; border-bottom: 1px solid var(--trait); }
.coordonnees dt { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--or-texte); }
.coordonnees dd { margin: 4px 0 0; font-size: 1.08rem; }
.coordonnees .gros { font-family: var(--titres); font-size: 1.7rem; }

.formulaire { background: var(--fond-pierre); padding: 28px 20px; border-radius: var(--rayon); }
@media (min-width: 600px) { .formulaire { padding: 40px; } }
.champ { margin-bottom: 18px; }
.champ label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.champ .aide { font-weight: 400; color: var(--texte-doux); }
.champ input, .champ select, .champ textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; min-height: 48px;
  border: 1.5px solid #bdb4a2; border-radius: var(--rayon); background: #fff; color: var(--encre);
}
.champ textarea { min-height: 140px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.champ [aria-invalid="true"] { border-color: #a4161a; }
.erreur-champ { color: #a4161a; font-size: .9rem; margin-top: 4px; }
.deux-col { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .deux-col { grid-template-columns: 1fr 1fr; } }
.champ .consentement, .consentement { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--texte-doux); margin: 8px 0 22px; }
.consentement input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.piege { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.message-form { margin-top: 16px; padding: 14px 16px; border-radius: var(--rayon); font-weight: 500; }
.message-form[hidden] { display: none; }
.message-form--ok { background: #e3f1e7; color: #14532d; }
.message-form--ko { background: #fbe9e9; color: #7f1d1d; }

/* ---------- Pages légales ---------- */
.texte-long { max-width: 780px; }
.texte-long h2 { font-size: 1.7rem; margin-top: 2em; }
.texte-long ul { padding-left: 1.2em; }

/* ---------- Pied de page ---------- */
.pied { background: var(--nuit-profond); color: #c5cbd8; padding: 64px 0 120px; font-size: .95rem; }
.pied a { color: #e8ebee; }
.pied__grille { display: grid; gap: 36px; }
.pied .logo img { height: 84px; }
.pied h2 { font-family: inherit; font-size: .78rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--or-clair); margin-bottom: 1rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 8px; }
.pied__bas { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: .88rem; }
@media (min-width: 900px) { .pied { padding-bottom: 40px; } .pied__grille { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Barre d'action fixe sur téléphone ---------- */
.barre-mobile {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--fond); border-top: 1px solid var(--trait);
}
.barre-mobile .btn { width: 100%; padding: 10px 12px; }
@media (min-width: 980px) { .barre-mobile { display: none; } }

/* ---------- Apparition légère au défilement (une seule fois) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .apparait { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
  .js .apparait.visible { opacity: 1; transform: none; }
}

/* ---------- Petites classes utilitaires (pas de style en ligne : CSP stricte) ---------- */
.pied__accroche { margin-top: 20px; max-width: 24em; }
.duo__logo { background: var(--fond-pierre); padding: clamp(28px, 6vw, 64px); border-radius: var(--rayon); }
.duo__logo img { aspect-ratio: auto !important; object-fit: contain !important; }

.formulaire__titre { font-size: 1.9rem; }
.texte-doux { color: var(--texte-doux); }
.tete-page--404 { min-height: 50vh; }
.liste-courte { max-width: 520px; }

/* ==========================================================================
   Effets de verre et de transparence (légers)
   Appliqués seulement si le navigateur sait flouter l'arrière-plan ;
   sinon, fonds pleins équivalents (lisibilité garantie).
   ========================================================================== */
:root {
  --verre-clair: rgba(255, 253, 248, .72);
  --verre-sombre: rgba(255, 255, 255, .07);
  --verre-bord: rgba(255, 255, 255, .55);
  --verre-flou: saturate(160%) blur(14px);
}

/* Étiquette translucide posée sur une photo */

/* Sommaire des zones (page Nos sites), collé sous l'en-tête */
.sommaire-verre {
  position: sticky; top: 92px; z-index: 20; display: flex; flex-wrap: wrap; gap: 6px; width: fit-content; max-width: 100%;
  padding: 6px; margin-bottom: 48px; border-radius: 3px; background: var(--fond-pierre); border: 1px solid var(--trait);
}
.sommaire-verre a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; text-decoration: none; color: var(--encre); font-weight: 500; border-radius: 2px; }
.sommaire-verre a:hover { background: rgba(20,33,61,.07); }

/* Frise chronologique (page Notre histoire) */

/* Bandeau sombre sur photo : voile bleu nuit + cartes en verre */
.bandeau-sombre--photo {
  background-color: var(--encre);
  background-image: linear-gradient(rgba(20,33,61,.9), rgba(20,33,61,.9)), url("../img/paris-toits-1600.webp");
  background-size: cover; background-position: center 30%;
}
.bandeau-sombre--photo .engagements { gap: 16px; border-top: 0; }
.bandeau-sombre--photo .engagements > div {
  padding: 28px 24px; border: 1px solid rgba(255,255,255,.14); border-top: 1px solid var(--or);
  background: rgba(255,255,255,.06); border-radius: 3px;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .entete { background: var(--verre-clair); -webkit-backdrop-filter: var(--verre-flou); backdrop-filter: var(--verre-flou); border-bottom-color: rgba(227,220,205,.7); }
  .barre-mobile { background: var(--verre-clair); -webkit-backdrop-filter: var(--verre-flou); backdrop-filter: var(--verre-flou); }
  
  
  .sommaire-verre { background: rgba(243,238,228,.7); -webkit-backdrop-filter: var(--verre-flou); backdrop-filter: var(--verre-flou); }
  .bandeau-sombre--photo .engagements > div { background: var(--verre-sombre); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .formulaire { background: rgba(243,238,228,.8); border: 1px solid rgba(255,255,255,.7); }
}

/* ==========================================================================
   Blocs « métier » (inspirés des usages des foncières)
   ========================================================================== */

/* Chiffres clés sous le héros (uniquement des valeurs vérifiables) */

/* Liste des quatre domaines (liens vers les ancres) */
.domaines-liste { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--encre); }
.domaines-liste a {
  display: grid; grid-template-columns: 48px 1fr 24px; gap: 16px; align-items: start;
  padding: 26px 0; border-bottom: 1px solid var(--trait); text-decoration: none; color: var(--encre);
}
.domaines-liste__num { font-family: var(--titres); font-size: 1.5rem; color: var(--or-texte); line-height: 1.1; }
.domaines-liste strong { display: block; font-family: var(--titres); font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.15; }
.domaines-liste small { display: block; margin-top: 6px; font-size: 1rem; color: var(--texte-doux); max-width: 40em; }
.domaines-liste__fleche { font-size: 1.3rem; color: var(--or-texte); transition: transform .2s ease; }
.domaines-liste a:hover strong { color: var(--accent-fonce); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
@media (prefers-reduced-motion: no-preference) { .domaines-liste a:hover .domaines-liste__fleche { transform: translateX(4px); } }
@media (min-width: 900px) { .domaines-liste a { grid-template-columns: 90px 1fr 32px; padding: 32px 0; } }

/* Situations des vendeurs */
.vendeurs { display: grid; gap: 40px; }
.situations { display: grid; gap: 0 40px; border-top: 1px solid var(--trait); }
.situations > div { padding: 22px 0; border-bottom: 1px solid var(--trait); }
.situations h3 { margin-bottom: .25em; }
.situations p { margin: 0; color: var(--texte-doux); }
@media (min-width: 700px) { .situations { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .vendeurs { grid-template-columns: 1fr 1.5fr; gap: 72px; } .vendeurs__tete { position: sticky; top: 120px; align-self: start; } }

/* Critères d'acquisition */
.criteres { margin: 0; background: var(--fond); border: 1px solid var(--trait); border-radius: var(--rayon); }
.criteres > div { display: grid; gap: 4px 24px; padding: 18px 22px; border-bottom: 1px solid var(--trait); }
.criteres > div:last-child { border-bottom: 0; }
.criteres dt { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--or-texte); padding-top: 3px; }
.criteres dd { margin: 0; }
@media (min-width: 600px) { .criteres > div { grid-template-columns: 170px 1fr; } }

/* Engagements sur 2 rangées */
@media (min-width: 900px) { .engagements--6 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 600px) and (max-width: 899px) { .bandeau-sombre--photo .engagements--6 { grid-template-columns: 1fr 1fr; } }

/* Fiche d'un site (surface, lots, opération) */

/* Équipe */

/* ==========================================================================
   Version institutionnelle : héros plein cadre, bandeaux photo, éditorial
   ========================================================================== */
.a-completer { background: none; color: var(--texte-doux); font-weight: 400; font-style: italic; padding: 0; }

/* Héros plein cadre (accueil) */
.heros-plein { position: relative; min-height: min(86vh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--encre); }
.heros-plein__photo, .heros-plein__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.heros-plein__photo img { object-fit: cover; object-position: center 45%; }
.heros-plein__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(14,24,48,.92) 0%, rgba(14,24,48,.55) 55%, rgba(14,24,48,.25) 100%);
}
.heros-plein__contenu { position: relative; z-index: 1; padding-top: 120px; padding-bottom: clamp(48px, 8vw, 96px); }
.heros-plein h1 { color: #fff; max-width: 15em; font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
.heros-plein .surtitre { color: var(--or-clair); }
.heros-plein .chapo { color: #e6e9ef; margin-bottom: 2rem; max-width: 34em; }
@media (min-width: 900px) {
  .heros-plein__photo::after { background: linear-gradient(90deg, rgba(14,24,48,.9) 0%, rgba(14,24,48,.62) 42%, rgba(14,24,48,.12) 100%); }
  .heros-plein { align-items: center; }
}

/* Faits clés sous le héros (sans chiffres non vérifiables) */
.faits { background: var(--fond); border-bottom: 1px solid var(--trait); }
.faits__grille { display: grid; grid-template-columns: 1fr 1fr; }
.faits__grille > div { padding: 26px 16px 26px 0; border-bottom: 1px solid var(--trait); }
.faits__libelle { display: block; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--or-texte); font-weight: 500; }
.faits__valeur { display: block; margin-top: 8px; font-family: var(--titres); font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.25; }
@media (min-width: 900px) {
  .faits__grille { grid-template-columns: repeat(4, 1fr); }
  .faits__grille > div { border-bottom: 0; border-left: 1px solid var(--trait); padding: 34px 28px; }
  .faits__grille > div:first-child { border-left: 0; padding-left: 0; }
}

/* Texte éditorial */
.edito { font-family: var(--titres); font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.22; color: var(--encre); margin-bottom: .9em; }
@media (min-width: 900px) { .duo--edito { grid-template-columns: 1.15fr .85fr; } }
.duo__photo--haut img { aspect-ratio: 4 / 5; }
.lien-fleche { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; color: var(--encre); text-decoration: none; border-bottom: 1px solid var(--or); }
.lien-fleche span { color: var(--or-texte); transition: transform .2s ease; }
@media (prefers-reduced-motion: no-preference) { .lien-fleche:hover span { transform: translateX(4px); } }

.entete-section { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; }
.entete-section h2 { margin-bottom: 0; }

/* Territoires (accueil) */
.territoires { display: grid; gap: 16px; margin-top: 40px; }
.territoire { position: relative; display: block; overflow: hidden; border-radius: var(--rayon); color: #fff; text-decoration: none; }
.territoire img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s ease; }
.territoire::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,24,48,.75) 0%, rgba(14,24,48,0) 55%); }
.territoire__nom {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; padding: 14px 18px;
  font-family: var(--titres); font-size: 1.6rem; color: #fff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); border-radius: 2px;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .territoire__nom { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
@media (prefers-reduced-motion: no-preference) { .territoire:hover img { transform: scale(1.03); } }
.territoire:hover { color: #fff; }
@media (min-width: 900px) { .territoires { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* En-tête de page avec photo plein cadre */
.tete-page--photo { position: relative; overflow: hidden; background: var(--encre); color: #fff; border-bottom: 0; padding: clamp(110px, 16vw, 200px) 0 clamp(44px, 6vw, 72px); }
.tete-page__photo, .tete-page__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tete-page__photo img { object-fit: cover; object-position: center 45%; }
.tete-page__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,24,48,.9) 0%, rgba(14,24,48,.5) 60%, rgba(14,24,48,.3) 100%); }
.tete-page__contenu { position: relative; z-index: 1; }
.tete-page--photo h1 { color: #fff; }
.tete-page--photo .chapo { color: #e6e9ef; }
.tete-page--photo .surtitre { color: var(--or-clair); }
.tete-page--photo .fil, .tete-page--photo .fil a { color: #d5dae3; }

/* Pages « Nos sites » */
.sommaire-verre--haut { margin: 32px 0 0; }
.territoire-bloc + .territoire-bloc { padding-top: 0; }
.territoire-bloc__grille { display: grid; gap: 32px; }
.galerie { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.galerie__item { margin: 0; }
.galerie__item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--rayon); }
@media (min-width: 900px) { .territoire-bloc__grille { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; } .galerie { gap: 20px; } }

/* Principes (Notre histoire) */
.principes { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--trait); }
.principes > div { padding: 28px 0; border-bottom: 1px solid var(--trait); }
.principes__num { display: block; font-family: var(--titres); font-size: 1.8rem; color: var(--or-texte); margin-bottom: 10px; }
.principes p { color: var(--texte-doux); margin: 0; }
@media (min-width: 900px) { .principes { grid-template-columns: repeat(3, 1fr); gap: 48px; border-top: 0; } .principes > div { border-bottom: 0; border-top: 1px solid var(--or); } }
.bandeau-photo img { width: 100%; height: clamp(240px, 38vw, 520px); object-fit: cover; display: block; }

/* Pièces du dossier (liste statique) */
.pieces { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--encre); }
.pieces li { display: grid; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--trait); }
.pieces strong { font-weight: 600; }
.pieces span { color: var(--texte-doux); }
@media (min-width: 600px) { .pieces li { grid-template-columns: 200px 1fr; } }
.insecable { white-space: nowrap; }

/* ==========================================================================
   Échelle resserrée (demande : « plus pro, pas plus grand »)
   Typographie et espacements plus mesurés, photos moins dominantes.
   ========================================================================== */
:root { --pas: clamp(56px, 7vw, 96px); }
body { font-size: 16.5px; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.12; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.05rem; }
.chapo { font-size: clamp(1rem, 1.3vw, 1.12rem); }
.surtitre { font-size: .74rem; margin-bottom: .8rem; }

.heros-plein { min-height: min(64vh, 600px); }
.heros-plein h1 { font-size: clamp(2rem, 3.8vw, 3.1rem); max-width: 17em; }
.heros-plein__contenu { padding-top: 96px; padding-bottom: clamp(40px, 6vw, 72px); }

.tete-page--photo { padding: clamp(80px, 10vw, 130px) 0 clamp(36px, 4.5vw, 56px); }
.tete-page h1, .tete-page--photo h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

.edito { font-size: clamp(1.35rem, 2.1vw, 1.75rem); }
.faits__valeur { font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.faits__grille > div { padding-top: 22px; padding-bottom: 22px; }
@media (min-width: 900px) { .faits__grille > div { padding-top: 26px; padding-bottom: 26px; } }

.duo { gap: 28px; }
@media (min-width: 900px) { .duo { gap: 64px; } .duo--edito { grid-template-columns: 1.3fr .7fr; } }
.duo__photo img, .duo__photo--haut img { aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .duo__photo--haut img { aspect-ratio: 4 / 4.4; } }

.domaines-liste strong { font-size: clamp(1.2rem, 1.9vw, 1.5rem); }
.domaines-liste a { padding: 20px 0; }
@media (min-width: 900px) { .domaines-liste a { padding: 24px 0; } }
.domaines-liste__num, .principes__num { font-size: 1.25rem; }
.etapes li::before { font-size: 1.5rem; }

.territoire img { aspect-ratio: 4 / 3; }
.territoire__nom { font-size: 1.25rem; padding: 10px 14px; }
.galerie__item img { aspect-ratio: 4 / 5; }
.bandeau-photo img { height: clamp(200px, 26vw, 360px); }
.appel__grille h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.logo img { height: 50px; }
@media (min-width: 980px) { .logo img { height: 58px; } }
.entete__ligne { min-height: 72px; }
.btn { min-height: 46px; padding: 11px 22px; font-size: .95rem; }

/* ==========================================================================
   Finition « premium » : motif des travées du logo, en-tête transparent,
   petites capitales, filets d'or, cadres décalés
   ========================================================================== */

/* Petites capitales espacées pour la navigation et les boutons */
.nav a { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; padding: 10px 14px; }
.btn { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; padding: 13px 26px; border-radius: 0; }
.menu-bouton { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; border-radius: 0; }
.lien-fleche { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; }

/* Surtitre précédé d'un filet d'or */
.surtitre { display: flex; align-items: center; gap: 14px; }
.surtitre::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .9; flex: none; }

/* Motif des cinq travées de « La rue » sur les grandes photos (filets très discrets) */
.travees {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: linear-gradient(90deg, transparent calc(20% - .5px), rgba(217,180,106,.15) calc(20% - .5px), rgba(217,180,106,.15) calc(20% + .5px), transparent calc(20% + .5px),
                                            transparent calc(40% - .5px), rgba(217,180,106,.15) calc(40% - .5px), rgba(217,180,106,.15) calc(40% + .5px), transparent calc(40% + .5px),
                                            transparent calc(60% - .5px), rgba(217,180,106,.15) calc(60% - .5px), rgba(217,180,106,.15) calc(60% + .5px), transparent calc(60% + .5px),
                                            transparent calc(80% - .5px), rgba(217,180,106,.15) calc(80% - .5px), rgba(217,180,106,.15) calc(80% + .5px), transparent calc(80% + .5px));
  border-top: 1px solid rgba(217,180,106,.35);
}
.heros-plein__contenu, .tete-page__contenu { z-index: 2; }
@media (max-width: 699px) { .travees { display: none; } }

/* En-tête transparent posé sur la photo, qui reprend son fond au défilement */
.entete--sur-photo { position: fixed; left: 0; right: 0; top: 0; background: transparent; border-bottom-color: rgba(255,255,255,.18);
  -webkit-backdrop-filter: none; backdrop-filter: none; transition: background-color .3s ease, border-color .3s ease; }
.entete--sur-photo:not(.entete--plein) .nav a { color: #fff; }
.entete--sur-photo:not(.entete--plein) .nav a[aria-current="page"] { border-bottom-color: var(--or-clair); }
.entete--sur-photo:not(.entete--plein) .entete__tel { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.entete--sur-photo:not(.entete--plein) .entete__tel:hover { background: #fff; color: var(--encre); }
.entete--sur-photo:not(.entete--plein) .menu-bouton { color: #fff; border-color: rgba(255,255,255,.5); }
.logo .logo__clair { display: none; }
.entete--sur-photo:not(.entete--plein) .logo__sombre { display: none; }
.entete--sur-photo:not(.entete--plein) .logo__clair { display: block; }
.entete--sur-photo.entete--plein { background: var(--verre-clair); border-bottom-color: rgba(227,220,205,.7);
  -webkit-backdrop-filter: var(--verre-flou); backdrop-filter: var(--verre-flou); }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .entete--sur-photo.entete--plein { background: var(--fond); } }
.entete--sur-photo ~ main .heros-plein__contenu { padding-top: 140px; }
.entete--sur-photo ~ main .tete-page--photo { padding-top: clamp(130px, 14vw, 190px); }
.heros-plein { min-height: min(72vh, 680px); }

/* Faits clés en continuité du héros, sur bleu nuit */
.faits { background: var(--nuit-profond); border-bottom: 0; color: #e6e9ef; }
.faits__grille > div { border-color: rgba(255,255,255,.12); }
.faits__libelle { color: var(--or-clair); }
.faits__valeur { color: #fff; }

/* Cadre d'or décalé derrière les photos éditoriales */
.duo__photo:not(.duo__logo) { position: relative; isolation: isolate; }
.duo__photo:not(.duo__logo)::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--or); z-index: -1; }
.duo--inverse .duo__photo:not(.duo__logo)::before { inset: 14px 14px -14px -14px; }
.duo__photo img, .galerie__item img, .territoire, .territoire img { border-radius: 0; }
@media (max-width: 699px) { .duo__photo:not(.duo__logo)::before { inset: 10px -8px -10px 10px; } .duo--inverse .duo__photo:not(.duo__logo)::before { inset: 10px 10px -10px -8px; } }

/* Domaines : survol en filet d'or */
.domaines-liste a { position: relative; transition: padding-left .3s ease; }
.domaines-liste a::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 0; height: 1px; background: var(--or); transition: width .4s ease; }
.domaines-liste a:hover::after { width: 100%; }
@media (prefers-reduced-motion: reduce) { .domaines-liste a, .domaines-liste a::after { transition: none; } }

/* Territoires : libellé plus fin */
.territoire__nom { font-size: 1.15rem; letter-spacing: .02em; left: 14px; right: auto; bottom: 14px; padding: 9px 16px; border-color: rgba(217,180,106,.55); }

/* Engagements et étapes : filet d'or haut, angles vifs */
.bandeau-sombre--photo .engagements > div { border-radius: 0; }
.formulaire, .criteres, .sommaire-verre, .sommaire-verre a { border-radius: 0; }
.champ input, .champ select, .champ textarea { border-radius: 0; }

/* Pied de page : filet « rue » (barre bleu nuit + filet d'or) en haut, comme le logo */
.pied { border-top: 6px solid var(--encre); box-shadow: inset 0 1px 0 var(--or); }
/* Menu mobile ouvert : fond plein et marges latérales */
.nav-mobile { padding: 8px var(--gouttiere) 20px; }
.nav-mobile a { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.entete--sur-photo.entete--menu, .entete--menu { background: var(--fond); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Faits clés intégrés au héros (verre posé sur la photo) */
.heros-plein .faits { margin-top: 40px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: 22px; color: #fff; }
.heros-plein .faits__grille > div { padding: 18px 20px; border-color: rgba(255,255,255,.14); }
@media (min-width: 900px) { .heros-plein .faits__grille > div { padding: 22px 26px; } .heros-plein .faits__grille > div:first-child { padding-left: 26px; } }
@media (max-width: 899px) { .heros-plein .faits__grille > div:nth-child(2n) { border-left: 1px solid rgba(255,255,255,.14); } .heros-plein .faits__grille > div:nth-last-child(-n+2) { border-bottom: 0; } }
.btn--verre { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.45); color: #fff; }
.btn--verre:hover { background: rgba(255,255,255,.24); color: #fff; border-color: rgba(255,255,255,.7); }

/* ==========================================================================
   Verre « Liquid Glass » (inspiration iOS 26)
   Flou fort + saturation, reflet lumineux sur le bord haut, liseré clair,
   ombre neutre très douce, formes en gélule. Repli : fonds pleins.
   ========================================================================== */
:root {
  --lg-flou: blur(22px) saturate(190%);
  --lg-clair: linear-gradient(135deg, rgba(255,255,255,.74), rgba(255,253,248,.52));
  --lg-sombre: linear-gradient(135deg, rgba(255,255,255,.20), rgba(255,255,255,.06));
  --lg-reflet: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -1px 0 rgba(255,255,255,.18), inset 0 0 0 1px rgba(255,255,255,.22);
  --lg-ombre: 0 10px 34px rgba(14,24,48,.16), 0 2px 6px rgba(14,24,48,.08);
  --capsule: 999px;
}

/* Boutons en gélule */
.btn, .menu-bouton { border-radius: var(--capsule); }
.btn--verre, .btn--clair-contour { background: var(--lg-sombre); border-color: rgba(255,255,255,.4); box-shadow: var(--lg-reflet); }

/* En-tête flottant en verre */
.entete, .entete--sur-photo {
  position: fixed; top: 12px; left: 12px; right: 12px; margin: 0 auto; max-width: calc(var(--largeur) + 24px);
  border: 0; border-radius: 22px; background: var(--fond); box-shadow: var(--lg-ombre);
}
.entete .conteneur { padding: 0 18px; }
.entete__ligne { min-height: 64px; }
.logo img { height: 46px; }
@media (min-width: 980px) { .logo img { height: 50px; } .entete .conteneur { padding: 0 22px; } }
.entete--sur-photo:not(.entete--plein) { box-shadow: var(--lg-reflet); }
.nav-mobile { border-top: 1px solid rgba(20,33,61,.08); border-radius: 0 0 22px 22px; }
body { padding-top: 0; }
.tete-page:not(.tete-page--photo) { padding-top: clamp(120px, 12vw, 150px); }
.entete--sur-photo ~ main .heros-plein__contenu { padding-top: 130px; }

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .entete, .entete--sur-photo.entete--plein, .entete--menu {
    background: var(--lg-clair); -webkit-backdrop-filter: var(--lg-flou); backdrop-filter: var(--lg-flou);
    box-shadow: var(--lg-reflet), var(--lg-ombre);
  }
  .entete--sur-photo:not(.entete--plein):not(.entete--menu) {
    background: var(--lg-sombre); -webkit-backdrop-filter: var(--lg-flou); backdrop-filter: var(--lg-flou);
  }
  .btn--verre, .btn--clair-contour { -webkit-backdrop-filter: var(--lg-flou); backdrop-filter: var(--lg-flou); }

  /* Faits clés : grand panneau de verre sur la photo du héros */
  .heros-plein .faits { background: var(--lg-sombre); -webkit-backdrop-filter: var(--lg-flou); backdrop-filter: var(--lg-flou); box-shadow: var(--lg-reflet); border-color: rgba(255,255,255,.18); }

  /* Barre d'action mobile flottante */
  .barre-mobile { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 8px; border: 0; border-radius: var(--capsule);
    background: var(--lg-clair); -webkit-backdrop-filter: var(--lg-flou); backdrop-filter: var(--lg-flou); box-shadow: var(--lg-reflet), var(--lg-ombre); }

  /* Sommaire en contrôle segmenté de verre */
  .sommaire-verre { border-radius: var(--capsule); border: 0; padding: 5px; background: var(--lg-clair); -webkit-backdrop-filter: var(--lg-flou); backdrop-filter: var(--lg-flou); box-shadow: var(--lg-reflet), 0 4px 18px rgba(14,24,48,.08); }
  .sommaire-verre a { border-radius: var(--capsule); }
  .sommaire-verre a:hover { background: rgba(20,33,61,.07); }

  /* Noms des territoires et cartes d'engagements */
  .territoire__nom { border-radius: var(--capsule); border: 0; background: var(--lg-sombre); -webkit-backdrop-filter: var(--lg-flou); backdrop-filter: var(--lg-flou); box-shadow: var(--lg-reflet); }
  .bandeau-sombre--photo .engagements > div { border-radius: 22px; border: 0; background: var(--lg-sombre); -webkit-backdrop-filter: var(--lg-flou); backdrop-filter: var(--lg-flou); box-shadow: var(--lg-reflet); }
  .formulaire { border-radius: 26px; border: 0; background: var(--lg-clair); box-shadow: var(--lg-reflet), 0 8px 30px rgba(14,24,48,.07); }
}
@media (max-width: 979px) { .barre-mobile .btn { min-height: 44px; } }
@media (min-width: 980px) { .barre-mobile { display: none; } }
.sommaire-verre { top: 92px; }

/* Encarts photo plus soignés : arrondis doux et cohérents */
.territoire, .galerie__item img, .duo__photo img { border-radius: 14px; }
.duo__photo:not(.duo__logo)::before { border-radius: 16px; }
.duo__logo { border-radius: 22px; }
.champ input, .champ select, .champ textarea { border-radius: 12px; }
.criteres { border-radius: 18px; overflow: hidden; }

/* ==========================================================================
   Classes d'actifs : grille de six photos avec légende en verre
   ========================================================================== */
.classes { display: grid; gap: 16px; margin-top: 36px; }
.classe { position: relative; overflow: hidden; border-radius: 18px; isolation: isolate; background: var(--encre); }
.classe img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.classe::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,24,48,.78) 0%, rgba(14,24,48,.05) 55%); z-index: 0; }
.classe__verre {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; padding: 16px 18px 18px; border-radius: 16px; color: #fff;
  background: rgba(20,33,61,.55); box-shadow: var(--lg-reflet);
}
.classe__num { display: block; font-family: var(--titres); font-size: .95rem; color: var(--or-clair); margin-bottom: 4px; }
.classe h3 { font-family: var(--titres); font-weight: 400; font-size: 1.35rem; margin: 0 0 4px; color: #fff; }
.classe p { margin: 0; font-size: .9rem; line-height: 1.45; color: #dfe3ea; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .classe__verre { background: var(--lg-sombre); -webkit-backdrop-filter: var(--lg-flou); backdrop-filter: var(--lg-flou); }
}
@media (prefers-reduced-motion: no-preference) { .classe:hover img { transform: scale(1.04); } }
@media (min-width: 600px) { .classes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .classes { grid-template-columns: repeat(3, 1fr); gap: 22px; } .classe img { aspect-ratio: 4 / 4.6; } }

/* Photos éditoriales : passe-partout intérieur (fin liseré clair) à la place du cadre décalé */
.duo__photo:not(.duo__logo)::before { content: none; }
.duo__photo:not(.duo__logo) { overflow: hidden; border-radius: 18px; }
.duo__photo:not(.duo__logo) img { border-radius: 18px; }
.duo__photo:not(.duo__logo)::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.55); border-radius: 10px; pointer-events: none; }
.galerie__item { position: relative; }
.galerie__item img { border-radius: 16px; }
.territoire { border-radius: 18px; }

/* Sommaire de page : plus de position collante (ne masque plus les photos) */
.sommaire-verre { position: static; margin-bottom: 56px; }
@media (max-width: 599px) { .classe img { aspect-ratio: 4 / 3.4; } }
/* En-tête sur photo : verre légèrement teinté bleu nuit (reste dans la charte même sur un ciel bleu) */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .entete--sur-photo:not(.entete--plein):not(.entete--menu) { background: linear-gradient(135deg, rgba(14,24,48,.42), rgba(14,24,48,.22)); }
}

/* Bandeaux des pages : photos nettes, voile léger côté texte seulement */
.tete-page__photo::after {
  background: linear-gradient(90deg, rgba(14,24,48,.82) 0%, rgba(14,24,48,.55) 38%, rgba(14,24,48,.12) 75%, rgba(14,24,48,0) 100%),
              linear-gradient(0deg, rgba(14,24,48,.35) 0%, rgba(14,24,48,0) 40%);
}
@media (max-width: 899px) { .tete-page__photo::after { background: linear-gradient(0deg, rgba(14,24,48,.85) 0%, rgba(14,24,48,.5) 55%, rgba(14,24,48,.3) 100%); } }
.tete-page__photo--commerces img { object-position: 70% 22%; }
.tete-page__photo--paris-facade img { object-position: center 30%; }
.tete-page__photo--haussmann img { object-position: 80% 40%; }
.tete-page--photo { min-height: 440px; display: flex; align-items: flex-end; }
@media (min-width: 900px) { .tete-page--photo { min-height: 480px; } }
.tete-page__photo--paris-rue img { object-position: center 35%; }

/* ==========================================================================
   Encarts flottants en verre posés à cheval sur le bord des photos
   ========================================================================== */
.duo__photo--badges { overflow: visible; }
.badge {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; max-width: 250px;
  padding: 12px 18px 12px 12px; border-radius: 18px; color: var(--encre);
  background: rgba(255,253,248,.92); box-shadow: var(--lg-reflet), 0 12px 34px rgba(14,24,48,.18);
}
.badge strong { display: block; font-size: .92rem; font-weight: 600; line-height: 1.25; }
.badge small { display: block; font-size: .8rem; color: var(--texte-doux); line-height: 1.35; margin-top: 2px; }
.badge__icone { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.85); color: var(--or-texte); box-shadow: inset 0 0 0 1px rgba(20,33,61,.08); }
.badge__icone svg { width: 18px; height: 18px; }
.badge--haut { top: 28px; right: -22px; }
.badge--bas { bottom: 28px; left: -22px; }
.duo--inverse .badge--haut { right: auto; left: -22px; }
.duo--inverse .badge--bas { left: auto; right: -22px; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .badge { background: linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,253,248,.5)); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); }
}
@media (max-width: 699px) {
  .badge { max-width: 210px; padding: 10px 14px 10px 10px; }
  .badge--haut, .duo--inverse .badge--haut { top: 14px; right: 10px; left: auto; }
  .badge--bas, .duo--inverse .badge--bas { bottom: 14px; left: 10px; right: auto; }
  .badge__icone { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .apparait .badge { opacity: 0; transform: translateY(8px); transition: opacity .6s ease .35s, transform .6s ease .35s; }
  .js .apparait.visible .badge { opacity: 1; transform: none; }
}
.tete-page__photo--hotel-facade img { object-position: 60% 55%; }
.duo__photo.duo__photo--badges:not(.duo__logo) { overflow: visible; }
.classe img[src*="entrepot"] { object-position: 62% center; }
.classe img[src*="activite"] { object-position: 40% center; }

/* ==========================================================================
   Accueil allégé : encart « Céder un actif » (renvoi vers Nos domaines)
   ========================================================================== */
.ceder { display: grid; gap: 32px; }
.ceder .chapo { margin-bottom: 1.6rem; }
.ceder__points { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid rgba(255,255,255,.18); }
.ceder__points li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.ceder__points strong { color: #fff; font-weight: 500; }
.ceder__points span { color: #c5cbd8; font-size: .92rem; }
.lien-fleche--clair { color: #fff; border-bottom-color: var(--or-clair); }
.lien-fleche--clair:hover { color: #fff; }
.lien-fleche--clair span { color: var(--or-clair); }
@media (min-width: 900px) { .ceder { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; } }

/* Téléphone : classes d'actifs et territoires plus compacts */
@media (max-width: 599px) {
  .classes { grid-template-columns: 1fr 1fr; gap: 10px; }
  .classe { border-radius: 14px; }
  .classe img { aspect-ratio: 3 / 4; }
  .classe__verre { left: 6px; right: 6px; bottom: 6px; padding: 9px 10px; border-radius: 11px; }
  .classe__num { font-size: .75rem; margin-bottom: 1px; }
  .classe h3 { font-size: .98rem; line-height: 1.2; margin: 0; }
  .classe p { display: none; }
  .territoires { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 28px; }
  .territoire { border-radius: 12px; }
  .territoire img { aspect-ratio: 3 / 4; }
  .territoire__nom { left: 6px; right: 6px; bottom: 6px; padding: 6px 8px; font-size: .82rem; text-align: center; }
}
@media (max-width: 599px) { .territoire__nom { font-size: .74rem; padding: 6px 4px; border-radius: 10px; } }

/* Deux territoires (Paris, Île-de-France) */
.territoires { grid-template-columns: 1fr 1fr; }
.territoire img { aspect-ratio: 16 / 10; }
@media (max-width: 599px) { .territoires { grid-template-columns: 1fr 1fr; } .territoire img { aspect-ratio: 4 / 3; } .territoire__nom { font-size: .82rem; } }

/* ==========================================================================
   Version 3 (textes du client) : blocs ajoutés
   ========================================================================== */
/* Bloc « Professionnels » de l'accueil (même grille que « Situations ») */
.pros { display: grid; gap: 24px; align-items: end; }
.pros h2 { margin-bottom: 0; }
@media (min-width: 900px) { .pros { grid-template-columns: 1fr 1fr; gap: 72px; } }
.ceder h2 { margin-bottom: 0; }

/* Déroulé en 6 étapes et documents utiles */
@media (min-width: 900px) { .etapes--6 { grid-template-columns: repeat(6, 1fr); gap: 24px; } }
.documents { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--trait); }
.documents h3 { margin-bottom: 14px; }
.documents ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.documents li { padding: 8px 16px; border-radius: 999px; background: var(--fond-pierre); border: 1px solid var(--trait); font-size: .92rem; }

/* Principes / garanties sur 4 colonnes */
@media (min-width: 900px) { .principes--4 { grid-template-columns: repeat(4, 1fr); gap: 36px; } }

/* Récit (Notre histoire) et citation */
.recit h2 { margin-top: 1.4em; }
.recit h2:first-child { margin-top: 0; }
.citation-bloc { padding: clamp(48px, 7vw, 88px) 0; }
.citation { margin: 0 auto; max-width: 860px; text-align: center; }
.citation p { font-family: var(--titres); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.3; color: var(--encre); margin: 0 0 18px; }
.citation footer { font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--or-texte); }
.citation footer::before { content: "— "; }

/* Formulaire : choix en pastilles */
.groupe { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.groupe legend { font-weight: 600; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.choix-liste { display: flex; flex-wrap: wrap; gap: 8px; }
.choix { position: relative; }
.choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choix span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid #bdb4a2; background: #fff; cursor: pointer; font-size: .93rem; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.choix input:checked + span { background: var(--encre); border-color: var(--encre); color: #fff; }
.choix input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.groupe[aria-invalid="true"] .choix span { border-color: #a4161a; }
.sous-bouton { margin: 10px 0 0; font-size: .88rem; }

/* ==========================================================================
   Appel à l'action final : photo plein cadre + carte en verre
   ========================================================================== */
.cta { position: relative; overflow: hidden; isolation: isolate; padding: clamp(72px, 10vw, 140px) 0; background: var(--nuit-profond); color: #fff; }
.cta__photo, .cta__photo img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.cta__photo img { object-fit: cover; object-position: center 40%; }
.cta__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(14,24,48,.92) 0%, rgba(14,24,48,.72) 45%, rgba(14,24,48,.35) 100%); }
.cta .travees { z-index: -1; }
.cta__carte {
  max-width: 640px; padding: clamp(28px, 4vw, 48px); border-radius: 28px;
  background: rgba(20,33,61,.62); border: 1px solid rgba(255,255,255,.16); box-shadow: var(--lg-reflet), 0 30px 80px rgba(0,0,0,.35);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .cta__carte { background: linear-gradient(140deg, rgba(255,255,255,.16), rgba(255,255,255,.05)); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); }
}
.cta .surtitre { color: var(--or-clair); }
.cta h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.12; margin-bottom: .45em; }
.cta__texte { color: #dfe4ec; font-size: 1.05rem; margin-bottom: 1.4rem; }
.cta__garanties { list-style: none; margin: 0 0 30px; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.16); display: grid; gap: 12px; }
.cta__garanties li { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 500; }
.cta__garanties svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--or-clair); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 700px) { .cta__garanties { grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 28px; } }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.btn--or { background: linear-gradient(135deg, #e2c27f, #c69d4f); border-color: transparent; color: var(--nuit-profond); font-weight: 600; padding: 15px 30px; box-shadow: 0 10px 30px rgba(198,157,79,.28), inset 0 1px 0 rgba(255,255,255,.5); }
.btn--or span { transition: transform .2s ease; }
.btn--or:hover { background: linear-gradient(135deg, #ebcd8f, #d1a85a); color: var(--nuit-profond); border-color: transparent; }
@media (prefers-reduced-motion: no-preference) { .btn--or:hover span { transform: translateX(4px); } }
.cta__lien { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(217,180,106,.6); font-size: .95rem; }
.cta__lien:hover { color: var(--or-clair); }
.cta__lien svg { width: 16px; height: 16px; }
@media (max-width: 599px) { .cta__actions .btn--or { width: 100%; } }
.cta__garanties li { white-space: nowrap; } @media (min-width: 700px) { .cta__carte { max-width: 700px; } .cta__garanties { gap: 12px 24px; } }
@media (max-width: 1199px) { .badge--haut, .duo--inverse .badge--haut { right: 10px; left: auto; } .badge--bas, .duo--inverse .badge--bas { left: 10px; right: auto; } }
