/* ==========================================================================
   GOLD FINGER — base, mise en page et composants (thème clair).
   Lit uniquement les rôles de tokens.css.
   ========================================================================== */

/* --- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
svg { max-width: 100%; }
svg.gf-icon { display: inline-block; vertical-align: -0.18em; flex: none; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: currentColor; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 450; line-height: var(--lh-snug); margin: 0; letter-spacing: -0.01em; font-variation-settings: "opsz" 96; color: var(--text); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
mark { background: var(--brand-50); color: inherit; padding: 0 0.1em; border-radius: 2px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.gf-skip { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--ink-900); color: var(--white); padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-weight: 600; }
.gf-skip:focus { top: 1rem; }

/* --- Gabarits ------------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }
.section { background: var(--bg); color: var(--text); padding-block: var(--space-9); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: var(--space-8); }
.section--flush { padding-top: 0; }
.mt { margin-top: var(--space-6); }

.eyebrow { display: inline-flex; align-items: center; gap: 0.75rem; font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--accent-text); margin-bottom: var(--space-4); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.title-xl { font-size: var(--fs-3xl); line-height: 1.06; }
.title-lg { font-size: var(--fs-2xl); }
.title-md { font-size: var(--fs-xl); }
.lead { font-size: var(--fs-lg); color: var(--text-muted); max-width: 62ch; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); font-size: var(--fs-sm); }

.section-head { display: grid; gap: var(--space-5); grid-template-columns: 1fr; align-items: end; margin-bottom: var(--space-7); }
@media (min-width: 900px) { .section-head { grid-template-columns: 1.2fr 1fr; } .section-head .lead { justify-self: end; margin: 0; } }

.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.split { display: grid; gap: var(--space-7); }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1.4fr; } .split--even { grid-template-columns: 1fr 1fr; } }

/* --- Boutons -------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 48px; padding: 0.8rem 1.4rem; border-radius: 999px; border: 1px solid transparent; font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.02em; text-decoration: none; cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast); }
.btn--gold { background: var(--brand); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--gold:hover { background: var(--brand-dark); }
.btn--ghost { border-color: var(--border-strong); color: var(--text); background: var(--bg-raised); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn--sm { min-height: 40px; padding: 0.5rem 1.05rem; }
.btn .gf-icon { transition: transform var(--dur-fast); }
.btn:hover .gf-icon { transform: translateX(3px); }
.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: var(--fs-sm); color: var(--accent-text); text-decoration: none; }
.link-arrow .gf-icon { transition: transform var(--dur-fast); }
.link-arrow:hover .gf-icon { transform: translateX(4px); }

/* --- Bandeaux d'état -------------------------------------------------------- */
.gf-demo { background: #fbf1d9; color: #5e461a; font-size: var(--fs-xs); text-align: center; padding: 0.45rem var(--gutter); border-bottom: 1px solid #ead7a8; }
.gf-demo strong { letter-spacing: 0.06em; }
.gf-preview { position: sticky; top: 0; z-index: 70; background: #8a2f1f; color: #fff; text-align: center; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; padding: 0.5rem var(--gutter); }
.tag-demo { display: inline-block; font-family: var(--font-body); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.15rem 0.45rem; border-radius: 3px; border: 1px dashed currentColor; color: var(--brand); vertical-align: middle; }

/* --- En-tête : barre utilitaire ---------------------------------------- */
.gf-header { position: relative; z-index: 50; background: var(--white); }
.gf-topbar { border-bottom: 1px solid var(--border); }
.gf-topbar__inner { display: flex; align-items: center; gap: var(--space-5); min-height: 84px; }
.gf-logo { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink-900); }
.gf-logo__mark { width: 42px; height: 42px; }
.gf-logo__text { display: flex; flex-direction: column; line-height: 1; }
.gf-logo__name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; letter-spacing: 0.14em; }
.gf-logo__sub { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--brand); margin-top: 0.35rem; }
.gf-topbar__tagline { display: none; margin: 0 auto 0 var(--space-5); padding-left: var(--space-5); border-left: 1px solid var(--border-strong); font-family: var(--font-display); font-style: italic; font-size: var(--fs-sm); color: var(--text-muted); max-width: 30ch; line-height: 1.35; }
.gf-topsearch { display: none; position: relative; width: 260px; margin-left: auto; }
.gf-topsearch__field { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--bg-soft); padding-left: 1rem; }
.gf-topsearch__field:focus-within { border-color: var(--brand); background: var(--white); }
.gf-topsearch input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; padding: 0.55rem 0; font-size: var(--fs-sm); }
.gf-topsearch button { width: 40px; height: 38px; border: 0; background: none; cursor: pointer; color: var(--text-muted); display: grid; place-items: center; }
.gf-topsearch .suggest { position: absolute; top: calc(100% + 6px); right: 0; width: 380px; z-index: 60; margin: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 4px; }
.gf-topsearch .suggest:empty { display: none; }
.gf-tools { display: flex; align-items: center; gap: 0.4rem; margin-left: auto; }
.gf-topsearch + .gf-tools { margin-left: 0; }
.gf-iconbtn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid transparent; background: none; cursor: pointer; color: inherit; text-decoration: none; }
.gf-iconbtn:hover { border-color: var(--border-strong); color: var(--brand); }
.gf-lang { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.7rem; border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; color: var(--text-muted); }
.gf-lang:hover { color: var(--brand); background: var(--bg-soft); }
.gf-topbar__cta { display: none; }
@media (min-width: 1180px) {
    .gf-topbar__tagline { display: block; }
    .gf-topsearch { display: block; }
    .gf-search-mobile { display: none; }
}
@media (min-width: 900px) { .gf-topbar__cta { display: inline-flex; } }

/* --- En-tête : barre de menus collante ---------------------------------- */
.gf-menubar { position: sticky; top: 0; z-index: 55; background: var(--umber); transition: box-shadow var(--dur); }
.gf-menubar.is-stuck, .gf-menubar.has-open { box-shadow: var(--shadow-md); }
.gf-menu { display: none; list-style: none; align-items: stretch; gap: 0.15rem; }
.gf-menu__link { position: relative; display: inline-flex; align-items: center; gap: 0.35rem; height: 52px; padding: 0 0.95rem; border: 0; background: none; cursor: pointer; font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.01em; color: #efe8dc; text-decoration: none; }
.gf-menu__link::after { content: ""; position: absolute; left: 0.95rem; right: 0.95rem; bottom: 0; height: 3px; background: var(--brass-light); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-fast) var(--ease-out); }
.gf-menu__link:hover, .gf-menu__link[aria-expanded="true"] { color: #ffffff; }
.gf-menu__link:hover::after, .gf-menu__link[aria-expanded="true"]::after, .gf-menu__link[aria-current="page"]::after, .gf-menu__link.is-current::after { transform: scaleX(1); }
.gf-menu__link[aria-current="page"], .gf-menu__link.is-current { color: #ffffff; }
.gf-menu__link .gf-icon { transition: transform var(--dur-fast); }
.gf-menu__link[aria-expanded="true"] .gf-icon { transform: rotate(180deg); }
.gf-menu__home { padding-inline: 0.8rem; }
.gf-menu__home::after { left: 0.6rem; right: 0.6rem; }
@media (min-width: 1100px) { .gf-menu { display: flex; } .gf-burger { display: none; } }
@media (max-width: 1099px) { .gf-menubar { display: none; } }

/* Sous-menus */
.gf-drop { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 3px solid var(--brand); box-shadow: var(--shadow-lg); padding-block: var(--space-6) var(--space-7); }
.gf-drop[hidden] { display: none; }
.gf-drop__grid { display: grid; grid-template-columns: 300px 1fr; gap: var(--space-7); }
.gf-drop__intro { padding-right: var(--space-5); border-right: 1px solid var(--border); }
.gf-drop__intro .gf-drop__title { font-family: var(--font-display); font-size: var(--fs-xl); margin-bottom: var(--space-3); color: var(--ink-900); }
.gf-drop__intro p { color: var(--text-muted); font-size: var(--fs-sm); }
.gf-drop__links { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-2) var(--space-4); align-content: start; }
.gf-drop__links a { display: block; padding: var(--space-4); border-radius: var(--radius); text-decoration: none; border: 1px solid transparent; transition: background var(--dur-fast), border-color var(--dur-fast); }
.gf-drop__links a:hover, .gf-drop__links a:focus-visible { background: var(--stone-50); border-color: var(--border); }
.gf-drop__label { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-weight: 600; color: var(--ink-900); }
.gf-drop__label .gf-icon { color: var(--brand); opacity: 0; transform: translateX(-4px); transition: opacity var(--dur-fast), transform var(--dur-fast); }
.gf-drop__links a:hover .gf-icon, .gf-drop__links a:focus-visible .gf-icon { opacity: 1; transform: none; }
.gf-drop__desc { display: block; margin-top: 0.25rem; font-size: var(--fs-xs); line-height: 1.5; color: var(--text-faint); }

.gf-mega__list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin-top: var(--space-4); }
.gf-mega__list li[hidden] { display: none; }
.gf-mega__item { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border-radius: var(--radius); text-decoration: none; border: 1px solid transparent; transition: background var(--dur-fast), border-color var(--dur-fast); }
.gf-mega__item:hover, .gf-mega__item:focus-visible { background: var(--stone-50); border-color: var(--border); }
.gf-mega__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 0.4rem; flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.gf-mega__name { display: block; font-weight: 600; font-size: var(--fs-sm); color: var(--ink-900); }
.gf-mega__meta { display: block; font-size: var(--fs-xs); color: var(--text-faint); margin-top: 0.15rem; }
.gf-mega__countries { margin-top: var(--space-3); }
.gf-mega__countries .chip { min-height: 30px; font-size: 0.7rem; }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 36px; padding: 0.35rem 0.9rem; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg-raised); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.03em; cursor: pointer; text-decoration: none; color: var(--text-muted); }
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--ink-900); border-color: var(--ink-900); color: var(--white); }

