/*
 * main.css — Comptoir Savoyard de Change Annecy
 */

/* ================================================================
   POLICES AUTO-HÉBERGÉES
   ================================================================ */

/* Newsreader — variable font (axe wght 100–900 + opsz) */
@font-face {
    font-family: 'Newsreader';
    src: url('../fonts/Newsreader[opsz,wght].woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Newsreader';
    src: url('../fonts/Newsreader-Italic[opsz,wght].woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* DM Sans — fichiers statiques */
@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/DMSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/DMSans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/DMSans-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ================================================================
   DESIGN TOKENS
   ================================================================ */

:root {
    /* Surfaces claires */
    --c-fond:        #F3EFE7;   /* papier ivoire */
    --c-fond-alt:    #F1E9DF;   /* papier alternatif */
    --c-fond-blanc:  #FFFFFF;
    --c-fond-clair:  #fbf8f3;
    --c-bord:        #D6CFC4;   /* trait subtil */
    /* Surfaces sombres */
    --c-fond-sombre:   #1B2D45;  /* bleu nuit profond */
    --c-fond-sombre-2: #243754;
    /* Texte */
    --c-texte:   #172536;   /* encre */
    --c-texte-2: #53545A;   /* encre secondaire */
    /* Accent or */
    --c-or:       #B8923A;
    --c-or-clair: #C8A75B;
    --c-or-fonce: #9A7830;
    /* Aliases DA v2 */
    --c-papier:    var(--c-fond);
    --c-papier-alt: var(--c-fond-alt);
    --c-encre:     var(--c-texte);
    --c-encre-2:   var(--c-texte-2);
    --c-bleu-nuit: #112D3F;      /* bleu nuit DA */
    --c-trait:     var(--c-bord);
    --c-texte-inv: rgba(255, 255, 255, 0.82);  /* texte clair sur fond sombre */
    /* Typographie */
    --font-titre: 'Newsreader', Georgia, serif;
    --font-corps: 'DM Sans', system-ui, sans-serif;
    /* Échelle typographique fluide */
    --t-h1-hero: clamp(2.25rem, 5vw, 4.25rem);
    --t-h1:      clamp(1.875rem, 3.5vw, 3.125rem);
    --t-h2:      clamp(1.5rem, 2.5vw, 2.375rem);
    --t-h3:      clamp(1rem, 1.5vw, 1.375rem);
    --t-corps:   1rem;
    --t-body-lg: 1.0625rem;   /* corps large — intro, sous-titres éditoriaux */
    --t-petit:   0.875rem;
    /* Espacement */
    --s-xs:  8px;
    --s-sm:  16px;
    --s-md:  24px;
    --s-lg:  40px;
    --s-xl:  64px;
    --s-2xl: 96px;
    /* Mise en page */
    --w-max:          1200px;
    --w-texte:        760px;
    --padding-inline: 16px;
    /* Header */
    --header-height: 72px;
    --logo-height:   44px;
    /* Départ du morph ×→☰ à la fermeture de l'offcanvas. */
    --offcanvas-morph-close-delay: 500ms;
    /* DA v2 — labels + homepage */
    --t-label:    0.6875rem;
    --ls-label:   0.1em;
    --lm-label:   0.2em;
    --hp-hero-pad: clamp(40px, 6vw, 88px);
}

/* ================================================================
   RESET
   ================================================================ */

*, *:before, *:after { box-sizing: border-box; }

/* ================================================================
   COULEURS GLOBALES
   ================================================================ */

a       { color: var(--c-texte); }
a:hover { color: var(--c-or-fonce); }

/* ================================================================
   SHELL LAYOUT — pleine largeur
   Chaque section contrôle sa propre largeur maximale.
   ================================================================ */

#sp-main-body {
    padding: 0;
}


/* ================================================================
   FILTRE DEVISES
   ================================================================ */

/* Centrage du texte d'intro sous le h1 */
#titre-60-monnaies .class-titre-isotope p {
    width: 100%;
    text-align: center;
}

/* Espacement vertical de la zone devises */
#devises-01 {
    padding: 40px 0 50px;
}

/* Container structurel 1360px — transparent, ne contient pas le fond gris */
#devises-01 > .devise-container {
    width: 100%;
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: 15px;
    box-sizing: border-box;
}

/* Fond gris uniquement sur la grille de flags */
.isotope {
    background-color: #f4f4f4;
    padding: 20px 0 24px;
}

/* Boutons de filtre -------------------------------------------- */

#groupe-de-boutons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 16px 0 28px;
    align-items: center;
    width: 100%;
}

#groupe-de-boutons .button {
    padding: 7px 18px;
    min-height: 36px;
    min-width: 80px;
    white-space: nowrap;
    border: 1px solid var(--c-or);
    border-radius: 3px;
    background: transparent;
    color: var(--c-texte-2);
    font-family: var(--font-corps);
    font-size: 13px;
    line-height: 1.3;
    cursor: pointer;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
    -webkit-appearance: none;
    appearance: none;
}


#groupe-de-boutons .button:hover {
    background-color: var(--c-or-clair);
    border-color: var(--c-or-clair);
    color: #fff;
}

#groupe-de-boutons .button.is-checked,
#groupe-de-boutons .button[aria-pressed="true"] {
    background-color: var(--c-or);
    border-color: var(--c-or);
    color: #fff;
}

.interieur-bouton { pointer-events: none; }

/* Grille des cartes devises ------------------------------------ */

/*
 * width:100% : le container parent est flex — sans cette règle, .isotope
 * se dimensionne à sa taille intrinsèque (~1 colonne).
 * Colonnes fixes + justify-content:center : cards jamais étirées, grille centrée
 * quand peu de résultats. auto-fill gère les breakpoints naturellement.
 */
.isotope {
    display: grid;
    grid-template-columns: repeat(auto-fill, 100px);
    gap: 20px;
    justify-content: center;
    width: 100%;
}

.element-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 6px 10px;
    border: 1px solid #e0e0e0;
    background: #fff;
    text-align: center;
    /* transitions gérées en inline style par le FLIP JS */
}

.element-item.is-hidden { display: none; }

.image-drapeau {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Surcharge Bootstrap h3 (24px) et p { margin: 0 0 10px } */
.element-item h3.pays {
    margin: 8px 0 3px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    font-family: var(--font-corps);
    color: var(--c-texte);
}

.element-item p.monnaie {
    margin: 0;
    font-size: 11px;
    line-height: 1.3;
    color: var(--c-texte-2);
    font-family: var(--font-corps);
}

/* Responsive --------------------------------------------------- */

/* auto-fill 100px */

@media (max-width: 480px) {
    #groupe-de-boutons .button {
        font-size: 12px;
        padding: 5px 12px;
        min-width: 70px;
    }
}

/* ================================================================
   ICÔNES SVG
   ================================================================ */

.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Icônes inline dans du texte courant (adresse, téléphone) */
.icon-lg {
    width: 1.5em;
    height: 1.5em;
}

/* Chevron menu desktop — taille fixe, indépendant du système .icon */
.menu-chevron {
    display: inline-block;
    vertical-align: middle;
    width: 13px;
    height: 13px;
    margin-left: 3px;
    flex-shrink: 0;
}

/* Neutralise le ::after FA (\f107) d'un éventuel bundle legacy ; le SVG .menu-chevron est l'unique indicateur de sous-menu. */
.sp-megamenu-parent>li.sp-has-child>a::after {
    content: none;
}

/* Nav desktop — couleurs item actif/survol et dropdown */
.sp-megamenu-parent>li.active>a,
.sp-megamenu-parent>li:hover>a {
    color: var(--c-or);
}
.sp-megamenu-parent .sp-dropdown li.sp-menu-item>a:hover { background: var(--c-or-fonce); }
.sp-megamenu-parent .sp-dropdown li.sp-menu-item.active>a { color: var(--c-or-clair); }

/* Couleurs contextuelles */
#offcanvas-toggler {
    color: var(--c-fond-blanc);
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 991px) {
    #offcanvas-toggler {
        position: relative;
        z-index: 260;
    }
}

/* ----------------------------------------------------------------
   Hamburger animation
   ---------------------------------------------------------------- */
.toggler-svg {
    display: inline-block;
    vertical-align: middle;
    overflow: visible;
}

.toggler-svg .ln-top,
.toggler-svg .ln-mid,
.toggler-svg .ln-bot {
    transform-box: view-box;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
/* transform-origin*/
.toggler-svg .ln-top { transform-origin: 12px  6px; }
.toggler-svg .ln-mid { transform-origin: 12px 12px; }
.toggler-svg .ln-bot { transform-origin: 12px 18px; }

body.offcanvas .toggler-svg .ln-top { transform: translateY(6px)  rotate(45deg); }
body.offcanvas .toggler-svg .ln-mid { opacity: 0; transform: scaleX(0); }
body.offcanvas .toggler-svg .ln-bot { transform: translateY(-6px) rotate(-45deg); }

/* Morph seulement, indépendant des 730ms. */
#sp-header:has(.offcanvas-menu.is-closing) .toggler-svg .ln-top,
#sp-header:has(.offcanvas-menu.is-closing) .toggler-svg .ln-mid,
#sp-header:has(.offcanvas-menu.is-closing) .toggler-svg .ln-bot {
    transition-delay: var(--offcanvas-morph-close-delay);
}

@media (prefers-reduced-motion: reduce) {
    .toggler-svg .ln-top,
    .toggler-svg .ln-mid,
    .toggler-svg .ln-bot { transition: none; }
}

/* ================================================================
   UTILITAIRES — remplacent les classes Bootstrap supprimées
   ================================================================ */

.responsive-img {
    display: block;
    max-width: 100%;
    height: auto;
}

.center-block { display: block; margin-left: auto; margin-right: auto; }

.align-center  { text-align: center; }
.align-justify { text-align: justify; }

/* ================================================================
   HOVER-ZOOM — utilitaire générique, réutilisable sans nouveau sélecteur.
   .hover-zoom sur la carte hôte (survol/focus déclencheurs), .hover-zoom-frame
   sur le conteneur recadré de l'image à zoomer.
   ================================================================ */

.hover-zoom-frame {
    overflow: hidden;
}

.hover-zoom-frame img {
    transition: transform 0.35s ease;
}

.hover-zoom:hover .hover-zoom-frame img,
.hover-zoom:focus-within .hover-zoom-frame img {
    transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
    .hover-zoom-frame img { transition: none; }

    .hover-zoom:hover .hover-zoom-frame img,
    .hover-zoom:focus-within .hover-zoom-frame img {
        transform: none;
    }
}

/* ================================================================
   RESPONSIVE VISIBILITY
   ================================================================ */

.show-mobile { display: none !important; }

@media (max-width: 991px) {
    .show-mobile { display: block !important; }
    .hide-mobile { display: none !important; }
}

/* ================================================================
   FOCUS
   ================================================================ */

#offcanvas-toggler:focus:not(:focus-visible),
.offcanvas-menu-toggler:focus:not(:focus-visible) {
    outline: none;
}

/* ================================================================
   OFFCANVAS SOUS-MENUS
   ================================================================ */

/*Item pilier (avec sous-menu)*/
.offcanvas-menu-toggler,
.offcanvas-back {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    font: inherit;
}

.offcanvas-menu-toggler {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-sm);
    width: 100%;
    min-height: 44px;
    padding: 20px 0;
    text-align: left;
}

.offcanvas-chevron {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: var(--c-fond-blanc);
}

.offcanvas-menu-toggler .offcanvas-chevron {
    margin-right: 12px;
}

/* Racine — entrées éditoriales Newsreader */
.offcanvas-menu-toggler,
.sp-module-content ul.nav.menu > .sp-menu-item > a {
    font-family: var(--font-titre);
    font-size: clamp(1.4rem, 4.5vw, 1.65rem);
    line-height: 1.3;
}

.sp-module-content ul.nav.menu > .sp-menu-item > a {
    display: block;
    padding: 20px 0;
    color: inherit;
}

.sp-module-content ul.nav.menu > .sp-menu-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.offcanvas-level-title {
    font-family: var(--font-titre);
    font-size: clamp(1.5rem, 5vw, 1.75rem);
    line-height: 1.3;
    color: var(--c-fond-blanc);
    margin: 0 0 var(--s-xs);
}

.offcanvas-level ul li > a {
    display: block;
    padding: var(--s-sm) 0;
    font-size: var(--t-corps);
    line-height: 1.4;
    color: var(--c-texte-inv);
}

.offcanvas-level ul li:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* ================================================================
   OFFCANVAS
   ================================================================ */

/* Down bottom header — transform */
.offcanvas-menu {
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 360ms cubic-bezier(.16, 1, .3, 1),
                visibility 0ms linear 360ms;
}

body.offcanvas .offcanvas-menu {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 360ms cubic-bezier(.16, 1, .3, 1),
                visibility 0ms linear 0ms;
}

/* Fermeture orchestrée */
.offcanvas-menu.is-closing {
    transition: transform 360ms cubic-bezier(.16, 1, .3, 1) 420ms,
                visibility 0ms linear 780ms;
}

/* .offcanvas-inner : conteneur neutre, ne porte plus de reveal propre —
   le panneau masque déjà tout via sa propre visibility ; la chorégraphie
   perceptible se joue désormais uniquement sur les 4 liens racine. */

/* Reveal racine — vague item par item */
.sp-module-content ul.nav.menu > .sp-menu-item {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 240ms ease-out,
                transform 240ms cubic-bezier(.16, 1, .3, 1);
}

body.offcanvas .sp-module-content ul.nav.menu > .sp-menu-item {
    opacity: 1;
    transform: translateY(0);
}

body.offcanvas .sp-module-content ul.nav.menu > .sp-menu-item:nth-child(1) { transition-delay: 400ms; }
body.offcanvas .sp-module-content ul.nav.menu > .sp-menu-item:nth-child(2) { transition-delay: 450ms; }
body.offcanvas .sp-module-content ul.nav.menu > .sp-menu-item:nth-child(3) { transition-delay: 500ms; }
body.offcanvas .sp-module-content ul.nav.menu > .sp-menu-item:nth-child(4) { transition-delay: 550ms; }

/* Fermeture : vague inversée */
.offcanvas-menu.is-closing .sp-module-content ul.nav.menu > .sp-menu-item {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 180ms ease-out,
                transform 180ms cubic-bezier(.16, 1, .3, 1);
}

.offcanvas-menu.is-closing .sp-module-content ul.nav.menu > .sp-menu-item:nth-child(4) { transition-delay: 50ms; }
.offcanvas-menu.is-closing .sp-module-content ul.nav.menu > .sp-menu-item:nth-child(3) { transition-delay: 100ms; }
.offcanvas-menu.is-closing .sp-module-content ul.nav.menu > .sp-menu-item:nth-child(2) { transition-delay: 150ms; }
.offcanvas-menu.is-closing .sp-module-content ul.nav.menu > .sp-menu-item:nth-child(1) { transition-delay: 200ms; }

/* ----------------------------------------------------------------
 * Navigation - slide horizontal racine ↔ sous-niveau.
 * ---------------------------------------------------------------- */
.offcanvas-inner { height: 100%; }

.offcanvas-menu .sp-module-content {
    position: relative;
    height: 100%;
    clip-path: inset(0);
}

/* Bascule racine/sous-niveau : mécanisme strictement mobile. .offcanvas-menu
   est un descendant de #sp-header, comparé localement à son mega-menu — ces
   propriétés (dont pointer-events) ne doivent exister que sous 991px. */
@media (max-width: 991px) {
    .offcanvas-menu .sp-module-content > .offcanvas-root {
        display: flex;
        flex-direction: column;
        height: 100%;
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        transition: transform 340ms cubic-bezier(.16, 1, .3, 1),
                    visibility 0ms linear 0ms;
    }

    .offcanvas-menu .sp-module-content.level-open > .offcanvas-root {
        transform: translateX(-100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 340ms cubic-bezier(.16, 1, .3, 1),
                    visibility 0ms linear 340ms;
    }
}

.offcanvas-menu .sp-module-content > .offcanvas-level {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 340ms cubic-bezier(.16, 1, .3, 1),
                visibility 0ms linear 340ms;
}

.offcanvas-menu .sp-module-content > .offcanvas-level.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 340ms cubic-bezier(.16, 1, .3, 1),
                visibility 0ms linear 0ms;
}

.offcanvas-back {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
}

/* Reveal */
.offcanvas-level ul li {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 240ms ease-out, transform 240ms cubic-bezier(.16, 1, .3, 1);
}

.offcanvas-level.is-open ul li {
    opacity: 1;
    transform: translateY(0);
}

.offcanvas-level.is-open ul li:nth-child(1) { transition-delay: 120ms; }
.offcanvas-level.is-open ul li:nth-child(2) { transition-delay: 160ms; }
.offcanvas-level.is-open ul li:nth-child(3) { transition-delay: 200ms; }
.offcanvas-level.is-open ul li:nth-child(4) { transition-delay: 240ms; }
.offcanvas-level.is-open ul li:nth-child(5) { transition-delay: 280ms; }

/* Nom de la monnaie active — /pieces-or/, rejoué à chaque changement via
   showActiveViewer() (classe is-visible retirée puis réappliquée après un
   forçage de reflow, même idiome que .devise-zone-indicator dans main.js). */
.piece-active-name {
    overflow: hidden;
    text-align: center;
    color: var(--c-texte-inv);
    margin: 0;
}

.piece-active-name-text {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 650ms cubic-bezier(.16, 1, .3, 1), transform 650ms cubic-bezier(.16, 1, .3, 1);
}

.piece-active-name-text.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Flèche 45° */
.piece-active-name-text .link-arrow,
.piece-active-name-text .link-arrow:hover,
.piece-active-name-text .link-arrow:focus-visible {
    color: var(--c-texte-inv);
    text-decoration: none;
}
.piece-active-name-text .link-arrow svg {
    transform: translateY(-4px) rotate(-45deg);
}
.piece-active-name-text .link-arrow:hover svg {
    transform: translateY(-4px) rotate(-45deg) translateX(3px);
}
.piece-active-name-text .link-arrow:focus-visible {
    outline: 2px solid var(--c-or);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .piece-active-name-text { transition: none; }
}

/* Lien pilier */
.offcanvas-pillar-link {
    display: block;
    margin-top: var(--s-xs);
    color: inherit;
    text-decoration: none;
}

.offcanvas-pillar-visual {
    display: block;
    overflow: hidden;
    margin-bottom: var(--s-sm);
}

.offcanvas-pillar-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#collapse-change-devises .offcanvas-pillar-visual img { object-position: 50% 40%; }
#collapse-or .offcanvas-pillar-visual img { object-position: 50% 60%; display: block; }

#collapse-or .offcanvas-pillar-visual {
    aspect-ratio: 3 / 2;
}

#collapse-or {
    padding-bottom: var(--s-md);
}

.offcanvas-pillar-label {
    display: block;
    font-family: var(--font-corps);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: var(--lm-label);
    color: var(--c-or);
}

.offcanvas-pillar-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-sm);
    margin-top: 7px;
    font-family: var(--font-titre);
    font-size: clamp(1.3rem, 5.5vw, 1.5rem);
    font-weight: 400;
    line-height: 1.2;
    color: inherit;
}

.offcanvas-pillar-title svg {
    width: 40px;
    height: 40px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.offcanvas-footer {
    position: relative;
    overflow: hidden;
    margin-top: auto;
    margin-left: -20px;
    margin-right: -20px;
    padding-top: var(--s-md);
    padding-right: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    color: var(--c-fond-blanc);
    font-size: var(--t-petit);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 240ms ease-out,
                transform 240ms cubic-bezier(.16, 1, .3, 1);
}

/* Trait supérieur centré, largeur maîtrisée — même dégradé que le trait
   sous l'adresse. .paper-pattern occupe déjà ::before, d'où ::after. */
.offcanvas-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    height: 1px;
    background: linear-gradient(to right, var(--c-or), #dfca9a, var(--c-or));
}

.offcanvas-footer .icon {
    color: var(--c-or-clair);
}

.offcanvas-footer a {
    color: inherit;
}

/* Trait court sous l'adresse — dégradé repris de .footer-col-heading::after. */
.offcanvas-footer p:first-of-type::after {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    margin-top: var(--s-sm);
    background: linear-gradient(to right, var(--c-or), #dfca9a, var(--c-or));
}

body.offcanvas .offcanvas-footer {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 600ms;
}

/* Fermeture : disparaît en premier, avant les 4 liens racine. */
.offcanvas-menu.is-closing .offcanvas-footer {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 180ms ease-out,
                transform 180ms cubic-bezier(.16, 1, .3, 1);
}

.offcanvas-footer p {
    margin: 1em 0;
}

@media (prefers-reduced-motion: reduce) {
    .offcanvas-menu,
    .offcanvas-menu.is-closing,
    .offcanvas-inner,
    .sp-module-content ul.nav.menu > .sp-menu-item,
    .offcanvas-menu.is-closing .sp-module-content ul.nav.menu > .sp-menu-item,
    .offcanvas-footer,
    .offcanvas-menu.is-closing .offcanvas-footer,
    .offcanvas-menu .sp-module-content > .offcanvas-root,
    .offcanvas-menu .sp-module-content > .offcanvas-level,
    .offcanvas-level ul li {
        transition: none;
    }
}

/* Overlay cliquable */
.offcanvas-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    cursor: pointer;
}

body.offcanvas .offcanvas-overlay {
    display: block;
}

/* ================================================================
   FORMULAIRE DE CONTACT
   ================================================================ */

/* Wrapper interne centré — sp-column a padding:0 après le shell fix */
.content-container {
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: 16px;
    box-sizing: border-box;
}


/* ================================================================
   FORMULAIRE — espacement champs, états d'erreur, alertes flash
   ================================================================ */

.field-group { margin-bottom: 15px; }

.field-error .field-input { border-color: #a94442; }
.field-error label        { color: #a94442; }

.flash-message {
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 15px;
}
.flash-success { color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6; }
.flash-danger  { color: #a94442; background-color: #f2dede; border-color: #ebccd1; }
.flash-warning { color: #8a6d3b; background-color: #fcf8e3; border-color: #faebcc; }

/* ================================================================
   FOOTER
   ================================================================ */

#sp-footer {
    background: var(--c-bleu-nuit);
}

/* ================================================================
   NAVIGATION DESKTOP
   ================================================================ */

#sp-menu .sp-column,
#sp-menu .sp-megamenu-wrapper {
    width: 100%;
}

#sp-menu .sp-megamenu-parent {
    width: 100%;
    text-align: center;
    padding-right: 25px;
}

#sp-menu .sp-megamenu-parent .sp-dropdown-inner ul li {
    text-align: left;
}

/* Langue active — blanc plein, légèrement affirmé ; inactive — blanc atténué mais lisible */
.sp-module-content .mod-flags ul.lang-inline li.lang-active a {
    color: var(--c-fond-blanc);
    font-weight: 600;
}

/* ================================================================
   SECTIONS CONTENU — ACCUEIL, ÉCHANGE, OR
   ================================================================ */

/* Centrage logo et flèche dans le hero */
.logo-annecy {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Fond gris clair (index, achat-or) */
.fd-change-01 {
    background-color: #f4f4f4;
    margin: 0;
}

/* Titres h2 taux de change */
.taux-de-change-01 h2,
.taux-de-change-02 h2 {
    color: var(--c-or);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-family: var(--font-titre);
    line-height: 1.3;
}

.taux-de-change-02 h2 span { color: var(--c-or); }
.taux-de-change-01 h2      { color: var(--c-or); }
.taux-de-change-01 h2 span { color: var(--c-or-fonce); }

/* Espacements de sections communs */
#change-rapide    { padding: 50px 0; }
#bienvenue        { padding: 45px 0; }
#la-reference     { padding: 0 0 50px; }
#video-section-01 { padding: 0 0 50px; }
#carte            { padding: 0; }

#bienvenue h3 {
    color: var(--c-or);
    font-family: var(--font-titre);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.25;
}

#pieces-intro {
    padding: 40px 0;
    text-align: center;
}

#change-rapide h1,
#pieces-intro h1 {
    color: var(--c-or);
    font-weight: 500;
    font-size: var(--t-h1);
    font-family: var(--font-titre);
    line-height: 1.15;
}

/* Badge téléphone rouge */
span.tel-change {
    margin-top: 8px;
    padding: 0 18px;
    border-radius: 5px;
    background-color: #ed0019;
    color: #fff;
    font-weight: 700;
    font-size: 30px;
    font-family: var(--font-corps);
}

/* Titre citation (accueil, en/accueil) */
.titre-quote h3 {
    color: var(--c-or);
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-family: var(--font-titre);
    line-height: 1.25;
}

/* Section vidéo accueil */
#video-class {
    margin-top: 0;
    padding: 50px 0 0;
    background-color: var(--c-fond-sombre);
}

#video-class header {
    margin-bottom: 30px;
}

#video-class h1 {
    color: var(--c-or-clair);
    font-weight: 500;
    font-size: var(--t-h1);
    font-family: var(--font-titre);
    line-height: 1.15;
}

#video-class header > p {
    color: #fff;
    font-weight: 400;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-family: var(--font-corps);
}

.text-video .text-intro {
    margin-left: 15px;
}

#video-section-01 .text-video p {
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
    text-align: justify;
    hyphens: auto;
}

/* ================================================================
   60 DEVISES
   ================================================================ */

#titre-60-monnaies > header {
    margin: 50px auto 0;
}

#titre-60-monnaies h1 {
    color: var(--c-or);
    font-weight: 500;
    font-size: var(--t-h1);
    font-family: var(--font-titre);
    line-height: 1.15;
}

/* ================================================================
   RESPONSIVE — TABLETTE ET MOBILE (Lot C)
   ================================================================ */

/* Tablette 768–1280px (toutes orientations) */
@media (min-width: 768px) and (max-width: 1280px) {
    #sp-logo,
    #sp-logo div {
        padding: 0;
        margin: 0;
    }

    /* clamp() gère déjà #video-class h1 à cette taille d'écran */

    .taux-de-change-01 { padding: 30px; }

    .taux-de-change-01 .text-titillium,
    .taux-de-change-02 .text-titillium {
        font-size: 16px;
        line-height: 1.6;
    }

    #monnaies-collections .split-row,
    #transaction .split-row,
    #centre-ville .split-row,
    #expert .split-row {
        margin: 0;
    }

    #transaction .taux-de-change-02                         { padding: 35px; }
    #centre-ville .taux-de-change-02,
    #expert .taux-de-change-02                             { padding: 30px 40px; }
}

/* Tablette paysage (≤1280px) */
@media (max-width: 1280px) and (orientation: landscape) {
    .sp-megamenu-wrapper,
    #offcanvas-toggler {
        float: none;
        margin: 0 auto;
        text-align: center !important;
    }
}


/* Mobile (≤767px) */
@media (max-width: 767px) {
    /* Passage en colonne unique — flex-direction:column conserve le contexte flex
       et permet de contrôler l'ordre visuel via la propriété order. */
    .split-row {
        flex-direction: column;
    }
    .split-row > div {
        width: 100%;
        flex: none;   /* empêche flex-grow de redistribuer la hauteur en colonne */
        /* les min-height des colonnes image (définis hors media query) restent actifs */
    }

    #video-section-01 .text-video p    { margin: 15px 45px 0 30px; }

    #video-section-01 .text-video p,
    .text-titillium {
        font-size: 17px;
        line-height: 1.6;
    }

}

/* Mobile ≤420px */
@media (max-width: 420px) {

    /* h1/h2/h3 sur mobile — clamp() gère déjà l'adaptation, pas d'override nécessaire */

    blockquote p {
        font-size: 16px;
        line-height: 1.6;
        max-width: 287px;
        margin: 0 auto;
    }

    .en-gb blockquote p {
        max-width: 250px;
    }

    /* clamp() gère déjà #change-rapide h1 et #pieces-intro h1 sur mobile */

    .taux-de-change-01,
    .taux-de-change-02 {
        padding: 20px;
    }

    .image-collection-02 .split-row > div:nth-child(2) {
        background-position: center center;
    }

    .text-video .text-intro            { margin-left: 0; }
    #video-section-01 .text-video p { margin: 15px 20px 0; }
}

/* ================================================================
   LOT D — OFFCANVAS & NAVIGATION MOBILE
   ================================================================ */

/* ----------------------------------------------------------------
   TYPOGRAPHIE GLOBALE
   ---------------------------------------------------------------- */

body {
    margin: 0;
    line-height: 1.6;
    font-family: var(--font-corps);
    color: var(--c-texte);
    background-color: var(--c-fond-blanc);
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-titre); }

h1 { font-weight: 400; font-size: var(--t-h1); line-height: 1.15; }
h2 { font-weight: 400; font-size: var(--t-h2); line-height: 1.2;  color: var(--c-texte); }
h3 { font-weight: 500; font-size: var(--t-h3); line-height: 1.3; }
h4 { font-weight: 600; font-size: 1.125rem; }
h5 { font-weight: 600; font-size: 1rem; font-family: var(--font-corps); }
h6 { font-weight: 400; font-style: italic; font-size: 1rem; font-family: var(--font-corps); }

