/* ═══════════════════════════════════════════════════════════════
   SAGA FAMILIALE — Site promotionnel
   Palette : crème chaud / bleu nuit / or doux
   ═══════════════════════════════════════════════════════════════ */

/* ─── CUSTOM PROPERTIES ──────────────────────────────────────── */
:root {
    /* Couleurs */
    --clr-cream: #FAF8F5;
    --clr-cream-dark: #F2EDE6;
    --clr-navy: #1E2D40;
    --clr-navy-light: #2C4160;
    --clr-gold: #C49A3C;
    --clr-gold-light: #E8C87A;
    --clr-text: #2C2C2C;
    --clr-text-muted: #6B6B6B;
    --clr-border: #E0D9CE;
    --clr-white: #FFFFFF;

    /* Typographie */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;

    /* Espacement */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Rayons */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(30, 45, 64, .08);
    --shadow-md: 0 8px 32px rgba(30, 45, 64, .12);
    --shadow-lg: 0 20px 60px rgba(30, 45, 64, .16);

    /* Transitions */
    --transition: 250ms ease;

    /* Layout */
    --container-max: 1200px;
    --nav-height: 72px;
}

/* ─── RESET & BASE ───────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    color: var(--clr-text);
    background: var(--clr-cream);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul[role="list"] {
    list-style: none;
}

/* ─── LAYOUT HELPERS ─────────────────────────────────────────── */
.container {
    width: min(100%, var(--container-max));
    margin-inline: auto;
    padding-inline: var(--space-md);
}

.section {
    padding-block: var(--space-2xl);
}

/* ─── REVEAL ANIMATION ───────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ─── NAVIGATION ─────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
    height: var(--nav-height);
}

.site-header.scrolled {
    border-color: var(--clr-border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    /* width: min(100%, var(--container-max)); */
    margin-inline: auto;
    padding-inline: var(--space-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--clr-navy);
    white-space: nowrap;
}

.logo-icon {
    font-size: 1.4rem;
}

.logo-text {
    letter-spacing: -0.01em;
}

.logo-text strong {
    color: var(--clr-gold);
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clr-text);
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--clr-gold);
}

.btn-nav {
    display: inline-block;
    padding: 0.5rem 1.1rem;
    background: var(--clr-navy);
    color: var(--clr-white) !important;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: background var(--transition), transform var(--transition);
}

.btn-nav:hover {
    background: var(--clr-navy-light);
    transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--clr-navy);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background: var(--clr-gold);
    color: var(--clr-navy);
}

.btn-primary:hover {
    background: #B8882D;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 154, 60, .35);
}

.btn-ghost {
    background: transparent;
    color: var(--clr-navy);
    border: 2px solid var(--clr-navy);
}

.btn-ghost:hover {
    background: var(--clr-navy);
    color: var(--clr-white);
}

.btn-outline {
    background: transparent;
    color: var(--clr-navy);
    border: 2px solid var(--clr-navy);
}

.btn-outline:hover {
    background: var(--clr-navy);
    color: var(--clr-white);
}

.btn-lg {
    padding: 1.1rem 2.25rem;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
}

/* ─── SECTION HEADER ─────────────────────────────────────────── */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--space-xl);
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-gold);
    margin-bottom: var(--space-sm);
}

.baseline-accueil {
    display: inline-block;
    font-weight: 600;
    color: var(--clr-gold);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--clr-navy);
}

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: calc(100svh - var(--nav-height));
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-md) var(--space-md);
    overflow: hidden;
    background: linear-gradient(135deg, #1E2D40 0%, #2C4160 100%);
    width: min(100%, var(--container-max));
    margin-inline: auto;
    /* border-radius: 0 0 var(--radius-lg) var(--radius-lg);*/
    max-width: 100%;
}

/* Full width hero */
.hero {
    width: 100%;
    /* border-radius: 0 0 var(--radius-lg) var(--radius-lg); */
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    margin-top: -6rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    padding-left: clamp(1rem, 4vw, 4rem);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(196, 154, 60, .2);
    border: 1px solid rgba(196, 154, 60, .4);
    color: var(--clr-gold-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
}

.hero-promo-video-btn {
    width: 0.62em;
    height: 0.62em;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(196, 154, 60, .5);
    color: var(--clr-gold-light);
    font-size: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    vertical-align: middle;
    margin-left: 0.25em;
    transition: transform .2s ease, background .2s ease;
}

.hero-promo-video-btn span {
    font-size: 0.32em;
}

.hero-promo-video-btn:hover {
    background: rgba(196, 154, 60, .25);
    transform: scale(1.08);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.50;
    color: var(--clr-white);
}

.hero-title em {
    font-style: italic;
    color: var(--clr-gold-light);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, .75);
    max-width: 520px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
}

