/* ============================================================
   main.css — Socle du site
   Palette « Lumière & Or chaud » : fond ivoire, or chaud, terracotta.
   Jetons de conception, réinitialisation, typographie, mise en page,
   navigation, hero, sections, pied de page.
   Mobile first : les media queries élargissent, jamais l'inverse.
   ============================================================ */

/* Les fontes sont chargées par includes/header.php (balises <link>),
   ce qui évite la requête en cascade d'un @import. */

/* ------------------------------------------------------------
   1. Jetons de conception
   ------------------------------------------------------------ */
:root {
    /* Couleurs — fonds */
    --c-bg:            #FDFBF7;   /* Ivoire : fond général */
    --c-surface:       #FFFFFF;   /* Cartes, panneaux */
    --c-sand:          #F6F1E7;   /* Sections alternées, sable clair */
    --c-sand-deep:     #EFE7D6;   /* Aplats plus marqués */

    /* Couleurs — accents */
    --c-gold:          #C8963E;   /* Or chaud, accent principal */
    --c-gold-deep:     #A0742A;   /* Or foncé : texte sur clair */
    --c-gold-soft:     #F2E4C6;   /* Or délavé : fonds de badge */
    --c-terracotta:    #C4643C;   /* Accent secondaire, chaleur */
    --c-terracotta-deep:#A44E2B;
    --c-sage:          #7E8F6B;   /* Vert doux : disponibilité, nature */

    /* Couleurs — texte */
    --c-ink:           #2A2520;   /* Brun profond : titres et corps */
    --c-ink-soft:      #6E6459;   /* Texte secondaire */
    --c-ink-faint:     #9A8F82;   /* Métadonnées, légendes */
    --c-on-dark:       #FBF7F0;   /* Texte sur photo ou aplat sombre */

    /* Couleurs — traits */
    --c-line:          #E8DFCE;   /* Bordures discrètes */
    --c-line-strong:   #D8CBB2;

    /* Typographie */
    --f-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
    --f-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --fs-xs:   0.75rem;
    --fs-sm:   0.875rem;
    --fs-base: 1rem;
    --fs-md:   1.125rem;
    --fs-lg:   1.375rem;
    --fs-xl:   1.75rem;
    --fs-2xl:  2.25rem;
    --fs-3xl:  3rem;
    --fs-4xl:  4rem;

    /* Espacements */
    --sp-xs:  0.5rem;
    --sp-sm:  1rem;
    --sp-md:  1.75rem;
    --sp-lg:  3rem;
    --sp-xl:  5rem;
    --sp-2xl: 7.5rem;

    /* Formes et profondeur */
    --radius-sm:  6px;
    --radius:     12px;
    --radius-lg:  20px;
    --radius-full: 999px;

    --shadow-sm:   0 1px 2px rgba(42, 37, 32, 0.05);
    --shadow:      0 4px 16px rgba(42, 37, 32, 0.07);
    --shadow-lift: 0 16px 40px rgba(42, 37, 32, 0.13);
    --shadow-gold: 0 12px 32px rgba(200, 150, 62, 0.22);

    /* Rythme */
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --t-fast: 0.16s var(--ease);
    --t:      0.3s var(--ease);
    --t-slow: 0.6s var(--ease);

    /* Gabarit */
    --container: 1200px;
    --container-narrow: 760px;
    --nav-h: 76px;
}

/* ------------------------------------------------------------
   2. Réinitialisation
   ------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
    background: var(--c-bg);
    color: var(--c-ink);
    font-family: var(--f-body);
    font-size: var(--fs-base);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
picture,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button { background: none; border: none; cursor: pointer; }

a {
    color: var(--c-gold-deep);
    text-decoration: none;
    transition: color var(--t-fast);
}

a:hover { color: var(--c-terracotta); }

ul, ol { list-style: none; }

:focus-visible {
    outline: 2px solid var(--c-gold);
    outline-offset: 3px;
    border-radius: 3px;
}

::selection {
    background: var(--c-gold-soft);
    color: var(--c-ink);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ------------------------------------------------------------
   3. Typographie
   ------------------------------------------------------------ */
