/* ═══════════════════════════════════════════════════════════════
   LeBonCap — Charte graphique
   Couleurs : Violet #6B3FA0 | Blanc #FFFFFF | Gris #F5F5F5
   Police  : Poppins
═══════════════════════════════════════════════════════════════ */

:root {
    --violet:       #6B3FA0;
    --violet-dark:  #4e2d78;
    --violet-light: #8a5bbf;
    --white:        #ffffff;
    --gray-light:   #f5f5f5;
    --gray:         #e0e0e0;
    --text:         #333333;
    --text-light:   #666666;
    --green:        #25D366;
    --gold:         #F59E0B;
    --danger:       #dc3545;
    --success:      #28a745;
    --warning:      #ffc107;
    --info:         #17a2b8;
    --radius:       10px;
    --shadow:       0 2px 12px rgba(107,63,160,0.12);
    --transition:   0.2s ease;
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
}
a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--violet-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ─── CONTAINER ─────────────────────────────────────────────── */
.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

/* ─── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
    background: var(--violet);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.nav-inner {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 14px 20px;
}
.brand {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
    flex-shrink: 0;
    margin-right: 8px;
}
.brand:hover { color: #e8d8ff; text-decoration: none; }

/* Liens gauche (Accueil, Les outils, Blog) */
.nav-links-left {
    display: flex;
    list-style: none;
    gap: 2px;
    align-items: center;
    flex: 1;
}

/* Liens droite (auth) */
.nav-links-right {
    display: flex;
    list-style: none;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

/* Styles communs aux deux listes */
.nav-links-left a,
.nav-links-right a {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: var(--radius);
    transition: var(--transition);
    white-space: nowrap;
}
.nav-links-left a:hover,
.nav-links-right a:hover { background: rgba(255,255,255,0.15); text-decoration: none; }

/* Rétrocompat : .nav-links seul (si utilisé ailleurs) */
.nav-links {
    display: flex;
    list-style: none;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.nav-links a {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    padding: 6px 10px;
    border-radius: var(--radius);
    transition: var(--transition);
}
.nav-links a:hover { background: rgba(255,255,255,0.15); text-decoration: none; }
.nav-membres { background: rgba(255,255,255,0.15) !important; }
.btn-nav {
    background: rgba(255,255,255,0.2) !important;
    border: 1px solid rgba(255,255,255,0.4) !important;
}
.btn-nav.btn-primary {
    background: var(--white) !important;
    color: var(--violet) !important;
    font-weight: 600;
}
.nav-toggle {
    display: none;
    background: none; border: none;
    color: var(--white); font-size: 1.5rem;
    cursor: pointer;
}

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(155deg, #1a0e30 0%, #3d1e6e 35%, #6B3FA0 70%, #9966cc 100%);
    color: var(--white);
    padding: 90px 0 110px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(160,100,255,0.22) 0%, transparent 65%);
    top: -200px; right: -120px;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(60,159,255,0.14) 0%, transparent 65%);
    bottom: -120px; left: -80px;
    pointer-events: none;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}
