/* DIVE LogBook
   Palette tirée de la photo d'ouverture : bleu du large, abysse, écume,
   et un jaune « parachute de palier » réservé à ce qui est validé. */
:root {
    --abysse: #031c30;
    --fond: #06304d;
    --large: #0a4a72;
    --lagon: #5cc8d6;
    --ecume: #eaf6f5;
    --brume: #9fc3d1;
    --signal: #ffd23f;
    --trait: rgba(234, 246, 245, .16);
    --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
    --text: "Hanken Grotesk", system-ui, sans-serif;
    --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--text);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--ecume);
    /* la page descend : plus on défile, plus le bleu s'assombrit */
    background: linear-gradient(180deg, var(--large) 0, var(--fond) 900px, var(--abysse) 2400px) var(--abysse);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--signal); color: var(--abysse); padding: .5rem .9rem; font-weight: 700; }
.skip:focus { top: 1rem; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

/* ── Barre ─────────────────────────────── */
.bar {
    position: fixed; inset: 0 0 auto 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .7rem max(1.25rem, (100vw - var(--wrap)) / 2);
    background: rgba(3, 28, 48, .55);
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    border-bottom: 1px solid var(--trait);
}
.brand {
    font-family: var(--display); font-weight: 900; font-size: 1.45rem; letter-spacing: .02em;
    text-transform: uppercase; text-decoration: none; line-height: 1;
}
.tabs { display: flex; gap: .25rem; }
.tabs a {
    text-decoration: none; font-weight: 500; padding: .45rem .9rem; border-radius: 99px;
    color: var(--brume); white-space: nowrap;
}
.tabs a:hover { color: var(--ecume); }
.tabs a[aria-current="page"] { background: var(--ecume); color: var(--abysse); }
.tabs__count { font-variant-numeric: tabular-nums; opacity: .75; margin-left: .15rem; }

/* ── États de connexion ────────────────── */
body:not([data-auth="in"]) .view, body:not([data-auth="in"]) .tabs, body:not([data-auth="in"]) .account { display: none; }
body[data-auth="in"] .gate { display: none; }
.account { flex: none; width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 1px solid rgba(234, 246, 245, .45); background: transparent; font-weight: 700; cursor: pointer; }
.account:hover { background: rgba(234, 246, 245, .12); border-color: var(--ecume); }

.gate { position: relative; min-height: 100svh; display: flex; isolation: isolate; overflow: hidden; }
.gate::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3, 28, 48, .5) 0, rgba(3, 28, 48, .15) 55%, rgba(3, 28, 48, .55) 100%), linear-gradient(180deg, rgba(3, 28, 48, .35), transparent 30%, rgba(3, 28, 48, .6)); }
.gate__inner { display: grid; grid-template-columns: minmax(0, 1fr) min(24rem, 100%); gap: 2.5rem 4rem; align-items: center; padding-block: 6.5rem 3rem; }
.gate .hero__title { font-size: clamp(3.6rem, 10vw, 9rem); }
.gate__pitch p { margin-top: 1.4rem; font-size: 1.2rem; max-width: 30ch; text-shadow: 0 1px 12px rgba(3, 28, 48, .6); }
.gate__panel { background: rgba(3, 28, 48, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 8px; padding: 1.8rem 1.6rem; box-shadow: inset 0 0 0 1px var(--trait); }
.gate__panel h2 { font-family: var(--display); font-weight: 900; font-size: 2.1rem; line-height: 1; text-transform: uppercase; margin-bottom: 1.2rem; }
.gate__wait { color: var(--brume); }
.gate__google { width: 100%; background: #fff; border-color: #fff; }
.gate__or { display: flex; align-items: center; gap: .8rem; margin: 1.2rem 0; color: var(--brume); font-size: .9rem; }
.gate__or::before, .gate__or::after { content: ""; flex: 1; border-top: 1px solid var(--trait); }
.gate form, .docform { display: grid; gap: .9rem; }
.gate label, .docform label { display: grid; gap: .3rem; font-size: .9rem; color: var(--brume); }
.gate input, .docform input[type="text"], .docform select, .docform input[type="file"] {
    width: 100%; padding: .65rem .75rem; border-radius: 5px; border: 1px solid rgba(234, 246, 245, .35);
    background: rgba(3, 28, 48, .5); color: var(--ecume); color-scheme: dark; font-size: 1rem;
}
.gate__msg { padding: .6rem .8rem; border-left: 3px solid #ffb4a8; background: rgba(255, 180, 168, .1); font-size: .95rem; }
.gate__msg.is-ok { border-color: var(--signal); background: rgba(255, 210, 63, .1); }
.gate__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-top: 1.1rem; font-size: .95rem; }
.btn:disabled { opacity: .55; cursor: progress; }

.empty { max-width: 44rem; padding: 2rem 0 1rem; display: grid; gap: 1rem; justify-items: start; }
.empty .smallprint { margin-top: 0; }
.notice--top { margin-top: 2rem; margin-bottom: 0; }
.docform { max-width: 34rem; margin: 0 0 1.5rem; padding: 1.3rem; border-radius: 6px; background: rgba(3, 28, 48, .4); box-shadow: inset 0 0 0 1px var(--trait); }
.docform .btn { justify-self: start; }
.card__logo--text { font-family: var(--display); font-weight: 900; font-size: 1.5rem; text-transform: uppercase; color: var(--large); }
.card__links .link { color: var(--lagon); }
.card__links .link--danger { color: #ffb4a8; }
.sheet--account { width: min(400px, 100% - 1.5rem); }

/* ── Ouverture ─────────────────────────── */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; isolation: isolate; overflow: hidden; }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; z-index: -2; }
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(3, 28, 48, .35) 0, transparent 22%, transparent 48%, rgba(6, 48, 77, .82) 80%, var(--fond) 100%),
        linear-gradient(90deg, rgba(3, 28, 48, .45) 0, transparent 55%);
}
.hero__inner { display: flex; flex-direction: column; justify-content: flex-end; padding-top: 6.5rem; padding-bottom: 2.5rem; gap: clamp(2rem, 6vh, 4.5rem); }
.hero__title {
    font-family: var(--display); font-weight: 900; text-transform: uppercase;
    font-size: clamp(4rem, 14.5vw, 12.5rem); line-height: .82; letter-spacing: -.012em;
    text-wrap: balance; margin-left: -.04em;
    text-shadow: 0 2px 40px rgba(3, 28, 48, .35);
}