/* Menu mobile */
.gf-drawer { position: fixed; inset: 0; z-index: 80; background: var(--white); color: var(--text); padding: 84px var(--gutter) var(--space-7); overflow-y: auto; }
.gf-drawer[hidden] { display: none; }
.gf-drawer__close { position: absolute; top: 20px; right: var(--gutter); }
.gf-drawer__list { list-style: none; display: grid; }
.gf-drawer__list > li { border-bottom: 1px solid var(--border); }
.gf-drawer__top { display: flex; justify-content: space-between; align-items: center; padding: 0.95rem 0; font-family: var(--font-display); font-size: var(--fs-xl); text-decoration: none; cursor: pointer; list-style: none; }
.gf-drawer__top::-webkit-details-marker { display: none; }
details[open] > .gf-drawer__top .gf-icon { transform: rotate(180deg); }
.gf-drawer__sub { list-style: none; display: grid; padding: 0 0 0.9rem 0.2rem; }
.gf-drawer__sub a { display: block; padding: 0.45rem 0; font-size: var(--fs-sm); color: var(--text-muted); text-decoration: none; }
.gf-drawer__sub a:hover { color: var(--brand); }
.gf-drawer__lang { display: inline-flex; gap: 0.4rem; align-items: center; margin-top: var(--space-5); font-weight: 600; text-decoration: none; color: var(--brand); }
body.is-locked { overflow: hidden; }

/* Recherche plein écran (petits écrans) */
.gf-search { position: fixed; inset: 0; z-index: 90; background: rgba(251, 249, 245, 0.97); backdrop-filter: blur(10px); display: grid; align-items: start; padding-top: 14vh; }
.gf-search[hidden] { display: none; }
.gf-search__close { position: absolute; top: 20px; right: var(--gutter); }
.searchbox { position: relative; }
.searchbox__field { display: flex; align-items: center; gap: var(--space-3); border-bottom: 2px solid var(--border-strong); padding-bottom: var(--space-3); }
.searchbox__field:focus-within { border-color: var(--brand); }
.searchbox__field input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font-family: var(--font-display); font-size: var(--fs-2xl); color: var(--text); }
.searchbox__field input::placeholder { color: var(--stone-400); }
.searchbox__hint { margin-top: var(--space-3); color: var(--text-faint); font-size: var(--fs-sm); }
.suggest { list-style: none; margin-top: var(--space-4); display: grid; gap: 2px; }
.suggest a { display: flex; justify-content: space-between; gap: var(--space-4); padding: 0.75rem 1rem; border-radius: var(--radius); text-decoration: none; }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--stone-100); }
.suggest small { color: var(--brand); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.65rem; font-weight: 700; align-self: center; white-space: nowrap; }

/* --- Ouverture (hero) --------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(115deg, var(--white) 0%, var(--stone-100) 55%, var(--brand-50) 140%); isolation: isolate; border-bottom: 1px solid var(--border); }
.hero__media { position: absolute; inset: 0 0 0 38%; z-index: -1; }
.hero__media .terrain { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
.hero__content { padding-block: var(--space-9); min-height: min(76vh, 760px); display: flex; flex-direction: column; justify-content: center; }
.hero__title { font-size: var(--fs-hero); line-height: var(--lh-tight); letter-spacing: -0.025em; max-width: 13ch; font-weight: 400; font-variation-settings: "opsz" 144; }
.hero__title em { font-style: italic; color: var(--brand); }
.hero__lead { font-size: var(--fs-lg); max-width: 50ch; color: var(--text-muted); margin: var(--space-5) 0 var(--space-6); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__foot { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-7); margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--border); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.hero__foot a { text-decoration: none; color: var(--text-muted); font-weight: 600; }
.hero__foot a:hover { color: var(--brand); }
@media (max-width: 760px) { .hero__media { inset: 0; opacity: 0.35; } }
/* Variante vidéo réelle : texte clair sur image assombrie. */
.hero--media .hero__media { inset: 0; }
.hero--media .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero--media::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(19, 17, 15, 0.78), rgba(19, 17, 15, 0.25)); }

/* En-tête de page intérieure */
.pagehead { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--white), var(--stone-100)); padding-block: var(--space-8) var(--space-7); isolation: isolate; border-bottom: 1px solid var(--border); }
.pagehead .terrain { position: absolute; top: 0; right: 0; width: 55%; height: 100%; z-index: -1; object-fit: cover; opacity: 0.8; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.pagehead__title { font-size: var(--fs-3xl); line-height: 1.06; max-width: 20ch; letter-spacing: -0.02em; font-weight: 400; }
.pagehead .lead { margin-top: var(--space-4); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; list-style: none; font-size: var(--fs-xs); letter-spacing: 0.04em; color: var(--text-faint); margin-bottom: var(--space-5); }
.crumbs li + li::before { content: "›"; margin-right: 0.5rem; opacity: 0.6; }
.crumbs a { text-decoration: none; color: var(--text-muted); display: inline-block; padding-block: 4px; }
.crumbs a:hover { color: var(--brand); }

/* Composition graphique « terrain » */
img.terrain { object-fit: cover; }

/* --- Recherche d'accueil ------------------------------------------------- */
.homesearch { background: var(--ink-900); color: var(--stone-50); padding-block: var(--space-6); }
.homesearch .eyebrow { color: var(--brass-light); }
.homesearch .eyebrow::before { background: var(--brass-light); }
.homesearch .muted { color: #c4bdae; margin: 0; }
.homesearch .searchbox__field { border-color: rgba(251, 249, 245, 0.3); }
.homesearch .searchbox__field:focus-within { border-color: var(--brass-light); }
.homesearch .searchbox__field input { color: var(--stone-50); font-size: var(--fs-xl); }
.homesearch .searchbox__field input::placeholder { color: rgba(251, 249, 245, 0.5); }
.homesearch .btn--ghost { background: transparent; color: var(--stone-50); border-color: rgba(251, 249, 245, 0.35); }
.homesearch__row { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 900px) { .homesearch__row { grid-template-columns: 320px 1fr; } }
.homesearch .suggest { position: absolute; left: 0; right: 0; z-index: 5; background: var(--white); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px; box-shadow: var(--shadow-lg); }
.homesearch .suggest:empty { display: none; }

/* --- Accès rapides ---------------------------------------------------- */
.quick { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.quick__tile { position: relative; display: flex; flex-direction: column; min-height: 290px; padding: var(--space-6); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; background: var(--stone-50); border: 1px solid var(--border); isolation: isolate; transition: transform var(--dur) var(--ease-out), box-shadow var(--dur); }
.quick__tile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--accent); }
.quick__tile .terrain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.5; transition: opacity var(--dur), transform var(--dur-slow) var(--ease-out); }
.quick__tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.quick__tile:hover .terrain { opacity: 0.85; transform: scale(1.04); }
.quick__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--accent); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.quick__title { font-family: var(--font-display); font-size: var(--fs-xl); color: var(--ink-900); margin: auto 0 var(--space-2); padding-top: var(--space-6); }
.quick__text { font-size: var(--fs-sm); color: var(--text-muted); margin: 0 0 var(--space-4); }

/* --- Chiffres clés ------------------------------------------------------------ */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.figure { padding: var(--space-6) var(--space-5); border-left: 1px solid var(--border); }
.figure:first-child { border-left: 0; }
.figure__value { display: block; font-family: var(--font-display); font-size: var(--fs-3xl); line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.figure__label { display: block; margin-top: var(--space-3); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); }

