/*
 * Gazo Partenaires : portail des stations partenaires. Même identité que le site public
 * (public/css/site.css) : bleu pétrole #0F7591 → #084A5C, vert « moins cher » #13803B, ambre
 * #F2B33D, police Manrope (SIL OFL 1.1). CSS écrit à la main, mobile d'abord, sans framework.
 */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-400.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-500.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/manrope-700.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/manrope-800.woff2") format("woff2"); }

:root {
    --petrol: #0f7591;
    --petrol-deep: #084a5c;
    --petrol-night: #073b4c;
    --petrol-soft: #d3ecf3;
    --petrol-mist: #eaf5f8;
    --green: #13803b;
    --green-deep: #0d6a30;
    --green-soft: #ddf5e4;
    --green-ink: #00381a;
    --amber: #f2b33d;
    --amber-deep: #d99a1e;
    --amber-soft: #fdf0d5;
    --amber-ink: #2b1c00;
    --red: #c0262d;
    --red-soft: #fde3e3;
    --red-ink: #7a1016;

    --bg: #ffffff;
    --canvas: #f1f5f7;
    --card: #ffffff;
    --ink: #13212b;
    --ink-2: #2b3a44;
    --muted: #4f5d66;
    --line: #dce4e8;
    --line-strong: #c3d0d6;
    --link: #0b6580;
    --focus: #0f7591;
    --field: #ffffff;
    --bar-muted: #b9ccd3;

    --radius: 20px;
    --radius-s: 12px;
    --radius-xs: 8px;
    --shadow-1: 0 1px 2px rgba(11, 58, 72, .06), 0 4px 14px rgba(11, 58, 72, .08);
    --max: 1120px;
    --gutter: 16px;
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --petrol: #5fb3c9;
        --petrol-deep: #0d6680;
        --petrol-night: #063845;
        --petrol-soft: #12313b;
        --petrol-mist: #0f2128;
        --green: #5cd68a;
        --green-deep: #1b8a44;
        --green-soft: #0e3a21;
        --green-ink: #c6f5d3;
        --amber: #ffc857;
        --amber-deep: #f2b33d;
        --amber-soft: #3a2b0c;
        --amber-ink: #ffe3a8;
        --red: #ff8a80;
        --red-soft: #3b1214;
        --red-ink: #ffd2cd;

        --bg: #0b1215;
        --canvas: #0f181c;
        --card: #151e22;
        --ink: #e8eef1;
        --ink-2: #cfd9de;
        --muted: #a5b1b8;
        --line: #26333a;
        --line-strong: #34444c;
        --link: #7cc6da;
        --focus: #7cc6da;
        --field: #0f181c;
        --bar-muted: #34505a;

        --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column;
    font-family: var(--font); font-size: 1rem; font-weight: 500; line-height: 1.55;
    color: var(--ink); background: var(--canvas);
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 4.6vw, 2.5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.5rem); }
h3 { font-size: 1.08rem; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
strong { font-weight: 800; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.digits { font-variant-numeric: tabular-nums lining-nums; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--petrol-deep); color: #fff; padding: 10px 14px; border-radius: 0 0 10px 0; font-weight: 700; }
.skip:focus { left: 0; }
.canopy { height: 6px; background: linear-gradient(to bottom, var(--amber) 0 3px, var(--green-deep) 3px 6px); }

/* ---------- En-tête ---------- */

.p-header { background: var(--bg); border-top: 4px solid var(--amber); box-shadow: 0 1px 0 var(--line); position: relative; z-index: 10; }
.p-header__bar { display: flex; align-items: center; gap: 10px 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; letter-spacing: -.04em; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand img { width: 34px; height: 34px; }
.brand__tag { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--petrol-mist); color: var(--petrol); box-shadow: inset 0 0 0 1px var(--petrol-soft); }
.p-header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang-switch {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
    border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9rem;
    border: 1.5px solid var(--line-strong);
}
.lang-switch:hover { border-color: var(--petrol); background: var(--petrol-mist); }
.lang-switch img { width: auto; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.lang-switch__long { display: none; }
@media (min-width: 560px) { .lang-switch__long { display: inline; } .lang-switch__short { display: none; } }
.p-nav { border-top: 1px solid var(--line); }
.p-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.p-nav ul::-webkit-scrollbar { display: none; }
@media (max-width: 719px) {
    .p-nav ul { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 32px; }
}
.p-nav a, .p-nav button {
    position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 12px;
    color: var(--ink-2); text-decoration: none; font: inherit; font-weight: 700; font-size: .92rem; white-space: nowrap;
    background: none; border: 0; cursor: pointer;
}
.p-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 2px 2px 0 0; background: var(--amber); transform: scaleX(0); transition: transform .2s; }
.p-nav a:hover::after, .p-nav a[aria-current="page"]::after { transform: scaleX(1); }
.p-nav a[aria-current="page"] { color: var(--petrol); }
.p-nav li.p-nav__end { margin-left: auto; }
.p-nav form { margin: 0; }
.p-nav .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--amber); color: var(--amber-ink); font-size: .72rem; font-weight: 800; }

