/*
 * GIF Haussmann, thème marine (retenu le 30/11/2026, Smery : « thème marine »).
 * Institutionnel : le bleu marine du logo en aplats (en-tête, héros, citation, appel, contact, pied), blanc ailleurs ; tout en Figtree.
 * Chargée après style.css (dont elle remplace les jetons de la nuit d'origine), sur le site et dans l'éditeur.
 * Sélecteurs en « html:root » et « :root » : même poids que les anciens html[data-variante=marine] et .clair de la copie,
 * et valables aussi dans le cadre de l'éditeur.
 *
 * 0.8.0 (Smery, 30/11 : « loin du compte sur le motion design et la beauté du site ») : direction artistique reprise.
 * Des titres qui portent la page, les expertises en grandes cartes photo, les chiffres en très grand, associés et agences
 * sans cadres, la photo de la citation enfin visible, le contact sur le marine. Voir la section « 0.8.0 » plus bas.
 */

/* ---------- jetons ---------- */
/* --btn, --btn2, --btn-txt : boutons pleins ; --corps : texte courant des articles ; --or : mot fort des titres. */
html:root{
	--bg:#ffffff;--bg2:#f1f4f8;--bg3:#e7edf4;
	--txt:#14243a;--mut:#526073;--corps:#2b3a4e;
	--gold:#2f5a8a;--gold2:#244a74;--ink:#ffffff;
	--line:rgba(47,90,138,.3);--line2:rgba(20,36,58,.12);
	--btn:#172a42;--btn2:#2f5a8a;--btn-txt:#ffffff;
	--or:#a67c1b;
	--serif:"Figtree",system-ui,sans-serif;
	--wp--preset--font-family--cormorant:"Figtree",system-ui,sans-serif;
}