.hero__lead { display: grid; gap: 1.6rem; justify-items: start; }
.readout { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(234, 246, 245, .4); }
.readout__item { padding: 1rem 1.25rem 0 0; }
.readout__item + .readout__item { padding-left: 1.25rem; border-left: 1px solid var(--trait); }
.readout dt { font-size: .95rem; color: var(--brume); }
.readout dd { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.readout dd small { font-size: .5em; font-weight: 500; margin-left: .12em; color: var(--brume); }
.readout dd.readout__note { font-family: var(--text); font-weight: 400; font-size: .9rem; line-height: 1.35; color: var(--brume); white-space: normal; margin-top: .2rem; }

/* ── Sections ──────────────────────────── */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section:last-child { padding-bottom: 5rem; }
.section--tight { padding-top: 2.5rem; }
.section h2, .dexgroup h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.section__head { margin-bottom: 1.5rem; }
.section__head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.section__lede { color: var(--brume); max-width: 60ch; margin-top: .5rem; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .6rem 1.1rem; border-radius: 99px; border: 1px solid var(--ecume);
    background: var(--ecume); color: var(--abysse); font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: #fff; }
.btn--ghost { background: transparent; color: var(--ecume); border-color: rgba(234, 246, 245, .45); font-weight: 500; }
.btn--ghost:hover { background: rgba(234, 246, 245, .1); border-color: var(--ecume); }
.btn--signal { background: var(--signal); border-color: var(--signal); }
.btn--signal:hover { background: #ffdf70; }
.btn--small { padding: .4rem .85rem; font-size: .92rem; }
.link { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: var(--brume); }
.link:hover { color: var(--ecume); }
.link--danger { color: #ffb4a8; }

/* ── Profil des plongées ───────────────── */
.profile { position: relative; height: clamp(220px, 34vw, 360px); border-top: 2px solid var(--lagon); }
.profile__axis { position: absolute; inset: 0; pointer-events: none; }
.profile__axis span { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--trait); }
.profile__axis span b { position: absolute; right: 0; top: .15rem; font-weight: 500; font-size: .8rem; color: var(--brume); font-variant-numeric: tabular-nums; }
.profile__bars { position: absolute; inset: 0 2.6rem 0 0; display: flex; align-items: flex-start; gap: clamp(1px, .25vw, 3px); }
.profile__bars i { flex: 1 1 0; min-width: 1px; background: linear-gradient(180deg, var(--lagon), rgba(92, 200, 214, .35)); border-radius: 0 0 3px 3px; transform-origin: top; animation: descend .9s cubic-bezier(.2, .7, .2, 1) backwards; }
.profile__bars i:hover, .profile__bars i.is-on { background: var(--ecume); }
.profile__bars i.is-max { background: var(--signal); }
@keyframes descend { from { transform: scaleY(0); } }
.profile__readout { margin-top: .9rem; color: var(--brume); min-height: 1.5em; font-variant-numeric: tabular-nums; }
.profile__readout strong { color: var(--ecume); }

/* ── Carte ─────────────────────────────── */
.atlas { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 1.5rem 2.5rem; align-items: start; }
.map { position: relative; aspect-ratio: 1000 / 392; --k: 1; border-top: 2px solid var(--lagon); }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map svg path { fill: rgba(234, 246, 245, .13); stroke: rgba(234, 246, 245, .3); stroke-width: .5; vector-effect: non-scaling-stroke; }
.map__dots { position: absolute; inset: 0; }
.dot {
    position: absolute; width: calc(var(--s) * var(--k)); height: calc(var(--s) * var(--k)); padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    transform: translate(-50%, -50%);
    background: var(--lagon); box-shadow: 0 0 0 1.5px var(--abysse), 0 0 0 calc(var(--s) * .45) rgba(92, 200, 214, .2);
}
.dot::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; }   /* cible tactile élargie */
.dot.is-on { background: var(--signal); box-shadow: 0 0 0 1.5px var(--abysse), 0 0 0 calc(var(--s) * .45) rgba(255, 210, 63, .28); z-index: 2; }
.zones { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(234, 246, 245, .4); }
.zones li { border-bottom: 1px solid var(--trait); }
.zones button { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; width: 100%; padding: .36rem 0; background: none; border: 0; cursor: pointer; text-align: left; font-size: .95rem; }
.zones b { font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1; color: var(--lagon); font-variant-numeric: tabular-nums; }
.zones button:hover span, .zones button.is-on span { color: var(--signal); }
.zones button.is-on b { color: var(--signal); }

/* ── Tableau ───────────────────────────── */
.actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
#dataPanel .search { display: block; margin-bottom: 1.2rem; }
.search input {
    width: min(24rem, 100%); padding: .6rem 1rem; border-radius: 99px;
    border: 1px solid rgba(234, 246, 245, .45); background: rgba(3, 28, 48, .35);
}
.search input::placeholder { color: var(--brume); }
.notice { padding: .8rem 1rem; margin-bottom: 1rem; border-left: 3px solid var(--signal); background: rgba(255, 210, 63, .1); max-width: 75ch; }
.tablewrap { overflow-x: auto; border-top: 1px solid rgba(234, 246, 245, .4); }
.dives { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 760px; }
.dives th { text-align: left; font-weight: 500; font-size: .9rem; color: var(--brume); padding: .8rem .9rem .6rem 0; white-space: nowrap; }
.dives td { padding: .7rem .9rem .7rem 0; border-top: 1px solid var(--trait); white-space: nowrap; }
.dives .num { text-align: right; }
.dives td:first-child { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--lagon); width: 3.5rem; }
.dives td.place { white-space: normal; font-weight: 500; }
.dives tbody tr:hover td { background: rgba(234, 246, 245, .05); }
.depthcell { display: inline-flex; align-items: center; gap: .6rem; justify-content: flex-end; }
.depthcell i { display: block; height: 4px; background: var(--lagon); border-radius: 2px; }
.dives tr.is-max .depthcell i { background: var(--signal); }
.dives tr.is-max td.depth { color: var(--signal); font-weight: 700; }
.count { color: var(--brume); margin-top: 1rem; font-size: .92rem; }

/* ── En-tête des autres vues ───────────── */
.pagehead { padding-top: 7.5rem; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem 3rem; padding-bottom: 2.5rem; }
.pagehead__title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(3.6rem, 12vw, 9.5rem); line-height: .82; letter-spacing: -.012em; margin-left: -.04em; }
.tally { max-width: 26rem; }
.tally__figure { font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 7vw, 5rem); line-height: .9; color: var(--signal); font-variant-numeric: tabular-nums; }
.tally__of { font-weight: 500; font-size: .45em; color: var(--ecume); }
.tally__ticks { display: flex; gap: 4px; margin: .9rem 0; }
.tally__ticks i { flex: 1; height: 8px; border-radius: 2px; background: rgba(234, 246, 245, .18); }
.tally__ticks i.is-seen { background: var(--signal); }
.tally__note { color: var(--brume); font-size: .95rem; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding-bottom: .5rem; border-bottom: 1px solid var(--trait); padding-block: 0 1rem; }
.filters__spacer { flex: 1; }
.chip { padding: .4rem .95rem; border-radius: 99px; border: 1px solid rgba(234, 246, 245, .45); background: transparent; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ecume); color: var(--abysse); border-color: var(--ecume); font-weight: 700; }