/* --- Cartes société ------------------------------------------------------ */
.constellation { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 720px) { .constellation { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .constellation { grid-template-columns: repeat(3, 1fr); } }
.ccard { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 330px; padding: var(--space-6); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--text); background: var(--stone-50); border: 1px solid var(--border); isolation: isolate; transition: border-color var(--dur), transform var(--dur) var(--ease-out), box-shadow var(--dur); }
.ccard .terrain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0.6; transition: opacity var(--dur), transform var(--dur-slow) var(--ease-out); }
.ccard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(251, 249, 245, 0) 20%, rgba(251, 249, 245, 0.94) 62%); }
.ccard:hover, .ccard:focus-visible { border-color: color-mix(in srgb, var(--accent) 55%, transparent); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ccard:hover .terrain { opacity: 0.9; transform: scale(1.04); }
.ccard__top { position: absolute; top: var(--space-5); left: var(--space-6); right: var(--space-6); display: flex; justify-content: space-between; align-items: center; }
.ccard__mono { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.1rem; border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); color: var(--accent); background: var(--white); box-shadow: var(--shadow-sm); }
.ccard__sector { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-2); }
.ccard__name { font-size: var(--fs-xl); margin-bottom: var(--space-2); }
.ccard__tag { color: var(--text-muted); font-size: var(--fs-sm); margin: 0 0 var(--space-4); max-width: 44ch; padding-right: 3rem; }
.ccard__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: var(--fs-xs); color: var(--text-faint); }
.ccard__meta span { display: inline-flex; gap: 0.35rem; align-items: center; }
.ccard__go { position: absolute; right: var(--space-6); bottom: var(--space-6); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-strong); background: var(--white); color: var(--ink-900); transition: background var(--dur-fast), color var(--dur-fast); }
.ccard:hover .ccard__go { background: var(--accent); color: var(--white); border-color: var(--accent); }
/* Carte avec photo réelle : texte clair sur image assombrie. */
.ccard--photo .terrain { opacity: 1; }
.ccard--photo::after { background: linear-gradient(180deg, rgba(19, 17, 15, 0.05) 25%, rgba(19, 17, 15, 0.85)); }
.ccard--photo .ccard__name, .ccard--photo .ccard__tag, .ccard--photo .ccard__meta { color: var(--white); }
.ccard--photo .ccard__sector { color: var(--brand-50); }

/* --- Carte mondiale ----------------------------------------------------------- */
.worldmap { position: relative; border-radius: var(--radius-lg); background: radial-gradient(90% 90% at 50% 50%, var(--white), var(--stone-100)); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); }
.worldmap__canvas { position: relative; aspect-ratio: 1000 / 420; }
.worldmap__canvas.is-zoomed { aspect-ratio: 16 / 10; max-height: 72vh; }
.worldmap__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.marker { cursor: pointer; outline: none; }
.marker__halo { fill: var(--accent); opacity: 0.2; transform-box: fill-box; transform-origin: center; animation: halo 2.8s ease-out infinite; }
.marker__dot { fill: var(--accent); stroke: var(--white); stroke-width: 2; vector-effect: non-scaling-stroke; }
.marker:hover .marker__dot, .marker:focus-visible .marker__dot, .marker.is-active .marker__dot { fill: var(--ink-900); }
.marker__ring { fill: none; stroke: transparent; vector-effect: non-scaling-stroke; }
.marker:focus-visible .marker__ring { stroke: var(--ink-900); stroke-width: 2; }
.marker.is-hidden { display: none; }
.country-dot { fill: rgba(28, 26, 23, 0.35); }
@keyframes halo { 0% { transform: scale(0.6); opacity: 0.35; } 100% { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .marker__halo { animation: none; } }
.worldmap__bar { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5); border-top: 1px solid var(--border); background: var(--white); }
.worldmap__filters { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.select { appearance: none; min-height: 40px; padding: 0.4rem 2.2rem 0.4rem 0.9rem; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a5c22' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.8rem center; font-size: var(--fs-xs); font-weight: 600; cursor: pointer; color: var(--text); }
.mapcard { position: absolute; z-index: 3; width: min(320px, calc(100% - 2rem)); background: var(--white); border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow-lg); }
.mapcard[hidden] { display: none; }
.mapcard h3 { font-size: var(--fs-lg); margin: var(--space-2) 0; }
.mapcard p { font-size: var(--fs-sm); color: var(--text-muted); }
.mapcard__close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; }
.maplegend { font-size: var(--fs-xs); color: var(--text-faint); margin: 0; }
.mapnote { display: flex; gap: 0.4rem; align-items: center; margin-top: var(--space-3); }
.maplist { list-style: none; display: grid; border-top: 1px solid var(--border); }
.maplist li { border-bottom: 1px solid var(--border); }
.maplist li[hidden] { display: none; }
.maplist a { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2) var(--space-4); padding: var(--space-4) 0; text-decoration: none; }
.maplist a:hover strong { color: var(--brand); }
.maplist small { grid-column: 1 / -1; color: var(--text-faint); }
.mapnote + h2.title-md, .worldmap ~ h2.title-md { margin: var(--space-7) 0 var(--space-4); }

/* --- Chaîne de valeur ----------------------------------------------------------- */
.chain { position: relative; display: grid; gap: var(--space-5); grid-template-columns: 1fr; list-style: none; }
@media (min-width: 900px) { .chain { grid-template-columns: repeat(6, 1fr); gap: var(--space-4); } }
.chain__line { display: none; }
@media (min-width: 900px) {
    .chain__line { display: block; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--stone-200); }
    .chain__line span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--brass), var(--brand)); transform-origin: left; }
}
.chain__step { position: relative; }
.chain__num { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--brass); color: var(--brand); font-family: var(--font-display); font-size: 1.05rem; margin-bottom: var(--space-4); position: relative; z-index: 1; }
.chain__step h3, .chain__step h2 { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.chain__step p { font-size: var(--fs-sm); color: var(--text-muted); }

/* --- Cartes projet ----------------------------------------------------------- */
.pcard { position: relative; display: grid; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-raised); border: 1px solid var(--border); text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color var(--dur), transform var(--dur) var(--ease-out), box-shadow var(--dur); }
.pcard:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pcard__visual { position: relative; aspect-ratio: 16 / 9; background: var(--stone-100); overflow: hidden; }
.pcard__visual .terrain { width: 100%; height: 100%; opacity: 0.9; transition: transform var(--dur-slow) var(--ease-out); }
.pcard:hover .pcard__visual .terrain { transform: scale(1.05); }
.pcard__badge { position: absolute; left: var(--space-4); top: var(--space-4); display: inline-flex; gap: 0.4rem; align-items: center; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--white); color: var(--ink-900); font-size: var(--fs-xs); font-weight: 600; box-shadow: var(--shadow-sm); }
.pcard__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.pcard__body { padding: var(--space-5) var(--space-5) var(--space-6); }
.pcard__kicker { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: color-mix(in srgb, var(--accent) 66%, var(--text)); }
.pcard__title { font-size: var(--fs-xl); margin: var(--space-2) 0; }
.pcard__text { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }
.pcard__meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin-top: var(--space-4); font-size: var(--fs-xs); color: var(--text-faint); }
.pcard__meta span { display: inline-flex; gap: 0.35rem; align-items: center; }
.featured { display: grid; gap: var(--space-5); }
@media (min-width: 1000px) { .featured { grid-template-columns: 1.4fr 1fr; } .featured > :first-child { grid-row: span 2; } .featured > :first-child .pcard__visual { aspect-ratio: auto; min-height: 380px; } }
.newslead { grid-template-columns: 1fr; }
@media (min-width: 900px) { .newslead { grid-template-columns: 1.3fr 1fr; } .newslead .pcard__visual { aspect-ratio: auto; min-height: 340px; } .newslead .pcard__body { align-self: center; padding: var(--space-7); } }

/* --- Bandeau citation ------------------------------------------------------- */
.cinebar { position: relative; overflow: hidden; background: var(--stone-100); isolation: isolate; padding-block: var(--space-9); border-block: 1px solid var(--border); }
.cinebar > [data-parallax-slow] { position: absolute; inset: 0; z-index: -1; }
.cinebar .terrain { position: absolute; inset: -10% 0; width: 100%; height: 120%; opacity: 0.55; }
.cinebar__quote { font-family: var(--font-display); font-size: var(--fs-3xl); line-height: 1.12; max-width: 22ch; letter-spacing: -0.02em; color: var(--ink-900); margin: 0; }
.cinebar__quote em { color: var(--brand); }

/* --- Engagements ------------------------------------------------------------------ */
.pillars { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pillar { background: var(--bg-raised); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); min-height: 240px; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); scroll-margin-top: 80px; }
.pillar__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--stone-100); color: var(--brand); }
.pillar h3, .pillar h2 { font-size: var(--fs-lg); }
.pillar p { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }
.pillars + .mapnote { margin-top: var(--space-5); }

