/*
 * tribes.css · système visuel de Tribes Rewards.
 *
 * Refonte du 30 octobre 2026, d'après les maquettes Figma « Tribes Rewards ·
 * Refonte frontend 2026 » : direction « lagon et sable » (vert profond des
 * eaux de Nosy Be, sable des plages, corail pour l'échange de points, ylang
 * pour les statuts), titres en Cormorant Garamond et texte en Jost (polices
 * du site vitrine), arrondis faibles (4 px, 6 px, 10 px pour la carte de membre),
 * ombres légères.
 *
 * Une seule feuille pour l'application React (web/), les pages Blade et le
 * portail captif. Les noms de classes sont ceux des versions précédentes :
 * seul le dessin change.
 *
 * ⚠️ Le bloc :root (§2) reste la copie exacte du site vitrine : il est
 * comparé au site par `php artisan charte:verifier`. Tout ce qui est propre
 * à Rewards passe par la classe `fonctionnel` (posée sur <body> de chaque
 * écran) et chaque variable redéfinie est déclarée dans config/charte.php.
 */


/* ==========================================================================
   1. Polices, hébergées par nous
   --------------------------------------------------------------------------
   Celles du site vitrine : Cormorant Garamond pour les titres et les
   chiffres, Jost pour le texte. Le portail captif s'affiche AVANT que le
   client ait Internet : seul notre domaine est ouvert. Polices variables :
   un fichier couvre toutes les graisses. Le jeu `latin-ext` (polonais, etc.)
   ne se télécharge que si une de ses lettres s'affiche (unicode-range).

   Cormorant a un petit œil : `size-adjust` l'agrandit de 10 % pour que les
   titres gardent leur présence sans retoucher chaque taille. Ses chiffres
   sont elzéviriens (le 3 et le 7 descendent) : `.fonctionnel` impose les
   chiffres alignés, et chaque `tabular-nums` est doublé de `lining-nums`,
   sans quoi il les rétablirait.
   ========================================================================== */

@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
    size-adjust: 110%;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../fonts/cormorant-garamond-latin-ext.woff2") format("woff2");
    size-adjust: 110%;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Jost";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../fonts/jost-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Jost";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../fonts/jost-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* ==========================================================================
   2. Variables du site vitrine, à l'identique (contrôle de dérive)
   ========================================================================== */

:root {
    --bone: #f6f2ea;
    --bone-2: #efe9dd;
    --paper: #fbf9f5;
    --ink: #1b241f;
    --ink-2: #3d4a42;
    --mute: #8a8578;
    --forest: #1e2b24;
    --forest-2: #2a3b31;
    --clay: #a1573a;
    --gold: #b3985f;
    --hair: rgba(27,36,31,.14);
    --hair-lt: rgba(255,255,255,.2);
    --disp: "Cormorant Garamond","Didot","Bodoni MT","Iowan Old Style",Garamond,"Times New Roman",serif;
    --ui: "Jost","Futura","Avenir Next",Avenir,"Helvetica Neue",Helvetica,sans-serif;
    --gut: clamp(22px,5vw,72px);
}


/* ==========================================================================
   3. Variables de Rewards : lagon et sable
   --------------------------------------------------------------------------
   Les noms historiques (bone, ink, forest, clay…) gardent leur rôle : fond,
   texte, vert d'action, accent. Contrastes sur le fond --bone (#faf7f1) :
   ink 15,6:1 · ink-2 9,2:1 · mute 4,9:1 · forest 11,4:1 · clay 4,9:1.
   ========================================================================== */

.fonctionnel {
    --bone: #f6f2ea;
    --bone-2: #efe9dd;
    --paper: #fffcf7;
    --ink: #17211d;
    --ink-2: #44514a;
    --mute: #66706b;
    --forest: #0f4a47;
    --forest-2: #1f6e67;
    --clay: #b0553a;
    --gold: #b3985f;
    --hair: #e6ded0;
    --hair-lt: rgba(255,255,255,.18);
    --disp: "Cormorant Garamond", Garamond, Georgia, "Times New Roman", serif;
    --ui: "Jost", "Futura", "Avenir Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --gut: clamp(20px, 4.4vw, 64px);
    /* Nuances complémentaires. */
    --lagon-nuit: #0b302f;
    --lagon-clair: #3e877d;
    --lagon-pale: #e1efeb;
    --sable-3: #d3c8b5;
    --corail-pale: #f7e5db;
    --ylang-pale: #f3ebd8;
    --succes: #2e7650;
    --succes-pale: #e2f0e7;
    --erreur: #ae3a2c;
    --erreur-pale: #f8e3df;
    --attention: #9a6514;
    --attention-pale: #f7edd9;
    /* Formes. */
    --r-champ: 12px;
    --r-carte: 20px;
    --r-objet: 22px;
    --ombre-douce: 0 1px 2px rgba(11,48,47,.04), 0 8px 24px -4px rgba(11,48,47,.08);
    --ombre-flottante: 0 16px 40px -8px rgba(11,48,47,.14);
    font-variant-numeric: lining-nums;
}


/* ==========================================================================
   4. Base
   ========================================================================== */

* { box-sizing: border-box }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--bone); color: var(--ink); font-family: var(--ui); font-weight: 400; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased }
img { max-width: 100%; display: block }
a { color: inherit; text-decoration: none }
h1, h2, h3, .disp { font-family: var(--disp); font-weight: 600; line-height: 1.12; letter-spacing: 0; margin: 0; text-wrap: balance }
.fonctionnel dl { margin: 0 }
.fonctionnel :focus-visible { outline: 2px solid var(--forest-2); outline-offset: 2px }
.visuellement-masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }


/* ==========================================================================
   5. Typographie
   ========================================================================== */

.h-xl { font-size: clamp(36px, 4.6vw, 58px); letter-spacing: -.015em }
.h-lg { font-size: clamp(32px, 3.6vw, 44px) }
.h-md { font-size: clamp(26px, 2.6vw, 32px) }
.h-sm { font-size: clamp(21px, 2vw, 24px) }

/* Surtitre : petites capitales espacées, en corail. */
.lbl { font-family: var(--ui); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--clay) }
.lbl.lt { color: var(--ylang-pale, #f3ebd8) }

.prose { font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 62ch }
.prose.lt { color: rgba(255,255,255,.82) }
.prose.big { font-family: var(--disp); font-size: clamp(20px, 2vw, 24px); line-height: 1.5; color: var(--ink) }
.prose.petite { font-size: 14px; margin: 0 0 20px }

.numero { font-variant-numeric: lining-nums tabular-nums; letter-spacing: .06em }


/* ==========================================================================
   6. Mise en page
   ========================================================================== */

.shell { max-width: 1312px; margin: 0 auto; padding: 0 var(--gut) }
.narrow { max-width: 820px; margin: 0 auto }
.sect { padding: clamp(56px, 9vh, 104px) 0 }
.sect.tight { padding: clamp(40px, 6vh, 72px) 0 }
.dark { background: var(--forest); color: #fff }
.dark h2, .dark h3 { color: #fff }
.paper { background: var(--paper) }
.rule { height: 1px; background: var(--hair); border: 0; margin: 0 }
.dark .rule { background: var(--hair-lt) }
.sect-head { margin-bottom: clamp(28px, 4vw, 48px) }
.sect-head .lbl { display: block; margin-bottom: 10px }
.sect-head .prose { margin-top: 12px }

.page { min-height: 100svh; display: flex; flex-direction: column }
.page > main { flex: 1 }
.ecran { padding: clamp(28px, 5vh, 48px) 0 clamp(48px, 8vh, 72px) }

.evitement { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--forest); color: #fff; padding: 12px 20px; font-size: 14px; border-radius: var(--r-champ) }
.evitement:focus { left: 16px; top: 16px }

.ecran-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start }
.ecran-tete .lbl { display: block; margin-bottom: 8px }
.ecran-tete .prose { margin-top: 10px }
.titre-page { margin-bottom: clamp(20px, 3vh, 32px) }
.pile { max-width: 30rem; margin: 0 auto }
.pile .ecran-tete { margin-bottom: 24px }
.pile-gauche { max-width: 34rem }

.actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 24px }
.renvoi { margin-top: 20px; font-size: 14px; color: var(--ink-2) }
.renvoi a, .renvoi button:not(.btn) { color: var(--forest-2); font-weight: 600 }
.renvoi a:hover { color: var(--forest) ; text-decoration: underline }
.renvoi.serre { margin-top: 8px }
.apres-fiche { margin-top: 20px }
.aide-formulaire { font-size: 13px; line-height: 1.6; color: var(--ink-2); margin: 0 0 16px }
.seulement-mobile, .seulement-menu { display: none }

.section-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 20px; margin-bottom: 14px }
.section-tete h2 { margin: 0 }


/* ==========================================================================
   7. Composants de base
   ========================================================================== */

/* --- Lien d'action ------------------------------------------------------ */
.lnk { position: relative; display: inline-flex; align-items: center; gap: 6px; font-family: var(--ui); font-size: 14px; font-weight: 600; color: var(--forest-2); cursor: pointer; transition: color .15s }
.lnk:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 3px }
.lnk.lt { color: #fff }
.lnk::after { content: ""; position: absolute; inset: -12px -6px }
button.lnk { background: none; border: 0; padding: 0; line-height: 1.6 }

/* --- Bouton ------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 12px 22px;
    font-family: var(--ui); font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center;
    color: var(--forest); background: var(--paper); border: 1px solid var(--sable-3, #d3c8b5); border-radius: var(--r-champ, 4px);
    cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--forest-2); background: var(--bone-2) }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed }
.btn.fill { color: #fff; background: var(--forest); border-color: var(--forest) }
.btn.fill:hover { background: var(--forest-2); border-color: var(--forest-2) }
.btn.corail { color: #fff; background: var(--clay); border-color: var(--clay) }
.btn.corail:hover { background: #984631; border-color: #984631 }
.btn.lt { color: var(--ink); background: #fff; border-color: #fff }
.btn.lt:hover { background: var(--bone-2) }
.btn.bloc { display: flex; width: 100% }
.btn.danger { color: var(--erreur); border-color: var(--erreur-pale) }
.btn.danger:hover { background: var(--erreur); color: #fff; border-color: var(--erreur) }
.case + .btn, .champ + .btn, .duo + .btn { margin-top: 8px }

/* --- Rangées libellé / valeur ------------------------------------------ */
.crow { display: grid; grid-template-columns: minmax(0, 11rem) 1fr; gap: 16px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--hair) }
.crow dt { font-size: 14px; color: var(--mute) }
.crow dd { margin: 0; font-size: 15px; font-weight: 600 }
.crow dd a { color: var(--forest-2) }
.crow dd a:hover { text-decoration: underline }

/* --- Liste à coches ----------------------------------------------------- */
.perks { margin-top: 28px }
.perks h4 { font-family: var(--disp); font-weight: 700; font-size: 20px; margin: 0 0 12px }
.perks ul, .palier-avantages { list-style: none; margin: 0; padding: 0 }
.perks li, .palier-avantages li { position: relative; padding-left: 28px; margin-bottom: 8px; font-size: 15px; color: var(--ink-2); line-height: 1.55 }
.perks li::before, .palier-avantages li::before {
    content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px;
    background: var(--lagon-clair, #3e877d);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --- Chiffres clés ------------------------------------------------------ */
.facts { display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 24px }
.facts div small { display: block; font-size: 13px; color: var(--mute); margin-bottom: 4px }
.facts div b { font-family: var(--disp); font-weight: 700; font-size: 28px; line-height: 1 }
.facts div span { font-size: 14px; color: var(--ink-2) }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px }
.nums > div { text-align: center }
.nums b { display: block; font-family: var(--disp); font-weight: 700; font-size: clamp(40px, 4.4vw, 56px); line-height: 1; color: var(--forest) }
.nums small { display: block; font-size: 14px; color: var(--mute); margin-top: 8px }

/* --- Encadré ------------------------------------------------------------ */
.note { font-size: 14px; line-height: 1.6; color: var(--forest); background: var(--lagon-pale); border-radius: var(--r-carte); padding: 14px 16px; margin-top: 24px; max-width: 70ch }
.note b { font-weight: 600 }

/* --- Fiche (surface blanche) -------------------------------------------- */
.fiche { background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-carte); padding: clamp(18px, 2.4vw, 24px) }
.fiche .lbl { display: block }
.fiche h3 { font-family: var(--disp); font-weight: 700; font-size: clamp(20px, 2vw, 24px); margin: 8px 0; line-height: 1.2 }
.fiche p { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin: 0 }

/* --- Messages ----------------------------------------------------------- */
.message { font-size: 14px; line-height: 1.55; padding: 12px 14px; border-radius: var(--r-carte); margin: 0 0 18px; max-width: 70ch; border-left: 3px solid }
.message b { font-weight: 600 }
.message ul { margin: 6px 0 0; padding-left: 18px }
.message a { text-decoration: underline }
.message .lnk { margin-left: 8px; color: inherit }
.message.info { color: var(--forest); background: var(--lagon-pale); border-color: var(--lagon-clair) }
.message.erreur { color: var(--erreur); background: var(--erreur-pale); border-color: var(--erreur) }
.message.succes { color: var(--succes); background: var(--succes-pale); border-color: var(--succes) }

