/* ==========================================================================
   ARCHIVERSE - LANDING PAGE STYLES
   Compatible Thème Clair / Sombre via CSS Variables
   ========================================================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

.landing-container {
    width: 100%;
    background-color: var(--bg-content);
    color: var(--text-main);
    padding-bottom: 60px;
    box-sizing: border-box;
}

.landing-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ==========================================================================
   SECTION "LES CHIFFRES" (CONTINUITÉ AVEC L'IMAGE DU HERO)
   Clair : #D7DEEC (texte noir) | Sombre : #5C6E90 (texte blanc)
   ========================================================================== */
.stats-section {
    width: 100%;
    background-color: #D7DEEC;
    color: #111827;
    padding: 55px 0 50px 0;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body[data-theme="dark"] .stats-section {
    background-color: #5C6E90;
    color: #FFFFFF;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color var(--transition-speed) ease;
}

body[data-theme="dark"] .stat-card {
    background: rgba(0, 0, 0, 0.22);
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    opacity: 0.9;
}

/* ==========================================================================
   SECTIONS GÉNÉRALES
   ========================================================================== */
.landing-section {
    padding: 90px 0 60px 0;
    border-bottom: 1px solid var(--card-border);
}

.landing-section:last-of-type {
    border-bottom: none;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-main);
    background: rgba(117, 135, 169, 0.12);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin: 0 0 12px 0;
    color: var(--text-main);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ==========================================================================
   1. NOUVEAUTÉS / RELEASE NOTES
   ========================================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.news-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-accent, var(--accent-main));
}

.news-card.news-bazar {
    --card-accent: #AB417E;
}

.news-card.news-ensall {
    --card-accent: #824EB7;
}

.news-card.news-search {
    --card-accent: #4D6FB3;
}

.news-card.news-avenir {
    --card-accent: #6857C1;
}

.news-card.news-archiverse {
    --card-accent: #000000;
}

.news-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.news-badge {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    color: white;
}

.badge-bazar {
    background-color: #AB417E;
}

.badge-ensall {
    background-color: #824EB7;
}

.badge-search {
    background-color: #4D6FB3;
}

.badge-avenir {
    background-color: #6857C1;
}

.badge-archiverse {
    background-color: #000000;
}

.news-version {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.news-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.news-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 18px 0;
    flex-grow: 1;
}

.news-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.news-features li {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.news-features li i {
    color: var(--card-accent, var(--accent-main));
    font-size: 1rem;
    margin-top: 2px;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--card-accent, var(--accent-main));
    text-decoration: none;
    transition: gap 0.2s ease;
}

.news-link:hover {
    gap: 10px;
}

/* Bouton déroulant pour voir l'évolution complète */
.news-all-toggle-wrap {
    margin-top: 36px;
    text-align: center;
}

.btn-all-releases {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: 30px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.btn-all-releases:hover {
    border-color: var(--accent-main);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.btn-all-releases .toggle-arrow {
    transition: transform 0.3s ease;
    font-size: 0.85rem;
}

.btn-all-releases.open .toggle-arrow {
    transform: rotate(180deg);
}

.all-releases-container {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px dashed var(--card-border);
    animation: fadeIn 0.4s ease forwards;
}

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

/* Box d'erreur de chargement */
.news-error-box {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #ef4444;
    padding: 20px 24px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1rem;
    margin: 20px 0;
}

/* Tableau compact de l'historique des versions (une ligne par version) */
.release-history-table {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.release-history-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.15s ease;
    font-size: 0.9rem;
    min-width: 0;
}

.release-history-row:hover {
    background-color: rgba(117, 135, 169, 0.08);
}

.rh-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-shrink: 0;
    min-width: 150px;
}

.rh-version {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    color: var(--text-main);
    font-size: 0.95rem;
}

.rh-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.rh-badge-wrap {
    flex-shrink: 0;
}

.rh-badge-wrap .news-badge {
    padding: 3px 8px;
    font-size: 0.72rem;
}

.rh-content {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-grow: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.rh-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    color: var(--text-main);
    flex-shrink: 0;
}

.rh-separator {
    color: var(--text-muted);
    flex-shrink: 0;
    opacity: 0.6;
}

.rh-desc {
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.88rem;
}

.news-empty-history {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* ==========================================================================
   2. NOTRE HISTOIRE (FORMAT LETTRE OUVERTE)
   ========================================================================== */
.story-letter {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 45px 48px;
    margin-bottom: 40px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.03);
    position: relative;
}

.story-letter-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--card-border);
}

.story-letter-header i {
    font-size: 1.4rem;
    color: var(--accent-main);
}

.story-letter-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.story-lead {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.65;
    margin-bottom: 22px;
    color: var(--text-main);
}

.story-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin: 0;
    margin-bottom: 20px;

}

.story-text a {
    color: var(--accent-main);
    text-decoration: underline;
    font-weight: 600;
}

.story-manifesto {
    background: rgba(117, 135, 169, 0.08);
    border-left: 4px solid var(--accent-main);
    padding: 20px 24px;
    border-radius: 0 14px 14px 0;
    margin: 30px 0 35px 0;
}

