/* Pages publiques (accueil, inscription, services, FAQ, contact) — 21/10/2026.
   Fond uni sombre, contrastes WCAG AA (texte ≥ 4,5:1), zones cliquables ≥ 44 px. */
:root {
    --pub-bg: #0f1115;
    --pub-surface: #171a21;
    --pub-border: #262a33;
    --pub-border-strong: #3a3f4b;
    --pub-text: #f3f4f6;
    --pub-text-2: #c9ced6;
    --pub-muted: #a1a8b3;
    --pub-accent: #ff6b70;
    --pub-accent-hover: #ff9a9d;
    --pub-brand: #ff4d55;
    --pub-btn: #d4000a;
    --pub-btn-hover: #b30008;
    --pub-chip: #2a1416;
    --pub-radius: 12px;
}
* { box-sizing: border-box; }
body.pub { margin: 0; background: var(--pub-bg); color: var(--pub-text); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; }
.pub a { color: var(--pub-accent); }
.pub a:hover { color: var(--pub-accent-hover); }
.pub :focus-visible { outline: 2px solid var(--pub-accent); outline-offset: 2px; }
.pub-skip { position: absolute; left: -9999px; top: 8px; background: var(--pub-btn); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.pub-skip:focus { left: 8px; }
.pub-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.pub-narrow { max-width: 860px; }
.pub-h { font-family: Rajdhani, Inter, sans-serif; font-weight: 700; color: #fff; line-height: 1.08; margin: 0; }

/* En-tête */
.pub-header { border-bottom: 1px solid var(--pub-border); }
.pub-header .pub-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 16px; padding-bottom: 16px; }
.pub-logo { font-family: Rajdhani, Inter, sans-serif; font-weight: 700; font-size: 26px; letter-spacing: 2px; color: #fff !important; text-decoration: none; }
.pub-logo span { color: var(--pub-brand); }
.pub-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; flex-grow: 1; }
.pub-nav a { color: var(--pub-text-2); text-decoration: none; font-size: 15px; padding: 10px 0; border-bottom: 2px solid transparent; }
.pub-nav a:hover { color: #fff; }
.pub-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--pub-brand); }
.pub-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Boutons */
.pub-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.pub-btn-primary { background: var(--pub-btn); color: #fff !important; }
.pub-btn-primary:hover { background: var(--pub-btn-hover); }
.pub-btn-ghost { border-color: var(--pub-border-strong); color: var(--pub-text) !important; background: transparent; }
.pub-btn-ghost:hover { border-color: var(--pub-text-2); }
.pub-btn-lg { min-height: 48px; padding: 0 24px; font-size: 16px; font-weight: 700; }

/* Sections */
.pub-section { border-top: 1px solid var(--pub-border); }
.pub-section > .pub-wrap { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }
.pub-section h2.pub-h { font-size: 36px; }
.pub-page-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.pub-page-head h1 { font-size: 48px; }
.pub-lead { margin: 0; font-size: 17px; color: var(--pub-text-2); }

/* Accueil */
.pub-hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 64px; }
.pub-hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pub-kicker { margin: 0; color: var(--pub-accent); font-weight: 600; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; }
.pub-hero h1 { font-size: 56px; }
.pub-hero .pub-lead { font-size: 18px; max-width: 560px; }
.pub-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Cartes et formulaires */
.pub-card { background: var(--pub-surface); border: 1px solid var(--pub-border); border-radius: var(--pub-radius); padding: 28px; }
.pub-auth { flex: 1 1 340px; min-width: 0; max-width: 440px; display: flex; flex-direction: column; gap: 16px; }
.pub-auth h2 { margin: 0; font-size: 20px; font-weight: 700; color: #fff; }
.pub-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--pub-text-2); }
.pub-field input { min-height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--pub-border-strong); background: var(--pub-bg); color: #fff; font-size: 15px; font-family: inherit; }
.pub-field input:focus { outline: none; border-color: var(--pub-accent); box-shadow: 0 0 0 3px rgba(255, 107, 112, .2); }
.pub-field small { font-weight: 400; color: var(--pub-muted); }
.pub-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.pub-check { display: inline-flex; align-items: center; gap: 8px; color: var(--pub-text-2); min-height: 44px; font-weight: 400; font-size: 14px; }
.pub-check input { width: 18px; height: 18px; accent-color: var(--pub-btn); flex-shrink: 0; }
.pub-auth .pub-btn { width: 100%; }
.pub-small { margin: 0; text-align: center; font-size: 14px; color: var(--pub-muted); }
.pub-alert { padding: 12px 14px; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.pub-alert-err { background: #2a1416; border: 1px solid #7f1d1d; color: #fecaca; }
.pub-alert-ok { background: #0f2a1f; border: 1px solid #14532d; color: #bbf7d0; }
.pub-alert-info { background: #1f1f12; border: 1px solid #5c4d10; color: #fde68a; }

/* Étapes */
.pub-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.pub-steps li { display: flex; flex-direction: column; gap: 12px; }
.pub-step-top { display: flex; align-items: center; gap: 12px; }
.pub-num { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; background: var(--pub-chip); color: var(--pub-accent); font-weight: 700; }
.pub-steps h3, .pub-why h3, .pub-services h3 { margin: 0; color: #fff; }
.pub-steps h3 { font-size: 19px; }
.pub-steps p { margin: 0; font-size: 15px; color: var(--pub-text-2); }

/* Pourquoi */
.pub-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.pub-why > div { display: flex; gap: 14px; align-items: flex-start; }
.pub-why svg { flex-shrink: 0; }
.pub-why p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--pub-text-2); }
.pub-why strong { color: #fff; }

/* Services */
.pub-services h2 { margin: 8px 0 0; font-size: 20px; color: #fff; font-family: Inter, sans-serif; }
.pub-services ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.pub-services li { background: var(--pub-surface); border: 1px solid var(--pub-border); border-radius: 10px; padding: 18px 20px; }
.pub-services h3 { font-size: 16px; margin-bottom: 6px; }
.pub-services p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--pub-text-2); }
.pub-cta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; border-color: var(--pub-border-strong); }
.pub-cta > div { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pub-cta h2 { margin: 0; font-size: 22px; color: #fff; }
.pub-cta p { margin: 0; font-size: 15px; color: var(--pub-text-2); }

/* FAQ */
.pub-faq details { background: var(--pub-surface); border: 1px solid var(--pub-border); border-radius: 10px; padding: 16px 20px; }
.pub-faq summary { cursor: pointer; font-weight: 600; font-size: 16px; min-height: 28px; }
.pub-faq details p { margin: 12px 0 0; font-size: 15px; color: var(--pub-text-2); }

/* Contact */
.pub-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.pub-contact .pub-card { display: flex; flex-direction: column; gap: 14px; }
.pub-contact h2 { margin: 0; font-size: 20px; color: #fff; }
.pub-contact p { margin: 0; font-size: 15px; color: var(--pub-text-2); }
.pub-contact .pub-strong { font-size: 16px; font-weight: 600; color: #fff; }
.pub-contact .pub-btn { align-self: flex-start; }

/* Pied de page */
.pub-footer { border-top: 1px solid var(--pub-border); }
.pub-footer .pub-wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--pub-muted); }
.pub-footer p { margin: 0; }
.pub-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

@media (max-width: 720px) {
    .pub-hero { padding-top: 40px; gap: 32px; }
    .pub-hero h1 { font-size: 40px; }
    .pub-page-head h1 { font-size: 38px; }
    .pub-section h2.pub-h { font-size: 30px; }
    .pub-section > .pub-wrap { padding-top: 48px; padding-bottom: 48px; }
    .pub-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Liste des prix (includes/price_list_view.php), 21/10/2026 */
.pl-cat { display: flex; flex-direction: column; gap: 12px; }
.pl-cat h2, .pl-rules h2 { margin: 8px 0 0; font-size: 20px; color: #fff; }
.pl-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.pl-list li { background: var(--pub-surface, #171a21); border: 1px solid var(--pub-border, #262a33); border-radius: 10px; padding: 16px 20px; }
.pl-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pl-row h3 { margin: 0; font-size: 16px; color: #fff; }
.pl-price { flex: 0 0 auto; font-weight: 700; font-size: 17px; color: #fff; white-space: nowrap; }
.pl-list p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--pub-text-2, #c9ced6); }
.pl-rules { background: var(--pub-surface, #171a21); border: 1px solid var(--pub-border, #262a33); border-radius: 12px; padding: 18px 22px; }
.pl-rules ul { margin: 10px 0 0; padding-left: 20px; color: var(--pub-text-2, #c9ced6); font-size: 15px; line-height: 1.6; }

/* Pages légales (cgu.php, confidentialite.php), 21/10/2026 */
.pub-legal { max-width: 820px; padding-top: 48px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 22px; }
.pub-legal h1 { font-size: clamp(28px, 4vw, 38px); margin: 0; }
.pub-legal h2 { font-size: 19px; color: #fff; margin: 0 0 8px; }
.pub-legal p, .pub-legal li { color: var(--pub-text-2); line-height: 1.65; font-size: 15.5px; }
.pub-legal p { margin: 0 0 8px; }
.pub-legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.pub-legal .pl-updated, .pub-legal .pl-langnote { color: var(--pub-muted); font-size: 14px; margin: 0; }
.pub-legal mark.pl-todo { background: #4a3a10; color: #ffd27a; padding: 1px 6px; border-radius: 4px; }
