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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* =====================
   Hero — pas de min-height, s'adapte au contenu
   ===================== */
.hero-section {
    padding: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 50%, #000000 100%);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #222;
}

.brand {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #10b981;
    text-decoration: none;
    transition: opacity 0.2s;
}

.brand:hover { opacity: 0.8; }

.logout-btn-header {
    background: transparent;
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    border-radius: 6px;
}

.logout-btn-header:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    transform: translateY(-1px);
}

/* hero-content : margin symétrique haut/bas, pas d'excès */
.hero-content {
    text-align: center;
    max-width: 700px;
    margin: 48px auto 48px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.subtitle {
    background: linear-gradient(135deg, #c0c0c0 0%, #10b981 50%, #e8e8e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 12px 24px;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 22px;
    display: inline-block;
    position: relative;
    background-color: rgba(16, 185, 129, 0.02);
    width: fit-content;
}

.subtitle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(192,192,192,0.25), rgba(16,185,129,0.3), rgba(232,232,232,0.25));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.subtitle::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    background: radial-gradient(circle at center, rgba(16,185,129,0.08) 0%, transparent 70%);
    filter: blur(8px);
    z-index: -1;
    opacity: 0.5;
}

.main-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    margin: 0;
}

/* =====================
   Quote — centrée, ❝ haut-gauche, ❞ bas-droite
   ===================== */
.quote {
    width: 100%;
    display: block;
    font-size: 15px;
    color: #aaa;
    font-weight: 400;
    font-style: italic;
    margin: 0;
    letter-spacing: 0.3px;
    text-align: center;
    padding: 28px 40px;
    position: relative;
    line-height: 1.7;
}

.quote::before {
    content: '❝';
    position: absolute;
    top: 0;
    left: 0;
    font-size: 36px;
    color: rgba(16, 185, 129, 0.35);
    font-style: normal;
    line-height: 1;
}

.quote::after {
    content: '❞';
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 36px;
    color: rgba(16, 185, 129, 0.35);
    font-style: normal;
    line-height: 1;
}

/* =====================
   Resources
   ===================== */
.resources-section {
    padding: 48px 20px 24px;
    border-top: 1px solid rgba(26, 26, 26, 0.5);
    background: #000000;
}

.resources-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
}