.hero h1 .accent { color: #d8b4fe; }
.hero-sub {
    font-size: 1.05rem;
    opacity: 0.92;
    max-width: 680px;
    margin: 0 auto 28px;
    position: relative;
    z-index: 1;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ─── SECTIONS ───────────────────────────────────────────────── */
.section-light   { background: var(--white);      padding: 70px 0; }
.section-gray    { background: var(--gray-light);  padding: 70px 0; }
.section-purple  { background: linear-gradient(135deg, #1a0e30 0%, #2d1a4a 100%); padding: 80px 0; }
.section-title   { font-size: 2rem; font-weight: 800; margin-bottom: 12px; text-align: center; color: #1a0e30; }
.section-sub     { text-align: center; color: var(--text-light); margin-bottom: 36px; font-size: 1rem; }
.section-title.white, .section-purple p, .section-purple h2 { color: var(--white); }

/* ─── BOUTONS ────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
    text-decoration: none !important;
}
.btn-primary  { background: var(--violet);  color: var(--white); border-color: var(--violet); }
.btn-primary:hover { background: var(--violet-dark); border-color: var(--violet-dark); color: var(--white); }
.btn-outline  { background: transparent; color: var(--violet); border-color: var(--violet); }
.btn-outline:hover { background: var(--violet); color: var(--white); }
.btn-white    { background: var(--white); color: var(--violet); border-color: var(--white); }
.btn-white:hover { background: #f0d9ff; }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); color: var(--white); }
.btn-green    { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-danger   { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-gold     { background: var(--gold); color: #1a1a1a; border-color: var(--gold); font-weight: 700; }
.btn-gold:hover { background: #d97706; border-color: #d97706; color: #1a1a1a; text-decoration: none; }
.btn-lg       { padding: 14px 30px; font-size: 1.05rem; }
.btn-sm       { padding: 6px 14px; font-size: 0.85rem; }
.btn-full     { width: 100%; display: block; }

/* ─── CARDS ──────────────────────────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 24px;
}
.card {
    background: rgba(255,255,255,0.12);
    border: none;
    border-radius: var(--radius);
    padding: 24px;
    color: var(--white);
}
.card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.card p   { font-size: 0.9rem; opacity: 0.9; margin-bottom: 14px; }

/* ─── CHECKLIST ──────────────────────────────────────────────── */
.checklist { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.check-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border: 1.5px solid #e8d8f8;
    border-radius: 12px;
    font-size: 0.97rem;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.check-item:hover {
    border-color: var(--violet);
    box-shadow: 0 4px 14px rgba(107,63,160,0.10);
    transform: translateX(5px);
}
.check-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--violet);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: 1px;
}

/* ─── TEMOIGNAGES ────────────────────────────────────────────── */
.temoignages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 36px;
}
blockquote {
    background: #fff;
    border: 1.5px solid #e8d8f8;
    border-radius: 16px;
    padding: 40px 28px 28px;
    box-shadow: 0 4px 24px rgba(107,63,160,0.07);
    position: relative;
    font-style: normal;
    font-size: 0.97rem;
    line-height: 1.75;
    color: #333;
}
blockquote::before {
    content: '\201C';
    font-size: 5rem;
    line-height: 1;
    color: #e0d0f8;
    position: absolute;
    top: 8px;
    left: 18px;
    font-family: Georgia, serif;
    pointer-events: none;
}
blockquote cite {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f0e6ff;
    font-style: normal;
    font-weight: 600;
    color: var(--violet);
    font-size: 0.9rem;
}
blockquote cite::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--violet);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ─── FORMULAIRES ────────────────────────────────────────────── */
.form-container { max-width: 520px; }
.form-title     { font-size: 1.6rem; margin-bottom: 6px; }
.form-sub       { color: var(--text-light); margin-bottom: 24px; }
.form-card      { background: var(--white); border: 1px solid var(--gray);
                  border-radius: var(--radius); padding: 28px;
                  box-shadow: var(--shadow); margin-bottom: 20px; }
.form-group     { margin-bottom: 18px; }
.form-group label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.compteur { font-weight: 400; font-size: 0.8rem; color: #888; margin-left: 8px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gray);
    border-radius: var(--radius);
    font-size: 0.97rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(107,63,160,0.12);
}
.form-check     { display: flex; align-items: flex-start; gap: 10px; }
.form-check input { width: auto; margin-top: 3px; flex-shrink: 0; }
.form-check label { font-weight: 400; font-size: 0.9rem; }
.form-footer    { text-align: center; margin-top: 14px; font-size: 0.9rem; }
.form-note      { font-size: 0.82rem; color: var(--text-light); margin-top: 10px; text-align: center; }
.form-note-rgpd { font-size: 0.78rem; color: #888; margin-top: 12px; text-align: center; line-height: 1.5; }
.form-note-rgpd a { color: #888; text-decoration: underline; }

/* ─── FLASH MESSAGES ─────────────────────────────────────────── */
.flash-container { padding: 12px 0; }
.alert {
    padding: 12px 18px;
    border-radius: var(--radius);
    margin-bottom: 8px;
    font-size: 0.93rem;
    font-weight: 500;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger  { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.alert-info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ─── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb {
    font-size: 0.87rem;
    color: var(--text-light);
    margin-bottom: 20px;
}
.breadcrumb a { color: var(--violet); }

/* ─── CONSEIL (MEMBRES) ──────────────────────────────────────── */
.conseil-page       { max-width: 760px; }
.conseil-header     { margin-bottom: 28px; }
.conseil-num-lg     { display: block; font-size: 2rem; color: var(--violet); font-weight: 700; }
.conseil-header h1  { font-size: clamp(1.2rem, 3vw, 1.6rem); line-height: 1.4; margin-top: 6px; }
.conseil-body       { line-height: 1.85; }
.conseil-body p     { margin-bottom: 16px; }
.highlight-box {
    background: var(--gray-light);
    border-left: 4px solid var(--violet);
    padding: 16px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 20px 0;
}
.highlight-box.purple { background: #f0e6ff; }
.conseil-nav {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 36px;
    flex-wrap: wrap;
}

/* ─── LISTE CONSEILS ─────────────────────────────────────────── */
.conseils-list      { margin-top: 20px; }
.conseil-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    margin-bottom: 10px;
    text-decoration: none !important;
    color: var(--text);
    transition: var(--transition);
}
.conseil-row:hover  { border-color: var(--violet); background: #f9f4ff; }
.conseil-badge {
    background: var(--violet);
    color: var(--white);
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem;
    flex-shrink: 0;
}
.conseil-label { flex: 1; font-weight: 600; }
.arrow { color: var(--violet); font-size: 1.1rem; }

/* ─── CARD CONSEIL (tableau de bord) ────────────────────────── */
.card-conseil {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    padding: 16px;
    color: var(--text);
    text-decoration: none !important;
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.card-conseil:hover { border-color: var(--violet); transform: translateY(-2px); }
.card-conseil .conseil-num {
    background: var(--violet); color: var(--white);
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}
.card-conseil .conseil-info h3 { font-size: 0.95rem; margin-bottom: 2px; }
.card-conseil .conseil-info p  { font-size: 0.82rem; color: var(--text-light); }
.mon-compte-link { margin-top: 28px; text-align: center; }

/* ─── PAGE HEADER PURPLE ─────────────────────────────────────── */
.page-header-purple {
    background: var(--violet);
    color: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}
.page-header-purple h1 { font-size: 1.4rem; }
.page-header-purple p  { opacity: 0.9; margin-top: 8px; }

/* ─── DANGER ZONE ────────────────────────────────────────────── */
.danger-zone { border-color: var(--danger) !important; }
.danger-zone h2 { color: var(--danger); }

/* ─── CONTACT WHATSAPP ───────────────────────────────────────── */
.contact-whatsapp {
    background: var(--gray-light);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    margin-top: 20px;
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer {
    background: var(--violet-dark);
    color: rgba(255,255,255,0.85);
    padding: 36px 0 0;
    margin-top: 60px;
}
.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    padding-bottom: 28px;
}
.footer-links, .footer-social { display: flex; flex-direction: column; gap: 8px; }
.footer a { color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.footer a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    padding: 14px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
}

/* ─── COOKIE BANNER ──────────────────────────────────────────── */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--violet-dark);
    color: var(--white);
    padding: 16px 20px;
    z-index: 999;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.2);
}
.cookie-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.cookie-content p { font-size: 0.88rem; flex: 1; min-width: 200px; }
.cookie-content a { color: #d8b8ff; }

/* ─── BANDEAU URGENCE PARCOURSUP 2026 ────────────────────────── */
.bandeau-urgence {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    background: #1a1a1a;
    /* Liseré travaux : bandes diagonales noir & jaune */
    border-top:    6px solid transparent;
    border-bottom: 6px solid transparent;
    border-image: repeating-linear-gradient(
        -45deg,
        #f5c400 0px,
        #f5c400 10px,
        #1a1a1a 10px,
        #1a1a1a 20px
    ) 6;
    text-decoration: none !important;
    cursor: pointer;
}
.bandeau-urgence:hover .bandeau-text {
    animation-play-state: paused;
    text-decoration: none;
}
.bandeau-inner {
    display: inline-block;
    animation: bandeau-scroll 16s linear infinite;
    padding: 11px 0;
}
.bandeau-text {
    font-size: 1rem;
    font-weight: 700;
    color: #f5c400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0 40px;
}
@keyframes bandeau-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}

/* ─── FORMULAIRE PARCOURSUP 2026 ─────────────────────────────── */
.parcoursup-badge {
    display: inline-block;
    background: #dc3545;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.form-urgence {
    border: 2px solid #dc3545 !important;
    box-shadow: 0 4px 20px rgba(220,53,69,0.15) !important;
}
.badge-required {
    font-size: 0.75rem;
    font-weight: 600;
    background: #fff3cd;
    color: #856404;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
}
.btn-urgence {
    background: #dc3545;
    color: var(--white);
    border-color: #dc3545;
    font-size: 1.05rem;
    padding: 14px 24px;
    letter-spacing: 0.02em;
}
.btn-urgence:hover {
    background: #b02a37;
    border-color: #b02a37;
    color: var(--white);
    text-decoration: none;
}

/* ─── RESPONSIVE MOBILE ──────────────────────────────────────── */
@media (max-width: 640px) {
    .nav-links-left,
    .nav-links-right {
        display: none;
        flex-direction: column;
        position: absolute;
        left: 0; right: 0;
        background: var(--violet-dark);
        padding: 8px 16px;
        gap: 4px;
        z-index: 200;
    }
    .nav-links-left {
        top: 58px;
    }
    .nav-links-right {
        top: calc(58px + 3 * 40px);  /* en dessous des liens gauche */
        border-top: 1px solid rgba(255,255,255,0.15);
        padding-top: 8px;
    }
    .nav-links-left.open,
    .nav-links-right.open { display: flex; }
    .nav-links.open   { display: flex; }
    .nav-toggle       { display: block; }
    .nav-inner        { position: relative; flex-wrap: wrap; }
    .hero             { padding: 50px 0 60px; }
    .hero-cta         { flex-direction: column; align-items: center; }
    .check-item:hover { transform: none; }
    .cards-grid       { grid-template-columns: 1fr; }
    .temoignages      { grid-template-columns: 1fr; }
    .conseil-nav      { flex-direction: column; }
    .btn-full         { text-align: center; }
    .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-two-col    { grid-template-columns: 1fr; }
    .admin-table      { font-size: 0.82rem; }
    .events-grid      { grid-template-columns: 1fr; }
}

/* ─── BOUTON ADMIN NAVBAR ─────────────────────────────────────── */
.btn-admin-nav {
    background: #f5c400 !important;
    color: #1a1a1a !important;
    border: 1px solid #f5c400 !important;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.btn-admin-nav:hover {
    background: #d4a900 !important;
    color: #1a1a1a !important;
}

/* ─── ADMIN LAYOUT ────────────────────────────────────────────── */
.admin-container { max-width: 1100px; }
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.admin-header h1 { font-size: 1.5rem; margin: 0; }
.admin-sub       { color: var(--text-light); margin: 0; font-size: 0.95rem; }

/* ─── STATS GRID ──────────────────────────────────────────────── */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--white);
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    text-decoration: none !important;
    color: var(--text);
    transition: var(--transition);
}
.stat-card:hover        { border-color: var(--violet); transform: translateY(-2px); }
.stat-card.stat-alert   { border-color: var(--danger); background: #fff5f5; }
.stat-card.stat-neutral { border-color: var(--gray); }
.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--violet);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-card.stat-alert .stat-number { color: var(--danger); }
.stat-label  { font-size: 0.82rem; color: var(--text-light); line-height: 1.3; }

/* ─── ADMIN ACTIONS ───────────────────────────────────────────── */
.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

/* ─── ADMIN TWO-COL ───────────────────────────────────────────── */
.admin-two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 20px;
}

/* ─── ADMIN PANEL ─────────────────────────────────────────────── */
.admin-panel {
    background: var(--white);
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.admin-panel-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 20px 0 12px;
    color: var(--violet);
}
.admin-empty  { color: var(--text-light); font-style: italic; font-size: 0.9rem; }
.admin-empty-block {
    text-align: center;
    padding: 40px;
    background: var(--gray-light);
    border-radius: var(--radius);
    color: var(--text-light);
}

/* ─── BADGE COUNT ─────────────────────────────────────────────── */
.badge-count {
    background: var(--danger);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* ─── ADMIN TABLE ─────────────────────────────────────────────── */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.admin-table-full { width: 100%; }
.admin-table th {
    background: var(--gray-light);
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.82rem;
    border-bottom: 2px solid var(--gray);
}
.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray);
    vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f9f4ff; }
.row-unread td { background: #fffbe6; font-weight: 500; }
.row-past td   { opacity: 0.65; }
.td-id         { color: var(--text-light); font-size: 0.8rem; width: 40px; }
.td-date       { color: var(--text-light); font-size: 0.82rem; white-space: nowrap; }
.td-preview    { color: var(--text-light); font-size: 0.85rem; max-width: 200px; }
.td-message    { font-size: 0.85rem; max-width: 300px; }
.td-actions    { display: flex; gap: 6px; flex-wrap: wrap; }
.text-muted    { color: var(--text-light); }

/* ─── BADGES STATUTS ──────────────────────────────────────────── */
.badge-ok        { background: #d4edda; color: #155724; padding: 3px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }
.badge-danger    { background: #f8d7da; color: #721c24; padding: 3px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }
.badge-warning   { background: #fff3cd; color: #856404; padding: 3px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }
.badge-published { background: #d4edda; color: #155724; padding: 3px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }
.badge-draft     { background: #fff3cd; color: #856404; padding: 3px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }
.badge-past      { background: #e2e3e5; color: #383d41; padding: 3px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }

/* ─── ADMIN FILTERS ───────────────────────────────────────────── */
.admin-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }

/* ─── PAGINATION ──────────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.page-info { font-size: 0.88rem; color: var(--text-light); }

/* ─── MESSAGE ITEM ────────────────────────────────────────────── */
.message-item {
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 10px;
}
.message-header {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: baseline;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.message-body { font-size: 0.9rem; line-height: 1.6; color: var(--text); }

/* ─── FORMULAIRE RECONTACT ────────────────────────────────────── */
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row .form-group { min-width: 180px; }
.form-control-sm { padding: 6px 10px; border: 1.5px solid var(--gray); border-radius: var(--radius); font-family: inherit; }

/* ─── EVENTS GRID (RENCONTRES PUBLIC) ─────────────────────────── */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 8px;
}
.event-card {
    background: var(--white);
    border: 2px solid var(--gray);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--transition);
}
.event-card:hover { border-color: var(--violet); transform: translateY(-2px); }
.event-card.event-full { border-color: #ffc107; background: #fffbe6; }
.event-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    align-self: flex-start;
}
.event-badge-visio       { background: #d1ecf1; color: #0c5460; }
.event-badge-presentiel  { background: #d4edda; color: #155724; }
.event-titre    { font-size: 1.05rem; font-weight: 700; margin: 0; }
.event-thematique { font-size: 0.88rem; color: var(--violet); font-weight: 600; }
.event-precisions { font-size: 0.85rem; color: var(--text-light); }
.event-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.88rem;
    color: var(--text-light);
}
.event-places { margin-top: auto; }
.places-badge { padding: 4px 10px; border-radius: 4px; font-size: 0.82rem; font-weight: 600; }
.places-ok   { background: #d4edda; color: #155724; }
.places-full { background: #fff3cd; color: #856404; }
.empty-events { text-align: center; padding: 50px 0; color: var(--text-light); }
.empty-events p { margin-bottom: 10px; }

/* ─── EVENT RECAP BOX (INSCRIPTION) ──────────────────────────── */
.event-recap-box {
    background: #f0e6ff;
    border: 1px solid #c9a8e8;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 8px;
}
.event-recap-mode   { font-size: 0.85rem; }
.event-recap-titre  { font-size: 1.2rem; font-weight: 700; margin: 8px 0 4px; }
.event-recap-date   { color: var(--text-light); font-size: 0.9rem; }
.event-recap-lieu   { color: var(--text-light); font-size: 0.88rem; }

/* ═══ REPLY PANEL (admin messages) ══════════════════════════════════ */
.modal-row td { padding: 0 !important; }

.reply-panel {
  background: #f9f5ff;
  border: 2px solid #6B3FA0;
  border-radius: 10px;
  padding: 24px 28px;
  margin: 8px 4px 16px;
}
.reply-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.reply-panel-header strong { font-size: 16px; color: #6B3FA0; }
.reply-email {
  background: #ede7f6;
  color: #6B3FA0;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-family: monospace;
}
.reply-close { margin-left: auto; }

.reply-original {
  background: #fff;
  border-left: 3px solid #6B3FA0;
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 20px;
  font-size: 14px;
  color: #555;
}
.reply-original strong { display: block; margin-bottom: 6px; color: #333; }
.reply-original p { margin: 0; line-height: 1.6; }

.reply-form .form-group { margin-bottom: 14px; }
.reply-form label { font-weight: 600; font-size: 13px; color: #444; display: block; margin-bottom: 5px; }
.reply-form .form-control {
  width: 100%;
  border: 1px solid #d0b8f0;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color .2s;
}
.reply-form .form-control:focus {
  outline: none;
  border-color: #6B3FA0;
  box-shadow: 0 0 0 3px rgba(107,63,160,0.12);
}
.reply-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.badge-lu {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* ═══ SECTION OUTILS — PREMIUM (accueil) ═══════════════════════════ */

/* Fond enrichi avec dégradé profond */
.section-outils {
    background: linear-gradient(160deg, #1a0e30 0%, #2d1a4a 25%, #6B3FA0 60%, #8a5bbf 100%);
    padding: 70px 0 80px;
    position: relative;
    overflow: hidden;
}
/* Motif géométrique subtil en arrière-plan */
.section-outils::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,0.04) 0%, transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(200,160,255,0.06) 0%, transparent 50%);
    pointer-events: none;
}

/* Titre avec ligne décorative */
.outils-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}
.outils-section-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    margin-bottom: 12px;
}
.outils-title-line {
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #FFD000, #3C9FFF, #1EC87A);
    border-radius: 3px;
    margin: 0 auto 40px;
}

/* Grille 3 colonnes */
.outils-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 28px;
}

/* ─── Card Outil — Glassmorphism ─────────────────────────────── */
.card-outil {
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 0;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card-outil:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    border-color: rgba(255,255,255,0.25);
}

/* Barre colorée en haut de chaque card */
.card-outil-bar {
    height: 4px;
    width: 100%;
}
.card-outil-gold .card-outil-bar  { background: linear-gradient(90deg, #FFD000, #ffe066); }
.card-outil-blue .card-outil-bar  { background: linear-gradient(90deg, #3C9FFF, #7ec8ff); }
.card-outil-green .card-outil-bar { background: linear-gradient(90deg, #1EC87A, #5eebb0); }

/* Contenu interne */
.card-outil-body {
    padding: 28px 24px;
}
.card-outil-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: #fff;
}
.card-outil-body p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.88);
    margin-bottom: 16px;
}

/* Icône ronde flottante */
.card-outil-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.card-outil-gold .card-outil-icon  { background: rgba(255,208,0,0.18); }
.card-outil-blue .card-outil-icon  { background: rgba(60,159,255,0.18); }
.card-outil-green .card-outil-icon { background: rgba(30,200,122,0.18); }

/* Filigrane subtil en bas à droite */
.card-outil::before {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.08;
    pointer-events: none;
}
.card-outil-gold::before  { background: #FFD000; width: 150px; height: 150px; }
.card-outil-blue::before  { background: #3C9FFF; }
.card-outil-green::before { background: #1EC87A; }

/* Boutons dans les cards */
.card-outil .btn-white {
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: background .2s, transform .15s;
}
.card-outil .btn-white:hover {
    transform: scale(1.03);
}

/* ─── Card Blog — pleine largeur, premium ────────────────────── */
.card-outil-blog {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    padding: 0;
    margin-top: 0;
    overflow: hidden;
}
.card-outil-blog .card-outil-bar {
    background: linear-gradient(90deg, #c084fc, #a855f7, #7c3aed);
}
.card-outil-blog .card-outil-body {
    padding: 28px 28px 20px;
}
.blog-card-top {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 20px;
}
.blog-card-text { flex: 1; }
.blog-card-text h3 { margin-bottom: 10px; }
.blog-card-text p  { margin-bottom: 0; }
.blog-card-cta {
    flex-shrink: 0;
    align-self: center;
}
.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.10);
}
.blog-tag {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.9);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    white-space: nowrap;
    transition: background .2s, border-color .2s;
}
.blog-tag:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.35);
}

/* Responsive outils */
@media (max-width: 768px) {
    .section-outils { padding: 50px 0 60px; }
    .outils-grid { grid-template-columns: 1fr; }
    .outils-section-title { font-size: 1.6rem; }
    .blog-card-top { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ═══ HERO — accents 3e / Parcoursup ════════════════════════════════ */
.accent-3e {
    color: #3C9FFF;
    font-size: 1.08em;
}
.accent-parcoursup {
    color: #1EC87A;
    font-size: 1.08em;
}


/* ===== ADMIN HUB (dashboard 3 entrees) ===== */
.admin-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 28px 0 24px;
}
@media (max-width: 768px) {
    .admin-hub-grid { grid-template-columns: 1fr; }
}
.admin-hub-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    border-radius: 14px;
    background: #fff;
    border: 2px solid #e8d8f8;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    gap: 6px;
}
.admin-hub-card:hover {
    border-color: #6B3FA0;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(107,63,160,0.15);
}
.admin-hub-card.hub-alert {
    border-color: #e74c3c;
    background: #fff5f5;
}
.admin-hub-card.hub-alert:hover { border-color: #c0392b; }
.hub-icon { font-size: 2.2rem; line-height: 1; }
.hub-title { font-size: 1.15rem; font-weight: 700; color: #2d1a4a; letter-spacing: 0.03em; }
.hub-sub { font-size: 0.82rem; color: #888; margin: 0; }
.hub-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    background: #e74c3c;
    color: #fff;
}
.hub-badge.hub-badge-ok { background: #1EC87A; }
.hub-badge.hub-badge-neutral { background: #6B3FA0; color: #fff; }

/* Admin stats row */
.admin-stats-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #e8d8f8;
    border-radius: 10px;
    min-width: 80px;
}
.stat-mini-num { font-size: 1.4rem; font-weight: 700; color: #6B3FA0; }
.stat-mini-label { font-size: 0.72rem; color: #888; text-align: center; }
.stat-mini.stat-mini-neutral .stat-mini-num { color: #3C9FFF; }

/* ===== ADMIN TABS ===== */
.admin-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e8d8f8;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.admin-tab {
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    border-radius: 8px 8px 0 0;
    border: 1px solid transparent;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.admin-tab:hover { color: #6B3FA0; background: #f9f4ff; }
.admin-tab.tab-active {
    color: #6B3FA0;
    background: #fff;
    border-color: #e8d8f8 #e8d8f8 #fff;
    font-weight: 600;
}
.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e74c3c;
    color: #fff;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
}

/* ===== RENCONTRES CARDS (vue a venir) ===== */
.rencontres-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 8px;
}
.rencontre-card {
    background: #fff;
    border: 2px solid #e8d8f8;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rencontre-card.rencontre-card-full { border-color: #e74c3c; background: #fff5f5; }
.rencontre-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.rencontre-date { font-weight: 700; color: #6B3FA0; font-size: 0.95rem; }
.rencontre-heure { font-size: 0.85rem; color: #888; }
.rencontre-card-titre { font-size: 1rem; font-weight: 700; color: #2d1a4a; }
.rencontre-card-sub { font-size: 0.82rem; color: #888; }
.rencontre-card-stats { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rencontre-mode { font-size: 0.82rem; color: #666; }
.rencontre-card-actions { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }

/* Event info panel */
.event-info-panel { background: #f9f4ff; border: 1px solid #c9a8e8; margin-bottom: 20px; }
.event-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

/* ===== INSCRIPTION CONTEXTE (banniere ressource gratuite) ===== */
.inscription-contexte {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: linear-gradient(135deg, #f0f8ff, #f9f4ff);
    border: 1.5px solid #b8d4f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.inscription-contexte-icon { font-size: 1.8rem; flex-shrink: 0; line-height: 1; }
.inscription-contexte strong { color: #2d1a4a; font-size: 1rem; }

/* ═══ FAQ ═══════════════════════════════════════════════════════════ */
.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1.5px solid #e8d8f8;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.faq-item[open] {
    box-shadow: 0 4px 16px rgba(107, 63, 160, 0.10);
    border-color: #c9a8e8;
}

.faq-question {
    padding: 18px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #2d1a4a;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    user-select: none;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: #6B3FA0;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px 20px;
    border-top: 1px solid #f0e6ff;
}

.faq-answer p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
    margin: 12px 0 0;
}

.faq-answer p:first-child {
    margin-top: 14px;
}

@media (max-width: 600px) {
    .faq-question {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
    .faq-answer {
        padding: 0 16px 16px;
    }
}

/* ═══ PAGES LÉGALES ══════════════════════════════════════════════ */
.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 20px 60px;
}

.legal-page h1 {
    font-size: 1.8rem;
    color: #2d1a4a;
    margin-bottom: 8px;
}

.legal-intro {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8d8f8;
}

.legal-page h2 {
    font-size: 1.1rem;
    color: #6B3FA0;
    margin: 32px 0 10px;
}

.legal-page p {
    color: #444;
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-page ul {
    margin: 8px 0 16px 20px;
    color: #444;
    line-height: 1.7;
}

.legal-page ul li {
    margin-bottom: 6px;
}

.legal-page a {
    color: #6B3FA0;
    text-decoration: underline;
}

.legal-back {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e8d8f8;
}

/* Footer links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links a {
    font-size: 0.88rem;
}

/* ═══ RGPD CONSENT BLOCK (inscription) ══════════════════════════ */
.rgpd-consent-block {
    background: #f9f4ff;
    border: 1.5px solid #c9a8e8;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.rgpd-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
}

.rgpd-consent-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #6B3FA0;
    cursor: pointer;
}

.rgpd-consent-label span {
    font-size: 0.88rem;
    color: #444;
    line-height: 1.6;
}

.rgpd-consent-label span a {
    color: #6B3FA0;
    text-decoration: underline;
    font-weight: 600;
}

.rgpd-note {
    font-size: 0.78rem;
    color: #888;
    margin: 10px 0 0;
    line-height: 1.5;
}

/* ═══ BADGE COMPTEUR QUESTIONS (admin) ══════════════════════════ */
.badge-question-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc3545;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    margin-left: 6px;
    vertical-align: middle;
    line-height: 1;
    flex-shrink: 0;
}