/* ---------- Page ---------- */

main { flex: 1; padding-block: 28px 56px; }
.page-head { margin-bottom: 22px; }
.page-head p { color: var(--ink-2); max-width: 46em; }
.kicker {
    display: inline-flex; align-items: center; gap: 10px; font-size: .75rem; font-weight: 800;
    letter-spacing: .1em; text-transform: uppercase; color: var(--petrol); margin: 0 0 10px;
}
.kicker::before { content: ""; width: 22px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--amber) 0 50%, var(--green) 50% 100%); }
.breadcrumb { font-size: .9rem; margin-bottom: 12px; }
.breadcrumb a { font-weight: 700; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow-1); }
@media (min-width: 720px) { .card { padding: 26px 28px; } }
.card > :last-child { margin-bottom: 0; }
.card__head { display: flex; gap: 10px 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.card__head h2, .card__head h3 { margin: 0; }
.card--flat { box-shadow: none; }
.card--tint { background: var(--petrol-mist); border-color: var(--petrol-soft); box-shadow: none; }
.section-title { margin-top: 30px; }
.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) {
    .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid--aside { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
}
.narrow { max-width: 560px; margin-inline: auto; }
.stack > * + * { margin-top: 12px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

/* ---------- Boutons ---------- */

.btn {
    --btn-bg: var(--petrol-deep); --btn-fg: #fff;
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 46px; padding: 11px 20px; border: 0; border-radius: 999px;
    background: var(--btn-bg); color: var(--btn-fg);
    font: inherit; font-weight: 800; font-size: .98rem; line-height: 1.1; text-decoration: none; text-align: center; cursor: pointer;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 6px 16px -8px rgba(8, 74, 92, .5);
}
.btn:hover { --btn-bg: var(--petrol-night); color: var(--btn-fg); text-decoration: none; }
.btn--go { --btn-bg: var(--green-deep); }
.btn--go:hover { --btn-bg: #0a5526; }
.btn--amber { --btn-bg: var(--amber); --btn-fg: #2b1c00; }
.btn--amber:hover { --btn-bg: var(--amber-deep); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--link); box-shadow: inset 0 0 0 2px currentColor; }
.btn--ghost:hover { --btn-bg: var(--petrol-mist); --btn-fg: var(--link); }
.btn--danger { --btn-bg: var(--red); --btn-fg: #fff; }
.btn--danger:hover { --btn-bg: #9b1c22; }
.btn--danger-ghost { --btn-bg: transparent; --btn-fg: var(--red); box-shadow: inset 0 0 0 2px currentColor; }
.btn--danger-ghost:hover { --btn-bg: var(--red-soft); --btn-fg: var(--red); }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
@media (prefers-color-scheme: dark) { .btn--amber { --btn-fg: #2b1c00; } }
.actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 18px; }
.actions--end { justify-content: flex-end; }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--link); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.inline-form { display: inline; margin: 0; }

/* ---------- Formulaires ---------- */

fieldset { border: 0; padding: 0; margin: 0 0 6px; min-width: 0; }
legend { padding: 0; font-weight: 800; font-size: 1.05rem; margin-bottom: 4px; }
/* Légende flottante : rendue dans la carte et non sur sa bordure. */
fieldset.card { margin-bottom: 18px; }
fieldset.card > legend { float: left; width: 100%; margin-bottom: 14px; }
fieldset.card > legend > h2 { margin: 0; }
fieldset.card > legend + * { clear: both; }
.field { margin-top: 16px; }
.field:first-child { margin-top: 0; }
.field label, .label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .opt { font-weight: 500; color: var(--muted); font-size: .88rem; }
.hint { display: block; color: var(--muted); font-size: .88rem; margin-top: 6px; }
.field-row { display: grid; gap: 0 16px; }
.field-row > .field { margin-top: 16px; }
.card > .field-row:first-child > .field, legend + .field-row > .field { margin-top: 0; }
@media (min-width: 640px) {
    .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .field-row--3 { grid-template-columns: 2fr 1fr 1fr; }
}
input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel], input[type=search],
input[type=number], input[type=datetime-local], input[type=time], input[type=date], select, textarea {
    width: 100%; min-height: 48px; padding: 11px 13px;
    border: 1.5px solid var(--line-strong); border-radius: var(--radius-s);
    font: inherit; font-weight: 500; color: var(--ink); background: var(--field);
}
textarea { min-height: 96px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234f5d66' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--petrol-soft); outline-offset: 0; border-color: var(--focus); border-radius: var(--radius-s); }
input[type=file] { font: inherit; max-width: 100%; }
input[type=file]::file-selector-button { font: inherit; font-weight: 800; border: 0; border-radius: 999px; padding: 9px 16px; margin-right: 12px; background: var(--petrol-mist); color: var(--petrol); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--petrol-soft); }
[aria-invalid="true"] { border-color: var(--red) !important; background-color: color-mix(in srgb, var(--red-soft) 40%, var(--field)); }
.error { display: flex; gap: 6px; align-items: flex-start; color: var(--red); font-weight: 700; font-size: .9rem; margin-top: 6px; }
.error::before { content: "!"; display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--red); color: #fff; font-size: .75rem; }

.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; margin: 0; padding: 10px 0; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--petrol-deep); cursor: pointer; }
.check small { display: block; font-weight: 500; color: var(--muted); font-size: .86rem; }
.check-grid { display: grid; gap: 0 18px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.check-grid .check { padding: 8px 0; }
.consent { border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 6px 14px; margin-top: 10px; background: var(--card); }
.consent .check { font-weight: 500; }

.choice-cards { display: grid; gap: 12px; }
@media (min-width: 640px) { .choice-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice { position: relative; display: block; border: 2px solid var(--line-strong); border-radius: var(--radius-s); padding: 14px 16px 14px 48px; cursor: pointer; background: var(--card); }
.choice input { position: absolute; left: 16px; top: 17px; width: 20px; height: 20px; accent-color: var(--petrol-deep); }
.choice:has(input:checked) { border-color: var(--petrol); background: var(--petrol-mist); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice strong { display: block; }
.choice .price { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.choice .save { display: inline-block; margin-top: 4px; font-size: .78rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); }

/* ---------- Messages ---------- */

.flash, .notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-s); margin-bottom: 18px; border: 1.5px solid; font-weight: 600; }
.flash::before, .notice::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; background: currentColor; }
.flash p, .notice p { margin: 0; }
.flash.success, .notice--success { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 35%, transparent); color: var(--green-ink); }
.flash.error, .notice--error { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 40%, transparent); color: var(--red-ink); }
.flash.info, .notice--info { background: var(--petrol-mist); border-color: var(--petrol-soft); color: var(--ink); }
.notice--warn { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber-deep) 45%, transparent); color: var(--ink); }
.notice .actions { margin-top: 10px; }
.error-summary { border: 2px solid var(--red); border-radius: var(--radius-s); background: var(--card); padding: 16px 18px; margin-bottom: 20px; }
.error-summary h2 { font-size: 1.05rem; color: var(--red); margin-bottom: 6px; }
.error-summary ul { margin: 0; }
.error-summary a { color: var(--red); font-weight: 700; }