h1, h2, h3, h4 {
    font-family: var(--f-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--c-ink);
    text-wrap: balance;
}

/* Un titre cliquable garde la couleur du titre, pas celle des liens */
h1 a, h2 a, h3 a, h4 a {
    color: inherit;
    transition: color var(--t-fast);
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover { color: var(--c-gold-deep); }

h1 { font-size: clamp(2.25rem, 6vw, var(--fs-4xl)); }
h2 { font-size: clamp(1.875rem, 4.5vw, var(--fs-3xl)); }
h3 { font-size: clamp(1.25rem, 2.5vw, var(--fs-xl)); }
h4 { font-size: var(--fs-md); }

p { text-wrap: pretty; }
p + p { margin-top: 1em; }

strong { font-weight: 600; }

/* Surtitre en petites capitales espacées */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-gold-deep);
}

.eyebrow::before,
.eyebrow.centered::after {
    content: '';
    width: 2rem;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
}

.lead {
    font-size: var(--fs-md);
    line-height: 1.75;
    color: var(--c-ink-soft);
}

.muted { color: var(--c-ink-soft); }
.faint { color: var(--c-ink-faint); font-size: var(--fs-sm); }

/* Corps de texte long : lecture confortable */
.prose {
    max-width: 68ch;
    color: var(--c-ink-soft);
    font-size: var(--fs-md);
    line-height: 1.8;
}

.prose p + p { margin-top: 1.2em; }
.prose strong { color: var(--c-ink); }

/* ------------------------------------------------------------
   4. Mise en page
   ------------------------------------------------------------ */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.container-narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--sp-xl); }
.section-sm { padding-block: var(--sp-lg); }
.section-lg { padding-block: var(--sp-2xl); }

.section-sand { background: var(--c-sand); }
.section-white { background: var(--c-surface); }

/* Filet doré avec losange central, utilisé comme séparateur */
.rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-block: var(--sp-md);
    color: var(--c-gold);
}

.rule::before,
.rule::after {
    content: '';
    height: 1px;
    width: min(6rem, 18vw);
    background: linear-gradient(90deg, transparent, currentColor);
    opacity: 0.5;
}

.rule::after { background: linear-gradient(90deg, currentColor, transparent); }

.rule span { font-size: 0.6rem; }

/* En-tête de section */
.section-head {
    max-width: 44rem;
    margin-bottom: var(--sp-lg);
}

.section-head.centered {
    margin-inline: auto;
    text-align: center;
}

.section-head h2 { margin-top: 0.75rem; }
.section-head .lead { margin-top: 0.85rem; }

/* En-tête de page (bandeau haut de page intérieure) */
.page-head {
    position: relative;
    padding-block: calc(var(--sp-lg) + 1rem) var(--sp-lg);
    background:
        radial-gradient(120% 100% at 50% 0%, var(--c-gold-soft) 0%, transparent 62%),
        var(--c-bg);
    text-align: center;
    border-bottom: 1px solid var(--c-line);
}

.page-head h1 { margin-top: 0.75rem; }

.page-head .lead {
    max-width: 46rem;
    margin: 1rem auto 0;
}

/* Grilles */
.grid { display: grid; gap: var(--sp-md); }

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); gap: var(--sp-sm); }

@media (min-width: 640px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); gap: var(--sp-md); }
}

/* Deux colonnes texte + image */
.split {
    display: grid;
    gap: var(--sp-lg);
    align-items: center;
}

@media (min-width: 900px) {
    .split { grid-template-columns: 1fr 1fr; gap: var(--sp-xl); }
    .split.wide-text { grid-template-columns: 1.15fr 0.85fr; }
    .split.reverse > :first-child { order: 2; }
}