/* --- Étiquettes d'état et de statut ------------------------------------- */
.etiquette {
    display: inline-flex; align-items: center; gap: 6px; min-height: 22px; padding: 2px 9px;
    font-family: var(--ui); font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; vertical-align: middle;
    background: var(--bone-2); color: var(--ink-2); border-radius: var(--r-champ);
}
.etiquette.ok { background: var(--succes-pale); color: var(--succes) }
.etiquette.attention { background: var(--attention-pale); color: var(--attention) }
.etiquette.statut-entree { background: var(--bone-2); color: var(--ink-2) }
.etiquette.statut-intermediaire { background: var(--ylang-pale); color: var(--attention) }
.etiquette.statut-sommet { background: var(--forest); color: #fff }
.solde span .etiquette { margin-left: 8px }

/* --- Pastille de nombre ------------------------------------------------- */
.pastille { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; font-size: 12px; font-weight: 700; color: #fff; background: var(--clay); border-radius: var(--r-champ) }
.pastille:empty { width: 8px; height: 8px; min-height: 0; padding: 0; border-radius: 50%; background: var(--succes) }

/* --- Icône de service --------------------------------------------------- */
.ico-motif { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--lagon-pale); color: var(--forest) }
.ico-motif svg { width: 20px; height: 20px }
.ico-motif.debit { background: var(--corail-pale); color: var(--clay) }


/* ==========================================================================
   8. Formulaires
   ========================================================================== */

.champ { margin-bottom: 18px }
.champ label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px }
.champ input:not([type]), .champ input[type=text], .champ input[type=email], .champ input[type=tel], .champ input[type=password], .champ input[type=search], .champ input[type=number], .champ input[type=date], .champ input[type=url], .champ select, .champ textarea {
    width: 100%; min-height: 50px; padding: 0 14px;
    border: 1px solid var(--sable-3); border-radius: var(--r-champ); background: var(--paper);
    font-family: var(--ui); font-size: 16px; font-weight: 500; color: var(--ink);
    -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s;
}
.champ select { background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366706b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; padding-right: 40px }
.champ textarea { min-height: 96px; padding: 12px 14px; line-height: 1.6; resize: vertical }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(31,91,86,.14) }
.champ input::placeholder, .champ textarea::placeholder { color: var(--mute); opacity: 1; font-weight: 400 }
.champ .aide { display: block; font-size: 13px; line-height: 1.5; color: var(--mute); margin-top: 6px }
.champ.en-erreur input, .champ.en-erreur select, .champ.en-erreur textarea { border-color: var(--erreur) }
.champ .erreur-champ { display: block; font-size: 13px; line-height: 1.5; color: var(--erreur); margin-top: 6px; font-weight: 600 }
.champ input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none }
.champ input.champ-fichier { display: block; width: 100%; min-height: 48px; padding: 10px 0; border: 0; background: none; font-size: 14px; color: var(--ink-2) }
.champ input.champ-fichier::file-selector-button { min-height: 40px; margin-right: 12px; padding: 0 16px; font-family: var(--ui); font-size: 14px; font-weight: 600; color: var(--forest); background: var(--paper); border: 1px solid var(--sable-3); border-radius: var(--r-champ); cursor: pointer }
.champ .case { margin-top: 6px }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0 14px }
.trio { display: grid; align-items: end; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 12px }
.champ-court { max-width: 12rem }
.saisie-code { text-transform: uppercase; letter-spacing: .2em }
.groupe { border: 0; margin: 0 0 18px; padding: 0; min-width: 0 }
.groupe legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--ink) }

/* --- Code à six chiffres ------------------------------------------------ *
 * Les six cases ne sont qu'un dessin : un seul champ réel, transparent, est
 * posé par-dessus (collage, remplissage iOS, lecteurs d'écran).
 * ---------------------------------------------------------------------- */
.otp { position: relative; width: 100%; max-width: 372px }
.otp-cases { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px }
.otp-case { aspect-ratio: 5 / 6; display: flex; align-items: center; justify-content: center; border: 1px solid var(--sable-3); border-radius: var(--r-champ); background: var(--paper); font-family: var(--disp); font-size: clamp(22px, 6vw, 28px); color: var(--ink); transition: border-color .15s, box-shadow .15s }
.otp-case.active { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(31,91,86,.14) }
.otp-case.remplie { border-color: var(--ink-2) }
.otp input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; font-size: 16px; color: transparent; background: transparent; caret-color: transparent }
.otp.otp-sans-js .otp-cases { display: none }
.otp.otp-sans-js input { position: static; opacity: 1; height: 56px; padding: 0 14px; border: 1px solid var(--sable-3); border-radius: var(--r-champ); background: var(--paper); color: var(--ink); caret-color: auto; font-size: 22px; letter-spacing: .3em; font-family: var(--ui) }

/* --- Bascule (choix exclusif) ------------------------------------------- */
.bascule { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 3px; padding: 3px; margin-bottom: 20px; background: var(--bone-2); border-radius: var(--r-champ) }
.bascule button, .bascule label { min-height: 42px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px 12px; border: 0; border-radius: 3px; background: none; font-family: var(--ui); font-size: 14px; font-weight: 600; color: var(--mute); cursor: pointer; transition: background-color .15s, color .15s }
.bascule input { position: absolute; opacity: 0; pointer-events: none }
.bascule button[aria-pressed="true"], .bascule input:checked + label { background: var(--paper); color: var(--ink); box-shadow: var(--ombre-douce) }
.bascule input:focus-visible + label { outline: 2px solid var(--forest-2); outline-offset: 1px }

/* --- Case à cocher ------------------------------------------------------ */
.case { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; min-height: 44px; padding: 8px 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); cursor: pointer }
.case input { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1px solid var(--sable-3); border-radius: var(--r-champ); background: var(--paper); display: grid; place-content: center; cursor: pointer }
.case input::before { content: ""; width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0 }
.case input:checked { background: var(--forest); border-color: var(--forest) }
.case input:checked::before { opacity: 1 }

/* --- Blocs repliables --------------------------------------------------- */
.validation-manager { margin: 4px 0 18px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair) }
.validation-manager summary, .annuler summary, .details-audit summary, .point-vente summary, .confirmer summary { list-style: none; cursor: pointer }
.validation-manager summary::-webkit-details-marker, .annuler summary::-webkit-details-marker, .details-audit summary::-webkit-details-marker, .point-vente summary::-webkit-details-marker, .confirmer summary::-webkit-details-marker { display: none }
.validation-manager summary, .annuler summary { display: flex; align-items: center; gap: 10px; min-height: 46px; font-size: 14px; font-weight: 600; color: var(--ink) }
.annuler summary { min-height: 40px; font-size: 13px; color: var(--erreur) }
.validation-manager summary::after, .annuler summary::after { content: "+"; margin-left: auto; font-size: 18px; color: var(--mute) }
.annuler summary::after { margin-left: 0 }
.validation-manager[open] > summary::after, .annuler[open] > summary::after { content: "−" }
.validation-manager[open] { padding-bottom: 4px }


/* ==========================================================================
   9. En-tête et pied de l'espace membre
   ========================================================================== */

header { position: sticky; top: 0; z-index: 90; background: rgba(250,247,241,.96); border-bottom: 1px solid var(--hair); backdrop-filter: blur(10px) }
.hbar { display: flex; align-items: center; gap: 24px; min-height: 68px }
.mark { display: flex; align-items: center; min-height: 44px; flex-shrink: 0; line-height: 1 }
.mark img { height: 44px; width: auto }
.mark b { display: block; font-family: var(--disp); font-size: 22px }
.mark i { display: none }
.hnav { margin: 0 auto; display: flex; align-items: center; gap: 30px }
.hnav a, .hnav button { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-family: var(--ui); font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; background: none; border: 0; padding: 0; cursor: pointer; transition: color .15s }
.hnav a::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 18px; height: 2px; margin-left: -9px; border-radius: 1px; background: var(--clay); opacity: 0; transition: opacity .15s }
.hnav a:hover { color: var(--ink) }
.hnav a[aria-current="page"] { color: var(--ink); font-weight: 600 }
.hnav a[aria-current="page"]::after { opacity: 1 }
.hnav form { margin: 0; display: flex }
.hnav .seulement-menu, .hnav .seulement-mobile { display: none }
.hkit { display: flex; align-items: center; gap: 12px; margin-left: auto }
.hnav + .hkit { margin-left: 0 }

/* Solde et initiales du membre, à droite de la barre. */
.solde-entete { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; font-size: 14px; font-weight: 700; color: var(--forest); background: var(--lagon-pale); border-radius: var(--r-champ); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums }
.solde-entete::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold) }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; font-size: 14px; font-weight: 700; color: #fff; background: var(--forest) }
a.avatar:hover { background: var(--forest-2) }

.burg { display: none; position: relative; min-width: 44px; min-height: 44px; background: none; border: 0; cursor: pointer; padding: 10px }
.burg i { display: block; height: 2px; border-radius: 1px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s }
.burg[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg) }
.burg[aria-expanded="true"] i:nth-child(2) { opacity: 0 }
.burg[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg) }

footer { background: var(--lagon-nuit); color: var(--lagon-pale); padding: 32px 0 24px; font-size: 14px }
.fg { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 28px }
footer h4 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(221,235,231,.7); margin: 0 0 12px; font-family: var(--ui) }
footer ul { list-style: none; margin: 0; padding: 0 }
footer li { margin-bottom: 8px }
footer a:hover { color: #fff; text-decoration: underline }
footer .mark img { height: 48px; filter: brightness(0) invert(1); opacity: .95 }
footer .fg p { margin: 12px 0 0; line-height: 1.6; max-width: 30ch }
.fmark { font-family: var(--disp); font-size: 24px; color: #fff; margin-bottom: 12px }
.fbot { border-top: 1px solid var(--hair-lt); padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(221,235,231,.75) }
.mob-bar { display: none }

@media (max-width: 960px) {
    .burg { display: block }
    .hnav {
        position: fixed; inset: 68px 0 auto; margin: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px var(--gut) 20px; background: var(--bone); border-bottom: 1px solid var(--hair); box-shadow: var(--ombre-flottante);
        visibility: hidden; opacity: 0; transform: translateY(-6px); pointer-events: none;
        transition: visibility 0s linear .2s, opacity .2s var(--sortie), transform .2s var(--sortie);
    }
    .hnav.open { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s }
    .hnav a, .hnav button { min-height: 50px; border-bottom: 1px solid var(--hair); font-size: 16px }
    .hnav a::after { display: none }
    .hnav .seulement-mobile, .hnav .seulement-menu { display: flex }
    .hnav form { display: block }
    .hkit { margin-left: auto }
    .hnav + .hkit { margin-left: auto }
    .hkit .btn { display: none }
    .fg { grid-template-columns: 1fr 1fr }
    .nums { grid-template-columns: 1fr }
}
@media (max-width: 560px) {
    .solde-entete { display: none }
    .fg { grid-template-columns: 1fr }
    .crow { grid-template-columns: 1fr; gap: 2px }
}

/* --- Onglets du membre (téléphone) ------------------------------------- */
.onglets { display: none }
@media (max-width: 860px) {
    .onglets {
        position: fixed; right: 0; bottom: 0; left: 0; z-index: 50;
        display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end;
        padding: 4px 6px env(safe-area-inset-bottom, 0px);
        background: var(--paper); border-top: 1px solid var(--hair);
    }
    .onglets a {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        min-height: 58px; padding: 6px 2px;
        font-size: 11px; font-weight: 600; line-height: 1.2; text-align: center; color: var(--mute);
    }
    .onglets svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round }
    .onglets a[aria-current="page"] { color: var(--forest); font-weight: 700 }
    /* Ma carte : une pastille ronde en relief, au centre de la barre. */
    .onglets a.onglet-carte { color: var(--forest) }
    .onglets a.onglet-carte svg { box-sizing: content-box; width: 24px; height: 24px; padding: 13px; margin-top: -20px; border-radius: 50%; color: #fff; background: var(--forest); box-shadow: var(--ombre-douce) }
    .fonctionnel .onglets a:focus-visible { outline-offset: -4px }
    .fonctionnel:has(.onglets) .page { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)) }
    .fonctionnel:has(main :is(input:not([type=hidden]), select, textarea):focus) .onglets { display: none }
}
@media print { .onglets { display: none } }


/* ==========================================================================
   10. Écran partagé : connexion et inscription
   ========================================================================== */

.ecran-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100svh }
.ep-photo { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--forest); color: #fff }
.ep-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.ep-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,30,28,.35) 0%, rgba(12,30,28,.05) 35%, rgba(12,30,28,.82) 100%) }
.ep-logo { position: absolute; z-index: 1; top: 32px; left: clamp(24px, 3.4vw, 48px); height: 54px; width: auto }
.ep-legende { position: absolute; z-index: 1; left: clamp(24px, 3.4vw, 48px); right: clamp(24px, 3.4vw, 48px); bottom: 40px }
.ep-accroche { max-width: 24ch; margin: 0 0 16px; font-family: var(--disp); font-weight: 700; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.15; color: #fff; text-wrap: balance }
.ep-avantages { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px }
.ep-avantages li { position: relative; padding-left: 26px; font-size: 14px; color: var(--bone-2) }
.ep-avantages li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat }
.ep-hotels { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(243,238,228,.8) }
.ep-contenu { display: flex; align-items: center; padding: 40px clamp(24px, 7vw, 120px) }
.ep-colonne { width: 100%; max-width: 28rem }
.ep-colonne .titre-page { margin-bottom: 20px }
.bascule-connexion { margin-bottom: 20px }

@media (max-width: 860px) {
    .ecran-photo { grid-template-columns: minmax(0, 1fr) }
    .ep-photo { position: relative; height: clamp(200px, 30svh, 280px) }
    .ep-logo { top: 20px; height: 42px }
    .ep-legende { bottom: 18px }
    .ep-accroche { margin: 0; font-size: 22px }
    .ep-avantages, .ep-hotels { display: none }
    .ep-contenu { padding: 24px var(--gut) 40px }
}


/* ==========================================================================
   11. Espace membre
   ========================================================================== */