p {
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
    hyphens: auto;
    -moz-osx-font-smoothing: auto;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a { transition: color 250ms, background-color 250ms; }
a, a:hover, a:focus, a:active { text-decoration: none; }

.lien-texte {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: currentColor;
}

.lien-texte:hover {
    color: var(--c-or);
    text-decoration: underline;
    text-decoration-color: currentColor;
}

.lien-texte:focus-visible {
    outline: 2px solid var(--c-or);
    outline-offset: 3px;
}

label  { font-weight: 400; }
legend { padding-bottom: 10px; }

/* ================================================================
   BOUTONS
   ================================================================ */

.button {
    display: inline-block;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.43;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: color 400ms, background-color 400ms, border-color 400ms;
}

.button-primary {
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
}
.button-primary:hover {
    background-color: #286090;
    border-color: #204d74;
}

.button-danger {
    color: #fff;
    background-color: #d9534f;
    border-color: #d43f3a;
}
.button-danger:hover {
    background-color: #c9302c;
    border-color: #ac2925;
}

/* ----------------------------------------------------------------
   BODY WRAPPER & OVERLAY OFFCANVAS
   ---------------------------------------------------------------- */

.body-innerwrapper {
    overflow-x: clip;
    background-color: #fff;
    transition: margin-left 400ms cubic-bezier(.7, 0, .3, 1);
}


/* ----------------------------------------------------------------
   FORMULAIRE DE CONTACT — champs
   ---------------------------------------------------------------- */

.field-input {
    display: block;
    width: 100%;
    padding: 6px 12px;
    height: 34px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    color: #555;
    font-size: 14px;
    line-height: 1.43;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

.field-input:focus {
    outline: 0;
    border-color: #66afe9;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}

.field-input::placeholder { color: #999; }
textarea.field-input { height: auto; }

/* Inputs natifs du formulaire de contact — sélecteur restreint aux types réellement utilisés */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    display: block;
    width: 100%;
    padding: 6px 12px;
    height: 34px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    color: #555;
    font-size: 14px;
    line-height: 1.43;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: #66afe9;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
textarea::placeholder { color: #999; }

textarea { height: auto; }


/* ----------------------------------------------------------------
   .text-titillium — base + modificateurs
   MQ 768–1280px et ≤767px dans les blocs responsive déjà présents.
   ---------------------------------------------------------------- */

.text-titillium {
    text-align: justify;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.75;
    font-family: var(--font-corps);
}

.text-titillium.text-center      { text-align: center; }
.text-titillium.text-center span { color: #0064c6; font-weight: 700; }
.text-titillium.text-center i    { color: #c6c6c6; }

/* ----------------------------------------------------------------
   NAVIGATION MÉGAMENU
   ---------------------------------------------------------------- */

.sp-megamenu-parent {
    z-index: 9;
    display: block;
    float: left;
    margin: 0 0 0 25px;
    padding: 0;
    list-style: none;
}

.sp-megamenu-parent > li {
    position: relative;
    display: inline-block;
    padding: 0;
}

@media screen and (min-width: 768px) {
    .sp-megamenu-parent > li > a {
        padding: 0 15px;
        color: var(--c-fond-blanc);
        text-transform: uppercase;
        font-weight: 600;
        font-size: 10px;
        line-height: 73px;
    }
}

@media screen and (min-width: 1200px) {
    .sp-megamenu-parent > li > a { font-size: 12px; letter-spacing: 1px; }
}

/* - Nav CTA — Nous contacter - */
@media (min-width: 992px) {
    .sp-megamenu-parent .sp-nav-cta {
        display: inline-flex;
        align-items: center;
        height: var(--header-height);
    }
    .sp-megamenu-parent .sp-nav-cta > a.hp-hero-cta {
        gap: 0;
        line-height: 1.2;
        padding: 7px 13px;
        border: 1px solid rgba(255, 255, 255, 0.65);
        border-radius: 10px;
        color: var(--c-fond-blanc);
        transition: background 200ms ease, border-color 200ms ease, gap 200ms ease;
    }
    .sp-megamenu-parent .sp-nav-cta > a.hp-hero-cta svg {
        display: block;
        width: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateX(-4px);
        transition: width 200ms ease, opacity 200ms ease, transform 200ms ease;
    }
    .sp-megamenu-parent .sp-nav-cta > a.hp-hero-cta:hover {
        gap: 8px;
        background: rgba(184, 146, 58, 0.08);
        border: 1px solid var(--c-fond-blanc);
        color: var(--c-fond-blanc);
    }
    .sp-megamenu-parent .sp-nav-cta > a.hp-hero-cta:hover svg {
        width: 14px;
        opacity: 1;
        transform: translateX(0);
    }
}

.sp-megamenu-parent .sp-dropdown {
    position: absolute;
    z-index: 10;
    display: none;
    margin: 0;
}

.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
    background-color: var(--c-fond-sombre);
    box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.2);
}

.sp-megamenu-parent .sp-dropdown .sp-dropdown-items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sp-megamenu-parent .sp-dropdown.sp-dropdown-main            { top: 100%; width: 280px; }
.sp-megamenu-parent .sp-dropdown.sp-dropdown-main.sp-menu-right { left: 0; }

.sp-megamenu-parent .sp-dropdown li.sp-menu-item {
    position: relative;
    display: block;
    padding: 0;
}

.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a {
    display: block;
    padding: 12px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:hover         { color: #fff; }
.sp-megamenu-parent .sp-dropdown li.sp-menu-item.active > a:hover  { color: #fff; }

.sp-megamenu-parent .sp-has-child:hover > .sp-dropdown { display: block; }

.sp-megamenu-parent.menu-fade-up .sp-has-child:hover > .sp-dropdown {
    animation: spMenuFadeInUp 200ms;
}

@keyframes spMenuFadeInUp {
    0%   { opacity: 0; transform: translate3d(0, 30px, 0); }
    100% { opacity: 1; transform: none; }
}

/* ── Motif hachuré — propriétés graphiques partagées ── */
.sp-mega-deco::before,
.cd-devises::before,
.contact-comptoirs::before {
    content: '';
    position: absolute;
    background: repeating-linear-gradient(
        52deg,
        rgba(100, 140, 115, 0.42) 0px,
        rgba(100, 140, 115, 0.42) 0.5px,
        transparent 0.5px,
        transparent 3px
    );
    pointer-events: none;
}

/* ── MEGA MENU — Change de devises (desktop ≥ 992 px) ─────────── */

@media (min-width: 992px) {

    /* Chevron inversé au survol / focus clavier */
    li.sp-has-mega .menu-chevron { transition: transform 200ms ease; }
    li.sp-has-mega:hover .menu-chevron,
    li.sp-has-mega:focus-within .menu-chevron { transform: rotate(180deg); }

    /* ── Bandeau pleine largeur ── */
    .sp-mega-panel {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        z-index: 200;
        background: var(--c-papier);
        border-bottom: 1px solid var(--c-trait);
        clip-path: inset(0 0 100% 0);
        visibility: hidden;
        pointer-events: none;
        transition: clip-path 210ms ease, visibility 0ms linear 210ms;
    }
    li.sp-has-mega:hover .sp-mega-panel,
    li.sp-has-mega:focus-within .sp-mega-panel {
        clip-path: inset(0 0 0% 0);
        visibility: visible;
        pointer-events: auto;
        transition: clip-path 210ms ease, visibility 0ms linear 0ms;
    }

    /* - Flou du contenu de page sous le header/panel - */
    #sp-header::after {
        content: '';
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        background: color-mix(in srgb, var(--c-bleu-nuit) 7%, transparent);
        opacity: 0;
        pointer-events: none;
        transition: opacity 220ms ease;
    }

    @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
        #sp-header::after {
            -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
        }
    }

    #sp-header:has(.sp-has-mega:hover)::after,
    #sp-header:has(.sp-has-mega:focus-within)::after {
        opacity: 1;
    }

    /* ── Contenu centré + reveal ── */
    .sp-mega-inner {
        display: grid;
        grid-template-columns: 26% 1fr 30%;
        max-width: var(--w-max);
        margin-inline: auto;
        padding: clamp(32px, 3.5vw, 56px);
        min-height: 256px;
        text-align: left;
    }

    /* ── Col 1 : intro éditorial ── */
    .sp-mega-intro {
        display: block;
        padding: 40px 40px 40px 0;
        border-right: 1px solid var(--c-trait);
        opacity: 0;
        transform: translateY(8px);
        transition: background 160ms ease, opacity 100ms ease, transform 100ms ease;
    }
    a.sp-mega-intro {
        text-decoration: none;
        color: inherit;
    }
    a.sp-mega-intro:hover .sp-mega-main-link { color: var(--c-or); }
    a.sp-mega-intro:hover .sp-mega-main-link svg { transform: translateX(4px); }
    a.sp-mega-intro:focus-visible {
        outline: 2px solid var(--c-or);
        outline-offset: -4px;
    }
    .sp-mega-accent {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--c-or);
        margin-bottom: 18px;
    }
    .sp-mega-heading {
        font-family: var(--font-titre);
        font-size: 1.5rem;
        font-weight: 300;
        color: var(--c-bleu-nuit);
        line-height: 1.2;
        margin: 0 0 10px;
    }
    .sp-mega-body {
        font-family: var(--font-corps);
        font-size: var(--t-petit);
        color: var(--c-encre-2);
        line-height: 1.65;
        margin: 0 0 20px;
    }
    .sp-mega-main-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-family: var(--font-corps);
        font-size: var(--t-label);
        font-weight: 600;
        letter-spacing: var(--ls-label);
        text-transform: uppercase;
        color: var(--c-bleu-nuit);
        text-decoration: none;
        transition: color 160ms ease;
    }
    .sp-mega-main-link svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 160ms ease; }
    .sp-mega-main-link:hover { color: var(--c-or); }
    .sp-mega-main-link:hover svg { transform: translateX(4px); }

    /* ── Col 2 : liens de navigation ── */
    .sp-mega-links {
        list-style: none;
        margin: 0;
        padding: 32px 0 32px 40px;
        display: block;
        height: 302px;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-right: 1px solid var(--c-trait);
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 100ms ease, transform 100ms ease;
        scrollbar-width: thin;
        scrollbar-color: rgba(214, 207, 196, 0.35) transparent;
    }
    .sp-mega-links::-webkit-scrollbar       { width: 3px; }
    .sp-mega-links::-webkit-scrollbar-track { background: transparent; }
    .sp-mega-links::-webkit-scrollbar-thumb {
        background: rgba(214, 207, 196, 0.35);
        border-radius: 2px;
    }
    .sp-mega-links:hover,
    .sp-mega-links:focus-within {
        scrollbar-color: var(--c-trait) transparent;
    }
    .sp-mega-links:hover::-webkit-scrollbar-thumb,
    .sp-mega-links:focus-within::-webkit-scrollbar-thumb {
        background: var(--c-trait);
    }
    .sp-mega-link {
        display: grid;
        grid-template-columns: 40px 1fr 20px;
        align-items: center;
        gap: 14px;
        padding: 14px 16px;
        text-decoration: none;
        border-radius: 2px;
        transition: background 160ms ease;
    }
    .sp-mega-link:hover  { background: rgba(17, 45, 63, 0.04); }
    .sp-mega-link.active { background: rgba(17, 45, 63, 0.06); }
    .sp-mega-link-icon {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--c-trait);
        border-radius: 50%;
        color: var(--c-bleu-nuit);
    }
    .sp-mega-link-icon svg { width: 27px; height: 27px; }
    .sp-mega-link-body { display: flex; flex-direction: column; gap: 2px; }
    .sp-mega-link-label {
        font-family: var(--font-corps);
        font-size: 0.8125rem;
        font-weight: 600;
        color: var(--c-encre);
        line-height: 1.3;
    }
    .sp-mega-link-desc {
        font-family: var(--font-corps);
        font-size: 0.75rem;
        color: var(--c-encre-2);
        line-height: 1.5;
    }
    .sp-mega-link-arrow {
        width: 16px;
        height: 16px;
        color: var(--c-encre-2);
        opacity: 0;
        flex-shrink: 0;
        transition: opacity 160ms ease, transform 160ms ease;
    }
    .sp-mega-link:hover .sp-mega-link-arrow  { opacity: 1; transform: translateX(3px); }
    .sp-mega-link.active .sp-mega-link-arrow { opacity: 0.5; }

    /* ── Col 2 Or : scroll + fade bas ── */
    .sp-mega-inner:has(.sp-mega-deco--or) .sp-mega-links {
        justify-content: flex-start;
        scroll-snap-type: y proximity;
        -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 60px), transparent 100%);
        mask-image: linear-gradient(to bottom, black calc(100% - 60px), transparent 100%);
    }
    .sp-mega-inner:has(.sp-mega-deco--or) .sp-mega-link {
        scroll-snap-align: start;
    }

    /* ── Col 3 : zone décorative ── */
    .sp-mega-deco {
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 40px 0 40px 40px;
        background:
           linear-gradient(to right, var(--c-papier) 0%, rgba(243, 239, 231, 0) 42%),
           url(../../images/10000-yen.png) right -310px top -140px / auto 200% no-repeat;
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 100ms ease, transform 100ms ease;
    }
    .sp-mega-deco::before {
        left: 0;
        top: 0;
        bottom: 0;
        width: 12px;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
    }
    .sp-mega-deco--or {
        background:
            linear-gradient(to left, var(--c-papier) 0%, rgba(243, 239, 231, 0) 48%),
            url(../../images/pieces-or/souverain-1911.png) left -170px top 0px / auto 100% no-repeat;
        padding: 40px 40px 40px 0;
        align-items: flex-end;
        text-align: right;
    }
    .sp-mega-deco--or::before {
        content: none;
    }
    .sp-mega-deco-text {
        position: relative;
        z-index: 1;
        font-family: var(--font-titre);
        font-size: clamp(1.25rem, 1.5vw, 1.625rem);
        font-weight: 300;
        font-style: italic;
        color: var(--c-bleu-nuit);
        line-height: 1.2;
        margin: 0 0 20px;
    }
    .sp-mega-deco-keywords {
        position: relative;
        z-index: 1;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .sp-mega-deco-keywords li {
        font-family: var(--font-corps);
        font-size: var(--t-label);
        font-weight: 600;
        letter-spacing: var(--ls-label);
        text-transform: uppercase;
        color: var(--c-bleu-nuit);
        opacity: 0.5;
        line-height: 1.9;
    }

    /* ── Reveal bas → haut, décalé ── */
    li.sp-has-mega:hover .sp-mega-intro,
    li.sp-has-mega:focus-within .sp-mega-intro {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 190ms ease 210ms, transform 190ms ease 210ms;
    }
    li.sp-has-mega:hover .sp-mega-links,
    li.sp-has-mega:focus-within .sp-mega-links {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 190ms ease 260ms, transform 190ms ease 260ms;
    }
    li.sp-has-mega:hover .sp-mega-deco,
    li.sp-has-mega:focus-within .sp-mega-deco {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 190ms ease 310ms, transform 190ms ease 310ms;
    }

    /* ── Notre histoire mega panel ── */
    .sp-mega-inner--histoire {
        grid-template-columns: 38% 1fr;
        padding: 0;
        min-height: 302px;
        max-width: none;
        width: min(calc(50% + var(--w-max) / 2), 100%);
        margin-right: 0;
    }
    .sp-mega-histoire-content {
        display: block;
        flex-direction: column;
        justify-content: center;
        gap: 12px;
        padding: clamp(32px, 3.5vw, 56px);
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 100ms ease, transform 100ms ease;
    }
    .sp-mega-histoire-label {
        display: flex;
        align-items: center;
        gap: 10px;
        font-family: var(--font-corps);
        font-size: var(--t-label);
        font-weight: 600;
        letter-spacing: var(--ls-label);
        text-transform: uppercase;
        color: var(--c-or);
        margin: var(--s-xs) 0 0;
    }
    .sp-mega-histoire-label::after {
        content: '';
        display: block;
        width: 24px;
        height: 2px;
        background: var(--c-or);
        flex-shrink: 0;
    }
    .sp-mega-histoire-heading {
        font-family: var(--font-titre);
        font-size: clamp(2rem, 2.8vw, 3rem);
        font-weight: 400;
        color: var(--c-bleu-nuit);
        margin: var(--s-xs) 0 0;
        line-height: 1.1;
    }
    .sp-mega-histoire-body {
        font-family: var(--font-titre);
        font-size: 1.5rem;
        font-weight: 500;
        color: var(--c-encre-2);
        line-height: 1.55;
        margin: var(--s-md) 0 0;
    }
    .sp-mega-histoire-content .btn-csc-secondary {
        align-self: flex-start;
        margin-top: var(--s-lg);
    }
    .sp-mega-histoire-content .btn-csc-secondary svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }
    .sp-mega-histoire-photo {
        position: relative;
        overflow: hidden;
        margin: 0;
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 100ms ease 50ms, transform 100ms ease 50ms;
    }
    .sp-mega-histoire-photo::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to right, var(--c-papier) 0%, transparent 32%);
        z-index: 1;
        pointer-events: none;
    }
    .sp-mega-histoire-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 20%;
        filter: grayscale(55%) sepia(8%);
        display: block;
    }
    li.sp-has-mega:hover .sp-mega-histoire-content,
    li.sp-has-mega:focus-within .sp-mega-histoire-content {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 190ms ease 210ms, transform 190ms ease 210ms;
    }
    li.sp-has-mega:hover .sp-mega-histoire-photo,
    li.sp-has-mega:focus-within .sp-mega-histoire-photo {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 190ms ease 280ms, transform 190ms ease 280ms;
    }

    li.sp-has-mega:hover .sp-mega-panel--histoire::after,
    li.sp-has-mega:focus-within .sp-mega-panel--histoire::after {
        opacity: 0.2;
        transition: opacity 190ms ease 280ms;
    }
}

/* Sécurité : masqué sous 992 px (parent hide-mobile suffit, mais redondance explicite) */
@media (max-width: 991px) {
    .sp-mega-panel { display: none; }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    #sp-header::after { transition: none; }
    .sp-mega-panel {
        clip-path: none;
        opacity: 0;
        transition: opacity 80ms ease, visibility 0ms linear 80ms;
    }
    li.sp-has-mega:hover .sp-mega-panel,
    li.sp-has-mega:focus-within .sp-mega-panel {
        clip-path: none;
        opacity: 1;
        transition: opacity 80ms ease, visibility 0ms linear 0ms;
    }
    .sp-mega-intro,
    .sp-mega-links,
    .sp-mega-deco { transform: none; transition: opacity 80ms ease; }
    li.sp-has-mega:hover .sp-mega-intro,
    li.sp-has-mega:focus-within .sp-mega-intro,
    li.sp-has-mega:hover .sp-mega-links,
    li.sp-has-mega:focus-within .sp-mega-links,
    li.sp-has-mega:hover .sp-mega-deco,
    li.sp-has-mega:focus-within .sp-mega-deco { opacity: 1; transform: none; transition: none; }
    li.sp-has-mega .menu-chevron { transition: none; }
    .sp-mega-main-link svg,
    .sp-mega-link-arrow { transition: none; }
    .sp-mega-histoire-content,
    .sp-mega-histoire-photo { transform: none; transition: opacity 80ms ease; }
    li.sp-has-mega:hover .sp-mega-histoire-content,
    li.sp-has-mega:focus-within .sp-mega-histoire-content,
    li.sp-has-mega:hover .sp-mega-histoire-photo,
    li.sp-has-mega:focus-within .sp-mega-histoire-photo { opacity: 1; transform: none; transition: none; }
}

/* ----------------------------------------------------------------
   HEADER — structure et flex mobile/desktop
   ---------------------------------------------------------------- */

#sp-header {
    width: 100%;
    height: var(--header-height);
    background: var(--c-bleu-nuit);
    z-index: 300;
    position: sticky;
    top: 0;
}

/* Mobile : .offcanvas-menu est un descendant de #sp-header (cf. header.php) —
   position:sticky crée de toute façon son propre stacking context (avec ou
   sans z-index), donc le panneau et #offcanvas-toggler/.logo-slot doivent
   être comparés à l'intérieur de ce même contexte pour que leur z-index
   respectif (250 / 260) ait un effet. Le fond du header reste Bleu Nuit en
   permanence ; c'est la surface physique du panneau qui le recouvre. */

#sp-header .logo { display: flex; align-items: center; }

/* Mobile : logo au centre (order 2), menu à gauche (order 1), langue à droite (order 3) */
#sp-header .header-row { display: flex; height: var(--header-height); align-items: center; }

#sp-logo {
    order: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    height: var(--header-height);
}

#sp-menu             { order: 1; }
#language-switcher { order: 3; }

/* Mobile ≤991px : 3 zones flex égales — toggle gauche, logo centré, flags droite */
@media (max-width: 991px) {
    #sp-menu                 { flex: 1; display: flex; align-items: center; padding-left: 12px; }
    #sp-logo                 { flex: 1; }
    #language-switcher { flex: 1; display: flex; align-items: center; justify-content: flex-end; padding-right: 12px; }
}

/* Desktop ≥992px : flexbox  */
@media screen and (min-width: 992px) {
    #sp-header .header-row          { display: flex; align-items: center; margin: 0 auto; max-width: 962px; }
    #sp-logo                 { order: 1; flex: 0 0 16.67%; }
    #sp-menu                 { order: 2; flex: 1; }
    #language-switcher { order: 3; flex: 0 0 8.33%; display: flex; align-items: center; }
}

/* ----------------------------------------------------------------
   OFFCANVAS MENU — propriétés de base
   ---------------------------------------------------------------- */

.offcanvas-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 250;
    overflow-x: clip;
    overflow-y: scroll;
    width: 100%;
    height: calc(100% - var(--header-height));
    background: linear-gradient( to bottom, var(--c-bleu-nuit) 0%, #0C2434 50%, var(--c-bleu-nuit) 100% );
    color: var(--c-fond-blanc);
}

@media (max-width: 991px) {
    .offcanvas-menu {
        top: 0;
        height: 100%;
    }
}

.offcanvas-menu .offcanvas-inner {
    height: 100%;
    padding: 20px;
}

@media (max-width: 991px) {
    .offcanvas-menu .offcanvas-inner {
        padding-top: calc(var(--header-height) + 20px);
        /* Le socle du footer doit descendre jusqu'au bord du panneau ;
           sa propre respiration basse est reprise sur .offcanvas-footer. */
        padding-bottom: 0;
    }
}

/* Puces natives des <ul> de l'offcanvas — jamais stylées jusqu'ici,
   aucun reset global : scopé à .offcanvas-menu uniquement. */
.offcanvas-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#offcanvas-toggler { float: left; line-height: 90px; }

/* ----------------------------------------------------------------
   LANGUE — structure ul.lang-inline
   ---------------------------------------------------------------- */

.sp-module-content .mod-flags ul.lang-inline {
    margin: 0;
    padding: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.sp-module-content .mod-flags ul.lang-inline li {
    display: inline-block;
    margin: 0;
    border: none;
}

.sp-module-content .mod-flags ul.lang-inline li + li {
    margin-left: 5px;
    padding-left: 5px;
    border-left: none;
    position: relative;
}

.sp-module-content .mod-flags ul.lang-inline li + li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background: var(--c-fond-blanc);
}

.sp-module-content .mod-flags ul.lang-inline li a {
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    min-height: 25px;
    font-size: 12px;
    font-weight: 500;
    color: var(--c-texte-inv);
}
.sp-module-content .mod-flags ul.lang-inline li > a::before { display: none; }


