/* ============================================================
   theme-pages.css — Pages publiques simples, univers spatial
   ContactM.html, cgv.html, inscriptionMC.php, connexionMC.php
   À charger APRÈS theme-base.css (et theme-formulaires.css pour
   inscription / connexion). Les noms de classes d'origine sont gardés.
   ============================================================ */

/* ---------- Mise en page commune ---------- */
body.theme-base { display: flex; flex-direction: column; min-height: 100vh; }
body.theme-base main, body.theme-base .page-main { flex: 1 0 auto; }

/* Bouton pilule du header (Contact / CGV) */
body.theme-base .header-pill-btn {
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none;
    font-family: var(--hud); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--text); background: rgba(34, 211, 238, .08);
    border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 18px;
    transition: border-color .2s, box-shadow .2s, color .2s;
}
body.theme-base .header-pill-btn svg { width: 16px; height: 16px; color: var(--neon); flex-shrink: 0; }
body.theme-base .header-pill-btn:hover { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 16px rgba(245, 200, 66, .25); }

/* Barre de console en tête de carte (même dessin que theme-formulaires.css) */
.page-bar {
    display: flex; align-items: center; gap: 10px; text-align: left;
    margin: -40px -40px 30px; padding: 11px 18px;
    background: linear-gradient(90deg, rgba(34,211,238,.16), rgba(34,211,238,.03));
    border-bottom: 1px solid rgba(34,211,238,.25);
    font-family: var(--hud); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--neon);
}
.page-bar .dots { display: inline-flex; gap: 5px; }
.page-bar .dots i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.page-bar .dots i:nth-child(1) { background: var(--hot); }
.page-bar .dots i:nth-child(2) { background: var(--gold); }
.page-bar .dots i:nth-child(3) { background: var(--ok); }

/* Panneau de console (contact, CGV) */
body.theme-base :is(.profile-card, .content-card) {
    position: relative; overflow: hidden; color: var(--text);
    padding: 40px; border-radius: 18px;
    background:
        repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px),
        linear-gradient(180deg, rgba(22,32,78,.95), rgba(9,14,38,.97));
    border: 1px solid rgba(34,211,238,.35);
    box-shadow: 0 0 40px rgba(34,211,238,.12), 0 24px 60px rgba(0,0,0,.55);
    animation: pgIn .45s ease both;
}
@keyframes pgIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
body.theme-base :is(.contact-container, .container) { width: 100%; max-width: 900px; margin: 0 auto; padding: 36px 16px 60px; }

/* Pied de page simple */
body.theme-base > footer:not(.site-footer) {
    margin-top: auto; padding: 18px 16px; text-align: center;
    background: rgba(5, 8, 22, .7); border-top: 1px solid var(--line);
    color: var(--muted); font-size: 14px; font-weight: 700;
}
body.theme-base > footer:not(.site-footer) p { margin: 0; text-align: center; }
body.theme-base > footer:not(.site-footer) a { color: var(--gold); text-decoration: none; font-weight: 800; }
body.theme-base > footer:not(.site-footer) a:hover { text-decoration: underline; }

