/* ToubkalExperiences — interface professionnelle : Inter, gris neutres, bleu Majorelle, cartes à bordure fine,
   menu latéral, tableaux denses. Aucune ressource externe. */

@font-face { font-family: "Inter"; src: url("../fonts/hub/inter.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
    --bg: #f5f6f8; --surface: #fff; --subtle: #f9fafb; --border: #e4e7ec; --border-2: #d0d5dd;
    --text: #101828; --text-2: #344054; --muted: #667085; --faint: #98a2b3;
    --brand: #2541b2; --brand-600: #1d3596; --brand-50: #eef1fc; --brand-100: #dce3fa;
    --ok: #067647; --ok-50: #ecfdf3; --warn: #b54708; --warn-50: #fffaeb; --bad: #b42318; --bad-50: #fef3f2; --info: #175cd3; --info-50: #eff8ff;
    --radius: 10px; --radius-lg: 14px;
    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-lg: 0 12px 24px -6px rgba(16, 24, 40, .12), 0 4px 8px -4px rgba(16, 24, 40, .06);
    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.55 var(--font); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; color: var(--text); letter-spacing: -.01em; }
h1 { font-size: 24px; line-height: 32px; font-weight: 650; }
h2 { font-size: 18px; line-height: 28px; font-weight: 600; }
h3 { font-size: 15px; line-height: 22px; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12.5px; } .xs { font-size: 11.5px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.stack > * + * { margin-top: var(--gap, 12px); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ico { width: 18px; height: 18px; flex: none; }

/* ——— Coque de l'application ——— */
.shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.sidebar-head { padding: 18px 18px 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--text); letter-spacing: -.01em; line-height: 1.2; }
.logo:hover { text-decoration: none; color: var(--text); }
.logo-img { width: 30px; height: 30px; flex: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.logo-mark svg { width: 18px; height: 18px; }
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.nav { padding: 6px 10px 16px; flex: 1; }
.nav-label { padding: 14px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text-2); font-weight: 500; transition: background-color .15s var(--ease), color .15s var(--ease); }
.nav a:hover { background: var(--subtle); color: var(--text); text-decoration: none; }
.nav a.on { background: var(--brand-50); color: var(--brand); }
.nav a .ico { color: var(--faint); } .nav a.on .ico { color: var(--brand); }
.nav .sub { margin: 2px 0 6px 20px; padding-left: 12px; border-left: 1px solid var(--border); }
.nav .sub a { padding: 6px 10px; font-size: 13px; font-weight: 450; }
.nav .count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; text-align: center; line-height: 18px; }
.sidebar-foot { padding: 12px; border-top: 1px solid var(--border); }
.user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-100); color: var(--brand); display: grid; place-items: center; font-weight: 650; font-size: 13px; flex: none; }
.user b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user span { font-size: 12px; color: var(--muted); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 28px; background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(1.6) blur(10px); -webkit-backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--border); }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); min-width: 0; }
.crumbs b { color: var(--text); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs { overflow: hidden; flex: 1 1 auto; }
.topbar .spacer { flex: 1; }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--subtle); border: 1px solid var(--border); }
.lang a { padding: 3px 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.lang a:hover { text-decoration: none; color: var(--text); }
.lang a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); }
/* Sélecteur de langue : en pied de page partout, cibles assez grandes pour le doigt. */
.site-foot .lang, .app-foot .lang, .auth-foot .lang { flex-wrap: wrap; }
.site-foot .lang a, .app-foot .lang a, .auth-foot .lang a { min-width: 34px; min-height: 30px; display: inline-flex; align-items: center; justify-content: center; }
.app-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 32px 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.auth-foot { display: flex; justify-content: center; padding-top: 12px; }
.site-foot .wrap { flex-wrap: wrap; gap: 14px; }
.topbar .menu-btn { display: none; }
.scrim { display: none; }
.content { padding: 28px; max-width: 1360px; width: 100%; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head p { color: var(--muted); margin-top: 4px; max-width: 720px; }

/* ——— Composants ——— */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-head p { color: var(--muted); font-size: 13px; }
.card-body { padding: 20px; }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--border); background: var(--subtle); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.grid { display: grid; gap: 20px; }
/* Un enfant de grille ne s'élargit jamais à la taille d'une longue URL ou d'un bloc de code. */
.grid > *, .stack > *, .page-head > * { min-width: 0; }
/* Un badge long (message d'état) passe à la ligne au lieu de sortir de l'écran. */
.badge { max-width: 100%; } .card-head .badge { white-space: normal; }
input[type=file] { min-height: 38px; padding: 8px; }
.page-head h1, .card-head h2 { overflow-wrap: anywhere; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.mb { margin-bottom: 20px; }

.stat { padding: 18px 20px; }
.stat-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.stat-value { margin-top: 8px; font-size: 26px; line-height: 32px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-sub { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.stat-ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 8px; border: 1px solid transparent;
    background: var(--brand); color: #fff; font: 600 13.5px/1 var(--font); cursor: pointer; white-space: nowrap; box-shadow: var(--shadow-xs);
    transition: background-color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease); }
.btn:hover { background: var(--brand-600); color: #fff; text-decoration: none; }
.btn .ico { width: 16px; height: 16px; }
.btn-secondary { background: var(--surface); color: var(--text-2); border-color: var(--border-2); }
.btn-secondary:hover { background: var(--subtle); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-2); box-shadow: none; }
.btn-ghost:hover { background: var(--subtle); color: var(--text); }
.btn-danger { background: var(--surface); color: var(--bad); border-color: #fda29b; }
.btn-danger:hover { background: var(--bad-50); color: var(--bad); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12.5px; }
.btn-lg { height: 44px; padding: 0 18px; font-size: 14.5px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.linkish { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 18px; white-space: nowrap;
    background: var(--subtle); color: var(--text-2); border: 1px solid var(--border); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-50); color: var(--ok); border-color: #abefc6; } .badge.warn { background: var(--warn-50); color: var(--warn); border-color: #fedf89; }
.badge.bad { background: var(--bad-50); color: var(--bad); border-color: #fecdca; } .badge.info { background: var(--info-50); color: var(--info); border-color: #b2ddff; }
.badge.brand { background: var(--brand-50); color: var(--brand); border-color: var(--brand-100); }
.badge.plain::before { display: none; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; padding: 10px 16px; background: var(--subtle); color: var(--muted); font-size: 12px; font-weight: 500; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-2); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fcfcfd; }
.table td b, .table td strong { color: var(--text); font-weight: 600; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tfoot td { background: var(--subtle); font-weight: 600; color: var(--text); border-top: 1px solid var(--border); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty .ico { width: 40px; height: 40px; margin: 0 auto 12px; padding: 9px; border-radius: 10px; background: var(--subtle); color: var(--faint); border: 1px solid var(--border); }
.empty h3 { margin-bottom: 4px; }

.field { display: grid; gap: 6px; }
.field + .field { margin-top: 16px; }
.field label, .label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.input, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
    width: 100%; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text);
    font: 14px var(--font); box-shadow: var(--shadow-xs); transition: border-color .15s, box-shadow .15s; }
.field textarea { height: auto; min-height: 110px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.field input[type=file] { height: auto; padding: 8px; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #849bec; box-shadow: 0 0 0 4px rgba(37, 65, 178, .12); }
.hint { font-size: 12.5px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); margin-top: 2px; flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .field + .field { margin-top: 0; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form .input { flex: 1 1 200px; width: auto; }
.input-sm { height: 32px !important; font-size: 13px !important; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; margin-bottom: 20px; font-size: 13.5px; border: 1px solid; }
.alert .ico { margin-top: 1px; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-ok { background: var(--ok-50); color: #05603a; border-color: #abefc6; }
.alert-bad { background: var(--bad-50); color: #912018; border-color: #fecdca; }
.alert-warn { background: var(--warn-50); color: #93370d; border-color: #fedf89; }
.alert-info { background: var(--info-50); color: #194185; border-color: #b2ddff; }

.code { background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 14px 16px; margin: 0; font: 12.5px/1.6 ui-monospace, "SF Mono", Menlo, monospace; white-space: pre-wrap; word-break: break-all; }
.copyline { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border: 1px solid var(--border-2); border-radius: 8px; background: var(--subtle); }
.copyline span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 12.5px ui-monospace, "SF Mono", Menlo, monospace; color: var(--text-2); }

.segmented { display: inline-flex; flex-wrap: wrap; max-width: 100%; padding: 3px; border-radius: 9px; background: var(--subtle); border: 1px solid var(--border); }
.segmented a { padding: 5px 12px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--muted); }
.segmented a:hover { text-decoration: none; color: var(--text); }
.segmented a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); }

.progress { height: 8px; border-radius: 999px; background: var(--brand-50); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.list > * { padding: 14px 20px; border-bottom: 1px solid var(--border); }
.list > *:last-child { border-bottom: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; color: var(--text); font-weight: 500; }

.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid line { stroke: var(--border); }
.chart .line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart .bar { fill: #9fb0ef; }
.chart text { fill: var(--faint); font: 11px var(--font); }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Programmes et excursions */
.program-card { display: flex; flex-direction: column; overflow: hidden; }
.program-card .cover { position: relative; height: 140px; background: var(--subtle); }
.program-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.program-card .cover .badge { position: absolute; top: 12px; right: 12px; }
.program-card .body { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.program-card .terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.program-card .terms b { display: block; font-size: 15px; font-weight: 650; } .program-card .terms span { font-size: 11.5px; color: var(--muted); }
.thumb { width: 56px; height: 42px; border-radius: 6px; overflow: hidden; background: var(--subtle); border: 1px solid var(--border); flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--faint); background: repeating-linear-gradient(135deg, #f2f4f7 0 10px, #eaecf0 10px 20px); }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 150px; gap: 8px; }
.gallery a:first-child { grid-row: span 2; }
.gallery a { border-radius: 10px; overflow: hidden; background: var(--subtle); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.checks li .ico { color: var(--ok); width: 16px; height: 16px; margin-top: 3px; }
.widget-preview { padding: 24px; background: var(--subtle); border-radius: 10px; border: 1px dashed var(--border-2); }

/* Connexion / inscription */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--surface); }
.auth-panel { display: flex; flex-direction: column; padding: 32px 48px; }
.auth-panel .form-box { width: 100%; max-width: 420px; margin: auto; padding: 32px 0; }
.auth-panel h1 { font-size: 28px; line-height: 36px; margin: 0 0 6px; }
.auth-side { position: relative; overflow: hidden; background: #0b1437; color: #fff; display: flex; align-items: flex-end; padding: 48px; }
.auth-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.auth-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 20, 55, .1), rgba(11, 20, 55, .85)); }
.auth-side > div { position: relative; z-index: 1; max-width: 460px; }
.auth-side h2 { color: #fff; font-size: 26px; line-height: 34px; }
.auth-side ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: #dbe2ff; }
.auth-side li { display: flex; gap: 10px; } .auth-side li .ico { color: #9fb0ef; margin-top: 2px; }

/* Site public */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.site-head .wrap { height: 64px; display: flex; align-items: center; gap: 24px; }
.site-nav { display: flex; gap: 4px; margin-left: 12px; }
.site-nav a { padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-weight: 500; }
.site-nav a:hover { background: var(--subtle); text-decoration: none; color: var(--text); }
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--border); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-size: 46px; line-height: 54px; font-weight: 700; letter-spacing: -.025em; margin: 16px 0; }
.hero h1 span { color: var(--brand); }
.hero p.lead { font-size: 17px; line-height: 28px; color: var(--text-2); max-width: 560px; }
.hero .actions { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.hero-stats span { font-size: 13px; color: var(--muted); }
.mock { position: relative; }
.mock > .card { overflow: hidden; box-shadow: var(--shadow-lg); }
.mock-photo { height: 220px; } .mock-photo img { width: 100%; height: 100%; object-fit: cover; }
.mock-float { position: absolute; left: -28px; bottom: -24px; width: 250px; box-shadow: var(--shadow-lg); }
.section { padding: 80px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: 30px; line-height: 38px; font-weight: 700; letter-spacing: -.02em; margin: 10px 0 10px; }
.section-head p { font-size: 16px; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-size: 12.5px; font-weight: 600; border: 1px solid var(--brand-100); }
.feature { padding: 22px; }
.feature .stat-ico { margin-bottom: 14px; }
.feature p { color: var(--muted); margin-top: 6px; }
.partner { overflow: hidden; }
.partner img { width: 100%; height: 150px; object-fit: cover; }
.partner div { padding: 14px 16px; }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 8px; color: var(--muted); max-width: 760px; }
.cta { background: var(--brand); color: #fff; border-radius: 16px; padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: 26px; } .cta p { color: #dbe2ff; margin-top: 6px; }
.cta .btn { background: #fff; color: var(--brand); } .cta .btn:hover { background: var(--brand-50); }
.site-foot { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 13px; background: var(--surface); }

@media (max-width: 1180px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1024px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; left: 0; top: 0; z-index: 50; width: 280px; transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: var(--shadow-lg); }
    .nav-open .sidebar { transform: none; }
    .nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(16, 24, 40, .35); }
    .topbar .menu-btn { display: inline-flex; }
    .g-main, .hero .wrap { grid-template-columns: 1fr; }
    .site-nav { display: none; }
    .mock-float { left: 12px; }
}
@media (max-width: 420px) { .site-head .btn-ghost { display: none; } }
@media (max-width: 767px) {
    .crumbs > a, .crumbs > span { display: none; }
    .site-head .wrap { gap: 8px; } .site-head .btn { height: 34px; padding: 0 10px; font-size: 13px; }
    .content { padding: 20px 16px; } .topbar { padding: 0 16px; } .wrap { padding: 0 16px; } .app-foot { padding: 14px 16px 20px; }
    .g-2, .g-3, .g-4, .form-grid { grid-template-columns: 1fr; }
    .auth { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-panel { padding: 20px 16px; }
    .hero h1 { font-size: 34px; line-height: 42px; } .section { padding: 56px 0; }
    .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; } .gallery a:first-child { grid-column: span 2; }
    .table thead { display: none; }
    .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
    .table tr { padding: 10px 16px; border-bottom: 1px solid var(--border); }
    .table td { border: 0; padding: 3px 0; text-align: left !important; }
    .table td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 130px; color: var(--muted); font-size: 12px; }
    .table tfoot td { background: none; }
}

/* Calendrier des réservations (administrateur du hub). */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head { padding: 8px 10px; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--border); text-align: center; }
.cal-day { min-height: 86px; padding: 6px 8px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px; color: var(--text); }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day:hover { background: var(--subtle); text-decoration: none; }
.cal-day.out { background: var(--subtle); color: var(--muted); }
.cal-day.today .cal-n { background: var(--brand); color: #fff; }
.cal-day.on { box-shadow: inset 0 0 0 2px var(--brand); }
.cal-n { width: 100%; font-size: 12px; font-weight: 600; } .cal-day.today .cal-n { width: auto; padding: 0 6px; border-radius: 10px; margin-right: 100%; }
.cal-pill { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; color: #fff; font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 767px) { .cal-day { min-height: 58px; padding: 4px; } .cal-head { padding: 6px 2px; } .cal-pill { min-width: 16px; height: 16px; font-size: 10.5px; padding: 0 4px; } }

/* Sélecteur de site (hub et back-office) */
.switcher { margin: 0 10px 10px; position: relative; }
.switcher > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; box-shadow: var(--shadow-xs); font-weight: 600; font-size: 13.5px; color: var(--text); }
.switcher > summary::-webkit-details-marker { display: none; }
.switcher > summary:hover { border-color: var(--border-2); }
.switcher > summary small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.switcher > summary .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switcher-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.switcher-panel { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; max-height: 60vh; overflow: auto; }
.switcher-panel button { display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; font: 500 13.5px var(--font); color: var(--text); text-align: left; cursor: pointer; }
.switcher-panel button small { flex-basis: 100%; padding-left: 18px; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.switcher-panel button:hover { background: var(--subtle); }
.switcher-panel button.on { background: var(--brand-50); color: var(--brand); }

/* ——— Finition « fluide » (principes Apple : réponse immédiate, matières, typographie selon la taille) ———
   Retour à l'appui sur tous les boutons (site public ET back-office) ; le reste ne vise que le site public. */
:root { --spring: cubic-bezier(.32, .72, 0, 1); --press: scale(.97); }
.btn, .site-menu-btn, .segmented a, .lang a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn { transition: background-color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease), transform .1s ease-out; }
.btn:active { transform: var(--press); transition-duration: 0s, 0s, 0s, .06s; }
@media (hover: none) { .btn:hover { background: var(--brand); } .btn-secondary:hover { background: var(--surface); } .btn-ghost:hover { background: transparent; } }

/* Ancres : le titre ne passe plus sous l'en-tête collant. */
html { scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* En-tête : matière translucide, filet seulement quand le contenu passe dessous. */
.site-head { background: rgba(255, 255, 255, .72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent; transition: border-color .2s ease, background-color .2s ease; }
.site-head.is-scrolled { border-bottom-color: rgba(16, 24, 40, .08); }
.site-nav a { transition: background-color .15s var(--ease), color .15s var(--ease); }
.site-nav a.on { color: var(--text); background: var(--subtle); }
.site-menu-btn { display: none; width: 40px; height: 40px; margin-right: -8px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; position: relative; }
.site-menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.6px; border-radius: 2px; background: var(--text); transition: transform .35s var(--spring); }
.site-menu-btn span:first-child { transform: translateY(-4px); } .site-menu-btn span:last-child { transform: translateY(4px); }
.site-menu-btn[aria-expanded="true"] span:first-child { transform: rotate(45deg); } .site-menu-btn[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
.site-menu-btn:active { background: var(--subtle); }
/* Panneau du menu mobile : naît du bouton (haut droit) et y retourne, même chemin à l'aller et au retour. */
.site-sheet { display: none; }
@media (max-width: 1024px) {
    .site-menu-btn { display: inline-block; }
    .site-sheet { display: block; position: absolute; top: calc(100% + 6px); right: 12px; width: min(300px, calc(100vw - 24px)); padding: 8px;
        border-radius: 16px; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
        border: 1px solid rgba(16, 24, 40, .08); box-shadow: 0 24px 48px -12px rgba(16, 24, 40, .22);
        transform-origin: top right; transform: scale(.94); opacity: 0; visibility: hidden; pointer-events: none;
        transition: transform .35s var(--spring), opacity .2s ease, visibility 0s linear .35s; }
    .site-head.menu-open .site-sheet { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform .35s var(--spring), opacity .15s ease, visibility 0s; }
    .site-sheet a { display: flex; align-items: center; min-height: 46px; padding: 0 14px; border-radius: 10px; color: var(--text); font-size: 16px; font-weight: 550; }
    .site-sheet a:hover { text-decoration: none; } .site-sheet a:active { background: rgba(16, 24, 40, .06); }
    .site-sheet a:last-child { margin-top: 6px; border-top: 1px solid var(--border); border-radius: 0 0 10px 10px; color: var(--muted); }
    .site-head .site-login { display: none; }
}

/* Typographie du site public : corps plus grand, interlignage et approche qui suivent la taille. */
.site-page { font-size: 15.5px; line-height: 1.6; }
.hero h1 { font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.5rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; margin: 18px 0; text-wrap: balance; }
.hero p.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.6; letter-spacing: -.005em; text-wrap: pretty; }
.section-head h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.5rem); line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.section-head p { font-size: 1.0625rem; line-height: 1.6; text-wrap: pretty; }
.feature h3 { font-size: 16px; letter-spacing: -.01em; }
.feature p { font-size: 14.5px; line-height: 1.55; }
.faq h2 { letter-spacing: -.025em; }
.eyebrow { letter-spacing: .01em; }

/* Hero : chiffres alignés, carte flottante posée sur la photo (elle ne cache plus les chiffres de la maquette). */
.hero .wrap { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 96px); }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 36px; }
.hero-stats b { font-size: 28px; letter-spacing: -.03em; line-height: 1.1; }
.mock > .card { border-radius: 20px; box-shadow: 0 30px 60px -20px rgba(16, 24, 40, .25), 0 0 0 1px rgba(16, 24, 40, .04); border: 0; }
.mock-photo { height: 240px; }
.mock-float { left: -32px; bottom: auto; top: 112px; width: 236px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .6);
    background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.mock-note { margin-top: 14px; text-align: right; }

/* Sections : alternance de fonds sans filets durs. */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.rates { background: var(--surface); }
.card.feature { border-radius: 16px; }

/* Sites partenaires : grille sur grand écran, défilement latéral avec aimantation sur téléphone. */
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.partner { border-radius: 16px; }
.partner img { height: 160px; }
.partner > div { padding: 14px 16px; }
.partner > div div { padding: 0; margin-top: 2px; }

/* FAQ : ouverture douce, chevron qui pivote (au lieu d'un « + » qui saute). */
.faq summary { align-items: center; padding: 2px 0; }
.faq summary::after { content: ""; width: 9px; height: 9px; flex: none; margin-right: 4px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted);
    transform: translateY(-2px) rotate(45deg); transition: transform .35s var(--spring); }
.faq details[open] summary::after { content: ""; transform: translateY(2px) rotate(225deg); }
@supports (interpolate-size: allow-keywords) {
    .faq { interpolate-size: allow-keywords; }
    .faq details::details-content { block-size: 0; overflow: hidden; opacity: 0; transition: block-size .4s var(--spring), opacity .25s ease, content-visibility .4s allow-discrete; }
    .faq details[open]::details-content { block-size: auto; opacity: 1; }
}
.cta { border-radius: 24px; padding: clamp(28px, 4vw, 48px); background: linear-gradient(135deg, var(--brand) 0%, #1a2f86 100%); }

@media (max-width: 1024px) {
    .mock { max-width: 560px; }
    .mock-float { left: 12px; top: 112px; }
}
@media (max-width: 767px) {
    .site-head .wrap { height: 58px; }
    .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .hero-stats b { font-size: 22px; } .hero-stats span { font-size: 12px; line-height: 1.35; display: block; margin-top: 2px; }
    .hero .actions .btn { flex: 1 1 100%; }
    .mock-photo { height: 200px; }
    .mock-float { position: relative; left: auto; top: auto; width: auto; margin: 12px 0 0; }
    .mock .grid.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mock .stat { padding: 12px 14px; } .mock .stat-value { font-size: 18px !important; }
    .grid.g-3, .grid.g-4 { gap: 12px; }
    .feature { display: grid; grid-template-columns: 32px 1fr; column-gap: 14px; padding: 16px 18px; }
    .feature .stat-ico { margin: 0; grid-row: span 2; } .feature p { margin-top: 2px; }
    .partners { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 4px 16px 12px; scroll-padding: 0 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
    .partners::-webkit-scrollbar { display: none; }
    .partners .partner { flex: 0 0 72%; scroll-snap-align: start; }
    .partner img { height: 150px; }
    /* Tableau des taux : on garde la ligne libellé / taux au lieu de l'empiler. */
    .rates .table tr { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
    .rates .table td { width: auto; padding: 0; }
    .rates .table td.num { text-align: right !important; }
    .faq + .card { display: none; }
}

/* Accessibilité : moins de mouvement, moins de transparence, plus de contraste. */
@media (prefers-reduced-motion: reduce) {
    .btn:active { transform: none; }
    .site-sheet, .site-head.menu-open .site-sheet { transform: none !important; transition: opacity .2s ease, visibility 0s !important; }
    .site-menu-btn span, .faq summary::after, .faq details::details-content { transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
    .site-head, .site-sheet, .mock-float { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
    .site-head, .site-head.is-scrolled { background: #fff; border-bottom-color: var(--border-2); }
    .site-sheet, .mock-float, .card { border-color: var(--border-2); }
}

/* ——— Back-office : coque « fluide » ——— */
.topbar { background: rgba(255, 255, 255, .72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom-color: transparent; transition: border-color .2s ease; }
.topbar.is-scrolled { border-bottom-color: rgba(16, 24, 40, .08); }
.page-head h1 { font-size: 26px; line-height: 1.2; letter-spacing: -.025em; }
.card-head h2 { letter-spacing: -.015em; }
.stat-value { letter-spacing: -.03em; }
/* Menu latéral : retour à l'appui, rubrique active nette. */
.nav a { -webkit-tap-highlight-color: transparent; }
.nav a:active { background: var(--brand-50); transform: scale(.985); transition-duration: 0s, 0s, .06s; }
.nav a { transition: background-color .15s var(--ease), color .15s var(--ease), transform .1s ease-out; }
.table tbody tr { transition: background-color .12s ease; }
@media (max-width: 1024px) {
    /* Tiroir : suit le doigt 1:1, se referme d'un balayage ; ressort sans rebond, interruptible à tout moment. */
    .sidebar { transition: transform .4s var(--spring); will-change: transform; touch-action: pan-y; }
    .sidebar.dragging { transition: none; }
    .scrim { display: block !important; position: fixed; inset: 0; z-index: 40; background: rgba(16, 24, 40, .35); opacity: 0; pointer-events: none; transition: opacity .4s var(--spring); }
    .nav-open .scrim { opacity: 1; pointer-events: auto; }
    .nav-open { overflow: hidden; }
}
@media (max-width: 767px) {
    /* Chiffres clés : 2 par ligne au lieu d'un écran par chiffre. */
    .content .grid.g-4:has(> .card.stat) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .content .grid.g-4 > .card.stat { padding: 14px; }
    .content .grid.g-4 > .card.stat .stat-value { font-size: 22px; line-height: 28px; margin-top: 6px; }
    .content .grid.g-4 > .card.stat .stat-label { font-size: 12px; gap: 6px; }
    .content .grid.g-4 > .card.stat .stat-ico { width: 26px; height: 26px; }
    .content .grid.g-4 > .card.stat .stat-sub { font-size: 11.5px; }
    .page-head h1 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .sidebar, .scrim { transition: opacity .2s ease !important; }
    .nav a:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) { .topbar { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* Fiches (réservation, fournisseur…) : le reste à encaisser se voit d'abord ; tableaux libellé / valeur gardés en ligne sur téléphone. */
.due-row td { padding-top: 14px; padding-bottom: 14px; }
.due-row td b { font-size: 17px; letter-spacing: -.01em; }
.due-row.is-open td { background: var(--warn-50); } .due-row.is-open td b { color: var(--warn); }
@media (max-width: 767px) {
    .crumbs { font-size: 0; } .crumbs b { font-size: 13px; }
    .table tr:has(> td.muted:first-child):has(> td:nth-child(2):last-child) { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 16px; }
    .table tr:has(> td.muted:first-child):has(> td:nth-child(2):last-child) > td { width: auto; padding: 0; }
    .table tr:has(> td.muted:first-child):has(> td:nth-child(2):last-child) > td:first-child { flex: none; }
    .table tr:has(> td.muted:first-child):has(> td:nth-child(2):last-child) > td:last-child { text-align: right !important; min-width: 0; overflow-wrap: anywhere; }
    .due-row.is-open { background: var(--warn-50); }
}

/* Listes déroulantes hors formulaire (dans un tableau, une ligne d'actions) : même matière que les champs. */
.content select:not(.input) { height: 36px; max-width: 100%; padding: 0 34px 0 12px; border-radius: 8px; border: 1px solid var(--border-2); background-color: var(--surface);
    color: var(--text); font: 13.5px var(--font); box-shadow: var(--shadow-xs); -webkit-appearance: none; appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23667085' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; transition: border-color .15s, box-shadow .15s; }
.field select { -webkit-appearance: none; appearance: none; padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23667085' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; }
.content select:not(.input):focus { outline: none; border-color: #849bec; box-shadow: 0 0 0 4px rgba(37, 65, 178, .12); }
.check input { cursor: pointer; }

/* ═══════════ Vitrine (accueil public) : refonte façon Apple ═══════════
   Police système (SF Pro sur Apple), titres très grands et serrés, boutons en pilule, grandes photos,
   sections blanc / gris clair / noir, apparition douce au défilement. */
.site-page { --ink: #1d1d1f; --ink-2: #424245; --ink-3: #6e6e73; --grey: #f5f5f7;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif; color: var(--ink); background: #fff; }
.site-page h1, .site-page h2, .site-page h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif; color: inherit; }
.site-page .wrap { max-width: 1080px; }
.site-page .site-head .wrap { max-width: 1180px; height: 56px; }
.site-page .site-nav a { font-size: 13px; color: var(--ink-2); padding: 6px 10px; }
.site-page .site-head .btn { height: 32px; padding: 0 14px; border-radius: 980px; font-size: 13px; }

.v-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 26px; border-radius: 980px; background: var(--brand); color: #fff;
    font-size: 17px; font-weight: 500; letter-spacing: -.01em; transition: background-color .2s ease, transform .1s ease-out; -webkit-tap-highlight-color: transparent; }
.v-btn:hover { background: var(--brand-600); color: #fff; text-decoration: none; }
.v-btn:active { transform: scale(.97); }
.v-btn-glass { background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.v-btn-glass:hover { background: rgba(255, 255, 255, .28); }

/* Hero plein cadre */
.v-hero { position: relative; min-height: min(92vh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #2a1d12; }
.v-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(1.04); animation: v-zoom 1.6s cubic-bezier(.2, .7, .1, 1) both; }
.v-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 55% at 50% 58%, rgba(0, 0, 0, .38), transparent 72%), linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .18) 40%, rgba(0, 0, 0, .66) 100%); }
.v-hero-in { position: relative; z-index: 1; text-align: center; padding-top: 120px; padding-bottom: clamp(40px, 7vh, 72px); }
.v-chip { display: inline-block; padding: 6px 14px; border-radius: 980px; font-size: 13px; font-weight: 500; letter-spacing: .01em; color: #fff;
    background: rgba(255, 255, 255, .16); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.v-hero h1 { margin: 20px auto 18px; max-width: 14ch; font-size: clamp(2.75rem, 1.2rem + 6.4vw, 6rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; color: #fff; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .3); }
.v-hero h1 span { background: linear-gradient(90deg, #ffe2bd, #ffc58f 50%, #ffae7a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v-lede { max-width: 640px; margin: 0 auto; font-size: clamp(1.0625rem, .95rem + .45vw, 1.3125rem); line-height: 1.5; color: rgba(255, 255, 255, .94); letter-spacing: -.01em; text-wrap: pretty; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.v-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.v-stats { display: inline-grid; grid-template-columns: repeat(3, auto); gap: 0; margin-top: 44px; border-radius: 20px; overflow: hidden;
    background: rgba(255, 255, 255, .12); backdrop-filter: saturate(160%) blur(22px); -webkit-backdrop-filter: saturate(160%) blur(22px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.v-stats > div { padding: 16px 26px; text-align: center; } .v-stats > div + div { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .2); }
.v-stats b { display: block; font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.v-stats span { display: block; margin-top: 4px; font-size: 12.5px; color: rgba(255, 255, 255, .78); max-width: 16ch; }
@keyframes v-zoom { from { transform: scale(1.12); } to { transform: scale(1.04); } }

/* Sections */
.v-sec { padding: clamp(80px, 11vw, 140px) 0; scroll-margin-top: 56px; }
.v-grey { background: var(--grey); }
.v-dark { background: #000; color: #f5f5f7; }
.v-head { text-align: center; max-width: 760px; margin: 0 auto clamp(44px, 6vw, 72px); }
.v-kicker { display: block; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); font-weight: 600; color: var(--brand); letter-spacing: -.01em; margin-bottom: 10px; }
.v-dark .v-kicker { color: #ffb36b; }
.v-head h2 { font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4rem); line-height: 1.04; letter-spacing: -.04em; font-weight: 700; text-wrap: balance; }
.v-head p { margin-top: 18px; font-size: clamp(1.0625rem, 1rem + .35vw, 1.3125rem); line-height: 1.5; color: var(--ink-3); letter-spacing: -.01em; text-wrap: pretty; }
.v-dark .v-head p { color: #a1a1a6; }

/* Étapes */
.v-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.v-step { padding: 34px 30px 36px; border-radius: 28px; background: var(--grey); }
.v-step-n { display: block; font-size: 48px; font-weight: 700; letter-spacing: -.05em; line-height: 1; background: linear-gradient(135deg, var(--brand), #6b7ff0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v-step h3 { margin-top: 26px; font-size: 22px; line-height: 1.2; letter-spacing: -.025em; font-weight: 700; }
.v-step p { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--ink-3); }
.v-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; margin-top: clamp(56px, 7vw, 88px); }
.v-feat h3 { margin-top: 16px; font-size: 17px; line-height: 1.3; letter-spacing: -.02em; font-weight: 600; }
.v-feat p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.v-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.v-ico .ico { width: 22px; height: 22px; } .v-ico.sm { width: 30px; height: 30px; border-radius: 8px; } .v-ico.sm .ico { width: 16px; height: 16px; }
.v-ico.ok { background: var(--ok-50); color: var(--ok); }

/* Tableau de bord présenté comme un appareil */
.v-device { position: relative; max-width: 820px; margin: 0 auto; border-radius: 28px; background: #fff; overflow: hidden;
    box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .05); }
.v-device-bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; font-size: 15px; }
.v-device-photo { height: clamp(220px, 34vw, 380px); } .v-device-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.v-device-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v-device-stats > div { padding: 20px 24px; } .v-device-stats > div + div { box-shadow: inset 1px 0 0 rgba(0, 0, 0, .07); }
.v-device-stats span { display: block; font-size: 13px; color: var(--ink-3); } .v-device-stats b { display: block; margin-top: 4px; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.v-ticket { position: absolute; left: 24px; top: 92px; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; max-width: 280px;
    background: rgba(255, 255, 255, .78); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 255, 255, .6); }
.v-ticket span { display: block; font-size: 13px; color: var(--ink-2); } .v-ticket b { display: block; font-size: 24px; letter-spacing: -.02em; color: var(--ok); margin-top: 2px; }
.v-ticket small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.v-note { margin-top: 22px; text-align: center; font-size: 13px; color: var(--ink-3); }
.v-dark .v-note { color: #86868b; max-width: 640px; margin-left: auto; margin-right: auto; }

/* Taux en très grand */
.v-rates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.v-rate { padding: 40px 32px; border-radius: 28px; background: #161617; text-align: center; }
.v-rate b { display: block; font-size: clamp(4rem, 2.6rem + 5vw, 7rem); line-height: 1; font-weight: 700; letter-spacing: -.06em;
    background: linear-gradient(180deg, #fff 30%, #9a9aa0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v-rate b small { font-size: .45em; letter-spacing: -.02em; }
.v-rate h3 { margin-top: 18px; font-size: 19px; letter-spacing: -.02em; color: #f5f5f7; }
.v-rate p { margin-top: 6px; font-size: 15px; color: #a1a1a6; }

/* Rail de photos des sites */
.v-rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    padding: 4px max(20px, calc((100vw - 1080px) / 2)) 16px; scroll-padding: 0 max(20px, calc((100vw - 1080px) / 2)); }
.v-rail::-webkit-scrollbar { display: none; }
.v-tile { position: relative; flex: 0 0 clamp(260px, 30vw, 340px); aspect-ratio: 3 / 4; margin: 0; border-radius: 28px; overflow: hidden; scroll-snap-align: start; background: #ddd; }
.v-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .1, 1); }
.v-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .65)); }
.v-tile figcaption { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; color: #fff; }
.v-tile figcaption span { display: block; font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.v-tile figcaption b { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .82); }
@media (hover: hover) { .v-tile:hover img { transform: scale(1.04); } }

/* FAQ */
.v-faq { max-width: 820px; }
.v-faq .faq details { padding: 22px 0; border-bottom-color: rgba(0, 0, 0, .1); }
.v-faq .faq summary { font-size: clamp(17px, 1.6vw, 20px); letter-spacing: -.02em; }
.v-faq .faq details p { font-size: 16px; line-height: 1.6; color: var(--ink-3); margin-top: 12px; }

/* Appel final sur photo */
.v-final { position: relative; overflow: hidden; color: #fff; text-align: center; padding: clamp(110px, 16vw, 200px) 0; background: #20130b; }
.v-final img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.v-final::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.v-final .wrap { position: relative; z-index: 1; }
.v-final h2 { font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.75rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; color: #fff; text-wrap: balance; }
.v-final p { max-width: 560px; margin: 18px auto 32px; font-size: clamp(1.0625rem, 1rem + .35vw, 1.3125rem); color: rgba(255, 255, 255, .86); }
.site-page .site-foot { background: var(--grey); border-top: 0; }

/* Apparition au défilement (seulement si le script tourne et sans « réduire les animations »). */
@media (prefers-reduced-motion: no-preference) {
    .reveal-on [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .7, .1, 1) var(--d, 0ms), transform .9s cubic-bezier(.2, .7, .1, 1) var(--d, 0ms); }
    .reveal-on [data-reveal].in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .v-hero-bg { animation: none; transform: none; } .v-tile img { transition: none; } }
@media (prefers-reduced-transparency: reduce) { .v-chip, .v-btn-glass, .v-stats, .v-ticket { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(0, 0, 0, .55); } .v-ticket { background: #fff; } }

@media (max-width: 900px) {
    .v-steps, .v-rates { grid-template-columns: 1fr; gap: 14px; }
    .v-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
}
@media (max-width: 600px) {
    .v-hero { min-height: 88svh; }
    .v-hero-in { padding-top: 96px; }
    .v-actions .v-btn { flex: 1 1 100%; }
    .v-stats { display: grid; width: 100%; } .v-stats > div { padding: 14px 8px; } .v-stats b { font-size: 21px; } .v-stats span { font-size: 11.5px; margin-left: auto; margin-right: auto; }
    .v-step { padding: 26px 22px 28px; border-radius: 24px; } .v-step-n { font-size: 40px; } .v-step h3 { margin-top: 18px; font-size: 20px; }
    .v-feats { grid-template-columns: 1fr; gap: 26px; }
    .v-feat { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; } .v-feat .v-ico { grid-row: span 2; } .v-feat h3 { margin-top: 0; }
    .v-device { border-radius: 22px; } .v-device-stats > div { padding: 14px 14px; }
    .v-ticket { position: relative; left: auto; top: auto; max-width: none; margin: 0; border-radius: 0; box-shadow: inset 0 1px 0 rgba(0, 0, 0, .06); background: #fff; }
    .v-rate { padding: 30px 24px; border-radius: 24px; }
    .v-tile { flex-basis: 78vw; border-radius: 24px; }
}

/* ═══════════ Back-office : style macOS / iOS ═══════════
   Police système, fond gris clair, menu latéral translucide, cartes sans bordure très arrondies, boutons en pilule, gros chiffres. */
.app-page { --ink: #1d1d1f; --ink-3: #6e6e73; --grey: #f5f5f7; --hair: rgba(0, 0, 0, .08);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif; background: var(--grey); color: var(--ink); font-size: 14px; }
.app-page h1, .app-page h2, .app-page h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif; color: var(--ink); }

/* Menu latéral */
.app-page .sidebar { background: rgba(236, 236, 240, .72); backdrop-filter: saturate(180%) blur(30px); -webkit-backdrop-filter: saturate(180%) blur(30px); border-right: 1px solid var(--hair); }
.app-page .sidebar-head { padding: 20px 18px 16px; }
.app-page .nav { padding: 4px 10px 16px; }
.app-page .nav a { padding: 7px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--ink); gap: 11px; }
.app-page .nav a .ico { color: var(--brand); opacity: .85; width: 17px; height: 17px; }
.app-page .nav a:hover { background: rgba(0, 0, 0, .045); color: var(--ink); }
.app-page .nav a.on { background: rgba(0, 0, 0, .075); color: var(--ink); font-weight: 600; }
.app-page .nav a.on .ico { opacity: 1; }
.app-page .nav .sub { border-left-color: rgba(0, 0, 0, .1); }
.app-page .nav .sub a { font-size: 13px; color: #424245; }
.app-page .nav-label { color: var(--ink-3); letter-spacing: .04em; }
.app-page .sidebar-foot { border-top-color: var(--hair); }
.app-page .switcher > summary { border-color: var(--hair); border-radius: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.app-page .avatar { background: linear-gradient(135deg, var(--brand), #6b7ff0); color: #fff; }

/* Barre du haut et en-tête de page */
.app-page .topbar { height: 56px; background: rgba(245, 245, 247, .72); }
.app-page .topbar.is-scrolled { border-bottom-color: var(--hair); }
.app-page .crumbs { font-size: 13px; } .app-page .crumbs b { font-weight: 600; }
.app-page .content { padding: 32px 36px 48px; }
.app-page .page-head { margin-bottom: 28px; }
.app-page .page-head h1 { font-size: 32px; line-height: 1.1; letter-spacing: -.035em; font-weight: 700; }
.app-page .page-head p { font-size: 15px; color: var(--ink-3); margin-top: 6px; }

/* Cartes */
.app-page .card { border: 0; border-radius: 20px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 0 0 1px rgba(0, 0, 0, .035); }
.app-page .card-head { border-bottom-color: var(--hair); padding: 18px 22px; }
.app-page .card-head h2 { font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.app-page .card-body { padding: 22px; }
.app-page .card-foot { background: transparent; border-top-color: var(--hair); border-radius: 0 0 20px 20px; }
.app-page .grid { gap: 18px; }
.app-page .stat { padding: 20px 22px; }
.app-page .stat-label { font-size: 13px; color: var(--ink-3); }
.app-page .stat-value { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -.04em; margin-top: 12px; }
.app-page .stat-ico { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), #6b7ff0); color: #fff; }
.app-page .stat-ico .ico { width: 16px; height: 16px; }

/* Boutons en pilule */
.app-page .btn { border-radius: 980px; height: 36px; padding: 0 16px; font-weight: 500; font-size: 13.5px; box-shadow: none; }
.app-page .btn-sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
.app-page .btn-lg { height: 44px; padding: 0 22px; font-size: 15px; }
.app-page .btn-secondary { background: #fff; border-color: rgba(0, 0, 0, .12); color: var(--ink); }
.app-page .btn-secondary:hover { background: #fafafa; }
.app-page .topbar .menu-btn { border-radius: 10px; }

/* Tableaux : en-têtes légers, lignes aérées */
.app-page .table th { background: transparent; color: var(--ink-3); font-size: 12px; font-weight: 500; border-bottom-color: var(--hair); padding: 12px 18px; }
.app-page .table td { border-bottom-color: var(--hair); padding: 14px 18px; color: #424245; }
.app-page .table tbody tr:hover td { background: rgba(0, 0, 0, .018); }
.app-page .table tfoot td { background: transparent; }

/* Champs */
.app-page .input, .app-page .field input:not([type=checkbox]):not([type=radio]), .app-page .field select, .app-page .field textarea, .app-page .content select:not(.input) {
    border-radius: 10px; border-color: rgba(0, 0, 0, .14); box-shadow: none; }
.app-page .alert { border-radius: 14px; }
.app-page .badge { font-weight: 500; }
.app-page .segmented { border-radius: 10px; background: rgba(0, 0, 0, .05); border: 0; } .app-page .segmented a { border-radius: 8px; } .app-page .segmented a.on { box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.app-page .app-foot { border-top-color: var(--hair); }
.app-page .program-card .cover { height: 160px; }

@media (max-width: 1024px) { .app-page .sidebar { background: rgba(242, 242, 245, .94); } }
@media (max-width: 767px) {
    .app-page .content { padding: 20px 16px 32px; }
    .app-page .page-head h1 { font-size: 26px; }
    .app-page .content .grid.g-4 > .card.stat .stat-value { font-size: 24px; }
    .app-page .card { border-radius: 18px; }
}
@media (prefers-reduced-transparency: reduce) { .app-page .sidebar { background: #ececf0; backdrop-filter: none; -webkit-backdrop-filter: none; } }
.app-page select.input { -webkit-appearance: none; appearance: none; padding-right: 34px; background-repeat: no-repeat; background-position: right 12px center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23667085' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