.espace-membre { padding-bottom: clamp(40px, 6vh, 64px) }
.accueil-bandeau { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(240px, 34vh, 340px); background: var(--forest); color: #fff }
.accueil-bandeau-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60% }
.accueil-bandeau::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,47,46,.82) 0%, rgba(12,47,46,.45) 45%, rgba(12,47,46,0) 75%), linear-gradient(180deg, rgba(12,30,28,.1) 0%, rgba(12,30,28,.25) 45%, rgba(12,30,28,.75) 100%) }
.accueil-bandeau .shell { position: relative; z-index: 1; width: 100%; padding-top: 40px; padding-bottom: clamp(96px, 13vh, 124px) }
.accueil-bandeau .lbl { color: var(--ylang-pale) }
.accueil-bandeau h1 { margin-top: 8px; color: #fff; font-size: clamp(36px, 4.6vw, 58px) }

.accueil-corps { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: start }
.accueil-gauche { margin-top: clamp(-100px, -11vh, -80px); display: grid; gap: 16px }
.accueil-gauche .carte-membre { margin: 0 }
.accueil-droite { padding-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; min-width: 0 }
.accueil-droite > * { min-width: 0 }

/* Palier : surface blanche, barre de progression, avantages. */
.palier { padding: 20px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-carte) }
.palier h2 { display: block; margin-bottom: 2px }
.palier h2.lbl { color: var(--clay) }
.palier-nom { margin: 0 0 12px; font-family: var(--disp); font-weight: 700; font-size: clamp(26px, 3vw, 32px); line-height: 1.1 }
.palier-objectif { margin: 0 0 10px; font-size: 14px; color: var(--ink-2) }
.barre-progression { display: block; height: 6px; margin-bottom: 14px; border-radius: 2px; overflow: hidden; background: var(--hair) }
.barre-progression > span { display: block; height: 100%; width: var(--part, 0%); border-radius: 2px; background: linear-gradient(90deg, var(--lagon-clair), var(--forest)) }
.palier-avantages { margin-bottom: 12px }
.palier-avantages li { font-size: 14px }
.palier-regle { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--mute) }
.palier .renvoi { margin-top: 8px }
.palier + dl .crow:first-of-type { border-top: 0 }
.liste-paliers .numero { font-size: 15px }

/* Raccourcis : tuiles à icône. */

/* Raccourcis en liste (bons, exports). */
.raccourcis { padding: 4px 18px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-carte) }
ul.raccourcis { list-style: none; margin: 0 }
.raccourcis a { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 58px; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 15px; font-weight: 600 }
.raccourcis > :last-child, .raccourcis li:last-child a { border-bottom: 0 }
.raccourcis a::after { content: ""; flex: none; width: 18px; height: 18px; background: var(--mute); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat }
.raccourcis a:hover { color: var(--forest-2) }
.raccourcis .pastille { margin-left: auto }
.bons-liste a > .etiquette { margin-left: auto }

/* Récompenses les plus proches du solde : cartes à photo en retrait. */
.recompenses-proches ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px }
.recompenses-proches li > a { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-carte) }
.recompenses-proches img, .recompenses-proches .recompense-sans-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover }
.rp-texte { flex: 1; display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 14px 14px }
.rp-texte b { font-size: 16px; font-weight: 700; line-height: 1.3 }
.rp-texte small { order: -1; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--mute) }
.rp-texte small::before, .recompense > .lbl::before { content: ""; flex: none; width: 14px; height: 14px; background: var(--clay); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21zm0-9a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21zm0-9a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z'/%3E%3C/svg%3E") center / contain no-repeat }
.rp-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; margin-top: auto; padding-top: 8px }
.rp-points { white-space: nowrap; font-family: var(--disp); font-size: 18px; font-weight: 700; color: var(--forest); font-variant-numeric: lining-nums tabular-nums }

/* Mouvements de points. */
.mouvements-recents { padding: 18px 20px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-carte) }
.mouvements-recents h2 { margin-bottom: 4px }
.historique .solde { margin-bottom: 24px }
.liste-ecritures { list-style: none; margin: 0; padding: 0 }
.liste-ecritures li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--hair) }
.liste-ecritures li:last-child { border-bottom: 0 }
.liste-ecritures li > .ico-motif { grid-row: span 2 }
.liste-ecritures .quand { grid-column: 2; grid-row: 2; font-size: 12px; color: var(--mute); font-variant-numeric: lining-nums tabular-nums }
.liste-ecritures .quoi { grid-column: 2; grid-row: 1 }
.liste-ecritures .quoi b { display: block; font-weight: 700; font-size: 15px }
.liste-ecritures .quoi small { font-size: 12px; color: var(--mute); overflow-wrap: anywhere }
.liste-ecritures .combien { grid-column: 3; grid-row: 1 / span 2; font-size: 15px; font-weight: 700; text-align: right; color: var(--succes); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap }
.liste-ecritures .combien.debit { color: var(--ink) }
.liste-ecritures .annulee .quoi b, .liste-ecritures .annulee .combien { text-decoration: line-through; color: var(--mute) }
.liste-ecritures .annuler { grid-column: 2 / -1 }
.liste-ecritures .annuler form { padding: 6px 0 12px; max-width: 30rem }
.mouvements-recents .liste-ecritures { background: none }
.historique { max-width: 46rem }
.historique .solde { display: inline-flex; flex-direction: column; padding: 16px 22px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-carte) }
.historique .liste-ecritures { padding: 0 18px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-carte) }
/* Liste sans pastille d'icône (personnel) : la date reprend la première colonne. */
.liste-ecritures li:not(:has(> .ico-motif)) { grid-template-columns: 8rem minmax(0, 1fr) auto }
.liste-ecritures li:not(:has(> .ico-motif)) .quand { grid-column: 1; grid-row: 1 / span 2 }
.table-mouvements td.combien { text-align: right; font-weight: 700; color: var(--succes); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums }
.table-mouvements td.combien.debit { color: var(--ink) }
.table-mouvements th:last-child { text-align: right }
.table-mouvements tr.annulee > * { color: var(--mute); text-decoration: line-through }
.table-mouvements .ico-motif { width: 34px; height: 34px }
.table-mouvements .ico-motif svg { width: 18px; height: 18px }
.pagination { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px }
.pagination [rel="next"] { margin-left: auto }

/* Solde de points. */
.solde small { display: block; font-size: 13px; color: var(--mute); margin-bottom: 2px }
.solde b { display: block; font-family: var(--disp); font-weight: 700; font-size: clamp(40px, 4.6vw, 56px); line-height: 1; color: var(--forest); font-variant-numeric: lining-nums tabular-nums }
.solde span { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-2) }
.solde-espace { margin-bottom: 24px }

/* Tableau de bord du membre (ancienne mise en page, gardée pour Blade). */
.tableau { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start }

/* Profil. */
.sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start }
.sections > section { padding: 22px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-carte) }
.sections > section h2 { font-size: clamp(22px, 2vw, 24px); margin-bottom: 14px }
.sections > .pleine-largeur { grid-column: 1 / -1 }
.sections h2 + .prose.petite { margin-top: -6px }
.zone-danger { background: var(--erreur-pale) !important; border-color: transparent !important }
.raccourcis li.appareil { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; min-height: 52px; padding: 8px 0; font-size: 14px }
.raccourcis li.appareil small { color: var(--mute) }
/* Profil : rubriques à gauche, cartes à droite, l'une sous l'autre. */
.profil-cadre { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start }
.profil-cadre .sections { grid-template-columns: minmax(0, 1fr); gap: 16px }
.profil-rubriques { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px }
.profil-rubriques a, .profil-rubriques button { display: flex; align-items: center; min-height: 42px; padding: 0 12px; font-family: var(--ui); font-size: 14px; font-weight: 500; text-align: left; color: var(--ink-2); background: none; border: 1px solid transparent; border-radius: var(--r-champ); cursor: pointer }
.profil-rubriques a:hover, .profil-rubriques button:hover { color: var(--ink); background: var(--paper); border-color: var(--hair) }
.profil-rubriques button { margin-top: 8px; color: var(--forest-2); font-weight: 600 }
@media (max-width: 860px) {
    .profil-cadre { grid-template-columns: minmax(0, 1fr); gap: 16px }
    .profil-rubriques { position: static; flex-direction: row; flex-wrap: wrap }
    .profil-rubriques button { margin-top: 0 }
}
.zone-danger h2 { color: var(--erreur) }

/* Application installable. */
.installer { max-width: 400px; padding: 16px 18px; border: 1px solid var(--hair); border-radius: var(--r-carte); background: var(--paper) }
.installer p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--ink-2) }
.installer b { display: block; margin-bottom: 2px; font-weight: 700; color: var(--ink) }
.installer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px }
.installer [hidden], .installer[hidden], .carte .hors-ligne[hidden] { display: none }

@media (max-width: 860px) {
    .ecran-duo, .tableau, .sections { grid-template-columns: minmax(0, 1fr) }
    .accueil-corps { grid-template-columns: minmax(0, 1fr) }
    .accueil-gauche { margin-top: -72px }
    .accueil-gauche .carte-membre { justify-self: center }
    .accueil-droite { padding-top: 4px }
}
@media (max-width: 560px) {
    .accueil-bandeau { min-height: 220px }
    .recompenses-proches ul { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px }
    .recompenses-proches li { scroll-snap-align: start }
    .liste-ecritures li:not(:has(> .ico-motif)) { grid-template-columns: minmax(0, 1fr) auto }
    .liste-ecritures li:not(:has(> .ico-motif)) .quand { grid-column: 1; grid-row: 2 }
}


/* ==========================================================================
   12. Carte de membre
   --------------------------------------------------------------------------
   Une carte imprimée : logo et palier en tête, houle dorée en filigrane, nom
   et numéro, solde et ancienneté. Trois teintes selon le rang du palier :
   sable (entrée), ylang (intermédiaire), lagon (sommet).
   ========================================================================== */

.carte-membre {
    position: relative; display: flex; flex-direction: column; width: 100%; max-width: 380px; aspect-ratio: 360 / 226;
    padding: 20px 22px; overflow: hidden; border-radius: var(--r-objet); text-align: left; color: var(--ink);
    background: linear-gradient(135deg, #fbf8f2 0%, #ede5d6 100%);
    box-shadow: var(--ombre-flottante), 0 0 0 1px rgba(21,32,28,.06);
}
.cm-intermediaire { background: linear-gradient(135deg, #f5ecd8 0%, #dcc596 100%) }
.cm-sommet { color: #fff; background: linear-gradient(135deg, #1f5b56 0%, #0c2f2e 100%); box-shadow: var(--ombre-flottante) }
.cm-tete { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px }
.cm-marque { display: flex; flex-direction: column; gap: 0 }
.cm-tete img { height: 34px; width: auto; filter: brightness(.55) contrast(1.2) }
.cm-sommet .cm-tete img { filter: brightness(0) invert(1) }
.cm-programme { font-size: 9px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-2) }
.cm-palier { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase }
.cm-sommet .cm-programme { color: var(--lagon-pale) }
.cm-houle { position: absolute; left: 0; right: 0; top: 40%; width: 100%; height: 90px; pointer-events: none }
.cm-houle path { fill: none; stroke: var(--gold); stroke-width: 1; vector-effect: non-scaling-stroke }
.cm-intermediaire .cm-houle path { stroke: #9c7a3a }
.cm-corps { position: relative; z-index: 1; margin-top: auto }
.carte-membre .cm-nom { display: block; margin: 0; font-family: var(--disp); font-weight: 700; font-size: clamp(22px, 5.6vw, 26px); line-height: 1.15 }
.cm-numero { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; letter-spacing: .14em; font-variant-numeric: lining-nums tabular-nums; color: var(--ink-2) }
.cm-sommet .cm-numero { color: var(--lagon-pale) }
.cm-faits { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 12px }
.cm-faits small { display: block; font-size: 12px; color: var(--ink-2) }
.cm-sommet .cm-faits small { color: var(--lagon-pale) }
.cm-faits b { display: block; font-weight: 700; font-size: 14px; line-height: 1.3; font-variant-numeric: lining-nums tabular-nums }
.cm-faits .cm-solde b { font-family: var(--disp); font-weight: 700; font-size: 28px; line-height: 1.05 }
.cm-faits .cm-droite { text-align: right }

/* Dans l'espace membre, la carte mène à sa version plein écran. */
a.carte-membre { transition: box-shadow .2s }
@media (hover: hover) and (pointer: fine) { a.carte-membre:hover { box-shadow: 0 16px 36px -6px rgba(21,32,28,.14), 0 0 0 1px rgba(21,32,28,.06) } }

/* Page carte : carte, puis QR sur fond blanc, quelle que soit la teinte. */
.cm-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; max-width: 380px; padding: 20px; background: #fff; border: 1px solid var(--hair); border-radius: var(--r-carte) }
.carte-membre + .cm-qr { margin-top: 12px }
.cm-qr svg { display: block; width: min(64vw, 40svh, 230px); height: auto }
.cm-qr .numero { font-weight: 700; letter-spacing: .14em }


/* ==========================================================================
   13. Récompenses et bons
   ========================================================================== */

.recompenses-tete { align-items: end; margin-bottom: 24px }
.recompenses-tete .solde { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; padding: 14px 20px; text-align: right; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-carte) }
.recompenses-tete .solde b { font-size: 32px }
.solde b .unite { display: inline; white-space: nowrap; margin: 0 0 0 6px; font-family: var(--ui); font-size: 14px; font-weight: 500; color: var(--ink-2) }
.recompenses-tete .solde .lnk { margin-top: 8px }

/* Catalogue : grille de cartes, photo en retrait, ligne de lieu. */
.catalogue { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 20px }
.recompense { display: flex; flex-direction: column; overflow: hidden; padding: 4px 0 16px }
.recompense > .lbl, .recompense > h2, .recompense > p, .recompense-pied { margin-left: 16px; margin-right: 16px }
.recompense > .lbl { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--mute) }
.recompense h2 { margin-top: 4px; margin-bottom: 6px; font-family: var(--ui); font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: 0 }
.recompense > p { margin-bottom: 12px; font-size: 14px; color: var(--ink-2) }
.recompense-pied { margin-top: auto; padding-top: 10px }
.recompense .cout { margin: 0 0 10px; font-size: 14px; color: var(--ink-2) }
.recompense .cout b { font-family: var(--disp); font-size: 19px; font-weight: 700; color: var(--forest); font-variant-numeric: lining-nums tabular-nums }
.recompense .empechement { margin: 0; display: inline-flex; padding: 4px 9px; font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--attention); background: var(--attention-pale); border-radius: var(--r-champ) }
.recompense.avec-photo { padding-top: 0 }
.recompense-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--bone-2) }
.recompense-sans-photo { background: var(--bone-2) url("../images/tribes-logo.webp") center / 34% auto no-repeat }
.confirmer summary { min-height: 48px }
.confirmer[open] summary { display: none }
.confirmer p, .confirmer form p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--ink) }
.confirmer .lnk { margin-top: 10px }
.apercu-photo { display: block; width: 240px; max-width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 10px; border-radius: var(--r-champ) }

