/* Séjour au ski, direction « Plan des pistes ».
   Un monde illustré : ciel pêche, montagne en aplats, neige crème.
   L'interface reprend la signalétique d'une station : panneaux blancs à bord encre,
   flèches jaunes pour les titres, balises rondes pour les jours, couleurs des pistes pour les créneaux. */

/* Police hébergée avec le site : Josefin Sans, licence libre OFL (voir polices/OFL.txt).
   Un fichier à graisse variable par jeu de caractères. */
@font-face {
  font-family: "Josefin Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/polices/josefin-sans-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Josefin Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/polices/josefin-sans-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;
}

:root {
  --police: "Josefin Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --neige: #fffdf6;
  --blanc: #ffffff;
  --encre: #1d2a44;
  --encre-2: #51607d;
  --bord: #c9d2e3;
  --bord-fort: #97a5bf;
  --jaune: #f2b632;
  --jaune-pale: #fdf1cf;
  --ciel-bas: #cfe3ee;

  --vert: #23864b;
  --vert-fonce: #17663a;
  --bleu: #2b6cc4;
  --bleu-fonce: #1f4f93;
  --rouge: #d93a2b;
  --rouge-fonce: #9d2418;
  --noir: #1a1a1a;

  --ombre-panneau: 0 2px 0 rgba(29, 42, 68, 0.24);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-tiroir: cubic-bezier(0.32, 0.72, 0, 1);

  color-scheme: light;
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ciel-bas); color: var(--encre); font: 400 16px/1.45 var(--police); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
strong { font-weight: 700; }
.lecteur-seul { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icone { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* L'app tient dans une colonne de la largeur d'un téléphone, même sur grand écran. */
.app { position: relative; max-width: 480px; min-height: 100dvh; margin: 0 auto; background: var(--neige); box-shadow: 0 0 0 1px rgba(29, 42, 68, 0.08), 0 0 60px rgba(29, 42, 68, 0.14); }

.bandeau-maquette { display: flex; align-items: center; justify-content: space-between; min-height: 32px; padding: 2px 14px 0; background: var(--encre); color: #e9e4d6; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.bandeau-maquette button { min-height: 32px; padding: 0 2px; border: 0; background: none; color: var(--jaune); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

/* Décor et titre posé sur le ciel */

.decor { position: relative; }
.scene { display: block; width: 100%; height: auto; }
.titre { position: absolute; top: 16px; left: 16px; max-width: 58%; }
.titre h1 { font-size: 25px; font-weight: 700; line-height: 1; letter-spacing: 0.07em; text-transform: uppercase; }
.titre h1:focus { outline: none; }
.titre span { display: block; margin-top: 5px; font-size: 12px; font-weight: 600; line-height: 1.3; letter-spacing: 0.12em; text-transform: uppercase; }
.puce-moi { position: absolute; top: 13px; right: 14px; display: inline-flex; align-items: center; gap: 3px; max-width: 38%; min-height: 44px; padding: 3px 7px 0 12px; background: var(--blanc); border: 1.5px solid var(--encre); border-radius: 8px; box-shadow: var(--ombre-panneau); font-size: 14px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; transition: transform 0.1s var(--ease-out), box-shadow 0.1s; }
.puce-moi span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.puce-moi .icone { width: 17px; height: 17px; margin-top: -3px; }
.puce-moi:active { transform: translateY(2px); box-shadow: none; }

.piste { fill: none; stroke-width: 5; stroke-linecap: round; transition: stroke-width 0.25s var(--ease-out), opacity 0.25s; }
.piste-vert { stroke: var(--vert); }
.piste-bleu { stroke: var(--bleu); }
.piste-rouge { stroke: var(--rouge); }
.piste-noir { stroke: var(--noir); }
.scene.a-une-active .piste:not(.est-active) { opacity: 0.4; }
.piste.est-active { stroke-width: 7.5; }
.scene.is-entering .piste { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 0.75s var(--ease-out) both; animation-delay: calc(var(--i) * 130ms + 120ms); }
@keyframes trace { to { stroke-dashoffset: 0; } }

/* Contenu posé sur la neige */

.contenu { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px 16px calc(98px + env(safe-area-inset-bottom)); }
body[data-ecran="entree"] .contenu { padding-bottom: 44px; }
#vue.vue-entre .contenu { animation: vue-entre 0.22s var(--ease-out); }
@keyframes vue-entre { from { opacity: 0; transform: translateY(6px); } }

.fleche { justify-self: start; display: inline-block; padding: 8px 27px 4px 12px; background: var(--jaune); font-size: 16px; font-weight: 700; line-height: 1.15; letter-spacing: 0.12em; text-transform: uppercase; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
.aide { color: var(--encre-2); font-size: 15px; }
.panneau { background: var(--blanc); border: 1.5px solid var(--encre); border-radius: 8px; box-shadow: var(--ombre-panneau); }

.disque { display: grid; place-items: center; flex: none; width: 26px; height: 26px; padding-top: 3px; border-radius: 50%; color: #fff; font-size: 14px; font-weight: 700; line-height: 1; }
.disque .icone { width: 15px; height: 15px; margin-top: -3px; stroke-width: 3; }
.disque.vert { background: var(--vert); }
.disque.bleu { background: var(--bleu); }
.disque.rouge { background: var(--rouge); }
.disque.noir { background: var(--noir); }
.disque.vide { border: 2px dashed var(--bord-fort); }
.disque.doute { border: 2px dashed var(--bleu); color: var(--bleu); }

/* Boutons */

.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 4px 14px 1px; background: var(--blanc); border: 1.5px solid var(--encre); border-radius: 8px; box-shadow: var(--ombre-panneau); font-size: 13.5px; font-weight: 700; letter-spacing: 0.08em; text-align: center; text-transform: uppercase; transition: transform 0.1s var(--ease-out), box-shadow 0.1s, background-color 0.18s, border-color 0.18s; }
.bouton:active:not(:disabled) { transform: translateY(2px); box-shadow: none; }
.bouton:disabled { opacity: 0.45; cursor: default; }
.bouton.principal { min-height: 50px; background: var(--rouge); border-color: var(--rouge-fonce); color: #fff; font-size: 15px; box-shadow: 0 3px 0 var(--rouge-fonce); }
.bouton.principal:active:not(:disabled) { box-shadow: 0 1px 0 var(--rouge-fonce); }
.bouton.large { width: 100%; }
.bouton.est-valide, .bouton.est-valide:disabled { background: var(--vert); border-color: var(--vert-fonce); box-shadow: 0 3px 0 var(--vert-fonce); color: #fff; opacity: 1; }
.bouton .icone { margin-top: -3px; }
.bouton .icone.coche { stroke-width: 3; }
.bouton .icone.coche path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: coche 0.44s var(--ease-out) 0.05s forwards; }
@keyframes coche { to { stroke-dashoffset: 0; } }
.roue { width: 16px; height: 16px; margin-top: -3px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: tourne 0.7s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.bouton-icone { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: none; }

/* Liste des personnes */

.panneaux { display: grid; gap: 6px; }
.ligne-personne { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 6px 12px; text-align: left; transition: transform 0.1s var(--ease-out), box-shadow 0.1s; }
.ligne-personne:active { transform: translateY(2px); box-shadow: none; }
.ligne-nom { padding-top: 3px; font-size: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ligne-statut { margin-left: auto; padding-top: 2px; color: var(--encre-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.ligne-personne.est-moi { background: var(--jaune-pale); border-width: 2.5px; }

.ajout-zone { display: grid; justify-items: start; gap: 10px; }
.ajout { display: grid; gap: 6px; width: 100%; }
.ajout label { font-size: 13.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ajout-ligne { display: flex; gap: 8px; }
.ajout input { flex: 1; min-width: 0; min-height: 50px; padding: 4px 12px 0; background: var(--blanc); border: 1.5px solid var(--encre); border-radius: 8px; font-size: 17px; }
.ajout input:focus-visible { outline-offset: 0; }
.ajout input.secousse { animation: secousse 0.42s; border-color: var(--rouge); }
@keyframes secousse { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.message-erreur { color: var(--rouge-fonce); font-size: 14.5px; font-weight: 600; }

/* Mes jours */

.barre-pinceau { position: sticky; top: 0; z-index: 10; margin: -14px -16px 0; padding: 12px 16px 8px; background: var(--neige); border-bottom: 1.5px solid var(--encre); }
.barre-etat { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--encre-2); font-size: 14.5px; }
.sauvegarde { color: var(--vert-fonce); font-weight: 700; opacity: 0; transition: opacity 0.25s; }
.sauvegarde.est-visible { opacity: 1; }

.segments { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; overflow: hidden; background: var(--blanc); border: 1.5px solid var(--encre); border-radius: 8px; box-shadow: var(--ombre-panneau); }
.segment { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 3px 4px 0; border: 0; background: none; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; transition: background-color 0.16s; }
.segment + .segment { border-left: 1.5px solid var(--encre); }
.segment[aria-checked="true"] { background: var(--jaune); }
.exemple { flex: none; width: 18px; height: 18px; margin-top: -3px; border: 1.5px solid var(--bord-fort); border-radius: 50%; background: var(--blanc); }
.exemple.oui { border: 2px solid var(--vert-fonce); background: var(--vert); box-shadow: inset 0 0 0 1.5px #fff; }
.exemple.peut { border: 2px dashed var(--bleu); }

.raccourcis { display: flex; flex-wrap: wrap; gap: 8px; }
.raccourcis .bouton { font-size: 12.5px; }
.calendrier { display: grid; gap: 22px; margin-top: 6px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.mois { display: grid; }
.semaine-entete, .grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); justify-items: center; }
.semaine-entete { margin: 10px 0 5px; color: var(--encre-2); font-size: 12px; font-weight: 700; }
.grille { row-gap: 5px; }
.jour { width: min(44px, 100%); aspect-ratio: 1; padding: 4px 0 0; border: 1.5px solid var(--bord); border-radius: 50%; background: var(--blanc); font: 600 15.5px/1 var(--police); font-variant-numeric: tabular-nums; transition: transform 0.1s var(--ease-out), background-color 0.12s, border-color 0.12s, color 0.12s; }
.jour.est-weekend { border-color: var(--encre-2); }
.jour:active:not(:disabled) { transform: scale(0.9); }
.jour.est-oui { border: 2px solid var(--vert-fonce); background: var(--vert); color: #fff; font-weight: 700; box-shadow: inset 0 0 0 2px #fff; }
.jour.est-peut { border: 2px dashed var(--bleu); color: var(--bleu); font-weight: 700; }
.jour.est-aujourdhui { outline: 2px solid var(--jaune); outline-offset: 2px; }
.jour:disabled { border-color: transparent; background: none; color: var(--encre-2); opacity: 0.4; cursor: default; }
.jour.vient-de-changer { animation: touche 0.2s var(--ease-out); }
@keyframes touche { from { transform: scale(0.82); } }
.case { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--encre-2); font-size: 15px; }
.case input { flex: none; width: 20px; height: 20px; accent-color: var(--encre); }
.case:has(input:disabled) { opacity: 0.5; }

/* Le groupe : panneaux d'arrivée au pied des pistes, puis classement */

.arrivees { position: absolute; left: 8px; right: 8px; bottom: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; align-items: end; }
.arrivee { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 46px; padding: 4px 5px 3px 6px; background: var(--blanc); border: 1.5px solid var(--encre); border-radius: 7px; box-shadow: var(--ombre-panneau); text-align: left; transition: transform 0.16s var(--ease-out), background-color 0.16s; }
.arrivee.est-active { background: var(--jaune-pale); transform: translateY(-4px); box-shadow: 0 4px 0 rgba(29, 42, 68, 0.24); }
.arrivee-texte { display: grid; min-width: 0; line-height: 1.15; }
.arrivee-texte b { font-size: 12.5px; font-weight: 700; }
.arrivee-texte i { font-size: 12.5px; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.texte-vert { color: var(--vert-fonce); }
.texte-bleu { color: var(--bleu-fonce); }
.texte-rouge { color: var(--rouge-fonce); }
.texte-noir { color: var(--noir); }

.creneaux { display: grid; gap: 7px; }
.creneau { overflow: hidden; }
.creneau.est-ouvert { border-width: 2.5px; }
.creneau-tete { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px 8px; border: 0; background: none; text-align: left; }
.creneau-dates { display: grid; flex: 1; min-width: 0; }
.creneau-titre { padding-top: 3px; font-size: 17px; font-weight: 700; line-height: 1.2; letter-spacing: 0.04em; text-transform: uppercase; }
.creneau-sous { color: var(--encre-2); font-size: 13.5px; }
.creneau-score { flex: none; font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.creneau-score strong { margin-right: 3px; font-size: 24px; }
.creneau-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.28s var(--ease-out); }
.creneau.est-ouvert .creneau-detail { grid-template-rows: 1fr; }
.creneau-detail-fond { min-height: 0; overflow: hidden; }
.creneau-detail-contenu { display: grid; gap: 7px; padding: 11px 12px 13px; border-top: 1.5px dashed var(--bord-fort); font-size: 15px; }
.detail-ligne { display: grid; grid-template-columns: 112px 1fr; gap: 8px; }
.detail-cle { color: var(--encre-2); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; padding-top: 4px; }
.creneau-detail-contenu .bouton { margin-top: 5px; }
.etiquette { display: inline-block; margin-left: 8px; padding: 4px 7px 1px; background: var(--jaune); border-radius: 4px; font-size: 12px; letter-spacing: 0.08em; vertical-align: 2px; }
.etat-vide { display: grid; gap: 10px; justify-items: start; padding: 16px 14px; }
.etat-vide p { color: var(--encre-2); }
.note-reponses { color: var(--encre-2); }
.note-reponses strong { color: var(--encre); }

/* Présence */

.retenu { display: grid; gap: 4px; justify-items: start; padding: 14px 14px 12px; }
.retenu-etiquette { color: var(--encre-2); font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.retenu-dates { font-size: clamp(26px, 8.2vw, 36px); font-weight: 700; line-height: 1.05; letter-spacing: 0.03em; text-transform: uppercase; }
.retenu-sous { color: var(--encre-2); }
.retenu-note { margin-top: 8px; color: var(--encre-2); font-size: 14px; }
.retenu .bouton { margin-top: 4px; }
.reponse { display: grid; gap: 12px; }
.choix-liste { display: grid; gap: 6px; margin-top: 12px; }
.choix { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 4px 12px 2px; cursor: pointer; font-size: 15px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; transition: background-color 0.16s, transform 0.1s var(--ease-out); }
.choix input { position: absolute; opacity: 0; pointer-events: none; }
.choix .disque { opacity: 0.35; transition: opacity 0.16s, transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1); }
.choix span:last-child { padding-top: 3px; }
.choix:has(input:checked) { background: var(--jaune-pale); border-width: 2.5px; }
.choix:has(input:checked) .disque { opacity: 1; transform: scale(1.12); }
.choix:has(input:focus-visible) { outline: 3px solid var(--bleu); outline-offset: 2px; }
.resume { color: var(--encre-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.liste-reponses { padding: 2px 12px; }
.liste-reponses li { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.liste-reponses li + li { border-top: 1.5px dashed var(--bord); }
.liste-reponses .disque { width: 22px; height: 22px; }
.liste-reponses .disque .icone { width: 13px; height: 13px; }
.lr-nom { padding-top: 3px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.lr-reponse { margin-left: auto; padding-top: 2px; color: var(--encre-2); font-size: 14px; }

/* Onglets */

.onglets { position: fixed; left: 50%; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; max-width: 480px; padding-bottom: env(safe-area-inset-bottom); transform: translateX(-50%); background: var(--blanc); border-top: 1.5px solid var(--encre); }
body[data-ecran="entree"] .onglets { display: none; }
.onglet { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 60px; padding-top: 7px; border: 0; background: none; color: var(--encre-2); font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.onglet-rond { display: grid; place-items: center; width: 44px; height: 28px; border-radius: 14px; transition: background-color 0.18s, transform 0.18s var(--ease-out); }
.onglet .icone { width: 21px; height: 21px; }
.onglet[aria-current="page"] { color: var(--encre); }
.onglet[aria-current="page"] .onglet-rond { background: var(--jaune); }
.onglet:active .onglet-rond { transform: scale(0.92); }
.onglet-signal { position: absolute; top: 5px; left: calc(50% + 12px); width: 11px; height: 11px; border: 2px solid var(--blanc); border-radius: 50%; background: var(--rouge); }

/* Feuille (dialogue) */

.feuille { position: fixed; inset: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; overflow: hidden; border: 0; background: transparent; color: var(--encre); transition: background-color 0.26s; }
.feuille[open] { display: flex; align-items: flex-end; justify-content: center; }
.feuille::backdrop { background: transparent; }
.feuille.est-ouverte { background: rgba(29, 42, 68, 0.5); }
.feuille-panneau { width: 100%; max-width: 480px; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px calc(22px + env(safe-area-inset-bottom)); background: var(--neige); border-top: 1.5px solid var(--encre); border-radius: 14px 14px 0 0; transform: translateY(100%); transition: transform 0.34s var(--ease-tiroir); }
.feuille.est-ouverte .feuille-panneau { transform: none; }
.feuille-tete { position: sticky; top: -4px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 -16px 10px; padding: 12px 8px 6px 16px; background: var(--neige); }
.feuille-corps { display: grid; gap: 14px; }
.interrupteur { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 8px 12px 6px; cursor: pointer; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 14px; }
.interrupteur small { display: block; margin-top: 2px; color: var(--encre-2); font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.interrupteur input { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 48px; height: 28px; margin: 0; border: 1.5px solid var(--encre); border-radius: 14px; background: var(--bord); transition: background-color 0.2s; }
.interrupteur input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 21px; height: 21px; border: 1.5px solid var(--encre); border-radius: 50%; background: var(--blanc); transition: transform 0.26s cubic-bezier(0.34, 1.4, 0.64, 1); }
.interrupteur input:checked { background: var(--vert); }
.interrupteur input:checked::after { transform: translateX(20px); }

/* Organisation */

a.bouton { color: var(--encre); text-decoration: none; }
.sauvegarde.est-erreur { color: var(--rouge-fonce); }
.bouton.petit { padding: 3px 11px 0; font-size: 12px; }
.bouton.danger { background: var(--rouge); border-color: var(--rouge-fonce); color: #fff; }
.bloc-orga { display: grid; gap: 10px; padding: 12px; }
.bloc-titre { font-size: 13.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dates label { display: grid; gap: 4px; min-width: 0; color: var(--encre-2); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.dates input { width: 100%; min-width: 0; min-height: 46px; padding: 4px 8px 0; background: var(--blanc); border: 1.5px solid var(--encre); border-radius: 8px; color: var(--encre); font: 600 15px var(--police); }
.liste-retrait li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; }
.liste-retrait li + li { border-top: 1.5px dashed var(--bord); }

/* Message bref */

.toast { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; gap: 14px; width: max-content; max-width: min(448px, calc(100vw - 32px)); padding: 11px 14px 8px; border-radius: 8px; background: var(--encre); color: var(--neige); font-size: 15px; box-shadow: 0 6px 20px rgba(29, 42, 68, 0.3); opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity 0.2s, transform 0.2s var(--ease-out); }
.toast.est-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.toast button { min-height: 44px; margin: -11px 0 -8px; padding: 2px 4px 0; border: 0; background: none; color: var(--jaune); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; }

/* Grand écran : deux panneaux posés sur le ciel. À gauche l'affiche (la montagne), qui reste en place ;
   à droite les onglets puis le contenu. */

@media (min-width: 900px) {
  body { background: linear-gradient(180deg, #f6cf9d 0%, #f9e2c4 34%, #cfe3ee 100%) fixed; }
  .app { display: grid; grid-template-columns: minmax(360px, 440px) minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: 0 28px; align-items: start; max-width: 1180px; min-height: 0; padding: 28px 28px 56px; background: none; box-shadow: none; }
  .bandeau-maquette { grid-column: 1 / -1; margin-bottom: 18px; border-radius: 8px; }
  #vue { display: contents; }

  .decor { grid-column: 1; grid-row: 2 / span 2; position: sticky; top: 24px; overflow: hidden; background: var(--neige); border: 1.5px solid var(--encre); border-radius: 12px; box-shadow: 0 4px 0 rgba(29, 42, 68, 0.22); }
  .titre { top: 20px; left: 20px; }
  .titre h1 { font-size: 28px; }
  .puce-moi { top: 16px; right: 16px; }

  .onglets { grid-column: 2; grid-row: 2; position: static; max-width: none; margin-bottom: 16px; padding-bottom: 0; overflow: hidden; transform: none; border: 1.5px solid var(--encre); border-radius: 8px; box-shadow: var(--ombre-panneau); }
  .onglet { flex-direction: row; justify-content: center; gap: 7px; min-height: 50px; padding-top: 3px; font-size: 13.5px; transition: background-color 0.16s; }
  .onglet + .onglet { border-left: 1.5px solid var(--encre); }
  .onglet-rond { width: auto; height: auto; margin-top: -3px; }
  .onglet[aria-current="page"] { background: var(--jaune); }
  .onglet[aria-current="page"] .onglet-rond { background: none; }
  .onglet-signal { position: static; margin-top: -3px; border-color: transparent; }

  .contenu { grid-column: 2; grid-row: 3; gap: 14px; padding: 24px 26px 30px; background: var(--neige); border: 1.5px solid var(--encre); border-radius: 12px; box-shadow: 0 4px 0 rgba(29, 42, 68, 0.22); }
  body[data-ecran="entree"] .contenu { grid-row: 2 / span 2; padding-bottom: 30px; }
  .contenu > .panneaux { grid-template-columns: 1fr 1fr; gap: 8px; }
  .contenu > .panneaux .ligne-statut { font-size: 13.5px; white-space: nowrap; }
  .contenu > .panneaux .ligne-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .contenu > .aide { font-size: 16px; }

  .barre-pinceau { display: flex; align-items: center; gap: 18px; margin: -24px -26px 0; padding: 16px 26px 12px; border-radius: 11px 11px 0 0; }
  .barre-pinceau .segments { flex: none; width: 380px; }
  .barre-etat { flex: 1; margin-top: 0; }
  .calendrier { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 30px; }

  .creneau-titre { font-size: 18px; }
  .retenu { padding: 18px 18px 16px; }
  .retenu-dates { font-size: 40px; }
  .choix-liste { grid-template-columns: repeat(3, 1fr); }
  .choix { min-height: 58px; padding-inline: 10px; gap: 9px; font-size: 13.5px; }
  .reponse .bouton.large { justify-self: start; width: auto; min-width: 280px; }
  .liste-reponses { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .liste-reponses li + li { border-top: 0; }
  .liste-reponses li { border-bottom: 1.5px dashed var(--bord); }

  .feuille[open] { align-items: center; }
  .feuille-panneau { padding-bottom: 22px; border: 1.5px solid var(--encre); border-radius: 12px; opacity: 0; transform: translateY(10px) scale(0.98); transition: transform 0.2s var(--ease-out), opacity 0.2s; }
  .feuille.est-ouverte .feuille-panneau { opacity: 1; }
  .toast { bottom: 28px; }
}

@media (hover: hover) and (pointer: fine) {
  .ligne-personne:hover, .creneau-tete:hover, .arrivee:hover { background: var(--jaune-pale); }
  .jour:hover:not(:disabled):not(.est-oui) { border-color: var(--encre); }
  .onglet:hover { color: var(--encre); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .roue { animation-duration: 1.2s !important; animation-iteration-count: infinite !important; }
}