.resources-text {
    background: linear-gradient(135deg, #c0c0c0 0%, #10b981 50%, #e8e8e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 12px 50px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    position: relative;
    background-color: rgba(16, 185, 129, 0.03);
}

.resources-text::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(192,192,192,0.3), rgba(16,185,129,0.3), rgba(232,232,232,0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.resources-text::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    background: radial-gradient(circle at center, rgba(16,185,129,0.1) 0%, transparent 70%);
    filter: blur(8px);
    z-index: -1;
    opacity: 0.6;
}

.controls {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(26, 26, 26, 0.6);
    color: #888;
    border: 1px solid rgba(34, 34, 34, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    border-radius: 4px;
}

.filter-btn:hover { border-color: #10b981; color: #10b981; }

.filter-btn.active {
    background: #10b981;
    color: #000;
    border-color: #10b981;
}

.search-input {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(34, 34, 34, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    color: #fff;
    font-size: 14px;
    min-width: 280px;
    transition: all 0.2s;
    border-radius: 4px;
}

.search-input::placeholder { color: #555; }

.search-input:focus {
    outline: none;
    border-color: #10b981;
    background: rgba(15, 15, 15, 0.8);
}

/* =====================
   Grid
   ===================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.card {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(34, 34, 34, 0.8);
    backdrop-filter: blur(10px);
    padding: 24px;
    transition: all 0.2s;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.card:hover { border-color: #10b981; transform: translateY(-2px); }
.card.signup-card { border-color: rgba(239, 68, 68, 0.5); }
.card.signup-card:hover { border-color: #ef4444; }

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    align-items: center;
}

.badge {
    font-size: 10px;
    font-weight: 700;
    padding: 5px 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.badge.beginner     { background: rgba(16,185,129,0.15); color: #10b981; }
.badge.intermediate { background: rgba(59,130,246,0.15); color: #3b82f6; }
.badge.advanced     { background: rgba(239,68,68,0.15);  color: #ef4444; }

.date { font-size: 12px; color: #666; font-weight: 500; }

.vip-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 0 8px rgba(239,68,68,0.6), inset 0 1px 2px rgba(255,255,255,0.3);
    display: inline-block;
    margin-left: 8px;
    cursor: help;
    animation: vipGlow 2s ease-in-out infinite;
    vertical-align: top;
    flex-shrink: 0;
    margin-top: 2px;
}

@keyframes vipGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(239,68,68,0.6), inset 0 1px 2px rgba(255,255,255,0.3); }
    50%       { box-shadow: 0 0 16px rgba(239,68,68,0.9), inset 0 1px 2px rgba(255,255,255,0.5); }
}

.card-title {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
    line-height: 1.3;
    display: flex;
    align-items: flex-start;
}

.card-excerpt {
    font-size: 14px;
    color: #999;
    margin-bottom: 16px;
    line-height: 1.6;
}

.card-link {
    color: #10b981;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    display: inline-block;
    pointer-events: none;
}

.card:hover .card-link { color: #059669; }
.card-link.signup-link { color: #ef4444; }
.card:hover .card-link.signup-link { color: #dc2626; }

/* =====================
   Pagination
   ===================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pag-btn {
    background: rgba(26, 26, 26, 0.6);
    color: #fff;
    border: 1px solid rgba(51, 51, 51, 0.8);
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 44px;
    border-radius: 4px;
}

.pag-btn:hover:not(:disabled) { border-color: #10b981; background: rgba(16,185,129,0.1); color: #10b981; }
.pag-btn.active { background: #10b981; color: #000; border-color: #10b981; }
.pag-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* =====================
   CTA Section
   ===================== */
.cta-section {
    padding: 48px 20px;
    border-top: 1px solid rgba(26, 26, 26, 0.5);
    background: #000;
}

.cta-inner {
    max-width: 660px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.cta-title {
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.cta-desc {
    font-size: 15px;
    color: #aaa;
    line-height: 1.6;
    max-width: 480px;
}

.cta-tabs {
    display: flex;
    justify-content: center;
    gap: 24px;
    opacity: 0.6;
}

.cta-tab {
    background: transparent;
    color: #666;
    border: none;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    text-decoration: underline;
    text-decoration-color: transparent;
}

.cta-tab:hover { color: #888; }

.cta-tab.active {
    color: #888;
    text-decoration-color: #888;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.cta-input {
    width: 100%;
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(10px);
    padding: 14px 20px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s;
    border-radius: 8px;
    text-align: center;
}

.cta-input::placeholder { color: #666; }

.cta-input:focus {
    outline: none;
    border-color: #10b981;
    background: rgba(10, 10, 10, 0.9);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.cta-btn {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #000;
    border: none;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: opacity 0.2s;
}

.cta-btn:hover { opacity: 0.85; }

/* =====================
   Newsletter toggle (connectés)
   ===================== */
.newsletter-section {
    max-width: 700px;
    margin: 0 auto 48px auto;
    padding: 0 20px;
    text-align: center;
}

.newsletter-form {
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.newsletter-checkbox span {
    font-size: 15px;
    color: #aaa;
    font-weight: 400;
}

.newsletter-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #10b981;
    order: 2;
}

/* =====================
   Footer
   ===================== */
.footer {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(26, 26, 26, 0.5);
    padding: 48px 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.footer-email {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-email:hover { color: #10b981; }

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.footer-nav a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.2s;
}

.footer-nav a:hover { color: #888; }

/* =====================
   Messages & Alerts
   ===================== */
.messages-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    max-width: 500px;
    width: 90%;
}

.alert {
    background: rgba(17, 17, 17, 0.98);
    border: 2px solid #10b981;
    padding: 20px 24px;
    margin-bottom: 10px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.3s ease-out;
    transition: opacity 0.3s ease;
    font-size: 15px;
    line-height: 1.5;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

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

.alert-success { border-color: #10b981; background: rgba(16,185,129,0.2); }
.alert-success::before { content: '✓'; display: inline-block; margin-right: 12px; font-size: 18px; color: #10b981; font-weight: 700; }
.alert-error   { border-color: #ef4444; background: rgba(239,68,68,0.2); }
.alert-error::before   { content: '✕'; display: inline-block; margin-right: 12px; font-size: 18px; color: #ef4444; font-weight: 700; }
.alert-warning { border-color: #f59e0b; background: rgba(245,158,11,0.2); }
.alert-warning::before { content: '⚠'; display: inline-block; margin-right: 12px; font-size: 18px; color: #f59e0b; font-weight: 700; }
.alert-info    { border-color: #3b82f6; background: rgba(59,130,246,0.2); }
.alert-info::before    { content: 'ℹ'; display: inline-block; margin-right: 12px; font-size: 18px; color: #3b82f6; font-weight: 700; }

.close-alert {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #888;
    padding: 0;
    margin-left: 16px;
    line-height: 1;
    transition: all 0.2s;
}

.close-alert:hover { color: #fff; }

/* =====================
   User Menu
   ===================== */
.user-menu { display: flex; align-items: center; gap: 15px; }
.user-name  { color: white; font-size: 14px; font-weight: 500; }

/* =====================
   Responsive ≤ 768px
   ===================== */
@media (max-width: 768px) {
    .header { flex-direction: column; gap: 12px; padding: 16px; }

    .hero-content {
        padding: 0 16px;
        margin: 32px auto 32px;
        gap: 16px;
    }
    .subtitle   { font-size: 12px; padding: 10px 20px; }
    .main-title { font-size: 32px; }
    .quote      { font-size: 14px; padding: 6px 16px; }

    .resources-section { padding: 32px 16px 20px; }
    .container          { padding: 0 16px; }
    .controls           { flex-direction: column; }
    .search-input       { width: 100%; min-width: unset; }
    .grid               { grid-template-columns: 1fr; }

    .footer     { padding: 32px 16px; }
    .footer-nav { flex-direction: column; }

    .messages-container { width: 95%; }
    .alert { font-size: 14px; padding: 20px 24px; }

    .user-menu         { flex-direction: column; gap: 8px; width: 100%; }
    .user-name         { font-size: 13px; }
    .logout-btn-header { width: 100%; }

    .newsletter-section { margin-bottom: 32px; }
    .newsletter-checkbox { flex-direction: column; text-align: center; gap: 16px; }
    .newsletter-checkbox span { order: 1; }
    .newsletter-checkbox input[type="checkbox"] { order: 2; }

    .cta-section { padding: 32px 16px; }
    .cta-inner   { max-width: 100%; width: 100%; }
    .cta-title   { font-size: 26px; }
    .cta-desc    { font-size: 14px; }
}

@media (max-width: 480px) {
    .alert       { font-size: 13px; padding: 18px 20px; }
    .close-alert { font-size: 24px; }
    .main-title  { font-size: 28px; }
    .cta-title   { font-size: 22px; }
    .quote       { font-size: 13px; }
}