/* ==========================================================================
   MAISON TRASS — STAGE ENGINE & MODERN EXPERIENCE
   Inspiré des plus hauts standards d'ingénierie et de design (Stage interactif,
   scrolling physique, typographies signature, zéro emoji, 100% souverain).
   ========================================================================== */

/* ── 1. TYPOGRAPHIES OFFICIELLES DU STUDIO ── */
@font-face {
    font-family: 'OozeLiquid';
    src: url('../fonts/ooze.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ClashGrotesk';
    src: url('../fonts/clash-grotesk.otf') format('opentype');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Syne';
    src: url('../fonts/syne.ttf') format('truetype');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-brand-ooze: 'OozeLiquid', 'Newsreader', Georgia, serif;
    --font-brand-clash: 'ClashGrotesk', 'Plus Jakarta Sans', sans-serif;
    --font-brand-syne: 'Syne', sans-serif;

    /* Accents de marque */
    --trass-emerald: #1F3D33;
    --trass-emerald-glow: rgba(31, 61, 51, 0.4);
    --zest-citron: #F5A623;
    --zest-citron-glow: rgba(245, 166, 35, 0.35);
    --stage-phone-width: 440px;
    --stage-phone-aspect: 800 / 1614;
}

/* ── AJUSTEMENT EN-TÊTE DU STUDIO ── */
.broadsheet-header {
    width: 100%;
    padding: 24px 32px 0;
    position: relative;
    z-index: 100;
}

.broadsheet-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.masthead-left {
    flex: 0 0 auto;
}

.masthead-center {
    flex: 0 0 auto;
    padding: 0 10px;
}

.masthead-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.masthead-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.masthead-nav .nav-pill-link {
    font-size: 0.8rem;
    padding: 6px 14px;
}

/* ── 2. HERO PRINCIPAL AVEC TYPOGRAPHIE D'ATELIER ── */
.hero-stage {
    position: relative;
    padding: 140px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    overflow: hidden;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-emphasis);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    margin-bottom: 28px;
}

.hero-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 10px #10B981;
    animation: pillPulse 2.4s infinite ease-in-out;
}

@keyframes pillPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-grand-title {
    font-family: var(--font-brand-clash);
    font-size: clamp(2.8rem, 6.2vw, 5.4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-main);
    margin-bottom: 24px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.hero-grand-title .ooze-word {
    font-family: var(--font-brand-ooze);
    font-weight: normal;
    letter-spacing: 0.02em;
    display: inline-block;
    color: var(--text-main);
}

.hero-grand-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto 40px;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    background: var(--text-main);
    color: var(--bg-canvas);
    font-family: var(--font-brand-clash);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.35);
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: var(--radius-full);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-emphasis);
    color: var(--text-main);
    font-family: var(--font-brand-clash);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hero-btn-secondary:hover {
    background: var(--bg-subtle-hover);
    border-color: var(--text-main);
}

.hero-scroll-hint {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: bounceDown 2s infinite ease-in-out;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ── 3. FLAGSHIP STICKY PHONE STAGE ── */
.phone-stage {
    position: relative;
    height: 520vh;
    background: transparent;
}

.stage-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* L'écrin iPhone 16 Pro Max — Grand, majestueux, sans fond blanc */
.stage-phone {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: min(78vh, 750px);
    width: auto;
    aspect-ratio: 800 / 1614;
    max-width: 90vw;
    z-index: 20;
    pointer-events: none;
    transition: transform 0.06s ease-out;
    /* Drop-shadow cinématographique pour l'effet iPhone flottant en mode sombre */
    filter: drop-shadow(0 40px 90px rgba(0, 0, 0, 0.85)) drop-shadow(0 15px 35px rgba(0, 0, 0, 0.6));
    background: transparent;
}

.stage-phone-screen-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
}

.stage-device-view {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.97) translateY(12px);
    transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1), transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    user-select: none;
    /* PNG avec transparence : ZERO fond blanc */
    background: transparent;
}

.stage-device-view.is-active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

/* Boutons de commutation sous le téléphone */
.stage-device-toggle {
    position: absolute;
    left: 50%;
    bottom: 3.5vh;
    transform: translateX(-50%);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-emphasis);
    border-radius: var(--radius-full);
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.stage-seg-btn {
    appearance: none;
    border: none;
    background: transparent;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-family: var(--font-brand-clash);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.stage-seg-btn:hover {
    color: var(--text-main);
    background: var(--bg-subtle-hover);
}

.stage-seg-btn.is-active {
    background: var(--text-main);
    color: var(--bg-canvas);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Fiches narratives flottantes (Stage Copy) */
.stage-copy {
    position: absolute;
    top: 50%;
    width: min(420px, 32vw);
    opacity: 0;
    pointer-events: none;
    z-index: 30;
    transition: opacity 0.38s ease, transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.stage-copy.pos-left {
    left: max(5vw, calc(50% - 640px));
    transform: translateY(-50%) translateY(28px);
}

.stage-copy.pos-right {
    right: max(5vw, calc(50% - 640px));
    transform: translateY(-50%) translateY(28px);
}

.stage-copy.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateY(0);
}

.stage-copy-box {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-emphasis);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.14);
    position: relative;
    overflow: hidden;
}

