/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #343F5A;
    --primary-dark: #2A3349;
    --accent: #C29B6C;
    --teal: #5CE1E6;
    --teal-dark: #3BC8CE;
    --discord: #5865F2;
    --discord-dark: #4752C4;
    --discord-light: #7289DA;
    --text: #343F5A;
    --text-secondary: #666D80;
    --bg: #FFFFFF;
    --bg-subtle: #F4F8F9;
    --border: #DDE5E9;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --transition: 0.2s ease;
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
html { overflow-x: hidden; }

h1, h2, h3 {
    font-family: 'Paytone One', sans-serif;
    font-weight: 400; /* Paytone One has a single weight */
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Utility */
.text-teal { color: var(--teal); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }

/* ===== Reveal animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    padding: 12px 24px;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-hero {
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: var(--radius-xs);
}

.btn-teal {
    background: var(--teal);
    color: #fff;
}
.btn-teal:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(92,225,230,0.4);
}
.btn-ghost-teal {
    background: transparent;
    color: var(--teal-dark);
    border: 2px solid var(--teal);
}
.btn-ghost-teal:hover {
    background: rgba(92,225,230,0.1);
    transform: translateY(-2px);
}
.info-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-discord {
    background: var(--discord);
    color: white;
}
.btn-discord:hover {
    background: var(--discord-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(88,101,242,0.4);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}
.navbar.scrolled {
    background: rgba(255,255,255,0.98);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Paytone One', sans-serif;
    font-size: 1.1rem;
    color: var(--text);
    flex-shrink: 0;
}
.logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link:hover,
.nav-link.active {
    color: var(--teal);
    background: rgba(92,225,230,0.08);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    min-width: 180px;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.nav-dropdown-menu a {
    display: block;
    padding: 9px 14px;
    border-radius: var(--radius-xs);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.nav-dropdown-menu a:hover {
    background: var(--bg-subtle);
    color: var(--primary);
}

/* Nav right */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-socials {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-socials a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.nav-socials a:hover {
    color: var(--teal);
    background: rgba(92,225,230,0.1);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    z-index: 999;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow-lg);
}
.mobile-menu.active { display: flex; }

.mobile-link {
    padding: 12px 16px;
    border-radius: var(--radius-xs);
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.mobile-link:hover { background: var(--bg-subtle); color: var(--primary); }

.mobile-socials {
    display: flex;
    gap: 12px;
    padding: 12px 16px 0;
    color: var(--text-secondary);
}
.mobile-socials a { color: var(--text-secondary); transition: color var(--transition); }
.mobile-socials a:hover { color: var(--teal); }

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.mobile-actions .btn {
    justify-content: center;
    padding: 14px 24px;
}

/* User profile (logged in) */
.user-profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
    background: white;
    user-select: none;
}
.user-profile:hover { border-color: var(--discord); box-shadow: 0 0 0 3px rgba(88,101,242,0.1); }
.user-profile.open .user-dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }

.user-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid var(--discord-light); }
.user-name { font-size: 0.875rem; font-weight: 600; color: var(--text); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    min-width: 200px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}
.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-xs);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: all var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: inherit;
}
.user-dropdown-item:hover { background: var(--bg-subtle); color: var(--primary); }
.user-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.user-dropdown-logout { color: #E53E3E; }
.user-dropdown-logout:hover { background: #FFF5F5; color: #C53030; }

/* Toast */
.auth-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: white;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.35s ease;
    opacity: 0;
    pointer-events: none;
}
.auth-toast--visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.auth-toast--success { background: #2D7D46; }
.auth-toast--error   { background: #C53030; }
.auth-toast--info    { background: var(--primary); }

/* ===== Buttons (additional) ===== */
.btn-primary {
    background: var(--accent);
    color: white;
}
.btn-primary:hover {
    background: #B08A5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(194,155,108,0.4);
}
.btn-ghost {
    background: white;
    color: var(--primary);
    border: 2px solid white;
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.85);
    border-color: white;
    transform: translateY(-2px);
}
.btn-lg {
    padding: 15px 32px;
    font-size: 1rem;
}

/* ===== HERO ===== */
.hero {
    padding: 140px 0 160px;
    background-image: url('https://lescnediens.fr/wp-content/uploads/2023/05/LES-CNEDIENS-site-1.png');
    background-size: cover;
    background-position: center top;
    overflow: hidden;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(92,225,230,0.12);
    color: var(--teal-dark);
    border: 1px solid rgba(92,225,230,0.3);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 22px;
    letter-spacing: 0.01em;
}

.hero-content h1 {
    font-family: 'Paytone One', sans-serif;
    font-size: 2.9rem;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--discord) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Social proof */
.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.hero-social-proof strong { color: var(--primary); font-weight: 700; }

.avatar-stack { display: flex; }
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2.5px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: white;
    margin-left: -10px;
    flex-shrink: 0;
}
.avatar:first-child { margin-left: 0; }

/* Hero visual + floating cards */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    border-radius: var(--radius);
}