/* ------------------------------------------------------------
   5. Boutons
   ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    padding: 0.9em 1.9em;
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
    cursor: pointer;
    transition: transform var(--t-fast), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
    background: linear-gradient(135deg, var(--c-gold) 0%, var(--c-gold-deep) 100%);
    color: #fff;
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    color: #fff;
    box-shadow: 0 16px 40px rgba(200, 150, 62, 0.34);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--c-line-strong);
    background: transparent;
    color: var(--c-ink);
}

.btn-outline:hover {
    border-color: var(--c-gold);
    background: var(--c-gold-soft);
    color: var(--c-gold-deep);
}

.btn-ghost {
    padding-inline: 0.5em;
    color: var(--c-gold-deep);
}

.btn-ghost::after {
    content: '→';
    transition: transform var(--t-fast);
}

.btn-ghost:hover::after { transform: translateX(4px); }

.btn-on-dark {
    border: 1px solid rgba(251, 247, 240, 0.55);
    color: var(--c-on-dark);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
}

.btn-on-dark:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--c-on-dark);
    color: #fff;
}

.btn-sm { padding: 0.65em 1.3em; font-size: var(--fs-xs); }
.btn-lg { padding: 1.05em 2.4em; font-size: var(--fs-base); }
.btn-block { display: flex; width: 100%; }

/* Bouton courriel — unique canal de contact du site */
.btn-mail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    padding: 0.9em 1.9em;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--c-gold) 0%, var(--c-gold-deep) 100%);
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: 600;
    box-shadow: var(--shadow-gold);
    transition: transform var(--t-fast), box-shadow var(--t), background var(--t);
}

.btn-mail:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(200, 150, 62, 0.34);
}

.btn-mail svg { flex-shrink: 0; }

.btn-mail.btn-sm { padding: 0.65em 1.3em; font-size: var(--fs-xs); }
.btn-mail.btn-lg { padding: 1.05em 2.4em; font-size: var(--fs-base); }
.btn-mail.btn-block { display: flex; width: 100%; }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: var(--sp-md);
}

.btn-row.centered { justify-content: center; }

/* ------------------------------------------------------------
   6. Navigation
   ------------------------------------------------------------ */

/* Lien d'évitement : invisible jusqu'à la première tabulation */
.skip-link {
    position: absolute;
    top: 0;
    left: 1rem;
    z-index: 200;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--c-gold-deep);
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: 600;
    transform: translateY(-120%);
    transition: transform var(--t-fast);
}

.skip-link:focus {
    transform: translateY(0);
    color: #fff;
}

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(253, 251, 247, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background var(--t), border-color var(--t), box-shadow var(--t);
}

.nav.scrolled {
    background: rgba(253, 251, 247, 0.96);
    border-bottom-color: var(--c-line);
    box-shadow: var(--shadow-sm);
}

/* Tiroir ouvert : le verrou remet le défilement à zéro, donc la classe
   « scrolled » tombe. On garde malgré tout un trait entre la barre et
   le tiroir, faute de quoi les deux ivoires se confondent. */
body.nav-open .nav {
    background: var(--c-bg);
    border-bottom-color: var(--c-line);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-sm);
    height: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo img {
    height: 46px;
    width: auto;
    transition: transform var(--t);
}

.nav-logo:hover img { transform: scale(1.04); }

/* Liens : tiroir plein écran sur mobile, ligne horizontale au-delà */
.nav-links {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    /* La marge basse tient compte de la barre gestuelle des téléphones sans bouton */
    padding: var(--sp-md) 1.5rem calc(var(--sp-lg) + env(safe-area-inset-bottom, 0px));
    background: var(--c-bg);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--t), visibility var(--t);
}

.nav-links.open {
    transform: translateX(0);
    visibility: visible;
}

.nav-links > a {
    display: flex;
    align-items: center;
    min-height: 3.25rem;              /* cible tactile confortable */
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--c-line);
    font-family: var(--f-display);
    font-size: var(--fs-lg);
    color: var(--c-ink);
}

.nav-links > a:active { color: var(--c-gold-deep); }
.nav-links > a.active { color: var(--c-gold-deep); }

.nav-hamburger {
    display: grid;
    place-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-right: -0.5rem;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--c-ink);
    border-radius: 2px;
    transition: transform var(--t), opacity var(--t-fast);
}