.hero-actions .btn-ghost {
    color: var(--clr-white);
    border-color: rgba(255, 255, 255, .5);
}

.hero-actions .btn-ghost:hover {
    background: rgba(255, 255, 255, .15);
    color: var(--clr-white);
}

.hero-reassurance {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, .5);
}

/* ─── HERO VISUAL (timeline preview) ─────────────────────────── */
.hero-visual {
    padding-right: clamp(1rem, 4vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-preview {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: start;
    width: 100%;
    max-width: 640px;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.tl-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tl-axis {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-top: 28px;
}

.tl-axis-line {
    flex: 1;
    width: 3px;
    background: linear-gradient(to bottom, var(--clr-gold), rgba(196, 154, 60, .2));
    border-radius: 3px;
    min-height: 220px;
}

.tl-axis-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--clr-gold);
    margin: 12px 0;
    box-shadow: 0 0 0 4px rgba(196, 154, 60, .3);
}

.tl-card {
    background: rgba(255, 255, 255, .95);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-family: var(--font-sans);
    transition: transform .25s ease, box-shadow .25s ease;
}

.tl-card--memory {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    cursor: pointer;
}

.tl-card--memory:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .28);
}

.tl-card--memory:focus-visible {
    outline: 2px solid var(--clr-gold-light, #f2c86d);
    outline-offset: 2px;
}

.tl-card-img {
    /*height: 92px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
}

.tl-card-img--sand {
    background: linear-gradient(135deg, #e8d5b7, #c9a88d);
}

.tl-card-img--cream {
    background: linear-gradient(135deg, #f5e6d3, #e8c9a0);
}

.tl-card-img--blue {
    background: linear-gradient(135deg, #b7cfe8, #8da9c9);
}

.tl-icon {
    width: 34px;
    height: 34px;
    color: var(--clr-navy);
    flex-shrink: 0;
}

.tl-icon--tag {
    width: 14px;
    height: 14px;
    color: var(--clr-gold-light);
    vertical-align: -2px;
    margin-right: 4px;
}

.sf-track-pixel {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.tl-card-body {
    padding: 14px 16px;
}

.tl-card-year {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--clr-gold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tl-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--clr-navy);
    line-height: 1.3;
    margin-top: 4px;
}

.tl-card-loc {
    font-size: 0.78rem;
    color: var(--clr-text-muted);
    margin-top: 4px;
}

.tl-card--history {
    padding: 16px;
    background: rgba(30, 45, 64, .85);
    border: 1px solid rgba(255, 255, 255, .14);
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: transform .25s ease, background .25s ease;
    cursor: pointer;
}

.tl-card--history:focus-visible {
    outline: 2px solid var(--clr-gold-light, #f2c86d);
    outline-offset: 2px;
}

.tl-card--history:hover {
    transform: translateY(-3px) scale(1.02);
    background: rgba(30, 45, 64, .95);
}

.tl-card--history .tl-card-year {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, .55);
}

.tl-card--history .tl-card-title {
    font-size: 0.88rem;
    color: var(--clr-white);
    margin-top: 2px;
}

.tl-card-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--clr-gold-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tl-tuto-cta-wrap {
    grid-column: 1 / -1;
    margin-top: 4px;
}

.tl-tuto-cta {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .3);
    background: linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .08));
    color: var(--clr-white);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.tl-tuto-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
    background: linear-gradient(135deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, .11));
}

.tl-tuto-cta strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.2;
}

.tl-tuto-cta small {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, .8);
    margin-top: 2px;
}

.tl-tuto-cta-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(196, 154, 60, .25);
    border: 1px solid rgba(255, 255, 255, .2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--clr-gold-light);
    flex-shrink: 0;
}

.tuto-trigger-mobile {
    display: none;
}

.tuto-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.tuto-lightbox.is-open {
    display: block;
}

.tuto-lightbox[hidden] {
    display: none;
}

.tuto-lightbox__overlay {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(11, 17, 26, .7);
    backdrop-filter: blur(2px);
    cursor: default;
}

.tuto-lightbox__panel {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(840px, 92vw);
    background: var(--clr-white);
    border-radius: 18px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, .4);
    padding: 20px;
}

.tuto-lightbox__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    cursor: grab;
    user-select: none;
}

.tuto-lightbox__header h2 {
    margin: 0;
    color: var(--clr-navy);
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
}

.tuto-lightbox__hint {
    margin: 4px 0 0;
    font-size: 0.76rem;
    color: var(--clr-text-muted);
}

.tuto-lightbox__close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--clr-border);
    background: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--clr-navy);
    cursor: pointer;
}

.tuto-lightbox.is-dragging .tuto-lightbox__header {
    cursor: grabbing;
}

.tuto-lightbox__subtitle {
    margin: 8px 0 14px;
    font-size: 0.92rem;
    color: var(--clr-text-muted);
}

.tuto-lightbox video {
    width: 100%;
    border-radius: 12px;
    display: block;
    background: #000;
}

/* Vidéo promo au format portrait (9:16) : on limite la hauteur plutôt que la largeur */
#promo-video-lightbox .tuto-lightbox__panel {
    width: min(380px, 92vw);
}

#promo-video-lightbox video {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 75vh;
    margin: 0 auto;
}