.hero-card {
    position: absolute;
    background: white;
    border-radius: 14px;
    padding: 11px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 28px rgba(52,63,90,0.13);
    z-index: 2;
    white-space: nowrap;
    animation: cardFloat 3.5s ease-in-out infinite;
}
.hero-card-1 { top: 10%; left: -60px; animation-delay: 0s; }
.hero-card-2 { bottom: 26%; right: 0; animation-delay: 1.2s; }
.hero-card-3 { bottom: 6%; left: 20px; animation-delay: 2.4s; }
.hero-card-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}
.hero-card-info { display: flex; flex-direction: column; gap: 2px; }
.hero-card-stars { font-size: 0.72rem; color: #F4C430; letter-spacing: 1px; }
.hero-card-info span { font-size: 0.75rem; color: var(--primary); font-weight: 500; }

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* ===== ESPACE MEMBRES ===== */
.member-section {
    padding: 60px 0;
    background: var(--bg-subtle);
    border-top: 3px solid var(--discord);
}
.member-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: white;
    border-radius: var(--radius);
    padding: 28px 32px;
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.member-banner-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.member-banner-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--role-color, var(--discord));
    box-shadow: 0 0 0 4px var(--role-bg, rgba(88,101,242,0.1));
}
.member-banner-hello { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 2px; }
.member-banner-name { font-family: 'Paytone One', sans-serif; font-size: 1.5rem; color: var(--text); margin-bottom: 8px; }
.member-role-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.member-channels-title { font-family: 'Paytone One', sans-serif; font-size: 1.1rem; color: var(--text); margin-bottom: 16px; }
.member-channels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.member-channel-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    color: var(--text);
}
.member-channel-card:hover {
    border-color: var(--discord);
    box-shadow: 0 0 0 3px rgba(88,101,242,0.08);
    transform: translateY(-2px);
}
.member-channel-card > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.member-channel-card strong { font-size: 0.9rem; font-weight: 700; }
.member-channel-card span { font-size: 0.8rem; color: var(--text-secondary); }
.member-channel-card svg { color: var(--text-secondary); flex-shrink: 0; transition: transform var(--transition); }
.member-channel-card:hover svg { color: var(--discord); transform: translateX(3px); }
.member-channel-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle);
    border-radius: 10px;
}

/* ===== PRÉSENTATION ===== */
.presentation-section {
    background: #D6EDF0;
    padding-top: 70px;
}
.presentation-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 48px;
    align-items: center;
    padding-bottom: 60px;
}
.presentation-title {
    font-family: 'Paytone One', sans-serif;
    font-size: 3rem;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}