.story-manifesto p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-main);
    font-weight: 600;
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--card-border);
}

.founder-card {
    background-color: rgba(117, 135, 169, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-main);
    gap: 16px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.founder-card:hover {
    transform: translateY(-3px);
    border-color: #0077b5;
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.12);
}

.founder-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.founder-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--card-border);
    flex-shrink: 0;
    transition: border-color 0.25s ease;
}

.founder-card:hover .founder-photo {
    border-color: #0077b5;
}

.founder-info h4 {
    font-family: 'Bricolage Grotesque', sans-serif;
    margin: 0 0 4px 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
}

.founder-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.founder-linkedin-icon {
    font-size: 1.3rem;
    color: #0077b5;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.founder-card:hover .founder-linkedin-icon {
    transform: scale(1.15);
}

/* ==========================================================================
   3. FAQ ACCORDÉON
   ========================================================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item:hover {
    border-color: var(--accent-main);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 24px;
    font-family: 'Radio Canada Big', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--accent-main);
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--accent-main);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
    padding: 0 24px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 22px 24px;
}

.faq-answer a {
    color: var(--accent-main);
    text-decoration: underline;
}

/* ==========================================================================
   4. REMERCIEMENTS (FORMAT ÉDITORIAL & MENTIONS PERSONNELLES)
   ========================================================================== */
.thanks-editorial-box {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 24px;
}

.thanks-intro {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 30px;
    font-weight: 600;
}

.thanks-mentions-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.thanks-mention-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(117, 135, 169, 0.06);
    border-radius: 12px;
    border-left: 3px solid var(--accent-main);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.thanks-mention-item:hover {
    transform: translateX(4px);
    background: rgba(117, 135, 169, 0.1);
}

.thanks-mention-icon {
    font-size: 1.3rem;
    color: var(--accent-main);
    margin-top: 2px;
    flex-shrink: 0;
}

.thanks-mention-content h4 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: var(--text-main);
}

.thanks-mention-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.thanks-mention-content a {
    color: var(--accent-main);
    text-decoration: underline;
    font-weight: 600;
}

.thanks-mention-content a:hover {
    color: var(--accent-hover);
}

.thanks-callout {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--card-border);
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ==========================================================================
   5. FOOTER
   ========================================================================== */
.landing-footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--card-border);
    padding: 60px 0 30px 0;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    margin: 0 0 12px 0;
    color: var(--text-main);
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.footer-col h4 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 18px 0;
    color: var(--text-main);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: var(--accent-main);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--card-border);
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 12px;
}

/* ==========================================================================
   RESPONSIVE (Mobiles et tablettes)
   ========================================================================== */
@media (max-width: 768px) {
    .landing-wrap {
        padding: 0 16px;
    }

    .landing-section {
        padding: 50px 0 35px 0;
    }

    .section-header {
        margin-bottom: 28px;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    /* Cartes Nouveautés / Release Notes */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .news-card {
        padding: 18px 16px;
        border-radius: 14px;
    }

    .news-title {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }

    .news-desc {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .news-features {
        margin-bottom: 14px;
    }

    .news-features li {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    /* Cartes Chiffres */
    .stats-section {
        padding: 35px 0 30px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 14px 10px;
        border-radius: 12px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* Histoire (Lettre) */
    .story-letter {
        padding: 24px 18px;
        border-radius: 18px;
        margin-bottom: 25px;
    }

    .story-lead {
        font-size: 1.05rem;
        line-height: 1.55;
        margin-bottom: 16px;
    }

    .story-text {
        font-size: 0.92rem;
        line-height: 1.65;
        margin-bottom: 14px;
    }

    .story-manifesto {
        padding: 14px 16px;
        margin: 20px 0;
        border-radius: 0 10px 10px 0;
    }

    .story-manifesto p {
        font-size: 0.92rem;
    }

    .founders-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 18px;
        padding-top: 16px;
    }

    .founder-card {
        padding: 12px 14px;
        gap: 12px;
    }

    .founder-photo {
        width: 46px;
        height: 46px;
    }

    .founder-info h4 {
        font-size: 0.95rem;
    }

    .founder-info p {
        font-size: 0.8rem;
    }

    /* FAQ */
    .faq-question {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 16px 16px 16px;
        font-size: 0.9rem;
    }

    /* Remerciements */
    .thanks-editorial-box {
        padding: 22px 16px;
        border-radius: 18px;
    }

    .thanks-intro {
        font-size: 0.98rem;
        margin-bottom: 18px;
    }

    .thanks-mentions-list {
        gap: 12px;
    }

    .thanks-mention-item {
        padding: 12px 14px;
        gap: 10px;
    }

    .thanks-mention-content h4 {
        font-size: 0.95rem;
    }

    .thanks-mention-content p {
        font-size: 0.88rem;
    }

    /* Footer */
    .landing-footer {
        padding: 40px 0 20px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 25px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}