/* ─── LIGHTBOX EXEMPLE DE TIMELINE (démo) ────────────────────── */
.sf-demo-lightbox {
    position: fixed !important;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1200 !important;
    --sf-blue: #2563eb;
    --sf-amber: #d97706;
    --sf-slate: #475569;
    --sf-spine: #94a3b8;
}

.sf-demo-lightbox.is-open {
    display: block;
}

.sf-demo-lightbox[hidden] {
    display: none;
}

.sf-demo-lightbox__overlay {
    position: absolute !important;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border: none;
    background: rgba(11, 17, 26, .75);
    backdrop-filter: blur(2px);
    cursor: default;
}

.sf-demo-lightbox__panel {
    position: fixed !important;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(1100px, 94vw);
    max-height: 90vh;
    overflow-y: auto;
    background: #f1f5f9;
    border-radius: 18px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, .4);
    padding: 20px;
}

.sf-demo-lightbox__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.sf-demo-badge {
    display: inline-block;
    background: #dbeafe;
    color: var(--sf-blue);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .2rem .6rem;
    border-radius: 1rem;
    margin-bottom: 6px;
}

.sf-demo-lightbox__header h2 {
    margin: 0;
    color: #1e293b;
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
}

.sf-demo-lightbox__close {
    width: 36px;
    height: 36px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    color: #1e293b;
    cursor: pointer;
    flex-shrink: 0;
}

.sf-demo-header-highlight {
    background: #fffbeb;
    border-left: 3px solid var(--sf-amber);
    color: #78350f;
    font-family: var(--font-serif);
    font-size: clamp(.95rem, 1.6vw, 1.2rem);
    font-style: italic;
    line-height: 1.5;
    padding: .7rem 1rem;
    border-radius: 8px;
    margin: 0 0 16px;
}

.sf-demo-header-highlight strong {
    font-style: normal;
    font-weight: 700;
    color: var(--sf-amber);
}

.sf-demo-mobile-decades {
    display: none;
    gap: .5rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    margin-bottom: .75rem;
}

.sf-demo-decade-btn {
    flex-shrink: 0;
    padding: .5rem 1rem;
    border-radius: 2rem;
    border: 2px solid #cbd5e1;
    background: #fff;
    color: var(--sf-slate);
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
}

.sf-demo-decade-btn.active {
    background: var(--sf-blue);
    border-color: var(--sf-blue);
    color: #fff;
}

.sf-demo-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.sf-demo-sidebar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    padding: 1rem .85rem;
}

.sf-demo-sidebar-section {
    margin-bottom: 1.25rem;
}

.sf-demo-sidebar-section:last-child {
    margin-bottom: 0;
}

.sf-demo-sidebar-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: .5rem;
}

.sf-demo-search {
    display: flex;
    align-items: center;
    gap: .4rem;
    border: 1px solid #cbd5e1;
    border-radius: .4rem;
    padding: .35rem .6rem;
}

.sf-demo-search input {
    border: none;
    outline: none;
    font-size: .8rem;
    width: 100%;
    background: transparent;
    color: #94a3b8;
}