/* --- Actualités et documents ------------------------------------------------- */
.ncard { display: flex; flex-direction: column; gap: var(--space-3); text-decoration: none; padding-top: var(--space-4); border-top: 2px solid var(--ink-900); }
.ncard__date { font-size: var(--fs-xs); font-weight: 600; color: var(--text-faint); letter-spacing: 0.06em; text-transform: uppercase; }
.ncard__title { font-size: var(--fs-lg); line-height: 1.3; }
.ncard:hover .ncard__title { color: var(--brand); }
.ncard__text { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }
.columns2 { display: grid; gap: var(--space-7); }
@media (min-width: 960px) { .columns2 { grid-template-columns: 1fr 1.25fr; } }
.colhead { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding-bottom: var(--space-3); border-bottom: 2px solid var(--ink-900); margin-bottom: var(--space-2); }
.colhead h2 { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.newslist { list-style: none; display: grid; }
.newslist li { border-bottom: 1px solid var(--border); }
.newslist a { display: grid; grid-template-columns: 120px 1fr; gap: var(--space-4); padding: var(--space-4) 0; text-decoration: none; }
.newslist time { font-size: var(--fs-xs); font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 0.06em; padding-top: 0.2rem; }
.newslist strong { display: block; font-weight: 600; line-height: 1.35; }
.newslist span { font-size: var(--fs-sm); color: var(--text-muted); }
.newslist a:hover strong { color: var(--brand); }
@media (max-width: 520px) { .newslist a { grid-template-columns: 1fr; gap: var(--space-1); } }

/* --- Appel à l'action --------------------------------------------------------------- */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: var(--space-8) var(--space-7); background: linear-gradient(120deg, var(--white), var(--stone-100) 60%, var(--brand-50)); border: 1px solid var(--border); isolation: isolate; box-shadow: var(--shadow-sm); }
.cta .terrain { position: absolute; right: -8%; top: -20%; width: 60%; height: 140%; z-index: -1; opacity: 0.55; }
.cta h2 { font-size: var(--fs-2xl); max-width: 22ch; }
.cta p { color: var(--text-muted); max-width: 54ch; margin: var(--space-4) 0 var(--space-6); }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.grid + .cta, .columns2 + .cta { margin-top: var(--space-8); }
@media (max-width: 600px) { .cta { padding: var(--space-7) var(--space-5); } }

/* --- Pied de page (zone sombre, .theme-dark) ------------------------------------------ */
.gf-footer { background: var(--bg); color: var(--text); padding-top: var(--space-8); }
.gf-footer__top { display: grid; gap: var(--space-7); grid-template-columns: 1fr; padding-bottom: var(--space-7); }
@media (min-width: 900px) { .gf-footer__top { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .gf-footer__top { grid-template-columns: 1.3fr repeat(5, 1fr); } }
.gf-footer h2 { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--accent-text); margin-bottom: var(--space-4); }
.gf-footer ul { list-style: none; display: grid; gap: 0.55rem; }
.gf-footer a { text-decoration: none; color: var(--text-muted); font-size: var(--fs-sm); display: inline-block; padding-block: 2px; min-height: 24px; min-width: 24px; }
.gf-footer a:hover { color: var(--accent-strong); }
.gf-footer .gf-logo { color: var(--text); }
.gf-footer .gf-logo__sub { color: var(--accent-text); }
.gf-footer__brand p { color: var(--text-muted); font-size: var(--fs-sm); max-width: 36ch; margin-top: var(--space-4); }
.gf-footer__bottom { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; padding-block: var(--space-5); border-top: 1px solid var(--border); font-size: var(--fs-xs); color: var(--text-faint); }
.gf-footer__bottom ul { display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* --- Mini-site société ---------------------------------------------------------------- */
.cohero { position: relative; overflow: hidden; background: linear-gradient(115deg, var(--white), var(--stone-100)); isolation: isolate; border-bottom: 1px solid var(--border); }
.cohero > [data-parallax] { position: absolute; inset: 0 0 0 40%; z-index: -1; }
.cohero .terrain { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
.cohero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent); }
.cohero__content { padding-block: var(--space-8); min-height: min(56vh, 560px); display: flex; flex-direction: column; justify-content: center; }
.cohero__title { font-size: var(--fs-hero); line-height: 1; letter-spacing: -0.03em; max-width: 13ch; font-weight: 400; }
.cohero__tag { font-size: var(--fs-lg); color: var(--text-muted); max-width: 48ch; margin: var(--space-5) 0 var(--space-6); }
/* Variante photo réelle */
.cohero--photo > [data-parallax] { inset: 0; }
.cohero--photo .terrain { opacity: 1; -webkit-mask-image: none; mask-image: none; }
.cohero--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(19, 17, 15, 0.82), rgba(19, 17, 15, 0.2)); }
.cohero--photo .cohero__title, .cohero--photo .crumbs, .cohero--photo .crumbs a { color: var(--white); }
.cohero--photo .cohero__tag { color: rgba(255, 255, 255, 0.86); }
.cohero--photo .eyebrow { color: var(--brand-50); }

.subnav { position: sticky; top: 52px; z-index: 30; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
@media (max-width: 1099px) { .subnav { top: 0; } }
.subnav ul { display: flex; gap: var(--space-2); list-style: none; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; white-space: nowrap; padding: 0.95rem 0.8rem; font-size: var(--fs-sm); font-weight: 500; text-decoration: none; color: var(--text-muted); border-bottom: 3px solid transparent; }
.subnav a:hover, .subnav a.is-active { color: var(--text); border-bottom-color: var(--accent); }

.facts { display: grid; border-top: 1px solid var(--border); margin: 0; }
.facts div { display: grid; grid-template-columns: minmax(120px, 0.6fr) 1fr; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.facts dt { color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--fs-xs); padding-top: 0.15rem; }
.facts dd { margin: 0; }

.capabilities { list-style: none; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.capabilities li { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); }
.capabilities .gf-icon { color: var(--accent); margin-top: 0.15rem; }
#activites .chips { margin-top: var(--space-5); }
.chips + .capabilities { margin-top: var(--space-6); }

.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); background: var(--bg-raised); }
.table th, .table td { text-align: left; padding: var(--space-4) var(--space-3); border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); font-weight: 700; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.status { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--fs-xs); font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.status--valide::before { background: var(--success); }

.timeline { list-style: none; display: grid; border-left: 2px solid var(--stone-200); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 var(--space-5) var(--space-5); }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 0.45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--white); }
.timeline time { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; }

.notice { display: flex; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-radius: var(--radius); border-left: 3px solid var(--brass); background: var(--stone-100); font-size: var(--fs-sm); }
.notice .gf-icon { color: var(--brand); margin-top: 0.15rem; }
.notice p { margin: 0; }

/* --- Prose ----------------------------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--fs-xl); margin: var(--space-7) 0 var(--space-3); }
.prose h3 { font-size: var(--fs-lg); margin: var(--space-5) 0 var(--space-2); }
.prose p, .prose li { color: var(--text-muted); }
.prose ul { padding-left: 1.2rem; display: grid; gap: 0.4rem; margin-bottom: 1em; }

/* --- Documents ------------------------------------------------------------------------- */
.doclist { list-style: none; display: grid; border-top: 1px solid var(--border); }
.doclist li { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-4); align-items: center; padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
.doclist .gf-icon { color: var(--brand); }
.doclist small { display: block; color: var(--text-faint); font-size: var(--fs-xs); }
.colhead + .doclist { border-top: 0; }
@media (max-width: 600px) { .doclist li { grid-template-columns: auto 1fr; } .doclist li > :last-child { grid-column: 2; justify-self: start; } }

/* --- Filtres --------------------------------------------------------------------------- */
.filterbar { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; padding: var(--space-4) 0 var(--space-6); }
.filterbar__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.empty { padding: var(--space-7); text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); color: var(--text-muted); background: var(--bg-soft); }

/* --- Résultats de recherche ------------------------------------------------------------- */
.results { list-style: none; display: grid; gap: var(--space-3); }
.result a { display: block; padding: var(--space-5); border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-raised); text-decoration: none; box-shadow: var(--shadow-sm); }
.result a:hover { border-color: var(--accent); }
.result__type { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-text); }
.result__title { font-size: var(--fs-lg); margin: 0.2rem 0 0.4rem; }
.result__text { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }
.searchpage .results { margin-bottom: var(--space-7); }
.searchpage h2.title-md { margin: var(--space-7) 0 var(--space-4); }