/* ---------- Pastilles ---------- */

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: var(--canvas); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.ok { background: var(--green-soft); color: var(--green-ink); box-shadow: none; }
.badge.bad { background: var(--red-soft); color: var(--red-ink); box-shadow: none; }
.badge.wait { background: var(--amber-soft); color: var(--ink); box-shadow: none; }
.badge.info { background: var(--petrol-soft); color: var(--petrol-night); box-shadow: none; }
@media (prefers-color-scheme: dark) { .badge.info { color: var(--ink); } }
.badge--plain::before { display: none; }

/* ---------- Liste de contrôle ---------- */

.meter { height: 10px; border-radius: 999px; background: var(--petrol-soft); overflow: hidden; margin: 10px 0 4px; }
.meter > span { display: block; height: 100%; border-radius: 999px; background: var(--petrol); }
.meter--green > span { background: var(--green); }
.steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 2px; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps .dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-strong); color: transparent; font-weight: 800; font-size: .8rem; }
.steps .done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.steps .done .dot::before { content: "✓"; }
.steps .current .dot { border-color: var(--amber-deep); box-shadow: 0 0 0 4px var(--amber-soft); }
.steps strong { display: block; font-weight: 800; }
.steps .done strong { color: var(--muted); }
.steps p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.steps .tag { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-left: 6px; }