.nav-hamburger[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Sélecteur de langue — pastilles tactiles en bas du tiroir sur mobile */
.lang-switcher {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: auto;                /* repoussé au bas du tiroir s'il reste de la place */
    padding-top: var(--sp-md);
}

.lang-switcher a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.9rem;
    min-height: 2.75rem;             /* ≈ 44 px : minimum tactile recommandé */
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    background: var(--c-sand);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--c-ink-faint);
    transition: color var(--t-fast), background var(--t-fast);
}

.lang-switcher a:hover { color: var(--c-gold-deep); background: var(--c-gold-soft); }
.lang-switcher a.active { color: var(--c-ink); background: var(--c-sand-deep); }

@media (min-width: 1080px) {
    .nav-hamburger { display: none; }

    .nav-links {
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 0.15rem;
        padding: 0;
        background: none;
        overflow: visible;
        transform: none;
        visibility: visible;
    }

    .nav-links > a {
        position: relative;
        min-height: 0;
        padding: 0.5rem 0.7rem;
        border: 0;
        font-family: var(--f-body);
        font-size: var(--fs-sm);
        font-weight: 500;
        color: var(--c-ink-soft);
        white-space: nowrap;
    }

    .nav-links > a::after {
        content: '';
        position: absolute;
        left: 0.7rem;
        right: 0.7rem;
        bottom: 0.15rem;
        height: 1px;
        background: var(--c-gold);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform var(--t);
    }

    .nav-links > a:hover { color: var(--c-ink); }
    .nav-links > a:hover::after,
    .nav-links > a.active::after { transform: scaleX(1); }
    .nav-links > a.active { color: var(--c-gold-deep); font-weight: 600; }

    .lang-switcher {
        margin-top: 0;
        margin-left: 0.5rem;
        padding-top: 0;
        padding-left: 0.7rem;
        border-left: 1px solid var(--c-line);
        gap: 0.05rem;
    }

    /* Cinq langues : on resserre pour que la barre tienne sur une ligne */
    .lang-switcher a {
        min-width: 0;
        min-height: 0;
        padding: 0.28rem 0.38rem;
        background: none;
        letter-spacing: 0.04em;
    }

    .lang-switcher a.active { background: var(--c-sand-deep); }
}

/* Verrou de défilement pendant que le tiroir est ouvert.
   « position: fixed » est le seul verrou que Safari iOS respecte ;
   le décalage haut est posé par main.js pour ne pas perdre la position. */
body.nav-open {
    position: fixed;
    inset-inline: 0;
    width: 100%;
    overflow: hidden;
}

.nav-spacer { height: var(--nav-h); }

/* ------------------------------------------------------------
   7. Hero
   ------------------------------------------------------------ */
.hero {
    position: relative;
    display: grid;
    align-items: center;
    min-height: min(88vh, 780px);
    padding-block: var(--sp-xl);
    overflow: hidden;
    background: var(--c-sand);
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% 28%;
}

/* Voile clair : la photo reste lisible, le texte aussi */
.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(253, 251, 247, 0.97) 0%, rgba(253, 251, 247, 0.88) 34%, rgba(253, 251, 247, 0.35) 62%, rgba(253, 251, 247, 0.1) 100%),
        linear-gradient(0deg, rgba(246, 241, 231, 0.55) 0%, transparent 45%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 40rem;
}

.hero h1 {
    margin-top: 1rem;
    font-weight: 500;
    line-height: 1.08;
}

.hero .lead {
    max-width: 34rem;
    margin-top: 1.25rem;
    font-size: clamp(1rem, 2vw, var(--fs-lg));
}

/* Bandeau de chiffres sous le hero */
.stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-md);
    padding-block: var(--sp-lg);
    border-top: 1px solid var(--c-line);
    text-align: center;
}

@media (min-width: 700px) {
    .stats { grid-template-columns: repeat(3, 1fr); }
    .stats > * + * { border-left: 1px solid var(--c-line); }
}

.stat-value {
    display: block;
    font-family: var(--f-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 500;
    line-height: 1;
    color: var(--c-gold);
}

.stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: var(--fs-sm);
    color: var(--c-ink-soft);
}

