/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
    --vert: #2D4A3E;
    --vert-deep: #1E332B;
    --vert-light: #3A5F50;
    --or: #8B6914;
    --or-light: #A47D1A;
    --creme: #F5F0E8;
    --creme-dark: #E8E0D2;
    --noir: #1A1A1A;
    --noir-light: #2A2A2A;
    --blanc: #FAFAF7;
    --text-primary: #F5F0E8;
    --text-secondary: rgba(245, 240, 232, 0.65);
    --text-tertiary: rgba(245, 240, 232, 0.4);
    --border: rgba(245, 240, 232, 0.1);
    --border-hover: rgba(245, 240, 232, 0.2);
    --rouge: #B04A3E;
}

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

body {
    font-family: Georgia, serif;
    background: var(--noir);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--or);
    color: var(--creme);
}

a {
    color: var(--or-light);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover { color: var(--creme); }

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

/* ═══════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════ */
h1, h2, h3, h4 {
    font-family: Georgia, serif;
    font-weight: 500;
    line-height: 1.2;
}

.mono {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════
   GRAIN OVERLAY
   ═══════════════════════════════════════ */
.grain {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
}

/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */
nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.4s ease;
}

nav.scrolled {
    padding: 1rem 3rem;
    background: rgba(26, 26, 26, 0.95);
}

.nav-brand {
    font-family: Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

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

.nav-links a {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--or);
    transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--text-primary); }

/* Mobile menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    padding: 0;
    margin-right: -10px;
}

.nav-toggle span {
    display: block;
    width: 24px; height: 1px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ═══════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════ */
section {
    padding: 8rem 3rem;
    position: relative;
}

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

.section-label {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--or);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.8;
}

.divider {
    width: 100%;
    height: 1px;
    background: var(--border);
}

/* ═══════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════
   HERO / ACCUEIL
   ═══════════════════════════════════════ */
#accueil {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    background: var(--vert-deep);
    padding-top: 6rem;
    position: relative;
    overflow: hidden;
}

#accueil::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(45, 74, 62, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 105, 20, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-headline {
    font-family: Georgia, serif;
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 3.5rem;
    color: var(--creme);
}

.hero-headline em {
    font-style: italic;
    color: var(--or-light);
}

/* Axes */
.axes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.axe-block {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.axe-block:hover {
    border-color: var(--border-hover);
    background: rgba(245, 240, 232, 0.03);
}

.axe-number {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--or);
    margin-bottom: 1rem;
}

.axe-title {
    font-family: Georgia, serif;
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.axe-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.manifeste {
    font-family: Georgia, serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-secondary);
    border-left: 2px solid var(--or);
    padding-left: 2rem;
    max-width: 500px;
}

/* ═══════════════════════════════════════
   ÉDITION
   ═══════════════════════════════════════ */
#edition {
    background: var(--noir);
}

.traite-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: start;
}

.traite-intro .section-subtitle {
    margin-bottom: 1.5rem;
}

.traite-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.traite-detail {
    padding: 1.2rem 1.5rem;
    background: rgba(245, 240, 232, 0.03);
    border-left: 2px solid var(--or);
}

.traite-detail .label {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--or);
    margin-bottom: 0.4rem;
}

.traite-detail .value {
    font-size: 1rem;
    color: var(--text-primary);
}

/* Volumes grid */
.volumes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.5rem;
    margin-top: 3rem;
}

.volume-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
}

.volume-cell .vol-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.volume-cell .vol-tag {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.volume-cell:hover {
    border-color: var(--or);
    background: rgba(139, 105, 20, 0.08);
}

.volume-cell.special {
    border-color: var(--or);
    background: rgba(139, 105, 20, 0.06);
}

.volume-cell.special .vol-num { color: var(--or-light); }

/* ═══════════════════════════════════════
   SOFTWARE
   ═══════════════════════════════════════ */
#software {
    background: var(--vert-deep);
}

.assistants-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.assistant-card {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.assistant-card:hover {
    border-color: var(--border-hover);
    background: rgba(245, 240, 232, 0.03);
    transform: translateY(-2px);
}

.assistant-name {
    font-family: Georgia, serif;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.assistant-version {
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--or);
    margin-bottom: 0.8rem;
}

.assistant-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.app-block {
    margin-top: 4rem;
    padding: 3rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.app-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.app-platforms {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.btn {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border: 1px solid var(--or);
    color: var(--or-light);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background: var(--or);
    color: var(--noir);
}

/* ═══════════════════════════════════════
   PRESSE / INVESTISSEURS
   ═══════════════════════════════════════ */
#presse {
    background: var(--noir);
}

.chiffres-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 3rem 0 4rem;
}

.chiffre-item {
    text-align: center;
    padding: 2rem 1rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    transition: border-color 0.3s ease, background 0.3s ease;
    cursor: default;
}

.chiffre-item:hover {
    border-color: rgba(139, 105, 20, 0.4);
    background: rgba(139, 105, 20, 0.04);
}
.chiffre-item:hover .chiffre-value { color: var(--or-light); }

.chiffre-value {
    font-family: Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--or-light);
    margin-bottom: 0.5rem;
}