.sf-demo-decade-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: .35rem .5rem;
    border-radius: .4rem;
    border: none;
    background: transparent;
    font-size: .82rem;
    font-weight: 500;
    color: var(--sf-slate);
    cursor: pointer;
    margin-bottom: .2rem;
}

.sf-demo-decade-link:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.sf-demo-decade-link.active {
    background: var(--sf-blue);
    color: #fff;
}

.sf-demo-sidebar hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 1rem 0;
}

.sf-demo-sidebar-section small {
    display: block;
    font-size: .78rem;
    color: var(--sf-slate);
    margin-bottom: .3rem;
}

.sf-demo-col-headers {
    display: grid;
    grid-template-columns: 1fr 32px 1fr;
    margin-bottom: 1rem;
}

.sf-demo-pill {
    justify-self: center;
    font-weight: 700;
    font-size: .75rem;
    padding: .35rem 1rem;
    border-radius: 2rem;
    white-space: nowrap;
}

.sf-demo-pill--souvenirs {
    background: #dbeafe;
    color: var(--sf-blue);
}

.sf-demo-pill--histoire {
    background: #fef3c7;
    color: var(--sf-amber);
}

.sf-demo-year-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0 1.25rem;
}

.sf-demo-year-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--sf-spine), transparent);
}

.sf-demo-year-badge {
    position: relative;
    display: inline-block;
    background: var(--sf-slate);
    color: #fff;
    padding: .25rem 1.4rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: .04em;
}

.sf-demo-tl-row {
    display: grid;
    grid-template-columns: 1fr 32px 1fr;
    align-items: start;
    gap: 0;
}

.sf-demo-spine {
    display: flex;
    justify-content: center;
    padding-top: 1.1rem;
}

.sf-demo-spine-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--sf-spine);
}

.sf-demo-card {
    background: #fff;
    border-radius: .75rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .07);
    border: 1px solid #e2e8f0;
}

.sf-demo-card--souvenir {
    margin-right: 1.25rem;
    border-left: 3px solid var(--sf-blue);
}

.sf-demo-card--souvenir .sf-demo-card-date {
    color: var(--sf-blue);
}

.sf-demo-card--histoire {
    margin-left: 1.25rem;
    border-left: 3px solid var(--sf-amber);
}

.sf-demo-card--histoire .sf-demo-card-date {
    color: var(--sf-amber);
}

.sf-demo-card-date {
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: .4rem;
}

.sf-demo-card h3 {
    font-size: .92rem;
    font-weight: 600;
    margin: 0 0 .4rem;
    color: #1e293b;
}

.sf-demo-card p {
    font-size: .82rem;
    color: var(--sf-slate);
    margin: 0 0 .5rem;
    line-height: 1.45;
}

.sf-demo-thumb {
    width: 100%;
    height: 150px;
    border-radius: .5rem;
    margin-bottom: .75rem;
    overflow: hidden;
    background: #f1f5f9;
}

.sf-demo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sf-demo-thumb--contain img {
    object-fit: contain;
    padding: .5rem;
}

.sf-demo-badge-loc {
    display: inline-block;
    background: #f1f5f9;
    color: var(--sf-slate);
    font-size: .7rem;
    padding: .12rem .5rem;
    border-radius: 1rem;
}

.sf-demo-footer-note {
    text-align: center;
    font-size: .75rem;
    color: #94a3b8;
    margin: 1.25rem 0 0;
}

@media (max-width: 860px) {
    .sf-demo-lightbox__panel {
        width: 96vw;
        max-height: 94vh;
        padding: 14px;
    }

    .sf-demo-mobile-decades {
        display: flex;
    }

    .sf-demo-layout {
        grid-template-columns: 1fr;
    }

    .sf-demo-sidebar {
        display: none;
    }

    .sf-demo-tl-row {
        grid-template-columns: 1fr;
    }

    .sf-demo-spine {
        display: none;
    }

    .sf-demo-card--souvenir,
    .sf-demo-card--histoire {
        margin: 0 0 .75rem;
    }

    .sf-demo-col-headers {
        grid-template-columns: 1fr;
        gap: .5rem;
        justify-items: center;
    }
}

/* ─── STATS BAND ─────────────────────────────────────────────── */
.stats-band {
    background: var(--clr-navy);
    padding-block: var(--space-lg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--clr-gold-light);
}