@media screen and (min-width: 1200px) { #sp-header .header-row { max-width: 1170px; } }

/* ----------------------------------------------------------------
   LOGO — emplacement flexible (swap logo = changer le fichier + --logo-height)
   ---------------------------------------------------------------- */

.logo-slot { display: flex; align-items: center; padding: 0; }

/* SVG inline (assets/svg/logo-CSC.svg) : sceau ET wordmark en fill:currentColor,
   pilotables ensemble via color. Blanc en permanence (header et offcanvas
   sont désormais tous deux Bleu Nuit). */
.logo-slot svg {
    display: block;
    height: var(--logo-height);
    width: auto;
    max-width: 200px;
    color: var(--c-fond-blanc);
}

@media (max-width: 991px) {
    .logo-slot {
        position: relative;
        z-index: 260;
    }
}

.logo-slot .logo-accent {
    fill: currentColor;
}

.titre-change-rapide {
    color: #0089bf;
    font-weight: 600;
    font-size: 36px;
    line-height: 42px;
}

.sous-titre-change-rapide { font-size: 25px; line-height: 25px; }

.titre-notre-histoire h1 {
    padding: 25px 0;
    color: var(--c-or);
    font-weight: 500;
    font-family: var(--font-titre);
}

/* ----------------------------------------------------------------
   DÉCORATIONS & UTILITAIRES
   ---------------------------------------------------------------- */

.border-top-01      { border-top: 1px solid rgba(0, 0, 0, 0.3); }
.taux-de-change-01 p { color: #393939; }

#carte button { padding: 3px 12px; font-size: 15px; }

/* ----------------------------------------------------------------
   IMAGES DE FOND — URLs relatives depuis assets/css/main.css
   ../../images/ résout vers la racine du site
   ---------------------------------------------------------------- */

/* ----------------------------------------------------------------
   Colonnes image splits
   ---------------------------------------------------------------- */

.image-gauche .split-row > div:nth-child(1) {
    min-height: 350px;
    padding: 0;
    background-image: url(../../images/billets-01.jpg);
    background-attachment: scroll;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.image-gauche-1 .split-row > div:nth-child(1) {
    min-height: 350px;
    padding: 0;
    background-image: url(../../images/achat-or-pieces-lingots-or.jpg);
    background-attachment: scroll;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Sélecteur projet pur — plus de dépendance col-md-6/col-sm-12 */
.image-droite .split-row > div:nth-child(2) {
    min-height: 350px;
    padding: 0;
    background-image: url(../../images/change-avril/csc-annecy.jpg);
    background-attachment: scroll;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.image-collection .split-row > div:first-child {
    min-height: 350px;
    background-image: url(../../images/billets-03.jpg);
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.image-collection-02 .split-row > div:nth-child(2) {
    min-height: 350px;
    background-image: url(../../images/billets-02.jpg);
    background-attachment: fixed;
    background-position: 250px top;
    background-size: cover;
    background-repeat: no-repeat;
}

.image-monnaie-02 .split-row > div:nth-child(2) {
    min-height: 350px;
    background-image: url(../../images/monnaie-01.jpg);
    background-attachment: fixed;
    background-position: 250px top;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Sections achat-or / purchase-gold */
.image-collection-or .split-row > div:first-child {
    min-height: 350px;
    padding: 0;
    background-image: url(../../images/piece-or-01.jpg);
    background-attachment: scroll;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.image-collection-types-or .split-row > div:first-child {
    min-height: 350px;
    padding: 0;
    background-image: url(../../images/achat-or-pieces-lingots-or.jpg);
    background-attachment: scroll;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}


/* ----------------------------------------------------------------
   PADDING SECTIONS — taux-de-change & blockquotes
   ---------------------------------------------------------------- */

@media screen and (max-width: 767px) {
    .taux-de-change-01 { padding: 45px; }
    .taux-de-change-02 { padding: 45px; }

    blockquote p span { color: #a8812a; font-weight: 700; }
    blockquote p i    { color: #c6c6c6; }

    .blockquote-margin { margin: 30px 0; }
}

@media screen and (min-width: 768px) {
    .taux-de-change-01 { padding: 60px 90px 90px 60px; }
    .taux-de-change-02 { padding: 60px 60px 60px 90px; }

    blockquote p {
        font-weight: 400;
        font-size: 20px;
        font-family: var(--font-corps);
        line-height: 1.5;
    }

    blockquote p span { color: #a8812a; font-weight: 700; }
    blockquote p i    { color: #c6c6c6; }

    .blockquote-margin { margin: 50px 0; }
}

@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    #monnaies-collections .taux-de-change-01,
    #transaction .taux-de-change-02              { padding: 15px; }
}

/* ================================================================
   LOT E — Utilitaires et layout projet
   ================================================================ */

/* GLOBAUX */
iframe,
svg    { max-width: 100%; }
.white { color: #fff; }

/* Citation/blockquote sémantique — reset navigateur + styles de base */
blockquote {
    margin: 0;
    padding: 0;
    position: relative;
    font-size: 18px;
    font-style: italic;
}

/* Layout split image/texte — 2 colonnes égales pleine hauteur */
.split-row {
    display: flex;
    gap: 0;           /* pas de gouttière implicite */
    margin: 0;
    padding: 0;
}
.split-row > div {
    flex: 1;
    min-width: 0;
    /* align-items:stretch (défaut) — les colonnes s'égalisent en hauteur */
}

/* Flex items directs sans padding : un padding sur le flex item crée un delta
   de hauteur cross-axis que align-items:stretch ne compense pas dans tous les
   contextes. Le padding visuel est déplacé sur .split-texte (wrapper interne). */
.split-row > .taux-de-change-02,
.split-row > .taux-de-change-01 {
    padding: 0 !important;
}

/* Wrapper interne du bloc texte — reçoit le padding visuel */
@media screen and (max-width: 767px) {
    .taux-de-change-01 .content-block,
    .taux-de-change-02 .content-block { padding: 45px; }
}
@media screen and (min-width: 768px) {
    .taux-de-change-01 .content-block { padding: 60px 90px 90px 60px; }
    .taux-de-change-02 .content-block { padding: 60px 60px 60px 90px; }
}
@media (min-width: 768px) and (max-width: 1280px) {
    .taux-de-change-01 .content-block,
    .taux-de-change-02 .content-block { padding: 30px; }
    #transaction .taux-de-change-02 .content-block { padding: 35px; }
    #centre-ville .taux-de-change-02 .content-block,
    #expert .taux-de-change-02 .content-block { padding: 30px 40px; }
}
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    #monnaies-collections .taux-de-change-01 .content-block,
    #transaction .taux-de-change-02 .content-block { padding: 15px; }
}
@media (max-width: 420px) {
    .taux-de-change-01 .content-block,
    .taux-de-change-02 .content-block { padding: 20px; }
}

/* Layout vidéo accueil — 2/3 iframe + 1/3 texte */
.video-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: start;
}

@media (max-width: 767px) {
    .video-layout { grid-template-columns: 1fr; }
}

/* Wrapper iframe responsive 16:9 */
.video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}
.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* ================================================================
   LOT E2 — PAGES LÉGALES
   Couche sémantique : .page-legal, .legal-inner, .info-list
   Remplace les wrappers SPPB de mentions-legales / legal-notice.
   ================================================================ */

.page-legal {
    padding: 50px 0;
}

.legal-inner {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 576px) {
    .legal-inner { padding: 0 15px; }
}

.page-legal header {
    margin-bottom: 50px;
    text-align: center;
}

.page-legal h1 {
    font-size: 36px;
    line-height: 36px;
    margin: 0 0 15px;
}

/* LISTE D'INFORMATIONS — <dl> grille 2 colonnes */
.info-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 3em;
    margin: 0;
    text-align: left;
}

.info-list > div {
    padding: 0.75em 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Première ligne (2 items) : pas de séparateur au-dessus */
.info-list > div:first-child,
.info-list > div:nth-child(2) { border-top: none; }

.info-list dt {
    margin: 0 0 0.25em;
    color: #777;
    font-size: 1em;
}

.info-list dd {
    margin: 0;
    font-weight: 600;
}

.info-list a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(0, 0, 0, 0.3);
}

.info-list a:hover {
    color: #0064c6;
    text-decoration-color: currentColor;
}

@media (max-width: 640px) {
    .info-list { grid-template-columns: 1fr; }

    /* Sur mobile le 2e item devient la 2e ligne — rétablit le séparateur */
    .info-list > div:nth-child(2) { border-top: 1px solid rgba(0, 0, 0, 0.1); }
}

/* ================================================================
   E2 — RESPONSIVE TABLETTE ET MOBILE
   split-row / content-block / images de fond
   ================================================================ */

/* background-attachment:fixed est non fiable sur iOS/iPadOS dans les
   containers scrollables — on passe en scroll dès ≤1024px.
   Concerne : .image-collection (billets-03), .image-collection-02
   (billets-02), .image-monnaie-02 (monnaie-01). */
@media (max-width: 1024px) {
    .image-collection .split-row > div:first-child,
    .image-collection-02 .split-row > div:nth-child(2),
    .image-monnaie-02 .split-row > div:nth-child(2) {
        background-attachment: scroll;
        background-position: center center;
    }
}

/* ---- Tablette 768–1024px ---- */
@media (min-width: 768px) and (max-width: 1024px) {
    /* H2 dans les blocs texte split — évite les sauts de ligne parasites
       à mi-écran (50 % de 768–1024px = 384–512px pour la colonne texte). */
    .taux-de-change-01 .content-block h2,
    .taux-de-change-02 .content-block h2 {
        font-size: 26px;
        line-height: 1.35;
    }
}

/* ---- Mobile ≤767px ---- */
@media (max-width: 767px) {
    /* Ordre mobile : image TOUJOURS au-dessus du texte.
       Sur desktop, certaines sections ont l'image en 2e enfant DOM (côté droit).
       order:-1 remonte ces colonnes image avant le texte (order:0 par défaut). */
    .image-droite        .split-row > div:nth-child(2),
    .image-monnaie-02    .split-row > div:nth-child(2),
    .image-collection-02 .split-row > div:nth-child(2) {
        order: -1;
    }

    /* En mode single-col (flex-direction:column), 350px de min-height est excessif ;
       240px garantit une image visible sans occuper tout l'écran. */
    .image-gauche              .split-row > div:nth-child(1),
    .image-gauche-1            .split-row > div:nth-child(1),
    .image-droite              .split-row > div:nth-child(2),
    .image-collection          .split-row > div:first-child,
    .image-collection-02       .split-row > div:nth-child(2),
    .image-collection-or       .split-row > div:first-child,
    .image-collection-types-or .split-row > div:first-child,
    .image-monnaie-02          .split-row > div:nth-child(2) {
        min-height: 240px;
    }

    /* H2 dans les blocs texte split — taille adaptée colonne pleine largeur. */
    .taux-de-change-01 .content-block h2,
    .taux-de-change-02 .content-block h2 {
        font-size: 22px;
        line-height: 1.3;
    }

    /* Hero accueil FR/EN : background-attachment:fixed défini dans $extra_head
       (chargé après main.css dans layout.php) — !important requis pour
       écraser la règle inline de priorité supérieure. */
    #image-logo-front {
        background-attachment: scroll !important;
    }

    /* Prévention de débordement horizontal global. */
    .body-wrapper {
        overflow-x: clip;
    }

    #la-reference { padding: 0; }
}

/* ================================================================
   STUBS — pages en cours de rédaction
   ================================================================ */

.page-stub {
    padding: 60px 0;
}

/* ================================================================
   CONTACT & ERREURS — remplacement des styles inline NexaSlab
   ================================================================ */


.error-heading {
    color: var(--c-or);
    font-weight: 400;
    font-family: var(--font-titre);
}

/* ================================================================
   NOUVEAUX COMPOSANTS - design system CSC
   ================================================================ */

/* ----------------------------------------------------------------
   BOUTONS CTA
   ---------------------------------------------------------------- */

.btn-csc-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--s-sm);
    padding: 10px 30px;
    background-color: var(--c-or-fonce);
    color: #fff;
    font-family: var(--font-corps);
    font-size: var(--t-petit);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid var(--c-or-fonce);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 200ms, border-color 200ms, color 200ms;
}

.btn-csc-primary:hover {
    background-color: var(--c-or);
    border-color: var(--c-or);
    color: #fff;
}

.btn-csc-primary svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-csc-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--s-xs);
    padding: 10px 26px;
    background-color: transparent;
    color: var(--c-or);
    font-family: var(--font-corps);
    font-size: var(--t-petit);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid var(--c-or);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 200ms, color 200ms;
}

.btn-csc-secondary:hover {
    background-color: var(--c-or);
    color: #fff;
}

/* Variante sur fond sombre */
.btn-csc-secondary.on-dark {
    color: var(--c-or-clair);
    border-color: var(--c-or-clair);
}
.btn-csc-secondary.on-dark:hover {
    background-color: var(--c-or-clair);
    color: var(--c-fond-sombre);
}

/* ----------------------------------------------------------------
   EMPLACEMENTS IMAGE — réserve les dimensions (anti-CLS)
   ---------------------------------------------------------------- */

.image-slot {
    display: block;
    width: 100%;
    overflow: hidden;
    background-color: var(--c-fond-alt);
}

.image-slot picture {
    display: contents;
}

.image-slot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-slot--hero    { aspect-ratio: 16 / 7; }
.image-slot--wide    { aspect-ratio: 16 / 9; }
.image-slot--square  { aspect-ratio: 1 / 1; }
.image-slot--portrait { aspect-ratio: 3 / 4; }

/* ----------------------------------------------------------------
   BARRE DE CONFIANCE — trust-bar
   Affiche les éléments de réassurance (fond sombre, texte or/blanc)
   ---------------------------------------------------------------- */

.trust-bar {
    background-color: var(--c-fond-sombre);
    color: #fff;
    padding: var(--s-md) var(--padding-inline);
}

.trust-bar-inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-md) var(--s-lg);
    justify-content: center;
    align-items: center;
    max-width: var(--w-max);
    margin-inline: auto;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--s-xs);
    font-family: var(--font-corps);
    font-size: var(--t-petit);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.trust-item .trust-accent {
    color: var(--c-or-clair);
    font-family: var(--font-titre);
    font-size: 1.25rem;
    font-weight: 400;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
}

/* ----------------------------------------------------------------
   CONTENEUR STANDARD — .csc-container
   ---------------------------------------------------------------- */

.csc-container {
    width: 100%;
    max-width: var(--w-max);
    margin-inline: auto;
    padding-inline: var(--padding-inline);
}

/* ----------------------------------------------------------------
   NAV DESKTOP — lien actif enfant
   Le JS ajoute .active sur le <li> parent quand une route enfant est active.
   ---------------------------------------------------------------- */

.sp-megamenu-parent > li.active-child > a {
    color: var(--c-or-fonce);
}

/* ================================================================
   HOMEPAGE v2 — Bleu Nuit Éditorial
   ================================================================ */

/* ── 1. HERO — plein format avec overlay ── */

.hp-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: clamp(520px, 80vh, 820px);
}

/* Image de fond */
.hp-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    z-index: 0;
}

/* Overlay bleu nuit — fort à gauche, s'efface vers la droite */
.hp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #112d3f 0%, #112d3fb3 38% 38%, rgba(27, 45, 69, 0.30) 65%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* Lattice — filigrane blanc, moitié gauche */
.hp-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    display: none;
    background: rgba(255, 255, 255, 0.12);
    -webkit-mask-image: url(../svg/lattice.svg),
                        linear-gradient(to right, black 42%, transparent 78%);
    mask-image: url(../svg/lattice.svg),
                linear-gradient(to right, black 42%, transparent 78%);
    -webkit-mask-size: 180px 180px, 100% 100%;
    mask-size: 180px 180px, 100% 100%;
    -webkit-mask-repeat: repeat, no-repeat;
    mask-repeat: repeat, no-repeat;
    -webkit-mask-position: -10px -10px, 0 0;
    mask-position: -10px -10px, 0 0;
    -webkit-mask-composite: source-in, source-over;
    mask-composite: intersect, add;
}

/* Contenu — gauche */
.hp-hero-content {
    position: relative;
    z-index: 3;
    padding: var(--hp-hero-pad);
    max-width: 580px;
}

/* Typographie hero */

.hp-label {
    font-family: var(--font-corps);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-or);
    margin: 0 0 var(--s-md);
}

.hp-hero h1 {
    font-family: var(--font-titre);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    font-style: normal;
    font-optical-sizing: auto;
    color: #fff;
    line-height: 1.05;
    margin: 0 0 var(--s-md);
}

.hp-hero-sub {
    font-family: var(--font-titre);
    font-size: 1.2rem;
    color: var(--c-texte-inv);
    line-height: 1.65;
    margin: 0 0 var(--s-lg);
    max-width: 40ch;
}

/* CTA — bouton ghost blanc, version hero (plus grand que btn-csc-primary) */
.hp-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 5px;
    font-family: var(--font-corps);
    font-size: var(--t-label);
    font-weight: 600;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    transition: background 200ms, border-color 200ms;
}

.hp-hero-cta svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.hp-hero-cta:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: #fff;
    color: #fff;
}
.hp-hero-cta:hover svg { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
    .hp-hero-cta svg,
    .sp-megamenu-parent .sp-nav-cta > a.hp-hero-cta,
    .sp-megamenu-parent .sp-nav-cta > a.hp-hero-cta svg { transition: none; }
}

/* Tags — haut droite, verticaux, DM Sans blanc */
.hp-hero-tags {
    position: absolute;
    top: var(--s-xl);
    right: var(--hp-hero-pad);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--s-sm);
    pointer-events: none;
}

.hp-hero-tags span {
    font-family: var(--font-corps);
    font-size: var(--t-label);
    font-weight: 500;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1;
}

/* ── 2. REPÈRES — continuum bleu nuit ── */

.hp-reperes {
    position: relative;
    overflow: hidden;
    background: var(--c-bleu-nuit);
    padding: var(--s-md) var(--padding-inline) var(--s-md);
}

.hp-reperes-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    max-width: var(--w-max);
    margin-inline: auto;
    justify-content: center;
}

.hp-repere-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-md);
    flex: 1;
    padding: 0 var(--s-lg);
}

.hp-repere-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.hp-repere-icon {
    width: 35px;
    height: 35px;
    color: #ffffff;
    flex-shrink: 0;
    transform: translateY(-15px);
}

.hp-repere-chiffre {
    font-family: var(--font-titre);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 300;
    font-optical-sizing: auto;
    color: var(--c-fond-blanc);
    line-height: 1;
}

.hp-repere-label {
    font-family: var(--font-corps);
    font-size: var(--t-label);
    font-weight: 500;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.hp-repere-sep {
    width: 0.5px;
    height: 60px;
    background: #fff;
    flex-shrink: 0;
}

/*  3. SERVICES */
#services {
    padding: var(--s-xl) var(--padding-inline);
    background: var(--c-papier);
}

.hp-services-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-lg);
    max-width: var(--w-max);
    margin-inline: auto;
}

#services .hp-label {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.hp-svc {
    position: relative;
    display: grid;
    grid-template-columns: 62% 38%;
    min-height: 320px;
    overflow: hidden;
    background: var(--c-fond-clair);
    border: 1px solid var(--c-texte-inv);
    border-radius: 5px;
    transition: border-color 0.2s ease;
}

.hp-svc:hover {
    border-color: var(--c-fond-blanc);
}

.hp-svc:hover .hp-svc-link svg {
    transform: translateX(4px);
}

.hp-svc-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(36px, 3.6vw, 63px);
}

.hp-svc-content h2 {
    margin: 0 0 var(--s-sm);
    font-family: var(--font-titre);
    font-style: normal;
    color: var(--c-encre);
}

.hp-svc-content p {
    margin: 0 0 var(--s-md);
    max-width: 34ch;
    font-family: var(--font-corps);
    color: var(--c-encre-2);
}

.hp-svc-link {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    color: var(--c-or);
    font-family: var(--font-corps);
    font-size: var(--t-petit);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--ls-label);
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}

.hp-svc .hp-svc-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
}

.hp-svc-link svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    transition: transform 180ms ease;
}

.hp-svc-link:hover svg {
    transform: translateX(4px);
}

.hp-svc-visual {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: var(--c-papier);
}

.hp-svc-visual::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 10px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        var(--c-papier) 0%,
        rgba(243, 239, 231, 0.82) 25%,
        rgba(243, 239, 231, 0) 100%
    );
}

.hp-svc-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.hp-svc--devises .hp-svc-visual img {
    object-position: 100% center;
}

.hp-svc--or .hp-svc-visual img {
    object-position: 100% center;
}

.hp-card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-corps);
    font-size: var(--t-label);
    font-weight: 600;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--c-encre);
    text-decoration: none;
}

.hp-card-arrow svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.hp-card-arrow:hover { color: var(--c-encre); }
.hp-card-arrow:hover svg { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
    .hp-card-arrow svg  { transition: none; }
    .hp-svc-link svg    { transition: none; }
    .hp-or-link svg     { transition: none; }
}

/* - 4. ENGAGEMENT - surtitre, titre, vidéo panoramique, signatures - */
.hp-engagement {
    background: var(--c-fond);
    padding: 0 var(--padding-inline) var(--s-xl);
}

.hp-engagement-inner {
    max-width: var(--w-max);
    margin-inline: auto;
    text-align: center;
}

.hp-engagement .hp-label,
#services .hp-label {
    text-align: center;
}

.hp-engagement .hp-label {
    margin-bottom: var(--s-lg);
}

.hp-engagement .hp-label::after,
#services .hp-label::after {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: var(--c-or);
    margin: var(--s-xs) auto 0;
}

.hp-engagement h2,
.hp-engagement h3 {
    font-family: var(--font-titre);
    font-weight: 400;
    font-optical-sizing: auto;
    color: var(--c-bleu-nuit);
    line-height: 1.2;
    margin: 0 auto var(--s-lg);
}

.hp-engagement h2 {
    font-size: var(--t-h2);
    max-width: 680px;
}

.hp-engagement h3 {
    font-size: var(--t-h2);
}

.hp-engagement p:not(.hp-label) {
    font-family: var(--font-corps);
    font-size: var(--t-corps);
    color: var(--c-texte-2);
    line-height: 1.75;
    max-width: var(--w-texte);
    margin: 0 auto var(--s-xl);
}

.hp-engagement-photo {
    position: relative;
    aspect-ratio: 100 / 41;
    overflow: hidden;
    border-radius: 10px;
    margin: 0 0 var(--s-xl);
}

.hp-engagement-photo video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.hp-engagement-sound {
    position: absolute;
    right: var(--s-md);
    bottom: var(--s-md);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: color-mix(in srgb, var(--c-fond-blanc) 20%, transparent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.hp-engagement-sound:focus-visible {
    outline: 2px solid var(--c-or);
    outline-offset: 2px;
}

.hp-engagement-sound-icon {
    width: 20px;
    height: 20px;
}

.hp-engagement-sound-icon[hidden] {
    display: none;
}

.hp-engagement-signatures {
    list-style: none;
    margin: var(--s-xl) 0 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
}

.hp-engagement-signature {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 var(--s-lg);
}

.hp-engagement-signature + .hp-engagement-signature {
    border-left: 1px solid var(--c-bord);
}

.hp-engagement-signature-title {
    font-family: var(--font-titre);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 300;
    font-optical-sizing: auto;
    color: var(--c-or);
    line-height: 1;
}

.hp-engagement-signature-title::after {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--c-or);
    margin: var(--s-sm) auto;
}

.hp-engagement-signature-label {
    font-family: var(--font-corps);
    font-size: var(--t-label);
    font-weight: 500;
    letter-spacing: var(--lm-label);
    text-transform: uppercase;
    color: var(--c-texte-2);
}

/* - 5. OR — bande bleu nuit - */

/* ================================================================
   TEXTURE PAPIER
   ================================================================ */
.paper-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #ffffff;
    -webkit-mask-image: url('../svg/pattern-papier.svg');
            mask-image: url('../svg/pattern-papier.svg');
    -webkit-mask-repeat: repeat;
            mask-repeat: repeat;
    -webkit-mask-size: 16px 16px;
            mask-size: 16px 16px;
    opacity: .4;
    pointer-events: none;
}

.paper-pattern.paper-pattern-fade::before {
    -webkit-mask-image:
        url('../svg/pattern-papier.svg'),
        linear-gradient(to bottom, transparent 0%, black 50%);
    -webkit-mask-size: 16px 16px, 100% 100%;
    -webkit-mask-composite: source-in;
    mask-image:
        url('../svg/pattern-papier.svg'),
        linear-gradient(to bottom, transparent 0%, black 50%);
    mask-size: 16px 16px, 100% 100%;
    mask-composite: intersect;
}

.hp-or {
    position: relative;
    background: var(--c-bleu-nuit);
    padding: var(--s-xl) var(--padding-inline);
    overflow: hidden;
}

.hp-or::before {
    z-index: 1;
}

.hp-or-inner {
    display: grid;
    grid-template-columns: 4fr 5fr 3fr;
    column-gap: var(--s-md);
    align-items: center;
    max-width: var(--w-max);
    margin-inline: auto;
}

.hp-or-content {
    position: relative;
    z-index: 2;
}

.hp-or-label {
    font-family: var(--font-corps);
    font-size: var(--t-label);
    font-weight: 600;
    letter-spacing: var(--lm-label);
    text-transform: uppercase;
    color: var(--c-or);
    margin: 0 0 var(--s-lg);
    display: flex;
    align-items: center;
    gap: var(--s-sm);
}

.hp-or-label::after {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--c-or);
    flex-shrink: 0;
}

.hp-or-content h2 {
    font-family: var(--font-titre);
    font-size: var(--t-h2);
    font-weight: 300;
    font-optical-sizing: auto;
    color: var(--c-fond-blanc);
    margin: 0 0 var(--s-md);
    line-height: 1.2;
}

.hp-or-content p:not(.hp-or-label) {
    font-family: var(--font-corps);
    font-size: 1rem;
    color: var(--c-texte-inv);
    line-height: 1.75;
    margin: 0 0 var(--s-lg);
}


.hp-or-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hp-or-link svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    transition: transform .2s ease;
}

.hp-or-link:hover svg {
    transform: translateX(4px);
}

.hp-or-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-or-visual img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
}

.hp-or-aside {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--s-md);
    justify-self: end;
}

.hp-or-quote {
    font-family: var(--font-titre);
    font-style: italic;
    font-size: clamp(1.25rem, 1.6vw, 1.625rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.3;
    margin: 0;
}

.hp-or-aside-sep {
    display: block;
    width: 28px;
    height: 1px;
    background: var(--c-or);
    flex-shrink: 0;
}

.hp-or-pillars {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hp-or-pillars li {
    font-family: var(--font-corps);
    font-size: var(--t-label);
    font-weight: 600;
    letter-spacing: var(--lm-label);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}


/* ── Responsive homepage v2 ── */

@media (max-width: 991px) {
    .hp-hero {
        min-height: 70vw;
    }
    .hp-hero-content {
        padding: var(--s-xl) var(--padding-inline) var(--s-lg);
    }
    .hp-hero-tags {
        top: var(--s-md);
        right: var(--padding-inline);
    }
    .hp-or-inner {
        grid-template-columns: 1fr;
        row-gap: var(--s-lg);
    }
    .hp-or-visual img {
        width: clamp(200px, 55vw, 360px);
        height: auto;
        margin-inline: auto;
    }
    .hp-or-aside {
        align-items: center;
        text-align: center;
        justify-self: stretch;
    }
}

@media (max-width: 767px) {
    .hp-or-visual img {
        width: clamp(280px, 80vw, 440px);
    }
}

@media (min-width: 992px) {
    .hp-or-label {
        transform: translateY(-30px);
    }
}

@media (max-width: 1024px) {
    .hp-services-inner {
        grid-template-columns: 1fr;
    }
    .hp-svc {
        grid-template-columns: 55% 45%;
        min-height: 280px;
    }
    .hp-svc-content {
        position: static;
        padding: clamp(28px, 4vw, 40px);
    }
}

@media (max-width: 620px) {
    .hp-svc {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        min-height: auto;
    }

    .hp-svc-content {
        grid-column: 1;
        grid-row: 2;
        padding: clamp(24px, 5vw, 32px);
    }

    .hp-svc-visual {
        position: relative;
        grid-column: 1;
        grid-row: 1;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
        height: clamp(180px, 48vw, 260px);
        aspect-ratio: auto;
    }

    .hp-svc-visual img {
        flex-shrink: 0;
        width: auto;
        max-width: none;
    }

    .hp-svc--devises .hp-svc-visual img {
        height: 170%;
    }

    .hp-svc--or .hp-svc-visual img {
        height: 200%;
    }

    .hp-svc-visual::before {
        display: none;
    }
}

@media (max-width: 767px) {
    .hp-hero {
        min-height: 85vw;
    }
    .hp-hero::after {
        display: none;
    }
    .hp-hero-tags {
        display: none;
    }
    .hp-reperes-inner {
        flex-wrap: wrap;
        gap: 0;
    }
    .hp-repere-sep {
        display: none;
    }
    .hp-repere-item {
        flex: 0 0 100%;
        width: 100%;
        padding: var(--s-md) var(--s-md);
    }
    .hp-repere-item:not(:first-child) {
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }
}

@media (max-width: 767px) {
    .hp-engagement-signatures {
        flex-direction: column;
        margin-top: var(--s-lg);
    }
    .hp-engagement p:not(.hp-label) {
        margin-bottom: 0;
    }
    .hp-engagement-signature + .hp-engagement-signature {
        border-left: 0;
        border-top: 0;
        position: relative;
    }
    .hp-engagement-signature + .hp-engagement-signature::before {
        content: "";
        position: absolute;
        top: 0;
        left: 15%;
        width: 70%;
        border-top: 1px solid var(--c-bord);
    }
    .hp-engagement-signature {
        padding: var(--s-md) 0;
    }
}

@media (max-width: 480px) {
    .hp-hero {
        min-height: 100vw;
    }
}

/* ================================================================
   PAGES PILIERS — composants communs (change-devises, or)
   ================================================================ */

/* ---- Introduction éditoriale ---- */

.pilier-intro {
    padding: var(--s-xl) 0;
    background-color: var(--c-fond-blanc);
}

.pilier-intro p {
    max-width: var(--w-texte);
    font-family: var(--font-corps);
    font-size: var(--t-body-lg);
    line-height: 1.75;
    color: var(--c-texte);
    margin: 0;
}

/* ---- Navigation sous-services ---- */

.services-section {
    padding: var(--s-xl) 0;
    background-color: var(--c-fond-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--s-md);
}

.service-card {
    background: var(--c-fond-blanc);
    padding: var(--s-lg) var(--s-md);
    border-top: 2px solid var(--c-or);
    display: flex;
    flex-direction: column;
    gap: var(--s-sm);
}

.service-card h3 {
    font-size: var(--t-h3);
    font-family: var(--font-titre);
    font-weight: 500;
    color: var(--c-texte);
    margin: 0;
    line-height: 1.25;
}

.service-card > p {
    flex: 1;
    font-family: var(--font-corps);
    color: var(--c-texte-2);
    font-size: var(--t-petit);
    margin: 0;
    line-height: 1.65;
}

/* ---- Réassurance pilier (fond sombre, items centrés) ---- */

.pilier-reassurance {
    padding: var(--s-xl) var(--padding-inline);
    background-color: var(--c-fond-sombre);
}

/* ---- Maillage transversal ---- */

.pilier-liens {
    padding-block: var(--s-xl);
}

@media (min-width: 901px) {
    .pilier-liens {
        padding-block: var(--s-2xl);
    }
}

.pilier-liens-label {
    margin: 0 0 var(--s-lg);
    font-family: var(--font-corps);
    font-size: var(--t-petit);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-texte-2);
}

.pilier-liens-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--c-bord);
    border-bottom: 1px solid var(--c-bord);
}

.pilier-lien-editorial {
    display: flex;
    flex-direction: column;
    min-height: 280px;
    padding: var(--s-xl);
    color: var(--c-texte);
    text-decoration: none;
}

.pilier-lien-editorial + .pilier-lien-editorial {
    border-left: 1px solid var(--c-bord);
}

.pilier-lien-kicker {
    font-family: var(--font-corps);
    font-size: var(--t-petit);
    letter-spacing: .08em;
    color: var(--c-or);
}

.pilier-lien-titre {
    margin-top: var(--s-md);
    font-family: var(--font-titre);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
    font-weight: 400;
}

.pilier-lien-cta {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: auto;
    padding-top: var(--s-xl);
    font-size: var(--t-corps);
}

.pilier-lien-cta span {
    transition: transform .2s ease;
}

.pilier-lien-editorial:hover .pilier-lien-cta span {
    transform: translateX(5px);
}

@media (max-width: 767px) {
    .pilier-liens-grid {
        grid-template-columns: 1fr;
    }

    .pilier-lien-editorial {
        min-height: 230px;
        padding: var(--s-lg) 0;
    }

    .pilier-lien-editorial + .pilier-lien-editorial {
        border-left: 0;
        border-top: 1px solid var(--c-bord);
    }
}

/* Variante 3 colonnes */
.pilier-liens-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.pilier-liens-grid--3 .pilier-lien-editorial {
    padding: var(--s-lg);
}

.pilier-liens-grid--3 .pilier-lien-titre {
    font-size: clamp(1.25rem, 2vw, 1.875rem);
}

.pilier-lien-accroche {
    margin-top: var(--s-xs);
    font-family: var(--font-corps);
    font-size: var(--t-corps);
    color: var(--c-texte-2);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .pilier-liens-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .pilier-liens-grid--3 .pilier-lien-editorial:nth-child(2n+1):not(:first-child) {
        border-left: 0;
        border-top: 1px solid var(--c-bord);
    }
}

@media (max-width: 767px) {
    .pilier-liens-grid--3 {
        grid-template-columns: 1fr;
    }
    .pilier-liens-grid--3 .pilier-lien-editorial {
        min-height: 0;
        padding: var(--s-lg) 0;
    }
}

/* ---- Responsive pages piliers ---- */

@media (max-width: 767px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   PAGES PILIERS — en-tête commun (fond sombre, sans photo)
   Utilisé par : change-frontalier-suisse, preparer-voyage, or
   ================================================================ */

.page-pilier-header {
    background-color: var(--c-fond-sombre);
    padding: var(--s-xl) 0;
}

.page-pilier-header h1 {
    font-family: var(--font-titre);
    font-size: var(--t-h1);
    font-weight: 400;
    color: var(--c-fond-blanc);
    margin: 0 0 var(--s-sm);
    line-height: 1.15;
}

.page-pilier-header-sub {
    font-family: var(--font-corps);
    font-size: var(--t-body-lg);
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    max-width: var(--w-texte);
    line-height: 1.65;
}

/* ================================================================
   PILLAR HERO — composant commun /change-devises/, /or/, /en/gold/
   .pillar-hero--gold isole les divergences réellement spécifiques à Or.
   ================================================================ */

.pillar-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 560px;
    background-color: var(--c-fond);
}

.pillar-hero-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    margin: 0;
}

.pillar-hero-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Voile ivoire : lisibilité du texte à gauche, dissipation progressive vers le centre */
.pillar-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgb(243 239 231) 30%,
        rgba(243, 239, 231, 0.80) 46%,
        rgba(243, 239, 231, 0.10) 66%,
        transparent 72%
    );
    z-index: 1;
    pointer-events: none;
}

.pillar-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding-block: clamp(40px, 6vw, 80px);
    padding-left: clamp(48px, 5.5vw, 88px);
    padding-right: var(--padding-inline);
}

/* hp-label est blanc par défaut (hero sombre) ; ici fond ivoire visible → or */
.pillar-hero .hp-label {
    color: var(--c-or-fonce);
}