/* ------------------------------------------------------------
   8. Bandeau d'appel
   ------------------------------------------------------------ */
.cta-band {
    position: relative;
    padding-block: var(--sp-xl);
    overflow: hidden;
    text-align: center;
    color: var(--c-on-dark);
}

.cta-band-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-band-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-band-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(42, 37, 32, 0.62) 0%, rgba(42, 37, 32, 0.78) 100%);
}

.cta-band > .container { position: relative; z-index: 1; }

.cta-band h2 { color: var(--c-on-dark); font-weight: 500; }

.cta-band .lead {
    max-width: 38rem;
    margin: 1rem auto 0;
    color: rgba(251, 247, 240, 0.85);
}

.cta-band .eyebrow { color: var(--c-gold-soft); }

/* ------------------------------------------------------------
   9. Pied de page
   ------------------------------------------------------------ */
.footer {
    padding-top: var(--sp-xl);
    background: var(--c-sand);
    border-top: 1px solid var(--c-line);
}

.footer-grid {
    display: grid;
    gap: var(--sp-lg);
    padding-bottom: var(--sp-lg);
}

@media (min-width: 760px) {
    .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr; gap: var(--sp-xl); }
}

.footer-brand img {
    height: 64px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-brand p {
    max-width: 30rem;
    font-size: var(--fs-sm);
    color: var(--c-ink-soft);
}

.footer h4 {
    margin-bottom: 1rem;
    font-family: var(--f-body);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-ink-faint);
}

.footer-links-list li + li { margin-top: 0.5rem; }

.footer-links-list a,
.footer-contact-info a {
    font-size: var(--fs-sm);
    color: var(--c-ink-soft);
}

.footer-links-list a:hover,
.footer-contact-info a:hover { color: var(--c-gold-deep); }

.footer-contact-info p { font-size: var(--fs-sm); color: var(--c-ink-soft); }
.footer-contact-info p + p { margin-top: 0.65rem; }

.footer-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-social a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--c-line-strong);
    border-radius: 50%;
    color: var(--c-ink-soft);
    transition: all var(--t-fast);
}

.footer-social a:hover {
    border-color: var(--c-gold);
    background: var(--c-gold);
    color: #fff;
    transform: translateY(-2px);
}

.footer-disclaimer {
    padding-top: var(--sp-sm);
    border-top: 1px solid var(--c-line);
    font-size: var(--fs-xs);
    line-height: 1.6;
    color: var(--c-ink-faint);
}

.footer-disclaimer + .footer-bottom { border-top: 0; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding-block: var(--sp-sm) var(--sp-md);
    border-top: 1px solid var(--c-line);
    font-size: var(--fs-xs);
    color: var(--c-ink-faint);
}

/* ------------------------------------------------------------
   10. Utilitaires
   ------------------------------------------------------------ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mb-md { margin-bottom: var(--sp-md); }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Apparition douce au défilement.
   Le contenu est visible par défaut : il n'est masqué que si le script
   d'en-tête a confirmé pouvoir l'animer (classe has-reveal sur <html>).
   Sans JavaScript, ou si le script échoue, rien ne disparaît. */
.has-reveal .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--t-slow), transform var(--t-slow);
}

.has-reveal .reveal.visible {
    opacity: 1;
    transform: none;
}

/* Cadre photo avec liseré doré décalé */
.framed {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lift);
}

.framed img { width: 100%; height: 100%; object-fit: cover; }

.framed-offset { position: relative; }

.framed-offset::before {
    content: '';
    position: absolute;
    inset: 1.25rem -1.25rem -1.25rem 1.25rem;
    border: 1px solid var(--c-gold);
    border-radius: var(--radius-lg);
    opacity: 0.45;
    pointer-events: none;
}

@media (max-width: 640px) {
    .framed-offset::before { inset: 0.75rem -0.75rem -0.75rem 0.75rem; }
}

/* État vide */
.empty-state {
    padding: var(--sp-xl) var(--sp-sm);
    text-align: center;
    color: var(--c-ink-soft);
}

.empty-state .rule { margin-bottom: var(--sp-sm); }