/* Îlots sombres : le bleu marine du logo (dont le formulaire court à droite de la flèche des baux, et le contact). */
html:root :is(.top,.hero > .t,.quote,.appel,.pied,.rappel,.ct){
	--bg:#172a42;--bg2:#1d3350;--bg3:#223a5a;
	--txt:#ffffff;--mut:#b4c0cf;--corps:#d9e0e8;
	--gold:#e0b050;--gold2:#ecc677;--ink:#172a42;
	--line:rgba(224,176,80,.35);--line2:rgba(255,255,255,.14);
	--btn:#e0b050;--btn2:#ecc677;--btn-txt:#14243a;
	--or:#e0b050;
}
html:root .pied{--bg:#0f1d30}

/* Les couleurs de theme.json suivent les jetons, à chaque niveau (page et îlots). */
html:root,
html:root :is(.top,.hero > .t,.quote,.appel,.pied,.rappel,.ct){
	--wp--preset--color--fond:var(--bg);
	--wp--preset--color--fond-2:var(--bg2);
	--wp--preset--color--fond-3:var(--bg3);
	--wp--preset--color--texte:var(--txt);
	--wp--preset--color--attenue:var(--mut);
	--wp--preset--color--or:var(--btn);
	--wp--preset--color--or-clair:var(--btn2);
	--wp--preset--color--encre:var(--btn-txt);
}
html:root :is(.top,.hero > .t,.quote,.appel,.pied,.rappel,.ct){color:var(--txt)}
html:root :is(.hero > .t,.appel,.pied,.rappel,.ct){background:var(--bg)}

/* ---------- fond clair ---------- */
html:root body{background:var(--bg);color:var(--txt)}
:root body:after{display:none}

/* en-tête toujours plein : le menu passe au-dessus des photos */
:root .top:before{opacity:1;background:var(--bg);border-bottom:1px solid var(--line2);-webkit-backdrop-filter:none;backdrop-filter:none}
:root .top .wp-block-navigation{color:var(--txt)}
:root .top .wp-block-navigation .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{background:var(--bg)!important;box-shadow:0 22px 44px -18px rgba(13,22,28,.28)}
:root .top .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{box-shadow:none}
:root .top .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content{color:var(--txt)}
:root .top .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover{color:var(--gold)}

/* héros : photo franche, sans voile ni fondu */
:root .hero > .ph:before,:root .hero > .ph:after{display:none}
/* sous la photo, le marine : le volet d'entrée (motion.js) découvre la photo sur le bleu, jamais sur du blanc */
:root .hero > .ph{background:#172a42}
:root .hero .card{background:var(--bg);color:var(--txt);-webkit-backdrop-filter:none;backdrop-filter:none;border:0;box-shadow:0 26px 60px -26px rgba(13,22,28,.45)}
:root .hero .card p:not(.n){color:var(--mut)}

:root .wp-block-button.is-style-lien .wp-block-button__link{border-bottom-color:color-mix(in srgb,var(--txt) 35%,transparent)}
:root .wp-block-button.is-style-lien .wp-block-button__link:hover{border-bottom-color:var(--gold)}
:root .syn .st .lab p:first-child{color:#f3cf8a}

:root .gif-form label{color:var(--mut)}
:root .gif-form :is(input,select,textarea){border-bottom-color:color-mix(in srgb,var(--txt) 30%,transparent)}
:root .gif-form :is(input,select,textarea):focus{border-bottom-color:var(--gold)}
:root .gif-form button{background:var(--btn);color:var(--btn-txt)}
:root .gif-form button:hover{background:var(--btn2)}
:root .gif-form .msg.ok{color:var(--gold)}
:root .gif-form .msg.ko{border-color:#b54734;color:#9b2f1e}
/* sur le marine (formulaire court, contact) : le rouge foncé ne se lit plus */
html:root :is(.rappel,.ct) .gif-form .msg.ko{border-color:#e08a78;color:#f6c0b4}

:root .tete{background:radial-gradient(ellipse at 85% 0%,color-mix(in srgb,var(--gold) 9%,transparent),transparent 55%)}
:root .prose p,:root .prose li{color:var(--corps)}
:root .prose a{border-bottom-color:color-mix(in srgb,var(--gold) 40%,transparent)}
:root .prose a:hover{border-bottom-color:var(--gold)}
:root .pied .b{color:var(--mut)}

/* flèche des baux : la version sur fond transparent est le média posé par poser-haussmann.php (plus de content:url) */

/* ---------- 0.8.0 : typographie ---------- */
/* Une seule famille, mais une vraie échelle : les titres sont grands, serrés, en demi-gras ; le mot fort passe à l'or. */
html:root :is(h1,h2,h3,h4,h5,h6),
html:root :is(.serif,.ct .big,.fig .n,.hero .card .n,.step > .n,.quote p:first-child){font-weight:600;letter-spacing:-.035em}
html:root :is(h1,h2,h3,h4,.big,.quote,.serif,.prose blockquote) em,
html:root :is(.quote p:first-child,.prose blockquote,.prose .wp-block-quote){font-style:normal}
html:root :is(.h2,.sec h2.wp-block-heading,.tete h1,.ct .big,.appel h2.wp-block-heading) em{color:var(--or)}
html:root :is(h1,h2,.big){text-wrap:balance}
html:root .hero h1{font-size:clamp(44px,4.9vw,78px);line-height:1.02;margin-bottom:34px}
html:root .hero.hero-page h1{font-size:clamp(40px,4.2vw,66px)}
html:root :is(.h2,.sec h2.wp-block-heading){font-size:clamp(36px,4.3vw,66px);line-height:1.03;max-width:1000px;margin-bottom:64px}
html:root .syn h2.wp-block-heading{font-size:clamp(34px,3.5vw,54px);margin-bottom:28px}
html:root .sec.duo h2.wp-block-heading{font-size:clamp(34px,3.5vw,54px);margin:0}
html:root .tete h1{font-size:clamp(40px,4.6vw,70px);line-height:1.04}
html:root .as h3{font-size:clamp(30px,3.1vw,46px)}
html:root .cotes h3{font-size:30px}
html:root .ag h3{font-size:28px}
html:root .hero .card .n{font-size:40px}
html:root .step > .n{font-size:26px;letter-spacing:-.02em}
html:root .step h3{letter-spacing:-.015em}
html:root .quote p:first-child{font-size:clamp(30px,3.5vw,54px);line-height:1.16}
html:root .quote.longue p:first-child{font-size:clamp(26px,2.6vw,40px);line-height:1.25}
html:root .ct .big{font-size:clamp(40px,4.4vw,68px);line-height:1.03}
html:root .appel h2.wp-block-heading{font-size:clamp(32px,3.4vw,52px)}
html:root .jr .big .wp-block-post-title{font-size:34px;line-height:1.1}
html:root .jr .side .wp-block-post-title{font-size:21px;line-height:1.25;letter-spacing:-.02em}
html:root .grille .wp-block-post-title{font-size:24px;line-height:1.2;letter-spacing:-.02em}
html:root .prose > h2{font-size:32px;letter-spacing:-.025em}
html:root .prose > h3{font-size:25px;letter-spacing:-.02em}
html:root .prose blockquote,html:root .prose .wp-block-quote,html:root .prose .wp-block-details summary{font-size:23px}
html:root .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{font-size:28px;font-weight:500}

/* ---------- 0.8.0 : chiffres, en très grand sur le blanc ---------- */
html:root .fig{background:var(--bg);border:0;padding-top:clamp(64px,7vw,112px)}
html:root .fig > .w{gap:clamp(18px,2.4vw,36px)}
html:root .fig > .w > div,html:root .fig > .w > div:first-child{padding:24px 0 0;border:0;border-top:1px solid var(--txt)}
html:root .fig .n{font-size:clamp(54px,6.6vw,104px);line-height:.95;font-variant-numeric:tabular-nums}
html:root .fig .n + p{margin-top:14px;font-size:16px}

/* ---------- 0.8.0 : expertises, quatre grandes cartes photo ---------- */
/* Le métier, ce sont des immeubles : chaque expertise montre le sien. Texte toujours lisible, sans dépendre du survol.
   La photo reste entière et immobile ; au survol, seuls le voile et la flèche changent. */
html:root .met{display:grid;grid-template-columns:1fr 1fr;gap:20px}
html:root .row,html:root .row:last-child{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;gap:12px;position:relative;isolation:isolate;aspect-ratio:16/10;padding:clamp(22px,2.6vw,40px);border:0;overflow:hidden;background:#172a42;color:#fff}
html:root .row .apercu{display:block!important;position:absolute;inset:0;margin:0;z-index:-2}
html:root .row .apercu img{width:100%;height:100%;object-fit:cover}
html:root .row:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,rgba(15,29,48,.94) 0%,rgba(15,29,48,.62) 30%,rgba(15,29,48,.08) 62%,rgba(15,29,48,.18) 100%);transition:opacity .6s var(--e);opacity:.92}
html:root .row h3{font-size:clamp(28px,2.9vw,44px);line-height:1;color:#fff;transform:none}
html:root .row > p{color:rgba(255,255,255,.86);font-size:16px;line-height:1.5;max-width:470px}
html:root .row:after{position:absolute;top:clamp(18px,2vw,30px);right:clamp(18px,2vw,30px);width:52px;height:52px;border-color:rgba(255,255,255,.6);color:#fff;background:rgba(15,29,48,.28)}
html:root .row:hover:before,html:root .row:focus-within:before{opacity:1}
html:root .row:hover h3{transform:none;color:#fff}
html:root .row:hover > p{color:#fff}
html:root .row:hover:after,html:root .row:focus-within:after{background:#e0b050;border-color:#e0b050;color:#14243a;transform:rotate(-45deg)}
html:root .row:focus-within{outline:2px solid #e0b050;outline-offset:3px}
html:root .row h3 a:focus-visible{outline:0}

/* ---------- 0.8.0 : citation, la photo se voit ---------- */
html:root .quote{padding:clamp(120px,15vw,230px) 0}
html:root .quote:before{background:linear-gradient(180deg,rgba(15,29,48,.8) 0%,rgba(15,29,48,.6) 46%,rgba(15,29,48,.84) 100%)}
html:root .quote:after{display:none}
html:root .quote p:first-child{text-shadow:0 2px 30px rgba(15,29,48,.55);text-wrap:balance}
/* libellé posé sur la photo de la méthode : présent, sans manger l'immeuble */
html:root .syn .st .lab{padding:26px 28px}
html:root .syn .st .lab p:first-child{font-size:32px;font-weight:600;letter-spacing:-.03em;margin-bottom:4px}
html:root .quote p + p{color:#d9e0e8;letter-spacing:.02em}

/* ---------- 0.8.0 : associés et agences, sans cadres ---------- */
/* Un filet en tête de colonne, de grands noms, de l'air : plus de tableau filaire. */
html:root .as{gap:clamp(32px,5vw,90px);background:none;border:0}
html:root .as > div{background:none;padding:26px 0 0;border-top:1px solid var(--txt)}
html:root .as h3{margin:14px 0 26px;line-height:1.02}
html:root .as li{padding:14px 0;font-size:17px}
html:root .ag{gap:clamp(20px,2.4vw,36px);background:none;border:0}
html:root .ag > div{background:none;padding:24px 0 0;min-height:250px;border-top:1px solid var(--txt);transition:border-color .4s var(--e)}
html:root .ag > div:hover{background:none;border-top-color:var(--or)}
html:root .ag h3{min-height:0;margin:10px 0 16px;line-height:1.05}
html:root .ag .ph{font-size:21px}

/* ---------- 0.8.1 : avis clients, repris de l'ancien site (gif_haussmann_avis) ---------- */
/* Un mur de trois colonnes, sans cartes : le filet des associés et des agences, la note en étoiles, l'avis, le nom. */
html:root .avis .mur{columns:3;column-gap:clamp(24px,3vw,48px)}
html:root .avis .mur.deux{columns:2;max-width:920px}
/* position:relative : le texte pour lecteurs d'écran de la note (position:absolute) reste dans sa carte. Sans cela, au
   téléphone, il sortait de la rangée défilante et élargissait toute la page (mesuré : 3 199 px pour un écran de 390). */
html:root .av{position:relative;break-inside:avoid;padding:22px 0 42px;border-top:1px solid var(--txt)}
html:root .av .note{font-size:15px;letter-spacing:.22em;line-height:1;color:var(--or);margin-bottom:16px}
html:root .av .note:before{content:"★★★★★"}
html:root .av .note.n4:before{content:"★★★★"}
html:root .av .note.n3:before{content:"★★★"}
html:root .av .note.n4:after{content:"★";color:color-mix(in srgb,var(--txt) 20%,transparent)}
html:root .av .note.n3:after{content:"★★";color:color-mix(in srgb,var(--txt) 20%,transparent)}
html:root .av .txt{font-size:19px;line-height:1.5;font-weight:500;letter-spacing:-.012em;color:var(--txt)}
html:root .av .nom{margin-top:16px;font-size:13px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--mut)}

/* ---------- 0.8.0 : contact sur le marine ---------- */
html:root .ct .lead{color:var(--corps)}
html:root .ct .gif-form select option{background:#172a42;color:#fff}

/* ---------- tablette et mobile ---------- */
@media (max-width:1200px){
	html:root .ag > div{min-height:0;padding-bottom:30px}
}
@media (max-width:900px){
	/* Héros au téléphone et à la tablette (0.7.1) : la photo en plein écran, le texte posé dessus sur un dégradé marine.
	   Le titre et le bouton tiennent dans le premier écran (avant : une bande de photo, puis le texte, bouton sous la ligne de flottaison). */
	:root .hero{display:flex;flex-direction:column;justify-content:flex-end;min-height:calc(100svh - 58px);overflow:hidden}
	:root .hero.hero-page{min-height:74svh}
	:root .hero > .ph{position:absolute;inset:0;height:auto;min-height:0}
	:root .hero > .ph:after{display:block;z-index:1;background:linear-gradient(0deg,#172a42 0%,rgba(23,42,66,.9) 32%,rgba(23,42,66,.3) 60%,rgba(23,42,66,.08) 82%,rgba(23,42,66,.3) 100%)}
	html:root .hero > .t{position:relative;z-index:3;margin-top:0;padding:calc(var(--nav) + 48px) 20px 34px;background:transparent}
	html:root .hero .t > p:not(.ey){font-size:17px;margin-bottom:28px;color:#d9e0e8}
	html:root .hero .ey{margin-bottom:16px}
	html:root .hero h1{font-size:clamp(38px,10vw,50px);margin-bottom:22px}
	html:root .hero.hero-page h1{font-size:clamp(34px,8.8vw,44px)}
	html:root :is(.h2,.sec h2.wp-block-heading,.syn h2.wp-block-heading,.sec.duo h2.wp-block-heading){font-size:clamp(32px,8.6vw,40px);margin-bottom:36px}
	html:root .syn h2.wp-block-heading{margin-bottom:22px}
	html:root .tete h1{font-size:clamp(34px,9vw,42px)}
	html:root :is(.as h3,.cotes h3,.ag h3){font-size:28px}
	html:root .ct .big{font-size:clamp(36px,9.6vw,44px)}
	html:root .quote p:first-child{font-size:clamp(27px,7vw,34px)}
	html:root .prose > h2{font-size:27px}
	html:root .prose > h3{font-size:22px}
	html:root .fig{padding-top:56px}
	html:root .fig > .w{gap:26px 18px}
	html:root .fig > .w > div,html:root .fig > .w > div:first-child{padding:18px 0 0}
	html:root .fig .n{font-size:clamp(44px,13vw,60px)}
	html:root .fig .n + p{font-size:15px;margin-top:10px}
	html:root .met{grid-template-columns:1fr;gap:14px}
	html:root .row,html:root .row:last-child{aspect-ratio:4/3;padding:22px}
	html:root .row h3{font-size:clamp(28px,8vw,34px)}
	html:root .row > p{font-size:15px}
	html:root .row:after{width:44px;height:44px;top:16px;right:16px}
	html:root .as{gap:34px}
	html:root .as > div{padding:22px 0 0}
	html:root .ag{gap:0}
	html:root .ag > div{padding:22px 0 26px}
	html:root .quote{padding:110px 0}
	/* avis au téléphone : une rangée qui se fait glisser, la carte suivante dépasse pour le dire */
	html:root .avis .mur,html:root .avis .mur.deux{columns:auto;display:flex;gap:16px;max-width:none;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:20px;margin-inline:-20px;padding:0 20px 8px;scrollbar-width:none}
	html:root .avis .mur::-webkit-scrollbar{display:none}
	html:root .av{flex:0 0 84%;scroll-snap-align:start;padding-bottom:8px}
	html:root .av .txt{font-size:18px}
	html:root .syn .st .lab{padding:18px 20px}
	html:root .syn .st .lab p:first-child{font-size:24px}
	html:root .bar{background:#172a42;color:#fff;border-top-color:rgba(255,255,255,.14)}
	html:root .bar p:first-child a{background:#e0b050;color:#14243a}
}
/* tablette en portrait : les cartes d'expertise et les agences tiennent à deux de front */
@media (min-width:601px) and (max-width:900px){
	html:root .met{grid-template-columns:1fr 1fr}
	html:root .row,html:root .row:last-child{aspect-ratio:1/1}
	html:root .ag{gap:0 28px}
	html:root .avis .mur,html:root .avis .mur.deux{display:block;columns:2;overflow:visible;margin-inline:0;padding:0}
	html:root .av{padding-bottom:36px}
}

/* ---------- 0.8.3 : un texte par onglet (plus de bloc recollé d'une page à l'autre) ---------- */
/* Accueil : les deux associés en deux lignes, le parcours complet est sur « Le cabinet ». */
html:root .as.court h3{margin-bottom:16px}
html:root .as.court .txt{color:var(--mut);font-size:17px;line-height:1.55;max-width:460px}
html:root .as.court + .wp-block-buttons{margin-top:44px}
/* Grilles de quatre cartes de texte (Expertises, Méthode) : de l'air entre les deux rangées. */
html:root .as.cotes{row-gap:clamp(48px,6vw,84px)}
/* Onglet Expertises : la photo de l'expertise en tête de sa carte, à angles droits comme les cartes de l'accueil. */
html:root .as.cotes.photos > div{border-top:0;padding-top:0}
html:root .cotes .vignette{margin:0 0 26px;aspect-ratio:16/9;overflow:hidden}
html:root .cotes .vignette img{display:block;width:100%;height:100%;object-fit:cover}
/* Lien sous le texte d'une section à deux colonnes (Expertises) : il ne colle plus au paragraphe. */
html:root .duo .wp-block-buttons{margin-top:28px}

/* ---------- 0.9.0 : pages longues (chapitres, tableaux, questions fréquentes) ---------- */
/* Un chapitre : son titre à gauche, qui reste à l'écran, et le texte à droite dans une colonne de lecture. */
html:root .sec.chap{padding-block:clamp(64px,7.5vw,116px)}
html:root .sec.chap.fond{background:var(--bg2)}
html:root .sec.chap:not(.fond) + .sec.chap:not(.fond){padding-top:0}
html:root .chap > .w{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(32px,6vw,110px);align-items:start}
html:root .sec.chap h2.wp-block-heading{font-size:clamp(30px,3.1vw,48px);line-height:1.06;margin:0;position:sticky;top:calc(var(--nav) + 36px)}
html:root .chap .corps{max-width:720px}
html:root .chap .corps > * + *{margin-top:1.05em}
html:root .chap .corps p,html:root .chap .corps li{color:var(--corps);font-size:17px;line-height:1.7}
html:root .chap .corps h3.wp-block-heading{font-family:var(--sans);font-size:20px;font-weight:600;line-height:1.3;letter-spacing:-.01em;color:var(--txt);margin-top:1.9em}
html:root .chap .corps ul,html:root .chap .corps ol{padding-left:1.15em}
html:root .chap .corps li + li{margin-top:.5em}
html:root .chap .corps li::marker{color:var(--or)}
html:root .chap .corps strong{color:var(--txt);font-weight:600}
html:root .chap .corps a{color:var(--txt);text-decoration:underline;text-decoration-color:var(--or);text-decoration-thickness:1px;text-underline-offset:4px;transition:color .3s var(--e)}
html:root .chap .corps a:hover{color:var(--or)}
html:root .chap .corps .wp-block-table{margin:1.7em 0 0;overflow-x:auto}
html:root .chap .corps table{width:100%;border-collapse:collapse;font-size:16px}
html:root .chap .corps th{text-align:left;font-weight:600;color:var(--txt);padding:0 20px 12px 0;border:0;border-bottom:1px solid var(--txt);vertical-align:bottom}
html:root .chap .corps td{padding:13px 20px 13px 0;border:0;border-bottom:1px solid var(--line2);color:var(--corps);vertical-align:top;line-height:1.5}
html:root .chap .corps .wp-block-details{border-top:1px solid var(--line2);padding:20px 0;margin:0}
html:root .chap .corps .wp-block-details:last-child{border-bottom:1px solid var(--line2)}
html:root .chap .corps .wp-block-details summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:baseline;gap:24px;font-size:19px;font-weight:600;line-height:1.35;color:var(--txt)}
html:root .chap .corps .wp-block-details summary::-webkit-details-marker{display:none}
html:root .chap .corps .wp-block-details summary:after{content:"+";flex:none;color:var(--or);font-weight:400;font-size:24px;line-height:1}
html:root .chap .corps .wp-block-details[open] summary:after{content:"−"}
html:root .chap .corps .wp-block-details > :not(summary){margin-top:.9em}
html:root .chap .corps .wp-block-details summary:focus-visible{outline:2px solid var(--or);outline-offset:6px}
@media (max-width:900px){
	html:root .chap > .w{grid-template-columns:1fr;gap:26px}
	html:root .sec.chap h2.wp-block-heading{position:static;font-size:clamp(28px,7.6vw,36px);margin:0}
	html:root .chap .corps .wp-block-details summary{font-size:18px}
}