/* ======================= CONTACT ======================= */
body.theme-base .profile-card { text-align: center; }
body.theme-base .profile-header { margin-bottom: 26px; }
body.theme-base .contact-image {
    width: 170px; height: 170px; border-radius: 50%; object-fit: cover; display: block; margin: 6px auto 18px;
    border: 3px solid var(--gold);
    box-shadow: 0 0 0 8px rgba(245, 200, 66, .08), 0 0 36px rgba(245, 200, 66, .35);
}
body.theme-base .profile-name { margin: 10px 0 6px; font-family: var(--hud); font-weight: 900; font-size: clamp(1.4rem, 5vw, 1.9rem); color: #fff; letter-spacing: .03em; }
body.theme-base .profile-title { margin: 0 0 20px; color: var(--muted); font-size: 16px; font-weight: 700; }
body.theme-base .contact-details { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
body.theme-base .contact-item {
    display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 12px;
    background: rgba(5, 8, 22, .6); border: 1px solid var(--line); font-size: 16px; font-weight: 800; color: var(--text);
}
body.theme-base .contact-item i { color: var(--neon); font-size: 18px; }
body.theme-base .contact-item a { color: #fff !important; text-decoration: none; font-weight: 800 !important; }
body.theme-base .contact-item a:hover { color: var(--gold) !important; }

body.theme-base .section-title {
    margin: 26px 0 16px; text-align: center;
    font-family: var(--hud); font-size: 14px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--neon);
}
body.theme-base .section-title::after { content: ''; display: block; width: 60px; height: 2px; margin: 10px auto 0; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* Parcours = journal de bord */
body.theme-base .parcours-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: rgba(5, 8, 22, .55); }
body.theme-base .parcours-table th {
    padding: 13px 16px; text-align: left; color: var(--gold);
    font-family: var(--hud); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    background: rgba(34, 211, 238, .1); border-bottom: 1px solid var(--line);
}
body.theme-base .parcours-table td { padding: 14px 16px; text-align: left; color: var(--text); font-size: 15px; font-weight: 700; border-bottom: 1px dashed rgba(34, 211, 238, .18); }
body.theme-base .parcours-table tr:last-child td { border-bottom: 0; }
body.theme-base .parcours-table tbody tr:hover { background: rgba(34, 211, 238, .06); }
body.theme-base .parcours-table td:first-child { color: var(--neon); font-weight: 900; white-space: nowrap; }

/* ======================= CGV ======================= */
body.theme-base .content-card h1 {
    margin: 0 0 10px; text-align: center; font-family: var(--hud); font-weight: 900; color: #fff;
    font-size: clamp(1.3rem, 5vw, 1.8rem); letter-spacing: .03em;
}
body.theme-base .content-card h1::after { content: ''; display: block; width: 60px; height: 2px; margin: 14px auto 0; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
body.theme-base .content-card h2 {
    margin: 36px 0 18px; padding: 10px 14px; border-radius: 10px;
    font-family: var(--hud); font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
    background: rgba(245, 200, 66, .06); border-left: 3px solid var(--gold);
}
body.theme-base .content-card h2 i { color: var(--gold); margin-right: 8px; }
body.theme-base .content-card h3 { margin: 26px 0 12px; color: #fff; font-size: 18px; font-weight: 900; }
body.theme-base .content-card p { margin: 14px 0; font-size: 15.5px; line-height: 1.8; text-align: left; color: var(--text); }
body.theme-base .content-card ul { margin: 14px 0; padding-left: 24px; line-height: 1.8; text-align: left; }
body.theme-base .content-card li { margin: 8px 0; color: var(--text); }
body.theme-base .content-card li::marker { color: var(--neon); }
body.theme-base .content-card strong { color: #fff; }
body.theme-base .content-card a { color: var(--neon); font-weight: 800; text-decoration: none; }
body.theme-base .content-card a:hover { color: var(--gold); text-decoration: underline; }
body.theme-base .info-box { margin: 18px 0; padding: 20px 22px; border-radius: 14px; background: rgba(5, 8, 22, .6); border: 1px solid var(--line); }
body.theme-base .info-box p { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 10px 0; font-size: 15.5px; }
body.theme-base .info-box strong { min-width: 190px; display: inline-block; color: var(--muted); font-weight: 800; }
body.theme-base .info-box i { width: 24px; color: var(--neon); font-size: 17px; }
body.theme-base .info-box span[style] { margin-left: 34px !important; color: var(--text); }
body.theme-base .highlight { margin: 18px 0; padding: 14px 18px; border-radius: 12px; background: rgba(245, 200, 66, .07); border: 1px solid rgba(245, 200, 66, .4); border-left: 4px solid var(--gold); }
body.theme-base .highlight i { color: var(--gold); }
body.theme-base .section-number {
    display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border-radius: 50%;
    font-family: var(--hud); font-size: 13px; font-weight: 900; color: #0B1A4A;
    background: radial-gradient(circle at 35% 30%, #fff 0 6%, #ffd85a 35%, #c9961a 100%);
    box-shadow: 0 0 12px rgba(245, 200, 66, .5);
}
body.theme-base .maj-note { text-align: center !important; color: var(--muted) !important; font-style: italic; font-size: 14px !important; margin-top: 30px; }

/* ======================= INSCRIPTION / CONNEXION ======================= */
body.theme-base .page-main { display: flex; justify-content: center; align-items: flex-start; padding: 34px 16px 40px; }
body.theme-base .form-container .welcome-text { margin: 0 0 24px; color: var(--muted); font-size: 16px; font-weight: 700; }
/* Messages d'erreur / de succès du serveur */
body.theme-base .form-container :is(p.error, p.success) {
    display: flex; align-items: center; gap: 10px; text-align: left; margin: 0 30px 20px; padding: 12px 14px; border-radius: 12px; font-size: 15px; font-weight: 800;
}
body.theme-base .form-container p.error   { background: rgba(255,77,109,.1); color: #ffc2cd; border: 1px solid rgba(255,77,109,.55); }
body.theme-base .form-container p.error i { color: var(--hot); }
body.theme-base .form-container p.success { background: rgba(62,240,138,.1); color: #b9ffd4; border: 1px solid rgba(62,240,138,.5); }
body.theme-base .form-container p.success i { color: var(--ok); }
/* Icône du champ + œil du mot de passe */
body.theme-base .input-group > i + input { padding-left: 44px; }
body.theme-base .input-group .toggle-password { position: absolute; left: auto; right: 16px; top: 42px; color: #6b7aa8; font-size: 16px; cursor: pointer; pointer-events: auto; z-index: 2; }
body.theme-base .input-group .toggle-password:hover { color: #1E40AF; }
body.theme-base .input-group:has(.toggle-password) input { padding-right: 46px; }
/* Critères du mot de passe */
body.theme-base .password-criteria { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 9px 2px 0; font-size: 12.5px; font-weight: 700; color: var(--muted); }
body.theme-base .password-criteria i { font-size: 6px; vertical-align: middle; margin-right: 5px; color: var(--neon); }
/* Essai gratuit : bandeau or */
body.theme-base .trial-banner {
    margin: 4px 0 22px; padding: 14px 16px; border-radius: 14px; text-align: center;
    background: linear-gradient(90deg, rgba(245, 200, 66, .16), rgba(245, 200, 66, .05));
    border: 1px solid rgba(245, 200, 66, .55); box-shadow: 0 0 24px rgba(245, 200, 66, .12);
}
body.theme-base .trial-title { margin: 0 0 4px; font-size: 17px; font-weight: 900; color: var(--gold); }
body.theme-base .trial-sub { margin: 0; font-size: 13px; font-weight: 700; color: var(--text); }
/* Liens sous le formulaire */
body.theme-base :is(.already-member, .forgot-password) { margin: 18px 0 0; font-size: 14.5px; font-weight: 700; color: var(--muted); }
body.theme-base :is(.already-member, .forgot-password) a { color: var(--neon); font-weight: 800; text-decoration: none; }
body.theme-base :is(.already-member, .forgot-password) a:hover { color: var(--gold); }
body.theme-base .forgot-password a { color: var(--muted); }
/* Séparateur « OU » */
body.theme-base .form-container .divider-ou {
    display: flex; align-items: center; height: auto; margin: 24px 30px; background: none;
    font-family: var(--hud); font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--muted);
}
body.theme-base .form-container .divider-ou::before,
body.theme-base .form-container .divider-ou::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(34,211,238,.45), transparent); }
body.theme-base .form-container .divider-ou::before { margin-right: 14px; }
body.theme-base .form-container .divider-ou::after  { margin-left: 14px; }
/* Créer un compte : bouton secondaire néon */
body.theme-base .inscription-text { margin: 0 0 12px; font-size: 15px; font-weight: 800; color: #fff; }
body.theme-base .inscription-text i { color: var(--gold); }
body.theme-base .btn-inscription {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
    padding: 14px 20px; border-radius: 14px; text-decoration: none;
    font-family: var(--hud); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--neon); background: rgba(34, 211, 238, .08); border: 1.5px solid rgba(34, 211, 238, .55);
    transition: background .2s, box-shadow .2s;
}
body.theme-base .btn-inscription:hover { background: rgba(34, 211, 238, .16); box-shadow: 0 0 20px rgba(34, 211, 238, .35); }

/* ======================= RESPONSIVE ======================= */
@media (max-width: 768px) {
    body.theme-base :is(.profile-card, .content-card) { padding: 28px 18px; }
    .page-bar { margin: -28px -18px 24px; }
    body.theme-base .contact-image { width: 140px; height: 140px; }
    body.theme-base .contact-details { flex-direction: column; align-items: center; }
    body.theme-base .info-box strong { min-width: 0; display: inline; margin-right: 4px; }
    body.theme-base .info-box p { display: block; }
    body.theme-base .info-box p i { margin-right: 6px; }
    body.theme-base .info-box span[style] { margin-left: 0 !important; }
    body.theme-base .parcours-table :is(th, td) { padding: 10px 12px; font-size: 14px; }
}
@media (max-width: 480px) {
    body.theme-base .header-pill-btn { padding: 8px 13px; font-size: 10px; letter-spacing: .1em; }
    body.theme-base .form-container .divider-ou { margin: 22px 18px; }
    body.theme-base .form-container :is(p.error, p.success) { margin: 0 18px 18px; }
}
@media (prefers-reduced-motion: reduce) { body.theme-base :is(.profile-card, .content-card) { animation: none; } }