@media (min-width: 768px) {
    .pillar-hero .hp-label {
        position: relative;
        top: -24px;
    }
}

.pillar-hero-h1 {
    line-height: 1.1;
    color: var(--c-texte);
    margin: 0 0 var(--s-md);
}

.pillar-hero-intro {
    font-family: var(--font-corps);
    font-size: var(--t-body-lg);
    color: var(--c-texte-2);
    line-height: 1.75;
    max-width: 44ch;
    margin: 0 0 var(--s-lg);
}

.pillar-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-sm);
    align-items: center;
}

/* -- Variante Or : seule la différence de cadrage de la photographie
   est conservée sur desktop, volontairement non harmonisée -- */

@media (min-width: 768px) {
    .pillar-hero--gold .pillar-hero-visual img {
        object-position: 65% center;
    }
}

/* Regroupements *-hero-head / *-hero-body : transparents par défaut (desktop),
   .pillar-hero-inner continue de voir ses enfants à plat, rendu desktop
   inchangé. Réactivés en boîtes réelles uniquement sur mobile ci-dessous. */
.pillar-hero-head, .pillar-hero-body {
    display: contents;
}

@media (max-width: 767px) {
    /* Hero pilier commun : disposition verticale, texte sur fond ivoire,
       puis photographie au ratio natif, puis contenu. */
    .pillar-hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
    }

    .pillar-hero::before {
        display: none;
    }

    .pillar-hero-inner {
        display: contents;
    }

    .pillar-hero-head, .pillar-hero-body {
        display: block;
    }

    .pillar-hero-head {
        order: 1;
        padding: clamp(32px, 8vw, 56px) var(--padding-inline) 0;
    }

    .pillar-hero-visual {
        order: 2;
        position: relative;
        inset: auto;
        aspect-ratio: 2079 / 756;
        overflow: hidden;
    }

    .pillar-hero-visual img {
        width: 100%;
        height: auto;
    }

    .pillar-hero-body {
        order: 3;
        padding: var(--s-md) var(--padding-inline) 0;
    }

    .pillar-hero-ctas {
        flex-direction: column;
        align-items: stretch;
        gap: var(--s-xs);
    }

    .pillar-hero-ctas > a {
        width: 100%;
        justify-content: center;
    }

    /* Or n'a pas de bande stats pour fermer l'espacement bas : padding propre */
    .pillar-hero--gold .pillar-hero-body {
        padding-bottom: clamp(32px, 8vw, 56px);
    }
}

/* ================================================================
   EN-TÊTE BICOLONNE — section-header-split
   H2 à gauche, texte ou aside à droite. Composant générique.
   ================================================================ */

.section-header-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-xl);
    align-items: start;
    margin-bottom: var(--s-2xl);
}

.section-header-split h2 {
    font-family: var(--font-titre);
    font-size: var(--t-h2);
    font-weight: 400;
    line-height: 1.15;
    color: var(--c-texte);
    margin: 0;
}

.section-header-split > p {
    font-family: var(--font-corps);
    font-size: var(--t-body-lg);
    color: var(--c-texte-2);
    line-height: 1.75;
    margin: 0;
}

@media (max-width: 767px) {
    .section-header-split {
        grid-template-columns: 1fr;
        gap: var(--s-sm);
        margin-bottom: var(--s-xl);
    }
}

/* ================================================================
   ÉTAPES DE PROCESS — process-*
   Trois étapes en colonnes sur desktop, empilées sur mobile.
   ================================================================ */

.process-etapes {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-xl);
}

.process-step {
    display: flex;
    flex-direction: column;
    gap: var(--s-md);
    padding-top: var(--s-md);
    border-top: 1px solid var(--c-or);
}

.process-step-num {
    font-family: var(--font-titre);
    font-size: clamp(3rem, 4.5vw, 4.5rem);
    font-weight: 400;
    line-height: 1;
    color: var(--c-or);
    opacity: 0.45;
    letter-spacing: -0.02em;
}

.process-step-body {
    display: flex;
    flex-direction: column;
    gap: var(--s-xs);
}

.process-step-titre {
    font-family: var(--font-titre);
    font-size: var(--t-h3);
    font-weight: 500;
    color: var(--c-texte);
    margin: 0;
    line-height: 1.3;
}

.process-step-body p {
    font-family: var(--font-corps);
    font-size: var(--t-corps);
    color: var(--c-texte-2);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 767px) {
    .process-etapes {
        grid-template-columns: 1fr;
        gap: var(--s-lg);
    }
}

/* ================================================================
   PILLAR INTRO — section éditoriale commune /or/, /en/gold/
   Surcharges scopées de .content-section / .section-header-split /
   .hp-label (non modifiés globalement) + nouveau bloc de repères.
   ================================================================ */

.pillar-intro .hp-label {
    position: relative;
    padding-left: 28px;
}

.pillar-intro .hp-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 1px;
    background: var(--c-or);
}

.pillar-intro .section-header-split h2 {
    position: relative;
    padding-bottom: var(--s-md);
}

.pillar-intro .section-header-split h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 2px;
    background: var(--c-or);
}

.pillar-intro-text {
    display: flex;
    flex-direction: column;
    gap: var(--s-md);
    position: relative;
    padding-left: var(--s-lg);
}

.pillar-intro-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: var(--c-bord);
}

.pillar-intro-text p {
    font-size: var(--t-body-lg);
    line-height: 1.75;
    color: var(--c-texte-2);
    margin: 0;
}

.pillar-intro-reperes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-xl);
    text-align: center;
}

.pillar-intro-repere {
    border-left: 1px solid var(--c-bord);
    padding-left: var(--s-lg);
}

.pillar-intro-repere:first-child {
    border-left: none;
    padding-left: 0;
}

.pillar-intro-repere h3 {
    margin: 0 0 var(--s-xs);
}

.pillar-intro-repere p {
    color: var(--c-texte-2);
    margin: 0;
}

@media (max-width: 767px) {
    .pillar-intro-text {
        padding-left: 0;
    }

    .pillar-intro-text::before {
        display: none;
    }

    .pillar-intro-reperes {
        grid-template-columns: 1fr;
        gap: 0;
        text-align: left;
    }

    .pillar-intro-repere {
        border-left: none;
        padding-left: 0;
    }

    .pillar-intro-repere + .pillar-intro-repere {
        margin-top: var(--s-lg);
        padding-top: var(--s-lg);
        border-top: 1px solid var(--c-bord);
    }

    .pillar-intro-repere h3 {
        font-size: 1.25rem;
    }

    .pillar-intro-reperes.fond-texture {
        background-image: none;
        background-color: transparent;
    }
}

@media (min-width: 768px) {
    .pillar-intro-reperes {
        position: relative;
        background-color: var(--c-fond-clair);
        padding: var(--s-lg);
    }

    .pillar-intro-reperes::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(
            to right,
            var(--c-or) 0%,
            #dfca9a 50%,
            var(--c-or) 100%
        );
        pointer-events: none;
    }
}

@media (min-width: 768px) and (max-width: 900px) {
    .pillar-intro-reperes {
        gap: var(--s-md);
        padding: var(--s-md);
    }

    .pillar-intro-repere {
        padding-left: var(--s-sm);
    }

    .pillar-intro-reperes.fond-texture {
        background-image: none;
    }
}

.pillar-divider {
    position: relative;
}

.pillar-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 17px;
    background: repeating-linear-gradient(
        52deg,
        color-mix(in srgb, var(--c-or) 25%, transparent) 0px,
        color-mix(in srgb, var(--c-or) 25%, transparent) 0.5px,
        transparent 0.5px,
        transparent 3px
    );
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    pointer-events: none;
}

/* ================================================================
   EDITORIAL TEASER — composant commun .cd-voyage / .or-demarches
   Grille 3 colonnes, photo débordante en arrière-plan, colonne de
   repères. Styles communs ici ; particularités et responsive
   (breakpoints distincts) dans .cd-voyage / .or-demarches respectivement.
   ================================================================ */

.editorial-teaser {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: var(--s-xl);
    align-items: stretch;
    position: relative;
    isolation: isolate;
}

.editorial-teaser-content {
    display: flex;
    flex-direction: column;
    gap: var(--s-lg);
    justify-content: center;
    position: relative;
    z-index: 1;
}

.editorial-teaser-titre {
    font-family: var(--font-titre);
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 400;
    color: var(--c-fond-blanc);
    line-height: 1.1;
    margin: 0;
}

.editorial-teaser-body {
    font-family: var(--font-corps);
    font-size: var(--t-body-lg);
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.75;
    margin: 0;
}

.editorial-teaser-visual {
    position: absolute;
    overflow: hidden;
    z-index: 0;
    inset-inline: 0;
    inset-block: calc(-1 * var(--s-xl));
    -webkit-mask-image: linear-gradient(to right,
        transparent 0%, black 24%, black 76%, transparent 100%),
    linear-gradient(to bottom,
        transparent 0%, black 24%, black 76%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right,
        transparent 0%, black 24%, black 76%, transparent 100%),
    linear-gradient(to bottom,
        transparent 0%, black 24%, black 76%, transparent 100%);
    mask-composite: intersect;
}

.editorial-teaser-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: saturate(0.52) brightness(0.91) contrast(0.94) sepia(0.06);
}

.editorial-teaser-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--c-bleu-nuit);
    opacity: 0.70;
    pointer-events: none;
}

.editorial-teaser-topics {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    grid-column: 3;
    position: relative;
    z-index: 1;
}

.editorial-teaser-topic {
    display: flex;
    gap: var(--s-sm);
    padding-block: var(--s-md);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.editorial-teaser-topic:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.editorial-teaser-topic-num {
    font-family: var(--font-titre);
    font-size: var(--t-petit);
    font-weight: 400;
    color: var(--c-or);
    opacity: 0.95;
    line-height: 1.4;
    flex-shrink: 0;
    min-width: 1.5ch;
}

.editorial-teaser-topic-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.editorial-teaser-topic-titre {
    font-family: var(--font-corps);
    font-size: var(--t-petit);
    font-weight: 600;
    color: var(--c-fond-blanc);
    margin: 0;
    line-height: 1.3;
}

.editorial-teaser-topic-texte {
    font-family: var(--font-corps);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.55;
    margin: 0;
}

.hp-svc-link.editorial-teaser-link {
    color: var(--c-fond-blanc);
}

.editorial-teaser-link:hover,
.editorial-teaser-link:focus-visible {
    color: var(--c-or);
}

@media (min-width: 901px) {
    .cd-voyage.teaser-section,
    .or-demarches.teaser-section {
        padding: var(--s-2xl) 0;
    }

    .editorial-teaser-visual {
        inset-block: calc(-1 * var(--s-2xl));
    }
}

/* ================================================================
   PAGE CHANGE-DEVISES
   ================================================================ */

.cd-devises {
    position: relative;
}
.cd-devises::before,
.contact-comptoirs::before {
    top: 0;
    left: 0;
    right: 0;
    height: 17px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.cd-devises-header { margin-bottom: var(--s-xl); }

.cd-devises-footer {
    max-width: calc(var(--w-max) + 160px);
    padding-inline: var(--padding-inline);
    margin: var(--s-lg) auto 0;
    display: flex;
    justify-content: flex-end;
}

.cd-devises-list {
    list-style: none;
    padding-inline: var(--padding-inline);
    margin: 0 auto;
    max-width: calc(var(--w-max) + 160px);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}

.cd-devise-item {
    display: flex;
    flex-direction: column;
}

.cd-devise-figure {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.cd-devise-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.cd-devise-content {
    padding: var(--s-sm) 0 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cd-devise-code {
    font-family: var(--font-titre);
    font-size: clamp(1.125rem, 1.6vw, 1.5rem);
    font-weight: 400;
    color: var(--c-texte);
    margin: 0;
    line-height: 1;
}

.cd-devise-nom {
    font-family: var(--font-corps);
    font-size: var(--t-petit);
    color: var(--c-texte-2);
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 767px) {
    .cd-devises-list {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--s-xs);
    }
    .cd-devise-item:last-child {
        grid-column: 1 / -1;
    }

    .cd-devise-item:last-child .cd-devise-figure {
        aspect-ratio: 16 / 7;
    }
}

/* ================================================================
   PAGE CHANGE-DEVISES — cd-voyage (section 4)
   ================================================================ */

/* Styles structurels communs : voir .editorial-teaser* (composant partagé
   avec .or-demarches, défini ci-dessus). .cd-voyage n'a plus de particularité
   propre : .hp-svc-link fournit déjà margin-top: auto nativement. */

@media (max-width: 767px) {
    .cd-voyage .editorial-teaser {
        grid-template-columns: 1fr;
        gap: var(--s-lg);
    }
    .cd-voyage .editorial-teaser-visual {
        position: relative;
        inset: auto;
        aspect-ratio: 3 / 2;
        margin-inline: calc(-1 * var(--padding-inline));
        -webkit-mask-image: none;
        mask-image: none;
    }
    .cd-voyage .editorial-teaser-visual img {
        filter: saturate(0.65) brightness(0.96) contrast(0.98) sepia(0.04);
        transform: scale(1.12);
        transform-origin: center;
    }
    .cd-voyage .editorial-teaser-visual::after {
        opacity: 0;
    }
    .cd-voyage .editorial-teaser-topics {
        grid-column: auto;
    }
}

/* ================================================================
   CD-FRONTALIER - Annecy ↔ Genève
   ================================================================ */

.cd-frontalier-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--s-xl);
    row-gap: var(--s-md);
    align-items: stretch;
}

/* Desktop : carte col 1 sur 2 lignes, label + content col 2 */
.cd-frontalier-carte {
    grid-column: 1;
    grid-row: 1 / 3;
    margin: 0;
    background: var(--c-fond-alt);
    min-height: 440px;
    overflow: hidden;
}

.cd-frontalier-label {
    grid-column: 2;
    align-self: end;
    margin: 0;
}

.cd-frontalier-carte img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cd-frontalier-content {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: var(--s-md);
    justify-content: center;
    padding-block: 0 var(--s-xl);
}

.cd-frontalier-titre {
    font-family: var(--font-titre);
    font-size: clamp(2.4rem, 4vw, 4rem);
    font-weight: 400;
    color: var(--c-texte);
    line-height: 1.05;
    margin: 0;
}

.cd-frontalier-body {
    font-family: var(--font-corps);
    font-size: var(--t-body-lg);
    color: var(--c-texte-2);
    line-height: 1.75;
    margin: 0;
}

.cd-frontalier-paire {
    display: flex;
    align-items: center;
    gap: var(--s-sm);
    padding-block: var(--s-md);
    border-top: 1px solid var(--c-or);
    border-bottom: 1px solid var(--c-or);
}

.cd-frontalier-flag {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
}

.cd-frontalier-devise {
    font-family: var(--font-titre);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 400;
    color: var(--c-texte);
    line-height: 1;
    letter-spacing: 0.03em;
}

.cd-frontalier-paire-sep {
    font-family: var(--font-corps);
    font-size: 1rem;
    color: var(--c-texte-2);
    opacity: 0.5;
}

/*  Bloc vignette  */
.cd-frontalier-vignette-bloc {
    display: flex;
    align-items: flex-start;
    gap: var(--s-sm);
}

.cd-frontalier-vignette-icon {
    color: var(--c-or);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.cd-frontalier-vignette-icon svg {
    width: 34px;
    height: auto;
    display: block;
}

.cd-frontalier-vignette-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cd-frontalier-vignette-titre {
    font-family: var(--font-corps);
    font-size: var(--t-corps);
    font-weight: 600;
    color: var(--c-texte);
    margin: 0;
    line-height: 1.3;
}

.cd-frontalier-vignette-sub {
    font-family: var(--font-corps);
    font-size: 0.9125rem;
    color: var(--c-texte-2);
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 767px) {
    .cd-frontalier-inner {
        grid-template-columns: 1fr;
        gap: var(--s-md);
    }
    .cd-frontalier-label {
        grid-column: auto;
        align-self: auto;
        order: 1;
    }
    .cd-frontalier-carte {
        grid-column: auto;
        grid-row: auto;
        order: 2;
        min-height: 0;
    }
    .cd-frontalier-content {
        grid-column: auto;
        order: 3;
        padding-block: var(--s-sm) 0;
    }
}

/* cd-comptoir-placeholder — visuel de remplacement, section conclusion change-devises */

.cd-comptoir-placeholder {
    background: var(--c-fond-alt);
    aspect-ratio: 4 / 3;
    margin: 0;
}

/* ================================================================
   PAGE DEVISES - hero (section A)
   ================================================================ */

.dv-hero {
    position: relative;
    overflow: hidden;
    background: var(--c-fond);
}

/* Fondu écran - fond papier s'estompant vers le billet */
.dv-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--c-fond) 35%, transparent 80%);
    z-index: 1;
    pointer-events: none;
}

.dv-hero-inner {
    position: relative;
    z-index: 2;
    padding-block: var(--s-xl);
    min-height: 500px;
    display: flex;
    align-items: center;
}

.dv-hero-content {
    max-width: 52%;
    position: relative;
    padding-left: clamp(16px, 2vw, 32px);
    padding-right: clamp(8px, 1.5vw, 24px);
}

/* Breadcrumb — scoped fond clair, sans impact sur les autres pages */
.dv-hero .breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px var(--s-xs);
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    font-family: var(--font-corps);
    font-size: var(--t-petit);
    color: var(--c-texte-2);
}

.dv-hero .breadcrumb li + li::before {
    content: '›';
    margin-right: 4px;
    opacity: 0.5;
}

.dv-hero .breadcrumb a {
    color: var(--c-texte-2);
    text-decoration: none;
}

.dv-hero .breadcrumb a:hover {
    color: var(--c-or-fonce);
}

.dv-hero .breadcrumb [aria-current="page"] {
    color: var(--c-texte);
    font-weight: 500;
}

/* Label — règle or + ajustements hero (typographie via .section-label) */
.hero-label {
    display: flex;
    align-items: center;
    gap: var(--s-sm);
    margin-bottom: var(--s-sm);
}

.hero-label::before {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: var(--c-or);
    flex-shrink: 0;
}

.dv-hero-content h1 {
    color: var(--c-texte);
    margin: 0 0 var(--s-md);
}

.dv-hero-intro {
    font-family: var(--font-corps);
    font-size: var(--t-body-lg);
    color: var(--c-texte-2);
    line-height: 1.65;
    max-width: 40ch;
    margin: 0;
}

/* Zone visuelle — couvre tout le hero, derrière contenu et fondu */
.dv-hero-visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    margin: 0;
    padding: 0;
}

/* Billet — positionnement, rotation, dimensions */
.dv-hero-picture {
    position: absolute;
    display: block;
    width: 62vw;
    max-width: 860px;
    right: -5%;
    top: 50%;
    transform: translateY(-45%) rotate(23deg);
    transform-origin: 65% 30%;
}

/* Image dans le <picture> — remplit le conteneur */
.dv-hero-billet {
    display: block;
    width: 100%;
    height: auto;
}

/* Bande fiduciaire — bord gauche, deux zones : hachures (gauche) + texte (droite) */
.dv-hero-edge {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 28px;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 3px;
}

/* Hachures diagonales — trame aérée */
.dv-hero-edge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 28px;
    background: repeating-linear-gradient(
        -20deg,
        rgba(94, 74, 28, 0.95) 0px,
        rgba(94, 74, 28, 0.95) 0.5px,
        transparent 0.5px,
        transparent 10px
        ),
        rgb(184 119 58 / 20%);
}

/* Microtypographie — fond papier naturel de la zone droite */
.dv-hero-edge-text {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-family: var(--font-corps);
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgb(154 93 48 / 55%);
    white-space: nowrap;
    position: relative;
    right: -15px;
    z-index: 1;
    user-select: none;
}

/* Mobile — largeur réduite uniquement, motif inchangé */
@media (max-width: 767px) {
    .dv-hero-edge {
        width: 22px;
    }
}

/* Codes ISO — matière typographique, derrière le billet (z=0, avant .dv-hero-visual dans le DOM) */
.dv-hero-iso {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.dv-hero-iso-code {
    position: absolute;
    font-family: var(--font-titre);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--c-encre);
    opacity: 0.045;
    white-space: nowrap;
    user-select: none;
}

/* Positions desktop — moitié droite, hors zone texte */
.dv-hero-iso-code--usd { font-size: clamp(5.5rem, 8vw, 8rem);     top: -3%;    right: 2%;  }
.dv-hero-iso-code--chf { font-size: clamp(4.5rem, 6.5vw, 6.5rem); top: 30%;    right: 7%;  }
.dv-hero-iso-code--gbp { font-size: clamp(7rem, 10.5vw, 10rem);   top: 53%;    right: 25%; }
.dv-hero-iso-code--jpy { font-size: clamp(4rem, 6vw, 6rem);       bottom: 8%;  right: 18%; }
.dv-hero-iso-code--cad { font-size: clamp(5rem, 7.5vw, 7.5rem);   bottom: -8%; right: 20%; }

/* Tablette ≤ 1024px */
@media (max-width: 1024px) {
    .dv-hero-inner {
        min-height: 420px;
    }
    .dv-hero-content {
        max-width: 62%;
        padding-left: 50px;
        padding-right: 50px;
    }
    .dv-hero::after {
        background: linear-gradient(to right, var(--c-fond) 34%, transparent 70%);
    }
    .dv-hero-picture {
        width: 72vw;
        right: -8%;
        top: 55%;
    }
    /* ISO codes — 4 codes, CHF masqué */
    .dv-hero-iso-code--chf { display: none; }
    .dv-hero-iso-code--usd { top: -4%;    right: 1%;  }
    .dv-hero-iso-code--gbp { top: 38%;    right: 20%; }
    .dv-hero-iso-code--jpy { bottom: 12%; right: 14%; }
    .dv-hero-iso-code--cad { bottom: -5%; right: -2%; }
}

/* Mobile ≤ 767px */
@media (max-width: 767px) {
    .dv-hero::after {
        display: none;
    }
    .dv-hero-inner {
        min-height: auto;
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 0;
    }
    .dv-hero-content {
        max-width: 100%;
        padding-left: 45px;
        padding-right: 20px;
        padding-bottom: var(--s-md);
    }
    .dv-hero-content h1 br {
        display: none;
    }
    .dv-hero-visual {
        position: relative;
        inset: auto;
        width: 100%;
        height: 170px;
        overflow: hidden;
    }
    .dv-hero-picture {
        position: absolute;
        width: 200%;
        max-width: none;
        right: auto;
        left: -5%;
        top: 50%;
        transform: translateY(-50%) rotate(23deg);
        transform-origin: center center;
    }
    /* Rythme compact — bloc texte */
    .dv-hero .breadcrumb ol { margin-bottom: var(--s-xs); }
    .dv-hero .hero-label    { margin-bottom: var(--s-xs); }
    .dv-hero-content h1     { margin-bottom: var(--s-sm); }
    .dv-hero-intro          { max-width: 32ch; }
    /* ISO codes — 3 codes dans la bande billet, hors zone texte */
    .dv-hero-iso-code--usd { display: none; }
    .dv-hero-iso-code--chf { display: none; }
    .dv-hero-iso-code--gbp { font-size: 3.5rem;  top: auto; right: auto; bottom: 12px; left: 6%;  }
    .dv-hero-iso-code--jpy { font-size: 2.75rem; top: auto;              bottom: 28px; right: 32%; }
    .dv-hero-iso-code--cad { font-size: 2.5rem;  top: auto;              bottom: -8px; right: -1%; }
}

/* ================================================================
   PAGE DEVISES — section B : devises vedettes
   ================================================================ */

.devises-vedettes {
    padding-block: var(--s-xl);
    background: var(--c-fond);
    border-top: 1px solid var(--c-bord);
}

.devises-vedettes-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--c-bord);
    border-bottom: 1px solid var(--c-bord);
    background: var(--c-fond-clair);
}

.devise-vedette {
    display: flex;
    flex-direction: column;
    gap: var(--s-xs);
    padding: var(--s-lg) var(--s-md);
    border-right: 1px solid var(--c-bord);
    text-align: left;
}

.devise-vedette:last-child {
    border-right: none;
}

.devise-vedette-code {
    font-family: var(--font-titre);
    font-size: var(--t-h1);
    font-weight: 300;
    line-height: 1;
    color: var(--c-texte);
    letter-spacing: -0.01em;
    margin: 0;
}

.devise-vedette-pays {
    font-family: var(--font-corps);
    font-size: var(--t-corps);
    font-weight: 500;
    color: var(--c-texte);
    margin: 0;
}

.devise-vedette-monnaie {
    font-family: var(--font-corps);
    font-size: var(--t-petit);
    font-weight: 400;
    color: var(--c-texte-2);
    margin: 0;
}

/* Tablette — 3 + 2 */
@media (max-width: 1024px) {
    .devises-vedettes-list {
        grid-template-columns: repeat(6, 1fr);
    }
    .devise-vedette {
        grid-column: span 2;
        border-bottom: 1px solid var(--c-bord);
    }
    .devise-vedette:nth-child(4),
    .devise-vedette:nth-child(5) {
        grid-column: span 3;
        border-bottom: none;
    }
    .devise-vedette:nth-child(3) {
        border-right: none;
    }
}

/* Mobile — 2 colonnes, dernier item pleine largeur */
@media (max-width: 767px) {
    .devises-vedettes-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .devise-vedette {
        grid-column: span 1;
        padding: var(--s-md) var(--s-sm);
        border-bottom: 1px solid var(--c-bord);
    }
    .devise-vedette:nth-child(3) {
        border-right: 1px solid var(--c-bord);
    }
    .devise-vedette:nth-child(4),
    .devise-vedette:nth-child(5) {
        grid-column: span 1;
        border-bottom: 1px solid var(--c-bord);
    }
    .devise-vedette:nth-child(2n) {
        border-right: none;
    }
    .devise-vedette:last-child {
        grid-column: 1 / -1;
        border-right: none;
        border-bottom: none;
    }
}

/* ================================================================
   PAGE CHANGE-DEVISES — recherche et liste de devises
   ================================================================ */

#devise-search-section {
    background-color: var(--c-fond);
}

#devise-search-section > .csc-container > h2 {
    font-family: var(--font-titre);
    font-size: var(--t-h2);
    font-weight: 400;
    color: var(--c-texte);
    margin: 0 0 var(--s-sm);
    line-height: 1.25;
}

.devise-catalogue-intro {
    font-family: var(--font-corps);
    font-size: var(--t-body-lg);
    color: var(--c-texte-2);
    line-height: 1.6;
    max-width: 56ch;
    margin: 0 0 var(--s-lg);
}

.devise-zone-filters {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin-bottom: var(--s-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}

.devise-zone-filters::-webkit-scrollbar {
    display: none;
}

.devise-zone-filters-wrap {
    position: relative;
}

.devise-zone-scroll-hint {
    display: none;
}

@media (max-width: 767px) {
    .devise-zone-filters {
        padding-right: 44px;
    }
    .devise-zone-scroll-hint.is-visible {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--c-fond);
        border: none;
        cursor: pointer;
        color: var(--c-texte-2);
    }
    .devise-zone-scroll-hint.is-visible::after {
        content: '';
        display: inline-block;
        width: 6px;
        height: 6px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(-45deg);
        transition: transform 180ms ease;
    }
    .devise-zone-scroll-hint.is-visible.is-return::after {
        transform: rotate(135deg);
    }
}

.devise-zone-btn {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: var(--s-xs) var(--s-sm);
    background: none;
    border: none;
    border-bottom: 1px solid transparent;
    color: var(--c-texte-2);
    font-family: var(--font-corps);
    font-size: var(--t-corps);
    font-weight: 400;
    cursor: pointer;
    white-space: nowrap;
    transition: color 150ms, border-color 150ms;
}

.devise-zone-btn:first-child {
    padding-left: 0;
}

.devise-zone-btn:not(.is-active):hover {
    color: var(--c-texte);
    background: none;
}

.devise-zone-btn.is-active {
    color: var(--c-texte);
    background: none;
    font-weight: 500;
}

.devise-zone-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 0;
    background-color: var(--c-or);
    pointer-events: none;
    transform: translateX(0);
    transition: transform 240ms ease-out, width 240ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .devise-zone-indicator {
        transition: none;
    }
}

/* Champ masqué par défaut ; JS ajoute .js-active sur la section pour le révéler */
.devise-search-wrap {
    display: none;
    margin-bottom: var(--s-lg);
    position: relative; /* ancre le dropdown d'autocomplétion */
}

.devise-search-wrap::before {
    content: '';
    position: absolute;
    left: var(--s-sm);
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2353545A' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16' y1='16' x2='22' y2='22'/%3E%3C/svg%3E") center/contain no-repeat;
    pointer-events: none;
    opacity: 0.6;
}

#devise-search-section.js-active .devise-search-wrap {
    display: block;
}

.devise-search-input {
    width: 100%;
    padding: 12px var(--s-md) 12px 40px;
    border: 1px solid var(--c-bord);
    border-radius: 8px;
    background: rgb(255 255 255 / 90%);
    font-family: var(--font-corps);
    font-size: var(--t-corps);
    color: var(--c-texte);
    outline: none;
    appearance: none;
    transition: border-color 0.15s;
}

.devise-search-input:focus {
    border-color: var(--c-texte);
}

.devise-search-input::placeholder {
    color: var(--c-texte-2);
    opacity: 0.7;
}