.bon-inactif b, .bon-inactif .numero { color: var(--mute) }

/* Mes bons : cartes à gauche, bon sélectionné en ticket à droite. */
.bons-membre { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 24px; align-items: start }
.bons-cartes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px }
.bon-carte { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 0; overflow: hidden }
.bon-carte.choisi { border-color: var(--forest-2); box-shadow: 0 0 0 1px var(--forest-2) }
.bon-carte > img, .bon-carte > .recompense-sans-photo { width: 140px; height: 112px; object-fit: cover }
.bon-carte-texte { display: flex; flex-direction: column; gap: 2px; padding: 12px 0 }
.bon-carte-texte b { font-size: 16px; font-weight: 700; line-height: 1.3 }
.bon-carte-texte small { font-size: 13px; color: var(--mute) }
.bon-carte-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding: 12px 16px }
.bon-carte-actions .btn { min-height: 38px; padding: 6px 14px; font-size: 14px }
.seulement-telephone { display: none }
.bon-apercu { position: sticky; top: 88px; overflow: hidden; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-objet) }
.bon-apercu > img, .bon-apercu > .recompense-sans-photo { display: block; width: 100%; height: 120px; object-fit: cover }
.bon-apercu-tete { padding: 16px 20px 12px }
.bon-apercu-tete .lbl { display: block }
.bon-apercu-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 20px; border-top: 1.5px dashed var(--sable-3) }
.bon-apercu-qr svg { width: 200px; height: auto }
.bon-apercu-qr .numero { font-weight: 700; letter-spacing: .14em }
.bon-apercu-qr small { font-size: 12px; color: var(--mute) }
.bon-apercu-pied { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px 16px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--mute) }
@media (max-width: 860px) {
    .bons-membre { grid-template-columns: minmax(0, 1fr) }
    .bon-apercu { display: none }
    .seulement-telephone { display: inline-flex }
    .bon-carte { grid-template-columns: 96px minmax(0, 1fr) }
    .bon-carte > img, .bon-carte > .recompense-sans-photo { width: 96px; height: 100%; min-height: 112px }
    .bon-carte-actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; padding-top: 0 }
    .bon-carte-actions .btn { display: none }
}

@media (max-width: 860px) {
    /* Au téléphone, le solde tient sur une ligne : chiffre à gauche, lien à droite. */
    .recompenses-tete .solde { justify-self: stretch; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; text-align: left }
    .recompenses-tete .solde > small, .recompenses-tete .solde > b { grid-column: 1 }
    .recompenses-tete .solde > .lnk { grid-column: 2; grid-row: 1 / span 2; margin: 0 }
}


/* ==========================================================================
   14. Plein écran : carte, bon
   ========================================================================== */

.carte { color-scheme: light; min-height: 100svh; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 16px; padding: clamp(18px, 4vw, 40px); text-align: center; background: var(--lagon-nuit) }
.carte .mark img { height: clamp(32px, 6vh, 44px) }
.carte h1 { font-size: clamp(24px, 5vw, 32px) }
.carte .qr { width: min(72vw, 52svh, 300px) }
.carte .qr svg { width: 100%; height: auto; display: block }
.carte .numero { font-weight: 700; font-size: clamp(16px, 4.4vw, 20px); letter-spacing: .14em; margin: 0 }
.carte .message { text-align: left; margin: 0; max-width: 380px }
.carte .consigne, .carte .lbl.consigne { color: var(--lagon-pale) }
.carte > .carte-identite .lnk, .carte .carte-identite .lnk { color: #fff }
.carte-identite { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; max-width: 380px }
.carte .carte-membre { margin: 0 }
.carte .hors-ligne { max-width: 380px; margin: 0 }
.carte .consigne-bon { margin: 0; font-size: 14px; color: var(--ink-2) }
.carte .message a { text-decoration: underline }

@media print {
    .impression-masquee { display: none !important }
    .carte { min-height: auto; background: #fff }
}
@media (orientation: landscape) and (max-height: 500px) {
    .carte { flex-direction: row; gap: 28px }
    .carte .qr, .cm-qr svg { width: min(36vw, 70svh, 240px) }
}

/* Bon : un ticket, photo ou bandeau lagon en tête, découpe en pointillés. */
.bon-ticket { position: relative; width: min(100%, 380px); border-radius: var(--r-objet); overflow: hidden; background: var(--paper); box-shadow: var(--ombre-flottante) }
.bt-tete { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 22px 20px; color: #fff; background: linear-gradient(135deg, #1f5b56 0%, #0c2f2e 100%) }
.bt-tete img { height: 34px; width: auto }
.bt-lieu { margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ylang-pale) }
.carte .bt-tete h1 { color: #fff; font-size: clamp(22px, 5vw, 28px) }
.bon-ticket .qr { width: min(60vw, 40svh, 230px); margin: 20px auto 16px }
.bt-pied { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 22px 20px; border-top: 1.5px dashed var(--sable-3) }
.bt-pied::before, .bt-pied::after { content: ""; position: absolute; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--lagon-nuit) }
.bt-pied::before { left: -11px }
.bt-pied::after { right: -11px }
.bon-inactif .bt-tete { background: linear-gradient(135deg, #6f6a5d 0%, #5a564b 100%) }
@media (max-height: 820px) {
    .bon-ticket .qr { width: min(56vw, 30svh, 220px); margin: 14px auto 10px }
    .bt-tete { padding: 14px 20px 16px }
}


/* ==========================================================================
   15. Avantages par statut
   ========================================================================== */

.comparatif-cadre { overflow-x: auto; margin: 0 0 16px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-carte); -webkit-overflow-scrolling: touch }
.comparatif { width: 100%; min-width: calc(14rem + var(--statuts, 3) * 7rem); border-collapse: collapse; font-size: 14px; line-height: 1.45 }
.comparatif th, .comparatif td { padding: 13px 16px; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: middle }
.comparatif thead th { font-family: var(--disp); font-weight: 700; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.15; padding-top: 18px; padding-bottom: 16px; background: var(--bone-2) }
.comparatif thead th:nth-of-type(2) { background: var(--ylang-pale) }
.comparatif thead th:last-of-type { background: var(--forest); color: #fff }
.comparatif thead th:last-of-type small { color: var(--lagon-pale) }
.comparatif thead th small { display: block; margin-top: 4px; font-family: var(--ui); font-size: 12px; font-weight: 500; color: var(--mute) }
.comparatif thead td { font-family: var(--disp); font-size: 18px; vertical-align: bottom }
.comparatif tbody th { font-weight: 600; color: var(--ink); min-width: 12rem }
.comparatif tbody th, .comparatif thead td { position: sticky; left: 0; z-index: 1; background: var(--paper) }
.comparatif-regle td { font-weight: 600; font-variant-numeric: lining-nums tabular-nums }
.comparatif-regle td small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-2) }
.comparatif .actuel { background: rgba(243,235,216,.45) }
.comparatif thead .actuel { outline: 1.5px solid var(--gold); outline-offset: -1.5px }
.comparatif .coche { width: 18px; height: 18px; fill: none; stroke: var(--lagon-clair); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle }
.comparatif tbody tr:last-child > * { border-bottom: 0 }
.comparatif-note { max-width: 62ch }
@media (max-width: 560px) {
    .comparatif { table-layout: fixed; min-width: calc(8.5rem + var(--statuts, 3) * 5rem); font-size: 13px }
    .comparatif th, .comparatif td { padding: 11px 8px }
    .comparatif thead td, .comparatif tbody th { width: 8.5rem; min-width: 0 }
    .comparatif thead th { font-size: 18px }
}


/* ==========================================================================
   16. Accueil public et avis (Blade)
   ========================================================================== */

.accueil { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "tete photo" "perks photo"; gap: 0 clamp(28px, 5vw, 72px); align-items: start }
.accueil > .ecran-tete { grid-area: tete }
.accueil > .perks { grid-area: perks }
.accueil-photo { grid-area: photo; width: 100%; height: 100%; min-height: 400px; max-height: 600px; object-fit: cover; border-radius: var(--r-carte) }
@media (max-width: 860px) {
    .accueil { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tete" "photo" "perks" }
    .accueil-photo { height: auto; min-height: 0; aspect-ratio: 4 / 3; margin-top: 24px }
}

.notation { margin-bottom: 20px }
.notation legend small { margin-left: 8px; font-size: 12px; color: var(--mute) }
.notation .aide { display: block; margin-top: 6px; font-size: 13px; color: var(--mute) }
.etoiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px }
.etoiles input { position: absolute; opacity: 0; pointer-events: none }
.etoiles label { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border: 1px solid var(--sable-3); border-radius: var(--r-champ); background: var(--paper); font-size: 15px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background-color .15s, border-color .15s, color .15s }
.etoiles label span { color: var(--gold) }
.etoiles input:checked + label { background: var(--forest); border-color: var(--forest); color: #fff }
.etoiles input:checked + label span { color: var(--ylang-pale) }
.etoiles input:focus-visible + label { outline: 2px solid var(--forest-2); outline-offset: 2px }
.notation.petite .etoiles label { min-height: 44px; font-size: 14px }
.notation.en-erreur .etoiles label { border-color: var(--erreur) }
.partage-avis { margin-top: 24px }
.partage-avis h2 { margin-bottom: 8px }
.partage-avis > p { margin: 0 0 14px }


/* ==========================================================================
   17. Portail captif
   --------------------------------------------------------------------------
   Chemin critique : avant tout accès à Internet. Aucune photo, aucune
   animation, une colonne étroite. La police du système suffit : rien à
   télécharger avant de pouvoir se connecter.
   ========================================================================== */

.fonctionnel.portail { --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --disp: Georgia, "Times New Roman", serif }
.portail { min-height: 100svh; display: flex; flex-direction: column; background: var(--bone) }
.portail-tete { display: flex; align-items: center; gap: 12px; padding: 14px var(--gut); color: #fff; background: var(--forest) }
.portail-tete img { height: 34px; width: auto; filter: brightness(0) invert(1) }
.portail-corps { flex: 1; padding: 24px var(--gut) 32px }
.portail-colonne { width: 100%; max-width: 28rem; margin: 0 auto }
.portail-colonne > .lbl { display: block; margin-bottom: 8px }
.portail-colonne h1 { font-size: clamp(30px, 8vw, 40px) }
.portail-colonne .prose { font-size: 15px; margin-top: 6px; margin-bottom: 20px }
.portail-pied { padding: 14px var(--gut) 20px; text-align: center; font-size: 12px; color: var(--mute) }
.portail .bascule { margin-bottom: 18px }


/* ==========================================================================
   18. Espace du personnel : gabarit à menu latéral
   --------------------------------------------------------------------------
   Menu vert lagon à gauche (poste de travail, rubriques, compte), contenu à
   droite. Sous 1024 px, le menu se replie derrière un bouton dans une barre
   haute, comme sur la tablette du comptoir.
   ========================================================================== */

.personnel-cadre { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100svh }
.menu-personnel { position: sticky; top: 0; height: 100svh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 20px 12px 14px; color: var(--lagon-pale); background: var(--lagon-nuit) }
.menu-personnel .mark { padding: 0 12px 12px }
.menu-personnel .mark img { height: 42px }
.caisse-contexte { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px; margin-bottom: 6px; color: #fff; background: rgba(255,255,255,.08); border-radius: var(--r-champ); line-height: 1.25 }
.caisse-contexte svg { flex: none; width: 20px; height: 20px; color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round }
.caisse-contexte span { display: flex; flex-direction: column; min-width: 0; flex: 1 }
.caisse-contexte b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.caisse-contexte small { font-size: 12px; color: var(--lagon-pale); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
a.caisse-contexte::after { content: "Changer"; flex: none; font-size: 12px; font-weight: 600; color: var(--gold) }
a.caisse-contexte:hover { background: rgba(255,255,255,.12) }

.menu-groupe { display: flex; flex-direction: column; gap: 2px }
.menu-groupe > h2 { padding: 14px 12px 4px; font-family: var(--ui); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lagon-clair) }
.menu-groupe a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; font-size: 14px; font-weight: 500; color: var(--lagon-pale); border-radius: var(--r-champ); transition: background-color .15s, color .15s }
.menu-groupe a svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round }
.menu-groupe a:hover { color: #fff; background: rgba(255,255,255,.06) }
.menu-groupe a[aria-current="page"] { color: #fff; font-weight: 700; background: rgba(255,255,255,.1) }

.menu-compte { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 12px; border-top: 1px solid rgba(255,255,255,.12) }
.menu-compte .avatar { width: 34px; height: 34px; font-size: 12px; color: var(--lagon-nuit); background: var(--gold) }
.menu-compte > span:not(.avatar) { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3 }
.menu-compte b { font-size: 14px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.menu-compte a { font-size: 12px; color: var(--lagon-pale) }
.menu-compte a:hover { color: #fff; text-decoration: underline }
.menu-compte button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: var(--lagon-pale); background: none; border: 0; border-radius: var(--r-champ); cursor: pointer }
.menu-compte button:hover { color: #fff; background: rgba(255,255,255,.08) }
.menu-compte button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round }

.personnel-barre { display: none }
.personnel-principal { min-width: 0 }
.personnel-principal > main > .ecran, .personnel-principal > main > section { padding-left: 0; padding-right: 0 }
.personnel .shell { max-width: 1180px; padding: 0 clamp(20px, 3vw, 40px); margin: 0 }
.personnel .ecran, .ecran.caisse { padding: 28px 0 40px }
.caisse .titre-page { margin-bottom: 20px }
.fonctionnel.personnel :focus-visible { outline-color: var(--gold) }
.personnel main :focus-visible { outline-color: var(--forest-2) }

@media (max-width: 1023px) {
    .personnel-cadre { grid-template-columns: minmax(0, 1fr) }
    .personnel-barre { position: sticky; top: 0; z-index: 90; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 16px; color: #fff; background: var(--lagon-nuit) }
    .personnel-barre .mark img { height: 36px }
    .personnel-barre .burg { margin-left: auto; display: block }
    .personnel-barre .burg i { background: #fff }
    .personnel-barre .caisse-contexte { margin: 0; min-height: 40px; padding: 4px 10px; max-width: 50vw }
    .personnel-barre a.caisse-contexte::after { display: none }
    .menu-personnel { position: fixed; z-index: 95; top: 60px; left: 0; bottom: 0; width: min(300px, 86vw); height: auto; transform: translateX(-100%); visibility: hidden; transition: transform .3s var(--tiroir), visibility 0s linear .3s; box-shadow: var(--ombre-flottante) }
    .menu-personnel.open { transform: none; visibility: visible; transition-delay: 0s }
    .menu-personnel > .mark, .menu-personnel > .caisse-contexte { display: none }
}

/* Choix du poste : une carte par hôtel, avec sa photo. */
.choix-hotels { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 16px }
.choix-hotel { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-align: left; cursor: pointer; border: 1px solid var(--hair); border-radius: var(--r-carte); background: var(--paper); font: inherit; color: inherit; transition: border-color .15s }
.choix-hotel:hover { border-color: var(--forest-2) }
.choix-hotel[aria-current="true"] { border-color: var(--forest-2); box-shadow: 0 0 0 1px var(--forest-2) }
.choix-hotel img, .choix-hotel-vide { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover }
.choix-hotel-vide { background: linear-gradient(135deg, var(--forest-2), var(--lagon-nuit)) }
.choix-hotel-texte { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px }
.choix-hotel-texte b { font-size: 17px; font-weight: 700; line-height: 1.25 }
.choix-hotel-texte small { font-size: 13px; color: var(--mute) }
.choix-etablissement { display: grid; gap: 8px }
.choix-etablissement button { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 56px; padding: 12px 16px; text-align: left; font-family: var(--ui); color: var(--ink); background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-champ); cursor: pointer; transition: border-color .15s, background-color .15s }
.choix-etablissement button:hover { border-color: var(--forest-2) }
.choix-etablissement button[aria-current] { border-color: var(--forest-2); background: var(--lagon-pale) }
.choix-etablissement b { font-weight: 700; font-size: 15px }
.choix-etablissement span { font-size: 13px; color: var(--mute) }

/* Caisse : recherche, résultats, membres servis, journée du poste. */
.caisse-accueil { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 24px; align-items: start }
.caisse-principale { display: grid; gap: 24px; min-width: 0 }
.bloc-recherche { padding: 22px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-carte) }
.bloc-recherche .lbl { display: block }
.bloc-recherche h1 { margin: 4px 0 16px }
.bloc-recherche .champ { margin-bottom: 0 }
.recherche-caisse { max-width: none }
.saisie-bouton { display: flex; gap: 8px }
.saisie-bouton input { flex: 1; min-width: 0 }
.champ .saisie-bouton input { min-height: 56px; font-size: 18px; border-color: var(--forest-2) }
.saisie-bouton .btn { flex: none; min-height: 56px; padding: 0 22px }
.saisie-bouton [data-scanner] { flex: none; min-height: 56px; padding: 0 20px }

.resultats-compte { font-size: 13px; color: var(--mute); margin: 6px 0 8px }
.resultats { list-style: none; margin: 0; padding: 0 }
.resultats-bloc .resultats, .caisse-principale .resultats { padding: 0 18px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-carte) }
.resultats a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: center; min-height: 64px; padding: 12px 0; border-bottom: 1px solid var(--hair) }
.resultats li:last-child a { border-bottom: 0 }
.resultats b { font-weight: 700; font-size: 16px }
.resultats a:hover b { color: var(--forest-2) }
.resultats .contact { grid-column: 1 / -1; font-size: 13px; color: var(--mute); overflow-wrap: anywhere }
.resultats .etiquette { grid-column: 1 / -1; justify-self: start; margin-top: 2px }

.membres-servis ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 10px }
.membres-servis a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 60px; padding: 10px 12px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-carte); transition: border-color .15s }
.membres-servis a:hover { border-color: var(--forest-2) }
.initiales { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 14px; font-weight: 700; color: #fff }
.servi-texte { display: flex; flex-direction: column; min-width: 0 }
.servi-texte b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.servi-texte small { font-size: 12px; color: var(--mute); font-variant-numeric: lining-nums tabular-nums }

.journee-poste { position: sticky; top: 24px; padding: 20px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-carte) }
.journee-poste .lbl { display: block; margin-bottom: 4px }
.journee-poste h2 { margin: 0 0 12px; overflow-wrap: anywhere }
.journee-poste dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hair) }
.journee-poste dt { font-size: 14px; color: var(--ink-2) }
.journee-poste dd { margin: 0; text-align: right }
.journee-poste dd b { display: block; font-family: var(--disp); font-size: 26px; line-height: 1; font-variant-numeric: lining-nums tabular-nums }
.journee-poste dd small { font-size: 12px; color: var(--mute) }
.journee-poste .aide-formulaire { margin: 10px 0 0 }

