/* MonOrbit – styles de base. Identité : bleu nuit #023047, turquoise, accent orange ; police Inter ; contrastes AA. */
:root {
    --bg: #ffffff;
    --bg-soft: #e6f0f5;          /* « monorbit-50 » : fonds de sections */
    --surface: #ffffff;
    --text: #21282c;
    --muted: #4b5563;
    --border: #e2e8f0;
    --accent: #023047;           /* actions principales, barre de navigation */
    --accent-dark: #00547e;      /* survol, liens */
    --accent-soft: #e6f0f5;
    --teal: #0e9f85;             /* touche de personnalisation : mise en valeur, coches */
    --teal-bright: #3ddcb8;
    --teal-soft: #d9f5ee;
    --hot: #d83a08;              /* badges (blanc sur #d83a08 : 4.6:1) */
    --ok: #166534;
    --ok-bg: #dcfce7;
    --err: #991b1b;
    --err-bg: #fee2e2;
    --info: #1e40af;
    --info-bg: #dbeafe;
    --radius: 14px;
    --shadow: 0 12px 32px -12px rgba(2, 48, 71, .28);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); font-weight: 700; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

.container { width: calc(100% - 2rem); margin-inline: auto; }
@media (min-width: 1024px) { .container { width: min(calc(100% - 9rem), 1920px); } }
.section { padding: 3rem 0; }
.muted { color: var(--muted); }
.inline-form { display: inline; margin: 0; }

