/* ============================================================
   MedTermin — Cadre des pages publiques (vitrine)
   Même langage que les espaces connectés (app-shell.css) :
   cadre bleu nuit, en-tête clair sur fond sombre, contenu posé
   dans un grand panneau arrondi, pied de page sur le cadre.
   Utilisé avec public/_site_header.html et public/_site_footer.html.
   Chargé APRÈS design-system.css et APRÈS le <style> de la page
   (les règles sont préfixées par body.site pour l'emporter).
   ============================================================ */

:root {
    --frame: radial-gradient(120% 70% at 0% 0%, #23466F 0%, #16304F 45%, #0E2138 100%);
    --panel: #F5F7FA;
    --line: #E3E8EE;
    --on-dark: rgba(255, 255, 255, .72);
    --on-dark-dim: rgba(255, 255, 255, .45);
}

body.site { background: #16304F var(--frame); color: var(--ink); min-height: 100vh; margin: 0; padding: 0; display: block; }

/* Neutralise les règles globales des pages historiques (header {…}, nav {…},
   footer {…}) qui s'appliqueraient sinon à l'en-tête et au pied partagés. */
body.site header.site-header { position: static; top: auto; width: auto; height: auto; padding: 0; margin: 0; box-shadow: none; display: block; z-index: auto; }
body.site .site-header nav { position: static; background: none; padding: 0; box-shadow: none; border: 0; height: auto; width: auto; backdrop-filter: none; }
body.site footer.site-footer { background: transparent; text-align: left; font-size: inherit; color: inherit; }

/* ── En-tête sur le cadre sombre ─────────────────────────── */
body.site header.site-header { position: static; background: transparent; border: 0; backdrop-filter: none; }
body.site .header-inner { max-width: none; padding: 0 36px; height: 76px; }
body.site .logo { text-decoration: none; }
body.site .logo-word { color: #fff; }
body.site .logo-word .accent { color: var(--gold-light); }
body.site .logo-mark { filter: none; }
body.site .site-header nav { gap: 26px; }
body.site .nav-link { color: var(--on-dark); text-decoration: none; }
body.site .nav-link:hover, body.site .nav-link.active { color: #fff; }
body.site .lang-switch { display: flex; gap: 2px; align-items: center; border: 0; border-radius: 999px; padding: 3px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
body.site .lang-switch a { padding: 4px 9px; border-radius: 999px; font-size: .72rem; font-weight: 600; text-decoration: none; color: var(--on-dark-dim); font-family: 'IBM Plex Mono', monospace; }
body.site .lang-switch a.active { background: #fff; color: var(--ink); }
body.site .lang-switch a:hover:not(.active) { color: #fff; }
body.site .btn-nav { border-radius: 999px; background: transparent; border: 1px solid rgba(255,255,255,.22); color: #fff; display: inline-flex; align-items: center; gap: 8px; }
body.site .btn-nav:hover { border-color: #fff; color: #fff; }
body.site .site-header .btn-primary { background: var(--grad-gold); color: #2A1E07; box-shadow: none; }
/* Dimensions verrouillées : certaines pages donnent .btn-primary { width: 100% } à leurs formulaires. */
body.site .site-header nav { flex-wrap: nowrap; }
body.site .site-header .nav-link, body.site .site-header .btn-nav, body.site .site-header .btn-primary { white-space: nowrap; width: auto; margin: 0; flex: none; }
body.site .site-header .btn-primary { display: inline-flex; align-items: center; padding: 7px 14px; font-size: .82rem; font-weight: 600; border-radius: 999px; transform: none; }
body.site .site-header .btn-nav { padding: 9px 18px; font-size: .875rem; font-weight: 600; }
body.site .user-chip { width: 22px; height: 22px; border-radius: 50%; background: var(--grad-gold); color: #2A1E07; display: grid; place-items: center; font-size: .62rem; font-weight: 700; }

body.site .btn-primary, body.site .btn-outline { border-radius: 999px; }

/* ── Panneau de contenu ─────────────────────────────────── */
body.site .panel {
    margin: 0 14px;
    background: var(--panel);
    border-radius: 30px;
    /* clip (et non hidden) : garde les coins arrondis sans casser position: sticky */
    overflow: clip;
    box-shadow: 0 40px 80px -40px rgba(0,0,0,.55);
    min-height: calc(100vh - 76px - 14px);
    position: relative; /* repère des éléments en absolu des pages (ex. bandeau de la fiche médecin) */
}
/* Pages au thème sombre (tarifs pro, paiements) : même cadre, panneau sombre. */
body.site .panel.panel-dark { background: #0B0F19; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.06); }

/* Pages à carte unique (connexion, inscription, invitation) : contenu centré. */
body.site .panel.panel-center { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 20px; }

/* Cartes et champs : version « douce », comme dans les espaces connectés */
body.site .panel .card { border-radius: 22px; border-color: var(--line); }

/* ── Pied de page sur le cadre sombre ───────────────────── */
body.site footer.site-footer { border: 0; margin: 0; padding: 52px 0 30px; }
body.site footer.site-footer .wrap { max-width: none; padding: 0 36px; }
body.site .footer-brand .logo { display: flex; align-items: center; gap: 11px; }
body.site .footer-brand p { color: var(--on-dark-dim); }
body.site .footer-col .t { font-family: inherit; font-size: .76rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--on-dark-dim); }
body.site .footer-col a { color: var(--on-dark); }
body.site .footer-col a:hover { color: #fff; }
body.site .footer-bottom { border-top-color: rgba(255,255,255,.1); color: var(--on-dark-dim); }

@media (max-width: 900px) {
    body.site .site-header nav .nav-link, body.site .site-header .btn-nav.hide-sm { display: none; }
    body.site .header-inner { padding: 0 18px; height: 64px; }
    body.site .site-header nav { gap: 12px; }
    body.site .panel { margin: 0 8px; border-radius: 22px; }
    body.site .footer-grid { grid-template-columns: 1fr 1fr; }
    body.site footer.site-footer .wrap { padding: 0 20px; }
}
@media (max-width: 480px) {
    body.site .site-header .logo-word { display: none; }
    body.site .lang-switch a { padding: 4px 7px; }
}