/* Liste — deux colonnes sur desktop, une sur mobile */
.devise-list {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: var(--s-xl);
    column-rule: 1px solid var(--c-bord);
}

/* En-têtes de zone : s'étendent sur toutes les colonnes */
.devise-zone-label {
    column-span: all;
    font-family: var(--font-corps);
    font-size: var(--t-petit);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-texte-2);
    margin-top: var(--s-md);
    border-bottom: 2px solid var(--c-bord);
}

.devise-zone-label:first-child {
    padding-top: 0;
}

/* Correctif cascade : author rule > UA [hidden] */
.devise-item[hidden],
.devise-zone-label[hidden] {
    display: none;
}

/* Conteneur de ligne */
.devise-item {
    border-bottom: 1px solid var(--c-bord);
    break-inside: avoid;
}

/* Ligne - interactive (<a>) ou statique (<div>) */
.devise-row {
    display: flex;
    align-items: center;
    gap: var(--s-xs);
    padding: 12px 0;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

/* État interactif minimal — lignes avec fiche uniquement */
a.devise-row:hover {
    opacity: 0.72;
}

/* Drapeau circulaire */
.devise-flag-slot {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.devise-flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ISO — colonne fixe, signature typographique Newsreader */
.devise-iso {
    flex: 0 0 40px;
    font-family: var(--font-titre);
    font-size: var(--t-petit);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--c-or-fonce);
    white-space: nowrap;
}

/* Monnaie — information principale */
.devise-monnaie {
    flex: 1;
    min-width: 0;
    font-family: var(--font-corps);
    font-size: var(--t-corps);
    color: var(--c-texte);
}

/* Zone terminale — largeur fixe identique avec et sans fiche */
.devise-row-end {
    flex: 0 0 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Chevron SVG — uniquement rendu lorsqu'une fiche existe */
.devise-chevron {
    width: 16px;
    height: 16px;
    color: var(--c-or-fonce);
    opacity: 0.55;
    flex-shrink: 0;
}

/* Autocomplétion — dropdown de suggestions */

.devise-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-fond-blanc);
    border: 1.5px solid var(--c-or);
    border-top: none;
    max-height: 280px;
    overflow-y: auto;
    z-index: 200;
    list-style: none;
    margin: 0;
    padding: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
}

.devise-suggestion {
    padding: 10px var(--s-md);
    cursor: pointer;
    font-family: var(--font-corps);
    font-size: var(--t-corps);
    color: var(--c-texte);
    border-bottom: 1px solid var(--c-bord);
}

.devise-suggestion:last-child {
    border-bottom: none;
}

.devise-suggestion[aria-selected="true"],
.devise-suggestion:hover {
    background: var(--c-fond-alt);
}

/* Lien vers une fiche éditoriale (quand fiche ≠ null) */

/* Message "aucun résultat" (élément extérieur à la liste) */
#devise-aucun-resultat {
    font-family: var(--font-corps);
    font-size: var(--t-corps);
    color: var(--c-texte-2);
    padding: var(--s-xl) 0;
    text-align: center;
    margin: 0;
}

/* Contrôle aperçu / catalogue complet */
#devise-toggle-wrap {
    padding: var(--s-lg) 0 var(--s-lg);
    text-align: center;
}

#devise-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--s-xs);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: var(--font-corps);
    font-size: var(--t-corps);
    color: var(--c-texte-2);
    text-decoration: none;
    transition: color 0.15s;
}

#devise-toggle::after {
    content: '';
    display: inline-block;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

#devise-toggle:hover {
    color: var(--c-texte);
}

#devise-toggle[aria-expanded="true"]::after {
    transform: rotate(-135deg);
}

#devise-toggle:focus-visible {
    outline: 2px solid var(--c-or);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ================================================================
   PAGE OR — bifurcation acheter / vendre
   ================================================================ */

.or-fork {
    margin-top: var(--s-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-md);
}

.or-fork-card {
    background-color: var(--c-fond-sombre-2);
    border-top: 3px solid var(--c-or);
    padding: var(--s-lg) var(--s-md);
    display: flex;
    flex-direction: column;
    gap: var(--s-sm);
}

.or-fork-card h2 {
    font-weight: 400;
    color: var(--c-fond-blanc);
    margin: 0;
}

.or-fork-card > p {
    font-family: var(--font-corps);
    font-size: var(--t-petit);
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    flex: 1;
    line-height: 1.65;
}


/* ================================================================
   RESPONSIVE — change-devises et or
   ================================================================ */

@media (max-width: 767px) {
    .devise-list { columns: 1; }
    .or-fork    { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .page-pilier-header { padding: var(--s-lg) 0; }
}

/* ================================================================
   SECTION UTILITIES — padding + fond uniquement
   ================================================================ */

.content-section {
    padding: var(--s-2xl) 0;
    background-color: var(--c-fond);
}

.alt-section {
    padding: var(--s-2xl) 0;
    background-color: var(--c-fond-alt);
}

@media (max-width: 767px) {
    .content-section {
        padding: var(--s-xl) 0;
    }
}

.gallery-section {
    padding: var(--s-xl) 0;
    background-color: var(--c-fond-sombre-2);
}

.teaser-section {
    padding: var(--s-xl) 0;
    background-color: var(--c-bleu-nuit);
    position:relative;
}

.teaser-section strong {
    color: rgba(255, 255, 255, 0.85);
}

/* H2 directement dans un container utilitaire */
.content-section > .csc-container > h2,
.alt-section     > .csc-container > h2 {
    margin: 0 0 var(--s-lg);
}

/* Groupe de liens de navigation transversale — flex wrap de btn-csc-secondary */
.section-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-sm);
}

/* Étiquette de section transversale - or, uppercase, DM Sans */
.section-label {
    font-family: var(--font-corps);
    font-size: var(--t-petit);
    font-weight: 600;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--c-or);
    margin: 0 0 var(--s-xl);
}

/* ================================================================
   PRODUCT CARD — carte avec image en tête
   ================================================================ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-lg);
}

.product-card {
    background: var(--c-fond-clair);
    border: 1px solid var(--c-bord);
    display: flex;
    flex-direction: column;
}

.product-card .image-slot {
    border-bottom: 1px solid var(--c-bord);
}

.product-card--coin .image-slot {
    background-color: var(--c-fond-sombre);
    border-bottom-color: var(--c-fond-sombre);
}

.card-body {
    padding: var(--s-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--s-sm);
}

.card-body h3 { margin: 0; }

.card-body p {
    flex: 1;
    color: var(--c-texte-2);
    margin: 0;
    line-height: 1.65;
}

/* ================================================================
   CLICKABLE-BLOCK — rend un conteneur entièrement cliquable via
   un .link-arrow interne (lien étendu + anneau de focus discret).
   Utilisé par .product-card (grille Vente) et .feature-panel
   (panneaux Achat).
   ================================================================ */

.clickable-block {
    position: relative;
}

.clickable-block .link-arrow::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
}

.clickable-block:has(.link-arrow:focus-visible) {
    outline: 1px solid #b8b8b8;
    outline-offset: 3px;
}

.or-forme-item.clickable-block .hp-svc-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
}

.clickable-block:has(.hp-svc-link:focus-visible) {
    outline: 1px solid #b8b8b8;
    outline-offset: 3px;
}

/* ================================================================
   EDITORIAL GALLERY — 1 grande + 2 petites
   ================================================================ */

.editorial-gallery {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-rows: 260px 260px;
    gap: 4px;
}

.editorial-gallery-main {
    grid-row: span 2;
}

.editorial-gallery .image-slot {
    height: 100%;
}

/* ================================================================
   SPLIT CONTENT — 2 colonnes égales
   ================================================================ */

.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-xl);
}

.split-content h3 {
    border-bottom: 2px solid var(--c-or);
    padding-bottom: var(--s-xs);
    margin-bottom: var(--s-md);
}

.split-content p {
    color: var(--c-texte-2);
    line-height: 1.65;
    margin: 0 0 var(--s-sm);
}

.split-content p:last-child { margin-bottom: 0; }

/* ================================================================
   HISTORY BLOCK — photo (3fr) + texte (2fr)
   ================================================================ */

.history-block {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--s-xl);
    align-items: center;
}

.history-block .image-slot { aspect-ratio: 3 / 2; }

.history-block p {
    color: var(--c-texte-2);
    line-height: 1.65;
    margin: 0 0 var(--s-sm);
}

.history-block p:last-child { margin-bottom: 0; }

/* Composition éditoriale image verticale + texte — même logique que
   .cd-frontalier-inner (change-devises.php), généralisée sans les
   particularités propres à cette page (paire devises, vignette). */
.editorial-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--s-xl);
}

.editorial-split-visual {
    grid-column: 1;
    aspect-ratio: 1145 / 1374;
    margin: 0;
    background: var(--c-fond-alt);
    outline: 2px solid rgb(145 97 26 / 15%);
    overflow: hidden;
}

.editorial-split-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.editorial-split-body {
    grid-column: 2;
}

.editorial-split-label {
    margin: 0;
}

.editorial-split-intro {
    padding-bottom: var(--s-md);
}

.editorial-split-intro h2 {
    font-size: clamp(1.7rem, 2.7vw, 2.5rem);
}

/* (pastille + titre + texte) */
.editorial-split-point {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: calc(var(--s-sm) * 2);
    position: relative;
}

.editorial-split-point::before {
    content: '';
    position: absolute;
    top: 14px;
    left: calc(56px + var(--s-sm));
    width: 1px;
    height: 25px;
    background: var(--c-or);
}

.editorial-split-point .icon-badge {
    grid-row: 1 / span 2;
    background-color: rgb(227 189 136 / 15%);
}

.editorial-split-point h3 {
    margin: 0 0 var(--s-xs);
}

.editorial-split-point p {
    color: var(--c-texte-2);
    margin: 0;
}

.editorial-split-point + .editorial-split-point {
    margin-top: var(--s-md);
}

.editorial-split-cta {
    margin-top: var(--s-lg);
}

@media (max-width: 767px) {
    .editorial-split {
        grid-template-columns: 1fr;
        gap: var(--s-md);
    }
    .editorial-split-body {
        display: contents;
    }
    .editorial-split-label  { order: 1; }
    .editorial-split-visual { grid-column: auto; order: 2; }
    .editorial-split-intro  { order: 3; }
    .editorial-split-point  { order: 4; }
    .editorial-split-cta    { order: 5; }
}

/* ================================================================
   RESPONSIVE — nouveaux composants
   ================================================================ */

@media (max-width: 900px) {
    .product-grid     { grid-template-columns: 1fr; }
    .history-block    { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .editorial-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: 240px 200px 200px;
    }

    .editorial-gallery-main { grid-row: auto; }
    .split-content           { grid-template-columns: 1fr; }
}

/* ================================================================
   PAGE CONTACT
   ================================================================ */

/* hp-label est blanc par défaut (hero sombre) ; sur fond clair → or */
body.page-contact .hp-label {
    color: var(--c-or);
    margin-bottom: var(--s-sm);
}

/* ── 1. Hero ── */
.contact-hero {
    position: relative;
    overflow: hidden;
}

.contact-hero-photo {
    position: absolute;
    inset: 0;
    overflow: hidden;
    margin: 0;
}

.contact-hero-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(17, 45, 63, 0.65) 0%, rgba(17, 45, 63, 0.12) 55%, transparent 100%),
        linear-gradient(to top, rgba(0, 0, 0, 0.28) 0%, transparent 55%);
    z-index: 1;
    pointer-events: none;
}

.contact-hero-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 60%;
}

.contact-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    min-height: clamp(300px, 38vw, 520px);
}

.contact-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(32px, 5vw, 72px);
}

.contact-hero h1 {
    font-family: var(--font-titre);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 300;
    color: var(--c-fond-blanc);
    line-height: 1.05;
    margin: 0 0 var(--s-md);
}

.contact-hero-sub {
    font-family: var(--font-titre);
    font-size: var(--t-body-lg);
    color: var(--c-texte-inv);
    line-height: 1.65;
    margin: 0;
    max-width: 44ch;
}

.contact-hero-credentials {
    position: absolute;
    top: clamp(32px, 4vw, 56px);
    right: clamp(40px, 6vw, 88px);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    pointer-events: none;
}

.contact-hero-credentials span {
    font-family: var(--font-corps);
    font-size: var(--t-label);
    font-weight: 500;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1;
}

.contact-hero-credentials span:last-child::after {
    content: '';
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--c-or);
    margin-top: 6px;
    margin-left: auto;
}

/* ── 2. Section principale ── */
.contact-main {
    background: var(--c-fond);
    padding: clamp(48px, 7vw, 88px) var(--padding-inline);
}

.contact-main-inner {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: clamp(32px, 6vw, 88px);
    max-width: var(--w-max);
    margin-inline: auto;
    align-items: start;
}

.contact-info-photo {
    margin: 0 0 var(--s-md);
    overflow: hidden;
}

.contact-info-photo img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.contact-info h2,
.contact-form-col h2 {
    font-family: var(--font-titre);
    font-size: var(--t-h2);
    font-weight: 400;
    color: var(--c-encre);
    line-height: 1.15;
    margin: 0 0 var(--s-md);
}

.contact-form-col h2 {
    margin-top: var(--s-xs);
    margin-bottom: var(--s-lg);
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--s-lg);
    display: flex;
    flex-direction: column;
    gap: var(--s-md);
}

.contact-detail {
    display: flex;
    gap: var(--s-sm);
    align-items: flex-start;
    font-family: var(--font-titre);
    font-size: var(--t-corps);
    color: var(--c-encre-2);
    line-height: 1.55;
}

.contact-detail svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--c-or);
}

.contact-detail strong {
    display: block;
    color: var(--c-encre);
    font-weight: 600;
    margin-bottom: 2px;
}

/* Horaires — dt/dd en grille, utilisé dans .contact-details */
.contact-horaires {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: var(--s-md);
    row-gap: 4px;
    margin: 0;
    font-family: var(--font-corps);
    font-size: var(--t-corps);
    color: var(--c-texte-2);
    line-height: 1.55;
}

.contact-horaires dt { color: var(--c-texte); font-weight: 500; }
.contact-horaires dd { margin: 0; }

/* CTA — ligne de liens sous .contact-details */
.contact-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-lg);
    margin-top: var(--s-sm);
}

/* .contact-main--photo — variante où .contact-info-photo est un enfant direct
   de .contact-main-inner (aux côtés de .contact-info), utilisée par les pages
   piliers avec photo de conclusion. Ne s'applique pas à /contact/, dont
   .contact-info-photo est imbriquée dans .contact-info aux côtés de .contact-form-col. */
@media (max-width: 1024px) {
    .contact-main:not(.contact-main--photo) .contact-main-inner {
        grid-template-columns: minmax(0, 1fr);
    }
    .contact-main--photo .contact-main-inner {
        grid-template-columns: 1fr;
    }
    .contact-main--photo .contact-info {
        order: 1;
    }
    .contact-main--photo .contact-info-photo {
        order: 2;
        margin-bottom: 0;
    }
    .contact-main--photo .contact-ctas {
        gap: var(--s-md);
    }
}

/* ── 3. Nos comptoirs ── */
.contact-comptoirs {
    position: relative;
    background: var(--c-fond-alt);
    padding: clamp(48px, 7vw, 88px) var(--padding-inline);
}

.contact-comptoirs-inner {
    max-width: var(--w-max);
    margin-inline: auto;
    text-align: center;
}

.contact-comptoirs-inner > h2 {
    font-family: var(--font-titre);
    font-size: var(--t-h2);
    font-weight: 400;
    color: var(--c-encre);
    margin: 0 0 var(--s-xs);
    line-height: 1.2;
}

.contact-comptoirs-sub {
    font-family: var(--font-corps);
    color: var(--c-encre-2);
    margin: 0 0 var(--s-lg);
}

.contact-comptoirs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-md);
    text-align: left;
}

.contact-comptoir-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.contact-comptoir-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.contact-comptoir-card .hover-zoom-frame {
    margin-bottom: var(--s-sm);
}

.contact-comptoir-card.clickable-block .hp-svc-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
}

.contact-comptoir-card h3 {
    font-family: var(--font-titre);
    font-size: var(--t-h3);
    font-weight: 400;
    color: var(--c-encre);
    margin: 0 0 var(--s-xs);
}

.contact-comptoir-card address {
    font-style: normal;
    font-family: var(--font-corps);
    font-size: var(--t-petit);
    color: var(--c-encre-2);
    line-height: 1.55;
    margin: 0 0 var(--s-sm);
    flex-grow: 1;
}

.contact-comptoir-card .hp-svc-link {
    font-size: var(--t-label);
}

/* ── Formulaire de contact ── */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--s-md);
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-md);
}

.contact-form .field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 0;
}

.contact-form label {
    font-family: var(--font-corps);
    font-size: var(--t-label);
    font-weight: 500;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--c-encre);
}

.contact-form label span { color: var(--c-or); }


.contact-form .field-input {
    height: auto;
    padding: 10px 14px;
    font-family: var(--font-corps);
    font-size: var(--t-corps);
    color: var(--c-encre);
    background: var(--c-fond-blanc);
    border: 1px solid var(--c-trait);
    border-radius: 2px;
    box-shadow: none;
    line-height: 1.5;
    transition: border-color 150ms ease;
}

.contact-form .field-input::placeholder {
    color: var(--c-encre-2);
    opacity: 0.55;
}

.contact-form .field-input:focus {
    outline: 2px solid var(--c-or);
    outline-offset: 1px;
    border-color: var(--c-or);
    box-shadow: none;
}

.contact-form textarea.field-input {
    min-height: 144px;
    resize: vertical;
}

.contact-form select.field-input {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2353545A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 14px;
}

/* États erreur — override des règles bootstrap existantes */
.contact-form .field-error .field-input {
    border-color: #c0392b;
    outline-color: #c0392b;
}

.contact-form .field-error label { color: #c0392b; }

/* Submit — pleine largeur, centré ; aucune propriété dupliquée de btn-csc-primary */
.contact-form .btn-csc-primary {
    width: 100%;
    justify-content: center;
}

.contact-form-note {
    font-family: var(--font-corps);
    font-size: var(--t-label);
    color: var(--c-encre-2);
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 767px) {
    .contact-comptoirs-grid { grid-template-columns: minmax(0, 1fr); }
    .contact-form-row { grid-template-columns: 1fr; }
}

/* ================================================================
   FOOTER - layout DA
   ================================================================ */

#sp-footer {
    position: relative;
    overflow: hidden;
    padding: 0;
    text-align: left;
    color: var(--c-texte-inv);
}

.footer-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 260px repeat(3, 1fr);
    gap: var(--s-lg) var(--s-md);
    max-width: var(--w-max);
    margin: 0 auto;
    padding: clamp(48px, 6vw, 80px) var(--padding-inline) clamp(40px, 5vw, 56px);
}

/* ── Col 1 : Marque ── */

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--s-sm);
}

.footer-logo-link { display: inline-block; line-height: 0; }

.footer-logo-link img {
    height: 55px;
    width: auto;
    display: block;
    max-width: none;
    opacity: 0.9;
}

.footer-tagline {
    font-family: var(--font-titre);
    font-style: italic;
    font-size: var(--t-petit);
    color: rgba(255, 255, 255, 0.52);
    line-height: 1.65;
    margin: 0;
}

.footer-nap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-style: normal;
    margin-top: 4px;
}

.footer-nap-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: var(--font-corps);
    font-size: var(--t-label);
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.5;
    text-decoration: none;
}

.footer-nap-row svg {
    flex-shrink: 0;
    margin-top: 1px;
    width: 14px;
    height: 14px;
}

a.footer-nap-row:hover { color: rgba(255, 255, 255, 0.90); }

/* - Cols 2–4 : navigation - */

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: var(--s-sm);
}

.footer-col-heading {
    font-family: var(--font-corps);
    font-size: var(--t-label);
    font-weight: 600;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--c-or);
    margin: 0;
}

.footer-col-heading::after {
    content: '';
    display: block;
    margin-top: 12px;
    height: 1px;
    background: linear-gradient(to right, var(--c-or),  #dfca9a, var(--c-or));
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-links a {
    font-family: var(--font-corps);
    font-size: var(--t-petit);
    color: rgba(255, 255, 255, 0.58);
    text-decoration: none;
    line-height: 1.75;
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    transition: color 150ms ease;
}

.footer-links a::before {
    content: '→';
    font-size: 0.7em;
    color: var(--c-or);
    opacity: 0.6;
    flex-shrink: 0;
    transition: opacity 150ms ease;
}

.footer-links a:hover             { color: rgba(255, 255, 255, 0.92); }
.footer-links a:hover::before     { opacity: 1; }

/* - Barre légale - */

.footer-bar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--w-max);
    margin: 0 auto;
    padding: var(--s-sm) var(--padding-inline) var(--s-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    font-family: var(--font-corps);
    font-size: var(--t-label);
    color: rgba(255, 255, 255, 0.32);
    margin: 0;
    letter-spacing: 0.02em;
}

.footer-top-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-corps);
    font-size: var(--t-label);
    color: rgba(255, 255, 255, 0.32);
    text-decoration: none;
    white-space: nowrap;
    transition: color 150ms ease;
}

.footer-top-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.footer-top-link:hover { color: rgba(255, 255, 255, 0.85); }

/* ── Responsive ── */

@media (max-width: 991px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575px) {
    .footer-main  { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .footer-bar   { flex-direction: column; gap: 8px; text-align: center; }
}

/* ================================================================
   HP NOTRE HISTOIRE — section éditoriale
   ================================================================ */

.hp-histoire {
    background: var(--c-fond);
    padding-block: var(--s-md);
}

.hp-histoire-inner {
    display: grid;
    grid-template-columns: 44fr 56fr;
    min-height: 520px;
}

.hp-histoire-photo {
    margin: 0;
    overflow: hidden;
    padding: 64px 0 64px 40px;
}

.hp-histoire-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hp-histoire-content {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(48px, 6vw, 88px)
             max(var(--padding-inline), calc((100vw - var(--w-max)) / 2 + var(--padding-inline)))
             clamp(48px, 6vw, 88px)
             clamp(40px, 5vw, 72px);
}

.hp-histoire-blason {
    position: absolute;
    top: -5%;
    right: -10%;
    width: 58%;
    height: auto;
    opacity: 0.07;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.hp-histoire-label,
.hp-histoire-annee,
.hp-histoire-content h2,
.hp-histoire-content > p:not([class]),
.hp-histoire-content .btn-csc-primary {
    position: relative;
    z-index: 1;
}

.hp-histoire-label {
    font-family: var(--font-corps);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-or);
    margin: 0 0 var(--s-sm);
    display: flex;
    align-items: center;
    gap: var(--s-sm);
    transform: translateY(-12px);
}

@media (min-width: 992px) {
    .hp-histoire-label {
        transform: translateY(-30px);
    }
}

.hp-histoire-label::after {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--c-or);
    flex-shrink: 0;
}

.hp-histoire-annee {
    font-family: var(--font-titre);
    font-size: clamp(5rem, 9vw, 8.5rem);
    font-weight: 500;
    line-height: 0.85;
    color: var(--c-bord);
    margin: 0 0 var(--s-md);
    letter-spacing: -0.02em;
}

.hp-histoire-content h2 {
    font-family: var(--font-titre);
    font-size: var(--t-h2);
    font-weight: 400;
    color: var(--c-encre);
    line-height: 1.2;
    margin: 0 0 var(--s-md);
}

.hp-histoire-content > p:not([class]) {
    font-family: var(--font-corps);
    font-size: 1rem;
    color: var(--c-encre-2);
    line-height: 1.75;
    margin: 0 0 var(--s-sm);
    max-width: 50ch;
}

.hp-histoire-content .btn-csc-primary {
    align-self: flex-start;
    margin-top: var(--s-md);
}

.hp-histoire-griffe {
    position: absolute;
    bottom: 5%;
    right: 5%;
    z-index: 0;
    color: var(--c-or);
    opacity: 0.35;
    transform: rotate(-8deg);
    transform-origin: left center;
    pointer-events: none;
    user-select: none;
}

.hp-histoire-griffe svg {
    display: block;
    width: 400px;
    height: auto;
}

@media (max-width: 767px) {
    .hp-histoire-inner { grid-template-columns: 1fr; }
    .hp-histoire-photo { aspect-ratio: 4 / 3; padding: var(--s-md) var(--s-sm) 0; }
    .hp-histoire-annee { font-size: clamp(4.5rem, 20vw, 6rem); }
    .hp-histoire-content { padding-right: var(--padding-inline); }
    .hp-histoire-griffe { bottom: 8%; left: 6%; }
}

/* ================================================================
   HISTOIRE HERO
   ================================================================ */

.histoire-hero {
    background: linear-gradient( to bottom, var(--c-bleu-nuit) 0%, #0C2434 50%, var(--c-bleu-nuit) 100% );
    overflow: hidden;
}

.histoire-hero-banner {
    position: relative;
    padding-block: clamp(32px, 4vw, 56px);
    text-align: center;
}

.histoire-hero-blason,
.histoire-hero-annee {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.histoire-hero-blason {
    left: -10%;
    width: 40%;
    color: var(--c-fond-blanc);
    opacity: 0.05;
}

.histoire-hero-blason path {
    fill: currentColor;
}

.histoire-hero-blason svg {
    display: block;
    width: 100%;
    height: auto;
}

.histoire-hero-annee {
    right: -2%;
    font-family: var(--font-titre);
    font-style: italic;
    font-size: clamp(8rem, 16vw, 16rem);
    font-weight: 500;
    line-height: 0.85;
    letter-spacing: -0.02em;
    color: var(--c-fond-blanc);
    opacity: 0.03;
    margin: 0;
}

.histoire-hero-banner .hp-label,
.histoire-hero-banner h1,
.histoire-hero-intro {
    position: relative;
    z-index: 1;
}

.histoire-hero-banner .hp-label,
.histoire-hero-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-md);
}

.histoire-hero-banner .hp-label::before,
.histoire-hero-banner .hp-label::after,
.histoire-hero-caption::before,
.histoire-hero-caption::after {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--c-or);
}

.histoire-hero-intro {
    margin-inline: auto;
}

.histoire-hero-banner h1 {
    max-width: 25ch;
    margin: 0 auto var(--s-md);
    color: var(--c-fond-blanc);
}

.histoire-hero-intro {
    font-family: var(--font-titre);
    font-style: italic;
    font-size: var(--t-body-lg);
    color: #71818D;
    line-height: 1.5;
    max-width: 52ch;
    margin-block: 0;
}

.histoire-hero-photo {
    margin: 0;
    background-color: var(--c-fond-blanc);
}

.histoire-hero-photo img {
    display: block;
    width: 100%;
   aspect-ratio: 4 / 1;
    object-fit: cover;
    object-position: center -20px;
}

@media (max-width: 767px) {
    .histoire-hero-photo img { aspect-ratio: 4 / 3; }
}

.histoire-hero-caption {
    padding: var(--s-sm) var(--padding-inline);
    font-family: var(--font-titre);
    font-style: italic;
    font-size: var(--t-petit);
    color: var(--c-texte-2);
}

/* ================================================================
   HISTOIRE ORIGINES
   ================================================================ */

@media (min-width: 901px) {
    .histoire-origines-grid {
        grid-template-columns: minmax(220px, 300px) 1fr;
    }
}

.histoire-origines-photo {
    margin: 0;
    padding: var(--s-xs);
    background: var(--c-fond-clair);
    box-shadow: 0 1px 2px rgba(23, 37, 54, 0.06), 0 10px 24px rgba(23, 37, 54, 0.12);
}

.histoire-origines-grid .histoire-origines-label {
    display: flex;
    align-items: center;
    gap: var(--s-sm);
    margin: 0 0 var(--s-xl);
    color: var(--c-or);
}

.histoire-origines-grid .histoire-origines-label::after {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--c-or);
    flex-shrink: 0;
}

.histoire-origines-grid h2 {
    margin: 0 0 var(--s-md);
}

.histoire-origines-quote {
    font-family: var(--font-titre);
    color: var(--c-texte-2);
    margin: 0 0 var(--s-md);
}

@media (max-width: 900px) {
    .histoire-origines-photo {
        max-width: 240px;
        margin-inline: auto;
    }
}

/* ================================================================
   HISTOIRE PREMIERS MÉTIERS
   ================================================================ */

@media (min-width: 901px) {
    .histoire-metiers-grid {
        grid-template-columns: 2fr 3fr;
        align-items: start;
    }
}

@media (min-width: 1400px) {
    .histoire-metiers-grid .image-slot {
        width: calc(100% + 80px);
    }
}

.histoire-metiers-grid h2 {
    margin: 0 0 var(--s-md);
}

.histoire-metiers-grid .histoire-metiers-label {
    display: flex;
    align-items: center;
    gap: var(--s-sm);
    margin: 0 0 var(--s-xl);
    color: var(--c-or);
}

.histoire-metiers-grid .histoire-metiers-label::after {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--c-or);
    flex-shrink: 0;
}

.histoire-metiers-quote {
    font-family: var(--font-titre);
    color: var(--c-texte-2);
    border-left: 3px solid var(--c-or);
    padding-left: var(--s-md);
    margin: 0 0 var(--s-md);
}

/* ================================================================
   HISTOIRE NOUVELLE ADRESSE
   ================================================================ */

.histoire-adresse-inner {
    text-align: center;
}

.histoire-adresse-intro {
    max-width: var(--w-texte);
    color: var(--c-texte-2);
    margin: 0 auto var(--s-lg);
}

