/* Groupe Scolaire Tombouctou — maquette HTML. 1) tokens du design system 2) composants 3) mise en page du site */
/* Tombouctou — generated from tokens.json */
:root, [data-theme="light"] {
  --indigo: #1b2550;
  --on-indigo: #f4f1fa;
  --on-indigo-muted: #c9cbe0;
  --ocre-on-indigo: #d98a4e;
  --ocre: #a85a26;
  --safran: #f2a93b;
  --safran-hover: #e0962a;
  --on-safran: #1b2550;
  --surface: #faf7f2;
  --surface-raised: #ffffff;
  --brume: #edeaf2;
  --line: #e2ded6;
  --line-strong: #868aa1;
  --ink: #141a33;
  --ink-muted: #5d6078;
  --heading: #1b2550;
  --link: var(--ocre);
  --focus: #1b2550;
  --success: #0b6477;
  --success-soft: #e0f2f4;
  --warning: #8a4b00;
  --warning-soft: #fdf0d5;
  --danger: #b3261e;
  --danger-soft: #fbe4e1;
  --info: #2f4a9e;
  --info-soft: #e6eaf7;
  --shadow-float: 0 10px 30px #141a331f;
  --focus-ring: 0 0 0 2px #faf7f2, 0 0 0 4px #1b2550;
}
[data-theme="dark"] {
  --indigo: #0a0f26;
  --on-indigo: #f4f1fa;
  --on-indigo-muted: #c9cbe0;
  --ocre-on-indigo: #d98a4e;
  --ocre: #e0904f;
  --safran: #f2a93b;
  --safran-hover: #f7bd63;
  --on-safran: #1b2550;
  --surface: #0e1430;
  --surface-raised: #161e42;
  --brume: #202a5a;
  --line: #283163;
  --line-strong: #6e7399;
  --ink: #eeebf5;
  --ink-muted: #a3a6c2;
  --heading: #eeebf5;
  --link: var(--ocre);
  --focus: #f2a93b;
  --success: #5ccbdb;
  --success-soft: #0f2e36;
  --warning: #f2b65a;
  --warning-soft: #3a2a0c;
  --danger: #ff8a7a;
  --danger-soft: #3a1512;
  --info: #9db2f5;
  --info-soft: #1c2a5c;
  --shadow-float: 0 12px 30px #00000099;
  --focus-ring: 0 0 0 2px #0e1430, 0 0 0 4px #f2a93b;
  color-scheme: dark;
}
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 40px;
  --space-7: 72px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;
  --font-display: Sora, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
.h1 { font-family: var(--font-display); font-size: 56px; line-height: 60px; font-weight: 800; letter-spacing: -0.03em; }
.h2 { font-family: var(--font-display); font-size: 36px; line-height: 42px; font-weight: 700; letter-spacing: -0.02em; }
.h3 { font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 600; }
.eyebrow { font-family: var(--font-display); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.14em; }
.stat { font-family: var(--font-display); font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -0.02em; }
.lead { font-family: var(--font-body); font-size: 19px; line-height: 30px; font-weight: 400; }
.body { font-family: var(--font-body); font-size: 17px; line-height: 27px; font-weight: 400; }
.ui { font-family: var(--font-body); font-size: 15px; line-height: 22px; font-weight: 400; }
.caption { font-family: var(--font-body); font-size: 13px; line-height: 18px; font-weight: 400; }
.code { font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-weight: 400; }

/* Tombouctou — styles des composants. Toutes les couleurs viennent de tokens.css. */
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 22px; }
.gst-demo { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding: var(--space-4); }
.gst-stack { display: grid; gap: var(--space-4); padding: var(--space-4); max-width: 720px; }
.gst-num { font-variant-numeric: tabular-nums; }