/* --- Formulaires ------------------------------------------------------------------------- */
.form { display: grid; gap: var(--space-5); }
.form__row { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); align-items: start; }
.field { display: grid; gap: 0.45rem; align-content: start; min-width: 0; }
.field__help, .field__error { margin: 0; }
.field label, .field legend { font-size: var(--fs-sm); font-weight: 600; }
.field .req { color: var(--danger); }
.input { width: 100%; height: 50px; padding: 0 1rem; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--white); color: var(--text); font-size: var(--fs-sm); line-height: 1.4; box-sizing: border-box; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.input::placeholder { color: var(--text-faint); opacity: 1; }
.input:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border-strong)); }
select.input { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236f675c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center; }
textarea.input { height: auto; min-height: 150px; padding: 0.8rem 1rem; resize: vertical; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: var(--fs-xs); font-weight: 600; }
.field__help { color: var(--text-faint); font-size: var(--fs-xs); }
.check { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--text-muted); }
.check input { width: 24px; height: 24px; margin-top: 0.15rem; accent-color: var(--brand); flex: none; }
.ndabox { display: grid; gap: var(--space-3); padding: var(--space-4) var(--space-5); border: 1px solid var(--border-strong); border-left: 3px solid var(--brand); border-radius: var(--radius); background: var(--stone-100); }
.ndabox[hidden] { display: none; }
.ndabox__title { margin: 0; font-weight: 700; display: flex; gap: var(--space-2); align-items: center; }
.ndabox__title .gf-icon { color: var(--brand); }
.ndabox__text { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.flash { padding: var(--space-4) var(--space-5); border-radius: var(--radius); font-size: var(--fs-sm); font-weight: 600; }
.flash--success { background: #eaf6ef; border: 1px solid #a9d3bd; color: #1f5a40; }
.flash--error { background: #fbeeeb; border: 1px solid #e3b0a7; color: #7c2a1c; }

/* --- Fiches matières ------------------------------------------------------------------- */
.mcard { position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); border-radius: var(--radius-lg); border: 1px solid var(--border); border-top: 4px solid var(--accent); background: var(--bg-raised); text-decoration: none; box-shadow: var(--shadow-sm); transition: box-shadow var(--dur), transform var(--dur) var(--ease-out); }
.mcard:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.mcard__symbol { font-family: var(--font-display); font-size: 3.2rem; line-height: 1; color: var(--accent); }
.mcard__name { font-size: var(--fs-xl); }
.mcard p { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); }

/* --- Erreurs ---------------------------------------------------------------------------- */
.errorpage { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.errorpage__code { font-family: var(--font-display); font-size: clamp(5rem, 3rem + 10vw, 10rem); line-height: 1; color: var(--brass); margin: 0; }

/* --- Apparition progressive (seulement si JS chargé) -------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; } }

@media (max-width: 640px) {
    .figure { border-left: 0; border-top: 1px solid var(--border); }
    .figure:first-child { border-top: 0; }
    .gf-logo__sub { display: none; }
    .gf-logo__name { font-size: 1.1rem; }
    .gf-demo { font-size: 0.68rem; line-height: 1.4; }
    .gf-topbar__inner { min-height: 68px; }
}
@media print {
    .gf-header, .gf-footer, .gf-demo, .hero__media, .subnav { display: none !important; }
    body { background: #fff; color: #000; }
}

/* --- Photos d'illustration --------------------------------------------- */
.focus-30-60 { object-position: 30% 60%; }
.focus-40-22 { object-position: 40% 22%; }
.focus-45-50 { object-position: 45% 50%; }
.focus-50-50 { object-position: 50% 50%; }
.focus-50-60 { object-position: 50% 60%; }
.focus-50-65 { object-position: 50% 65%; }
.focus-60-55 { object-position: 60% 55%; }
.focus-60-75 { object-position: 60% 75%; }

/* Mention « Photo d'illustration » posée sur l'image */
.photo-credit { position: absolute; right: 10px; bottom: 10px; z-index: 4; padding: 0.2rem 0.55rem; border-radius: 999px; background: rgba(21, 17, 14, 0.62); color: rgba(255, 255, 255, 0.92); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.02em; line-height: 1.5; pointer-events: auto; }
.photo-credit a { color: inherit; }
.ccard .photo-credit { top: 10px; bottom: auto; right: auto; left: 50%; transform: translateX(-50%); }

/* Ouverture : photo à droite, fondue vers la gauche */
.hero__media .hero__photo { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 32%); mask-image: linear-gradient(90deg, transparent, #000 32%); }
@media (max-width: 760px) { .hero__media .hero__photo { -webkit-mask-image: none; mask-image: none; opacity: 0.25; } .hero__media .photo-credit { display: none; } }

/* En-têtes de page intérieure */
.pagehead__media { position: absolute; top: 0; right: 0; bottom: 0; width: 56%; z-index: -1; }
.pagehead__media .pagehead__photo, .pagehead__media .terrain { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
@media (max-width: 760px) { .pagehead__media { width: 100%; opacity: 0.18; } .pagehead__media .photo-credit { display: none; } }

/* Tuiles d'accès rapide : photo en haut, texte dessous */
.quick__tile { padding-top: 0; }
.quick__media { position: relative; display: block; margin: 0 calc(-1 * var(--space-6)) 0; height: 150px; overflow: hidden; }
.quick__media .quick__img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.quick__tile:hover .quick__img { transform: scale(1.05); }
.quick__tile .quick__icon { margin-top: -26px; position: relative; z-index: 2; }
.quick__title { padding-top: var(--space-3); margin-top: var(--space-3); }

/* Bande photo pleine largeur */
.cinebar--photo { background: var(--ink-900); border: 0; }
.cinebar--photo .cinebar__photo { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.cinebar--photo::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(21, 17, 14, 0.82), rgba(21, 17, 14, 0.25)); pointer-events: none; }
.cinebar--photo > .wrap { position: relative; z-index: 1; }
.cinebar--photo .cinebar__quote { color: #fff; }
.cinebar--photo .cinebar__quote em { color: var(--brass-light); }
.cinebar--photo .photo-credit { z-index: 2; }
.hero__foot { max-width: 560px; }
.ccard--photo .tag-demo { color: var(--brass-light); }
.cohero--photo .tag-demo, .cinebar--photo .tag-demo { color: var(--brass-light); }
.focus-35-70 { object-position: 35% 70%; }
.focus-40-55 { object-position: 40% 55%; }
.focus-40-60 { object-position: 40% 60%; }
.focus-50-45 { object-position: 50% 45%; }
.focus-55-50 { object-position: 55% 50%; }
.focus-55-65 { object-position: 55% 65%; }
.focus-70-55 { object-position: 70% 55%; }

/* Mentions de crédit sur cartes et tuiles : une ligne, coin supérieur droit */
.ccard .photo-credit, .quick__media .photo-credit, .pcard__visual .photo-credit { top: 10px; right: 10px; bottom: auto; left: auto; transform: none; max-width: calc(100% - 90px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__visual .photo-credit { max-width: calc(100% - 150px); }
.ccard__top { justify-content: flex-start; gap: var(--space-3); right: auto; }
.quick__media .photo-credit { max-width: calc(100% - 20px); }

.gf-preprod { position: static; background: #1f4d7a; }

/* Mobile : la photo devient un bandeau net au-dessus du titre, au lieu d'un
   voile pâle derrière le texte. */
@media (max-width: 760px) {
    .hero__media { position: relative; inset: auto; height: 260px; opacity: 1; z-index: 0; }
    .hero__media .hero__photo { opacity: 1; -webkit-mask-image: none; mask-image: none; }
    .hero__media .photo-credit { display: block; max-width: calc(100% - 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .hero__content { min-height: 0; padding-block: var(--space-7) var(--space-7); }
    .pagehead { padding-top: 0; }
    .pagehead__media { position: relative; width: auto; height: 190px; opacity: 1; margin-bottom: var(--space-6); z-index: 0; }
    .pagehead__media .pagehead__photo, .pagehead__media .terrain { -webkit-mask-image: none; mask-image: none; }
    .pagehead__media .photo-credit { display: block; max-width: calc(100% - 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}


/* --- Sociétés du groupe : logos, charte, modules ----------------------- */
.cologo { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: var(--white); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: var(--shadow-sm); overflow: hidden; }
.cologo img { width: 100%; height: 100%; object-fit: contain; }
.cologo:not(.is-mono) { border-radius: var(--radius); }
.cologo:not(.is-mono):not(.is-dark) img { padding: 4%; }
.cologo.is-dark { background: var(--co-deep, #1f1d1b); border-radius: var(--radius); }
.cologo.is-dark img { padding: 8%; }
.cologo.is-mono { font-family: var(--font-display); color: var(--accent); }
.cologo--card { width: 64px; height: 64px; }
.cologo--card.is-dark { width: 112px; height: 54px; }
.cologo--menu { width: 72px; height: 72px; margin-bottom: var(--space-3); font-size: 1.3rem; }
.cologo--menu.is-dark { width: 132px; height: 64px; }
.cologo--sm { width: 52px; height: 52px; font-size: 1rem; }
.cologo--sm.is-dark { width: 96px; height: 46px; }
.cologo--hero { width: 112px; height: 112px; font-size: 2rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.cologo--hero.is-dark { width: 210px; height: 100px; border: 1px solid rgba(255, 255, 255, 0.18); }
.ccard__legal { display: block; font-size: var(--fs-sm); color: var(--text-muted); margin: -0.25rem 0 var(--space-2); }

.gf-mega__tiles { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-3); }
.gf-mega__tile { display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; padding: var(--space-5) var(--space-3); border-radius: var(--radius-lg); text-decoration: none; border: 1px solid var(--border); background: var(--white); border-top: 4px solid var(--accent); transition: transform var(--dur-fast), box-shadow var(--dur-fast); }
.gf-mega__tile:hover, .gf-mega__tile:focus-visible, .gf-mega__tile[aria-current] { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.gf-mega__tile .gf-mega__name { font-size: var(--fs-sm); }
@media (max-width: 1100px) { .gf-mega__tiles { grid-template-columns: repeat(3, 1fr); } }

.cohero__brand { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; }
.cohero__legal { font-size: var(--fs-lg); margin: var(--space-2) 0 0; color: var(--co-glow, var(--brand-50)); font-weight: 600; letter-spacing: 0.01em; }
.cohero--photo::after { background: linear-gradient(90deg, color-mix(in srgb, var(--co-deep, #13110f) 92%, transparent), color-mix(in srgb, var(--co-deep, #13110f) 25%, transparent)); }
.cohero--photo .eyebrow { color: var(--co-glow, var(--brand-50)); }
.cohero--photo .eyebrow::before { background: var(--co-glow, var(--accent)); }
/* Sur fond sombre, chaque société garde sa couleur (version lumineuse). */
[data-accent] .theme-dark { --accent: var(--co-glow, var(--brass-light)); --accent-strong: var(--co-glow, #ecd49c); --accent-text: var(--co-glow, var(--brass-light)); }

.cofacts { margin-bottom: var(--space-5); }
.cofacts .figure__value { color: var(--accent); }
.copending { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-5); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 8%, var(--white)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); color: var(--text-muted); margin: 0; max-width: 80ch; }
.copending .gf-icon { color: var(--accent); flex: none; margin-top: 0.15rem; }

.coservice { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); border-top: 4px solid var(--accent); box-shadow: var(--shadow-sm); }
.coservice__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--white)); margin-bottom: var(--space-4); }
.coservice h3 { font-size: var(--fs-lg); margin-bottom: var(--space-3); }
.coservice ul { margin: 0; padding-left: 1.1rem; color: var(--text-muted); display: grid; gap: var(--space-2); }
.coservice li::marker { color: var(--accent); }
.costrengths__title { margin: var(--space-8) 0 var(--space-4); font-size: var(--fs-lg); }

.coequip { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.coequip__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.coequip__body { padding: var(--space-5); border-top: 4px solid var(--accent); }
.coequip__body h3 { font-size: var(--fs-md, 1.1rem); margin-bottom: var(--space-2); }
.coequip__body p { color: var(--text-muted); margin: 0; font-size: var(--fs-sm); }

.cogallery { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 900px) { .cogallery { grid-template-columns: repeat(2, 1fr); } }
.cogallery figure { margin: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.cogallery__img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--white); }
.cogallery figcaption { padding: var(--space-4) var(--space-5); font-size: var(--fs-sm); color: var(--text-muted); border-left: 4px solid var(--accent); }

.cocontacts { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 0 0 var(--space-6); text-align: left; }
.cocontacts dt { display: flex; gap: 0.4rem; align-items: center; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: var(--space-2); }
.cocontacts dd { margin: 0; }
.cocontacts a { color: inherit; }

.cosiblings__list { list-style: none; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: var(--space-5); }
.cosiblings__list a { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-4); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--accent); text-decoration: none; color: var(--text); height: 100%; }
.cosiblings__list a:hover { box-shadow: var(--shadow-md); }
.cosiblings__list strong { display: block; font-size: var(--fs-sm); }
.cosiblings__list small { display: block; color: var(--text-faint); font-size: var(--fs-xs); }

/* --- Page société « vitrine » : en-tête, méthode, bandeau ------------- */
.cohero--facts .cohero__content { min-height: min(78vh, 760px); padding-bottom: var(--space-6); }
.cohero--photo::after { background: linear-gradient(100deg, color-mix(in srgb, var(--co-deep, #13110f) 90%, transparent) 0%, color-mix(in srgb, var(--co-deep, #13110f) 55%, transparent) 45%, color-mix(in srgb, var(--co-deep, #13110f) 5%, transparent) 100%), linear-gradient(0deg, color-mix(in srgb, var(--co-deep, #13110f) 70%, transparent), transparent 35%); }
.cohero__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; margin: var(--space-8) 0 0; max-width: 860px; border-radius: var(--radius-lg); overflow: hidden; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cohero__facts div { padding: var(--space-4) var(--space-5); background: rgba(16, 14, 12, 0.42); }
.cohero__facts dt { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; color: var(--accent); }
.cohero__facts dd { margin: var(--space-2) 0 0; font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.82); }

.cointro__fig { position: relative; margin: var(--space-6) 0 0; padding: 10px; background: var(--bg-raised); border: 2px solid var(--accent); border-radius: calc(var(--radius-lg) + 10px); box-shadow: var(--shadow-md); }
.cointro__img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.cointro__fig figcaption { margin: 0; padding: var(--space-4) var(--space-3) var(--space-2); font-size: var(--fs-sm); line-height: 1.5; color: var(--text-muted); }
.cocontacts a:focus:not(:focus-visible), .cocontacts a.is-clicked:focus { outline: none; }

.coservice--photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.coservice--photo > :not(.coservice__media) { margin-inline: var(--space-6); }
.coservice--photo ul { margin-bottom: var(--space-6); }
.coservice__media { position: relative; }
.coservice__img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.coservice--photo .coservice__icon { margin-top: -28px; position: relative; z-index: 1; background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.coservice--photo { border-top: 0; }
.coservice__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); }
.coservice__media .photo-credit { position: absolute; right: 8px; top: 8px; bottom: auto; }

.comethod { position: relative; background: var(--co-deep, #1f1d1b); color: var(--white); overflow: hidden; isolation: isolate; }
.comethod::before { content: ""; position: absolute; inset: -20%; z-index: -1; opacity: 0.16; background: repeating-radial-gradient(ellipse at 80% 30%, transparent 0 22px, var(--accent) 23px 24px); }
.comethod .title-lg { color: var(--white); }
.comethod__lead { color: rgba(255, 255, 255, 0.78); max-width: 60ch; }
.comethod__steps { list-style: none; padding: 0; margin: var(--space-7) 0 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.comethod__steps li { position: relative; padding: var(--space-6) var(--space-5); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); }
.comethod__steps li:not(:last-child)::after { content: ""; position: absolute; top: 46px; right: -14px; width: 24px; height: 2px; background: var(--accent); }
.comethod__num { display: block; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--accent); margin-bottom: var(--space-4); }
.comethod__steps h3 { color: var(--white); font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.comethod__steps p { color: rgba(255, 255, 255, 0.74); margin: 0; font-size: var(--fs-sm); }
@media (max-width: 720px) { .comethod__steps li::after { display: none; } }

.cobanner { position: relative; min-height: clamp(340px, 52vh, 560px); display: grid; align-items: end; overflow: hidden; isolation: isolate; color: var(--white); }
.cobanner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; z-index: -2; }
.cobanner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, color-mix(in srgb, var(--co-deep, #13110f) 88%, transparent), color-mix(in srgb, var(--co-deep, #13110f) 10%, transparent) 70%); }
.cobanner__content { padding-block: var(--space-8); }
.cobanner__quote { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.1; max-width: 22ch; margin: 0; color: var(--white); }
.cobanner__quote::before { content: ""; display: block; width: 56px; height: 4px; background: var(--accent); margin-bottom: var(--space-5); }
.cobanner__sub { margin: var(--space-4) 0 0; color: rgba(255, 255, 255, 0.82); max-width: 58ch; }

/* Cartes, plans et modèles : affichés en entier. Photos de terrain : plein cadre. */
.cogallery__img { object-fit: cover; object-position: 50% 35%; padding: 0; }
.cogallery__img[src*="livrable"], .cogallery__img[src*="modele-3d"], .cogallery__img[src*="carte"] { object-fit: contain; padding: var(--space-3); }
/* Bouton principal sur fond sombre : couleur lumineuse de la société, texte foncé (contraste AA). */
[data-accent] .theme-dark .btn--gold { background: var(--co-glow, var(--brass-light)); border-color: var(--co-glow, var(--brass-light)); color: #17130f; }

/* Récits illustrés et piliers (pages société). */
.costory__grid { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 900px) { .costory__grid { grid-template-columns: 1fr 1fr; gap: var(--space-9, 5rem); } .costory--flip .costory__media { order: -1; } }
.costory__text > p { color: var(--text-muted); max-width: 58ch; }
.costory__points { margin-top: var(--space-5); grid-template-columns: 1fr; }
.costory__media { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.costory__media::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent); z-index: 3; }
.costory__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform var(--dur-slow) var(--ease-out); }
.costory__media:hover .costory__img { transform: scale(1.03); }
.copillars__lead { max-width: 62ch; color: var(--text-muted); }
.copillars__grid { margin-top: var(--space-6); }
.copillar { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-sm); transition: transform var(--dur-fast), box-shadow var(--dur-fast), border-color var(--dur-fast); }
.copillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.copillar h3 { font-size: var(--fs-lg); margin: var(--space-4) 0 var(--space-2); }
.copillar p { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }
.cogallery figure { position: relative; }
.coservice__img + .photo-credit { top: 8px; bottom: auto; }
.cointro__fig .photo-credit { top: 20px; right: 20px; bottom: auto; }

/* --- Accueil : logos, récit, vitrine, chaîne, mosaïque ------------------- */
.homelogos { background: var(--white); border-bottom: 1px solid var(--border); }
.homelogos .wrap { display: flex; align-items: center; gap: var(--space-6); padding-block: var(--space-5); flex-wrap: wrap; }
.homelogos__label { margin: 0; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); max-width: 16ch; }
.homelogos__list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); flex: 1; justify-content: space-between; margin: 0; padding: 0; }
.homelogos__list a { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--text); font-weight: 700; font-size: var(--fs-xs); letter-spacing: 0.06em; padding: var(--space-2) var(--space-3); border-radius: var(--radius); transition: background var(--dur-fast), transform var(--dur-fast); }
.homelogos__list a:hover { background: var(--stone-50); transform: translateY(-2px); }
.cologo--strip { width: 52px; height: 52px; font-size: 1rem; }
.cologo--strip.is-dark { width: 104px; height: 50px; }
.cologo--chip { width: 34px; height: 34px; font-size: 0.75rem; box-shadow: none; }
.cologo--chip.is-dark { width: 68px; height: 34px; }

.homeabout__media figcaption { position: absolute; left: 6px; bottom: 0; right: 0; padding: var(--space-6) var(--space-5) var(--space-4); color: var(--white); font-size: var(--fs-sm); background: linear-gradient(0deg, rgba(16, 14, 12, 0.75), transparent); z-index: 2; }
.homeabout .btn { margin-top: var(--space-6); }
.homefigs .figure__value { color: var(--brand); }

.showcase { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 720px) { .showcase { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .showcase { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; } .showcase__item--lead { grid-column: span 2; grid-row: span 2; } .showcase__item:nth-child(5):last-child { grid-column: span 2; } }
.showcase__item { position: relative; display: flex; align-items: flex-end; min-height: 300px; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--white); isolation: isolate; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur); }
.showcase__item:hover, .showcase__item:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.showcase__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform var(--dur-slow) var(--ease-out); }
.showcase__item:hover .showcase__img { transform: scale(1.05); }
.showcase__item::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, color-mix(in srgb, var(--co-deep, #13110f) 95%, transparent) 0%, color-mix(in srgb, var(--co-deep, #13110f) 78%, transparent) 40%, color-mix(in srgb, var(--co-deep, #13110f) 40%, transparent) 72%, color-mix(in srgb, var(--co-deep, #13110f) 12%, transparent) 100%); }
.showcase__item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--accent); z-index: 2; }
.showcase__item .photo-credit { top: 12px; bottom: auto; right: 10px; }
.showcase__body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; padding: var(--space-6); padding-top: 3.5rem; width: 100%; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45); }
.showcase__body .cologo { margin-bottom: var(--space-3); text-shadow: none; }
.showcase__sector { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--co-glow, var(--brass-light)); }
.showcase__name { font-family: var(--font-display); font-size: var(--fs-xl); line-height: 1.1; }
.showcase__item--lead .showcase__name { font-size: clamp(2rem, 4vw, 3.2rem); }
.showcase__legal { color: var(--co-glow, var(--brass-light)); font-weight: 600; }
.showcase__tag { color: rgba(255, 255, 255, 0.85); font-size: var(--fs-sm); max-width: 48ch; }
.showcase__go { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: var(--space-3); font-size: var(--fs-sm); font-weight: 700; color: var(--white); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

.homechain .title-xl { color: var(--white); }
.homechain__cos { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.homechain__cos a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.7rem 0.3rem 0.3rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); color: var(--white); text-decoration: none; font-size: var(--fs-xs); font-weight: 700; }
.homechain__cos a:hover { background: rgba(255, 255, 255, 0.16); }
.homechain__cos .cologo { border-radius: 999px; }

.mosaic { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 720px) { .mosaic { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; } .mosaic__item--1 { grid-column: span 2; grid-row: span 2; } }
.mosaic__item { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; min-height: 230px; background: var(--white); }
.mosaic__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.mosaic__item--5 .mosaic__img { object-fit: contain; padding: var(--space-3); }
.mosaic__item:hover .mosaic__img { transform: scale(1.04); }
.mosaic__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-6) var(--space-4) var(--space-3); color: var(--white); font-size: var(--fs-sm); font-weight: 600; background: linear-gradient(0deg, rgba(16, 14, 12, 0.8), transparent); }
@media (max-width: 999px) { .mosaic__item { aspect-ratio: 4 / 3; min-height: 0; } }

/* Accueil : logistique route / rail / mer. */
.homelog__grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 1000px) { .homelog__grid { grid-template-columns: 1fr 1fr 2fr; } }
.homelog__item { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--dur-fast), box-shadow var(--dur-fast); }
.homelog__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.homelog__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.homelog__item--sea .homelog__media { aspect-ratio: auto; flex: 1; min-height: 260px; }
.homelog__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.homelog__item:hover .homelog__img { transform: scale(1.04); }
.homelog__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--brand); }
.homelog__media .photo-credit { top: 8px; bottom: auto; }
.homelog__body { padding: 0 var(--space-6) var(--space-6); }
.homelog__body .coservice__icon { margin-top: -28px; position: relative; z-index: 1; background: var(--white); border: 1px solid var(--border); color: var(--brand); }
.homelog__body h3 { font-size: var(--fs-lg); margin: var(--space-3) 0 var(--space-2); }
.homelog__body p { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }
/* Cadrages de photos (valeur « focus » de content/photos.php). */
img.focus-85-40 { object-position: 85% 40%; }
img.focus-50-55 { object-position: 50% 55%; }
img.focus-50-45 { object-position: 50% 45%; }
img.focus-50-60 { object-position: 50% 60%; }