.stat-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, .55);
}

/* ─── YEARS PROMO ───────────────────────────────────────────── */
.years-promo {
    background: var(--clr-cream-dark);
}

.years-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.year-card {
    background: var(--clr-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-lg);
    transition: transform var(--transition), box-shadow var(--transition);
}

.year-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.year-card h3 {
    font-family: var(--font-serif);
    color: var(--clr-navy);
    margin-bottom: 0.35rem;
    font-size: 1.35rem;
}

.year-card p {
    color: var(--clr-text-muted);
    margin-bottom: 0.85rem;
    line-height: 1.6;
}

.year-card a {
    color: var(--clr-gold);
    font-weight: 600;
    text-decoration: none;
}

.year-card a:hover {
    text-decoration: underline;
}

@media (max-width: 980px) {
    .years-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── FEATURES ───────────────────────────────────────────────── */
.features {
    background: var(--clr-cream);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.feature-card {
    background: var(--clr-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.feature-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--clr-navy);
    margin-bottom: var(--space-xs);
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    line-height: 1.65;
}

/* ─── HOW IT WORKS ───────────────────────────────────────────── */
.how-it-works {
    background: var(--clr-cream-dark);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: var(--space-md);
    align-items: start;
    margin-bottom: var(--space-xl);
}

.steps-connector {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--clr-gold), rgba(196, 154, 60, .2));
    border-radius: 2px;
    align-self: center;
    margin-top: -2rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--clr-navy);
    color: var(--clr-gold-light);
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 0 6px rgba(30, 45, 64, .12);
}

.step-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--clr-navy);
    margin-bottom: var(--space-xs);
}

.step-desc {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    line-height: 1.65;
}

.how-cta {
    text-align: center;
}

/* ─── FOR WHOM ────────────────────────────────────────────────── */
.for-whom {
    background: var(--clr-cream);
}

.personas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.persona-card {
    background: var(--clr-white);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    border: 1px solid var(--clr-border);
    transition: box-shadow var(--transition), transform var(--transition);
}

.persona-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.persona-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
    background: linear-gradient(135deg, #f5e6d3, #e8c9a0);
}

.persona-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--clr-navy);
    margin-bottom: var(--space-xs);
}

.persona-desc {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    line-height: 1.65;
}

/* ─── TESTIMONIAL ────────────────────────────────────────────── */
.testimonial-band {
    background: var(--clr-navy);
    padding-block: var(--space-xl);
}

.testimonial {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-text {
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 2.5vw, 1.55rem);
    font-style: italic;
    color: rgba(255, 255, 255, .9);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.testimonial-author {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, .45);
    letter-spacing: 0.03em;
}

/* ─── PRICING ─────────────────────────────────────────────────── */
.pricing {
    background: var(--clr-cream-dark);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    align-items: stretch;
    margin-bottom: var(--space-md);
}

.pricing-card {
    background: var(--clr-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    position: relative;
    transition: box-shadow var(--transition), transform var(--transition);
}

.pricing-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.pricing-card--featured {
    background: var(--clr-navy);
    border-color: var(--clr-navy);
    transform: scale(1.03);
}

.pricing-card--featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.pricing-card--featured .pricing-plan,
.pricing-card--featured .pricing-price,
.pricing-card--featured .pricing-tagline,
.pricing-card--featured .pricing-features li {
    color: var(--clr-white);
}

.pricing-card--featured .pricing-features li {
    color: rgba(255, 255, 255, .8);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--clr-gold);
    color: var(--clr-navy);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.9rem;
    border-radius: 50px;
    white-space: nowrap;
}

.pricing-plan {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--clr-navy);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-amount {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--clr-navy);
}

.price-amount-white {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--clr-white);
}

.price-period {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
}

.price-period-white {
    font-size: 0.85rem;
    color: var(--clr-text-white);
}

.pricing-tagline {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--clr-border);
}

.pricing-card--featured .pricing-tagline {
    border-color: rgba(255, 255, 255, .15);
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    flex: 1;
}

.pricing-features li {
    font-size: 0.875rem;
    color: var(--clr-text-muted);
    padding: 0.15rem 0;
}

.pricing-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

/* ─── FAQ ─────────────────────────────────────────────────────── */
.faq {
    background: var(--clr-cream);
}