/* Fiche membre : carte et détails à gauche, crédit à droite. */
.retour { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0 0 18px }
.caisse-membre { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); grid-template-areas: "identite credit" "details credit"; grid-template-rows: auto 1fr; gap: 16px 20px; align-items: start }
.caisse-identite { grid-area: identite }
.caisse-credit { grid-area: credit }
.caisse-details { grid-area: details; overflow-wrap: anywhere; padding: 4px 16px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-carte) }
.caisse-details .crow:last-child { border-bottom: 0 }
.caisse-membre .carte-membre { max-width: none }
.section-tete.titre-page > .actions { margin: 0 }
.caisse-identite h1 { margin: 6px 0 16px; overflow-wrap: anywhere }
.caisse-identite .solde { margin-bottom: 16px }
.caisse-credit h2, .caisse-bon h2 { margin: 0 0 16px }
.champ input.saisie-points { min-height: 56px; font-size: 22px }
.duo.duo-montant { grid-template-columns: minmax(0, 1fr) 7rem }
.choix-service { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: 8px; border: 0; margin: 0 0 18px; padding: 0; min-width: 0 }
.choix-service legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--ink) }
.service { position: relative; display: block; cursor: pointer }
.service input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer }
.service span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 6px 10px; border: 1px solid var(--sable-3); border-radius: var(--r-champ); background: var(--bone); font-size: 14px; font-weight: 600; text-align: center; color: var(--ink-2); transition: background-color .15s, border-color .15s, color .15s }
.service:hover span { border-color: var(--forest-2); color: var(--ink) }
.service input:checked + span { border-color: var(--forest); background: var(--forest); color: #fff }
.service input:focus-visible + span { outline: 2px solid var(--forest-2); outline-offset: 2px }
.service-ajustement span { font-size: 13px; color: var(--mute) }
.champ input.saisie-montant { min-height: 64px; font-family: var(--disp); font-size: 32px; font-weight: 700; border-color: var(--forest-2); font-variant-numeric: lining-nums tabular-nums }
.recap-credit { margin: 0 0 16px; padding: 14px 16px; background: var(--bone); border-radius: var(--r-champ) }
.recap-credit small { display: block; font-size: 13px; color: var(--mute) }
.recap-credit > b { display: block; margin: 4px 0 8px; font-family: var(--disp); font-weight: 700; font-size: clamp(34px, 4vw, 44px); line-height: 1; color: var(--forest); font-variant-numeric: lining-nums tabular-nums }
.recap-credit ul { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.7; color: var(--ink-2) }
.recap-solde { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--hair); font-size: 14px; color: var(--ink-2) }
.recap-solde b { font-weight: 700; font-size: 17px; color: var(--ink) }
.recap-credit[hidden] { display: none }
.ecritures { margin-top: 32px }
.ecritures > h2 { margin-bottom: 12px }
.ecritures .liste-ecritures, .caisse-details .liste-ecritures { padding: 0 18px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-carte) }

.caisse-bon { max-width: 46rem; margin-top: 8px }
.caisse-bon dl { margin-bottom: 18px }
.caisse-bon dd .numero { margin-left: 8px; font-size: 14px; color: var(--mute) }
.annuler-bon { margin-top: 14px; border-top: 1px solid var(--hair) }
.annuler-bon form { padding: 6px 0 4px }

/* Code wifi : lu à voix haute ou recopié par le client. */
.caisse-wifi { max-width: 40rem }
.code-wifi { container-type: inline-size; margin-bottom: 18px; padding: clamp(22px, 4vw, 36px) 12px; text-align: center; color: #fff; background: var(--forest); border-radius: var(--r-carte) }
.code-wifi small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold) }
/* Taille tirée de la largeur du cadre (cqi) et du nombre de caractères (--car) :
   le code tient sur une ligne quelle que soit la place. */
.code-wifi b { display: block; margin: 8px 0; padding-left: .1em; font-family: var(--disp); font-weight: 700; font-size: clamp(34px, 10vw, 64px); font-size: clamp(12px, calc(100cqi / (var(--car, 8) * 1.1)), 64px); line-height: 1.1; letter-spacing: .08em; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap }
.code-wifi span { font-size: 14px; color: var(--lagon-pale) }
/* Écran Bons : saisie à gauche (caméra, code), bon trouvé à droite. */
.ecran-bons .shell { max-width: 1040px }
.bons-haut { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 16px; align-items: stretch }
.camera-bon { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 220px; margin-bottom: 16px; color: var(--gold); background: var(--lagon-nuit); border-radius: var(--r-carte) }
.camera-bon .btn { min-height: 40px; padding: 8px 16px; font-size: 14px }
.bon-trouve { display: flex; flex-direction: column; gap: 14px }
.bon-attente { margin: auto; max-width: 32ch; text-align: center; font-size: 14px; color: var(--mute) }
.bon-trouve-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px }
.bon-trouve-tete h2 { font-family: var(--ui); font-size: 18px; letter-spacing: .06em }
.bon-trouve-objet { display: flex; gap: 16px; align-items: center }
.bon-trouve-objet img, .bon-trouve-objet .recompense-sans-photo { flex: none; width: 128px; height: 96px; object-fit: cover; border-radius: var(--r-champ) }
.bon-trouve-objet .lbl { display: block }
.bon-trouve-objet h3 { margin: 2px 0 4px }
.bon-trouve-objet .prose { margin: 0 }
.bon-trouve .actions { margin-top: 4px }
@media (max-width: 860px) { .bons-haut { grid-template-columns: minmax(0, 1fr) } }

