/* =========================================================================
   SauverLaVie — feuille de style
   Palette : petrole #0E5A6F · turquoise #22A6B3 · corail #F25F5C
   Titres Manrope · Texte Inter
   ========================================================================= */

/* --- Polices auto-hebergees ------------------------------------------------ */
@font-face {
    font-family: 'Inter';
    font-style: normal; font-weight: 400; font-display: swap;
    src: url('../fonts/inter-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal; font-weight: 500; font-display: swap;
    src: url('../fonts/inter-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal; font-weight: 600; font-display: swap;
    src: url('../fonts/inter-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Manrope';
    font-style: normal; font-weight: 600; font-display: swap;
    src: url('../fonts/manrope-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Manrope';
    font-style: normal; font-weight: 700; font-display: swap;
    src: url('../fonts/manrope-700.woff2') format('woff2');
}

/* --- Jetons de design ------------------------------------------------------ */
:root {
    --c-primary: #0E5A6F;
    --c-primary-dark: #0A4757;
    --c-primary-tint: #E6F0F2;
    --c-secondary: #22A6B3;
    --c-action: #F25F5C;
    --c-action-dark: #DE4B48;

    --c-bg: #FAFAF8;
    --c-surface: #FFFFFF;
    --c-border: #E7E6E0;
    --c-ink: #2C2F33;
    --c-muted: #6A727C;

    --c-amber: #B77913;
    --c-amber-bg: #FBF0DA;
    --c-grey: #7A828C;
    --c-grey-bg: #EEEEEA;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(20, 40, 50, .06), 0 1px 3px rgba(20, 40, 50, .05);
    --shadow-md: 0 4px 16px rgba(14, 90, 111, .10);
    --sidebar-w: 256px;

    --font-title: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* --- Reset leger ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    color: var(--c-ink);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font-title); margin: 0; line-height: 1.2; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.icon { display: block; }

.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--c-surface); padding: 10px 14px; border-radius: var(--radius-sm);
    z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* --- Marque ---------------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--c-secondary); color: #fff;
}
.brand-name { font-family: var(--font-title); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.brand-lg .brand-mark { width: 46px; height: 46px; border-radius: 13px; }
.brand-lg .brand-name { font-size: 1.5rem; color: #fff; }

/* =========================================================================
   SHELL ADMINISTRATION
   ========================================================================= */
body.app { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
    background: linear-gradient(180deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
    color: rgba(255, 255, 255, .82);
    display: flex; flex-direction: column;
    padding: 22px 16px;
    position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { padding: 6px 8px 22px; }
.sidebar .brand-name { color: #fff; }

.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, .82); font-weight: 500; font-size: .95rem;
    position: relative;
}
a.nav-link:hover { background: rgba(255, 255, 255, .08); text-decoration: none; color: #fff; }
.nav-link.is-active { background: rgba(255, 255, 255, .14); color: #fff; }
.nav-link.is-active::before {
    content: ''; position: absolute; left: -16px; top: 8px; bottom: 8px;
    width: 3px; border-radius: 0 3px 3px 0; background: var(--c-secondary);
}
.nav-link.is-disabled { opacity: .55; cursor: default; }
.nav-icon { display: inline-flex; opacity: .95; }
.nav-label { flex: 1; }
.nav-soon {
    font-size: .66rem; text-transform: uppercase; letter-spacing: .04em;
    background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .9);
    padding: 2px 6px; border-radius: 999px;
}

.sidebar-foot { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 14px; margin-top: 8px; }
.who { display: flex; flex-direction: column; padding: 0 8px 12px; }
.who-role { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255, 255, 255, .6); }
.who-email { font-size: .86rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-logout {
    display: flex; align-items: center; gap: 10px; width: 100%;
    background: rgba(255, 255, 255, .06); color: #fff;
    border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-sm);
    padding: 9px 12px; font: inherit; font-weight: 500; cursor: pointer;
}
.btn-logout:hover { background: rgba(255, 255, 255, .13); }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 32px; border-bottom: 1px solid var(--c-border); background: var(--c-surface);
    position: sticky; top: 0; z-index: 10;
}
.page-title { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
.content { padding: 28px 32px 56px; max-width: 1100px; width: 100%; }

/* --- Messages flash -------------------------------------------------------- */
.flashes { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.flash {
    padding: 12px 16px; border-radius: var(--radius-sm); font-size: .92rem;
    border: 1px solid transparent;
}
.flash-success { background: var(--c-primary-tint); color: var(--c-primary-dark); border-color: #C9E2E6; }
.flash-error { background: #FDE9E8; color: var(--c-action-dark); border-color: #F6C9C7; }
.flash-warning { background: var(--c-amber-bg); color: var(--c-amber); border-color: #F0DDB5; }

/* --- En-tete de contenu (filtres + CTA) ------------------------------------ */
.content-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 500;
    background: var(--c-surface); border: 1px solid var(--c-border); color: var(--c-muted);
}
.chip:hover { text-decoration: none; border-color: var(--c-secondary); color: var(--c-primary); }
.chip.is-active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.chip-count { font-size: .78rem; background: rgba(0, 0, 0, .08); padding: 1px 7px; border-radius: 999px; }
.chip.is-active .chip-count { background: rgba(255, 255, 255, .22); }

/* --- Boutons --------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: var(--radius-sm);
    font-family: var(--font-title); font-weight: 600; font-size: .92rem;
    border: 1px solid transparent; cursor: pointer; line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--c-action); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--c-action-dark); color: #fff; }
.btn-ghost { background: var(--c-surface); border-color: var(--c-border); color: var(--c-ink); }
.btn-ghost:hover { border-color: var(--c-muted); color: var(--c-ink); }
.btn-block { width: 100%; }

/* --- Cartes / tableaux ----------------------------------------------------- */
.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-pad { padding: 24px; }
.card-form { padding: 8px 28px 28px; max-width: 760px; }

.table { width: 100%; border-collapse: collapse; }
.table thead th {
    text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em;
    color: var(--c-muted); font-weight: 600; padding: 14px 18px; border-bottom: 1px solid var(--c-border);
    background: #FCFCFB;
}
.table tbody td { padding: 15px 18px; border-bottom: 1px solid var(--c-border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #FCFCFB; }
.cell-strong { display: block; font-weight: 600; color: var(--c-ink); }
.cell-sub { display: block; font-size: .8rem; color: var(--c-muted); }
.cell-mono { font-variant-numeric: tabular-nums; color: var(--c-muted); }
.col-actions { text-align: right; white-space: nowrap; }

/* --- Etiquettes / badges --------------------------------------------------- */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 500; color: var(--c-primary); }
.tag-soft { color: var(--c-muted); }
.badge {
    display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px;
    font-size: .78rem; font-weight: 600;
}
.badge-actif { background: var(--c-primary-tint); color: var(--c-primary-dark); }
.badge-suspendu { background: var(--c-amber-bg); color: var(--c-amber); }
.badge-archive { background: var(--c-grey-bg); color: var(--c-grey); }

/* --- Actions de ligne ------------------------------------------------------ */
.row-actions { display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; }
.inline { display: inline; margin: 0; }
.btn-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: var(--radius-sm);
    background: transparent; border: 1px solid transparent; color: var(--c-muted); cursor: pointer;
}
.btn-icon:hover { background: var(--c-primary-tint); color: var(--c-primary); border-color: transparent; text-decoration: none; }
.btn-icon-danger:hover { background: #FDE9E8; color: var(--c-action-dark); }

/* --- Etat vide ------------------------------------------------------------- */
.empty { text-align: center; padding: 64px 24px; background: var(--c-surface); border: 1px dashed var(--c-border); border-radius: var(--radius); }
.empty-title { font-family: var(--font-title); font-weight: 700; font-size: 1.1rem; margin: 0 0 4px; }
.empty-text { color: var(--c-muted); margin: 0 0 20px; }

/* --- Formulaires ----------------------------------------------------------- */
.form { display: flex; flex-direction: column; }
.form-section { padding: 22px 0; border-bottom: 1px solid var(--c-border); }
.form-section:last-of-type { border-bottom: none; }
.form-section-title { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.form-section-hint { color: var(--c-muted); font-size: .88rem; margin: 0 0 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 500; font-size: .9rem; color: var(--c-ink); }
input[type=text], input[type=email], input[type=password], input[type=url],
input[type=datetime-local], input[type=file], select, textarea {
    font: inherit; padding: 10px 13px; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
    background: var(--c-surface); color: var(--c-ink); width: 100%;
}
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236A727C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
input[type=file] { padding: 8px 10px; }
input:focus, select:focus, textarea:focus, [contenteditable]:focus { outline: none; border-color: var(--c-secondary); box-shadow: 0 0 0 3px rgba(34, 166, 179, .18); }
.check { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; cursor: pointer; }
.check input { accent-color: var(--c-primary); width: 18px; height: 18px; }
.img-current { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.img-current img { border-radius: var(--radius-sm); border: 1px solid var(--c-border); }

/* --- Editeur de texte riche ----------------------------------------------- */
.editor { border: 1px solid var(--c-border); border-radius: var(--radius-sm); overflow: hidden; background: var(--c-surface); }
.editor-toolbar { display: flex; align-items: center; gap: 2px; padding: 6px; border-bottom: 1px solid var(--c-border); background: #FCFCFB; }
.editor-btn { width: 32px; height: 30px; border: 1px solid transparent; border-radius: 6px; background: transparent; cursor: pointer; font-size: .9rem; color: var(--c-ink); }
.editor-btn:hover { background: var(--c-primary-tint); color: var(--c-primary); }
.editor-sep { width: 1px; height: 20px; background: var(--c-border); margin: 0 4px; }
.editor-area { min-height: 140px; padding: 12px 14px; line-height: 1.6; }
.editor-area:empty::before { content: 'Redigez la description...'; color: var(--c-muted); }
.editor-area ul, .editor-area ol { margin: 0 0 0 1.2em; }
.field-hint { font-size: .8rem; color: var(--c-muted); margin: 2px 0 0; }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 4px; }
.choice-option {
    display: flex; gap: 12px; padding: 14px; border: 1px solid var(--c-border);
    border-radius: var(--radius-sm); cursor: pointer; align-items: flex-start;
}
.choice-option:hover { border-color: var(--c-secondary); }
.choice-option input { margin-top: 3px; accent-color: var(--c-primary); }
.choice-body { display: flex; flex-direction: column; gap: 3px; }
.choice-title { font-weight: 600; }
.choice-desc { font-size: .84rem; color: var(--c-muted); line-height: 1.4; }
.modele-lien { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--c-border); }
.form-actions { display: flex; gap: 12px; padding-top: 24px; }

/* --- Reglages -------------------------------------------------------------- */
.settings { max-width: 760px; }
.settings-card { margin-bottom: 20px; }
.settings-title { display: flex; align-items: center; gap: 9px; font-size: 1.05rem; font-weight: 700; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--c-border); }
.settings-mt { margin-top: 16px; }
.test-mail { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.test-mail .field { width: 100%; max-width: 360px; margin: 0; }

/* =========================================================================
   TABLEAU DE BORD (cartes de stats)
   ========================================================================= */
.h-lead { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.muted { color: var(--c-muted); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 20px; }
.stat { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.stat-label { display: block; font-size: .82rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; }
.stat-value { display: block; font-family: var(--font-title); font-weight: 700; font-size: 2rem; color: var(--c-primary); margin-top: 6px; }

/* =========================================================================
   CONNEXION — signature ECG
   ========================================================================= */
body.auth { background: var(--c-bg); }
.auth-shell { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; }
.auth-aside {
    background: linear-gradient(160deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
    color: #fff; display: flex; align-items: center; justify-content: center; padding: 48px;
    position: relative; overflow: hidden;
}
.auth-aside-inner { position: relative; z-index: 1; width: 100%; max-width: 420px; }
.ecg { position: relative; margin: 40px 0 28px; height: 160px; }
.ecg svg { width: 100%; height: 100%; overflow: visible; }
.ecg-line {
    fill: none; stroke: var(--c-secondary); stroke-width: 2.5;
    stroke-linecap: round; stroke-linejoin: round;
    filter: drop-shadow(0 0 6px rgba(34, 166, 179, .7));
    stroke-dasharray: 1400; stroke-dashoffset: 1400;
    animation: ecg-draw 3.4s linear infinite;
}
@keyframes ecg-draw { to { stroke-dashoffset: 0; } }
.auth-tagline { font-family: var(--font-title); font-weight: 600; font-size: 1.35rem; line-height: 1.35; color: rgba(255, 255, 255, .95); margin: 0; }

.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; }
.auth-card { width: 100%; max-width: 380px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 16px; box-shadow: var(--shadow-md); padding: 34px; }
.auth-title { font-size: 1.6rem; font-weight: 700; }
.auth-sub { color: var(--c-muted); margin: 4px 0 22px; }
.auth-card .field { margin-bottom: 18px; }
.auth-card .btn { margin-top: 6px; }
.auth-legal { color: var(--c-muted); font-size: .8rem; margin-top: 22px; }

/* =========================================================================
   SITE PUBLIC (placeholder) + erreurs
   ========================================================================= */
body.site { background: linear-gradient(160deg, #fff 0%, var(--c-bg) 100%); }
.site-holding { max-width: 620px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; gap: 8px; }
.site-holding .brand { margin-bottom: 18px; }
.site-holding .brand-mark { background: var(--c-secondary); }
.site-holding .brand-name { color: var(--c-primary); }
.holding-title { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; color: var(--c-primary); }
.holding-text { color: var(--c-muted); font-size: 1.05rem; margin: 8px 0 22px; }
.error-code { font-family: var(--font-title); font-weight: 700; font-size: 3.4rem; color: var(--c-secondary); margin: 0; }

/* --- Focus visible global -------------------------------------------------- */
:focus-visible { outline: 3px solid rgba(34, 166, 179, .5); outline-offset: 2px; border-radius: 4px; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
    body.app { flex-direction: column; }
    .sidebar { width: 100%; flex-basis: auto; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; }
    .sidebar .brand { padding: 0; margin-right: auto; }
    .nav { flex-direction: row; flex-wrap: wrap; flex: 1 1 100%; margin-top: 10px; }
    .nav-link.is-active::before { display: none; }
    .nav-soon { display: none; }
    .sidebar-foot { border-top: none; margin: 0; padding: 0; }
    .who { display: none; }
    .content { padding: 20px 18px 40px; }
    .topbar { padding: 16px 18px; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .field-grid, .choice { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .ecg-line { animation: none; stroke-dashoffset: 0; }
}

/* =========================================================================
   PAGES PUBLIQUES (entreprise / formation)
   ========================================================================= */
.brand-name-dark { color: var(--c-primary); }
.site-header { border-bottom: 1px solid var(--c-border); background: var(--c-surface); }
.site-header-inner, .site-footer-inner { max-width: 1080px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header .brand:hover { text-decoration: none; }
.site-nav-link { font-weight: 600; font-family: var(--font-title); color: var(--c-primary); }
.site-footer { border-top: 1px solid var(--c-border); margin-top: 56px; background: var(--c-surface); }
.site-footer-inner { font-size: .88rem; color: var(--c-muted); }

.pub-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.pub-hero { background: linear-gradient(160deg, #fff 0%, var(--c-primary-tint) 100%); padding: 56px 0; border-bottom: 1px solid var(--c-border); }
.pub-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 600; color: var(--c-secondary); margin: 0 0 8px; }
.pub-h1 { font-size: 2.4rem; font-weight: 700; letter-spacing: -.02em; color: var(--c-primary); margin: 0; }
.pub-h2 { font-size: 1.5rem; font-weight: 700; color: var(--c-ink); margin: 0 0 20px; }
.pub-lead { font-size: 1.1rem; color: var(--c-muted); margin: 10px 0 0; }
.pub-rich { margin-top: 18px; max-width: 68ch; line-height: 1.65; }
.pub-rich ul, .pub-rich ol { margin-left: 1.2em; }
.pub-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; }
.pub-contact { display: inline-flex; align-items: center; gap: 7px; color: var(--c-primary); font-weight: 500; }
.pub-section { padding: 48px 24px; }
.pub-external { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 32px; }

.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.course-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .12s ease; }
.course-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #CDE3E7; }
.course-tag { align-self: flex-start; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--c-secondary); background: var(--c-primary-tint); padding: 4px 10px; border-radius: 999px; }
.course-title { font-family: var(--font-title); font-weight: 700; font-size: 1.08rem; color: var(--c-ink); }
.course-date { display: inline-flex; align-items: center; gap: 7px; color: var(--c-muted); font-size: .9rem; }
.course-place { color: var(--c-muted); font-size: .9rem; }
.course-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--c-border); }
.course-price { font-family: var(--font-title); font-weight: 700; color: var(--c-primary); }
.course-more { font-size: .85rem; font-weight: 600; color: var(--c-action); }

.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--c-muted); padding: 20px 0 0; }
.course-detail { display: grid; grid-template-columns: 1fr 340px; gap: 32px; padding: 28px 24px 0; align-items: start; }
.course-hero { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--c-border); margin-bottom: 18px; }
.course-tag-lg { font-size: .8rem; margin-bottom: 12px; }
.side-card { position: sticky; top: 24px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; }
.side-org { display: flex; justify-content: center; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--c-border); }
.side-logo { max-height: 60px; max-width: 100%; width: auto; object-fit: contain; }
.side-list { margin: 0 0 18px; display: flex; flex-direction: column; gap: 14px; }
.side-list div { display: flex; flex-direction: column; gap: 2px; }
.side-list dt { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); font-weight: 600; }
.side-list dd { margin: 0; font-weight: 500; }
.side-price { font-family: var(--font-title); font-weight: 700; font-size: 1.3rem; color: var(--c-primary); }
.side-note { margin: 12px 0 0; font-size: .86rem; color: var(--c-muted); text-align: center; }

@media (max-width: 820px) {
    .course-detail { grid-template-columns: 1fr; }
    .side-card { position: static; }
    .pub-h1 { font-size: 1.9rem; }
}

/* =========================================================================
   INSCRIPTION / PAIEMENT
   ========================================================================= */
.site-flashes { max-width: 1080px; margin: 16px auto 0; padding: 0 24px; display: flex; flex-direction: column; gap: 10px; }

.insc-form-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 28px; margin-top: 32px; max-width: 720px; }
.insc-form-card .check { margin-top: 8px; }

.pay-wrap { display: flex; justify-content: center; padding-top: 40px; }
.pay-card { width: 100%; max-width: 520px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 16px; box-shadow: var(--shadow-md); padding: 32px; }
.pay-title { font-size: 1.4rem; font-weight: 700; color: var(--c-primary); }
.pay-recap { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--c-muted); border-bottom: 1px solid var(--c-border); padding-bottom: 18px; margin-bottom: 6px; }
.pay-amount { font-family: var(--font-title); font-weight: 700; font-size: 1.4rem; color: var(--c-ink); white-space: nowrap; }
.pay-state { text-align: center; padding: 16px 0; }
.pay-state h2 { font-size: 1.2rem; margin-bottom: 8px; }
.pay-ok h2 { color: var(--c-primary); }
.pay-methods h2 { font-size: 1.1rem; margin: 18px 0 16px; }
.pay-methods form { margin-bottom: 12px; }
.pay-secure { text-align: center; font-size: .84rem; margin-top: 10px; }
.pay-twint { text-align: center; }
.pay-twint h2 { font-size: 1.15rem; margin: 12px 0 4px; }
.twint-qr { width: 240px; max-width: 100%; margin: 18px auto; }
.twint-qr svg { width: 100%; height: auto; }
.twint-token { font-size: 1.05rem; letter-spacing: .04em; }
.pay-poll { margin: 14px 0; }

/* Badges de statut d'inscription */
.badge-paye { background: #E3F0FB; color: #1D6FB8; }
.badge-attente { background: var(--c-amber-bg); color: var(--c-amber); }
.badge-liste { background: var(--c-grey-bg); color: var(--c-grey); }

/* Rangee d'actions texte (participants) */
.stat-row { display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.stat-row .stat { flex: 1; min-width: 150px; }
.row-actions-text { flex-wrap: wrap; gap: 6px; }
.btn-mini { font: inherit; font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-ink); cursor: pointer; }
.btn-mini:hover { border-color: var(--c-muted); }
.btn-mini-primary { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.btn-mini-primary:hover { background: var(--c-primary-dark); }
.btn-mini-danger { color: var(--c-action-dark); }
.btn-mini-danger:hover { border-color: var(--c-action); background: #FDE9E8; }

/* =========================================================================
   ORDRES DE PAIEMENT
   ========================================================================= */
.btn-sm { padding: 7px 14px; font-size: .84rem; }
.ordre-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.ordre-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ordre-lignes { margin-bottom: 18px; }
.ordre-lignes thead th { background: transparent; }
.ordre-total { border-top: 1px solid var(--c-border); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.ordre-total > div { display: flex; justify-content: space-between; font-size: .92rem; color: var(--c-muted); }
.ordre-total dt, .ordre-total dd { margin: 0; }
.ordre-net { border-top: 1px solid var(--c-border); padding-top: 12px; margin-top: 4px; }
.ordre-net dt { font-family: var(--font-title); font-weight: 700; color: var(--c-ink) !important; font-size: 1rem !important; }
.ordre-net dd { font-family: var(--font-title); font-weight: 700; color: var(--c-primary); font-size: 1.15rem; }

.qr-slip { position: sticky; top: 24px; }
.qr-slip-title { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.qr-slip-code { width: 200px; margin: 0 auto 18px; }
.qr-slip-code svg { width: 100%; height: auto; display: block; }
.qr-slip-info { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: .9rem; }
.qr-slip-info dt { color: var(--c-muted); }
.qr-slip-info dd { margin: 0; text-align: right; }
.qr-slip-note { font-size: .82rem; margin-top: 16px; text-align: center; }

@media (max-width: 820px) {
    .ordre-grid { grid-template-columns: 1fr; }
    .qr-slip { position: static; }
}

/* --- Abonnements ----------------------------------------------------------- */
.section-h { font-family: var(--font-title); font-size: 1.05rem; font-weight: 700; margin: 8px 0 14px; }
.section-h + .card, .section-h + .empty { margin-bottom: 28px; }
.abo-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.abo-form select, .abo-form input[type=text] { width: auto; min-width: 90px; padding: 7px 10px; }
.check-sm { font-size: .82rem; font-weight: 500; gap: 5px; }
.check-sm input { width: 15px; height: 15px; }
.qr-slip-code-center { margin: 18px auto; }

/* =========================================================================
   SITE PUBLIC — vitrine / landing
   ========================================================================= */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; font-weight: 700; color: var(--c-secondary); margin: 0 0 12px; }
.h2 { font-family: var(--font-title); font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; letter-spacing: -.02em; color: var(--c-primary); margin: 0; line-height: 1.15; }
.section-intro { max-width: 60ch; margin: 12px 0 0; font-size: 1.05rem; }
.accent { color: var(--c-action); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

/* --- Barre de navigation --------------------------------------------------- */
.nav-bar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-border); }
.nav-inner { max-width: 1140px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; }
.wordmark:hover { text-decoration: none; }
.wm { font-family: var(--font-title); font-weight: 700; font-size: 1.28rem; letter-spacing: -.02em; }
.wm-a { color: var(--c-primary); }
.wm-b { color: var(--c-secondary); }
.wm-ch { color: var(--c-muted); font-weight: 600; font-size: .9em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-family: var(--font-title); font-weight: 600; font-size: .95rem; color: var(--c-ink); }
.nav-links a:hover { color: var(--c-primary); text-decoration: none; }
.nav-links a.is-active { color: var(--c-primary); }
.nav-pro { padding: 9px 16px; border: 1px solid var(--c-border); border-radius: 999px; color: var(--c-primary) !important; }
.nav-pro:hover { border-color: var(--c-secondary); }
.nav-toggle, .nav-burger { display: none; }

/* --- Hero ------------------------------------------------------------------ */
.hero { position: relative; min-height: min(84vh, 720px); display: flex; align-items: center; overflow: hidden; background: var(--c-primary); }
.hero-media { position: absolute; inset: 0; background: url("../img/hero.jpg") center/cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,55,68,.94) 0%, rgba(10,55,68,.78) 42%, rgba(14,90,111,.35) 100%); }
.hero-inner { position: relative; z-index: 2; max-width: 1140px; margin: 0 auto; padding: 64px 24px; width: 100%; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--c-secondary); margin: 0 0 18px; }
.hero-title { font-family: var(--font-title); font-weight: 700; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.02; letter-spacing: -.03em; color: #fff; margin: 0; }
.hero-lead { max-width: 46ch; margin: 22px 0 30px; font-size: 1.18rem; line-height: 1.5; color: rgba(255,255,255,.92); }
.hero-lead strong { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-hero-ghost { background: rgba(255,255,255,.10); color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn-hero-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }
.hero-stats { display: flex; gap: 40px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats > div { display: flex; flex-direction: column; }
.hs-num { font-family: var(--font-title); font-weight: 700; font-size: 2rem; color: #fff; line-height: 1; }
.hs-lbl { font-size: .82rem; color: rgba(255,255,255,.72); text-transform: uppercase; letter-spacing: .05em; margin-top: 5px; }
.hero-ecg { position: absolute; bottom: 0; left: 0; width: 100%; height: 60px; z-index: 2; }
.hero-ecg path { fill: none; stroke: var(--c-secondary); stroke-width: 2.5; opacity: .7; }

/* --- Urgence / chaine de survie -------------------------------------------- */
.urgence { padding: 72px 0; background: var(--c-surface); }
.urgence-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.urgence-lead .h2 { color: var(--c-ink); }
.urgence-lead .muted { margin: 18px 0; font-size: 1.05rem; line-height: 1.6; }
.urgence-note { font-size: 1.05rem; color: var(--c-primary); border-left: 3px solid var(--c-action); padding-left: 16px; }
.chaine { background: var(--c-primary-tint); border-radius: var(--radius); padding: 28px; }
.chaine-title { font-family: var(--font-title); font-size: 1.05rem; color: var(--c-primary-dark); margin: 0 0 18px; }
.chaine-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; counter-reset: none; }
.chaine-steps li { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 12px 0; position: relative; }
.chaine-steps li:not(:last-child)::after { content: ''; position: absolute; left: 19px; top: 42px; bottom: -6px; width: 2px; background: var(--c-secondary); opacity: .4; }
.cs-num { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 50%; background: var(--c-secondary); color: #fff; font-family: var(--font-title); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cs-t { font-family: var(--font-title); font-weight: 700; color: var(--c-ink); }
.cs-d { font-size: .88rem; color: var(--c-muted); }

/* --- Carte ----------------------------------------------------------------- */
.carte-sec { padding: 72px 0; background: var(--c-bg); }
.carte-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; margin-top: 28px; }
.carte-map { height: 480px; border-radius: var(--radius); border: 1px solid var(--c-border); overflow: hidden; z-index: 1; }
.carte-side { display: flex; flex-direction: column; }
.carte-field { font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.carte-select { width: 100%; }
.carte-hint { font-size: .82rem; margin: 8px 0 14px; }
.carte-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: 360px; }
.cl-item { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 12px; padding: 12px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-sm); }
.cl-item:hover { text-decoration: none; border-color: var(--c-secondary); }
.cl-date { font-family: var(--font-title); font-weight: 700; font-size: .82rem; color: var(--c-primary); }
.cl-body { display: flex; flex-direction: column; }
.cl-cours { font-weight: 600; font-size: .9rem; color: var(--c-ink); }
.cl-ville { font-size: .82rem; color: var(--c-muted); }
.cl-dist { font-size: .8rem; font-weight: 600; color: var(--c-secondary); }

/* Marqueurs Leaflet (pulsation coral) */
.slv-pin .pin-dot { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--c-action); border: 2px solid #fff; box-shadow: 0 0 0 0 rgba(242,95,92,.5); animation: pin-pulse 2.2s infinite; }
@keyframes pin-pulse { 0% { box-shadow: 0 0 0 0 rgba(242,95,92,.5); } 70% { box-shadow: 0 0 0 13px rgba(242,95,92,0); } 100% { box-shadow: 0 0 0 0 rgba(242,95,92,0); } }
.pin-pop { font-family: var(--font-body); font-size: .88rem; line-height: 1.5; }
.pin-places { color: var(--c-secondary); font-weight: 600; }
.leaflet-container { font: inherit; }

/* --- Catalogue horizontal -------------------------------------------------- */
.cata { padding: 72px 0; background: var(--c-surface); }
.cata-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.cata-list { display: flex; flex-direction: column; gap: 10px; }
.crow { display: grid; grid-template-columns: 64px 52px 1fr auto auto; align-items: center; gap: 18px; padding: 16px 20px; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); transition: border-color .12s, transform .12s; }
.crow:hover { text-decoration: none; border-color: var(--c-secondary); transform: translateX(3px); }
.crow-date { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.cd-j { font-family: var(--font-title); font-weight: 700; font-size: 1.5rem; color: var(--c-primary); }
.cd-m { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted); margin-top: 3px; }
.cd-t { font-size: .74rem; font-weight: 600; color: var(--c-secondary); margin-top: 4px; }
.crow-logo { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--c-primary-tint); }
.crow-logo img { width: 100%; height: 100%; object-fit: contain; }
.mono { font-family: var(--font-title); font-weight: 700; color: var(--c-primary); font-size: 1.1rem; }
.crow-main { display: flex; flex-direction: column; min-width: 0; }
.crow-cours { font-family: var(--font-title); font-weight: 700; color: var(--c-ink); font-size: 1.05rem; }
.crow-meta { font-size: .88rem; color: var(--c-muted); }
.crow-places { font-size: .85rem; font-weight: 600; color: var(--c-secondary); white-space: nowrap; }
.crow-places.is-full { color: var(--c-muted); }
.crow-btn { font-family: var(--font-title); font-weight: 600; font-size: .9rem; color: var(--c-action); white-space: nowrap; }

/* --- Cours SRC teaser ------------------------------------------------------ */
.src-teaser { padding: 72px 0; background: var(--c-bg); }
.src-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 28px; }
.src-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.src-card:hover { text-decoration: none; border-color: var(--c-secondary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.src-name { font-family: var(--font-title); font-weight: 700; font-size: 1.1rem; color: var(--c-primary); }
.src-duree { font-size: .86rem; color: var(--c-muted); }
.src-more { margin-top: auto; font-weight: 600; font-size: .88rem; color: var(--c-action); }

/* --- Bande CTA ------------------------------------------------------------- */
.cta-band { padding: 64px 0; background: linear-gradient(160deg, var(--c-primary) 0%, var(--c-primary-dark) 100%); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band-inner p { color: rgba(255,255,255,.9); max-width: 52ch; margin: 10px 0 0; }
.cta-h { font-family: var(--font-title); font-size: 1.8rem; font-weight: 700; color: #fff; margin: 0; }

/* --- Pied de page ---------------------------------------------------------- */
.foot { background: var(--c-surface); border-top: 1px solid var(--c-border); padding: 52px 0 0; }
.foot-inner { max-width: 1140px; margin: 0 auto; padding: 0 24px 40px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot-brand p { color: var(--c-muted); max-width: 38ch; margin: 14px 0 0; font-size: .92rem; line-height: 1.6; }
.foot-col h3 { font-family: var(--font-title); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-ink); margin: 0 0 14px; }
.foot-col a { display: block; color: var(--c-muted); font-size: .92rem; padding: 4px 0; }
.foot-col a:hover { color: var(--c-primary); }
.foot-bottom { border-top: 1px solid var(--c-border); padding: 18px 24px; max-width: 1140px; margin: 0 auto; display: flex; justify-content: space-between; font-size: .85rem; color: var(--c-muted); }

@media (max-width: 900px) {
    .nav-burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
    .nav-burger span { width: 24px; height: 2px; background: var(--c-primary); border-radius: 2px; }
    .nav-links { position: fixed; inset: 61px 0 auto 0; background: var(--c-surface); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--c-border); transform: translateY(-120%); transition: transform .22s ease; }
    .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--c-border); }
    .nav-toggle:checked ~ .nav-links { transform: translateY(0); }
    .nav-pro { border: none; padding: 13px 0; }
    .urgence-grid, .carte-layout, .cta-band-inner { grid-template-columns: 1fr; }
    .foot-inner { grid-template-columns: 1fr 1fr; }
    .carte-map { height: 360px; }
    .crow { grid-template-columns: 52px 1fr auto; }
    .crow-logo, .crow-btn { display: none; }
}
@media (max-width: 560px) {
    .foot-inner { grid-template-columns: 1fr; }
    .hero-stats { gap: 26px; }
    .crow { grid-template-columns: 48px 1fr; }
    .crow-places { display: none; }
}

/* --- Comptabilite ---------------------------------------------------------- */
.compta-hero { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; background: linear-gradient(160deg, #fff 0%, var(--c-primary-tint) 100%); }
.compta-gain { font-family: var(--font-title); font-weight: 700; font-size: 2.6rem; color: var(--c-primary); letter-spacing: -.02em; }
.stat-sm { font-size: 1.35rem; }

/* =========================================================================
   PAGES DE CONTENU PUBLIQUES (formations, cours SRC, formateurs, contact)
   ========================================================================= */
.page { padding-bottom: 8px; }
.page-head { padding: 52px 0 30px; background: linear-gradient(180deg, var(--c-primary-tint) 0%, var(--c-bg) 100%); border-bottom: 1px solid var(--c-border); }
.page-head .h2 { color: var(--c-primary); }
.page-head-hero { padding-bottom: 44px; }
.page-head-hero .hero-cta { margin-top: 24px; }

/* Filtres */
.filterbar { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin: 26px 0; padding: 18px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.fb-field { display: flex; flex-direction: column; gap: 5px; }
.fb-field label { font-size: .82rem; font-weight: 600; color: var(--c-muted); }
.fb-field select, .fb-field input { min-width: 180px; }
.formations-map { height: 380px; margin-bottom: 26px; }
.results-count { font-size: .9rem; color: var(--c-muted); margin: 0 0 12px; }

/* Cours SRC — blocs */
.src-blocks { padding: 40px 24px 8px; display: flex; flex-direction: column; gap: 8px; }
.src-block { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--c-border); scroll-margin-top: 80px; }
.src-block:first-child { border-top: none; }
.src-block-side { display: flex; flex-direction: column; gap: 18px; }
.src-index { font-family: var(--font-title); font-weight: 700; font-size: 2.4rem; color: var(--c-secondary); line-height: 1; }
.src-facts { display: flex; flex-direction: column; gap: 8px; font-size: .92rem; color: var(--c-muted); }
.src-facts strong { color: var(--c-ink); }
.src-h { font-family: var(--font-title); font-weight: 700; font-size: 1.5rem; color: var(--c-primary); margin: 0 0 12px; }
.src-desc { font-size: 1.02rem; line-height: 1.6; margin: 0 0 14px; }
.src-for { font-size: .95rem; color: var(--c-ink); background: var(--c-primary-tint); padding: 12px 16px; border-radius: var(--radius-sm); margin: 0 0 18px; }

/* Formateurs — features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; padding: 56px 24px; }
.feature { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 26px; }
.feat-ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--c-primary-tint); color: var(--c-primary); margin-bottom: 14px; }
.feature h3 { font-family: var(--font-title); font-size: 1.1rem; color: var(--c-ink); margin: 0 0 8px; }
.feature p { color: var(--c-muted); font-size: .95rem; line-height: 1.55; margin: 0; }
.models { padding: 56px 0; background: var(--c-surface); }
.models-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; }
.model-card { border: 1px solid var(--c-border); border-radius: var(--radius); padding: 28px; }
.model-card h3 { font-family: var(--font-title); font-size: 1.2rem; color: var(--c-primary); margin: 0 0 10px; }
.model-card p { color: var(--c-muted); line-height: 1.6; margin: 0; }

/* Contact */
/* Honeypot anti-spam : hors ecran, invisible aux humains, rempli par les bots. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; padding: 40px 24px 60px; align-items: start; }
.contact-aside h3 { font-family: var(--font-title); font-size: 1.1rem; margin: 0 0 10px; }
.contact-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 10px; color: var(--c-ink); font-size: .95rem; }
.contact-list svg { color: var(--c-secondary); }

@media (max-width: 820px) {
    .src-block { grid-template-columns: 1fr; gap: 14px; }
    .src-block-side { flex-direction: row; align-items: center; gap: 20px; }
    .models-grid, .contact-grid { grid-template-columns: 1fr; }
    .filterbar { flex-direction: column; align-items: stretch; }
    .fb-field select, .fb-field input { min-width: 0; width: 100%; }
}

/* =========================================================================
   ACCUEIL v2 : bandeau SRC, verification, liste unique filtrable
   ========================================================================= */
.src-strip { background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
.src-strip-inner { display: flex; align-items: center; gap: 20px; padding: 18px 24px; }
.src-badge { height: 54px; width: auto; }
.src-badge-txt { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 10px; background: var(--c-action); color: #fff; font-family: var(--font-title); font-weight: 700; font-size: 1.2rem; letter-spacing: .02em; flex: none; }
.src-strip-inner p { margin: 0; color: var(--c-ink); font-size: 1rem; }
.src-strip-inner strong { color: var(--c-primary); }

.verify-strip { background: var(--c-primary-tint); border-bottom: 1px solid var(--c-border); }
.verify-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 24px; flex-wrap: wrap; }
.verify-h { display: flex; align-items: center; gap: 10px; font-family: var(--font-title); font-size: 1.25rem; color: var(--c-primary-dark); margin: 0 0 4px; }
.verify-h svg { color: var(--c-secondary); }
.verify-txt p { margin: 0; }
.verify-form { display: flex; gap: 10px; }
.verify-form input { min-width: 240px; text-transform: uppercase; letter-spacing: .06em; font-family: var(--font-title); font-weight: 600; }
.verify-form-lg { max-width: 480px; margin-bottom: 30px; }

/* Section carte + liste unique */
.finder { padding: 66px 0; background: var(--c-bg); }
.finder-map { height: 440px; margin: 26px 0; }
.finder-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.type-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.type-chip { font-family: var(--font-title); font-weight: 600; font-size: .88rem; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-muted); cursor: pointer; }
.type-chip:hover { border-color: var(--c-secondary); color: var(--c-primary); }
.type-chip.is-active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.proximite { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.proximite .carte-select { width: auto; min-width: 190px; }
.proximite .btn { white-space: nowrap; }
.finder-list { display: flex; flex-direction: column; gap: 10px; }
.finder-foot { margin-top: 22px; text-align: center; }
.finder-empty { padding: 30px 0; }

/* colonne distance dans la ligne */
.crow { grid-template-columns: 64px 52px 1fr auto auto auto; }
.crow-dist { font-size: .82rem; font-weight: 600; color: var(--c-secondary); white-space: nowrap; }
.crow-dist:empty { display: none; }

/* Disclaimer pied de page */
.foot-disclaimer { border-top: 1px solid var(--c-border); background: var(--c-bg); }
.foot-disclaimer .wrap { padding-top: 20px; padding-bottom: 20px; }
.foot-disclaimer p { margin: 0; font-size: .82rem; color: var(--c-muted); line-height: 1.6; max-width: 90ch; }

/* Page de verification */
.verify-page { padding: 36px 24px 64px; }
.verify-result { border-radius: var(--radius); border: 1px solid var(--c-border); padding: 30px; background: var(--c-surface); }
.vr-badge { display: inline-block; font-family: var(--font-title); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.verify-result h2 { font-family: var(--font-title); font-size: 1.5rem; color: var(--c-ink); margin: 0 0 18px; }
.vr-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0; }
.vr-details dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); font-weight: 600; }
.vr-details dd { margin: 3px 0 0; font-weight: 500; }
.vr-valide { border-color: #BEE3CC; background: #EDF7F0; }
.vr-valide .vr-badge { background: #1B7A44; color: #fff; }
.vr-expire { border-color: #F0DDB5; background: var(--c-amber-bg); }
.vr-expire .vr-badge { background: var(--c-amber); color: #fff; }
.vr-revoque, .vr-invalid { border-color: #F6C9C7; background: #FDE9E8; }
.vr-revoque .vr-badge, .vr-invalid .vr-badge { background: var(--c-action-dark); color: #fff; }

@media (max-width: 900px) {
    .crow { grid-template-columns: 52px 1fr auto; }
    .verify-inner { flex-direction: column; align-items: stretch; }
    .verify-form input { min-width: 0; flex: 1; }
    .finder-controls { flex-direction: column; align-items: stretch; }
    .proximite { width: 100%; }
    .proximite .carte-select { flex: 1; min-width: 0; }
}
@media (max-width: 560px) {
    .crow { grid-template-columns: 48px 1fr; }
}

@media (max-width: 900px) { .crow-dist { display: none; } }

.input-upper { text-transform: uppercase; letter-spacing: .04em; }

/* --- Statistiques (barres) ------------------------------------------------- */
.col-bar { width: 210px; }
.bar-wrap { display: inline-flex; align-items: center; gap: 10px; }
.bar { background: var(--c-grey-bg); border-radius: 3px; display: block; }
.bar-val { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--c-primary); min-width: 28px; }
.section-h-mt { margin-top: 28px; }

/* --- Formations "lien externe" -------------------------------------------- */
.course-ext { color: var(--c-secondary) !important; font-size: .85rem; }
.pub-external-link { margin-top: 20px; }
.pub-external-link a { font-weight: 600; }

/* --- Logo entreprise (page publique) --------------------------------------- */
.pub-logo { max-height: 66px; width: auto; margin-bottom: 18px; background: #fff; padding: 8px 12px; border-radius: 10px; box-shadow: var(--shadow-sm); }
