/* ========================================
   CSS VARIABLES & RESET
   ======================================== */
:root {
    --black: #0a0a0a;
    --white: #f5f5f0;
    --white-bright: #ffffff;
    --off-white: #e8e8e3;
    --grey-light: #d0d0cb;
    --grey-mid: #a8a8a3;
    --grey-dark: #3a3a38;
    --red: #c42b2b;
    --red-dark: #9a1f1f;
    --red-light: #e84545;
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 70px;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ========================================
   UTILITY
   ======================================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   NAVIGATION
   ======================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(245, 245, 240, 0.08);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-logo span {
    color: var(--red);
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
}

.nav-links a {
    color: var(--grey-mid);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white-bright);
    background: rgba(245, 245, 240, 0.08);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: var(--transition);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 50% 30%, rgba(196, 43, 43, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(245,245,240,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245,245,240,0.018) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    color: var(--white-bright);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero h1 .accent {
    color: var(--red);
    font-style: italic;
}

.hero h1 .qmark {
    color: var(--grey-mid);
}

/* Sous-titre structuré avec retours à la ligne */
.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);
    font-weight: 400;
    font-style: italic;
    color: var(--grey-light);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-subtitle p {
    margin-bottom: 0.4rem;
}

.hero-subtitle p:first-child {
    font-size: 1.15em;
    color: var(--white);
    font-style: normal;
    margin-bottom: 0.8rem;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--grey-light);
    line-height: 2;
    max-width: 500px;
    margin: 0 auto 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero-text strong {
    color: var(--white-bright);
    font-weight: 600;
    font-size: 1.15em;
}

.scroll-indicator {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 1s;
}

.scroll-indicator a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--grey-mid);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: var(--transition);
}

.scroll-indicator a:hover {
    color: var(--white);
}

.scroll-indicator .arrow {
    width: 1px;
    height: 40px;
    background: var(--grey-mid);
    position: relative;
    overflow: hidden;
}

.scroll-indicator .arrow::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -100%; }
    50% { top: 0; }
    100% { top: 100%; }
}

/* ========================================
   PAGE SECTIONS (chaque section = pleine page)
   ======================================== */
.page-section {
    padding: 7rem 0 5rem;
    border-top: 1px solid rgba(245, 245, 240, 0.06);
    min-height: 60vh;
}

.section-label {
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--grey-mid);
    margin-bottom: 3rem;
}

/* ========================================
   VOTE SECTION
   ======================================== */
.vote-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.vote-card {
    background: rgba(245, 245, 240, 0.03);
    border: 1px solid rgba(245, 245, 240, 0.1);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.vote-card:hover {
    border-color: rgba(245, 245, 240, 0.18);
    background: rgba(245, 245, 240, 0.05);
}

.vote-card.voted {
    border-color: var(--red);
    background: rgba(196, 43, 43, 0.06);
}

.vote-card-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--grey-mid);
    margin-bottom: 1.5rem;
}

.poster-img-wrap {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 2rem;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.poster-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.vote-card:hover .poster-img {
    transform: scale(1.02);
}


.vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(245, 245, 240, 0.25);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.vote-btn:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.vote-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: transparent;
    color: var(--grey-mid);
    border-color: rgba(245, 245, 240, 0.1);
}

.vote-btn.selected {
    background: var(--red);
    border-color: var(--red);
    color: var(--white-bright);
    opacity: 1;
}

.vote-btn.selected:disabled {
    opacity: 1;
}

.vote-count {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--white-bright);
    margin-top: 1.5rem;
    transition: var(--transition);
}

.vote-count small {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--grey-mid);
    font-weight: 400;
    letter-spacing: 0.05em;
}

.vote-insight {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--grey-light);
    max-width: 500px;
    margin: 0 auto;
    padding-top: 1rem;
}

/* ========================================
   TAB CONTENT STYLES (shared for all sections)
   ======================================== */
.tab-content {
    max-width: 760px;
    margin: 0 auto;
}

.tab-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    color: var(--white-bright);
}

.tab-content h2 .accent {
    color: var(--red);
    font-style: italic;
}

.tab-content .tab-intro {
    font-size: 1.1rem;
    color: var(--grey-light);
    line-height: 1.75;
    margin-bottom: 3rem;
    max-width: 620px;
}

.content-block {
    margin-bottom: 3rem;
}

.content-block h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--white-bright);
}