/* En-tête / pied de page */
/* Barre de navigation flottante, bleu nuit, arrondie (même principe que la landing monorbit.com) */
.site-header { position: sticky; top: .75rem; z-index: 50; padding: .75rem 0 0; transition: top .2s; }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 62px; padding: .4rem .65rem .4rem 1rem; color: #fff; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .1);
    background: linear-gradient(135deg, #03405c 0%, var(--accent) 55%, #01283b 100%); box-shadow: 0 14px 30px -12px rgba(2, 48, 71, .55); transition: min-height .2s, box-shadow .2s, border-radius .2s; }
.site-header.is-scrolled { top: .4rem; }
.site-header.is-scrolled .header-inner { min-height: 54px; box-shadow: 0 18px 38px -10px rgba(2, 48, 71, .7); }

/* Logo : pastille dégradée + point orange (clin d'œil à l'accent de la landing) */
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; }
.brand:hover { color: #fff; }
.brand-mark { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, var(--teal-bright), var(--teal)); color: var(--accent); font-weight: 800; font-size: 1.15rem; box-shadow: 0 6px 14px -6px rgba(61, 220, 184, .8); transition: transform .2s; }
.brand-mark::after { content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: #ff6a3d; border: 2px solid var(--accent); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-name span { color: var(--teal-bright); }

/* Navigation : liens en pastilles, lien actif marqué */
.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav a:not(.btn) { position: relative; padding: .5rem .85rem; border-radius: 12px; color: #e6f0f5; text-decoration: none; font-weight: 500; transition: background .15s, color .15s; }
.main-nav a:not(.btn):hover { background: rgba(255, 255, 255, .1); color: #fff; }
.main-nav a[aria-current=page] { background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; }
.main-nav a[aria-current=page]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 16px; height: 3px; margin-left: -8px; border-radius: 3px; background: var(--teal-bright); }
.main-nav .btn { margin-left: .4rem; }
.nav-sep { width: 1px; height: 24px; margin: 0 .5rem; background: rgba(255, 255, 255, .22); }
.main-nav .inline-form { margin-left: .4rem; }

/* Menu de compte (après connexion) : avatar + nom, déroulant les actions liées au compte. */
.nav-user-wrap { position: relative; margin-left: .4rem; }
.nav-user { display: flex; align-items: center; gap: .55rem; padding: .25rem .7rem .25rem .3rem; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font: inherit; cursor: pointer; }
.nav-user:hover, .nav-user[aria-expanded=true] { background: rgba(255, 255, 255, .16); }
.avatar { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--teal-bright), var(--teal)); color: var(--accent); font-weight: 800; font-size: .9rem; }
.nav-user-name { max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.nav-caret { width: 14px; height: 14px; flex-shrink: 0; opacity: .8; transition: transform .15s; }
.nav-user[aria-expanded=true] .nav-caret { transform: rotate(180deg); }
.nav-dropdown { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; display: flex; flex-direction: column; gap: .1rem; min-width: 220px; padding: .4rem; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.nav-dropdown[hidden] { display: none; }
/* « :not(.btn) » ici ne change rien pour ces liens (aucun n'a cette classe) : il sert uniquement à égaler
   la spécificité de « .main-nav a:not(.btn) » (le lien du menu, dans la barre), qui gagnait sinon sur ces
   liens du menu déroulant — ils sont aussi des descendants de .main-nav — et les rendait illisibles
   (texte clair prévu pour la barre sombre, sur le fond blanc du menu). */
.nav-dropdown a:not(.btn), .nav-dropdown button:not(.btn) { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .6rem .7rem; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.nav-dropdown a:not(.btn):hover, .nav-dropdown button:not(.btn):hover { background: var(--bg-soft); }
.nav-dropdown a[aria-current=page]:not(.btn) { background: var(--bg-soft); color: var(--accent); font-weight: 600; }
.nav-dropdown .btn-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); }
.nav-dropdown-sep { border: 0; border-top: 1px solid var(--border); margin: .3rem .2rem; }
.nav-dropdown .inline-form { display: block; margin: 0; }
.header-inner .btn-primary { background: #fff; color: var(--accent); }
.header-inner .btn-primary:hover { background: var(--teal-soft); color: var(--accent); }
.header-inner .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.header-inner .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.header-inner :focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.header-inner .btn-sm { padding: .4rem .9rem; font-size: .9rem; }

/* Bouton de menu (mobile) */
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; place-items: center; }
.nav-toggle:hover { background: rgba(255, 255, 255, .16); }
.nav-bars { position: relative; display: block; width: 20px; height: 14px; }
.nav-bars i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .15s, top .2s; }
.nav-bars i:nth-child(1) { top: 0; } .nav-bars i:nth-child(2) { top: 6px; } .nav-bars i:nth-child(3) { top: 12px; }
.is-open .nav-bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.is-open .nav-bars i:nth-child(2) { opacity: 0; }
.is-open .nav-bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 860px) {
    .nav-toggle { display: grid; }
    /* Sans JavaScript le menu reste affiché sous le logo ; avec JavaScript il devient un panneau déroulant. */
    .header-inner { flex-wrap: wrap; }
    .main-nav { width: 100%; flex-direction: column; align-items: stretch; gap: .2rem; padding: .5rem 0 .4rem; border-top: 1px solid rgba(255, 255, 255, .14); }
    .js .main-nav { display: none; }
    .js .is-open .main-nav { display: flex; animation: navdrop .18s ease-out; }
    .main-nav a:not(.btn) { padding: .75rem .9rem; }
    .main-nav a[aria-current=page]::after { left: .9rem; margin-left: 0; bottom: 50%; transform: translateY(50%); width: 3px; height: 16px; }
    .main-nav a[aria-current=page] { padding-left: 1.5rem; }
    .main-nav .btn, .main-nav .inline-form { margin: .25rem 0 0; }
    .main-nav .inline-form .btn, .main-nav .btn-primary { width: 100%; padding: .75rem; }
    .nav-sep { display: none; }
    .nav-user-name { max-width: none; }
    /* Le menu de compte se fond dans le panneau déjà ouvert : pas de second niveau à déplier. */
    .nav-user-wrap { width: 100%; margin: .25rem 0 0; }
    .nav-user { width: 100%; padding: .75rem .9rem; }
    .nav-caret { display: none; }
    .nav-dropdown, .nav-dropdown[hidden] { display: flex; position: static; margin-top: .2rem; padding: 0 0 0 .5rem; background: none; border: 0; box-shadow: none; }
    .nav-dropdown a:not(.btn), .nav-dropdown button:not(.btn) { color: #e6f0f5; min-height: 44px; }
    .nav-dropdown a:not(.btn):hover, .nav-dropdown button:not(.btn):hover { background: rgba(255, 255, 255, .1); }
    .nav-dropdown a[aria-current=page]:not(.btn) { background: rgba(255, 255, 255, .14); color: #fff; }
    .nav-dropdown .btn-icon { color: inherit; }
    .nav-dropdown-sep { border-top-color: rgba(255, 255, 255, .22); }
    @keyframes navdrop { from { opacity: 0; transform: translateY(-6px); } }
}
.site-footer { background: var(--accent); color: #cfe0ea; padding: 1.75rem 0; font-size: .9rem; margin-top: 3rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--teal-bright); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .6rem 1.15rem; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, transform .1s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; box-shadow: 0 8px 18px -8px rgba(2, 48, 71, .6); }
.btn-ghost { background: transparent; color: var(--accent); border-color: #99c3d8; }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent); }
.btn-lg { padding: .85rem 1.6rem; font-size: 1.1rem; }
.btn-arrow::after { content: "→"; transition: transform .15s; }
.btn-arrow:hover::after { transform: translateX(3px); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* Messages */
.flashes { margin-top: 1rem; }
.flash { margin: 0 0 .5rem; padding: .75rem 1rem; border-radius: 10px; font-weight: 500; }
.flash-success { background: var(--ok-bg); color: var(--ok); }
.flash-error { background: var(--err-bg); color: var(--err); }
.flash-info { background: var(--info-bg); color: var(--info); }

/* Accueil */
.hero { background: radial-gradient(50rem 18rem at 85% 0%, rgba(61, 220, 184, .22), transparent 70%), linear-gradient(180deg, var(--bg-soft), var(--bg)); padding: 3.5rem 0 3rem; margin-top: -4.5rem; padding-top: 8rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2.5rem; align-items: center; }
.hero-copy .lead { max-width: 560px; margin: 0 0 1.5rem; font-size: 1.15rem; color: var(--muted); }
.hero h1 { color: var(--accent); }
.hl { background: linear-gradient(100deg, var(--teal), #0b7f9c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; gap: .4rem; align-items: center; margin: 0 0 1rem; padding: .3rem .85rem; border-radius: 999px; background: var(--teal-soft); color: #0a5c4d; font-size: .85rem; font-weight: 600; }

/* Visuel : deux modèles empilés, badge orange et carte bleu nuit inclinée */
.hero-visual { position: relative; min-height: 380px; }
.hero-sheet { position: absolute; width: 56%; background: #fff; border-radius: 10px; padding: 6px; box-shadow: 0 25px 50px -14px rgba(2, 48, 71, .45); }
.hero-sheet-1 { left: 4%; top: 8%; transform: rotate(-6deg); }
.hero-sheet-2 { right: 2%; top: 0; transform: rotate(4deg); z-index: 1; }
.hero-badge { position: absolute; right: 0; top: 4%; z-index: 3; background: var(--hot); color: #fff; font-size: .8rem; font-weight: 700; padding: .3rem .85rem; border-radius: 999px; box-shadow: 0 8px 18px -6px rgba(216, 58, 8, .6); }
.hero-note { position: absolute; left: 0; bottom: 4%; z-index: 3; max-width: 15rem; margin: 0; display: grid; gap: .15rem; background: var(--accent); color: #fff; padding: .9rem 1.1rem; border-radius: 14px; transform: rotate(-3deg); box-shadow: 0 18px 36px -12px rgba(2, 48, 71, .6); font-size: .9rem; }
.hero-note span { color: #cfe0ea; font-size: .82rem; }
@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { min-height: 320px; max-width: 460px; margin-inline: auto; width: 100%; }
}
/* Fond du hero : CV et lettres qui défilent (colonnes inclinées, sens alternés). Réutilisé par .docbg-host (guides, connexion, inscription). */
.hero, .docbg-host { position: relative; isolation: isolate; }
.docbg-host { overflow: hidden; }
.docbg-auth { min-height: calc(100vh - 11rem); }
.hero-bg { position: absolute; inset: -12% -6%; z-index: -1; display: flex; justify-content: center; gap: 1.5rem; transform: rotate(-9deg); opacity: .3; pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); }
.bg-col { flex: 0 0 170px; overflow: hidden; }
.bg-set { display: grid; gap: 1.25rem; padding-bottom: 1.25rem; }
.bg-sheet { border-radius: 6px; box-shadow: 0 10px 24px -10px rgba(2, 48, 71, .5); }
.bg-col:nth-child(even) { margin-top: 3rem; }
@media (max-width: 860px) {
    .bg-col:nth-child(n+5) { display: none; }
    .hero-bg { opacity: .22; }
}
@media (max-width: 640px) { .bg-col:nth-child(n+4) { display: none; } }
@media (max-width: 520px) { .bg-col:nth-child(n+3) { display: none; } }
@media (prefers-reduced-motion: no-preference) {
    .hero-sheet-1 { animation: floaty 7s ease-in-out infinite; }
    .hero-sheet-2 { animation: floaty 8s ease-in-out -2s infinite; }
    @keyframes floaty { 50% { translate: 0 -8px; } }
    .bg-track { animation: bg-up 55s linear infinite; }
    .bg-col:nth-child(even) .bg-track { animation-direction: reverse; animation-duration: 65s; }
    .bg-col-3 .bg-track { animation-duration: 48s; animation-delay: -12s; }
    @keyframes bg-up { to { transform: translateY(-50%); } }
}

/* Erreurs */
.error-page { text-align: center; }
.error-code { font-size: 4rem; font-weight: 800; color: var(--accent); margin: 0; }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}

/* Formulaires et pages d'authentification */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1fr); place-items: start center; padding: 3rem 0; }
.auth-card { width: min(460px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.auth-card.center { text-align: center; }
.auth-card h1 { font-size: 1.6rem; }
.auth-alt { text-align: center; margin: 1rem 0 0; font-size: .95rem; }
.big-icon { font-size: 3rem; line-height: 1; margin-bottom: .5rem; }

.form { display: grid; gap: 1.1rem; margin-top: 1.25rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; }
.field input[type=text], .field input[type=search], .field input[type=email], .field input[type=password], .field input[type=tel], .field input[type=number], .field input[type=date], .field select, .field textarea {
    width: 100%; padding: .65rem .8rem; border: 1px solid #7a8c98; border-radius: 10px; font: inherit; background: #fff; color: var(--text);
}
.field input[type=date] { color-scheme: light; }
.field input[type=date]::-webkit-calendar-picker-indicator { padding: .2rem; margin-left: .3rem; border-radius: 6px; cursor: pointer; }
.field input[type=date]::-webkit-calendar-picker-indicator:hover { background: var(--accent-soft); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 3px solid #99c3d8; outline-offset: 0; }
.field.checkbox { grid-template-columns: auto 1fr; align-items: start; gap: .6rem; }
.field.checkbox input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--accent); }
.field.checkbox label { font-weight: 400; }
.input-group { display: flex; gap: .5rem; }
.input-group input { flex: 1; }
.btn-block { width: 100%; }

.pw-meter { height: 6px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.pw-label { margin: 0; font-size: .85rem; color: var(--muted); }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8rem; font-size: 1.25rem; }

/* Onglets, téléphone, code OTP */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hint { margin: 0; font-size: .85rem; color: var(--muted); }
.tabs { display: flex; gap: .25rem; background: #e6f0f5; padding: .25rem; border-radius: 12px; margin-top: 1.25rem; }
.tabs [role=tab] { flex: 1; border: 0; background: transparent; font: inherit; font-weight: 600; padding: .55rem; border-radius: 9px; cursor: pointer; color: var(--muted); }
.tabs [role=tab][aria-selected=true] { background: var(--surface); color: var(--accent-dark); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
[hidden] { display: none !important; }
.phone-group select { flex: 0 0 46%; max-width: 46%; padding: .65rem .5rem; border: 1px solid #7a8c98; border-radius: 10px; font: inherit; background: #fff; }
.phone-group input { min-width: 0; }

.otp-fieldset { border: 0; padding: 0; margin: 0; }
.otp-boxes { display: flex; justify-content: center; gap: .5rem; }
.otp-box { width: 3rem; height: 3.5rem; text-align: center; font: inherit; font-size: 1.6rem; font-weight: 700; border: 2px solid #7a8c98; border-radius: 10px; background: #fff; color: var(--text); }
.otp-box:focus { border-color: var(--accent); outline: 3px solid #99c3d8; outline-offset: 0; }
.resend-form { margin-top: 1rem; }
@media (max-width: 380px) { .otp-box { width: 2.5rem; height: 3rem; } .otp-boxes { gap: .35rem; } }

/* Accueil : accroche, galerie, étapes */
.hero-actions { display: flex; gap: .75rem; justify-content: flex-start; flex-wrap: wrap; margin: 0 0 1.25rem; }
.trust { list-style: none; display: flex; gap: .5rem 1.5rem; justify-content: flex-start; flex-wrap: wrap; padding: 0; margin: 0; color: var(--muted); font-size: .95rem; font-weight: 500; }
.trust li::before { content: "✓"; display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; margin-right: .45rem; border-radius: 50%; background: var(--teal); color: #fff; font-size: .75rem; font-weight: 800; }

.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.25rem 0 1.5rem; }
.chip-btn { font: inherit; font-weight: 600; padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; transition: background .15s, border-color .15s; }
.chip-btn:hover { border-color: var(--accent); }
.chip-btn[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-btn .count { opacity: .75; font-weight: 400; margin-left: .15rem; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1.5rem; }
.tcard { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: 0 2px 6px rgba(2, 48, 71, .05); display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s, border-color .18s; }
.tcard[hidden] { display: none; }
.tcard:hover, .tcard:focus-within { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #66a5c4; }
.tcard-preview { display: block; padding: 1rem 1rem 0; background: #e6f0f5; }
.tcard-preview .thumb { box-shadow: 0 6px 16px -4px rgba(2, 48, 71, .3); border-radius: 4px; }
.tcard-body { padding: 1rem; display: grid; gap: .35rem; }
.tcard-body h3 { margin: 0; font-size: 1.1rem; }
.tcard-body p { margin: 0 0 .5rem; font-size: .9rem; }

.how { background: linear-gradient(135deg, #023047, #01202f); color: #fff; padding: 3.5rem 0; }
.how h2 { text-align: center; margin-bottom: 1.75rem; color: #fff; }
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; padding: 0; margin: 0; }
.steps li { background: rgba(255, 255, 255, .07); border-radius: 18px; padding: 1.5rem; border: 1px solid rgba(255, 255, 255, .16); }
.steps h3 { margin: .6rem 0 .3rem; font-size: 1.1rem; }
.steps p { margin: 0; color: #cfe0ea; }
.step-n { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: linear-gradient(135deg, var(--teal-bright), var(--teal)); color: var(--accent); font-weight: 800; }

.reassure h2 { text-align: center; }
.reassure-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.reassure-grid h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.reassure-grid p { margin: 0; color: var(--muted); }
.center-cta { text-align: center; margin-top: 2rem; }

.chosen-note { max-width: 460px; margin: 0 auto 1rem; padding: .7rem 1rem; background: var(--accent-soft); border-radius: 10px; font-size: .95rem; }
.editor-stub { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 2rem; align-items: start; margin-top: 1.5rem; }
.stub-preview { box-shadow: var(--shadow); border-radius: 4px; }
@media (max-width: 640px) { .editor-stub { grid-template-columns: 1fr; } .stub-preview { max-width: 280px; } }

/* Modèles premium */
.chip-premium { border-color: #f4b9a4; background: #fff1ec; }
.chip-premium:hover { border-color: var(--hot); }
.chip-premium[aria-pressed=true] { background: var(--hot); border-color: var(--hot); color: #fff; }
.tcard-preview { position: relative; }
.badge-premium { display: inline-block; vertical-align: middle; margin-left: .35rem; background: var(--hot); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .04em; padding: .15rem .55rem; border-radius: 999px; }
.tcard.is-premium { border-color: #f4b9a4; }
.tcard.is-premium:hover, .tcard.is-premium:focus-within { border-color: var(--hot); box-shadow: 0 14px 30px -10px rgba(216, 58, 8, .35); }

.tag-photo { white-space: nowrap; color: var(--accent-dark); font-weight: 600; }

/* Connexion rapide (développement local) */

/* Paramètres : mémorisation des informations personnelles */
.settings { max-width: 760px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-top: 1.5rem; }
.panel h2 { margin-top: 0; font-size: 1.25rem; }
.panel h3 { margin: 1.5rem 0 .5rem; font-size: 1rem; }
.memo-toggle { margin: 1rem 0; }
.memo-list { display: grid; gap: .4rem; margin: 0 0 .75rem; }
.memo-list div { display: grid; grid-template-columns: 9rem 1fr; gap: .75rem; }
.memo-list dt { color: var(--muted); }
.memo-list dd { margin: 0; overflow-wrap: anywhere; }
.memo-erase { margin: 1rem 0; padding-left: 1.2rem; overflow-wrap: anywhere; }
.choice { border: 1px solid var(--border); border-radius: 10px; padding: .75rem 1rem; display: grid; gap: .4rem; }
.choice legend { font-weight: 600; padding: 0 .35rem; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.btn-danger { background: #b91c1c; color: #fff; }
.btn-danger:hover { background: #991b1b; color: #fff; }

/* Fenêtre de confirmation (remplace window.confirm natif, impossible à styler) : voir confirm-dialog.js. */
.confirm-modal { width: min(420px, calc(100% - 2rem)); padding: 0; border: 0; border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 30px 70px -20px rgba(2, 48, 71, .55); }
.confirm-modal[open] { display: flex; animation: confirm-in .18s ease-out; }
.confirm-modal::backdrop { background: rgba(2, 30, 45, .55); backdrop-filter: blur(2px); }
.confirm-modal-body { display: grid; gap: 1rem; width: 100%; padding: 1.75rem 1.5rem 1.5rem; text-align: center; }
.confirm-modal-icon { margin: 0; font-size: 2rem; line-height: 1; }
.confirm-modal-msg { margin: 0; font-size: 1.05rem; font-weight: 600; line-height: 1.45; }
.confirm-modal-actions { display: flex; gap: .6rem; justify-content: center; margin-top: .25rem; }
.confirm-modal-actions .btn { flex: 1; }
@keyframes confirm-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .confirm-modal[open] { animation: none; } }
.danger-zone { border-color: #f0b4b4; background: #fffafa; }
.danger-zone h2 { color: #991b1b; }
.memo-note { margin: .15rem 0 0; }
@media (max-width: 480px) { .memo-list div { grid-template-columns: 1fr; gap: 0; } }

/* Bandeau d'annonce (réglage admin) */
.announce { margin: 0; background: var(--teal-soft); color: #0a5c4d; text-align: center; padding: .5rem 1rem; font-weight: 600; }

/* ============================================================
   Responsivité : réglages transversaux (mobile, tablette, paysage, écrans tactiles, grands écrans)
   ============================================================ */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-wrap: break-word; }
img, svg, video, canvas { max-width: 100%; }
img, video { height: auto; }
.section { padding-block: clamp(2rem, 6vw, 3rem); }
.docbg-auth { min-height: calc(100dvh - 11rem); }            /* dvh : tient compte de la barre d'adresse mobile */
.jobs-dialog { max-height: min(92dvh, 860px); }

/* Tablettes et petits ordinateurs */
@media (max-width: 1023px) {
    .hero { padding-block: 3rem 2.5rem; }
    .hero-grid { gap: 1.75rem; }
}

/* Téléphones */
@media (max-width: 640px) {
    .hero-actions { display: grid; }
    .hero-actions .btn { width: 100%; }
    .auth-wrap { padding: 1.5rem 0 2rem; }
    .auth-card { padding: 1.5rem 1.25rem; }
    .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: .6rem; }
    .site-footer { margin-top: 2rem; }
    .how { padding-block: 2.5rem; }
    .gallery { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 1rem; }
    /* Filtres : une seule rangée qui se fait défiler au doigt, au lieu d'une pile de pastilles. */
    .filters, .shop-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1rem; padding: .25rem 1rem .6rem; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .filters::-webkit-scrollbar, .shop-filters::-webkit-scrollbar { display: none; }
    .filters > *, .shop-filters > * { flex: none; scroll-snap-align: start; white-space: nowrap; }
}
@media (max-width: 380px) {
    .brand { font-size: 1.2rem; }
    .brand-mark { width: 32px; height: 32px; }
    .btn-lg { padding: .75rem 1.2rem; font-size: 1rem; }
    .container { width: calc(100% - 1.5rem); }
    .filters, .shop-filters { margin-inline: -.75rem; padding-inline: .75rem; }
}

/* Téléphone en paysage : l'en-tête ne reste pas collé, il mangerait la moitié de l'écran. */
@media (max-height: 520px) and (orientation: landscape) {
    .site-header { position: static; }
    .hero, .shop-hero { margin-top: 0; padding-top: 2rem; }
    .docbg-auth { min-height: 0; }
}

/* Écrans tactiles : zones de toucher d'au moins 44 px. */
@media (pointer: coarse) {
    .btn, .chip-btn, .nav-toggle { min-height: 44px; }
    .btn-sm { min-height: 40px; }
    .field input[type=text], .field input[type=search], .field input[type=email], .field input[type=password], .field input[type=tel], .field input[type=number], .field input[type=date], .field select { min-height: 46px; }
    .field.checkbox input { width: 1.4rem; height: 1.4rem; }
    .main-nav a:not(.btn) { min-height: 44px; display: flex; align-items: center; }
}

/* Très grands écrans : le contenu garde une largeur de lecture confortable. */
@media (min-width: 1600px) {
    .prose, .settings { max-width: 820px; }
}

/* Questions fréquentes (accueil) : repliables, lisibles et reprises en données structurées. */
.faq { max-width: 860px; }
.faq-list { display: grid; gap: .6rem; margin-top: 1.5rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.faq-item summary { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.15rem; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; margin-left: auto; font-size: 1.5rem; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--accent-soft); }
.faq-item summary h3 { margin: 0; font-size: 1.02rem; font-weight: 600; color: var(--text); }
.faq-item p { margin: 0; padding: 0 1.15rem 1.15rem; color: var(--muted); }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }
@media (pointer: coarse) { .faq-item summary { min-height: 52px; } }