.histoire-adresse-photo {
    margin: 0;
}

.histoire-adresse-photo img {
    --fade-top: 1%;
    --fade-bottom: 3%;
    --fade-side: 4%;

    -webkit-mask-image:
        linear-gradient(to bottom, transparent 0%, black var(--fade-top), black calc(100% - var(--fade-bottom)), transparent 100%),
        linear-gradient(to right, transparent 0%, black var(--fade-side), black calc(100% - var(--fade-side)), transparent 100%);
    -webkit-mask-composite: source-in;

    mask-image:
        linear-gradient(to bottom, transparent 0%, black var(--fade-top), black calc(100% - var(--fade-bottom)), transparent 100%),
        linear-gradient(to right, transparent 0%, black var(--fade-side), black calc(100% - var(--fade-side)), transparent 100%);
    mask-composite: intersect;
}
.histoire-adresse-photo--soft img {
    --fade-top: 8%;
    --fade-bottom: 2%;
    --fade-side: 1.5%;
}

.histoire-adresse-caption {
    margin-top: var(--s-sm);
    font-family: var(--font-titre);
    font-style: italic;
    font-size: var(--t-petit);
    color: var(--c-texte-2);
}

.histoire-adresse-texture {
    background-color: var(--c-fond);
    background-image:
        linear-gradient(to bottom,
            var(--c-fond) 0%,
            color-mix(in srgb, var(--c-fond) 50%, transparent) 30%,
            color-mix(in srgb, var(--c-fond) 50%, transparent) 70%,
            var(--c-fond) 100%),
        url('../../images/texture-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Histoire _ Archives de la Loterie nationale, 1967 */

.histoire-loterie-section {
    position: relative;
}

.histoire-loterie-section::before,
.histoire-loterie-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 8px;

    -webkit-mask-image: radial-gradient(
        circle at 50% 0,
        transparent 10px,
        #000 10.5px
    );
    mask-image: radial-gradient(
        circle at 50% 0,
        transparent 10px,
        #000 10.5px
    );

    -webkit-mask-size: 50px 8px;
    mask-size: 50px 8px;
    -webkit-mask-repeat: repeat-x;
    mask-repeat: repeat-x;

    pointer-events: none;
}

.histoire-loterie-section::before {
    top: -8px;
    background-color: #dacbbb;
    filter: blur(2px);
    transform: translate(-3px, -1px);
}

.histoire-loterie-section::after {
    top: -8px;
    background-color: var(--c-fond-alt);
}

.histoire-loterie-intro {
    max-width: var(--w-texte);
    color: var(--c-texte-2);
    margin: 0 0 var(--s-lg);
}

.histoire-loterie-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-xl);
}

.histoire-loterie-grid h3 {
    margin: var(--s-lg) 0 var(--s-sm);
}

.histoire-loterie-grid p {
    color: var(--c-texte-2);
    line-height: 1.65;
    margin: 0 0 var(--s-sm);
}

.histoire-loterie-grid .billet-visual {
    position: relative;
    margin: 0;
    aspect-ratio: 1.473;
    overflow: hidden;
}

.histoire-loterie-grid .billet-visual img {
    position: absolute;
    inset: 2%;
    object-fit: contain;
    display: block;
    transition: filter 180ms ease, transform 0.18s ease;
}

.histoire-loterie-grid .billet-visual:focus-within img {
    filter: brightness(0.85) saturate(0.6);
}

@media (hover: hover) and (pointer: fine) {
    .histoire-loterie-grid .billet-visual:hover img {
        filter: brightness(0.85) saturate(0.6);
         transform: scale(1.01);
    }
}

.histoire-loterie-grid .billet-visual .face-verso {
    display: none;
}

.histoire-loterie-grid .billet-zoom {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.histoire-loterie-grid .billet-zoom.zoom-recto { display: flex; }
.histoire-loterie-grid .billet-zoom.zoom-verso { display: none; }

.histoire-loterie-grid .billet-zoom-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 20px;
    border: 1px solid var(--c-fond-blanc);
    background: #112d3f75;
    border-radius: 50%;
    color: var(--c-fond-blanc);
    opacity: 1;
    transition: opacity 250ms ease-out, transform 250ms ease-out;
}

.histoire-loterie-grid .billet-zoom:focus-visible .billet-zoom-icon {
    outline: 2px solid var(--c-or);
    outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
    .histoire-loterie-grid .billet-zoom-icon {
        opacity: 0;
        transform: translateY(8px);
    }
    .histoire-loterie-grid .billet-visual:hover .billet-zoom-icon,
    .histoire-loterie-grid .billet-visual:focus-within .billet-zoom-icon {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .histoire-loterie-grid .billet-visual img,
    .histoire-loterie-grid .billet-zoom-icon {
        transition: none;
    }

    .histoire-loterie-grid .billet-visual:hover img,
    .histoire-loterie-grid .billet-visual:focus-within img {
        transform: none;
    }
}

@media (max-width: 767px) {
    .histoire-loterie-grid {
        grid-template-columns: 1fr;
        gap: var(--s-lg);
    }
}

/* Billets 1967 — lightbox d'agrandissement (dialog natif, partagé) */

.billet-lightbox {
    position: fixed;
    padding: var(--s-lg);
    border: none;
    background: transparent;
    width: min(92vw, 1400px);
    height: 92vh;
}

.billet-lightbox[open] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-sm);
}

.billet-lightbox::backdrop {
    background: var(--c-bleu-nuit);
}

.billet-lightbox.paper-pattern::before {
    position: fixed;
    inset: 0;
}

.billet-lightbox-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    padding-inline: calc(44px + var(--s-xs));
}

.billet-lightbox-track {
    width: 100%;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}
.billet-lightbox-track::-webkit-scrollbar {
    display: none;
}
.billet-lightbox-track:focus-visible {
    outline: 2px solid var(--c-or);
    outline-offset: 2px;
}

.billet-lightbox-img {
    flex: 0 0 100%;
    height: 100%;
    object-fit: contain;
    scroll-snap-align: start;
    display: block;
}

.billet-lightbox-nav {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}
.billet-lightbox-nav .piece-carousel-nav-btn {
    pointer-events: auto;
    background-color: transparent;
    border-color: #fff;
    color: #fff;
}
.billet-lightbox-nav .piece-carousel-nav-btn:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--c-or);
}

.billet-lightbox-dots {
    display: none;
    gap: var(--s-xs);
}
.billet-lightbox-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}
.billet-lightbox-dot.is-active {
    background: var(--c-or);
}

@media (max-width: 480px) {
    .histoire-loterie-grid h3 {
        font-size: 1.325rem;
    }
    .billet-lightbox {
        padding: var(--s-xs);
    }
    .billet-lightbox-stage {
        padding-inline: 0;
    }
    .billet-lightbox-nav {
        display: none;
    }
    .billet-lightbox-dots {
        display: flex;
    }
}

.billet-lightbox-status {
    margin: var(--s-lg);
    font-family: var(--font-corps);
    font-size: var(--t-petit);
    color: var(--c-fond-blanc);
    text-align: center;
    position: relative;
}

.billet-lightbox-close {
    position: fixed;
    top: calc(20px + env(safe-area-inset-top, 0px));
    right: calc(20px + env(safe-area-inset-right, 0px));
    width: 44px;
    height: 44px;
    z-index: 1;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(17, 45, 63, 0.7);
    color: var(--c-fond-blanc);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.billet-lightbox-close:hover,
.billet-lightbox-close:focus-visible {
    border-color: var(--c-or);
}

.billet-lightbox-close:focus-visible {
    outline: 2px solid var(--c-or);
    outline-offset: 2px;
}

/* ================================================================
   HISTOIRE — Années 1970
   ================================================================ */

.histoire-1970-section,
.histoire-horizons-section {
    position: relative;
}

.histoire-1970-intro,
.histoire-horizons-intro {
    --intro-inset: max(var(--padding-inline), calc((100vw - var(--w-max)) / 2 + var(--padding-inline)));
    --intro-content-w: calc(var(--w-max) * 0.4);
    position: relative;
    z-index: 1;
    padding-left: var(--intro-inset);
    max-width: calc(var(--intro-inset) + var(--intro-content-w));
}

.histoire-1970-intro .section-label,
.histoire-horizons-intro .section-label {
    margin-bottom: var(--s-md);
}

.histoire-1970-intro-photo,
.histoire-horizons-intro-photo {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 900px;
    aspect-ratio: 2;
    margin: 0;
}

.histoire-1970-intro-photo img,
.histoire-horizons-intro-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    --fade-left: 35%;
    --fade-bottom: 18%;
    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, black var(--fade-left)),
        linear-gradient(to top, transparent 0%, black var(--fade-bottom));
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent 0%, black var(--fade-left)),
        linear-gradient(to top, transparent 0%, black var(--fade-bottom));
    mask-composite: intersect;
}

.histoire-1970-event-label {
    display: inline-flex;
    align-items: center;
    color: var(--c-fond-blanc);
    background: var(--c-or-fonce);
    font-family: var(--font-titre);
    font-style: italic;
    font-weight: 500;
    text-transform: uppercase;
    padding: var(--s-xs) var(--s-md);
    margin: 0 0 var(--s-sm);
    border-radius: 0;
    position: relative;
    z-index: 0;
    clip-path: polygon(
        10px 0,
        calc(100% - 10px) 0,
        100% 10px,
        100% calc(100% - 10px),
        calc(100% - 10px) 100%,
        10px 100%,
        0 calc(100% - 10px),
        0 10px
    );
}

.histoire-1970-event-label::before,
.histoire-1970-event-label::after {
    content: '';
    position: absolute;
    z-index: -1;
}

.histoire-1970-event-label::before {
    inset: 3px;
    background: var(--c-fond-clair);
    clip-path: polygon(
        8.24px 0,
        calc(100% - 8.24px) 0,
        100% 8.24px,
        100% calc(100% - 8.24px),
        calc(100% - 8.24px) 100%,
        8.24px 100%,
        0 calc(100% - 8.24px),
        0 8.24px
    );
}

.histoire-1970-event-label::after {
    inset: 4px;
    background: var(--c-or-fonce);
    clip-path: polygon(
        7.66px 0,
        calc(100% - 7.66px) 0,
        100% 7.66px,
        100% calc(100% - 7.66px),
        calc(100% - 7.66px) 100%,
        7.66px 100%,
        0 calc(100% - 7.66px),
        0 7.66px
    );
}

.histoire-1970-event-annee {
    font-family: var(--font-titre);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    line-height: 1;
    color: var(--c-bleu-nuit);
    margin: 0 0 var(--s-xs);
    position: relative;
    padding-top: var(--s-sm);
}

.histoire-1970-event-annee::after {
    content: '';
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 1px;
    background: var(--c-or);
}

.histoire-1970-duo {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-xl);
    margin-top: calc(var(--s-2xl) + var(--s-lg));
    padding-top: var(--s-xl);
}

.histoire-1970-duo::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 8px;
    background:
        radial-gradient(circle 4px at 50% 50%, var(--c-or) 100%, transparent 100%),
        linear-gradient(to right,
            var(--c-or) 0%, var(--c-or) calc(50% - 10px),
            transparent calc(50% - 10px), transparent calc(50% + 10px),
            var(--c-or) calc(50% + 10px), var(--c-or) 100%
        ) center / 100% 1px no-repeat;
}

.histoire-1970-duo::after {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: var(--c-or);
}

.histoire-1970-duo h3 {
    margin: 0 0 var(--s-lg);
}

.histoire-1970-duo figure {
    margin: 0 0 var(--s-md);
}

.histoire-1970-duo figure img {
    display: block;
    width: 100%;
    height: auto;
}

.histoire-1970-duo p {
    line-height: 1.65;
    margin: 0;
}

.histoire-1970-duo article {
    text-align: center;
}

.histoire-1970-duo article > p:last-child {
    text-align: left;
}

@media (max-width: 900px) {
    .histoire-1970-intro,
    .histoire-horizons-intro {
        padding-right: var(--padding-inline);
        max-width: none;
    }
    .histoire-1970-intro-photo,
    .histoire-horizons-intro-photo {
        position: static;
        inset: auto;
        width: auto;
        max-width: none;
        aspect-ratio: auto;
        margin-top: var(--s-lg);
    }
    .histoire-1970-intro-photo img,
    .histoire-horizons-intro-photo img {
        height: auto;
        object-fit: fill;

        --fade-side: 12%;
        --fade-bottom: 18%;

        -webkit-mask-image:
            linear-gradient(to right, transparent 0%, black var(--fade-side), black calc(100% - var(--fade-side)), transparent 100%),
            linear-gradient(to top, transparent 0%, black var(--fade-bottom));
        -webkit-mask-composite: source-in;

        mask-image:
            linear-gradient(to right, transparent 0%, black var(--fade-side), black calc(100% - var(--fade-side)), transparent 100%),
            linear-gradient(to top, transparent 0%, black var(--fade-bottom));
        mask-composite: intersect;
    }
    .histoire-1970-duo {
        grid-template-columns: 1fr;
        gap: var(--s-2xl);
        margin-top: var(--s-xl);
    }
    .histoire-1970-duo::after {
        display: none;
    }
    .histoire-1970-duo article:not(:last-child)::after,
    .histoire-horizons-event:not(:last-child) .histoire-horizons-event-content::after {
        content: '';
        display: block;
        order: 3;
        height: 8px;
        margin-top: var(--s-xl);
        background:
            radial-gradient(circle 4px at 50% 50%, var(--c-or) 100%, transparent 100%),
            linear-gradient(to right,
                var(--c-or) 0%, var(--c-or) calc(50% - 10px),
                transparent calc(50% - 10px), transparent calc(50% + 10px),
                var(--c-or) calc(50% + 10px), var(--c-or) 100%
            ) center / 100% 1px no-repeat;
    }
}

/* ================================================================
   HISTOIRE — 2011-2018 Nouveaux horizons
   ================================================================ */

.histoire-horizons-intro h2 em {
    color: var(--c-or);
}

.histoire-horizons-timeline {
    position: relative;
    margin-top: var(--s-2xl);
}

.histoire-horizons-event {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-sm);
}

.histoire-horizons-event-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.histoire-horizons-event h3 {
    margin: 0 0 var(--s-sm);
}

.histoire-horizons-event-annee {
    padding-bottom: var(--s-sm);
}

.histoire-horizons-event-annee::after {
    bottom: calc((var(--s-sm) - var(--s-xs)) / 2);
    left: 0;
    transform: none;
}

.histoire-horizons-event-content p:last-child {
    color: var(--c-texte-2);
    line-height: 1.65;
    margin: 0;
}

.histoire-horizons-event:has(.histoire-horizons-event-photo img) {
    position: relative;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-xl);
    align-items: start;
}

.histoire-horizons-event:has(.histoire-horizons-event-photo img)::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-or);
    transform: translate(-50%, -50%);
}

.histoire-horizons-event:has(.histoire-horizons-event-photo img)::after {
    content: '';
    position: absolute;
    top: 24px;
    bottom: -4px;
    left: 50%;
    width: 1px;
    background: var(--c-or);
    transform: translateX(-50%);
}

.histoire-horizons-event:has(.histoire-horizons-event-photo img):last-child::after {
    bottom: 0;
}

@media (max-width: 900px) {
    .histoire-horizons-event:has(.histoire-horizons-event-photo img) {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .histoire-horizons-event + .histoire-horizons-event {
        margin-top: var(--s-2xl);
    }
    .histoire-horizons-event-content {
        display: contents;
    }
    .histoire-horizons-event-content .histoire-1970-event-label {
        justify-self: center;
        margin-bottom: 0;
    }
    .histoire-horizons-event-annee {
        text-align: center;
        line-height: 1.65;
        margin: 0;
        padding-bottom: 0;
    }
    .histoire-horizons-event-annee::after {
        bottom: 12%;
        left: 50%;
        transform: translateX(-50%);
    }
    .histoire-horizons-event h3 {
        text-align: center;
        margin-bottom: var(--s-lg);
    }
    .histoire-horizons-event-photo {
        order: 1;
        margin: 0 0 var(--s-md);
    }
    .histoire-horizons-event-photo img {
        aspect-ratio: auto;
        height: auto;
    }
    .histoire-horizons-event-content p:last-child {
        order: 2;
        text-align: left;
    }
    .histoire-horizons-event:has(.histoire-horizons-event-photo img)::before,
    .histoire-horizons-event:has(.histoire-horizons-event-photo img)::after {
        display: none;
    }
}

/* ================================================================
   PAGE DEVISES-VOYAGE
   ================================================================ */

/* ================================================================
   HERO-FIGURE
   ================================================================ */

.hero-figure {
    position: absolute;
    inset: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-figure img {
    display: block;
    width: 60%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    .hero-figure {
        position: relative;
        inset: auto;
    }

    .hero-figure img {
        width: 100%;
        height: auto;
    }
}

/* ── 1. Hero — composition intégrée, texte sur matière monétaire en fondu ── */

.dvo-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--c-fond);
    display: flex;
    align-items: center;
    min-height: 560px;
}

.dvo-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-block: clamp(48px, 7vw, 96px);
}

.dvo-hero-content { max-width: 40ch; }
.dvo-hero-content h1 { margin: 0 0 var(--s-md); }

.dvo-hero-intro {
    font-family: var(--font-corps);
    font-size: var(--t-body-lg);
    color: var(--c-texte-2);
    line-height: 1.7;
    margin: 0;
}

.dvo-hero-visual {
    z-index: 1;
    pointer-events: none;
}

.dvo-hero-visual img {
    object-position: center;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .4) 40%, #000 50%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .4) 40%, #000 50%);
}

.dvo-hero-stamp {
    position: absolute;
    z-index: 1;
    top: 57%;
    right: 30%;
    width: clamp(115px, 14vw, 180px);
    transform: rotate(-16deg);
    opacity: .55;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.dvo-hero-stamp img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    .dvo-hero-stamp { display: none; }
}

.dvo-hero-stub {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 22px;
    pointer-events: none;
}

.dvo-hero-stub::before {
    content: '';
    position: absolute;
    top: 8%;
    bottom: 8%;
    left: 40px;
    width: 1.5px;
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(23, 37, 54, .28) 0,
        rgba(23, 37, 54, .28) 3px,
        transparent 3px,
        transparent 7px
    );
}

.dvo-hero-tag {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 1;
    font-family: var(--font-corps);
    font-size: 9px;
    letter-spacing: .08em;
    color: rgba(23, 37, 54, .35);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 900px) {
    .dvo-hero-content { max-width: 34ch; }
    .dvo-hero-visual img {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .4) 8%, #000 30%);
                mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .4) 8%, #000 30%);
    }
}

@media (max-width: 767px) {
    .dvo-hero { display: block; min-height: auto; }
    .dvo-hero-inner { padding-block: var(--s-xl) var(--s-lg); }
    .dvo-hero-content { max-width: none; }
    .dvo-hero-visual {
        justify-content: center;
    }
    .dvo-hero-visual img {
        -webkit-mask-image: none;
                mask-image: none;
    }
}

/* ── 3. Destinations — photo plein cadre + registre éditorial ── */

.dvo-destinations {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    background: var(--c-fond);
}

.dvo-destinations-visual {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.dvo-destinations-photo { margin: 0; }
.dvo-destinations-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Voile ivoire : lisibilité du texte à gauche, dissipation progressive vers la photo */
.dvo-destinations-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to right,
        var(--c-fond) 28%,
        rgba(243, 239, 231, .82) 46%,
        rgba(243, 239, 231, .15) 68%,
        transparent 78%
    );
    pointer-events: none;
}

/* Label détaché — repère éditorial autonome, indépendant du centrage du H2/intro */
.dvo-destinations-label {
    position: absolute;
    top: var(--s-2xl);
    left: 0;
    right: 0;
    z-index: 2;
    margin: 0;
    padding: 0 clamp(24px, 5vw, 64px);
}

.dvo-destinations-intro {
    position: relative;
    z-index: 2;
    max-width: 42ch;
    padding: 0 clamp(24px, 5vw, 64px);
}

.dvo-destinations-intro h2 { margin: 0 0 var(--s-md); }
.dvo-destinations-intro > p {
    font-family: var(--font-corps);
    color: var(--c-texte-2);
    line-height: 1.7;
    margin: 0;
}

.dvo-destinations-register {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--s-2xl) clamp(24px, 4vw, 56px);
}

.dvo-destinations-list {
    margin: 0;
    border-top: 1px solid var(--c-bord);
}

.dvo-destination-item {
    display: flex;
    align-items: center;
    gap: var(--s-md);
    padding-block: var(--s-md);
    border-bottom: 1px solid var(--c-bord);
    margin: 0;
}

.dvo-destination-iso {
    margin: 0;
    font-family: var(--font-titre);
    font-size: var(--t-h1);
    font-weight: 400;
    line-height: 1;
    color: var(--c-or-fonce);
    flex-shrink: 0;
}

.dvo-destination-info {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dvo-destination-country {
    font-family: var(--font-corps);
    font-size: var(--t-petit);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--ls-label);
    color: var(--c-texte);
}

.dvo-destination-name {
    font-family: var(--font-corps);
    font-size: var(--t-petit);
    color: var(--c-texte-2);
}

.dvo-destinations-link-row {
    margin: var(--s-sm) 0 0;
    padding-top: var(--s-md);
}

@media (max-width: 900px) {
    .dvo-destinations { grid-template-columns: 1fr; }
    .dvo-destinations-visual {
        display: block;
        min-height: 0;
    }
    .dvo-destinations-photo img {
        position: static;
        aspect-ratio: 4 / 3;
    }
    .dvo-destinations-visual::before { content: none; }
    .dvo-destinations-label {
        position: static;
        margin: 0 0 var(--s-md);
        padding: var(--s-lg) clamp(24px, 4vw, 56px) 0;
    }
    .dvo-destinations-intro {
        max-width: none;
        padding: 0 clamp(24px, 4vw, 56px) var(--s-lg);
    }
    .dvo-destinations-register {
        padding: var(--s-lg) clamp(24px, 4vw, 56px) var(--s-xl);
    }
}

@media (max-width: 767px) {
    .dvo-destinations-label { padding: var(--s-lg) var(--padding-inline) 0; }
    .dvo-destinations-intro { padding: 0 var(--padding-inline) var(--s-lg); }
    .dvo-destinations-register { padding: var(--s-sm) var(--padding-inline) var(--s-xl); }
    .dvo-destination-iso { font-size: var(--t-h2); }
}

/* ── 4. Préparer son change — rupture bleu nuit ── */

.dvo-change {
    position: relative;
    --dvo-hairline: rgba(255, 255, 255, .18);
}

.dvo-change::before {
    z-index: 0;
}

.dvo-change::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #ffffff;
    -webkit-mask-image: url('../svg/guilloche-rose.svg');
            mask-image: url('../svg/guilloche-rose.svg');
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: right bottom;
            mask-position: right bottom;
    -webkit-mask-size: 520px auto;
            mask-size: 520px auto;
    opacity: .1;
    pointer-events: none;
}

.dvo-change > .csc-container {
    position: relative;
    z-index: 1;
}

.dvo-change-titre {
    color: var(--c-fond-blanc);
    max-width: 26ch;
    margin: 0 0 var(--s-xl);
}

.dvo-change-grid {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
    border-top: 1px solid var(--dvo-hairline);
    padding-top: var(--s-lg);
}

.dvo-change-main {
    max-width: 46ch;
}

.dvo-change-conseil {
    padding-left: clamp(24px, 4vw, 56px);
    border-left: 1px solid var(--dvo-hairline);
}

.dvo-change-conseil p {
    max-width: 46ch;
}

.dvo-change-main h3,
.dvo-change-conseil h3 {
    font-size: var(--t-h2);
    font-weight: 400;
    color: var(--c-or-clair);
    margin: 0 0 var(--s-md);
}

.dvo-change-main p,
.dvo-change-conseil p {
    color: rgba(255, 255, 255, .78);
    line-height: 1.7;
    margin: 0;
}

.dvo-change-criteria {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: var(--s-xs) var(--s-md);
    margin: 0 0 var(--s-md);
    padding: 0;
}

.dvo-change-criteria li {
    font-size: var(--t-petit);
    text-transform: uppercase;
    letter-spacing: var(--ls-label);
    color: rgba(255, 255, 255, .55);
    white-space: nowrap;
}

.dvo-change-criteria li + li {
    padding-left: var(--s-md);
    border-left: 1px solid rgba(255, 255, 255, .3);
}

.dvo-change-note {
    margin-top: var(--s-xl);
    padding-top: var(--s-md);
    border-top: 1px solid var(--dvo-hairline);
}

.dvo-change-note-label {
    margin: 0 0 var(--s-xs);
    color: rgba(255, 255, 255, .5);
}

.dvo-change-note-text {
    font-size: var(--t-petit);
    color: rgba(255, 255, 255, .68);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 900px) {
    .dvo-change-grid {
        grid-template-columns: 1fr;
        gap: var(--s-lg);
    }
    .dvo-change::after {
        -webkit-mask-size: 320px auto;
                mask-size: 320px auto;
        -webkit-mask-position: right bottom;
                mask-position: right bottom;
    }
    .dvo-change-main,
    .dvo-change-conseil p { max-width: none; }
    .dvo-change-conseil {
        padding-left: 0;
        padding-top: var(--s-lg);
        border-left: 0;
        border-top: 1px solid var(--dvo-hairline);
    }
}

@media (max-width: 767px) {
    .dvo-change-criteria {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .dvo-change-criteria li {
        width: 100%;
        padding-block: var(--s-xs);
        white-space: normal;
    }
    .dvo-change-criteria li + li {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .3);
    }
}

/* ── 5. Le comptoir — .contact-horaires / .contact-ctas / .contact-main--photo génériques (voir § composant contact) ── */

/* ── 7. FAQ — liste éditoriale, filets horizontaux ── */

/* Séparateur hachuré dédié aux sections FAQ — recette indépendante,
   ne partage aucun sélecteur avec .sp-mega-deco / .cd-devises. */
.faq-section-hatched {
    position: relative;
}

.faq-section-hatched::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: repeating-linear-gradient(
        52deg,
        rgba(100, 140, 115, 0.42) 0px,
        rgba(100, 140, 115, 0.42) 0.5px,
        transparent 0.5px,
        transparent 3px
    );
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 90%, transparent 100%);
    pointer-events: none;
}

.faq-list { border-top: 1px solid var(--c-bord); }
.faq-item {
    position: relative;
    isolation: isolate;
    border-bottom: 1px solid var(--c-bord);
}
.faq-item h3 { margin: 0; }

/* Fond dégradé au survol — pseudo-élément derrière le contenu (isolation +
   z-index négatif), opacité animée plutôt que le gradient lui-même pour un
   fondu fiable en entrée comme en sortie. */
.faq-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background: linear-gradient(
        90deg,
        transparent 0%,
        #f6f2eb 4%,
        #f6f2eb 85%,
        transparent 100%
    );

    opacity: 0;
    transition: opacity 220ms ease;
}

@media (hover: hover) {
    .faq-item:hover::before {
        opacity: 1;
    }
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-md);
    width: 100%;
    padding-block: var(--s-md);
    padding-left: 16px;
    padding-right: 16px;
    background: none;
    border: 0;
    text-align: left;
    font-size: var(--t-body-lg);
    cursor: pointer;
}

.faq-question:focus-visible {
    outline: 2px solid var(--c-or);
    outline-offset: 3px;
}

.faq-icon {
    position: relative;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--c-texte);
}

.faq-icon::before {
    width: 12px;
    height: 1.5px;
    transform: translate(-50%, -50%);
}

.faq-icon::after {
    width: 1.5px;
    height: 12px;
    transform: translate(-50%, -50%);
    transition: opacity 180ms ease;
}

.faq-question[aria-expanded="true"] .faq-icon::after {
    opacity: 0;
}

/* Reveal — grid-template-rows 0fr→1fr, hauteur de contenu variable sans display:none/JS.
   visibility retardée à la fermeture : contenu masqué aux lecteurs d'écran seulement
   une fois l'animation terminée, jamais pendant. */
.faq-answer {
    height: 0;
    overflow: hidden;
    max-width: 65ch;
    padding-left: 16px;
    padding-right: 16px;
    transition: height 380ms cubic-bezier(.4, 0, .2, 1);
}

.faq-answer > p {
    margin: 0;
    padding-bottom: var(--s-lg);
    font-family: var(--font-corps);
    color: var(--c-texte-2);
    line-height: 1.7;
    opacity: 0;
    transition: opacity 150ms ease;
}

.faq-item:has(.faq-question[aria-expanded="true"]) .faq-answer > p {
    opacity: 1;
    transition: opacity 230ms ease 300ms;
}

@media (max-width: 767px) {
    .faq-question { font-size: var(--t-corps); font-family: var(--font-corps); }
}

@media (prefers-reduced-motion: reduce) {
    .faq-item::before,
    .faq-icon::after,
    .faq-answer,
    .faq-answer > p {
        transition: none;
    }
}

/* ================================================================
   CFS-HERO — /change-frontalier-suisse/
   Photo Genève (drapeau + Jet d'eau) plein cadre, voile bleu nuit
   dégradé pour la lisibilité du texte à gauche. Même mécanique que
   .cd-hero (voile + object-fit:cover), recolorée en bleu nuit pour
   un territoire texte sombre.
   ================================================================ */

.cfs-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 560px;
    background-color: var(--c-bleu-nuit);
}