.presentation-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}
.presentation-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
    color: var(--text);
    line-height: 1.6;
}
.bullet-accent::before {
    content: '●';
    color: var(--accent);
    font-size: 0.85rem;
    margin-top: 3px;
    flex-shrink: 0;
}
.bullet-teal::before {
    content: '●';
    color: var(--teal-dark);
    font-size: 0.85rem;
    margin-top: 3px;
    flex-shrink: 0;
}
.presentation-cest {
    font-family: 'Paytone One', sans-serif;
    font-size: 1.8rem;
    color: var(--primary);
}
.presentation-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}
.presentation-img {
    width: 100%;
    max-width: 420px;
    filter: drop-shadow(0 8px 24px rgba(52,63,90,0.12));
}
.presentation-cards-wrap {
    background: transparent;
    padding-bottom: 0;
}
.presentation-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    transform: translateY(48px);
}
.presentation-card {
    background: white;
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}
.presentation-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.presentation-card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}
.presentation-card h3 {
    font-family: 'Paytone One', sans-serif;
    font-size: 0.95rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 12px;
    line-height: 1.4;
}
.presentation-card-line {
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 0 auto 18px;
}
.presentation-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ===== TROIS BOITES ===== */
.trois-boites-section {
    padding: 0 0 80px;
    margin-top: -80px;
    position: relative;
    z-index: 2;
    background: transparent;
}
.trois-boites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.trois-boite {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 28px;
    text-align: center;
    box-shadow: 0 8px 36px rgba(0,0,0,0.13);
    transition: all 0.3s ease;
}
.trois-boite:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.trois-boite-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.trois-boite h3 {
    font-family: 'Paytone One', sans-serif;
    font-size: 0.95rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 14px;
    line-height: 1.4;
}
.trois-boite-line {
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 0 auto 18px;
}
.trois-boite p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ===== STATS SECTION ===== */
.stats-section {
    padding: 50px 0 60px;
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stats-title {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 36px;
    letter-spacing: 0.01em;
}
.stats-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.stat-item {
    text-align: center;
    padding: 20px 60px;
}
.stat-number-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}
.stat-number {
    font-family: 'Paytone One', sans-serif;
    font-size: 3.5rem;
    color: var(--accent);
    line-height: 1;
}
.stat-suffix {
    font-family: 'Paytone One', sans-serif;
    font-size: 2.5rem;
    color: var(--accent);
}
.stat-number-text {
    font-family: 'Paytone One', sans-serif;
    font-size: 3.5rem;
    color: var(--accent);
    line-height: 1;
}
.stat-item .stat-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 8px;
}
.stat-divider {
    width: 1px;
    height: 80px;
    background: var(--border);
    flex-shrink: 0;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 90px 0;
    background: #C8E8F5;
}
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-badge-pill {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(92,225,230,0.12);
    color: var(--teal-dark);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.section-header h2 {
    font-family: 'Paytone One', sans-serif;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.2;
}
.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--teal);
}
.feat-img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin: 0 auto 18px;
    display: block;
}
.feature-card h3 {
    font-family: 'Paytone One', sans-serif;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 10px;
}
.feature-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ===== 3 PILIERS ===== */
.pillars-section {
    padding: 80px 0;
    background: var(--bg-subtle);
}
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.pillar {
    background: white;
    border-radius: var(--radius);
    padding: 36px 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.pillar:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.pillar-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.pillar h3 {
    font-family: 'Paytone One', sans-serif;
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 10px;
}
.pillar p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== INFO CNED/IEF ===== */
.info-section {
    padding: 90px 0;
    background: #fff;
}
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
.info-content h2 {
    font-family: 'Paytone One', sans-serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
}
.info-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 18px;
}
.info-disclaimer {
    background: rgba(194,155,108,0.08);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    padding: 12px 16px;
    font-size: 0.85rem !important;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.7 !important;
}
.info-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.info-img { width: 100%; height: 360px; object-fit: contain; background: #C8E8F5; }

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    padding: 90px 0;
    background: var(--bg-subtle);
}
.section-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 8px;
}
.testimonials-title {
    font-family: 'Paytone One', sans-serif;
    font-size: 2rem;
    text-align: center;
    color: var(--primary);
    margin-bottom: 48px;
}
/* Testimonials carousel */
.testimonials-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}
.testimonials-track-wrapper {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}
.testimonials-track {
    display: flex;
    gap: 24px;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.testimonials-track .testimonial-card {
    flex-shrink: 0;
    min-width: 0;
}
.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.carousel-btn:hover:not(:disabled) {
    border-color: var(--teal);
    color: var(--teal);
    box-shadow: 0 4px 14px rgba(92,225,230,0.25);
    transform: scale(1.08);
}
.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}
.carousel-dot.active {
    background: var(--teal);
    width: 24px;
    border-radius: 4px;
}
.testimonial-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.testimonial-stars {
    color: #F6C90E;
    font-size: 1rem;
    letter-spacing: 2px;
}
.testimonial-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.75;
    flex: 1;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}
.testimonial-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Paytone One', sans-serif;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}
.testimonial-author strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

/* ===== COMMUNAUTÉ DISCORD ===== */
.discord-community-section {
    padding: 100px 0;
    background: var(--bg);
}
.discord-community-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.section-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}
.discord-badge {
    background: rgba(88,101,242,0.1);
    color: var(--discord);
}
.discord-community-content h2 {
    font-family: 'Paytone One', sans-serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.2;
}
.discord-community-content > p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 28px;
}
.discord-stats-row { display: flex; gap: 28px; margin-bottom: 28px; }
.discord-stat { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-secondary); }
.discord-stat strong { font-weight: 700; color: var(--text); }
.discord-stat-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.discord-stat-dot.online  { background: #23A55A; box-shadow: 0 0 6px rgba(35,165,90,0.5); }
.discord-stat-dot.members { background: var(--teal); }

.discord-channels-preview {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 32px;
    background: #F4F5FE;
    border: 1px solid rgba(88,101,242,0.15);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
}
.discord-channel-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    padding: 4px 0;
}
.discord-channel-item .channel-hash { color: var(--discord-light); font-size: 1.1rem; font-weight: 700; width: 18px; text-align: center; }
.discord-channel-more { color: var(--text-secondary); font-style: italic; font-size: 0.85rem; padding-top: 2px; }

/* Discord widget */
.discord-widget-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    background: white;
    min-height: 460px;
}
.discord-widget { display: block; width: 100%; border: none; }
.discord-widget-placeholder {
    display: none;
    position: absolute;
    inset: 0;
    background: #F4F5FE;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    color: var(--text-secondary);
    padding: 32px;
}
.discord-widget-container:has(iframe[src*="VOTRE_GUILD_ID"]) .discord-widget-placeholder { display: flex; }
.discord-widget-container:has(iframe[src*="VOTRE_GUILD_ID"]) .discord-widget { display: none; }