/* ── Le « dex » ────────────────────────── */
.dexgroup { padding-top: 2.5rem; }
.dexgroup__head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.1rem; }
.dexgroup__head p { color: var(--brume); font-variant-numeric: tabular-nums; }
.dex { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); gap: 1rem; }

.sp {
    position: relative; display: block; width: 100%; aspect-ratio: 4 / 3.3; padding: 0; border: 0; cursor: pointer;
    text-align: left; border-radius: 6px; overflow: hidden; isolation: isolate;
    background: #093a5c; color: var(--ecume);
    box-shadow: inset 0 0 0 1px var(--trait);
}
.sp__sil { position: absolute; inset: 14% 10% 34%; display: grid; place-items: center; }
.sp__sil img { max-height: 100%; width: 100%; object-fit: contain; filter: invert(1); opacity: .16; transition: opacity .2s; }
.sp:hover .sp__sil img { opacity: .3; }
.sp__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.sp__meta { position: absolute; inset: auto 0 0 0; padding: .9rem 1rem .95rem; }
.sp__name { display: block; font-family: var(--display); font-weight: 700; font-size: 1.65rem; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.sp__sub { display: block; margin-top: .3rem; font-size: .9rem; color: var(--brume); }
.sp__sub em { font-style: italic; }

.sp.is-seen { box-shadow: none; }
.sp.is-seen::after { content: ""; position: absolute; inset: 35% 0 0 0; z-index: -1; background: linear-gradient(180deg, transparent, rgba(3, 28, 48, .88)); }
.sp.is-seen .sp__sub { color: var(--ecume); }
.sp__stamp {
    position: absolute; top: .75rem; left: .75rem;
    background: var(--signal); color: var(--abysse); font-weight: 700; font-size: .85rem;
    padding: .2rem .6rem; border-radius: 3px;
}
/* le seul moment animé de l'onglet : la photo balaie la silhouette */
.sp.just-seen .sp__photo { animation: reveal 1.1s cubic-bezier(.3, .7, .2, 1); }
.sp.just-seen .sp__stamp { animation: stamp .45s .7s cubic-bezier(.3, 1.6, .5, 1) backwards; }
@keyframes reveal { from { clip-path: inset(0 100% 0 0); filter: brightness(0) invert(1); } 60% { filter: none; } to { clip-path: inset(0); } }
@keyframes stamp { from { transform: scale(1.8) rotate(-8deg); opacity: 0; } }

.dex__empty { color: var(--brume); padding: 1rem 0; }
.smallprint { color: var(--brume); font-size: .92rem; margin-top: 2.5rem; }
.credits { margin: 1rem 0 5rem; color: var(--brume); font-size: .88rem; }
.credits summary { cursor: pointer; width: fit-content; }
.credits ul { margin-top: .8rem; columns: 2 320px; column-gap: 2.5rem; }
.credits li { break-inside: avoid; margin-bottom: .45rem; }

/* ── Fiche ─────────────────────────────── */
.sheet { width: min(560px, 100% - 1.5rem); padding: 0; border: 0; border-radius: 8px; background: var(--fond); color: var(--ecume); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); max-height: calc(100dvh - 1.5rem); overflow-y: auto; }
.sheet::backdrop { background: rgba(3, 28, 48, .72); backdrop-filter: blur(4px); }
.sheet__visual { position: relative; aspect-ratio: 16 / 8.5; background: #093a5c; display: grid; place-items: center; }
.sheet__visual img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sheet__visual img.sil { width: 70%; max-height: 62%; object-fit: contain; filter: invert(1); opacity: .2; }
.sheet__body { position: relative; padding: 1.4rem 1.5rem 1.5rem; }
.sheet__close { position: absolute; right: .9rem; top: .7rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 0; background: rgba(234, 246, 245, .1); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.sheet__close:hover { background: rgba(234, 246, 245, .2); }
.sheet h2:focus { outline: none; }
.sheet h2 { font-family: var(--display); font-weight: 900; font-size: 2.4rem; line-height: 1; text-transform: uppercase; padding-right: 3rem; }
.sheet__sci { font-style: italic; color: var(--brume); margin-top: .25rem; }
.sheet__fact { margin-top: .7rem; max-width: 52ch; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; margin-top: 1.3rem; }
.fields__wide { grid-column: 1 / -1; }
.fields label { display: grid; gap: .3rem; font-size: .9rem; color: var(--brume); }
.fields input[type="text"], .fields input[type="date"] {
    width: 100%; padding: .6rem .75rem; border-radius: 5px; border: 1px solid rgba(234, 246, 245, .35);
    background: rgba(3, 28, 48, .5); color: var(--ecume); color-scheme: dark; font-size: 1rem;
}
.fields input::placeholder { color: rgba(159, 195, 209, .6); }
.photo { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.photo__credit { font-size: .8rem; color: var(--brume); flex-basis: 100%; }
.sheet__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }

/* ── Documents ─────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: .9rem; margin-top: 1.3rem; }
.card { display: flex; align-items: stretch; height: 100%; min-height: 104px; border-radius: 6px; overflow: hidden; text-decoration: none; background: rgba(3, 28, 48, .4); box-shadow: inset 0 0 0 1px var(--trait); }
a.card:hover { background: rgba(3, 28, 48, .7); box-shadow: inset 0 0 0 1px rgba(234, 246, 245, .5); }
.card__logo { flex: 0 0 104px; background: #fff; display: grid; place-items: center; padding: .5rem; }
.card__logo img { max-height: 84px; width: auto; object-fit: contain; }
.card__text { display: flex; flex-direction: column; justify-content: center; gap: .2rem; padding: .8rem 1.1rem; }
.card__text strong { font-size: 1.08rem; }
.card__text > span { color: var(--brume); font-size: .92rem; }
.card__links { display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.card__links a { color: var(--lagon); text-underline-offset: 3px; }
.card__links a:hover { color: var(--ecume); }

.shelf { margin-top: 1rem; border-top: 1px solid rgba(234, 246, 245, .4); columns: 2 380px; column-gap: 3rem; }
.shelf li { break-inside: avoid; border-bottom: 1px solid var(--trait); }
.shelf a { display: flex; align-items: center; gap: 1.1rem; padding: .85rem 0; text-decoration: none; font-weight: 500; }
.shelf a:hover { color: var(--lagon); }
.shelf__tag { flex: 0 0 4.6rem; font-family: var(--display); font-weight: 900; font-size: 1.7rem; line-height: 1; text-transform: uppercase; color: var(--lagon); }
.shelf__tag--ean { color: #8fe08a; }

/* ── Petits écrans ─────────────────────── */
@media (max-width: 760px) {
    .bar { padding-inline: 1rem; }
    .brand { display: none; }
    .tabs { width: 100%; justify-content: space-between; }
    .tabs a { padding-inline: .8rem; }
    .hero { min-height: min(100svh, 780px); }
    .hero__photo { object-position: 57% 40%; }
    .hero__title { font-size: 19vw; }
    .readout { grid-template-columns: 1fr 1fr; }
    .readout__item { padding: .9rem .8rem .9rem 0; }
    .readout__item:nth-child(3) { padding-left: 0; border-left: 0; }
    .readout__item:nth-child(n+3) { border-top: 1px solid var(--trait); }
    .readout__item + .readout__item { padding-left: .9rem; }
    .readout__item:nth-child(3) { padding-left: 0; }
    .pagehead { grid-template-columns: 1fr; padding-top: 6rem; }
    .filters__spacer { flex-basis: 100%; height: 0; }
    .fields { grid-template-columns: 1fr; }
    .gate__inner { grid-template-columns: 1fr; align-content: end; padding-top: 5rem; }
    .gate .hero__title { font-size: 17vw; }
    .gate__pitch p { font-size: 1.05rem; }
    .tabs { width: auto; flex: 1; }
    .atlas { grid-template-columns: 1fr; }
    .map { --k: .55; }
    .zones { columns: 2; column-gap: 1.5rem; border-top: 0; }
    .zones li { break-inside: avoid; }
    .zones button { font-size: .88rem; }
    .dex { grid-template-columns: 1fr 1fr; gap: .6rem; }
    .sp { aspect-ratio: 1 / 1.08; }
    .sp__meta { padding: .7rem .75rem .8rem; }
    .sp__name { font-size: 1.25rem; }
    .sp__sub { font-size: .82rem; }
    .sp__stamp { top: .5rem; left: .5rem; font-size: .78rem; }
    .profile__bars { right: 2.2rem; }
}

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