/* Texture papier (recette .paper-pattern) — gravure fantôme du territoire texte,
   masquée naturellement par la photo dès qu'elle devient opaque */
.cfs-hero-paper::before {
    right: 40%;
    z-index: 0;
}

/* Globe — gravure fiduciaire discrète en arrière-plan du territoire texte */
.cfs-hero-globe {
    position: absolute;
    z-index: 1;
    left: -5%;
    bottom: -35%;
    width: 42%;
    max-width: 420px;
    opacity: .03;
    pointer-events: none;
}

.cfs-hero-globe img {
    display: block;
    width: 100%;
    height: auto;
}

.cfs-hero-visual {
    z-index: 0;
}

.cfs-hero-visual img {
    width: 60%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%);
            mask-image: linear-gradient(to right, transparent 0%, #000 22%);
}

.cfs-hero-inner {
    position: relative;
    z-index: 2;
    padding-block: clamp(48px, 7vw, 96px);
}

.cfs-hero-content { max-width: 44ch; }

.cfs-hero-sep {
    color: var(--c-or);
    font-weight: 200;
}

.cfs-hero-content h1 {
    color: var(--c-fond-blanc);
    margin: 0 0 var(--s-md);
}

.cfs-hero-intro {
    font-family: var(--font-corps);
    font-size: var(--t-body-lg);
    color: rgba(255, 255, 255, .78);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 767px) {
    .cfs-hero {
        display: block;
        min-height: auto;
    }

    .cfs-hero-visual img {
        width: 100%;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .cfs-hero-inner {
        padding-block: var(--s-xl) var(--s-lg);
    }

    .cfs-hero-content {
        max-width: none;
    }

    .cfs-hero-paper {
        display: none;
    }

   .cfs-hero-globe {
       left: 200px;
       bottom: auto;
       top: 100px;
       width: 250px;
       max-width: none;
       opacity: .08;
       z-index: 0;
    }
}

/* ================================================================
   EDITORIAL-HERO
   ================================================================ */

.editorial-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--c-fond);
    display: flex;
    align-items: center;
    min-height: 560px;
}

.editorial-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-block: clamp(48px, 7vw, 96px);
}

.editorial-hero-content { max-width: 40ch; }
.editorial-hero-content h1 { margin: 0 0 var(--s-md); }

.editorial-hero-slogan {
    font-family: var(--font-titre);
    font-style: italic;
    font-weight: 400;
    font-size: 1.625rem;
    color: #71818D;
    margin: 0 0 var(--s-sm);
}

@media (max-width: 767px) {
    .editorial-hero-slogan {
        font-size: 1.3125rem;
    }
}

@media (min-width: 1200px) {
    .editorial-hero-content {
        transform: translateX(-100px);
    }
    .pieces-valeur .editorial-hero-content {
        transform: translateX(24px);
    }
}

.editorial-hero-intro {
    font-family: var(--font-corps);
    font-size: var(--t-body-lg);
    color: var(--c-texte-2);
    line-height: 1.7;
    margin: 0;
}

.editorial-hero-visual {
    z-index: 1;
    pointer-events: none;
}

.editorial-hero-visual img {
    object-position: center;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .7) 15%, #000 30%);
            mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .7) 15%, #000 30%);
}

@media (max-width: 900px) {
    .editorial-hero-content { max-width: 34ch; }
    .editorial-hero-visual img {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .2) 8%, #000 30%);
                mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .2) 8%, #000 30%);
    }
}

@media (max-width: 767px) {
    .editorial-hero { display: block; min-height: auto; }
    .editorial-hero-inner { padding-block: var(--s-xl) var(--s-lg); }
    .editorial-hero-content { max-width: none; }
    .editorial-hero-visual img {
        -webkit-mask-image: none;
                mask-image: none;
    }
}

.pieces-valeur {
    position: relative;
    overflow: hidden;
}

.pieces-valeur .editorial-hero-content h2 {
    margin: 0 0 var(--s-md);
}

.pieces-valeur .editorial-hero-intro + .editorial-hero-intro {
    margin-top: var(--s-md);
}

.pieces-valeur .link-arrow {
    margin-top: var(--s-md);
}

.pieces-valeur img {
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(60%, 800px, calc(100% - var(--padding-inline) - 40ch - var(--s-xl)));
    height: auto;
}

.editorial-hero-content .link-arrow {
    margin-top: var(--s-md);
    color: var(--c-bleu-nuit);
    text-decoration-color: var(--c-or);
}

.editorial-hero-content .link-arrow svg {
    color: var(--c-or);
}

@media (min-width: 768px) and (max-width: 1199px) {
    .pieces-valeur img {
        width: 60%;
    }
}

@media (max-width: 767px) {
    .pieces-valeur img { display: none; }
}

/* ================================================================
   PROCESS-ICONS
   ================================================================ */

.process-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-sm);
}
.process-label::before,
.process-label::after,
.feature-panel-content::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--c-or);
}

.process-intro {
    max-width: var(--w-texte);
    margin: var(--s-sm) auto 0;
    font-size: var(--t-body-lg);
    color: var(--c-texte-2);
    line-height: 1.7;
}

.process-etapes-icons {
    list-style: none;
    margin: var(--s-xl) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-lg);
    text-align: left;
}

.process-step-icon {
    display: flex;
    flex-direction: column;
    gap: var(--s-sm);
}

.process-icon {
    display: flex;
    align-items: center;
    gap: var(--s-sm);
}

.process-icon img {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.process-line {
    flex: 1 1 auto;
    height: 1px;
    background: var(--c-or);
}

@media (max-width: 900px) {
    .process-etapes-icons { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .process-etapes-icons { grid-template-columns: 1fr; }
}

/* ================================================================
   VSO-TYPE — /vendre-son-or/
   ================================================================ */

.content-section--flush-top {
    padding-top: 0;
}

.vso-type-grid { grid-template-columns: repeat(2, 1fr); text-align: left; margin-top: var(--s-lg); }

.vso-type-head {
    display: flex;
    align-items: center;
    gap: var(--s-sm);
}

.vso-type-head h3 {
    font-size: var(--t-h2);
    font-weight: 400;
}

.icon-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.icon-badge img,
.icon-badge svg { width: 40px; height: 40px; }

.icon-badge--or     { color: var(--c-or); background: rgba(184, 146, 58, 0.12); }
.icon-badge--argent { color: #71818D; background: rgba(113, 129, 141, 0.10); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--s-xs);
    margin-top: auto;
    color: var(--c-or);
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 180ms ease; }
.link-arrow:hover svg { transform: translateX(4px); }

.info-band {
    display: flex;
    align-items: center;
    gap: var(--s-md);
    margin-top: var(--s-lg);
    padding: var(--s-md) var(--s-lg);
    background: var(--c-fond-clair);
    border: 0.5px solid var(--c-bord);
}
.info-band-body { flex: 1; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.info-band-body h3 { margin: 0; }
.info-band-body p  { margin: 0; color: var(--c-texte-2); }

.info-band .link-arrow {
    flex: 0 0 200px;
    justify-content: center;
    margin-top: 0;
    padding-left: var(--s-lg);
    border-left: 1px solid var(--c-bord);
}

@media (max-width: 767px) {
    .vso-type-grid { grid-template-columns: 1fr; }
    .info-band { flex-direction: column; align-items: flex-start; }

    .info-band .link-arrow {
        flex-basis: auto;
        align-self: stretch;
        margin-top: var(--s-md);
        padding-left: 0;
        padding-top: var(--s-md);
        border-left: none;
        border-top: 1px solid var(--c-bord);
    }
}

/* ================================================================
   FEATURE-PANELS
   ================================================================ */

.feature-panels {
    display: flex;
    flex-direction: column;
    gap: var(--s-lg);
    margin-top: var(--s-xl);
    text-align: left;
}

.feature-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 420px;
    background: var(--c-fond-clair);
    border: 7px solid #fefdfb;
}

.feature-panel-visual { overflow: hidden; }
.feature-panel-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }

.feature-panel-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--s-sm);
    padding: var(--s-xl) clamp(32px, 4vw, 64px);
}
.feature-panel-content h3,
.fiscal-point h3,
.conservation-column h3,
.pieces-category h3,
.piece-viewer-data h3,
.piece-active-name,
.lire-piece-or-calcul-body h3,
.acheter-vendre-col h3 {
    font-size: var(--t-h2);
    font-weight: 400;
}
.feature-panel-content h3 { margin: 0; }
.feature-panel-content p,
.acheter-vendre-col p    { margin: 0; color: var(--c-texte-2); line-height: 1.7; }

.feature-panels .feature-panel:nth-child(even) .feature-panel-visual  { grid-column: 2; grid-row: 1; }
.feature-panels .feature-panel:nth-child(even) .feature-panel-content { grid-column: 1; grid-row: 1; }

@media (max-width: 900px) {
    .feature-panel,
    .feature-panels .feature-panel:nth-child(even) { grid-template-columns: 1fr; min-height: auto; }
    .feature-panel-visual,
    .feature-panels .feature-panel:nth-child(even) .feature-panel-visual {
        grid-column: 1; grid-row: 1; aspect-ratio: 3 / 2;
    }
    .lire-piece-or-tranche .feature-panel-visual { border-radius: 16px 16px 0 0; }
    .feature-panel-content,
    .feature-panels .feature-panel:nth-child(even) .feature-panel-content { grid-column: 1; grid-row: 2; }
}

/* ================================================================
   PRICE-SECTION
   ================================================================ */

.price-section {
    position: relative;
    overflow: hidden;
    --price-hairline: rgba(255, 255, 255, .18);
}

.price-section::before {
    z-index: 0;
}

.price-section > .csc-container {
    position: relative;
    z-index: 1;
}

.price-coin {
    position: absolute;
    z-index: 0;
    top: 50%;
    right: 0%;
    width: 60%;
    max-width: 720px;
    transform: translateY(-50%);
    opacity: 0.07;
    pointer-events: none;
}

.price-titre {
    color: var(--c-fond-blanc);
    max-width: 26ch;
    margin: 0 0 var(--s-md);
}

.price-intro {
    color: rgba(255, 255, 255, .78);
    line-height: 1.7;
    margin: 0 0 var(--s-lg);
}

.price-bloc h3 {
    font-size: var(--t-h2);
    font-weight: 400;
    color: var(--c-or-clair);
    margin: 0 0 var(--s-md);
}

.price-bloc p {
    color: rgba(255, 255, 255, .78);
    line-height: 1.7;
    margin: 0;
}

/* ---- Composition VSO : rangée unique contenu + blocs ---- */

.price-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1.4fr) minmax(0, 1.65fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: stretch;
}

.price-grid .price-bloc {
    padding-left: clamp(20px, 3vw, 40px);
    border-left: 1px solid var(--price-hairline);
}

@media (min-width: 901px) {
    .price-grid .price-bloc h3 {
        line-height: 1.25;
        min-height: 2.5em;
    }
}

@media (max-width: 900px) {
    .price-grid { grid-template-columns: 1fr 1fr; }
    .price-content { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
    .price-grid { grid-template-columns: 1fr; }
    .price-grid .price-bloc {
        padding-left: 0;
        padding-top: var(--s-lg);
        border-left: 0;
        border-top: 1px solid var(--price-hairline);
    }
    .price-coin {
        top: auto;
        bottom: -8%;
        right: -12%;
        width: 110%;
        max-width: 340px;
        transform: none;
        opacity: 0.08;
    }
}

/* ---- Composition AO : zone éditoriale puis rangée de blocs ---- */

.price-content--editorial {
    max-width: 46ch;
}

.price-blocs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 4vw, 56px);
    margin-top: var(--s-xl);
    border-top: 1px solid var(--price-hairline);
    padding-top: var(--s-lg);
    text-align: left;
}

.price-blocs .price-bloc + .price-bloc {
    padding-left: clamp(20px, 3vw, 40px);
    border-left: 1px solid var(--price-hairline);
}

.price-blocs .price-bloc h3 {
    font-size: 1.485rem;
}

@media (max-width: 900px) {
    .price-blocs {
        grid-template-columns: 1fr;
        gap: var(--s-lg);
    }
    .price-blocs .price-bloc + .price-bloc {
        padding-left: 0;
        border-left: 0;
        padding-top: var(--s-lg);
        border-top: 1px solid var(--price-hairline);
    }
}

/* ================================================================
   VSO-FISCAL — /vendre-son-or/, section "Quelle fiscalité..."
   ================================================================ */

.vso-fiscal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-lg);
    align-items: stretch;
    margin-top: var(--s-lg);
    text-align: left;
}

.vso-fiscal-card {
    background: var(--c-fond-clair);
    border: 1px solid var(--c-bord);
}

.vso-fiscal-card .card-body {
    padding: var(--s-lg);
}

.vso-fiscal-card .section-label {
    margin-bottom: var(--s-sm);
}

.vso-fiscal-card .vso-fiscal-taux {
    font-family: var(--font-titre);
    font-size: var(--t-h1-hero);
    font-weight: 500;
    color: var(--c-bleu-nuit);
    line-height: 1.1;
    margin: 0 0 var(--s-xs);
}

.vso-fiscal-card .vso-fiscal-assiette {
    font-family: var(--font-titre);
    font-size: var(--t-h3);
    font-weight: 500;
    color: var(--c-texte);
    margin: 0;
}

.vso-fiscal-card hr {
    border: none;
    border-top: 1px solid var(--c-bord);
    margin: var(--s-md) 0;
}

/* Encart éditorial générique */
.editorial-note {
    padding: var(--s-md) var(--s-lg);
    background: var(--c-fond-clair);
    border-left: 3px solid transparent;
    border-image: linear-gradient(
        to bottom,
        var(--c-or) 0%,
        #dfca9a 50%,
        var(--c-or) 100%
    ) 1;
}
.editorial-note h3 { margin: 0 0 4px; }
.editorial-note p { color: var(--c-texte-2); margin: 0; }

.vso-fiscal-grid > .editorial-note {
    grid-column: 1 / -1;
}

@media (max-width: 767px) {
    .vso-fiscal-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   AO-HERO — extension /achat-or/ uniquement
   Ligne d'informations pratiques sous .editorial-hero-intro.
   ================================================================ */

.ao-hero-infos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--s-md);
    margin-top: var(--s-xl);
}

.ao-hero-infos-item {
    display: inline-flex;
    align-items: center;
    gap: var(--s-xs);
}

.ao-hero-infos-item svg {
    width: 18px;
    height: 18px;
    color: var(--c-or);
    flex-shrink: 0;
}

.ao-hero-infos-item + .ao-hero-infos-item {
    padding-left: var(--s-md);
    border-left: 1px solid var(--c-bord);
}

@media (max-width: 767px) {
    .ao-hero-infos {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--s-md);
        margin-top: var(--s-lg);
        padding: var(--s-md);
        background: var(--c-fond-clair);
    }

    .ao-hero-infos-item + .ao-hero-infos-item {
        padding-left: 0;
        border-left: none;
    }
}

/* ================================================================
   FISCAL-GRID
   ================================================================ */

.fiscal-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.fiscal-content h2 {
    margin: 0 0 var(--s-md);
}

.fiscal-content p {
    color: var(--c-texte-2);
    line-height: 1.7;
    max-width: 42ch;
}

.fiscal-content .section-label {
    color: var(--c-or);
}

.fiscal-points {
    display: flex;
    flex-direction: column;
    gap: var(--s-lg);
    padding-left: clamp(24px, 4vw, 56px);
    border-left: 1px solid var(--c-bord);
}

.fiscal-point {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: var(--s-md);
}

.fiscal-point .icon-badge {
    grid-row: 1 / span 2;
}

.fiscal-point .icon-badge img {
    width: 30px;
    height: 30px;
}

.fiscal-point + .fiscal-point {
    padding-top: var(--s-lg);
    border-top: 1px solid var(--c-bord);
}

.fiscal-point h3 {
    margin: 0 0 var(--s-sm);
}

.fiscal-point p {
    color: var(--c-texte-2);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 900px) {
    .fiscal-grid { grid-template-columns: 1fr; }
    .fiscal-points {
        padding-left: 0;
        border-left: 0;
        padding-top: var(--s-lg);
        border-top: 1px solid var(--c-bord);
    }
}

@media (max-width: 767px) {
    .fiscal-point {
        row-gap: var(--s-md);
        align-items: center;
    }
    .fiscal-point .icon-badge {
        grid-row: 1;
    }
    .fiscal-point h3 {
        grid-row: 1;
        margin-bottom: 0;
    }
    .fiscal-point p {
        grid-row: 2;
        grid-column: 1 / -1;
    }
}

/* ================================================================
   CONSERVATION — /achat-or/, section "Conserver votre or et les
   documents associés". Éditorial (eyebrow+H2+intro) puis rangée de
   trois cards (visuel contenu + corps éditorial), bandeau d'alerte
   pleine largeur en pied de section. Composant propre à cette page.
   ================================================================ */

.conservation-intro {
    max-width: 62ch;
    color: var(--c-texte-2);
    line-height: 1.7;
    margin: 0 auto;
}

.conservation-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 4vw, 56px);
    margin-top: var(--s-xl);
    text-align: left;
}

.conservation-column {
    display: flex;
    flex-direction: column;
    gap: var(--s-md);
}

.conservation-column + .conservation-column {
    padding-left: clamp(20px, 3vw, 40px);
    border-left: 1px solid var(--c-bord);
}

.conservation-column h3 { margin: 0; }

.conservation-column p {
    color: var(--c-texte-2);
    line-height: 1.7;
    margin: 0;
}

.conservation-visual {
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.conservation-visual img {
    display: block;
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.conservation-visual--1kg img {
    transform: scale(1.11);
}

.conservation-columns + .editorial-note {
    margin-top: var(--s-xl);
    text-align: left;
}

@media (max-width: 900px) {
    .conservation-columns {
        grid-template-columns: 1fr;
        gap: var(--s-lg);
    }
    .conservation-column + .conservation-column {
        padding-left: 0;
        border-left: 0;
        padding-top: var(--s-lg);
        border-top: 1px solid var(--c-bord);
    }
    .conservation-visual {
        height: 380px;
    }
}

@media (max-width: 767px) {
    .conservation-visual {
        height: 300px;
    }
}

/* ================================================================
   PIECES-CATEGORIES
   ================================================================ */

.pieces-eyebrow {
    text-align: center;
}

.pieces-eyebrow::after {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: var(--c-or);
    margin: var(--s-xs) auto 0;
}

.pieces-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(32px, 5vw, 64px);
    margin-top: var(--s-xl);
    text-align: center;
}

.pieces-category + .pieces-category {
    padding-left: clamp(24px, 4vw, 48px);
    border-left: 1px solid var(--c-bord);
}

.pieces-category img {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto var(--s-lg);
}
.pieces-category-label { margin: 0 0 var(--s-md); }

.pieces-category h3 { margin: 0 0 var(--s-sm); }

.pieces-category p:not(.pieces-category-label) {
    color: var(--c-texte-2);
    line-height: 1.7;
    max-width: 40ch;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .pieces-categories-grid { grid-template-columns: 1fr; }
    .pieces-category + .pieces-category {
        padding-left: 0;
        border-left: 0;
        padding-top: var(--s-lg);
        border-top: 1px solid var(--c-bord);
    }
}

/* « Acheter ou vendre une pièce d'or à Annecy » */
.acheter-vendre-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(32px, 5vw, 64px);
    margin-top: var(--s-xl);
    text-align: left;
}

/* Photo pleine largeur */
.acheter-vendre-col img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 var(--s-lg);
}

/* Tiret doré devant le h3 */
.acheter-vendre-col h3 {
    display: flex;
    align-items: center;
    gap: var(--s-sm);
    margin: 0 0 var(--s-sm);
}
.acheter-vendre-col h3::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--c-or);
    flex-shrink: 0;
}

.acheter-vendre-col p + p { margin-top: var(--s-sm); }

.acheter-vendre-col .link-arrow { margin-top: var(--s-md); }

/* Mobile — même bascule que .pieces-categories-grid */
@media (max-width: 767px) {
    .acheter-vendre-grid { grid-template-columns: 1fr; }
    .acheter-vendre-col + .acheter-vendre-col {
        padding-top: var(--s-lg);
    }
}

/* Séparateur Point median */
.editorial-dot {
    margin: 0;
    height: 0;
    overflow: visible;
    text-align: center;
    color: var(--c-or);
    font-size: 2.5rem;
    line-height: 0;
}

/* ================================================================
   LIRE-PIECE-OR — /pieces-or/
   ================================================================ */

/* Fond texture */
.fond-texture {
    background-color: var(--c-fond-clair);
    background-image:
        linear-gradient(to bottom,
            color-mix(in srgb, var(--c-fond-clair) 40%, transparent) 0%,
            color-mix(in srgb, var(--c-fond-clair) 70%, transparent) 70%,
            var(--c-fond) 100%),
        url('../../images/texture-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.lire-piece-or {
    --lpo-num: 34px;
}

.lire-piece-or-intro h2 {
    color: var(--c-bleu-nuit);
    margin: 0 0 var(--s-sm);
}

.lire-piece-or-intro .process-intro {
    margin-left: 0;
}

.lire-piece-or-faces {
    display: grid;
    grid-template-columns: minmax(150px, 190px) minmax(220px, 1fr) minmax(220px, 1fr) minmax(150px, 190px);
    gap: var(--s-md);
    margin-top: var(--s-xl);
}

/* Placement desktop explicite — ordre source : recto, verso, I, II, III, IV */
.lire-piece-or-faces > :nth-child(1) { grid-column: 2; grid-row: 1; }
.lire-piece-or-faces > :nth-child(2) { grid-column: 3; grid-row: 1; }
.lire-piece-or-faces > :nth-child(3) { grid-column: 1; grid-row: 1; align-self: start; }
.lire-piece-or-faces > :nth-child(4) { grid-column: 4; grid-row: 1; align-self: start; }
.lire-piece-or-faces > :nth-child(5) { grid-column: 1; grid-row: 1; align-self: end; }
.lire-piece-or-faces > :nth-child(6) { grid-column: 4; grid-row: 1; align-self: end; }

.lire-piece-or-repere { text-align: left; }
.lire-piece-or-repere--right { text-align: right; }

.lire-piece-or-repere-head {
    display: flex;
    align-items: center;
    gap: var(--s-sm);
    margin: 0 0 var(--s-xs);
}

.lire-piece-or-repere--right .lire-piece-or-repere-head {
    flex-direction: row-reverse;
}

.lire-piece-or-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--lpo-num);
    height: var(--lpo-num);
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--c-or);
    color: var(--c-or);
    font-family: var(--font-titre);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    padding-top: 3px;
}

.lire-piece-or-repere-label {
    font-family: var(--font-corps);
    font-size: var(--t-petit);
    font-weight: 600;
    color: var(--c-bleu-nuit);
    white-space: nowrap;
}

.lire-piece-or-repere-line {
    height: 1px;
    background: var(--c-or);
}

/* Trait oblique prolongeant le trait droit vers la pièce. Direction
   gauche/droite = classes existantes (.lire-piece-or-repere / --right) ;
   sens haut/bas = --bas (classe sémantique légère sur III/IV). Aucune
   dépendance à l'ordre des enfants HTML.
   angle = --lpo-line-side × --lpo-line-vert × 16deg */
.lire-piece-or-repere {
    --lpo-line-side: 1;
    --lpo-line-vert: 1;
}
.lire-piece-or-repere--right { --lpo-line-side: -1; }
.lire-piece-or-repere--bas { --lpo-line-vert: -1; }

.lire-piece-or-repere .lire-piece-or-repere-line {
    flex: 0 0 var(--s-lg);
    position: relative;
}

.lire-piece-or-repere .lire-piece-or-repere-line::after {
    content: "";
    position: absolute;
    left: 100%;
    top: calc(50% - 0.5px);
    width: var(--lpo-line-len, 20px);
    height: 1px;
    background: var(--c-or);
    transform-origin: left center;
    transform: rotate(calc(var(--lpo-line-side) * var(--lpo-line-vert) * 25deg));
}

.lire-piece-or-repere--right .lire-piece-or-repere-line::after {
    left: auto;
    right: 100%;
    transform-origin: right center;
}

.lire-piece-or-repere-valeur,
.lire-piece-or-repere-texte {
    padding-left: calc(var(--lpo-num) + var(--s-sm));
}

.lire-piece-or-repere--right .lire-piece-or-repere-valeur,
.lire-piece-or-repere--right .lire-piece-or-repere-texte {
    padding-left: 0;
    padding-right: calc(var(--lpo-num) + var(--s-sm));
}

.lire-piece-or-repere-valeur {
    font-family: var(--font-titre);
    font-size: var(--t-h2);
    font-weight: 500;
    color: var(--c-bleu-nuit);
    margin: 0 0 4px;
}

.lire-piece-or-repere-texte {
    color: var(--c-texte-2);
    font-size: var(--t-petit);
    line-height: 1.5;
    margin: 0;
}

.lire-piece-or-face {
    margin: 0;
    text-align: center;
}

/* Conteneur visuel dédié à la photo (hors légende) — permet de poser
   l'ombre juste sous la pièce, sans dépendre de figcaption. Sa hauteur
   correspond exactement à celle de l'image (aucun autre contenu). */
.lire-piece-or-visuel {
    position: relative;
    display: block;
}

/* Ombre de contact — proportions et dégradé identiques à
   .piece-duo::before (fiches numismatiques), intensité légèrement
   renforcée. */
.lire-piece-or-visuel::before {
    content: "";
    position: absolute;
    bottom: -3.5%;
    left: 50%;
    width: 76%;
    height: 13%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse at center,
        rgba(35, 28, 18, 0.72) 0%,
        rgba(35, 28, 18, 0.58) 15%,
        rgba(35, 28, 18, 0.35) 25%,
        rgba(35, 28, 18, 0.14) 45%,
        rgba(35, 28, 18, 0.03) 65%,
        rgba(35, 28, 18, 0) 95%,
        rgba(35, 28, 18, 0) 100%);
    filter: blur(5px);
    pointer-events: none;
}

.lire-piece-or-face img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    position: relative;
}

.lire-piece-or-face figcaption {
    margin-top: var(--s-sm);
    font-family: var(--font-corps);
    font-size: var(--t-petit);
    color: var(--c-texte-2);
}

.lire-piece-or-tranche {
    margin-top: var(--s-lg);
    min-height: auto;
    border-radius: 16px;
}

.lire-piece-or-tranche .feature-panel-content {
    padding: var(--s-lg) clamp(24px, 3vw, 40px);
}

.lire-piece-or-tranche .feature-panel-content::before { content: none; }

.lire-piece-or-tranche .lire-piece-or-repere-head--titre { margin: 0; }

.lire-piece-or-tranche .lire-piece-or-repere-line {
    display: block;
    width: 28px;
}

.lire-piece-or-tranche h3 {
    color: var(--c-bleu-nuit);
    margin: 0;
}

.lire-piece-or-tranche p { margin: 0; }

.lire-piece-or .section-label.hero-label {
    margin-bottom: var(--s-sm);
}


@media (min-width: 901px) {
    .lire-piece-or-tranche .feature-panel-visual {
        position: relative;
        border-radius: 0 16px 16px 0;
    }
    .lire-piece-or-tranche .feature-panel-visual::after {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 25%;
        background: linear-gradient(
            to right,
            var(--c-fond-clair) 0%,
            transparent 100%);
        pointer-events: none;
    }
}

.lire-piece-or-calcul {
    margin-top: var(--s-lg);
    padding: var(--s-xl) clamp(24px, 4vw, 56px);
    background: var(--c-fond-clair);
    border: 1px solid var(--c-bord);
    border-radius: 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--s-xl);
    align-items: center;
    text-align: left;
}

.lire-piece-or-calcul-body h3 { margin: 0 0 var(--s-xs); }

.lire-piece-or-calcul-body > p {
    color: var(--c-texte-2);
}

.lire-piece-or-formule {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: var(--s-sm);
    margin-top: var(--s-md);
}

.lire-piece-or-terme {
    padding: var(--s-sm) var(--s-md);
    background: #fefdfb;
    border: 1px solid var(--c-bord);
    border-radius: 10px;
    text-align: center;
}

.lire-piece-or-terme strong {
    display: block;
    font-family: var(--font-titre);
    font-size: var(--t-h2);
    font-weight: 500;
    color: var(--c-bleu-nuit);
}

.lire-piece-or-terme span {
    display: block;
    margin-top: 4px;
    font-size: var(--t-petit);
    color: var(--c-texte-2);
    line-height: 1.4;
}

.lire-piece-or-terme--resultat strong { color: var(--c-or-fonce); }

.lire-piece-or-signe {
    font-family: var(--font-titre);
    font-size: var(--t-h2);
    color: var(--c-bleu-nuit);
    text-align: center;
}

.lire-piece-or-lien {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-sm);
    max-width: 320px;
    padding-left: var(--s-xl);
    border-left: 1px solid var(--c-bord);
}

.lire-piece-or-lien p {
    margin: 0;
    color: var(--c-texte-2);
    font-size: var(--t-petit);
    line-height: 1.5;
}

.lire-piece-or-lien .btn-csc-primary { padding: 10px 20px; }

/* Icône du livre, nue (aucun .icon-badge) — couleur posée en CSS car
   book.svg n'a pas d'attribut fill propre (fichier non modifié). */
.lire-piece-or-lien > span > svg {
    width: 48px;
    height: 48px;
    fill: var(--c-or);
}

