@font-face { font-family: Montserrat; font-weight: 400; font-display: swap; src: url(/fonts/montserrat-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: Montserrat; font-weight: 500; font-display: swap; src: url(/fonts/montserrat-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: Montserrat; font-weight: 600; font-display: swap; src: url(/fonts/montserrat-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: Montserrat; font-weight: 700; font-display: swap; src: url(/fonts/montserrat-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: Montserrat; font-weight: 400 700; font-display: swap; src: url(/fonts/montserrat-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bodoni Moda'; font-weight: 600; font-display: swap; src: url(/fonts/bodoni-moda-latin-600-normal.woff2) format('woff2'); }


:root {
  --fond: #0F1012; --surface: #1A1C1F; --surface2: #23262A; --ligne: #2E3135;
  --texte: #F4EFE7; --doux: #A9A49C; --pale: #C9C4BC;
  /* Le rouge du Domaine (maison-limagne.fr) */
  --rouge: #E52127; --rouge-fond: #2A1416; --rouge-clair: #FF8A8D;
  --creme: #F8F1E7; --gris: #9A958E; --tiret: #8A857E;
  /* Le chef de boutique : un jaune pâle, bien distinct du crème des assistants (demande d'Agathe, 4 novembre 2026) */
  --jaune: #F3D46A;
  --alerte: #FFFFFF; --alerte-fond: #2C2D30;
  --vert: #5FB37A;
  --rayon: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--fond); color: var(--texte); font-family: Montserrat, system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
body { min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--texte); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--creme); outline-offset: 2px; }

.page { max-width: 560px; margin: 0 auto; padding: calc(12px + env(safe-area-inset-top)) 16px calc(110px + env(safe-area-inset-bottom)); }
.page.large { max-width: 1320px; }
.entete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.roue { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ligne); background: var(--surface); font-size: 22px; display: inline-flex; align-items: center; justify-content: center; }
.logo { display: block; height: 56px; width: auto; }
.page.centre .logo { margin: 24px auto 8px; height: 88px; }
.onglets { display: flex; gap: 6px; overflow-x: auto; margin: 12px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
.onglets::-webkit-scrollbar { display: none; }
.onglet { flex: none; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ligne); background: var(--surface); color: var(--pale); font-size: 14px; font-weight: 600; white-space: nowrap; }
.onglet.actif { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.date-nav { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 6px; gap: 8px; }
.date-nav h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.4px; }
.date-nav .sous { color: var(--doux); font-size: 13px; }
.fleche { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--ligne); background: var(--surface); font-size: 20px; }
.puce { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ligne); background: var(--surface); color: var(--pale); font-size: 13px; font-weight: 600; white-space: nowrap; }
.puce.active { background: var(--creme); color: #111214; border-color: var(--creme); }

/* Les pastilles : prénom et nom en entier, couleur pleine selon le statut. */
.pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.pastille { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 2px solid transparent; font-size: 14px; font-weight: 600; line-height: 1.2; text-align: left; }
button.pastille { cursor: pointer; }
.pastille.chef { background: var(--jaune); border-color: var(--jaune); color: #16171A; }
.pastille.boucher { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.pastille.assistant { background: var(--creme); border-color: var(--creme); color: #16171A; }
.pastille.vendeur { background: var(--gris); border-color: var(--gris); color: #111214; }
.pastille.a_definir { background: transparent; border: 2px dashed var(--tiret); color: var(--texte); }
.pastille.attenue { opacity: .62; }
.pastille .emo { font-size: 16px; }
.pastille .apres { font-weight: 500; font-size: 12px; opacity: .85; }
.pastille.mini { min-height: 26px; padding: 3px 10px; font-size: 11.5px; }
.legende { display: grid; gap: 10px; justify-items: center; margin: 20px 0 22px; padding: 14px 12px; border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.ligne-legende { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; font-size: 12.5px; color: var(--pale); }
.ligne-legende.emojis { gap: 6px 18px; }

/* Les points font la taille des émojis voisins (13 px de police, environ 14 px dessinés) : demande du 4 novembre 2026. */
.pt { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex: none; }
.pt.chef { background: var(--jaune); }
.pt.boucher { background: var(--rouge); }
.pt.assistant { background: var(--creme); }
.pt.vendeur { background: var(--gris); }
.pt.a_definir { border: 2px dashed var(--tiret); }

.alerte { display: block; width: 100%; text-align: left; background: var(--alerte-fond); border: 2px solid var(--alerte); border-radius: var(--rayon); padding: 12px 14px; margin: 10px 0 12px; }
.alerte summary { cursor: pointer; list-style: none; }
.alerte summary::-webkit-details-marker { display: none; }
.alerte strong { color: var(--alerte); }
.alerte ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ligne-alerte { width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--ligne); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; color: var(--pale); line-height: 1.4; }
.ligne-alerte b { color: var(--texte); }
.item-alerte { display: flex; gap: 8px; align-items: stretch; }
.item-alerte .ligne-alerte { flex: 1; }
.item-alerte .puce { height: auto; min-height: 44px; flex: none; }
.puce.regle { background: var(--creme); color: #111214; border-color: var(--creme); }
.item-alerte.reglee .ligne-alerte { opacity: .6; }
.ligne-alerte .par { color: var(--doux); }
details.deja { margin-top: 10px; }
details.deja summary { cursor: pointer; }
details.deja.seule { margin: 8px 0 12px; }
.periode { display: grid; gap: 0; }
.periode .deux { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.periode .deux input, .periode .deux select { min-height: 48px; border-radius: 12px; border: 1px solid var(--ligne); background: var(--surface2); padding: 0 10px; font-size: 15px; width: 100%; }

.grille { display: grid; grid-template-columns: minmax(96px, 1.1fr) 1fr 1fr; gap: 8px; align-items: stretch; }
.grille .tete { font-size: 12px; color: var(--doux); font-weight: 600; padding: 0 2px; }
.nom-bout { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 0 0 2px; background: none; border: 0; text-align: left; color: var(--texte); }
.nom-bout b { font-size: 15px; }
.nom-bout small { font-size: 12px; color: var(--doux); }
.case { min-height: 66px; border-radius: 14px; border: 1px solid var(--ligne); background: var(--surface); display: flex; align-items: center; gap: 10px; padding: 8px 12px; text-align: left; }
.case .num { font-size: 22px; font-weight: 700; min-width: 16px; }
.case .droite { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.case .pts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; max-width: 104px; min-height: 16px; }
.case .emos { display: flex; flex-wrap: wrap; gap: 1px 2px; font-size: 13px; line-height: 1.25; }
.case.manque { border: 2px solid var(--alerte); background: var(--alerte-fond); }
.case.incomplet { border-style: dashed; border-color: var(--tiret); }
.case.ferme { opacity: .45; justify-content: center; font-size: 13px; color: var(--doux); }
.case .marq { font-size: 11px; font-weight: 700; }
.case.manque .marq { color: var(--alerte); }

.barre { position: fixed; left: 0; right: 0; bottom: 0; background: var(--fond); border-top: 1px solid #1F2225; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); z-index: 5; }
.barre .dedans { max-width: 560px; margin: 0 auto; display: flex; gap: 8px; align-items: center; }
.champ { flex: 1; min-width: 0; height: 50px; border-radius: 999px; border: 1px solid var(--ligne); background: var(--surface); padding: 0 18px; font-size: 14px; width: 100%; }
.btn { min-height: 48px; padding: 0 18px; border-radius: 14px; border: 1px solid #3A3D42; background: var(--surface2); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn.rouge { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.btn.creme { background: var(--creme); border-color: var(--creme); color: #111214; }
.btn.plein { width: 100%; }
.btn.petit { min-height: 40px; font-size: 13px; padding: 0 12px; border-radius: 12px; }
.btn:disabled { opacity: .5; }
.rangee { display: flex; gap: 8px; flex-wrap: wrap; }
.rangee > .btn { flex: 1; }

.voile { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 10; display: flex; align-items: flex-end; justify-content: center; }
.feuille { width: 100%; max-width: 560px; max-height: 92dvh; overflow: auto; background: var(--surface); border-radius: 24px 24px 0 0; border-top: 1px solid var(--ligne); padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); }
.poignee { width: 40px; height: 4px; border-radius: 2px; background: #3A3D42; margin: 0 auto 12px; }
/* La croix de chaque fenêtre, toujours visible en haut à droite, même après défilement. */
.croix { position: sticky; top: 0; float: right; z-index: 3; width: 40px; height: 40px; margin: 0 -8px 0 8px; border-radius: 50%; border: 1px solid #3A3D42; background: var(--surface2); color: var(--texte); font-size: 17px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.lien { background: none; border: 0; padding: 0; color: var(--creme); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.lien-titre { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--ligne); text-underline-offset: 4px; }
.feuille h2 { margin: 0 0 4px; font-size: 20px; }
.feuille:focus { outline: none; }
.feuille .sous { color: var(--doux); font-size: 13px; margin: 0 0 14px; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; background: var(--surface2); }
.badge.alerte-badge { background: var(--alerte); color: #111214; }
.badge.vert { border: 1px solid var(--vert); color: #9ED7AE; background: transparent; }
.badge.tiret { border: 1px dashed var(--tiret); color: var(--pale); background: transparent; }
.titre-sec { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--doux); margin: 18px 0 10px; }

.choix { display: grid; gap: 8px; }
.option { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 54px; border-radius: 14px; border: 1px solid var(--ligne); background: var(--surface2); padding: 10px 14px; text-align: left; font-weight: 600; }
.option[aria-pressed="true"] { border-color: var(--creme); box-shadow: inset 0 0 0 1px var(--creme); }
.option small { display: block; font-weight: 500; color: var(--doux); font-size: 12px; }
label.ligne { display: grid; gap: 6px; font-size: 13px; color: var(--pale); margin: 10px 0; }
label.ligne input, label.ligne select, label.ligne textarea { min-height: 48px; border-radius: 12px; border: 1px solid var(--ligne); background: var(--surface2); padding: 0 12px; font-size: 15px; }
/* Une liste au texte long (« Responsable d’une boutique ») reste dans sa carte, à 360 px de large (9 novembre 2026). */
label.ligne select { min-width: 0; max-width: 100%; width: 100%; }
label.ligne textarea { padding: 10px 12px; min-height: 64px; }

.candidat { border: 1px solid var(--ligne); background: var(--surface2); border-radius: 16px; padding: 12px; margin-bottom: 10px; }
.candidat.avec-alerte { border-style: dashed; }
.candidat .haut { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; padding: 0; text-align: left; }
.candidat .rang { font-size: 13px; font-weight: 700; color: var(--doux); min-width: 18px; }
.candidat .qui { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.candidat .qui small { color: var(--doux); font-size: 12.5px; }
.candidat .qui small.avertissement { color: var(--texte); font-weight: 600; }
.candidat ul { margin: 10px 0 10px 28px; padding: 0; font-size: 13px; color: var(--pale); }
.candidat .rangee { margin-top: 8px; }

.pave { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 300px; margin: 24px auto 0; }
.touche { height: 72px; border-radius: 50%; border: 1px solid var(--ligne); background: var(--surface); font-size: 26px; font-weight: 600; }
.touche.vide { visibility: hidden; }
.points-pin { display: flex; justify-content: center; gap: 16px; margin: 22px 0 6px; }
.points-pin span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--pale); }
.points-pin span.plein { background: var(--creme); border-color: var(--creme); }
.centre { text-align: center; }
.message { color: var(--rouge-clair); min-height: 22px; font-size: 14px; text-align: center; }
.info { color: var(--doux); font-size: 13px; }
.carte { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 14px; margin-bottom: 10px; }

/* Les cases de semaine : un menu par demi-journée, en toutes lettres. */
/* Une case de semaine : le texte passe à la ligne plutôt que d'être coupé. */
.case-sem { width: 100%; min-height: 42px; border-radius: 10px; border: 1px solid var(--ligne); background: var(--surface2); font-size: 12.5px; font-weight: 600; line-height: 1.15; padding: 4px 6px; color: var(--texte); text-align: left; white-space: normal; overflow-wrap: normal; cursor: pointer; }
.semaine-fiche .case-sem { font-size: 14px; padding: 6px 10px; min-height: 46px; }
.menu-voile { position: fixed; inset: 0; z-index: 20; }
.menu { position: fixed; background: var(--surface); border: 1px solid #3A3D42; border-radius: 12px; padding: 6px; display: grid; gap: 2px; box-shadow: 0 12px 32px rgba(0,0,0,.5); width: max-content; max-width: calc(100vw - 16px); max-height: 70vh; overflow-x: hidden; overflow-y: auto; }
.menu button { text-align: left; min-height: 42px; padding: 8px 14px; border: 0; border-radius: 8px; background: transparent; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--texte); white-space: normal; }
.menu button:hover, .menu button:focus-visible { background: var(--surface2); outline: none; }
.menu button.actuel { background: var(--creme); color: #111214; }
.case-sem.t { background: #22352A; border-color: #3E5A45; }
.case-sem.r { color: var(--doux); }
.case-sem.d { background: #2E2A1E; border-color: #6A5A30; }
.case-sem.ferme { display: flex; align-items: center; justify-content: center; opacity: .4; }
/* Dans les tableaux : l'émoji seul, centré, sur un fond un peu plus clair que la case ; la boutique dessous pour un départ ou une arrivée. */
.case-sem.emoji { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-align: center; padding: 3px 2px; }
.case-sem .emo-case { font-size: 18px; line-height: 1.1; }
.case-sem .nom-case { font-size: 10.5px; font-weight: 600; line-height: 1.1; max-width: 100%; overflow-wrap: anywhere; }
.case-sem.emoji.t { background: #263B2E; border-color: #42604A; }
.case-sem.emoji.r { background: #24272B; }
.case-sem.emoji.d, .case-sem.emoji.recu { background: #33301F; border-color: #6A5A30; }
.case-sem.vide { display: block; border: 0; background: transparent; cursor: default; }
tr.separateur th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--doux); padding: 12px 8px 6px; background: var(--fond); border-bottom: 1px solid var(--ligne); }
tr.ligne-recue th.col-nom .pastille { opacity: .9; }
.cle-mention { display: inline-flex; align-items: center; gap: 6px; }
.cle-mention .echantillon { width: 20px; height: 16px; border-radius: 5px; border: 2px solid var(--alerte); background: var(--alerte-fond); }
/* Fiche d'une boutique : une case de minimum par demi-journée. */
.case-sem.min { text-align: center; font-size: 13px; }
.case-sem.min-autre { background: #33301F; border-color: #6A5A30; }
.case-sem.min-ferme { opacity: .6; border-style: dashed; }
.carte-lien { display: grid; gap: 4px; width: 100%; text-align: left; cursor: pointer; margin: 0; }
.carte-lien .haut-carte { display: flex; align-items: baseline; gap: 4px; }
.carte-lien .fleche-carte { margin-left: auto; font-size: 20px; }
.carte-lien .ligne-carte { display: block; }
.case-sem.mention { border: 2px solid var(--alerte); background: var(--alerte-fond); }
.case-sem.mention.formation, .case-sem.mention.deplacement { border-color: var(--creme); }
.semaine-fiche { display: grid; grid-template-columns: 92px 1fr 1fr; gap: 6px; align-items: center; }
.semaine-fiche .j { font-size: 12px; color: var(--doux); font-weight: 600; }
.semaine-fiche .jour { font-size: 14px; color: var(--texte); }

/* Planning général et calendrier : un tableau par boutique. */
.bloc-boutique { margin: 18px 0 8px; }
.bloc-boutique h2 { font-size: 18px; margin: 0 0 8px; }
.bloc-boutique h2 small { font-size: 13px; color: var(--doux); font-weight: 500; }
/* La barre de défilement n'apparaît que si le tableau ne tient pas (téléphone) ; sur ordinateur, il tient. */
.defile { overflow-x: auto; border: 1px solid var(--ligne); border-radius: 14px; scrollbar-width: thin; scrollbar-color: #3A3D42 transparent; }
.defile::-webkit-scrollbar { height: 8px; }
.defile::-webkit-scrollbar-thumb { background: #3A3D42; border-radius: 4px; }
table.planning { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 980px; table-layout: fixed; }
table.planning col.col-nom { width: 160px; }
table.planning th, table.planning td { padding: 4px; border-bottom: 1px solid var(--ligne); }
table.planning thead th { font-size: 12px; color: var(--doux); font-weight: 700; background: var(--surface); position: sticky; top: 0; }
table.planning th.demi { font-size: 10.5px; font-weight: 600; }
table.planning .col-nom { position: sticky; left: 0; z-index: 1; background: var(--fond); text-align: left; min-width: 150px; }
table.planning thead .col-nom { z-index: 2; background: var(--surface); }
table.planning th, table.planning td { padding: 3px; }
table.planning td.probleme { background: rgba(229, 33, 39, .1); box-shadow: inset 2px 0 0 var(--rouge), inset -2px 0 0 var(--rouge); }
table.planning td.probleme.fin { box-shadow: inset 2px 0 0 var(--rouge), inset -2px 0 0 var(--rouge), inset 0 -2px 0 var(--rouge); }
table.planning th.demi.probleme { color: #fff; background: var(--rouge); }
table.planning th.jour-probleme { color: var(--rouge-clair); }
.problemes { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--rouge-clair); font-weight: 600; }
.problemes li.reglee { color: var(--doux); font-weight: 500; }
table.planning .pastille { font-size: 12.5px; min-height: 34px; padding: 4px 10px; white-space: normal; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); top: calc(10px + env(safe-area-inset-top)); background: var(--creme); color: #111; padding: 9px 16px; border-radius: 14px; font-weight: 600; font-size: 13px; z-index: 30; width: max-content; max-width: min(360px, 86vw); text-align: center; box-shadow: 0 6px 24px rgba(0,0,0,.45); }
.bandeau-main { margin: 2px 0 10px; font-size: 13px; color: var(--pale); }
.bandeau-main:empty { display: none; }
.bandeau-main .qui-en-ligne { padding: 2px 0; }
.bandeau-main.lecture .ligne-main { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--rouge-fond); border: 1px solid var(--rouge); color: #fff; border-radius: 12px; padding: 8px 10px 8px 12px; margin-bottom: 6px; font-weight: 600; }
.bandeau-main.lecture .ligne-main .btn { flex: none; }
.lecture-feuille { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--rouge-fond); border: 1px solid var(--rouge); color: #fff; border-radius: 10px; padding: 8px 10px 8px 12px; margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.lecture-feuille .btn { flex: none; }
.toast.avec-bouton { display: flex; align-items: center; gap: 12px; text-align: left; padding: 6px 6px 6px 14px; }
.toast-btn { flex: none; background: #111; color: var(--creme); border: 0; border-radius: 10px; padding: 0 14px; min-height: 36px; font: inherit; font-weight: 700; cursor: pointer; }
.toast-btn:focus-visible { outline: 2px solid var(--rouge, #c8102e); outline-offset: 2px; }
.proposition { border-left: 3px solid var(--creme); padding: 8px 12px; margin: 8px 0; background: var(--surface2); border-radius: 0 10px 10px 0; font-size: 14px; }
@media (prefers-reduced-motion: no-preference) { .feuille { animation: monte .18s ease-out; } @keyframes monte { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } } }

/* Roulement sur deux semaines */
.note-boutique { margin: 0 0 8px; font-size: 13px; color: var(--pale); }
.etiquette-s2 { display: block; font-size: 11px; color: var(--doux); font-weight: 600; margin-top: 3px; }
tr.ligne-s2 th.col-nom { padding-left: 14px; }

/* Totaux sous les tableaux : combien de présents, et si le minimum tient. */
table.planning tfoot th, table.planning tfoot td { border-bottom: 0; border-top: 1px solid var(--ligne); background: var(--surface); }
table.planning tfoot th.col-nom { font-size: 12px; color: var(--doux); font-weight: 700; background: var(--surface); }
.total { display: flex; align-items: center; justify-content: center; min-height: 32px; border-radius: 8px; font-weight: 700; font-size: 15px; }
.total.ok { background: rgba(95, 179, 122, .16); color: #9ED7AE; }
.total.manque { background: var(--rouge); color: #fff; }
.total.incomplet { border: 1.5px dashed var(--tiret); color: var(--pale); }
.total.ferme { color: var(--doux); opacity: .5; }

/* Équipe : une carte par boutique, les personnes en liste. */
.equipe-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin-top: 18px; }
.carte-boutique { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 18px 18px 14px; }
.carte-boutique h2 { margin: 0 0 14px; font-size: 18px; }
.carte-boutique h2 small { color: var(--doux); font-weight: 500; font-size: 13px; }
.liste-equipe { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.liste-equipe li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.statut-texte { font-size: 12.5px; color: var(--doux); text-align: right; }

/* Mois : une pastille par jour. */
.mois-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 22px; margin-top: 8px; }
.carte-mois { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 16px; }
.carte-mois h2 { margin: 0 0 12px; font-size: 18px; }
.carte-mois h2 small { color: var(--doux); font-weight: 500; font-size: 13px; }
.mois-grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.jour-entete { font-size: 11.5px; color: var(--doux); font-weight: 600; text-align: center; padding-bottom: 2px; }
.jour-entete .court { display: none; }
.jour-mois { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 52px; border-radius: 10px; border: 1px solid var(--ligne); background: var(--surface2); padding: 4px 0; }
.jour-mois .num { font-size: 13px; font-weight: 600; }
.jour-mois.passe { opacity: .5; }
.jour-mois.aujourdhui { border: 2px solid var(--creme); }
.jour-mois.manque { border-color: var(--rouge); }
.jour-mois.ferme { opacity: .35; }
.jour-mois.ferme .point { visibility: hidden; }
.point { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex: none; }
.jour-mois.ok .point, .point.ok { background: var(--vert); }
.jour-mois.manque .point, .point.manque { background: var(--rouge); }
.jour-mois.regle .point, .point.regle { border: 2.5px solid var(--rouge); }
.jour-mois.incomplet .point, .point.incomplet { border: 1.5px dashed var(--tiret); }
.cle-mois { display: inline-flex; align-items: center; gap: 6px; }
.ligne-jour { padding: 12px 14px; border-radius: 12px; background: var(--surface2); font-size: 14px; line-height: 1.45; }
.ligne-jour.ok b { color: #9ED7AE; }
.ligne-jour.manque { border: 1.5px solid var(--rouge); }
.ligne-jour.manque.regle { border-style: dashed; opacity: .8; }
@media (max-width: 600px) {
  .jour-entete .long { display: none; }
  .jour-entete .court { display: inline; }
  .jour-mois { min-height: 46px; }
}

/* Un peu plus d'air partout */
.bloc-boutique { margin: 30px 0 10px; }
.titre-sec { margin: 22px 0 12px; }
.grille { gap: 10px; }
.liste-equipe li { flex-wrap: wrap; }
.liste-equipe .pastille { white-space: nowrap; }

/* Version d'essai : un bandeau en haut de chaque écran, pour ne jamais la confondre avec la vraie. */
.bandeau-essai { background: repeating-linear-gradient(135deg, #F2C14E 0 14px, #E9B232 14px 28px); color: #111214; text-align: center; font-size: 13px; line-height: 1.4; padding: 6px 16px; }
.bandeau-essai a { color: #111214; font-weight: 700; white-space: nowrap; }

/* Un élément caché le reste, même quand sa classe lui donne un affichage (9 novembre 2026). */
[hidden] { display: none !important; }

/* Les statuts du 10 novembre 2026 : poissonnier en bleu, traiteur en vert, extra en violet (texte blanc, contraste
   d'au moins 4,5:1). « Sait faire la caisse » : la bordure de la pastille s'épaissit, en crème, avec un liseré sombre. */
.pastille.poissonnier { background: #2F6FAD; border-color: #2F6FAD; color: #fff; }
.pastille.traiteur { background: #2E7D4A; border-color: #2E7D4A; color: #fff; }
.pastille.extra { background: #7650B8; border-color: #7650B8; color: #fff; }
.pt.poissonnier { background: #2F6FAD; }
.pt.traiteur { background: #2E7D4A; }
.pt.extra { background: #7650B8; }
.pastille.caisse { border-width: 4px; border-color: var(--creme); box-shadow: inset 0 0 0 2px var(--fond); padding: 4px 12px; }
.pastille.mini.caisse { padding: 1px 8px; }
table.planning .pastille.caisse { padding: 2px 8px; }
.pastille.a_definir.caisse { border-style: dashed; box-shadow: none; }
.case-a-cocher { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; font-size: 15px; cursor: pointer; }
.case-a-cocher input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--creme); flex: none; }
.case-a-cocher small { display: block; color: var(--doux); font-size: 12.5px; margin-top: 3px; }

/* La cloche de Julien, d'Agathe et de l'administrateur (10 novembre 2026). */
.boutons-entete { display: flex; align-items: center; gap: 10px; }
.cloche { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ligne); background: var(--surface); font-size: 20px; display: inline-flex; align-items: center; justify-content: center; }
.cloche.a-voir { border-color: var(--rouge); }
.cloche .compte { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--rouge); color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; }
.liste-notifs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.liste-notifs li { background: var(--surface2); border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.45; border-left: 3px solid transparent; }
.liste-notifs li.nouveau { border-left-color: var(--rouge); }
.liste-notifs .qui-quand small { color: var(--doux); }
.etiquette-nouveau { margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--rouge-clair); text-transform: uppercase; letter-spacing: .04em; }

/* L'onglet Heures (10 novembre 2026). */
.liste-heures { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ligne-employe-heures { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; background: none; border: 0; padding: 2px 0; text-align: left; color: inherit; }
.ligne-employe-heures .pastille { white-space: nowrap; }
.solde { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.solde.plus { color: #9ED7AE; }
.solde.moins { color: var(--rouge-clair); }
.solde.zero { color: var(--doux); }
.solde-grand { font-size: 18px; margin: 14px 0 0; }
.solde-grand small { font-size: 13px; color: var(--doux); font-weight: 500; }
.puces-heures { margin-bottom: 10px; }
.puces-heures .puce { height: 40px; }
.duree-libre { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.duree-libre input { width: 84px; min-height: 48px; border-radius: 12px; border: 1px solid var(--ligne); background: var(--surface2); padding: 0 12px; font-size: 15px; }
.apercu-heures { font-size: 14px; color: var(--pale); margin: 8px 0 12px; line-height: 1.4; }
.filtres-heures select { width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid var(--ligne); background: var(--surface2); padding: 0 12px; font-size: 14px; margin-bottom: 10px; }
.histo-heures { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ligne-heure { display: grid; grid-template-columns: 1fr auto auto; gap: 2px 10px; align-items: center; background: var(--surface2); border-radius: 12px; padding: 8px 8px 8px 12px; font-size: 14px; line-height: 1.35; }
.ligne-heure .date-heure { grid-column: 1 / -1; font-size: 12px; color: var(--doux); }
.ligne-heure small, .ligne-heure .note-heure { color: var(--doux); }
.ligne-heure.zero { background: transparent; border: 1px dashed var(--ligne); }
.ligne-heure .confirmer-heure, .ligne-heure > .rangee { grid-column: 1 / -1; }
.enlever-heure { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ligne); background: var(--surface); color: var(--pale); }
.confirmer-zero p { margin: 0 0 10px; font-size: 14px; line-height: 1.45; }

/* La légende de la caisse : « Caisse » dans la bordure épaisse, sans couleur de statut (10 novembre 2026, 11 h 39). */
.pastille.legende-caisse { background: transparent; color: var(--texte); }

/* La fiche d'heures simplifiée (10 novembre 2026, 11 h 39) : − et + autour d'une roulette de 1 à 10 heures. */
.saisie-heures { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 18px 0 4px; }
.signe-heures { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--ligne); background: var(--surface2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 0; flex: none; }
.signe-heures .signe-symbole { font-size: 32px; font-weight: 700; line-height: 1; }
.signe-heures small { font-size: 11px; color: var(--doux); margin-top: 2px; }
.signe-heures.active { border-color: var(--creme); background: var(--creme); color: var(--fond); }
.signe-heures.active small { color: var(--fond); }
.roulette { position: relative; width: 112px; height: 132px; flex: none; }
.roulette-cadre { position: absolute; left: 0; right: 0; top: 44px; height: 44px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--ligne); pointer-events: none; }
.roulette-liste { position: relative; height: 132px; overflow-y: scroll; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent); }
.roulette-liste::-webkit-scrollbar { display: none; }
.roulette-liste:focus-visible { outline: 3px solid var(--creme); outline-offset: 2px; border-radius: 12px; }
.roulette-marge { height: 44px; }
.roulette-chiffre { height: 44px; line-height: 44px; text-align: center; scroll-snap-align: center; font-size: 19px; color: var(--doux); font-variant-numeric: tabular-nums; cursor: pointer; user-select: none; }
.roulette-chiffre.choisi { color: var(--texte); font-size: 24px; font-weight: 700; }
.saisie-heures + .apercu-heures { text-align: center; }
.actions-discretes { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; }
.actions-discretes .carte { width: 100%; }
.lien-discret { background: none; border: 0; padding: 8px 0; color: var(--doux); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; min-height: 44px; }

/* Journée : qui sait faire la caisse porte un anneau crème, autour de son point comme de son émoji (10 novembre 2026, 13 h 05). */
.pt.caisse { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--creme); margin: 3px; }
.case .emos .emo-caisse { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--creme); font-size: 11px; line-height: 1; }

/* L'effet d'un congé ou d'une absence, avant de valider (10 novembre 2026). */
.zone-apercu:empty { display: none; }
.apercu-conge { border-radius: 12px; padding: 10px 12px; margin: 0 0 14px; font-size: 14px; line-height: 1.45; }
.apercu-conge p { margin: 0; }
.apercu-conge ul { margin: 6px 0; padding-left: 18px; }
.apercu-conge .petit { color: var(--doux); font-size: 13px; margin-top: 4px; }
.apercu-conge.attente { color: var(--doux); padding-left: 0; }
.apercu-conge.ok { background: rgba(95, 179, 122, .12); border: 1px solid rgba(95, 179, 122, .45); color: #9ED7AE; }
.apercu-conge.manque { background: rgba(214, 58, 47, .12); border: 1px solid var(--rouge); color: var(--texte); }

/* Un nom très long ne fait plus déborder l'écran (test du 10 novembre 2026) : la pastille se coupe avec « … ». */
.liste-equipe .pastille, .ligne-employe-heures .pastille { display: inline-block; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 24px; }
.ligne-employe-heures .pastille { max-width: calc(100% - 84px); }
.feuille .pastille { max-width: 100%; overflow-wrap: anywhere; }
.champs-fiche { border: 0; padding: 0; margin: 0; min-width: 0; }
.champs-fiche[disabled] { opacity: .75; }

/* Le planning par mail (10 novembre 2026) */
.aide-champ { display: block; margin-top: 4px; color: var(--gris, #9a9a9a); font-size: 13px; font-weight: 400; }
.apercu-mail { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); }
.apercu-mail .a-qui { font-size: 13px; opacity: 0.75; margin-bottom: 6px; overflow-wrap: anywhere; }
.apercu-mail .sujet-mail { font-weight: 700; margin-bottom: 8px; }
.apercu-mail .texte-mail { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.45; }
.sans-adresse { flex-wrap: wrap; gap: 6px; }
.sans-adresse > .btn { flex: 0 1 auto; }