/* ---------- Statistiques ---------- */

.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 12px 0; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 16px; }
.kpi__label { display: block; font-size: .86rem; font-weight: 700; color: var(--muted); }
.kpi__value { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi__sub { display: block; font-size: .85rem; color: var(--muted); }
.spark { margin-top: 10px; height: 40px; }
.spark svg { width: 100%; height: 40px; overflow: visible; }
.spark rect { fill: var(--bar-muted); }
.spark rect.recent { fill: var(--petrol); }
.spark rect:hover { fill: var(--amber-deep); }
.fair { display: flex; gap: 12px; align-items: flex-start; }
.fair svg { flex: none; width: 28px; height: 28px; color: var(--green); }

/* ---------- Stations ---------- */

.station-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-1); margin-bottom: 18px; overflow: hidden; }
.station-card__head { padding: 18px 20px 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); }
.station-card__head h3 { font-size: 1.2rem; margin: 0 0 2px; }
.station-card__body { padding: 16px 20px 20px; }
@media (min-width: 720px) { .station-card__head, .station-card__body { padding-inline: 26px; } }
.station-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.result-list { list-style: none; margin: 0; padding: 0; }
.result { display: grid; gap: 10px; grid-template-columns: 1fr; padding: 16px 0; border-top: 1px solid var(--line); }
.result:first-child { border-top: 0; }
@media (min-width: 640px) { .result { grid-template-columns: 1fr auto; align-items: center; } }
.result h3 { margin: 0 0 2px; font-size: 1.05rem; }
.result p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- Tableaux ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--card); margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child > td, tr:last-child > th { border-bottom: 0; }
thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; background: var(--canvas); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
details > summary { cursor: pointer; font-weight: 700; color: var(--link); min-height: 44px; display: flex; align-items: center; }

/* ---------- Heures, photos, aperçu ---------- */

.hours { display: grid; gap: 8px; }
.hours__row { display: grid; gap: 8px; grid-template-columns: 1fr; align-items: center; padding: 10px 12px; border-radius: var(--radius-s); background: var(--canvas); }
.hours__row .day { font-weight: 800; }
.hours__times { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
@media (min-width: 640px) { .hours__row { grid-template-columns: 120px 180px 1fr; } }
.hours__row[data-status="24h"] .hours__times, .hours__row[data-status="closed"] .hours__times, .hours__row[data-status=""] .hours__times { visibility: hidden; }
.photos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.photo { border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: var(--card); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--canvas); }
.photo__body { padding: 10px 12px 12px; }
.photo__body .field { margin-top: 8px; }
.sub-panel { margin-top: 12px; padding: 14px 16px; border-radius: var(--radius-s); background: var(--canvas); border: 1px dashed var(--line-strong); }