/* ---------- Logo ---------- */
.gst-logo { display: inline-flex; align-items: center; gap: 14px; color: var(--heading); --lt: var(--heading); --lb: var(--ocre); --ls: var(--safran); }
.gst-logo--negatif { color: var(--on-indigo); --lt: var(--on-indigo); --lb: var(--ocre-on-indigo); --ls: var(--safran); }
.gst-logo--mono { --lt: currentColor; --lb: currentColor; --ls: currentColor; }
.gst-logo svg { flex: none; display: block; }
.gst-logo .t { fill: var(--lt); } .gst-logo .b { fill: var(--lb); } .gst-logo .s { fill: var(--ls); }
.gst-wm { display: grid; line-height: 1; }
.gst-wm small { font-family: var(--font-display); font-weight: 600; font-size: .3em; letter-spacing: .32em; text-transform: uppercase; opacity: .72; margin-bottom: .35em; }
.gst-wm b { font-family: var(--font-display); font-weight: 800; font-size: 1em; letter-spacing: .06em; }
.gst-wm i { font-style: normal; font-family: var(--font-body); font-size: .36em; opacity: .72; margin-top: .4em; letter-spacing: .02em; }

/* ---------- Button ---------- */
.gst-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 20px; min-height: 44px; padding: 12px 22px; border-radius: var(--radius-full); border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
.gst-btn--sm { min-height: 36px; padding: 7px 16px; font-size: 14px; }
.gst-btn--primary { background: var(--safran); color: var(--on-safran); }
.gst-btn--primary:hover { background: var(--safran-hover); }
.gst-btn--secondary { background: transparent; color: var(--heading); border-color: var(--heading); }
.gst-btn--secondary:hover { background: var(--brume); }
.gst-btn--ghost { background: transparent; color: var(--heading); }
.gst-btn--ghost:hover { background: var(--brume); }
.gst-btn--danger { background: var(--danger); color: var(--surface-raised); }
.gst-btn--danger:hover { filter: brightness(.92); }
.gst-btn:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.gst-btn[disabled], .gst-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.gst-btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Badge ---------- */
.gst-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-weight: 700; font-size: 13px; line-height: 18px; padding: 3px 10px 3px 8px; border-radius: var(--radius-full); background: var(--brume); color: var(--ink); white-space: nowrap; }
.gst-badge svg { width: 14px; height: 14px; flex: none; }
.gst-badge--success { background: var(--success-soft); color: var(--success); }
.gst-badge--warning { background: var(--warning-soft); color: var(--warning); }
.gst-badge--danger { background: var(--danger-soft); color: var(--danger); }
.gst-badge--info { background: var(--info-soft); color: var(--info); }
.gst-badge--cycle { background: var(--safran); color: var(--on-safran); font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 12px; }

/* ---------- Field ---------- */
.gst-field { display: grid; gap: 6px; min-width: 0; }
.gst-field label { font-weight: 700; font-size: 15px; color: var(--ink); }
.gst-field .req { color: var(--danger); margin-left: 2px; }
.gst-control { position: relative; display: flex; align-items: center; }
.gst-input { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; line-height: 22px; color: var(--ink); background: var(--surface-raised); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 44px; }
.gst-input:hover { border-color: var(--ink-muted); }
.gst-input:focus { outline: 2px solid transparent; border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.gst-input::placeholder { color: var(--ink-muted); }
.gst-input[aria-invalid="true"] { border-color: var(--danger); }
.gst-control .suffix { position: absolute; right: 12px; color: var(--ink-muted); font-size: 14px; pointer-events: none; }
.gst-control--suffix .gst-input { padding-right: 64px; text-align: right; font-variant-numeric: tabular-nums; }
select.gst-input { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%); background-position: right 18px top 50%, right 13px top 50%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea.gst-input { min-height: 96px; resize: vertical; }
.gst-hint { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.gst-error { font-size: 13px; line-height: 18px; color: var(--danger); font-weight: 700; display: flex; gap: 6px; align-items: flex-start; }
.gst-error svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }

/* ---------- Alert ---------- */
.gst-alert { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--info-soft); color: var(--ink); }
.gst-alert > svg { width: 20px; height: 20px; margin-top: 1px; color: var(--info); grid-row: span 3; }
.gst-alert--success { background: var(--success-soft); } .gst-alert--success > svg { color: var(--success); }
.gst-alert--warning { background: var(--warning-soft); } .gst-alert--warning > svg { color: var(--warning); }
.gst-alert--danger { background: var(--danger-soft); } .gst-alert--danger > svg { color: var(--danger); }
.gst-alert strong { font-weight: 700; }
.gst-alert p { margin: 0; }
.gst-alert .act { margin-top: 6px; }