.chiffre-label {
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.presse-note {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.mentor-note {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    margin-top: 2rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--border);
}

/* ═══════════════════════════════════════
   FORMS
   ═══════════════════════════════════════ */
.form-block {
    margin-top: 3rem;
    max-width: 560px;
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-row label {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}

.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(245, 240, 232, 0.04);
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--text-primary);
    font-family: Georgia, serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    border-color: var(--or);
}

.form-row textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B6914' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
}

.form-row select option {
    background: var(--noir);
    color: var(--text-primary);
}

/* Honeypot — hidden from humans, visible to bots */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.btn-submit {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border: 1px solid var(--or);
    color: var(--or-light);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--or);
    color: var(--noir);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: default;
}

/* Form feedback */
.form-success,
.form-error {
    display: none;
    margin-top: 1rem;
    padding: 0.8rem 1.2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

.form-success {
    background: rgba(139, 105, 20, 0.08);
    border-left: 2px solid var(--or);
    color: var(--or-light);
}

.form-error {
    background: rgba(176, 74, 62, 0.08);
    border-left: 2px solid var(--rouge);
    color: var(--rouge);
}

.form-success.visible,
.form-error.visible { display: block; }

/* ═══════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════ */
#contact {
    background: var(--vert-deep);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.contact-item .contact-type {
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--or);
    min-width: 90px;
    padding-top: 2px;
}

.contact-item .contact-value {
    color: var(--text-primary);
    font-size: 1.05rem;
}

.contact-item .contact-value a {
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 1px;
    transition: border-color 0.3s ease;
}

.contact-item .contact-value a:hover {
    border-color: var(--or);
}

/* ═══════════════════════════════════════
   NOUS REJOINDRE
   ═══════════════════════════════════════ */
#rejoindre {
    background: var(--noir);
}

.rejoindre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.rejoindre-block h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.rejoindre-block p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.criteres-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.criteres-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
}

.criteres-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--or);
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
footer {
    padding: 3rem;
    border-top: 1px solid var(--border);
    background: var(--noir);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--or-light); }

/* ═══════════════════════════════════════
   INTERACTIVITY ADDITIONS
   ═══════════════════════════════════════ */

/* Axe blocks — cliquables */
a.axe-block {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
a.axe-block:hover {
    border-color: var(--or);
    background: rgba(139, 105, 20, 0.06);
}
a.axe-block:hover .axe-number { color: var(--or-light); }
a.axe-block:hover .axe-title  { color: var(--text-primary); }

/* Assistant cards — cliquables */
a.assistant-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
}
a.assistant-card::after {
    content: '→ Ouvrir';
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--or);
    opacity: 0;
    transition: opacity 0.2s ease;
}
a.assistant-card:hover::after { opacity: 1; }
a.assistant-card:hover {
    border-color: var(--or);
    background: rgba(139, 105, 20, 0.06);
}

/* Volume 0 — cliquable */
.volume-cell.special { cursor: pointer; }

/* Accompagnement CTA */
.accompagnement-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--or-light);
    border-bottom: 1px solid rgba(139, 105, 20, 0.3);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.accompagnement-cta:hover {
    color: var(--creme);
    border-color: var(--or);
}

/* Mobile nav backdrop */
.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    backdrop-filter: blur(2px);
}
.nav-backdrop.active { display: block; }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
    section { padding: 5rem 2rem; }
    nav { padding: 1.2rem 2rem; }

    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 280px; height: 100vh;
        flex-direction: column;
        background: var(--noir);
        padding: 5rem 2.5rem;
        gap: 0.5rem;
        border-left: 1px solid var(--border);
        transition: right 0.4s ease;
    }

    .nav-links.open { right: 0; }

    .nav-links a {
        font-size: 0.85rem;
        display: block;
        padding: 14px 0;
    }

    .nav-links a::after { display: none; }

    .axes-grid,
    .assistants-grid {
        grid-template-columns: 1fr;
    }

    .chiffres-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .traite-intro,
    .contact-grid,
    .rejoindre-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .app-block {
        flex-direction: column;
        text-align: center;
    }

    .volumes-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .grain { display: none; }
}

@media (max-width: 480px) {
    section { padding: 4rem 1.5rem; }
    nav { padding: 1rem 1.5rem; }

    .hero-headline {
        font-size: 2rem;
    }

    .chiffres-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .volumes-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 0.4rem;
    }
}

@media (max-width: 380px) {
    .hero-headline {
        font-size: 1.5rem;
    }
}

@media (hover: none) {
    .assistant-card:hover {
        transform: none;
    }
    a.assistant-card::after { opacity: 1; }
}