/* ===== CTA ===== */
/* ===== PARTENAIRES ===== */
.partners-section {
    padding: 70px 0;
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.partners-track-wrapper {
    overflow: hidden;
    margin-top: 48px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.partners-track {
    display: flex;
    gap: 32px;
    width: max-content;
    animation: partnersScroll 22s linear infinite;
}
.partners-track:hover { animation-play-state: paused; }
@keyframes partnersScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 80px;
    background: var(--bg-subtle);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 24px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.partner-logo:hover {
    border-color: var(--accent);
    background: white;
    box-shadow: var(--shadow);
}
.partner-logo span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
}

.cta-section {
    padding: 80px 0;
    background: var(--primary);
}
.cta-inner {
    text-align: center;
    position: relative;
}
.cta-section h2 {
    font-family: 'Paytone One', sans-serif;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 16px;
}
.cta-section p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
    line-height: 1.7;
}

/* ===== CONTACT ===== */
.contact-section {
    padding: 90px 0;
    background: var(--bg-subtle);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.contact-info h2 {
    font-family: 'Paytone One', sans-serif;
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--primary);
}
.contact-info > p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 28px;
}
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-link-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--text);
    transition: all var(--transition);
}
.contact-link-item:hover { border-color: var(--teal); color: var(--teal); box-shadow: var(--shadow-sm); }

.contact-form {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xs);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg-subtle);
    transition: all var(--transition);
    outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #9EAFB8; }
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--teal);
    background: white;
    box-shadow: 0 0 0 4px rgba(92,225,230,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== FOOTER ===== */
.footer {
    background: var(--primary);
    color: white;
    padding: 64px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}
.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-bottom: 16px;
}
.footer-brand p {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 280px;
    margin-bottom: 20px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.65);
    transition: all var(--transition);
}
.footer-socials a:hover { background: var(--teal); color: white; }

.footer-links h4 { font-family: 'Paytone One', sans-serif; font-size: 0.85rem; font-weight: 400; margin-bottom: 20px; color: rgba(255,255,255,0.9); }
.footer-links a { display: block; padding: 6px 0; color: rgba(255,255,255,0.5); font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,0.35); font-size: 0.85rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content h1 { font-size: 3rem; }
    .discord-community-grid { grid-template-columns: 1fr; gap: 40px; }
    .info-grid { grid-template-columns: 1fr; gap: 40px; }
    .info-img { height: 280px; }
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .member-channels-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Navbar */
    .nav-links,
    .nav-right { display: none; }
    .mobile-menu-btn { display: flex; }

    /* Hero */
    .hero { padding: 100px 0 180px; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { justify-content: center; width: 100%; }
    .hero-social-proof { flex-wrap: wrap; }
    .hero-card { display: none; }

    /* Trois boites */
    .trois-boites-section { padding: 0 0 48px; margin-top: -40px; }
    .trois-boites-grid { grid-template-columns: 1fr; gap: 16px; }
    .trois-boite { padding: 28px 20px; }

    /* Stats */
    .stats-section { padding: 48px 0; }
    .stats-grid { flex-direction: column; gap: 0; }
    .stat-divider { width: 80px; height: 1px; }
    .stat-item { padding: 20px 40px; }
    .stat-number, .stat-number-text { font-size: 2.6rem; }
    .stat-suffix { font-size: 2rem; }

    /* Features */
    .features-section {
        background-image: none;
        background-color: var(--bg-subtle);
    }
    .features-grid { grid-template-columns: 1fr; gap: 16px; }
    .section-header h2 { font-size: 1.8rem; }

    /* Info CNED */
    .info-btns { flex-direction: column; gap: 10px; }
    .info-btns .btn { width: 100%; justify-content: center; }

    /* Discord section */
    .discord-widget-container { display: none; }
    .discord-stats-row { flex-direction: column; gap: 12px; }
    .discord-channels-preview { margin-bottom: 20px; }

    /* Testimonials */
    .testimonials-carousel-wrap { gap: 8px; }
    .carousel-btn { width: 36px; height: 36px; }
    .testimonials-title { font-size: 1.6rem; }

    /* Contact */
    .contact-form { padding: 24px 16px; }
    .contact-grid { gap: 32px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    /* Misc */
    .user-name { display: none; }
    .member-banner { flex-direction: column; align-items: flex-start; gap: 20px; }
    .member-channels-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-content h1 { font-size: 1.9rem; }
    .features-grid { grid-template-columns: 1fr; }
    .section-badge-pill { font-size: 0.75rem; }
    .partner-logo { min-width: 120px; height: 60px; font-size: 0.8rem; }
}