/* Écran Code wifi : réglages à gauche, code à droite, codes en cours dessous. */
.ecran-wifi .shell { max-width: 1040px }
.wifi-haut { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px }
.wifi-reglages .groupe { margin-bottom: 16px }
.bascule.bascule-pleine { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0; margin-bottom: 0; background: none }
.wifi-haut { align-items: stretch }
.bascule.bascule-pleine button { min-height: 44px; border: 1px solid var(--sable-3); border-radius: var(--r-champ); background: var(--bone); color: var(--ink) }
.bascule.bascule-pleine button[aria-pressed="true"] { border-color: var(--forest); background: var(--forest); color: #fff; box-shadow: none }
.wifi-reglages .btn svg { flex: none }
.wifi-haut .code-wifi { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100%; margin: 0; padding: 28px 24px }
.code-wifi .actions { justify-content: center; margin-top: 16px; gap: 10px }
.code-wifi .btn.lt { min-height: 42px; padding: 8px 16px; font-size: 14px }
.code-wifi-attente { max-width: 30ch; margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--lagon-pale) }
.wifi-codes h2 { margin-bottom: 12px; font-family: var(--ui); font-size: 18px; letter-spacing: 0 }
.table-codes thead th { background: var(--bone-2) }
.table-codes td, .table-codes th { vertical-align: middle }
.table-codes .action-details { text-align: right }
@media (max-width: 860px) { .wifi-haut { grid-template-columns: minmax(0, 1fr) } }
@media print {
    .personnel-barre, .menu-personnel { display: none !important }
    .personnel-cadre { display: block }
    .ecran-wifi .wifi-haut { display: block }
    .ecran-wifi .code-wifi { color: #000; background: #fff; border: 2px solid #000 }
    .ecran-wifi .code-wifi small, .ecran-wifi .code-wifi span { color: #000 }
}

/* Ticket wifi, imprimante thermique 80 mm (TicketWifi.tsx) : hors écran,
   imprimé seul. Arial, net à 203 dpi ; teinte de l'hôtel dans --marque. */
.ticket-wifi { position: absolute; top: 0; left: -9999px; box-sizing: border-box; width: 80mm; padding: 3mm 4mm; background: #fff; color: #000; font-family: Arial, Helvetica, sans-serif; line-height: 1.2; -webkit-print-color-adjust: exact; print-color-adjust: exact }
.ticket-wifi p { margin: 0 }
.tw-cadre { display: flex; flex-direction: column; align-items: center; gap: 4mm; padding: 5mm 3mm; border: .4mm solid #000 }
.tw-logo { display: block; width: auto; height: 30mm; max-width: 46mm; object-fit: contain }
.tw-texte { align-self: stretch; text-align: center }
.tw-lieu { font-size: 4.6mm; text-transform: uppercase; overflow-wrap: anywhere }
.tw-etiquette { margin-top: 3.5mm; font-size: 2.8mm; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #555 }
.tw-code { margin-top: .5mm; font-size: 9mm; font-weight: 700; letter-spacing: .05em; color: var(--marque); white-space: nowrap }
.tw-duree { margin-top: 2mm; font-size: 4.2mm; font-style: italic; color: #555 }
.tw-detail { margin-top: .5mm; font-size: 3.2mm; color: #555 }
.tw-message { margin-top: 4mm; font-size: 4.8mm }
@media print {
    body:not(.impression-ticket) .ticket-wifi { display: none }
    body.impression-ticket { margin: 0; padding: 0; background: #fff }
    body.impression-ticket > :not(.ticket-wifi) { display: none !important }
    body.impression-ticket .ticket-wifi { position: static }
}
.codes-recents { margin-top: 28px }
.codes-recents h2 { display: block; margin-bottom: 10px }
.codes-recents ul { list-style: none; margin: 0; padding: 0 18px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-carte) }
.codes-recents li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--hair) }
.codes-recents li:last-child { border-bottom: 0 }
.codes-recents b { font-weight: 700; letter-spacing: .1em }
.codes-recents span { font-size: 13px; color: var(--mute) }

/* Catalogue et équipe. */
.catalogue-tete .btn { margin-top: 16px }
.liste-catalogue, .liste-roles { list-style: none; margin: 0 0 16px; padding: 0 18px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-carte) }
.liste-catalogue .ligne-fixe { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; min-height: 60px; padding: 12px 0; border-bottom: 1px solid var(--hair) }
.liste-catalogue li:last-child .ligne-fixe { border-bottom: 0 }
.liste-roles li { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 58px; padding: 10px 0; border-bottom: 1px solid var(--hair) }
.liste-roles li:last-child { border-bottom: 0 }
.liste-roles b { display: block; font-weight: 700 }
.liste-roles small { font-size: 13px; color: var(--mute) }
.liste-roles form { margin: 0 }
.lien-retrait, .lien-action, .bouton-details { display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; background: none; border: 0; cursor: pointer; font-family: var(--ui); font-size: 13px; font-weight: 700 }
.lien-retrait { color: var(--erreur) }
.lien-action { color: var(--forest-2) }
.lien-retrait:hover, .lien-action:hover { text-decoration: underline }
.code-wifi.mot-de-passe-provisoire { max-width: 34rem; margin-bottom: 28px }
.mot-de-passe-provisoire b { font-size: clamp(22px, 7vw, 36px); letter-spacing: .06em }
.equipe-actions { margin-top: 32px; max-width: 46rem }
.equipe-actions .actions { margin: 0 0 14px }

/* Onglets de rubrique (barème, réglages). */
.portees { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 24px; margin: 0 0 20px; border-bottom: 1px solid var(--hair) }
.portees a { position: relative; display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 6px 0 10px; font-size: 14px; font-weight: 600; color: var(--mute) }
.portees a:hover { color: var(--ink) }
.portees a[aria-current] { color: var(--ink) }
.portees a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--clay) }
.portees small { font-size: 12px; font-weight: 500; color: var(--mute) }
.regles-bareme { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); gap: 14px }
.regle-bareme { margin: 0; padding: 16px 18px 6px; min-width: 0; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-carte) }
.regle-bareme legend { float: left; width: 100%; padding: 0; margin-bottom: 6px; font-family: var(--disp); font-size: 21px; color: var(--ink) }
.regle-bareme legend + * { clear: both }
.regle-actuelle { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--ink-2) }
.regle-actuelle b { font-weight: 700; color: var(--ink) }
.regle-bareme .aide { margin: -6px 0 10px; font-size: 13px; color: var(--mute) }
.form-bareme > .btn { margin-top: 12px }
.liste-etablissements { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 16px }
.liste-etablissements h2 { margin-bottom: 12px }
.points-vente { margin-top: 32px }
.points-vente > .prose { margin-bottom: 16px }
.point-vente { border-bottom: 1px solid var(--hair) }
.point-vente summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-height: 48px; padding: 12px 0 }
.point-vente summary b { font-weight: 700; color: var(--ink) }
.point-vente summary span { font-size: 13px; color: var(--mute) }
.point-vente[data-inactif] summary b { color: var(--mute) }
.point-vente form { padding: 4px 0 16px }
.ajout-point-vente { margin-top: 16px }

/* Scanner le QR. */
dialog.scanner { width: min(92vw, 30rem); max-width: none; padding: 18px; border: 0; border-radius: var(--r-carte); background: var(--paper); color: var(--ink); box-shadow: var(--ombre-flottante) }
dialog.scanner::backdrop { background: rgba(12,30,28,.72) }
.scanner-cadre { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-champ); background: var(--lagon-nuit) }
.scanner-cadre video { width: 100%; height: 100%; object-fit: cover; display: block }
.scanner-viseur { position: absolute; inset: 18%; border: 2px solid var(--gold); border-radius: var(--r-champ); box-shadow: 0 0 0 999px rgba(12,30,28,.35) }
.scanner-statut { margin: 12px 0; font-size: 14px; line-height: 1.55; color: var(--ink-2) }
dialog.scanner .btn { width: 100%; min-height: 48px }

/* Tableau de bord. */
.filtres { display: flex; flex-wrap: wrap; align-items: end; gap: 0 14px; margin-bottom: 20px }
.filtres .champ { flex: 1 1 13rem; max-width: 20rem }
.filtres .btn { min-height: 50px; margin-bottom: 18px }
.filtres-pastilles { align-items: flex-end; gap: 12px 20px }
.filtres-journal .champ { flex: 1 1 10rem; max-width: 16rem }
.pastilles { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px }
.pastilles button { min-height: 38px; padding: 0 14px; font-family: var(--ui); font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--bone-2); border: 0; border-radius: var(--r-champ); cursor: pointer; transition: background-color .15s, color .15s }
.pastilles button:hover { color: var(--ink); background: var(--hair) }
.pastilles button[aria-pressed="true"] { background: var(--forest); color: #fff }
.case-filtre { align-self: end; margin-bottom: 18px }

.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 14px; margin: 0 0 20px }
.chiffres > div { padding: 18px 20px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-carte) }
.chiffres dt { font-size: 13px; color: var(--mute); margin-bottom: 4px }
.chiffres dd { margin: 0 }
.chiffres b { display: block; font-family: var(--disp); font-weight: 700; font-size: clamp(28px, 2.8vw, 34px); line-height: 1.05; font-variant-numeric: lining-nums tabular-nums }
.chiffres span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--ink-2) }
.chiffres b.numero-dossier, .chiffres b.statut-dossier { font-family: var(--ui); font-weight: 700; font-size: clamp(17px, 1.8vw, 20px); letter-spacing: .06em }

.graphiques { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px }
.graphiques-avis { margin-bottom: 20px }
.graphique, .par-etablissement, .exports { padding: 20px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-carte) }
.graphique h2, .par-etablissement h2, .exports h2 { margin-bottom: 14px; font-family: var(--ui); font-size: 18px; font-weight: 700; letter-spacing: 0 }
.graphique-large { grid-column: 1 / -1 }
.graphique .vide { margin: 0; font-size: 14px; color: var(--mute) }
.par-etablissement, .exports { margin-top: 16px }
.exports .raccourcis { max-width: 46rem; margin-bottom: 14px; padding: 0; border: 0 }

.barres { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px }
.barres li { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr) auto; gap: 12px; align-items: center }
.barres li > span:first-child { font-size: 14px; font-weight: 600; overflow-wrap: anywhere }
.barres .barre { display: block; height: 8px; width: var(--part, 0%); min-width: 2px; border-radius: 2px; background: var(--forest-2) }
.barres b { font-weight: 700; font-size: 14px; font-variant-numeric: lining-nums tabular-nums; text-align: right; min-width: 3ch }

.colonnes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: end; height: 220px; border-bottom: 1px solid var(--hair) }
.colonnes li { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px }
.colonnes .colonne { display: block; width: 100%; max-width: 44px; height: var(--part, 0%); min-height: 2px; border-radius: 2px 2px 0 0; background: var(--forest-2) }
.colonnes .valeur { font-size: 12px; font-weight: 600; color: var(--ink-2); font-variant-numeric: lining-nums tabular-nums }
.colonnes .etiquette-mois { font-size: 12px; color: var(--mute); white-space: nowrap }
.colonnes .mois-court { display: none }

.table-chiffres { width: 100%; border-collapse: collapse; font-size: 14px }
.table-chiffres th, .table-chiffres td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--hair); text-align: right; font-weight: 500; font-variant-numeric: lining-nums tabular-nums }
.table-chiffres th:first-child { text-align: left; font-weight: 700; overflow-wrap: anywhere }
.table-chiffres thead th { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); background: var(--bone) }
.table-chiffres tbody tr:last-child > * { border-bottom: 0 }

.evolution { display: inline-flex; align-items: baseline; gap: 5px; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2) }
.evolution span[aria-hidden] { font-size: 10px }
.evolution.hausse { color: var(--succes) }
.evolution.baisse { color: var(--erreur) }
.evolution.neutre { color: var(--mute) }
.chiffres .evolution { display: flex }

@media (max-width: 1100px) {
    .graphiques { grid-template-columns: minmax(0, 1fr) }
    .caisse-accueil { grid-template-columns: minmax(0, 1fr) }
    .journee-poste { position: static }
    .journee-poste dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px }
    .journee-poste dl div { flex-direction: column; align-items: flex-start }
    .journee-poste dd { text-align: left }
}
@media (max-width: 860px) {
    .caisse-membre { grid-template-columns: minmax(0, 1fr); grid-template-areas: "identite" "credit" "details"; grid-template-rows: none }
}
@media (max-width: 560px) {
    .saisie-bouton { flex-direction: column }
    .saisie-bouton .btn, .saisie-bouton [data-scanner] { width: 100% }
    .duo.duo-montant { grid-template-columns: minmax(0, 1fr) 6rem; gap: 0 10px }
    .filtres .champ { max-width: none }
    .filtres .btn { width: 100% }
    .barres li { grid-template-columns: minmax(0, 7rem) minmax(0, 1fr) auto; gap: 10px }
    .colonnes { gap: 3px; height: 180px }
    .colonnes .valeur { font-size: 11px }
    .colonnes .mois-long { display: none }
    .colonnes .mois-court { display: inline }
    .trio { grid-template-columns: 1fr 1fr }
    .trio .champ:first-child { grid-column: 1 / -1 }
    .table-empilable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }
    .table-empilable tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--hair) }
    .table-empilable th, .table-empilable td { display: flex; justify-content: space-between; gap: 16px; border: 0; padding: 4px 0 }
    .table-empilable td::before { content: attr(data-libelle); color: var(--mute); text-align: left }
}

/* Journal d'audit et dossier membre. */
.journal { list-style: none; margin: 0; padding: 0 }
.journal li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 4px 20px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--hair) }
.journal .quand { font-size: 13px; color: var(--mute); font-variant-numeric: lining-nums tabular-nums }
.journal .quoi b { display: block; font-weight: 700 }
.journal .quoi small { font-size: 13px; color: var(--mute); overflow-wrap: anywhere }
.journal .quoi a { color: var(--forest-2); font-weight: 600 }
.details-audit { grid-column: 2 }
.details-audit summary { display: flex; align-items: center; min-height: 40px; font-size: 13px; font-weight: 700; color: var(--forest-2) }
.details-audit summary::after { content: "+"; margin-left: 8px; font-size: 16px }
.details-audit[open] summary::after { content: "−" }
.details-audit .crow { padding: 8px 0; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) }
.details-audit dd { font-size: 14px; overflow-wrap: anywhere }

.defile-journal { overflow-x: auto; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-carte) }
.table-journal { width: 100%; border-collapse: collapse; font-size: 14px }
.table-journal th, .table-journal td { padding: 12px 14px; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; font-weight: 500 }
.table-journal thead th { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); background: var(--bone); white-space: nowrap }
.table-journal tbody tr:hover > * { background: var(--bone) }
.table-journal tbody tr:last-child > * { border-bottom: 0 }
.table-journal .quand { white-space: nowrap; color: var(--mute); font-variant-numeric: lining-nums tabular-nums }
.table-journal tbody th { min-width: 13rem; font-weight: 700 }
.table-journal .ip { font-variant-numeric: lining-nums tabular-nums; color: var(--mute); white-space: nowrap }
.table-journal td:nth-child(3), .table-journal td:nth-child(4) { overflow-wrap: anywhere }
.table-journal .action-details { text-align: right; width: 1%; white-space: nowrap }
.table-journal tr.deplie > * { border-bottom-color: transparent }
.bouton-details { margin: -10px 0; color: var(--forest-2) }
.bouton-details::after { content: "+"; margin-left: 8px; font-size: 16px }
.bouton-details[aria-expanded="true"]::after { content: "−" }
.ligne-details[hidden] { display: none }
.ligne-details td { padding: 0 14px 16px }
.avant-apres { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 12px }
.avant-apres small { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; color: var(--mute) }
.avant-apres pre { margin: 0; padding: 12px 14px; overflow-x: auto; background: var(--bone); border-radius: var(--r-champ); font-size: 12.5px; line-height: 1.55 }
@media (max-width: 700px) {
    .table-journal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }
    .table-journal tr { display: block; padding: 8px 14px; border-bottom: 1px solid var(--hair) }
    .table-journal tbody tr:hover > * { background: none }
    .table-journal th, .table-journal td { display: flex; justify-content: space-between; gap: 16px; border: 0; padding: 4px 0; text-align: right }
    .table-journal td::before, .table-journal th::before { content: attr(data-libelle); flex: none; color: var(--mute); font-size: 12px; text-align: left }
    .table-journal tbody th { min-width: 0 }
    .table-journal .action-details { width: auto; justify-content: flex-start }
    .table-journal .ligne-details td { display: block; padding: 0 0 8px }
    .table-journal .ligne-details td::before { content: none }
}
.liste-dossier { list-style: none; margin: 0; padding: 0 18px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-carte) }
.liste-dossier li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--hair) }
.liste-dossier li:last-child { border-bottom: 0 }
.liste-dossier b { display: block; font-weight: 700 }
.liste-dossier small { font-size: 13px; color: var(--mute); overflow-wrap: anywhere }
.liste-dossier .quand { font-size: 13px; color: var(--mute); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap }
@media (max-width: 560px) {
    .journal li { grid-template-columns: minmax(0, 1fr) }
    .details-audit { grid-column: 1 }
    .details-audit .crow { grid-template-columns: minmax(0, 1fr) }
}