.preview { position: sticky; top: 16px; }
.phone { max-width: 340px; margin: 0 auto; border-radius: 34px; padding: 12px; background: #0d1a1f; box-shadow: var(--shadow-1); }
.phone__screen { border-radius: 24px; overflow: hidden; background: #f5f8f9; color: #13212b; font-size: .9rem; }
.phone__top { padding: 16px 16px 12px; background: linear-gradient(160deg, #0f7591, #084a5c); color: #fff; }
.phone__top strong { display: block; font-size: 1.1rem; }
.phone__top span { opacity: .85; font-size: .82rem; }
.phone__body { padding: 12px; display: grid; gap: 10px; }
.app-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: #f2b33d; color: #2b1c00; font-weight: 800; font-size: .74rem; }
.app-promo { border-radius: 14px; padding: 12px; background: #fdf0d5; border: 1px solid #f2b33d; }
.app-promo strong { display: block; color: #2b1c00; }
.app-promo p { margin: 4px 0 0; color: #3f2f0a; font-size: .85rem; }
.app-promo small { display: block; margin-top: 6px; color: #5d4a1d; font-size: .76rem; }
.app-block { border-radius: 14px; padding: 10px 12px; background: #fff; border: 1px solid #dce4e8; }
.app-block b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #4f5d66; margin-bottom: 2px; }
.app-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.app-chips span { padding: 2px 8px; border-radius: 999px; background: #eaf5f8; color: #084a5c; font-weight: 700; font-size: .76rem; }
.app-photo { border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* ---------- Pied de page ---------- */

.p-footer { background: var(--bg); border-top: 1px solid var(--line); padding-block: 22px 28px; font-size: .86rem; color: var(--muted); }
.p-footer ul { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.p-footer a { color: var(--ink-2); font-weight: 700; }

/* ---------- Accueil du portail ---------- */

.hero { background: linear-gradient(165deg, var(--petrol-deep), var(--petrol-night)); color: #fff; border-radius: var(--radius); padding: 28px 22px; margin-bottom: 22px; overflow: hidden; position: relative; }
@media (min-width: 720px) { .hero { padding: 44px 44px; } }
.hero h1 { color: #fff; max-width: 18em; }
.hero p { color: #d3ebf1; max-width: 38em; font-size: 1.08rem; }
.hero .kicker { color: #bfe3ec; }
.hero .btn--ghost { --btn-fg: #fff; }
.hero .btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .1); --btn-fg: #fff; }
.price-tag { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: baseline; margin: 6px 0 4px; }
.price-tag strong { font-size: 2.2rem; letter-spacing: -.03em; }
.benefits { list-style: none; padding: 0; display: grid; gap: 14px; }
@media (min-width: 720px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.benefits li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.benefits .ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--petrol-mist); color: var(--petrol); font-weight: 800; }
.legal h2 { margin-top: 26px; font-size: 1.15rem; }
.legal p, .legal li { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (forced-colors: active) { .badge::before, .flash::before, .notice::before { forced-color-adjust: none; } .meter > span { background: Highlight; } }

/* ---------- Bienvenue : compte créé par l'admin (consentements, puis paiement) ---------- */

.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.1rem; }
.welcome-stations { list-style: none; margin: 0; padding: 0; }
.welcome-stations li { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: space-between; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.welcome-stations li:first-child { border-top: 0; padding-top: 0; }
.welcome-stations strong { display: block; }
.welcome-stations p { margin: 0; }
.welcome-price { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; }
.welcome-price + .welcome-price { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.welcome-price .amount { font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.welcome-price--total .amount { font-size: 1.6rem; letter-spacing: -.02em; }
.welcome-pay { margin-top: 22px; }
.welcome-pay .btn { width: 100%; }
@media (min-width: 640px) { .welcome-pay .btn { width: auto; min-width: 320px; } }

/* ---------- Admin connecté « en tant que » partenaire : bandeau sur toutes les pages ---------- */

.impersonation {
    position: relative; z-index: 30; color: #fff;
    background: repeating-linear-gradient(135deg, #7a1016 0 14px, #8f141b 14px 28px);
    border-bottom: 3px solid var(--amber);
}
.impersonation__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-block: 10px; }
.impersonation__text { min-width: 0; flex: 1 1 320px; }
.impersonation__text p { margin: 0; }
.impersonation__title { font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.impersonation__details { font-size: .86rem; opacity: .92; }
.impersonation form { margin: 0; flex: none; }
.impersonation__back { --btn-bg: var(--amber); --btn-fg: #2b1c00; }
.impersonation__back:hover { --btn-bg: #ffd27a; --btn-fg: #2b1c00; }
@media (min-width: 720px) { .impersonation { position: sticky; top: 0; } }
@media (forced-colors: active) { .impersonation { border: 3px solid CanvasText; } }