.stage-copy-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--signature-green), var(--zest-citron));
    opacity: 0.8;
}

.stage-copy-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--signature-green);
    margin-bottom: 12px;
}

.stage-copy-title {
    font-family: var(--font-brand-clash);
    font-size: clamp(1.8rem, 2.4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 14px;
}

.stage-copy-desc {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.stage-copy-tag-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.stage-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
}

.stage-tag.tag-highlight {
    background: var(--accent-green-soft);
    border-color: rgba(36, 66, 56, 0.2);
    color: var(--signature-green);
}

/* ── 4. HORIZONTAL HIGHLIGHTS CAROUSEL ── */
.highlights-section {
    position: relative;
    padding: 120px 24px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
}

.highlights-container {
    max-width: 1280px;
    margin: 0 auto;
}

.highlights-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    gap: 24px;
    flex-wrap: wrap;
}

.highlights-header-left {
    max-width: 680px;
}

.highlights-kicker {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.highlights-title {
    font-family: var(--font-brand-clash);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.highlights-nav-btns {
    display: flex;
    gap: 12px;
}

.hl-arrow-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-emphasis);
    background: var(--bg-surface-elevated);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hl-arrow-btn:hover:not(:disabled) {
    background: var(--text-main);
    color: var(--bg-canvas);
    transform: scale(1.05);
}

.hl-arrow-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.highlights-cards-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 24px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.highlights-cards-track::-webkit-scrollbar {
    display: none;
}

.highlight-card {
    flex: 0 0 380px;
    scroll-snap-align: start;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-emphasis);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.12);
    border-color: var(--text-main);
}

.hl-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    margin-bottom: 24px;
}

.hl-card-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.hl-card-title {
    font-family: var(--font-brand-clash);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-main);
    margin-bottom: 14px;
}

.hl-card-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.hl-card-footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hl-card-stat {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--signature-green);
}

/* ── 5. HISTOIRE & MANIFESTE : L'HUMAIN, L'ENGAGEMENT, LE BUT ── */
.story-manifesto-section {
    position: relative;
    padding: 140px 24px 120px;
    background: var(--bg-canvas);
}

.story-container {
    max-width: 960px;
    margin: 0 auto;
}

.story-badge-header {
    text-align: center;
    margin-bottom: 32px;
}

.story-kicker {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--signature-green);
}

.story-headline {
    font-family: var(--font-brand-clash);
    font-size: clamp(2.4rem, 4.8vw, 4.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--text-main);
    margin-bottom: 48px;
}

.story-editorial-body {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-emphasis);
    border-radius: var(--radius-xl);
    padding: clamp(36px, 6vw, 64px);
    box-shadow: 0 32px 72px -20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.story-lead-quote {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-style: italic;
    line-height: 1.45;
    color: var(--text-main);
    border-left: 3px solid var(--signature-green);
    padding-left: 24px;
    margin-bottom: 40px;
}

.story-text-paragraphs {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.story-text-paragraphs p strong {
    color: var(--text-main);
    font-weight: 600;
}

.story-author-signature {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.story-signature-name {
    font-family: var(--font-brand-clash);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}

.story-signature-role {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Grille du contrat éthique (Notre Engagement) */
.story-pledge-grid {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.pledge-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-emphasis);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    transition: transform 0.2s ease;
}

.pledge-card:hover {
    transform: translateY(-2px);
}

.pledge-metric {
    font-family: var(--font-brand-clash);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 8px;
}

.pledge-title {
    font-family: var(--font-brand-clash);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.pledge-desc {
    font-family: var(--font-body);
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* ── 6. RESPONSIVE MOBILE & TABLETTE DU STAGE ── */
@media (max-width: 1024px) {
    .stage-copy.pos-left,
    .stage-copy.pos-right {
        left: 50%;
        right: auto;
        top: 3.5vh;
        transform: translateX(-50%) translateY(0);
        width: 92vw;
        max-width: 440px;
        text-align: center;
    }

    .stage-copy {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }

    .stage-copy.is-active {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    .stage-copy-box {
        padding: 16px 18px;
    }

    .stage-copy-kicker {
        font-size: 0.68rem;
        margin-bottom: 6px;
    }

    .stage-copy-title {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }

    .stage-copy-desc {
        font-size: 0.82rem;
        line-height: 1.45;
        margin-bottom: 8px;
    }

    .stage-copy-tag-row {
        justify-content: center;
        gap: 6px;
    }

    .stage-tag {
        font-size: 0.7rem;
        padding: 2px 8px;
    }

    .stage-phone {
        top: 67% !important;
        height: min(52vh, 450px) !important;
    }

    .stage-device-toggle {
        bottom: 1.8vh;
        gap: 4px;
        padding: 4px;
    }

    .stage-seg-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .highlights-section {
        padding: 80px 20px;
    }

    .highlight-card {
        flex: 0 0 310px;
        min-height: 350px;
        padding: 28px 22px;
    }
}

@media (max-width: 640px) {
    .hero-stage {
        padding: 100px 16px 60px;
    }

    .stage-copy-desc {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .stage-device-toggle {
        width: 92vw;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .stage-device-toggle::-webkit-scrollbar {
        display: none;
    }

    .highlights-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .story-pledge-grid {
        grid-template-columns: 1fr 1fr;
    }
}