.faq-container {
    max-width: 760px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--clr-border);
}

.faq-item {
    border-bottom: 1px solid var(--clr-border);
}

.faq-question {
    margin: 0;
}

.faq-btn {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-navy);
    padding: var(--space-md) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    transition: color var(--transition);
}

.faq-btn::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--clr-gold);
    flex-shrink: 0;
    transition: transform var(--transition);
}

.faq-btn[aria-expanded="true"]::after {
    transform: rotate(45deg);
}

.faq-btn:hover {
    color: var(--clr-gold);
}

.faq-answer {
    font-size: 0.92rem;
    color: var(--clr-text-muted);
    line-height: 1.7;
    padding-bottom: var(--space-md);
    margin: 0;
}

.faq-answer[hidden] {
    display: none;
}

/* ─── CTA BAND ───────────────────────────────────────────────── */
.cta-band {
    background: linear-gradient(135deg, #1E2D40, #2C4160);
    padding-block: var(--space-2xl);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--clr-white);
    line-height: 1.25;
}

.cta-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, .65);
    max-width: 480px;
}

.cta-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, .35);
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
    background: var(--clr-navy);
    color: rgba(255, 255, 255, .7);
    padding-block: var(--space-xl) var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    margin-bottom: var(--space-md);
}

.footer-logo .logo-text {
    color: var(--clr-white);
}

.footer-tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, .45);
    margin-top: var(--space-xs);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.footer-nav-title {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, .4);
    margin-bottom: var(--space-sm);
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li+li {
    margin-top: 6px;
}

.footer-nav a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, .65);
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--clr-gold-light);
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, .3);
}

.footer-bottom a {
    color: rgba(255, 255, 255, .5);
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: var(--clr-gold-light);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: var(--space-xl) var(--space-md);
    }

    .hero-content {
        align-items: center;
        padding: 0;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-visual {
        display: none;
    }

    .tuto-trigger-mobile {
        display: inline-flex;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-inline: auto;
        margin-bottom: var(--space-xl);
    }

    .steps-connector {
        width: 60px;
        height: 2px;
        background: linear-gradient(to right, var(--clr-gold), rgba(196, 154, 60, .2));
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .personas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-inline: auto;
    }

    .pricing-card--featured {
        transform: none;
    }

    .pricing-card--featured:hover {
        transform: translateY(-4px);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --space-2xl: 4rem;
        --space-xl: 2.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(250, 248, 245, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: var(--space-md);
        gap: var(--space-sm);
        border-bottom: 1px solid var(--clr-border);
        box-shadow: var(--shadow-md);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .personas-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-nav {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .tuto-lightbox__panel {
        width: calc(100vw - 1rem);
        left: 0.5rem;
        right: 0.5rem;
        top: auto;
        bottom: 0.5rem;
        transform: none;
        border-radius: 14px;
    }

    .tuto-lightbox__panel {
        padding: 12px;
    }

    .tuto-lightbox__hint {
        display: none;
    }

    .tuto-lightbox__header {
        cursor: default;
    }

    .footer-nav {
        grid-template-columns: 1fr;
    }
}

/* ─── BOUTON RETOUR EN HAUT ──────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: none;
    background: var(--clr-gold);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.back-to-top:hover {
    background: var(--clr-gold-dark, #a87c2a);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* ─── PROMO JEU (bandeau accueil) ────────────────────────────── */
.quiz-promo {
    background: var(--clr-cream-dark);
    padding-block: var(--space-xl);
    border-block: 1px solid var(--clr-border);
}

.quiz-promo-content {
    max-width: 660px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    text-align: center;
}

.quiz-promo-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(196, 154, 60, .15);
    border: 1px solid rgba(196, 154, 60, .5);
    color: #8A6A22;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
}

.quiz-promo-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--clr-navy);
}

.quiz-promo-text {
    color: var(--clr-text-muted);
    line-height: 1.65;
}

/* ─── BOUTON JEU DU HERO : glissement d'entree pour attirer l'oeil ───── */
@keyframes quizCtaSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-24px);
    }

    60% {
        opacity: 1;
        transform: translateX(6px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.quiz-hero-cta {
    animation: quizCtaSlideIn 700ms cubic-bezier(.34, 1.56, .64, 1) 1.1s both;
}

@media (prefers-reduced-motion: reduce) {
    .quiz-hero-cta {
        animation: none;
    }
}