/* Avis clients. */
.liste-avis { list-style: none; margin: 0; padding: 0 20px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-carte) }
.liste-avis > li { padding: 18px 0; border-bottom: 1px solid var(--hair) }
.liste-avis > li:last-child { border-bottom: 0 }
.avis-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px }
.avis-note { font-size: 16px; letter-spacing: .06em; color: var(--gold) }
.avis-note .etoiles-vides { color: var(--hair) }
.avis-source { font-size: 13px; color: var(--mute) }
.avis-auteur { margin: 6px 0 0; font-size: 13px; color: var(--mute) }
.avis-auteur b { font-weight: 700; color: var(--ink) }
.avis-texte { margin: 8px 0 0; font-size: 15px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere }
.avis-criteres { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; font-size: 13px; color: var(--ink-2) }
.avis-reponse { margin: 12px 0 0; padding: 10px 14px; background: var(--bone); border-radius: var(--r-champ) }
.avis-reponse small { font-size: 12px; font-weight: 700; color: var(--mute) }
.avis-reponse p { margin: 4px 0 0; font-size: 14px; line-height: 1.6; white-space: pre-line; color: var(--ink-2) }
.avis-reponse .message { margin-top: 8px }
.avis-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 20px; margin-top: 6px }
.avis-actions .repondre { flex: 1 1 22rem; max-width: 40rem }
.avis-actions .repondre summary { color: var(--forest-2); font-weight: 700 }
.avis-actions .repondre form { padding: 6px 0 4px }
.moderation { display: flex; gap: 0 14px }
.avis-rejete .avis-texte, .avis-rejete .avis-note { opacity: .5 }

/* Carte à tableau : barre d'outils (filtres en pastilles, recherche), tableau. */
.tableau-carte { padding: 0; overflow: hidden }
.tableau-carte .table-journal thead th, .tableau-carte .table-chiffres thead th { background: var(--bone-2) }
.barre-outils { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 12px 16px; border-bottom: 1px solid var(--hair) }
.barre-outils .pastilles { margin: 0 }
.barre-outils-champs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px }
.barre-outils-champs input, .barre-outils-champs select { min-height: 38px; padding: 0 10px; font-family: var(--ui); font-size: 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--sable-3); border-radius: var(--r-champ) }
.barre-outils-champs input[type=search] { width: 15rem }
.barre-outils-champs .btn { min-height: 38px; padding: 6px 14px; font-size: 14px }
.vide-tableau { padding: 16px }
.section-tete.titre-page > .btn { flex: none }
.miniature { flex: none; width: 56px; height: 42px; object-fit: cover; border-radius: 3px; background: var(--bone-2) }
.cellule-objet { display: flex; align-items: center; gap: 12px }

/* Pastilles en liens (portée du barème). */
.pastilles a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--bone-2); border-radius: var(--r-champ) }
.pastilles a:hover { background: var(--hair); color: var(--ink) }
.pastilles a.actif { background: var(--forest); color: #fff }

/* Réglages : barème en tableau, annexes, paliers en cartes. */
.ecran-reglages .portees { margin-bottom: 18px }
.ecran-reglages .message.info { margin-bottom: 14px }
.table-bareme input { width: 100%; max-width: 8rem; min-height: 38px; padding: 0 10px; font-family: var(--ui); font-size: 15px; font-weight: 600; color: var(--ink); background: var(--paper); border: 1px solid var(--sable-3); border-radius: var(--r-champ) }
.table-bareme input:focus { outline: none; border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(31,91,86,.14) }
.table-bareme td, .table-bareme th { vertical-align: middle }
.table-bareme .erreur-champ { display: block; margin-top: 4px; font-size: 13px; color: var(--erreur) }
.form-bareme .tableau-carte { margin-bottom: 16px }
.reglages-annexes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 16px; margin-bottom: 16px }
.cartes-paliers { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 16px }
.carte-palier { display: flex; flex-direction: column; gap: 12px }
.carte-palier .btn { align-self: flex-start; min-height: 40px; padding: 8px 16px; font-size: 14px }
.carte-palier-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-champ); background: var(--bone-2) }
.rang-1 .carte-palier-tete { background: var(--ylang-pale) }
.rang-2 .carte-palier-tete { background: var(--lagon-pale) }
.carte-palier-tete h2 { font-size: 22px }
.carte-palier-tete b { font-size: 17px; color: var(--forest) }
.carte-palier .crow { grid-template-columns: minmax(0, 7rem) 1fr; padding: 8px 0 }
.carte-palier .crow:first-child { border-top: 0 }
.statut-entree { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 14px; max-width: 46rem; margin-bottom: 16px }
.statut-entree .champ { flex: 1 1 18rem; margin-bottom: 0 }

/* Écran Avis : moyenne et répartition, puis liste compacte. */
.ecran-avis .section-tete .pastilles { margin: 0 }
.avis-haut { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 16px; margin-bottom: 16px }
.avis-moyenne { display: flex; flex-direction: column; justify-content: center; gap: 2px }
.avis-moyenne small { font-size: 13px; color: var(--mute) }
.avis-moyenne b { font-family: var(--disp); font-size: 44px; line-height: 1.1; color: var(--forest) }
.avis-moyenne b span { font-size: 22px; color: var(--mute) }
.avis-repartition .barres li { grid-template-columns: 3rem minmax(0, 1fr) 3ch }
.avis-repartition .note-3 .barre { background: var(--gold) }
.avis-repartition .note-2 .barre, .avis-repartition .note-1 .barre { background: var(--clay) }
.liste-avis > li.avis { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: start }
.avis-initiale { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-weight: 700; color: var(--ink-2); background: var(--bone-2) }
.avis-tete b { font-size: 15px }
.avis-corps .avis-texte { margin-top: 4px }
.avis-repondre { margin-top: 10px }
.avis-repondre .actions { margin-top: 0 }
@media (max-width: 720px) {
    .avis-haut { grid-template-columns: minmax(0, 1fr) }
    .liste-avis > li.avis { grid-template-columns: 40px minmax(0, 1fr) }
    .liste-avis > li.avis > .etiquette { grid-column: 2; justify-self: start }
}

/* Vitrine : image d'accueil à gauche, photos des hôtels à droite. */
.champ-fichier label.btn { display: inline-flex; min-height: 40px; margin: 0; padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--forest) }
.champ.champ-fichier { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 }
.champ-fichier .aide, .champ-fichier .erreur-champ { flex-basis: 100%; margin: 0 }
.vitrine-haut { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start }
.vitrine-accueil, .vitrine-hotels { display: flex; flex-direction: column; gap: 12px }
.vitrine-hotels ul { list-style: none; margin: 0; padding: 0 }
.vitrine-hotels li { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--hair) }
.vitrine-hotels .champ-fichier .aide { display: none }
.vitrine-vignette { width: 120px; height: 80px; object-fit: cover; border-radius: var(--r-champ); background: var(--bone-2) }
.vitrine-hotels h3 { font-family: var(--ui); font-size: 15px; font-weight: 700 }
.vitrine-hotels .aide { margin: 2px 0 0; font-size: 13px; color: var(--mute) }
@media (max-width: 960px) { .vitrine-haut { grid-template-columns: minmax(0, 1fr) } }

/* Vitrine de l'application membre. */
.vitrine-bloc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: center; margin: 20px 0 8px; padding: 20px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-carte) }
.vitrine-texte h3 { font-family: var(--ui); font-size: 16px; font-weight: 700; margin-bottom: 4px }
.vitrine-texte .champ { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px }
.vitrine-texte .champ .aide, .vitrine-texte .champ .erreur-champ { flex-basis: 100% }
.vitrine-image { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-champ); background: var(--hair) }
.vitrine-image.large { aspect-ratio: 16 / 9 }
.vitrine-image.vide { display: grid; place-items: center; background: linear-gradient(135deg, var(--forest-2), var(--lagon-nuit)); color: var(--lagon-pale); font-family: var(--disp); font-size: 20px; text-align: center; padding: 16px }
.vitrine-titre { margin: 28px 0 12px }
.vitrine-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px }
.vitrine-hotel { display: flex; flex-direction: column; gap: 12px; padding: 10px 10px 16px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-carte) }
.vitrine-hotel .vitrine-texte { padding: 0 6px }
.vitrine-note { margin-top: 24px }
@media (max-width: 720px) { .vitrine-bloc { grid-template-columns: 1fr } .vitrine-bloc .vitrine-image { order: -1 } }


/* ==========================================================================
   19. Chargement et mouvement
   ========================================================================== */

.squelette { padding-block: clamp(28px, 5vh, 48px) }
.squelette.forme-liste, .squelette.forme-tuiles, .squelette.forme-carte { padding-block: 0 20px }
.sq { display: block; height: 12px; border-radius: 3px; background: linear-gradient(90deg, #ede6d9 25%, #f6f2ea 45%, #ede6d9 65%); background-size: 300% 100%; animation: luire 1.6s linear infinite }
@keyframes luire { from { background-position: 100% 0 } to { background-position: 0 0 } }
.sq-surtitre { width: 9rem; margin-bottom: 14px }
.sq-titre { height: clamp(30px, 3.6vw, 44px); width: min(28rem, 70%); margin-bottom: 24px }
.sq-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr)); gap: 14px; margin-bottom: 20px }
.sq-tuile { height: 112px; border-radius: var(--r-carte) }
.sq-liste { display: grid; padding: 4px 18px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-carte) }
.sq-rangee { display: grid; grid-template-columns: 40px minmax(0, 1fr) 4rem; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--hair) }
.sq-rangee:last-child { border-bottom: 0 }
.sq-pastille { width: 40px; height: 40px; border-radius: 50% }
.sq-texte { display: grid; gap: 8px }
.sq-fin { width: 30%; height: 9px }
.sq-valeur { height: 16px }
.sq-deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 48px); align-items: start }
.sq-bloc { height: 220px; border-radius: var(--r-carte) }
.sq-carte { width: 100%; max-width: 380px; aspect-ratio: 360 / 226; height: auto; border-radius: var(--r-objet); margin-bottom: 20px }
.carte .sq-carte { margin: 0 auto }
@media (max-width: 860px) { .sq-deux { grid-template-columns: minmax(0, 1fr) } }

/* Courbes communes. --sortie : arrivée franche qui se pose en douceur ;
   --tiroir : menus et panneaux qui coulissent. --sortie-douce reste pour
   les gestes lents (photo qui se pose, barre qui se remplit). */
:root {
    --sortie: cubic-bezier(.23, 1, .32, 1);
    --tiroir: cubic-bezier(.32, .72, 0, 1);
    --sortie-douce: cubic-bezier(.22, .61, .36, 1);
}

@keyframes arrivee { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
@keyframes fondu { from { opacity: 0 } to { opacity: 1 } }
.fonctionnel .ecran-tete, .fonctionnel .titre-page { animation: arrivee .32s var(--sortie) both }
/* Le personnel navigue toute la journée : ses titres s'affichent d'emblée. */
.personnel-cadre .ecran-tete, .personnel-cadre .titre-page { animation: none }

/* Mouvement discret : les blocs arrivent en fondu (léger glissement,
   décalé de 50 ms, quatre rangs au plus, comme sur Android et iOS), la
   photo d'en-tête se pose, la barre de palier se remplit, un reflet
   traverse la carte une seule fois. Au survol (souris seulement), les
   tuiles se soulèvent de deux pixels. Tout s'efface avec
   prefers-reduced-motion. */
@keyframes poser { from { transform: scale(1.04) } to { transform: none } }
@keyframes remplir { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes reflet { from { transform: translateX(-120%) skewX(-18deg) } to { transform: translateX(320%) skewX(-18deg) } }
.accueil-bandeau-image { animation: poser 1.4s var(--sortie-douce) both }
.accueil-bandeau .shell > * { animation: arrivee .38s var(--sortie) both }
.accueil-bandeau .shell > :nth-child(2) { animation-delay: .05s }
.accueil-gauche > *, .accueil-droite > * { animation: arrivee .38s var(--sortie) both }
.accueil-gauche > :nth-child(2), .accueil-droite > :nth-child(2) { animation-delay: .05s }
.accueil-gauche > :nth-child(3) { animation-delay: .1s }
.recompenses-proches li, .catalogue > li, .bons-cartes > li { animation: arrivee .38s var(--sortie) both; animation-delay: calc(min(var(--i, 0), 4) * 50ms) }
.bons-cartes { animation: fondu .15s ease-out }
.barre-progression > span { transform-origin: left center; animation: remplir .9s var(--sortie-douce) .2s both }
.carte-membre::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 34%; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.28), rgba(255,255,255,0)); transform: translateX(-120%) skewX(-18deg); animation: reflet 1.4s var(--sortie-douce) .5s 1 both }
a.carte-membre, .recompenses-proches li > a, .recompense { transition: transform .25s var(--sortie), box-shadow .25s var(--sortie), border-color .2s }
.recompenses-proches img, .recompense-photo { transition: transform .6s var(--sortie-douce) }
/* Au doigt, un survol reste « collé » après le toucher : réservé à la souris. */
@media (hover: hover) and (pointer: fine) {
    a.carte-membre:hover { transform: translateY(-2px) }
    .recompenses-proches li > a:hover, .recompense:hover { transform: translateY(-2px); border-color: var(--sable-3, #d3c8b5); box-shadow: 0 14px 28px -14px rgba(18,63,61,.28) }
    .recompenses-proches li > a:hover img, .recompense:hover .recompense-photo { transform: scale(1.03) }
}
.btn { transition: background-color .15s, border-color .15s, color .15s, transform .16s var(--sortie) }
.btn:active:not(:disabled) { transform: scale(.97) }
/* Un bon choisi s'enfonce à peine, pour confirmer le geste. */
.bon-carte { transition: border-color .15s, box-shadow .15s, transform .16s var(--sortie) }
.bon-carte:active { transform: scale(.99) }

.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--sortie), transform .5s var(--sortie) }
.js .rv.in { opacity: 1; transform: none }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto }
    /* Les délais aussi : sinon un bloc reste invisible, puis surgit. */
    .fonctionnel *, .fonctionnel *::before, .fonctionnel *::after {
        animation-duration: .01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }
    .js .rv { opacity: 1; transform: none; transition: none }
    .carte-membre::after { display: none }
    a.carte-membre:hover, .recompenses-proches li > a:hover, .recompense:hover, .recompenses-proches li > a:hover img, .recompense:hover .recompense-photo { transform: none }
}