/* --- Demande de devis ----------------------------------------------------- */
.quoteband { background: var(--co-deep, #1f1d1b); color: var(--white); }
.quoteband__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5); padding-block: var(--space-7); border-left: 6px solid var(--accent); padding-left: var(--space-6); }
.quoteband h2 { color: var(--white); font-size: var(--fs-xl); margin: 0 0 var(--space-2); }
.quoteband p { margin: 0; color: rgba(255, 255, 255, 0.8); max-width: 60ch; }
.quotehead { position: relative; isolation: isolate; overflow: hidden; color: var(--white); }
.quotehead__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.quotehead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, color-mix(in srgb, var(--co-deep, #13110f) 92%, transparent), color-mix(in srgb, var(--co-deep, #13110f) 55%, transparent)); }
.quotehead__content { padding-block: var(--space-8); }
.quotehead .crumbs, .quotehead .crumbs a { color: var(--white); }
.quotehead__title { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; margin: 0; font-weight: 400; }
.quotehead__lead { color: rgba(255, 255, 255, 0.85); font-size: var(--fs-lg); max-width: 56ch; margin: var(--space-5) 0 0; }
.quote__grid { display: grid; gap: var(--space-7); }
@media (min-width: 960px) { .quote__grid { grid-template-columns: 1fr 2fr; align-items: start; } .quote__aside { position: sticky; top: 90px; } }
.quote__next { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; gap: var(--space-4); }
.quote__next li { display: flex; gap: var(--space-4); align-items: flex-start; color: var(--text-muted); }
.quote__next span { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--white); background: color-mix(in srgb, var(--accent) 66%, #17130f); }
.quote__direct { margin-top: var(--space-7); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--accent); }
.quote__direct p { display: flex; gap: 0.5rem; align-items: center; margin: var(--space-2) 0; }
.quote__direct a { color: var(--text); }
.quote__step { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6) var(--space-6); margin: 0 0 var(--space-5); background: var(--white); }
.quote__step legend { font-family: var(--font-display); font-size: var(--fs-lg); padding: 0 var(--space-2); color: var(--text); }
.quote__services { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin-top: var(--space-3); }
.quote__service { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: border-color var(--dur-fast), background var(--dur-fast); }
.quote__service:hover { border-color: var(--accent); }
.quote__service:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--white)); }
.quote__service input { margin-top: 0.2rem; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.quote__surface { display: grid; grid-template-columns: 1fr 90px; gap: var(--space-2); }


/* --- Groupes de champs (fieldset) : titre dans la carte, pas sur la bordure. */
.form fieldset { min-width: 0; }
.quote__step { display: grid; gap: var(--space-5); padding: var(--space-6); }
.quote__step legend { float: left; width: 100%; padding: 0 0 var(--space-3); margin: 0; border-bottom: 1px solid var(--border); font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.3; }
.quote__step legend .req { color: var(--danger); font-family: var(--font-body, inherit); }
.quote__step > .field__help { margin-top: calc(var(--space-2) * -1); }
.quote__services { margin-top: 0; }
.quote__service { align-items: center; min-height: 56px; font-size: var(--fs-sm); line-height: 1.35; }
.quote__service input { margin-top: 0; }
.quote__surface { align-items: start; }
.quote__surface .input { min-width: 0; }
@media (max-width: 600px) { .quote__step { padding: var(--space-5) var(--space-4); } }

/* Trois piliers de gouvernance : une seule ligne, jamais une carte orpheline. */
#gouvernance .pillars { grid-template-columns: 1fr; }
@media (min-width: 720px) { #gouvernance .pillars { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { #gouvernance .split { grid-template-columns: 1fr; } #gouvernance .split > div:first-child { max-width: 720px; } }

/* --- Carte interactive de Côte d’Ivoire ------------------------------------ */
.cimap__canvas { background: radial-gradient(ellipse at 50% 40%, #fbf8f2, #efe8dc); }
.cimap__svg { width: 100%; height: auto; max-height: 720px; display: block; margin: 0 auto; }
.cimap__land { fill: #f3ead9; stroke: #b9a47a; stroke-width: 2; stroke-linejoin: round; }
.cimap__texture { fill: url(#cimap-dots); pointer-events: none; }
.cimap__dot { fill: #d4bf92; }
.cimap__city circle { fill: #8a7d6a; }
.cimap__city text { font-size: 13px; fill: #6f675c; font-family: var(--font-body); }
.cimap__city.is-hq circle { fill: var(--brand); stroke: #fff; stroke-width: 2; }
.cimap__city.is-hq text { fill: var(--brand); font-weight: 700; }
.cimap__marker { cursor: pointer; outline: none; }
.cimap__marker .marker__dot { fill: var(--accent); stroke: #fff; stroke-width: 2.5; }
.cimap__marker .marker__ring { fill: none; stroke: var(--accent); stroke-width: 2; opacity: .55; }
.cimap__marker .marker__halo { fill: var(--accent); opacity: .14; }
.cimap__marker:hover .marker__halo, .cimap__marker:focus-visible .marker__halo, .cimap__marker.is-active .marker__halo { opacity: .32; }
.cimap__marker:focus-visible .marker__ring { stroke-width: 4; opacity: 1; }
.cimap__label { font-size: 14px; font-weight: 700; fill: var(--ink-900, #201b17); paint-order: stroke; stroke: #fbf8f2; stroke-width: 4px; font-family: var(--font-body); }
.cimap__area { fill: var(--accent); opacity: .12; stroke: var(--accent); stroke-width: 1.5; }
.cimap__area.is-target { fill: none; stroke-dasharray: 6 5; opacity: .9; }
.cimap__marker.is-hidden { display: none; }
.cimap__card { width: 300px; padding: 0; overflow: hidden; }
.cimap__cardmedia { position: relative; height: 120px; overflow: hidden; }
.cimap__cardimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.cimap__cardbody { padding: var(--space-4) var(--space-5) var(--space-5); border-top: 4px solid var(--accent); }
.cimap__co { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.cimap__cardbody h3 { margin: var(--space-2) 0 var(--space-3); font-size: var(--fs-lg); }
.cimap__facts { display: grid; gap: .3rem; margin: 0 0 var(--space-4); font-size: var(--fs-sm); }
.cimap__facts div { display: grid; grid-template-columns: 96px 1fr; gap: .5rem; }
.cimap__facts dt { color: var(--text-faint); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; padding-top: .15rem; }
.cimap__facts dd { margin: 0; }
.cimap__card .mapcard__close { position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(255,255,255,.9); }
.cimap__legend { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; padding: var(--space-3) 0 0; margin: 0; font-size: var(--fs-xs); color: var(--text-muted); }
.cimap__legend li { display: inline-flex; align-items: center; gap: .4rem; }
.cimap__swatch { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--accent); }
.cimap__swatch--area { background: transparent; border: 2px dashed var(--brand); box-shadow: none; }
@media (max-width: 720px) { .cimap__label { font-size: 18px; } .cimap__card { width: min(300px, calc(100% - 16px)); } }
.group__h3 { font-size: var(--fs-lg); margin: var(--space-5) 0 var(--space-2); }
.partner__type { text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: var(--space-2); }
.partner__type .link-arrow { margin-top: auto; }
/* Accueil : ressources minières. */
.homeres { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.homeres a { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--border); border-top: 4px solid var(--accent); text-decoration: none; color: var(--text); transition: transform var(--dur-fast), box-shadow var(--dur-fast); }
.homeres a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.homeres__symbol { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--accent); }
.homeres small { color: var(--text-muted); font-size: var(--fs-xs); }
.cimap .worldmap__canvas, .cimap__canvas { height: auto !important; aspect-ratio: auto !important; overflow: visible; }
.cimap__svg { max-height: 760px; }
.cimap .worldmap__svg.cimap__svg { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 640 / 640; max-height: 760px; }

/* Bandeau « alerte opportunités » */
.alertband { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-5); align-items: center; padding: var(--space-6) var(--space-7); border-radius: var(--radius-lg); background: var(--bg-alt); border: 1px solid var(--border); border-left: 4px solid var(--brass); }
.alertband__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--bg-raised); color: var(--brand); }
.alertband__text h2 { margin: 0 0 var(--space-1); }
.alertband__text p { margin: 0; color: var(--text-muted); }
@media (max-width: 760px) {
    .alertband { grid-template-columns: 1fr; text-align: left; padding: var(--space-5); }
    .alertband__icon { width: 48px; height: 48px; }
}

/* Liens isolés (« Toutes les actualités », « Présence mondiale »…) : 24 px de haut au moins. */
.link-arrow { min-height: 24px; }
.hero__foot a { display: inline-block; padding-block: 3px; }
.ticklist { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.ticklist li { display: flex; gap: var(--space-3); align-items: flex-start; color: var(--text-muted); }
.ticklist .gf-icon { flex: none; color: var(--brand); margin-top: 0.2rem; }
.homeabout__media .photo-credit { top: 12px; bottom: auto; right: 10px; }

/* Veille du secteur minier */
.veille__filters { margin-bottom: var(--space-5); }
.veille { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 0 var(--space-6); }
.veille__item { border-top: 1px solid var(--border-strong); }
.veille__link { display: grid; gap: var(--space-2); padding: var(--space-4) 0; text-decoration: none; color: var(--text); }
.veille__link:hover .veille__title { color: var(--brand); }
.veille__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; font-size: var(--fs-xs); color: var(--text-faint); letter-spacing: .04em; }
.veille__source { font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.veille__lang, .veille__tag { display: inline-block; padding: 0 .45rem; border-radius: 999px; border: 1px solid var(--border-strong); font-weight: 700; font-size: .68rem; line-height: 1.5; }
.veille__tag--or { border-color: color-mix(in srgb, var(--brass) 60%, transparent); color: color-mix(in srgb, var(--brass) 70%, var(--text)); }
.veille__tag--afrique { border-color: color-mix(in srgb, var(--brand) 50%, transparent); color: var(--brand); }
.veille__title { font-weight: 600; line-height: 1.35; }
.veille__ext { color: var(--text-faint); font-weight: 400; }
.veille--compact { grid-template-columns: 1fr; }
.veille--compact .veille__title { font-size: var(--fs-sm); }
.veille__note { margin-top: var(--space-4); }
.maplink { display: inline-block; margin-top: .35rem; font-weight: 600; min-height: 24px; }

/* QR code à scanner */
.qrbox { display: flex; align-items: center; gap: var(--space-4); margin: var(--space-6) 0 0; padding: var(--space-3) var(--space-4) var(--space-3) var(--space-3); max-width: 460px; background: var(--bg-raised); border: 1px solid var(--border-strong); border-radius: var(--radius); }
.qrbox__img { flex: none; width: 132px; height: 132px; display: block; background: #fff; }
.qrbox__img--live img, .qrbox__img--live canvas { width: 132px; height: 132px; }
.qrbox figcaption { display: grid; gap: .3rem; font-size: var(--fs-sm); color: var(--text-muted); }
.qrbox figcaption strong { color: var(--text); font-weight: 600; line-height: 1.35; }
.qrbox figcaption span { font-size: var(--fs-xs); word-break: break-all; }
.qrbox__dl { font-size: var(--fs-xs); font-weight: 600; color: var(--brand); min-height: 24px; display: inline-flex; align-items: center; }
.qrrow { display: flex; flex-wrap: wrap; gap: var(--space-4); margin: var(--space-6) 0 0; }
.qrrow .qrbox { margin: 0; flex: 1 1 340px; }
@media (max-width: 480px) { .qrbox { flex-direction: column; align-items: flex-start; } }
@media print { .qrbox { break-inside: avoid; } }

/* En-tête ISM : la photo « voile » est haute ; on garde le geste (homme et voile) visible. */
.cohero img.terrain[src*="ism-voile"] { object-position: 50% 22%; }

/* Flèche « revenir en haut » : apparaît après un défilement. */
.gf-footer__bottom { padding-bottom: calc(var(--space-5) + 56px); }
@media (min-width: 900px) { .gf-footer__bottom { padding-bottom: var(--space-5); padding-right: 64px; } }
.totop { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--umber); color: var(--white); box-shadow: var(--shadow-md); border: 1px solid rgba(255, 255, 255, 0.18); transition: opacity var(--dur), transform var(--dur), background var(--dur); }
.totop:hover { background: var(--brand); }
.totop:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.js .totop:not(.is-visible) { opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .totop { transition: none; } }
@media print { .totop { display: none; } }