.content-block p {
    color: var(--off-white);
    line-height: 1.85;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.content-block p.note {
    color: var(--grey-light);
    font-size: 0.92rem;
    font-style: italic;
    border-left: 2px solid var(--red);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
}

/* Highlight cards */
.highlight-card {
    background: rgba(245, 245, 240, 0.04);
    border: 1px solid rgba(245, 245, 240, 0.1);
    border-radius: 10px;
    padding: 2rem;
    margin: 2.5rem 0;
}

.highlight-card h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--white-bright);
}

.highlight-card p {
    color: var(--off-white);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* Perspective grid */
.perspective-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.perspective-item {
    background: rgba(245, 245, 240, 0.03);
    border: 1px solid rgba(245, 245, 240, 0.1);
    border-radius: 10px;
    padding: 1.75rem;
    transition: var(--transition);
}

.perspective-item:hover {
    border-color: rgba(245, 245, 240, 0.18);
}

.perspective-item .tag {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.perspective-item .tag.yes {
    background: rgba(196, 43, 43, 0.18);
    color: var(--red-light);
}

.perspective-item .tag.no {
    background: rgba(245, 245, 240, 0.1);
    color: var(--grey-mid);
}

.perspective-item h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--white-bright);
}

.perspective-item p {
    font-size: 0.92rem;
    color: var(--off-white);
    line-height: 1.75;
}

/* ========================================
   MINI TEST
   ======================================== */
.mini-test {
    background: rgba(245, 245, 240, 0.04);
    border: 1px solid rgba(245, 245, 240, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    margin: 3rem 0;
}

.mini-test h4 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--white-bright);
}

.mini-test .test-question {
    color: var(--grey-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.test-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.test-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(245, 245, 240, 0.03);
    border: 1px solid rgba(245, 245, 240, 0.12);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    color: var(--off-white);
}

.test-option:hover {
    border-color: rgba(245, 245, 240, 0.3);
    background: rgba(245, 245, 240, 0.06);
}

.test-option.selected {
    border-color: var(--red);
    background: rgba(196, 43, 43, 0.1);
    color: var(--white-bright);
}

.test-option .check {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(245, 245, 240, 0.25);
    border-radius: 50%;
    flex-shrink: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.test-option.selected .check {
    border-color: var(--red);
    background: var(--red);
}

.test-option.selected .check::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--white-bright);
    border-radius: 50%;
}

.test-result {
    display: none;
    padding: 1.5rem;
    background: rgba(196, 43, 43, 0.06);
    border-left: 3px solid var(--red);
    border-radius: 0 8px 8px 0;
    animation: fadeIn 0.4s ease;
}

.test-result.show {
    display: block;
}

.test-result p {
    font-size: 0.95rem;
    color: var(--off-white);
    line-height: 1.75;
}

.test-result p strong {
    color: var(--white-bright);
}

/* ========================================
   SERVICES GRID
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 2.5rem 0 3rem;
}

.service-card {
    padding: 2rem;
    background: rgba(245, 245, 240, 0.03);
    border: 1px solid rgba(245, 245, 240, 0.1);
    border-radius: 10px;
    transition: var(--transition);
}

.service-card:hover {
    border-color: rgba(245, 245, 240, 0.18);
}

.service-card .service-number {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--red);
    font-style: italic;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.service-card h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--white-bright);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--grey-light);
    line-height: 1.7;
}

/* ========================================
   CTA BUTTON (Nous contacter)
   ======================================== */
.section-cta {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(245, 245, 240, 0.25);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.cta-btn:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    border-top: 1px solid rgba(245, 245, 240, 0.06);
    padding: 3rem 0;
    text-align: center;
}

.footer-question {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-style: italic;
    color: var(--grey-mid);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.footer-question span {
    color: var(--white-bright);
}

.footer-bottom {
    font-size: 0.75rem;
    color: var(--grey-dark);
    letter-spacing: 0.05em;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.counter-animate {
    transition: transform 0.3s ease;
}

.counter-animate.bump {
    transform: scale(1.08);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid rgba(245, 245, 240, 0.08);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .vote-grid,
    .perspective-grid,
    .test-options,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .poster-img-wrap {
        max-width: 300px;
    }

    .page-section {
        padding: 5rem 0 3rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 3rem;
    }

    .container {
        padding: 0 1.25rem;
    }
}