/* ---------- Card ---------- */
.gst-card { display: grid; gap: var(--space-3); align-content: start; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); color: var(--ink); min-width: 0; }
a.gst-card { text-decoration: none; transition: border-color .15s; }
a.gst-card:hover { border-color: var(--ocre); }
a.gst-card:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.gst-card .eyebrow { font-family: var(--font-display); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ocre); }
.gst-card h3 { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 600; color: var(--heading); text-wrap: balance; }
.gst-card .body { color: var(--ink-muted); font-size: 15px; line-height: 23px; }
.gst-card .foot { margin-top: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); flex-wrap: wrap; }

/* ---------- StatTile ---------- */
.gst-stat { display: grid; gap: 4px; align-content: start; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4); min-width: 0; }
.gst-stat b { font-family: var(--font-display); font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -.02em; color: var(--heading); font-variant-numeric: tabular-nums; }
.gst-stat span { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.gst-stat--indigo { background: var(--indigo); border-color: var(--indigo); }
.gst-stat--indigo b { color: var(--safran); }
.gst-stat--indigo span { color: var(--on-indigo-muted); }

/* ---------- Amount ---------- */
.gst-amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.gst-amount .cur { font-size: .82em; color: var(--ink-muted); margin-left: .25em; }
.gst-amount--danger { color: var(--danger); font-weight: 700; }
.gst-amount--success { color: var(--success); }
.gst-amount--strong { font-weight: 700; color: var(--heading); }

/* ---------- Echeances ---------- */
.gst-ech { display: grid; gap: var(--space-3); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4); min-width: 0; }
.gst-ech .head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; }
.gst-ech .head .tot { font-size: 15px; color: var(--ink-muted); }
.gst-ech .head .tot .gst-amount--strong { font-size: 17px; }
.gst-ech .bar { display: flex; gap: 3px; height: 10px; }
.gst-ech .seg { position: relative; background: var(--brume); border-radius: 3px; overflow: hidden; }
.gst-ech .seg i { position: absolute; inset: 0 auto 0 0; background: var(--success); }
.gst-ech .seg.retard { background: var(--danger-soft); box-shadow: inset 0 0 0 1px var(--danger); }
.gst-ech .seg.retard i { background: var(--danger); }
.gst-ech .seg.partielle i { background: var(--warning); }
.gst-ech ol { list-style: none; margin: 0; padding: 0; display: grid; }
.gst-ech li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--space-3); align-items: center; padding-block: 10px; border-top: 1px solid var(--line); }
.gst-ech li .d { display: grid; }
.gst-ech li .d small { color: var(--ink-muted); font-size: 13px; }
.gst-ech li .r { text-align: right; font-size: 13px; color: var(--ink-muted); }
@media (max-width: 480px) { .gst-ech li { grid-template-columns: minmax(0, 1fr) auto; } .gst-ech li .r { grid-column: 1 / -1; text-align: left; } }