/* ==========================================================================
   20. Direction « Lagon » (novembre 2026)
   --------------------------------------------------------------------------
   Maquettes Figma « Tribes Rewards · Direction Lagon ». Le lagon devient la
   couleur maîtresse, le sable reste la lumière de fond, l'or est réservé aux
   paliers et la terre cuite à une seule action par écran. Grandes photos,
   informations posées en pastilles sur l'image, arrondis généreux, ombres
   légères teintées de lagon. Les valeurs sont dans le bloc .fonctionnel (§3).
   ========================================================================== */

/* Formes : pastilles rondes, bascule et étiquettes. */
.etiquette, .solde-entete { border-radius: 999px }
.bascule button, .bascule label { border-radius: 9px }
.barre-progression, .barre-progression > span { border-radius: 999px }

/* Carte de membre : une seule teinte lagon, houle dorée ; le palier se lit
   dans une pastille (sable, ylang ou or selon le rang). */
.carte-membre, .cm-intermediaire, .cm-sommet {
    color: #fff;
    background: radial-gradient(120% 90% at 100% 0%, rgba(111,179,168,.22) 0%, rgba(111,179,168,0) 55%), linear-gradient(140deg, #0f4a47 0%, #0b302f 100%);
    box-shadow: var(--ombre-flottante);
}
.carte-membre .cm-tete img { filter: brightness(0) invert(1); opacity: .95 }
.carte-membre .cm-programme, .carte-membre .cm-numero, .carte-membre .cm-faits small { color: #a9cfc7 }
.carte-membre .cm-houle path, .cm-intermediaire .cm-houle path { stroke: var(--gold) }
.carte-membre .cm-palier { padding: 5px 11px; border-radius: 999px; font-size: 10px; letter-spacing: .14em; color: var(--ink); background: var(--bone) }
.cm-intermediaire .cm-palier { background: var(--ylang-pale) }
.cm-sommet .cm-palier { color: #fff; background: var(--gold) }
.carte-membre .cm-nom { font-weight: 500 }
.carte-membre .cm-faits .cm-solde b { font-weight: 500; font-size: 30px }
@media (hover: hover) and (pointer: fine) { a.carte-membre:hover { box-shadow: 0 22px 48px -10px rgba(11,48,47,.28) } }

/* Bandeau d'accueil : titre plus léger, surtitre lagon clair. */
.accueil-bandeau h1 { font-weight: 500 }
.accueil-bandeau .lbl { color: #a9cfc7 }

/* Palier : fond ylang, jauge dorée. */
.palier { background: var(--ylang-pale); border-color: transparent }
.palier h2.lbl { color: var(--attention) }
.palier-nom { font-weight: 500 }
.palier .barre-progression { background: var(--paper) }
.palier .barre-progression > span { background: linear-gradient(90deg, #d2b77d, var(--gold)) }
.palier-regle { border-top-color: rgba(154,101,20,.18) }

/* Tuiles de récompense : photo pleine largeur, lieu en pastille de verre
   posée sur l'image, prix en chiffres fins. */
.recompenses-proches li > a, .recompense { position: relative; border-color: var(--hair); box-shadow: var(--ombre-douce) }
.rp-texte small, .recompense.avec-photo > .lbl {
    position: absolute; top: 12px; left: 12px; z-index: 1; margin: 0; max-width: calc(100% - 24px);
    padding: 5px 10px 5px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--forest);
    background: rgba(255,252,247,.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.rp-texte small::before, .recompense > .lbl::before { background: var(--forest) }
.rp-texte { gap: 6px; padding: 14px 16px 16px }
.rp-points, .recompense .cout b { font-weight: 500; font-size: 22px }
.rp-pied .etiquette.attention { color: var(--clay); background: var(--corail-pale) }
.recompense.avec-photo h2 { margin-top: 14px }
.recompense .empechement { border-radius: 999px; color: var(--clay); background: var(--corail-pale) }

/* Solde en tête du catalogue : bloc lagon. */
.recompenses-tete .solde { color: #fff; background: var(--forest); border-color: transparent; box-shadow: var(--ombre-douce) }
.recompenses-tete .solde small { color: #a9cfc7 }
.recompenses-tete .solde b { color: #fff; font-weight: 500 }
.recompenses-tete .solde b .unite { color: #a9cfc7 }
.recompenses-tete .solde .lnk { color: #fff }

/* Listes et cartes blanches : ombre douce plutôt que filet seul. */
.mouvements-recents, .palier, .sections > section, .historique .liste-ecritures, .bon-carte, .bon-apercu { box-shadow: var(--ombre-douce) }

/* Nos hôtels, en bas de l'accueil : grandes photos, lieu en pastille. */
.nos-hotels { margin-top: clamp(40px, 6vh, 64px) }
.nos-hotels ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px }
.nos-hotels li { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r-carte); background: var(--forest) }
.nos-hotels img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.nos-hotels li::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, rgba(11,48,47,0) 0%, rgba(11,48,47,.9) 100%) }
.nos-hotels b { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; font-family: var(--disp); font-size: clamp(22px, 2.2vw, 26px); font-weight: 500; line-height: 1.15; color: #fff }
@media (max-width: 860px) {
    .nos-hotels ul { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px }
    .nos-hotels li { scroll-snap-align: start }
}

/* Barre d'onglets (téléphone) : translucide, le contenu glisse dessous. */
@media (max-width: 860px) {
    .onglets { background: rgba(255,252,247,.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px) }
    .onglets a.onglet-carte svg { box-shadow: var(--ombre-flottante) }
}
@media (prefers-reduced-transparency: reduce) {
    .onglets, .rp-texte small, .recompense.avec-photo > .lbl { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper) }
}

/* Plein écran : la carte lagon se détache du fond nuit par un liseré. */
.carte .carte-membre { box-shadow: 0 0 0 1px rgba(111,179,168,.35), var(--ombre-flottante) }

/* Messages : panneau doux à filet fin, sans trait latéral (qui se courbait
   avec les nouveaux arrondis). */
.message { border-left: 0; border-radius: var(--r-champ); box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 22%, transparent) }

/* Grands écrans : le contenu s'élargit avec la fenêtre (82 % de la largeur,
   1760 px au plus) au lieu de rester une colonne de 1312 px au milieu d'un
   écran de 2560 px. Le personnel, qui restait collé au menu à 1180 px, est
   centré dans sa zone et s'élargit de même. */
@media (min-width: 1600px) {
    .fonctionnel .shell { max-width: min(82vw, 1760px) }
    .personnel .shell { max-width: min(100%, 1640px); margin: 0 auto }
    .ecran-bons .shell, .ecran-wifi .shell { max-width: 1280px }
    .historique { margin-inline: auto; max-width: 52rem }
    .accueil-corps { grid-template-columns: minmax(0, 420px) minmax(0, 1fr) }
    .accueil-gauche .carte-membre { max-width: none }
}

/* Catalogue : les cartes se partagent toute la largeur au lieu de laisser
   des colonnes vides à droite quand il y a peu de récompenses. */
.catalogue { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)) }

/* --------------------------------------------------------------------------
   Passe du 5 novembre 2026 : plus près de la maquette Lagon
   -------------------------------------------------------------------------- */

/* Titres de l'espace membre en Cormorant régulier, comme la maquette ; les
   grands titres se resserrent à peine (le romain s'écarte en grandissant).
   Le personnel garde ses titres plus appuyés, lus en un coup d'œil. */
.page:not(.personnel-cadre) :is(.h-xl, .h-lg, .h-md, .h-sm) { font-weight: 500 }
.page:not(.personnel-cadre) :is(.h-xl, .h-lg) { letter-spacing: -.01em }

/* Surfaces du navigateur aux couleurs du lagon. */
.fonctionnel ::selection { background: var(--lagon-pale); color: var(--forest) }
.fonctionnel { accent-color: var(--forest) }
.fonctionnel :is(input, textarea) { caret-color: var(--forest) }

/* Bandeau : la vue aérienne, l'objectif du palier sous le salut, le lieu
   en pastille dans le coin. */
.accueil-objectif { margin: 10px 0 0; max-width: 46ch; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.86) }
.pastille-lieu { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1.3; color: #fff; background: rgba(11,48,47,.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px) }
.pastille-lieu svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round }
.accueil-lieu { position: absolute; z-index: 1; right: var(--gut); bottom: 18px }
@media (max-width: 860px) { .accueil-lieu { display: none } }
@media (min-width: 1600px) { .accueil-lieu { right: max(var(--gut), calc((100vw - min(82vw, 1760px)) / 2 + var(--gut))) } }

/* Palier en bref : nom et seuil suivant sur une ligne, jauge, avantages en
   une phrase, cumul et lien en pied. */
.palier-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px }
.palier .palier-nom { margin: 0; font-size: clamp(24px, 2.6vw, 28px); color: var(--ink) }
.palier-suivant { font-size: 14px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums }
.palier .barre-progression { height: 5px; margin-bottom: 12px }
.palier .palier-avantages { margin: 0 }
.palier .palier-avantages li { display: inline; padding: 0; margin: 0; font-size: 14px; color: var(--ink-2) }
.palier .palier-avantages li::before { content: none }
.palier .palier-avantages li + li::before { content: " · "; position: static; display: inline; width: auto; height: auto; background: none; -webkit-mask: none; mask: none; color: var(--mute) }
.palier .palier-regle { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-top: 14px; font-size: 13px; font-variant-numeric: lining-nums tabular-nums }
.palier .palier-regle .lnk { font-size: 14px }

/* Raccourcis ronds cerclés d'or. Le rond s'enfonce dès l'appui et se
   colore au survol (souris seulement). */
.accueil-raccourcis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 34rem }
.accueil-raccourcis a { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 4px 0; font-size: 13px; font-weight: 500; line-height: 1.25; text-align: center; color: var(--ink-2); -webkit-tap-highlight-color: transparent }
.raccourci-rond { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: var(--forest); background: var(--paper); box-shadow: inset 0 0 0 1px rgba(179,152,95,.7); transition: transform .16s var(--sortie), background-color .2s, box-shadow .2s }
.raccourci-rond svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round }
.accueil-raccourcis a:active .raccourci-rond { transform: scale(.94); transition-duration: .08s }
.accueil-raccourcis a:focus-visible { outline: none }
.accueil-raccourcis a:focus-visible .raccourci-rond { outline: 2px solid var(--forest-2); outline-offset: 3px }
@media (hover: hover) and (pointer: fine) {
    .accueil-raccourcis a:hover { color: var(--forest) }
    .accueil-raccourcis a:hover .raccourci-rond { background: var(--ylang-pale); box-shadow: inset 0 0 0 1px var(--gold) }
}
@media (max-width: 860px) { .accueil-raccourcis { max-width: none } }

/* Tuiles de l'accueil (des liens) : au doigt comme à la souris, la tuile
   s'enfonce à l'appui. */
.recompenses-proches li > a:active { transform: scale(.985); transition-duration: .08s }

/* Mouvements : deux lignes, le lieu et la date courte ensemble. */
.liste-ecritures li:not(:has(> .quand)) > .quoi { grid-row: 1 / span 2 }
.liste-ecritures .quoi small { display: block; margin-top: 1px }
.liste-ecritures .quoi time { white-space: nowrap; font-variant-numeric: lining-nums tabular-nums }
.mouvements-recents .liste-ecritures li { padding: 13px 0 }

/* Logo de l'application (LogoRewards.tsx) : le mot « tribes » du logo de la
   chaîne et « REWARDS » centré dessous, à la place de « TRAVEL COLLECTION ».
   --logo règle la hauteur du mot ; les capitales suivent sans passer sous
   9 px. Taupe du logo sur fond clair, blanc sur le lagon. */
.logo-rewards { --logo: 34px; display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: #807c69 }
.fonctionnel .logo-rewards img, .mark .logo-rewards img { display: block; height: var(--logo); width: auto }
.logo-rewards > span { margin-top: calc(var(--logo) * .06); padding-left: .36em; font-family: var(--ui); font-size: max(9px, calc(var(--logo) * .17)); font-weight: 600; letter-spacing: .36em; text-transform: uppercase }
.mark .logo-rewards { --logo: 34px }
/* Sur le lagon (carte de membre) et sur la photo (connexion) : en blanc. */
.carte-membre .logo-rewards, .ep-logo.logo-rewards { color: #a9cfc7 }
.carte-membre .logo-rewards img, .ep-logo.logo-rewards img { filter: brightness(0) invert(1); opacity: .95 }
.carte-membre .logo-rewards { --logo: 30px; align-self: flex-start }
.ep-logo.logo-rewards { --logo: 44px; height: auto; color: rgba(255,255,255,.86) }
@media (max-width: 860px) { .ep-logo.logo-rewards { --logo: 34px } }