@media (max-width: 900px) {
    /* Mobile : seul le verso reste visible (recto masqué, jamais retiré du
       DOM), centré au-dessus/au-dessous des quatre repères disposés en
       grille 2 colonnes — I/II en haut, III/IV en bas. Même ordre source
       que le desktop (recto, verso, I, II, III, IV), replacé par enfant. */
    .lire-piece-or-faces {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        gap: var(--s-md);
        margin-top: var(--s-lg);
    }
    .lire-piece-or-faces > :nth-child(1) { display: none; }
    .lire-piece-or-faces > :nth-child(2) {
        grid-column: 1 / -1;
        grid-row: 2;
        width: min(85%, 320px);
        margin-inline: auto;
    }
    .lire-piece-or-faces > :nth-child(3) { grid-column: 1; grid-row: 1; }
    .lire-piece-or-faces > :nth-child(4) { grid-column: 2; grid-row: 1; }
    .lire-piece-or-faces > :nth-child(5) { grid-column: 1; grid-row: 3; }
    .lire-piece-or-faces > :nth-child(6) { grid-column: 2; grid-row: 3; }

    .lire-piece-or-repere .lire-piece-or-repere-line {
        --lpo-line-len: 16px;
    }

    .lire-piece-or { --lpo-num: clamp(26px, 8vw, 34px); }
    .lire-piece-or-repere-head { gap: 10px; }
    .lire-piece-or-repere-label { white-space: normal; }
    .lire-piece-or-repere .lire-piece-or-repere-line { flex-basis: 16px; }
}

@media (max-width: 991px) {
    .lire-piece-or-calcul { grid-template-columns: 1fr; }
    .lire-piece-or-lien {
        max-width: none;
        padding-left: 0;
        padding-top: var(--s-lg);
        border-left: none;
        border-top: 1px solid var(--c-bord);
    }
    .lire-piece-or-formule {
        grid-template-columns: 1fr auto 1fr;
    }
    .lire-piece-or-formule > :nth-child(1) { grid-column: 1; grid-row: 1; }
    .lire-piece-or-formule > :nth-child(2) { grid-column: 2; grid-row: 1; }
    .lire-piece-or-formule > :nth-child(3) { grid-column: 3; grid-row: 1; }
    .lire-piece-or-formule > :nth-child(4) { grid-column: 1 / -1; grid-row: 2; }
    .lire-piece-or-formule > :nth-child(5) { grid-column: 1 / -1; grid-row: 3; }
    .lire-piece-or-terme { padding: var(--s-sm) var(--s-xs); }
}

/* ================================================================
   PAGE REVEAL - micro-fondu d'entrée, contenu sous le header
   ================================================================ */

@keyframes page-reveal {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media not (prefers-reduced-motion: reduce) {
    #sp-main-body {
        animation: page-reveal 350ms ease-out both;
    }
}

/* ================================================================
   CFS - AU QUOTIDIEN
   ================================================================ */

.cfs-quotidien-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: start;
}

.cfs-quotidien-content h2 {
    margin: 0 0 var(--s-md);
}

.cfs-quotidien-intro {
    font-family: var(--font-corps);
    font-size: var(--t-body-lg);
    color: var(--c-texte-2);
    line-height: 1.75;
    margin: 0 0 var(--s-md);
}

.cfs-quotidien-usages {
    list-style: none;
    margin: var(--s-lg) 0 0;
    padding: var(--s-lg) 0 0;
    border-top: 1px solid var(--c-trait);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-lg);
}

.cfs-quotidien-usage {
    display: flex;
    flex-direction: column;
    gap: var(--s-xs);
}

.cfs-quotidien-usage + .cfs-quotidien-usage {
    padding-left: var(--s-lg);
    border-left: 1px solid var(--c-trait);
}

.cfs-quotidien-usage-label {
    margin: 0;
}

.cfs-quotidien-usage-text {
    font-family: var(--font-corps);
    font-size: var(--t-corps);
    color: var(--c-texte-2);
    line-height: 1.65;
    margin: 0;
}

.cfs-quotidien-visual {
    margin: 0;
}

.cfs-quotidien-visual img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
    .cfs-quotidien-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .cfs-quotidien-usages {
        grid-template-columns: 1fr;
        gap: var(--s-md);
    }

    .cfs-quotidien-usage + .cfs-quotidien-usage {
        padding-left: 0;
        border-left: none;
        padding-top: var(--s-md);
        border-top: 1px solid var(--c-trait);
    }
}

/* ================================================================
   CFS - CHANGE FRONTALIER
   ================================================================ */

.cfs-frontalier-section {
    position: relative;
    overflow: hidden;
}

.cfs-frontalier-section::before {
    z-index: 0;
}

.cfs-frontalier-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: start;
}

.cfs-frontalier-visual {
    margin: 0;
    position: relative;
}

.cfs-frontalier-visual img {
    position: absolute;
    top: 0;
    right: 0;
    width: 460px;
    max-width: none;
    height: auto;
    pointer-events: none;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .14);
}

.cfs-frontalier-content {
    position: relative;
}

.cfs-frontalier-content h2 {
    color: var(--c-fond-blanc);
    margin: 0 0 var(--s-md);
}

.cfs-frontalier-intro {
    font-family: var(--font-corps);
    font-size: var(--t-body-lg);
    color: rgba(255, 255, 255, .78);
    line-height: 1.75;
    margin: 0 0 var(--s-lg);
}

.cfs-frontalier-points {
    list-style: none;
    margin: 0 0 var(--s-lg);
    padding: var(--s-lg) 0 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-lg);
}

.cfs-frontalier-point {
    display: flex;
    flex-direction: column;
    gap: var(--s-xs);
}

.cfs-frontalier-point + .cfs-frontalier-point {
    padding-left: var(--s-lg);
    border-left: 1px solid rgba(255, 255, 255, .18);
}

.point-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.point-label::before {
    content: "";
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 50%;
    background: var(--point-label-color, var(--c-or-clair));
}

.cfs-frontalier-point-label {
    margin: 0;
    gap: 10px;
}

.cfs-frontalier-point-text {
    font-family: var(--font-corps);
    font-size: var(--t-corps);
    color: rgba(255, 255, 255, .78);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 1024px) {
    .cfs-frontalier-grid {
        grid-template-columns: 1fr;
    }

    .cfs-frontalier-visual {
        height: clamp(200px, 30vw, 300px);
        overflow: hidden;
    }

    .cfs-frontalier-visual img {
        position: static;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 1%;
        box-shadow: none;
    }
}

@media (max-width: 767px) {
    .cfs-frontalier-visual {
        height: clamp(160px, 40vw, 220px);
    }

    .cfs-frontalier-points {
        grid-template-columns: 1fr;
        gap: var(--s-md);
    }

    .cfs-frontalier-point + .cfs-frontalier-point {
        padding-left: 0;
        border-left: none;
        padding-top: var(--s-md);
        border-top: 1px solid rgba(255, 255, 255, .18);
    }
}

.cfs-vignette-content > .section-label {
    margin-bottom: var(--s-xl);
}

.cfs-vignette-content h2 {
    margin: 0 0 var(--s-lg);
}

.cfs-vignette-content > p:not(.section-label) {
    margin-bottom: var(--s-md);
}

.cfs-vignette-content > p.cfs-vignette-note {
    margin-bottom: 0;
}

.cfs-vignette-note {
    font-size: var(--t-petit);
}

.cfs-vignette-visual {
    margin: 0;
    display: flex;
    justify-content: center;
}

.cfs-vignette-visual img {
    width: 100%;
    max-width: 280px;
    height: auto;
    background-color: var(--c-fond-blanc);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}

/* ================================================================
   PIECES-REPERTOIRE - "Explorez la collection"
   ================================================================ */

.pieces-repertoire { position: relative; isolation: isolate; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='1' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23grain)'/%3E%3C/svg%3E"), radial-gradient(ellipse 90% 70% at 50% 50%,#38566B 0%,#223E51 35%,#112D3F 65%,#081B29 100%); background-repeat: repeat, no-repeat; background-size: 128px 128px, cover; }

.pieces-repertoire::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-fond);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 850ms ease-in-out;
}

.pieces-repertoire.is-detail-opening::before {
  opacity: 1;
}

.pieces-repertoire .process-intro { color: var(--c-texte-inv); }

/* Disparition du contenu HTML pendant l'ouverture de la fiche */
.pieces-repertoire .pieces-eyebrow,
.pieces-repertoire h2,
.pieces-repertoire .process-intro,
.pieces-repertoire .piece-active-name,
.pieces-repertoire .piece-gallery-nav {
    transition: opacity 650ms ease;
}

.pieces-repertoire.is-detail-opening .pieces-eyebrow,
.pieces-repertoire.is-detail-opening h2,
.pieces-repertoire.is-detail-opening .process-intro,
.pieces-repertoire.is-detail-opening .piece-active-name,
.pieces-repertoire.is-detail-opening .piece-gallery-nav {
    opacity: 0;
    pointer-events: none;
}

.piece-viewers {
    display: flex;
    flex-direction: column;
    gap: var(--s-xl);
    margin-top: var(--s-xl);
}

.piece-viewer {
    display: flex;
    gap: var(--s-md);
    align-items: flex-start;
    max-width: 820px;
    margin-inline: auto;
    background: var(--c-fond);
    border: 1px solid var(--c-bord);
    border-radius: 16px;
}

.piece-faces {
    display: flex;
    gap: var(--s-xs);
    margin-top: var(--s-lg);
}

.piece-face-btn {
    min-height: 40px;
    padding: 0 var(--s-md);
    border: 1px solid var(--c-or);
    border-radius: 999px;
    background: transparent;
    color: var(--c-bleu-nuit);
    font-family: var(--font-corps);
    font-size: var(--t-petit);
    font-weight: 600;
    cursor: pointer;
}

.piece-face-btn[aria-pressed="true"] {
    background: var(--c-or);
    color: var(--c-fond-blanc);
}

.piece-face-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.piece-face-btn:focus-visible {
    outline: 2px solid var(--c-or);
    outline-offset: 2px;
}

.piece-viewer-data {
    padding: var(--s-lg) var(--s-md);
    min-width: 0;
}

.piece-type {
    display: flex;
    align-items: center;
    gap: var(--s-sm);
    font-family: var(--font-corps);
    font-size: var(--t-petit);
    font-weight: 600;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--c-or);
    margin: 0;
}

.piece-type::after {
    content: '';
    flex: 1 1 auto;
    max-width: 40px;
    height: 1px;
    background: var(--c-or);
}

.piece-viewer-data h3 { margin: var(--s-xs) 0 var(--s-xs); }

.piece-origin {
    color: var(--c-texte-2);
    margin: 0 0 var(--s-md);
}

.piece-specs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--s-sm);
    margin: 0;
    padding-top: var(--s-lg);
    border-top: 1px solid var(--c-bord);
}

.piece-spec--standard { grid-column: span 3; }
.piece-spec--large    { grid-column: span 3; }
.piece-spec--large.piece-spec--texte { grid-column: span 6; }

/* Mobile (base) */
.piece-spec {
    padding: var(--s-sm);
    border: 1px solid var(--c-bord);
    border-radius: 10px;
    text-align: left;
    background-color: var(--c-fond-clair);
    display: grid;
    align-items: start;
}
.piece-spec:has(.piece-spec-icon) {
    grid-template-columns: auto 1fr;
    column-gap: var(--s-sm);
}

/* .piece-spec-row perd sa boîte (display: contents) pour que ses enfants
   rejoignent directement la grille ci-dessus, sans changement de balisage. */
.piece-spec-row {
    display: contents;
}

.piece-spec-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}
.piece-spec:has(.piece-spec-icon) .piece-spec-icon {
    grid-column: 1;
    grid-row: 1;
}
@media (max-width: 1023px) {
    .piece-spec-icon {
        width: 26px;
        height: 26px;
        transform: translateY(-3px);
    }
}

.piece-spec-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.piece-spec-icon--compact img { transform: scale(0.85); }
.piece-spec-icon--tall img    { transform: scale(0.80); }
.piece-spec-icon--wide img    { transform: scale(1.05); }
.piece-spec-icon--tranche img { transform: scale(0.93); }
.piece-spec-icon--flat img    { transform: scale(1.08); }

.piece-spec dt {
    display: block;
    font-family: var(--font-corps);
    font-size: 11px;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--c-texte-2);
    margin-bottom: var(--s-xs);
}
.piece-spec:has(.piece-spec-icon) dt { grid-column: 2; grid-row: 1; }

.piece-spec dd {
    margin: 0;
    color: var(--c-or-fonce);
    font-weight: 400;
    font-family: var(--font-titre);
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: center;
}

.piece-spec--metrique dd {
    font-size: 1.25rem;
}

.piece-spec--texte dd {
    font-size: var(--t-petit);
    font-family: var(--font-corps);
    line-height: 1.5;
}

/* Duo recto/verso superposé — modèle commun à toutes les fiches pièces d'or */
.piece-duo {
    --piece-duo-diameter: clamp(128px, 17vw, 190px);
    position: relative;
    width: calc(var(--piece-duo-diameter) * 1.72);
    height: var(--piece-duo-diameter);
    margin-inline: auto;
}
/* Ombres de contact sous les deux monnaies */
.piece-duo::before,
.piece-duo::after {
    content: "";
    position: absolute;
    bottom: calc(var(--piece-duo-diameter) * -0.035);
    width: calc(var(--piece-duo-diameter) * 0.76);
    height: calc(var(--piece-duo-diameter) * 0.13);
    border-radius: 50%;
    background: radial-gradient(
        ellipse at center,
      rgba(35, 28, 18, 0.48) 0%,
      rgba(35, 28, 18, 0.38) 18%,
      rgba(35, 28, 18, 0.22) 28%,
      rgba(35, 28, 18, 0.08) 48%,
      rgba(35, 28, 18, 0.015) 68%,
      rgba(35, 28, 18, 0) 85%,
      rgba(35, 28, 18, 0) 100%
     );
    filter: blur(5px);
    pointer-events: none;
}
/* Ombre du verso */
.piece-duo::before {
    left: calc(var(--piece-duo-diameter) * 0.12);
    z-index: 0;
}
/* Ombre du recto */
.piece-duo::after {
    left: calc(var(--piece-duo-diameter) * 0.84);
    z-index: 2;
}
.piece-duo-face {
    position: absolute;
    top: 0;
    width: var(--piece-duo-diameter);
    height: var(--piece-duo-diameter);
    border-radius: 50%;
    overflow: hidden;
}
.piece-duo-face img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.176);
    transform-origin: center;
}
.piece-duo-face--verso { left: 0; z-index: 1; }
.piece-duo-face--recto { left: calc(var(--piece-duo-diameter) * 0.72); z-index: 3; }

/* Carrousel "Poursuivre la découverte" — modèle commun à toutes les fiches
   pièces d'or. */
.piece-carousel-track {
    display: flex;
    gap: var(--s-lg);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}
.piece-carousel-track::-webkit-scrollbar {
    display: none;
}
.piece-carousel-track:focus-visible {
    outline: 2px solid var(--c-or);
    outline-offset: 2px;
}

.piece-carousel-card {
    scroll-snap-align: start;
    flex: 0 0 88%;
    background-color: var(--c-fond-clair);
    border-radius: 8px;
    padding: var(--s-lg);
    display: flex;
    flex-direction: column;
    gap: var(--s-sm);
    box-shadow: 0 0 12px rgba(35, 28, 18, 0.06);
}
@media (max-width: 480px) {
    .piece-carousel-card { padding: var(--s-md); }
}
@media (max-width: 560px) {
    .piece-carousel-card {
        flex-basis: 100%;
    }
    .piece-carousel-card .piece-duo {
        --piece-duo-diameter: 155px;
    }
}
@media (min-width: 1024px) {
    .piece-carousel-card { flex-basis: calc((100% - var(--s-lg)) / 2); }
}
.piece-carousel-card h3 {
    font-size: var(--t-h3);
    margin: 0;
}
.piece-carousel-card > .section-label {
    margin: 0;
}

.piece-carousel-nav {
    display: flex;
    gap: var(--s-sm);
    flex-shrink: 0;
}
.piece-carousel-nav[hidden] {
    display: none;
}
.piece-carousel-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--c-bord);
    background: var(--c-fond-blanc);
    color: var(--c-texte);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 150ms, border-color 150ms;
}
.piece-carousel-nav-btn svg {
    width: 18px;
    height: 18px;
}
.piece-carousel-nav-btn:hover:not(:disabled) {
    background-color: var(--c-fond-clair);
    border-color: var(--c-or);
}
.piece-carousel-nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
}
.piece-carousel-nav-btn:focus-visible {
    outline: 2px solid var(--c-or);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    .piece-carousel-nav-btn { transition: none; }
}

.piece-description-label {
    margin: 0 0 var(--s-xs);
    font-family: var(--font-corps);
    font-size: var(--t-label);
    font-weight: 600;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--c-texte-2);
}

.piece-description {
    margin: 0 0 var(--s-lg);
}

.piece-description-text {
    color: var(--c-texte);
    line-height: 1.65;
    max-width: 38ch;
    margin: 0;
}

.piece-know {
    margin-top: var(--s-md);
    font-size: var(--t-petit);
    color: var(--c-texte);
}

.piece-know-label {
    font-family: var(--font-corps);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--c-or);
    margin: 0 0 4px;
}

.piece-description.is-clamped {
    position: relative;
    max-height: 110px;
    overflow: hidden;
    transition: max-height 380ms cubic-bezier(.4, 0, .2, 1);
}

.piece-description.is-clamped::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.5em;
    background: linear-gradient(to bottom, transparent, var(--c-fond-clair));
    pointer-events: none;
    transition: opacity 200ms ease;
}

.piece-description.is-clamped:has(+ .piece-description-toggle[aria-expanded="true"])::after {
    opacity: 0;
}

.piece-description-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--s-xs);
    margin: 0 0 var(--s-md);
    padding: 0;
    background: none;
    border: 0;
    color: var(--c-or-fonce);
    font-family: var(--font-corps);
    font-size: var(--t-petit);
    font-weight: 600;
    cursor: pointer;
}

.piece-description-toggle:focus-visible {
    outline: 2px solid var(--c-or);
    outline-offset: 3px;
}

.piece-description-toggle[hidden] {
    display: none;
}

.piece-description-chevron {
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 200ms ease;
}

.piece-description-toggle[aria-expanded="true"] .piece-description-chevron {
    transform: rotate(-135deg);
}

@media (min-width: 1024px) {
    .piece-viewers {
        margin-top: 0;
    }

    .piece-viewer-data {
        padding: var(--s-md);
    }

    .piece-specs {
        grid-template-columns: repeat(3, 1fr);
        padding-top: var(--s-md);
    }

    .piece-spec--standard { grid-column: span 1; }
    .piece-spec--large.piece-spec--metrique { grid-column: span 1; }
    .piece-spec--large.piece-spec--texte    { grid-column: span 2; }

    .piece-spec {
        display: block;
        text-align: left;
        min-height: 0;
    }

    .piece-spec-row {
        display: flex;
        flex-direction: row;
        gap: var(--s-sm);
    }

    .piece-spec-row dd {
        flex: 1;
        min-width: 0;
        text-align: left;
    }

    .piece-description {
        margin-bottom: var(--s-md);
    }

    .csc-container--pieces-table {
        max-width: calc(var(--w-max) + 160px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .piece-description.is-clamped,
    .piece-description.is-clamped::after,
    .piece-description-chevron {
        transition: none !important;
    }
}

.piece-viewer[hidden] {
    display: none;
}

html.is-coin-transitioning,
html.is-coin-transitioning body {
    overflow: hidden;
}

.pieces-repertoire.is-detail-opening {
    isolation: auto;
}

.piece-gallery-stage.is-coin-isolated {
    position: fixed;
    z-index: 9999;
    margin: 0;
    max-width: none;
    pointer-events: none;
}

.coin-transition-background {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: var(--c-fond);
    opacity: 0;
    pointer-events: none;
    transition: opacity 850ms ease-in-out;
}

.coin-transition-background.is-visible {
    opacity: 1;
}

/* ================================================================
   LINGOTS-OR - section "Lingot ou lingotin
   ================================================================ */

.lo-eyebrow {
    font-family: var(--font-corps);
    font-size: var(--t-petit);
    font-weight: 600;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--c-or);
    margin: 0 0 var(--s-xs);
}

.lo-eyebrow::after {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: var(--c-or);
    margin-top: var(--s-xs);
}

/* -- Partie supérieure : texte + photo -- */

.lo-formats-intro {
    display: grid;
    grid-template-columns: minmax(0, 9fr) minmax(0, 11fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.lo-formats-intro-text h2 { margin: 0 0 var(--s-md); }

.lo-formats-intro-text .lo-eyebrow {
    margin-bottom: var(--s-lg);
}

.lo-formats-intro-text p:not(.lo-eyebrow) {
    margin: 0;
    max-width: 46ch;
}

.lo-formats-intro-text p:not(.lo-eyebrow) + p:not(.lo-eyebrow) {
    margin-top: var(--s-sm);
}

.lo-formats-visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* -- Partie inférieure : repères de poids -- */

.lo-reperes {
    margin-top: var(--s-xl);
    padding: var(--s-lg) clamp(24px, 4vw, 56px);
    background: var(--c-fond-clair);
    border: 1px solid var(--c-bord);
    border-radius: 16px;
}

.lo-reperes-soustitre {
    font-family: var(--font-titre);
    font-style: italic;
    font-size: var(--t-body-lg);
    color: var(--c-texte-2);
    margin: 0 0 var(--s-lg);
}

.lo-reperes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.lo-format-item {
    padding: var(--s-md) var(--s-md);
    text-align: center;
    border-top: 0.5px solid var(--c-or);
    border-left: 0.5px solid var(--c-or);
}

.lo-reperes-grid .lo-format-item:nth-child(3n+1) { border-left: none; }
.lo-reperes-grid .lo-format-item:nth-child(-n+3) { border-top: none; }

.lo-format-valeur {
    display: block;
    font-family: var(--font-titre);
    font-size: var(--t-h2);
    font-weight: 500;
    color: var(--c-bleu-nuit);
}

.lo-format-precision {
    display: block;
    font-family: var(--font-corps);
    font-size: var(--t-petit);
    color: var(--c-texte-2);
    margin-top: var(--s-xs);
}

.lo-reperes-note {
    margin: var(--s-lg) 0 0;
    font-family: var(--font-titre);
    font-style: italic;
    font-size: var(--t-petit);
    color: var(--c-texte-2);
    text-align: center;
}

/* -- Responsive -- */

@media (max-width: 900px) {
    .lo-formats-intro { grid-template-columns: 1fr; }
    .lo-formats-intro-text { order: 1; }
    .lo-formats-visual { order: 2; margin-top: var(--s-lg); }
}

@media (max-width: 767px) {
    .lo-reperes { padding: var(--s-lg) var(--s-md); }
    .lo-reperes-grid { grid-template-columns: repeat(2, 1fr); }
    .lo-format-item { padding: var(--s-md) var(--s-sm); }
    .lo-reperes-grid .lo-format-item:nth-child(3n+1) { border-left: 1px solid var(--c-bord); }
    .lo-reperes-grid .lo-format-item:nth-child(2n+1) { border-left: none; }
    .lo-reperes-grid .lo-format-item:nth-child(-n+3) { border-top: 1px solid var(--c-bord); }
    .lo-reperes-grid .lo-format-item:nth-child(-n+2) { border-top: none; }

    .lo-reperes-grid .lo-format-item:nth-last-child(2),
    .lo-reperes-grid .lo-format-item:nth-last-child(3) {
        border-bottom: 0.5px solid var(--c-or);
    }

    .lo-reperes-grid .lo-format-item:last-child {
        border-top: none;
    }
}

/* -- Section 03 : Les garanties et caractéristiques -- */

.lo-garanties-grid {
    display: grid;
    grid-template-columns: minmax(0, 9fr) minmax(0, 11fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.lo-garanties-visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.lo-garanties-content h2 { margin: 0 0 var(--s-md); }

.lo-garanties-content .lo-eyebrow {
    margin-bottom: var(--s-md);
}

.lo-garanties-intro {
    font-family: var(--font-corps);
    color: var(--c-texte-2);
    line-height: 1.7;
    max-width: 52ch;
    margin: 0 0 var(--s-lg);
}

.lo-garanties-points {
    list-style: none;
    margin: var(--s-lg) 0 0;
    padding: 0;
}

.lo-garanties-point {
    display: flex;
    gap: var(--s-md);
    align-items: flex-start;
}

.lo-garanties-point + .lo-garanties-point {
    margin-top: var(--s-lg);
    padding-top: var(--s-lg);
    border-top: 1px solid var(--c-bord);
}

@media (max-width: 900px) {
    .lo-garanties-grid { grid-template-columns: 1fr; }

    .lo-garanties-content .lo-eyebrow {
        margin-top: var(--s-xs);
    }
}

@media (min-width: 901px) {
    .lo-garanties-visual {
        align-self: stretch;
        min-height: 0;
    }

    .lo-garanties-visual img {
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* -- Section 04 : L'or d'investissement -- */

.lo-invest {
    position: relative;
}

.lo-invest-titre {
    color: var(--c-fond-blanc);
    max-width: 32ch;
    margin: 0 0 var(--s-md);
}

.lo-invest-intro {
    color: rgba(255, 255, 255, .78);
    line-height: 1.7;
    max-width: 60ch;
    margin: 0;
}

.lo-invest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: var(--s-lg);
    padding-top: var(--s-lg);
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.lo-invest-point {
    padding: var(--s-lg) clamp(24px, 3vw, 40px);
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.lo-invest-grid .lo-invest-point:nth-child(-n+2) { border-top: none; padding-top: 0; }
.lo-invest-grid .lo-invest-point:nth-child(2n+1) { padding-left: 0; }
.lo-invest-grid .lo-invest-point:nth-child(2n) { border-left: 1px solid rgba(255, 255, 255, .18); }

.lo-invest-point h3 {
    font-size: var(--t-h3);
    font-weight: 500;
    color: var(--c-or-clair);
    margin: 0 0 var(--s-sm);
}

.lo-invest-point p {
    color: rgba(255, 255, 255, .78);
    line-height: 1.7;
    margin: 0;
}

.lo-invest-cta {
    margin-top: var(--s-lg);
}

@media (max-width: 900px) {
    .lo-invest-grid { grid-template-columns: 1fr; }
    .lo-invest-point { padding: var(--s-lg) 0; }
    .lo-invest-grid .lo-invest-point:nth-child(2n) { border-left: none; }
    .lo-invest-grid .lo-invest-point:nth-child(2) {
        border-top: 1px solid rgba(255, 255, 255, .18);
        padding-top: var(--s-lg);
    }
}

/* -- Section 05 : Acheter ou vendre des lingots d'or -- */

.lo-acheter-vendre .lo-eyebrow {
    margin: 0 0 var(--s-lg);
}

.lo-acheter-vendre-intro {
    color: var(--c-texte-2);
    line-height: 1.7;
    max-width: 60ch;
    margin: 0 0 var(--s-lg);
}

/* ================================================================
   PILIER OR — /or/, /en/gold/
   ================================================================ */

/* -- 01. Hero -- */

/* -- 03. Formes d'or -- */
.or-formes-titre { margin: 0 0 var(--s-sm); }
.or-formes-intro { color: var(--c-texte-2); margin: 0 0 var(--s-xl); }
.or-formes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 5vw, 64px); }
.or-forme-visual { overflow: hidden; margin: 0 0 var(--s-md); }
.or-forme-visual img { display: block; width: 100%; height: auto; }
.or-forme-item h3 { margin: 0 0 var(--s-xs); }
.or-forme-item p { color: var(--c-texte-2); margin: 0 0 var(--s-md); }

@media (max-width: 767px) {
    .or-formes-grid { grid-template-columns: 1fr; gap: var(--s-xl); }
}

/* -- 04. Acheter ou vendre -- */
.or-demarches .editorial-teaser-visual {
    margin: 0;
}
.or-demarches .editorial-teaser-topic .hp-svc-link {
    margin-top: var(--s-sm);
}

@media (max-width: 900px) {
    .or-demarches .editorial-teaser {
        grid-template-columns: 1fr;
        gap: var(--s-lg);
    }
    .or-demarches .editorial-teaser-visual {
        position: relative;
        inset: auto;
        aspect-ratio: 3 / 2;
        margin-inline: calc(-1 * var(--padding-inline));
        -webkit-mask-image: none;
        mask-image: none;
    }
    .or-demarches .editorial-teaser-visual img {
        filter: none;
        transform: scale(1.12);
        transform-origin: center;
    }
    .or-demarches .editorial-teaser-visual::after {
        opacity: 0;
    }
    .or-demarches .editorial-teaser-topics {
        grid-column: auto;
    }
}

/* ================================================================
   HISTOIRE — 2025-2026 L'art du bijou ancien
   ================================================================ */

@media (min-width: 901px) {
    .histoire-horizons-intro {
        top: -80px;
    }

    .histoire-bijou-event .histoire-horizons-event-photo {
        order: 1;
    }
}

.histoire-shop-caption {
    margin-top: var(--s-xs);
    font-size: 13px;
    line-height: 1.4;
    color: var(--c-texte-2);
    text-align: center;
}
.histoire-shop-caption-sep {
    margin: 0 var(--s-xs);
    opacity: 0.5;
}
.histoire-shop-caption a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.histoire-shop-caption a:hover {
    color: var(--c-or);
}
.histoire-shop-caption a:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 2px;
}