/* ---------- DataTable ---------- */
.gst-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); }
.gst-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.gst-table caption { text-align: left; padding: var(--space-3) var(--space-4); font-family: var(--font-display); font-weight: 600; color: var(--heading); }
.gst-table th { background: var(--brume); text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); padding: 10px var(--space-4); white-space: nowrap; }
.gst-table td { padding: var(--space-3) var(--space-4); border-top: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
.gst-table tbody tr:hover td { background: var(--surface); }
.gst-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.gst-table .center { text-align: center; }
.gst-table .empty { text-align: center; color: var(--ink-muted); padding: var(--space-5); }
.gst-mono { font-family: var(--font-mono); font-size: 14px; font-variant-numeric: tabular-nums; }

/* ---------- Bandeau ---------- */
.gst-bandeau { position: relative; overflow: hidden; background: var(--indigo); color: var(--on-indigo); border-radius: var(--radius-lg); }
.gst-bandeau::before { content: ""; position: absolute; inset: 0; opacity: .13;
  background-image: repeating-linear-gradient(90deg, transparent 0 46px, var(--safran) 46px 58px, transparent 58px 104px);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 3px, transparent 3px 34px); mask: repeating-linear-gradient(180deg, #000 0 3px, transparent 3px 34px); }
.gst-bandeau--flush { border-radius: 0; }
.gst-bandeau .in { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-6); align-items: center; padding: 56px var(--space-6); }
.gst-bandeau .copy { display: grid; gap: 18px; min-width: 0; }
.gst-bandeau .eyebrow { font-family: var(--font-display); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--safran); }
.gst-bandeau h1 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5vw, 56px); line-height: 1.07; letter-spacing: -.03em; text-wrap: balance; }
.gst-bandeau h1 em { font-style: normal; color: var(--safran); }
.gst-bandeau p { margin: 0; color: var(--on-indigo-muted); font-size: 18px; line-height: 28px; max-width: 52ch; }
.gst-bandeau .ctas { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.gst-bandeau .gst-btn--secondary { color: var(--on-indigo); border-color: var(--on-indigo); }
.gst-bandeau .gst-btn--secondary:hover { background: transparent; border-color: var(--safran); color: var(--safran); }
.gst-bandeau .aside { justify-self: center; min-width: 0; }
@media (max-width: 720px) { .gst-bandeau .in { grid-template-columns: minmax(0, 1fr); padding: 40px var(--space-4); } }

@media (prefers-reduced-motion: reduce) { .gst-btn, a.gst-card { transition: none; } }
/* Site Groupe Scolaire Tombouctou — mise en page des maquettes.
   Couleurs, typo, rayons : tokens du design system (ds/tombouctou/tokens.css).
   Responsive par requêtes de conteneur sur .p-root : 960px (tablette) et 640px (téléphone). */
.p-root { container-type: inline-size; container-name: page; background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 27px; min-height: 100%; }
.p-root *, .p-root *::before, .p-root *::after { box-sizing: border-box; }
.p-root a { color: var(--link); }
.p-root a:hover { color: var(--heading); }
.p-root :focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); border-radius: 6px; }
.p-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 40px; }
.p-section { padding-block: var(--space-7); }
.p-section + .p-section { border-top: 1px solid var(--line); }
.p-head { display: grid; gap: 12px; margin-bottom: var(--space-6); max-width: 720px; }
.p-eyebrow { font-family: var(--font-display); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ocre); }
.p-h1 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: 60px; letter-spacing: -.03em; color: var(--heading); text-wrap: balance; }
.p-h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 36px; line-height: 42px; letter-spacing: -.02em; color: var(--heading); text-wrap: balance; }
.p-h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 28px; color: var(--heading); }
.p-lead { margin: 0; font-size: 19px; line-height: 30px; color: var(--ink-muted); max-width: 62ch; }
.p-text { margin: 0; max-width: 65ch; }
.p-muted { color: var(--ink-muted); }
.p-small { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.p-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.p-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
.p-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); align-items: start; }
.p-row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.p-placeholder { background: var(--brume); color: var(--ink-muted); border: 1px dashed var(--line-strong); border-radius: 6px; padding: 0 6px; font-size: .9em; white-space: nowrap; }

/* ---------- En-tête ---------- */
.p-topbar { background: var(--indigo); color: var(--on-indigo-muted); font-size: 13px; line-height: 18px; }
.p-topbar .p-wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; padding-block: 8px; }
.p-topbar span { display: inline-flex; gap: 6px; align-items: center; }
.p-topbar svg { width: 14px; height: 14px; color: var(--safran); flex: none; }
.p-nav { position: sticky; top: 0; z-index: 20; background: var(--surface-raised); border-bottom: 1px solid var(--line); }
.p-nav .p-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.p-nav .p-home { display: flex; text-decoration: none; }
.p-menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.p-menu a { display: block; padding: 8px 12px; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 20px; color: var(--ink); text-decoration: none; }
.p-menu a:hover { background: var(--brume); color: var(--heading); }
.p-menu a[aria-current="page"] { color: var(--ocre); }
.p-nav-cta { display: flex; gap: 8px; align-items: center; }
.p-burger { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent; color: var(--heading); cursor: pointer; align-items: center; justify-content: center; }
.p-burger svg { width: 22px; height: 22px; }
.p-mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--surface-raised); }
.p-mobile-menu ul { list-style: none; margin: 0; padding: 8px 0 16px; display: grid; }
.p-mobile-menu a { display: block; padding: 12px 0; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }

/* ---------- Bannière ---------- */
.p-hero { background: var(--indigo); color: var(--on-indigo); position: relative; overflow: hidden; }
.p-hero::before { content: ""; position: absolute; inset: 0; opacity: .13; background-image: repeating-linear-gradient(90deg, transparent 0 46px, var(--safran) 46px 58px, transparent 58px 104px); -webkit-mask: repeating-linear-gradient(180deg, #000 0 3px, transparent 3px 34px); mask: repeating-linear-gradient(180deg, #000 0 3px, transparent 3px 34px); }
.p-hero .p-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 88px 96px; }
.p-hero .p-h1 { color: var(--on-indigo); }
.p-hero .p-h1 em { font-style: normal; color: var(--safran); }
.p-hero .p-lead { color: var(--on-indigo-muted); }
.p-hero .p-eyebrow { color: var(--safran); }
.p-hero-copy { display: grid; gap: 24px; min-width: 0; }
.p-hero .gst-btn--secondary { color: var(--on-indigo); border-color: var(--on-indigo); }
.p-hero .gst-btn--secondary:hover { background: transparent; color: var(--safran); border-color: var(--safran); }
.p-hero-media { position: relative; min-width: 0; }
.p-hero-badge { position: absolute; left: -20px; bottom: 28px; background: var(--surface-raised); color: var(--ink); border-radius: var(--radius-md); padding: 14px 18px; box-shadow: var(--shadow-float); display: grid; gap: 2px; max-width: 240px; }
.p-hero-badge b { font-family: var(--font-display); color: var(--heading); font-size: 15px; line-height: 20px; }
.p-hero-badge span { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.p-page-hero { background: var(--indigo); color: var(--on-indigo); position: relative; overflow: hidden; }
.p-page-hero::before { content: ""; position: absolute; inset: 0; opacity: .13; background-image: repeating-linear-gradient(90deg, transparent 0 46px, var(--safran) 46px 58px, transparent 58px 104px); -webkit-mask: repeating-linear-gradient(180deg, #000 0 3px, transparent 3px 34px); mask: repeating-linear-gradient(180deg, #000 0 3px, transparent 3px 34px); }
.p-page-hero .p-wrap { position: relative; padding-block: 56px 64px; display: grid; gap: 16px; }
.p-page-hero .p-h1 { color: var(--on-indigo); font-size: 48px; line-height: 52px; }
.p-page-hero .p-lead { color: var(--on-indigo-muted); }
.p-page-hero .p-eyebrow { color: var(--safran); }
.p-crumbs { font-size: 13px; line-height: 18px; color: var(--on-indigo-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.p-crumbs a { color: var(--on-indigo-muted); }
.p-crumbs a:hover { color: var(--safran); }

/* ---------- Photos (emplacements) ---------- */
.p-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; display: grid; place-items: end start; padding: 16px; background: linear-gradient(160deg, #f2a93b59, #1b255000 55%), linear-gradient(135deg, #d9c3a5, #a85a26); color: #faf7f2; font-size: 13px; line-height: 18px; }
.p-photo--tall { aspect-ratio: 4 / 5; }
.p-photo--wide { aspect-ratio: 16 / 9; }
.p-photo--sq { aspect-ratio: 1; }
.p-photo--b { background: linear-gradient(200deg, #f2a93b40, #1b255000 60%), linear-gradient(135deg, #3a4a86, #1b2550); }
.p-photo--c { background: linear-gradient(160deg, #faf7f240, #1b255000 60%), linear-gradient(135deg, #c98a52, #6f3c1a); }
.p-photo span { background: #141a33b3; padding: 4px 10px; border-radius: 999px; }
.p-photo svg { position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; color: #faf7f2; opacity: .8; z-index: 1; }
.p-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.p-photo > img ~ span, .p-photo > figcaption { position: relative; z-index: 1; }
.p-photo > img ~ span { font-size: 12px; background: #141a33a6; backdrop-filter: blur(4px); }
.p-gal .p-photo svg { top: 50%; left: 50%; right: auto; width: 56px; height: 56px; padding: 16px; margin: -28px 0 0 -28px; border-radius: 999px; background: #141a33a6; opacity: 1; }
.p-photo--card { border-radius: var(--radius-md); }

/* ---------- Chiffres ---------- */
.p-stats { margin-top: -48px; position: relative; z-index: 2; }
.p-stats .p-grid-4 { gap: var(--space-4); }

/* ---------- Atouts ---------- */
.p-why { display: grid; gap: 12px; align-content: start; }
.p-why-icon { width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--brume); color: var(--heading); display: grid; place-items: center; }
.p-why-icon svg { width: 26px; height: 26px; }

/* ---------- Projets ---------- */
.p-project { display: grid; gap: 14px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); align-content: start; }
.p-project .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.p-progress { display: grid; gap: 6px; }
.p-progress .lbl { display: flex; justify-content: space-between; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.p-progress .lbl b { color: var(--heading); font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.p-progress .track { height: 10px; border-radius: 999px; background: var(--brume); overflow: hidden; }
.p-progress .fill { height: 100%; border-radius: 999px; background: var(--safran); }

/* ---------- Galerie ---------- */
.p-gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.p-gal .big { grid-column: span 2; grid-row: span 2; }
.p-gal .p-photo { aspect-ratio: auto; min-height: 180px; height: 100%; border-radius: var(--radius-md); }
.p-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.p-chip { font: inherit; font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 20px; padding: 10px 16px; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
.p-chip:hover { border-color: var(--heading); }
.p-chip[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: var(--on-indigo); }

/* ---------- Bande inscription ---------- */
.p-cta { background: var(--safran); color: var(--on-safran); border-radius: var(--radius-lg); padding: 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.p-cta .p-h2 { color: var(--on-safran); }
.p-cta p { margin: 0; color: var(--on-safran); max-width: 56ch; }
.p-cta .gst-btn--primary { background: var(--indigo); color: var(--on-indigo); }
.p-cta .gst-btn--primary:hover { background: var(--heading); }

/* ---------- Contact / formulaires ---------- */
.p-panel { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: grid; gap: 20px; min-width: 0; }
.p-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.p-form .full { grid-column: 1 / -1; }
.p-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 22px; }
.p-check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--indigo); }
.p-coords { display: grid; gap: 18px; }
.p-coord { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.p-coord .ic { width: 44px; height: 44px; border-radius: 999px; background: var(--brume); color: var(--heading); display: grid; place-items: center; }
.p-coord .ic svg { width: 20px; height: 20px; }
.p-coord b { display: block; font-family: var(--font-display); color: var(--heading); font-size: 15px; }
.p-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.p-steps li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding-block: 16px; border-top: 1px solid var(--line); }
.p-steps li:first-child { border-top: 0; padding-top: 0; }
.p-steps li::before { content: counter(s); width: 44px; height: 44px; border-radius: 999px; background: var(--indigo); color: var(--safran); font-family: var(--font-display); font-weight: 700; display: grid; place-items: center; }
.p-steps b { display: block; font-family: var(--font-display); color: var(--heading); }

/* ---------- Article ---------- */
.p-article { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.p-prose { display: grid; gap: 20px; max-width: 68ch; }
.p-prose p { margin: 0; }
.p-prose h2 { margin: 12px 0 0; font-family: var(--font-display); font-size: 26px; line-height: 32px; color: var(--heading); }
.p-prose blockquote { margin: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--safran); font-family: var(--font-display); font-size: 20px; line-height: 30px; color: var(--heading); }
.p-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 14px; color: var(--on-indigo-muted); }
.p-aside { display: grid; gap: 16px; position: sticky; top: 100px; }

/* ---------- Pied de page ---------- */
.p-footer { background: var(--indigo); color: var(--on-indigo-muted); font-size: 15px; line-height: 24px; }
.p-footer .p-wrap { padding-block: 56px 28px; display: grid; gap: 40px; }
.p-footer .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.p-footer h4 { margin: 0 0 12px; font-family: var(--font-display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--safran); }
.p-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.p-footer a { color: var(--on-indigo); text-decoration: none; }
.p-footer a:hover { color: var(--safran); text-decoration: underline; }
.p-footer .legal { border-top: 1px solid #f4f1fa26; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; }

/* ---------- Tablette ---------- */
@container page (max-width: 1080px) {
  .p-menu, .p-nav-cta .gst-btn--secondary { display: none; }
  .p-burger { display: inline-flex; }
  .p-mobile-menu.open { display: block; }
}
@container page (max-width: 960px) {
  .p-wrap { padding-inline: 28px; }
  .p-hero .p-wrap { grid-template-columns: minmax(0, 1fr); padding-block: 64px 88px; gap: 40px; }
  .p-hero-badge { left: 16px; }
  .p-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-grid-2, .p-article { grid-template-columns: minmax(0, 1fr); }
  .p-aside { position: static; }
  .p-gal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-cta { grid-template-columns: minmax(0, 1fr); padding: 36px; }
  .p-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ---------- Téléphone ---------- */
@container page (max-width: 640px) {
  .p-root { font-size: 16px; line-height: 25px; }
  .p-wrap { padding-inline: 16px; }
  .p-section { padding-block: 52px; }
  .p-head { margin-bottom: 28px; }
  .p-h1 { font-size: 36px; line-height: 40px; }
  .p-page-hero .p-h1 { font-size: 32px; line-height: 36px; }
  .p-h2 { font-size: 28px; line-height: 34px; }
  .p-lead { font-size: 17px; line-height: 27px; }
  .p-topbar .hide-sm { display: none; }
  .p-nav .p-wrap { min-height: 64px; gap: 12px; }
  .p-nav-cta .gst-btn { padding: 8px 14px; min-height: 44px; font-size: 14px; }
  .p-hero .p-wrap { padding-block: 44px 72px; }
  .p-grid-3, .p-form { grid-template-columns: minmax(0, 1fr); }
  .p-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .p-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .p-gal .p-photo { min-height: 140px; }
  .p-panel { padding: 20px; }
  .p-cta { padding: 28px 20px; }
  .p-footer .cols { grid-template-columns: minmax(0, 1fr); }
  .p-stats .gst-stat b { font-size: 30px; line-height: 34px; }
}
@media (prefers-reduced-motion: no-preference) {
  .p-root .gst-card, .p-project { transition: transform .2s ease, border-color .2s ease; }
  .p-root a.gst-card:hover, .p-project:hover { transform: translateY(-3px); }
}

/* ---------- Ajouts version HTML ---------- */
html { scroll-padding-top: 90px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; }
.p-demo-bar { background: var(--warning-soft); color: var(--warning); font-size: 13px; line-height: 18px; text-align: center; padding: 6px 16px; font-weight: 700; }
.p-root .gst-logo .gst-wm i { display: block; }
.p-footer .gst-logo { color: var(--on-indigo); }
form .gst-alert[hidden] { display: none; }
.p-gal figure[hidden] { display: none; }
.gst-btn { -webkit-tap-highlight-color: transparent; }
/* Mention « Photo d'illustration » de la bannière en haut à droite, pour ne pas croiser l'encadré */
.p-hero-media .p-photo { place-items: start end; }
/* Barre de menu sur téléphone : logo et bouton resserrés pour tenir en 360–400 px */
@container page (max-width: 640px) {
  .p-nav .p-wrap { gap: 8px; }
  .p-nav .gst-logo { gap: 8px; }
  .p-nav .gst-logo svg { width: 34px; height: 34px; }
  .p-nav .gst-wm { font-size: 15px !important; }
  .p-nav-cta { gap: 6px; }
  .p-nav-cta .gst-btn { padding: 8px 12px; font-size: 13px; }
}
/* Corrections téléphone */
.gst-btn { white-space: nowrap; }
@container page (max-width: 640px) {
  .p-grid-4:has(.p-why) { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
.p-gal figcaption span { display: inline-block; line-height: 16px; padding-block: 5px; }
/* Bouton « Pré-inscription » de la barre de menu : format compact sur téléphone */
.p-nav-inscr .sm { display: none; }
.p-mobile-menu a.p-mm-inscr { color: var(--ocre); }
@container page (max-width: 640px) {
  .p-nav-cta .gst-btn { min-height: 34px; padding: 0 14px; font-size: 13px; line-height: 16px; }
  .p-nav-inscr .lg { display: none; }
  .p-nav-inscr .sm { display: inline; }
  .p-burger { width: 40px; height: 40px; }
}
/* Menu déroulant mobile : ne pas hériter de la mise en ligne de la barre (.p-nav .p-wrap en flex) */
.p-nav .p-mobile-menu .p-wrap { display: block; min-height: 0; }
.p-mobile-menu ul { width: 100%; }
.p-mobile-menu li:last-child a { border-bottom: 0; }
.p-mobile-menu { box-shadow: var(--shadow-float); }
/* Bouton menu : hamburger fermé, croix ouvert */
.p-burger .ic-close { display: none; }
.p-burger[aria-expanded="true"] .ic-open { display: none; }
.p-burger[aria-expanded="true"] .ic-close { display: block; }
