/* =====================================================================
   Méthode MANE — Cabinet

   Sur ordinateur : un menu latéral prune, la page prend tout le reste de
   l'écran. Sur téléphone : la navigation passe en bas, sous le pouce.

   Les animations sont courtes et ne conditionnent jamais l'affichage :
   elles partent de « animation-fill-mode: backwards », donc une fois
   jouées elles ne pèsent plus sur rien (et n'écrasent pas les transform
   posés par le glisser-déposer). Ceux qui demandent moins d'animation
   n'en ont pas — voir tout en bas.
   ===================================================================== */

:root {
  /* L'identité du site, reprise telle quelle. */
  --violet:        #8B5A9B;
  --violet-fonce:  #6E4380;
  --violet-clair:  #A06FB0;
  --prune:         #251A2E;
  --lavande:       #F2EBF6;
  --creme:         #FAF8FC;

  --fond:          #F5F0F8;
  --surface:       #FFFFFF;
  --encre:         #251A2E;
  --doux:          #665B70;
  --pale:          #8E8398;
  --trait:         #E8DFEE;
  --alerte:        #A8432C;
  --alerte-fond:   #FBE8E2;
  --attention:     #6A4310;
  --attention-fond:#FFF3E1;
  --ok:            #3F7A4F;
  --ok-fond:       #E6F2E8;

  --titre: "Poppins", system-ui, sans-serif;
  --texte: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --rayon: 16px;
  --rayon-petit: 12px;
  --ombre: 0 1px 2px rgba(37,26,46,.05), 0 6px 20px rgba(37,26,46,.06);
  --ombre-haute: 0 2px 4px rgba(37,26,46,.06), 0 14px 32px rgba(37,26,46,.13);
  --ressort: cubic-bezier(.2,.7,.3,1);
  --lateral: 248px;
  --barre-bas: 74px;
}

*, *::before, *::after { box-sizing: border-box; }

/* overflow-x sur html, jamais sur body : sur body, il en fait un conteneur
   de défilement et casse les éléments collants — piège déjà rencontré sur
   le site. */
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 16px/1.55 var(--texte);
}

a { color: var(--violet-fonce); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--titre); font-weight: 600; color: var(--prune); line-height: 1.25; }
h1 { font-size: clamp(1.55rem, 4.5vw, 2rem); font-weight: 700; margin: .2rem 0 1.1rem; letter-spacing: -.01em; }
h1 small { font-size: .55em; color: var(--pale); font-weight: 500; }
h2 { font-size: 1.12rem; margin: 0 0 .8rem; }
h3 { font-size: 1rem; margin: 0; }
h3 small { font-family: var(--texte); font-weight: 400; color: var(--doux); font-size: .85rem; }

svg { flex: none; }

@keyframes monte   { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes apparait { from { opacity: 0; } to { opacity: 1; } }
@keyframes glisse-bas { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes pulsation { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes respire { 0%, 100% { box-shadow: 0 0 0 0 rgba(139,90,155,.30); } 50% { box-shadow: 0 0 0 7px rgba(139,90,155,0); } }
@keyframes arrivee { 0% { box-shadow: 0 0 0 3px rgba(139,90,155,.55), var(--ombre); } 100% { box-shadow: 0 0 0 3px rgba(139,90,155,0), var(--ombre); } }

/* --- La coquille : menu latéral + page ------------------------------------ */

.coquille { min-height: 100vh; min-height: 100dvh; }

.page {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.1rem 16px calc(var(--barre-bas) + 2.2rem + env(safe-area-inset-bottom));
  min-width: 0;
}
.page--large { max-width: none; }
.page--public { max-width: 40rem; padding-bottom: 3rem; }

.lateral { display: none; }

@media (min-width: 900px) {
  .coquille { display: grid; grid-template-columns: var(--lateral) minmax(0, 1fr); }
  .lateral {
    position: sticky; top: 0; height: 100vh; height: 100dvh;
    display: flex; flex-direction: column; gap: 1.6rem;
    padding: 1.6rem 1rem 1.1rem;
    background: var(--prune);
    overflow-y: auto;
  }
  .page { padding: 2rem 2.2rem 3rem; }
  .page--large { padding-left: 2.2rem; padding-right: 2.2rem; }
  .page:not(.page--large) { max-width: 68rem; margin: 0; }
}
@media (min-width: 1500px) {
  .page:not(.page--large) { margin: 0 auto; }
}

.lateral__marque { display: flex; align-items: center; gap: .75rem; padding: 0 .4rem; text-decoration: none; }
.lateral__logo {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet-clair), var(--violet-fonce));
  color: #fff; font: 700 1.25rem var(--titre);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.lateral__marque b { display: block; font: 600 1rem var(--titre); color: #fff; }
.lateral__marque small { display: block; font-size: .72rem; color: #B9A6C6; letter-spacing: .1em; text-transform: uppercase; }

.lateral__nav { display: flex; flex-direction: column; gap: 3px; }
.lateral__nav a {
  display: flex; align-items: center; gap: .75rem;
  padding: .68rem .9rem; border-radius: 12px;
  color: #D9CCE2; text-decoration: none; font-weight: 500; font-size: .95rem;
  transition: background .2s, color .2s, transform .2s var(--ressort);
}
.lateral__nav a:hover { background: rgba(255,255,255,.08); color: #fff; transform: translateX(2px); }
.lateral__nav a[aria-current="page"] { background: var(--violet); color: #fff; box-shadow: 0 6px 18px rgba(139,90,155,.45); }
.lateral__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.lateral__bas { margin-top: auto; display: flex; flex-direction: column; gap: .8rem; }
.lateral__moi {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .7rem; border-radius: 14px; background: rgba(255,255,255,.06);
  color: #fff; font-weight: 500;
}
.lateral__nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lateral__moi a { color: #B9A6C6; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; transition: background .2s, color .2s; }
.lateral__moi a:hover { color: #fff; background: rgba(255,255,255,.1); }
.lateral__moi svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Barre du téléphone : une pilule flottante, sous le pouce. */
.onglets {
  position: fixed; z-index: 30;
  left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  height: 64px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 0 4px;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(37,26,46,.14), 0 0 0 1px rgba(37,26,46,.04);
}
.onglets a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--pale); text-decoration: none; font-size: .7rem; font-weight: 500;
  border-radius: 16px; margin: 6px 2px;
  transition: color .2s, background .2s;
}
.onglets svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ressort); }
.onglets a[aria-current="page"] { color: var(--violet-fonce); background: var(--lavande); }
.onglets a[aria-current="page"] svg { stroke-width: 2.1; transform: translateY(-1px); }
.onglets a:active svg { transform: scale(.88); }

@media (min-width: 900px) {
  .onglets { display: none; }
}

/* --- En-têtes de page ----------------------------------------------------- */

.entete-page {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.3rem;
  animation: glisse-bas .45s var(--ressort) backwards;
}
.entete-page h1 { margin: 0; }
.entete-page__sous { margin: .3rem 0 0; color: var(--doux); }
.entete-page__date { margin: 0 0 .15rem; color: var(--violet); font-weight: 500; }

.seulement-large { display: none; }
@media (min-width: 900px) and (pointer: fine) { .seulement-large { display: inline; } }

.aide { color: var(--doux); font-size: .9rem; margin: .3rem 0 .8rem; }
.vide { color: var(--pale); font-style: italic; margin: .2rem 0; }
.retour { margin: 0 0 .5rem; font-size: .92rem; }
.retour a { text-decoration: none; font-weight: 500; }
.sous-titre { margin-top: 2rem; font-size: 1.2rem; }
code { font-size: .85em; background: var(--lavande); padding: .1rem .35rem; border-radius: 5px; word-break: break-all; }

/* --- Boutons --- */

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font: 500 .95rem var(--texte);
  padding: .6rem 1.15rem; min-height: 44px;
  border-radius: var(--rayon-petit); border: 1px solid var(--trait);
  background: var(--surface); color: var(--prune);
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ressort), box-shadow .2s, background .2s, border-color .2s;
}
.bouton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bouton:hover { border-color: var(--violet); transform: translateY(-1px); }
.bouton:active { transform: translateY(0) scale(.98); }
.bouton--plein {
  background: var(--violet); border-color: var(--violet); color: #fff;
  font-family: var(--titre); font-weight: 600;
  box-shadow: 0 8px 20px rgba(139,90,155,.32);
}
.bouton--plein:hover { background: var(--violet-fonce); border-color: var(--violet-fonce); box-shadow: 0 10px 24px rgba(110,67,128,.38); }
.bouton--grand { min-height: 48px; padding: .7rem 1.4rem; }
.bouton--sobre { background: transparent; }
.bouton--danger { background: var(--surface); color: var(--alerte); border-color: #E8C3B8; }
.bouton--danger:hover { background: var(--alerte-fond); border-color: var(--alerte); }
.bouton--icone { min-width: 44px; padding: .4rem; font-size: 1.2rem; line-height: 1; }
.bouton--large { width: 100%; }
.lien { background: none; border: 0; padding: 0; font: inherit; color: var(--violet-fonce); text-decoration: underline; cursor: pointer; }
.lien-action { font: 600 .9rem var(--titre); text-decoration: none; transition: color .2s; }
.lien-action:hover { color: var(--prune); }

.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.actions form { margin: 0; }
.actions--colonne { flex-direction: column; }
.titre-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .4rem; }
.titre-actions h1 { margin-bottom: .6rem; }

/* --- Cartes, blocs, avis --- */

.carte, .bloc, .panneau {
  background: var(--surface);
  border: 1px solid rgba(232,223,238,.7);
  border-radius: var(--rayon);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--ombre);
  animation: monte .5s var(--ressort) backwards;
  animation-delay: calc(var(--ordre, 0) * 70ms);
}
.page > .carte:nth-of-type(2), .page > .bloc:nth-of-type(2) { animation-delay: 70ms; }
.page > .carte:nth-of-type(3), .page > .bloc:nth-of-type(3) { animation-delay: 140ms; }
.page > .carte:nth-of-type(n+4), .page > .bloc:nth-of-type(n+4) { animation-delay: 200ms; }
.bloc__tete, .panneau__tete { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; }
.bloc--alerte { background: var(--alerte-fond); border-color: #EFCFC4; }

.avis {
  background: var(--ok-fond); color: #24502F;
  border-radius: var(--rayon-petit); padding: .8rem 1rem; margin: 0 0 1.1rem;
  font-weight: 500;
  animation: glisse-bas .4s var(--ressort) backwards;
}
.avis--alerte { background: var(--alerte-fond); color: #7A2E1C; }
.avis--dev { background: #FFF6D8; color: #6B5300; border: 1px dashed #D9B84A; }

.alerte-bloc { background: var(--alerte-fond); border: 1px solid #EFCFC4; border-radius: var(--rayon); padding: .5rem; margin-bottom: 1rem; }
.alerte-ligne { display: block; padding: .5rem .6rem; color: #7A2E1C; text-decoration: none; border-radius: 8px; }
.alerte-ligne:hover { background: rgba(255,255,255,.6); }

.pastille {
  display: inline-block; font-size: .76rem; font-weight: 600; padding: .18rem .6rem; border-radius: 999px;
  background: var(--lavande); color: var(--violet-fonce); white-space: nowrap;
}
.pastille--confirme, .pastille--envoye, .pastille--dispo { background: var(--ok-fond); color: var(--ok); }
.pastille--annule, .pastille--echec, .pastille--expire { background: var(--alerte-fond); color: var(--alerte); }
.pastille--simule { background: #FFF6D8; color: #6B5300; }
.pastille--maintenant { background: var(--violet); color: #fff; animation: respire 2s ease-in-out infinite; }
.verifie { color: var(--ok); font-size: .82rem; margin-left: .4rem; }
.en-retard { color: var(--alerte); font-weight: 600; }
.echeance { color: var(--doux); }

.puce-date {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .76rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px;
  background: var(--lavande); color: var(--violet-fonce); white-space: nowrap;
}
.puce-date svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.puce-date--retard { background: var(--alerte-fond); color: var(--alerte); }

/* --- Formulaires --- */

.formulaire label, .etiquette { display: block; font-weight: 500; font-size: .92rem; margin-bottom: .3rem; color: var(--prune); }
.champ { margin-bottom: 1rem; flex: 1; min-width: 0; }
.champ--court { flex: 0 0 8rem; }
.rangee { display: flex; gap: .8rem; flex-wrap: wrap; }
.rangee > .champ { min-width: 9rem; }

input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search],
input[type=date], input[type=time], input[type=number], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: 16px;   /* 16 px : en deçà, iOS zoome sur le champ */
  color: var(--encre); background: var(--creme);
  border: 1px solid var(--trait); border-radius: var(--rayon-petit);
  padding: .6rem .8rem; min-height: 44px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input:hover, select:hover, textarea:hover { border-color: #D6C6DF; }
input:focus, select:focus, textarea:focus { border-color: var(--violet); background: #fff; outline: none; box-shadow: 0 0 0 4px rgba(139,90,155,.14); }
input[type=color] { width: 4rem; height: 44px; padding: 2px; border: 1px solid var(--trait); border-radius: 10px; background: var(--surface); }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
legend { font-family: var(--titre); font-weight: 600; color: var(--prune); margin-bottom: .6rem; padding: 0; }
.case { display: flex !important; align-items: flex-start; gap: .55rem; font-weight: 400 !important; margin: .5rem 0; cursor: pointer; }
.case input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--violet); flex: none; }
.erreur { color: var(--alerte); font-size: .88rem; margin: .3rem 0 0; }

/* Le leurre anti-robots : hors de l'écran, pas display:none — certains
   robots sautent les champs masqués. */
.leurre { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.choix-types { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.choix-type { display: flex !important; gap: .6rem; align-items: center; padding: .75rem; border: 1px solid var(--trait); border-radius: var(--rayon-petit); cursor: pointer; margin: 0 !important; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.choix-type:hover { border-color: var(--couleur); }
.choix-type:has(input:checked) { border-color: var(--couleur); box-shadow: 0 0 0 3px color-mix(in srgb, var(--couleur) 18%, transparent); }
.choix-type input { accent-color: var(--couleur); width: 18px; height: 18px; }
.choix-type small { display: block; color: var(--doux); font-weight: 400; }

.choix-colonnes { display: flex; flex-wrap: wrap; gap: .4rem; }
.choix-colonnes label { margin: 0; font-weight: 400; }
.choix-colonnes input { position: absolute; opacity: 0; }
.choix-colonnes span { display: inline-block; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--trait); cursor: pointer; background: var(--surface); transition: background .2s, color .2s, border-color .2s; }
.choix-colonnes input:checked + span { background: var(--couleur); border-color: var(--couleur); color: #fff; }
.choix-colonnes input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }

.action-repliee { margin: .8rem 0; }
.action-repliee summary { cursor: pointer; font-weight: 500; color: var(--violet-fonce); padding: .4rem 0; }
.action-repliee > form, .action-repliee > div { margin-top: .6rem; }
.action-repliee--danger summary { color: var(--alerte); }

.recherche { display: flex; gap: .5rem; margin-bottom: 1rem; }

/* --- Connexion --- */

body.seul {
  display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 16px;
  background:
    radial-gradient(60rem 40rem at 10% -10%, rgba(160,111,176,.55), transparent 60%),
    radial-gradient(50rem 40rem at 110% 110%, rgba(110,67,128,.6), transparent 60%),
    var(--prune);
}
.connexion {
  width: 100%; max-width: 24rem; text-align: center;
  background: var(--surface); border-radius: 24px; padding: 2rem 1.8rem;
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
  animation: monte .6s var(--ressort) backwards;
}
.connexion h1 { margin: .6rem 0 0; }
.connexion__sous { color: var(--violet); margin: 0 0 1.5rem; }
.connexion form { text-align: left; }
.connexion label { display: block; font-weight: 500; margin: .8rem 0 .3rem; }
.connexion button { width: 100%; margin-top: 1.2rem; }

/* --- Accueil --- */

.alertes { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.3rem; }
.alerte {
  display: flex; align-items: center; gap: .9rem;
  padding: .85rem 1.1rem; border-radius: 14px;
  background: var(--attention-fond); border: 1px solid #F3D9B1; color: var(--attention);
  text-decoration: none;
  animation: glisse-bas .45s var(--ressort) backwards;
  transition: transform .2s var(--ressort), box-shadow .2s;
}
.alerte:hover { transform: translateY(-1px); box-shadow: var(--ombre); }
.alerte b { font-weight: 600; }
.alerte--grave { background: var(--alerte-fond); border-color: #EFCFC4; color: #7A2E1C; }
.alerte__signal { position: relative; width: 10px; height: 10px; flex: none; border-radius: 50%; background: #D98A1E; }
.alerte--grave .alerte__signal { background: var(--alerte); }
.alerte__signal::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulsation 1.8s ease-out infinite; }
.alerte__voir { margin-left: auto; font: 600 .88rem var(--titre); white-space: nowrap; }

.chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1.3rem; }
@media (min-width: 760px) { .chiffres { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.chiffre {
  display: flex; flex-direction: column; gap: .15rem;
  padding: 1.05rem 1.2rem; border-radius: var(--rayon);
  background: var(--surface); box-shadow: var(--ombre);
  text-decoration: none; color: var(--doux);
  animation: monte .5s var(--ressort) backwards;
  animation-delay: calc(80ms + var(--ordre, 0) * 60ms);
  transition: transform .2s var(--ressort), box-shadow .2s;
}
.chiffre:hover { transform: translateY(-3px); box-shadow: var(--ombre-haute); }
.chiffre b { font: 700 1.9rem/1.15 var(--titre); color: var(--prune); }
.chiffre span { font-size: .9rem; font-weight: 500; }
.chiffre--alerte b { color: var(--alerte); }

.accueil-grille { display: grid; gap: 1.1rem; align-items: start; }
@media (min-width: 1100px) { .accueil-grille { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.3rem; } }
.accueil-grille .panneau { margin-bottom: 0; }
.accueil-cote { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }

.fil { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.fil__rdv {
  display: flex; align-items: center; gap: .9rem;
  padding: .7rem .8rem; border-radius: 14px;
  color: var(--encre); text-decoration: none;
  transition: background .2s, transform .2s var(--ressort);
}
.fil__rdv:hover { background: #F7F2FA; transform: translateX(3px); }
.fil__rdv.est-en-cours { background: #F4ECF8; }
.fil__rdv.est-passe { opacity: .55; }
.fil__rdv.est-annule { opacity: .5; text-decoration: line-through; }
.fil__heure { font: 600 1rem var(--titre); color: var(--prune); min-width: 3.6rem; }
.fil__trait { width: 4px; align-self: stretch; min-height: 2.4rem; border-radius: 4px; background: var(--couleur, var(--violet)); }
.fil__qui { flex: 1; min-width: 0; }
.fil__qui b { display: block; font: 600 .98rem var(--titre); }
.fil__qui small { display: block; color: var(--doux); font-size: .88rem; }
.demain { color: var(--doux); font-size: .92rem; margin: .9rem 0 0; }

.a-cocher { list-style: none; margin: 0; padding: 0; }
.a-cocher li { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--trait); }
.a-cocher li:last-child { border-bottom: 0; }
.a-cocher form { margin: 0; }
.a-cocher a { flex: 1; min-width: 0; color: var(--encre); text-decoration: none; font-weight: 500; }
.a-cocher a:hover { color: var(--violet-fonce); }
.coche {
  width: 26px; height: 26px; border-radius: 9px; padding: 0; cursor: pointer;
  border: 2px solid #CDB9D8; background: var(--surface);
  display: grid; place-items: center;
  transition: background .2s, border-color .2s, transform .15s var(--ressort);
}
.coche svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .25s var(--ressort); }
.coche:hover { border-color: var(--violet); }
.coche:hover svg { opacity: .35; transform: scale(1); stroke: var(--violet); }
.coche:active { transform: scale(.9); background: var(--violet); border-color: var(--violet); }
.coche:active svg { opacity: 1; stroke: #fff; }

.raccourcis-liste { display: flex; flex-direction: column; gap: .45rem; }
.raccourcis-liste a {
  display: flex; align-items: center; gap: .7rem;
  padding: .8rem .95rem; border-radius: 14px;
  background: #F7F2FA; color: var(--prune); text-decoration: none; font-weight: 500;
  transition: background .2s, transform .2s var(--ressort);
}
.raccourcis-liste a:hover { background: #EFE5F4; transform: translateX(3px); }
.raccourcis-liste small { margin-left: auto; color: var(--pale); font-weight: 400; font-size: .82rem; }
.raccourcis-liste svg { width: 20px; height: 20px; fill: none; stroke: var(--violet); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* --- Listes --- */

.liste-rdv, .liste-simple, .liste-contacts, .liste-periodes, .liste-envois, .menu-plus { list-style: none; margin: 0; padding: 0; }
.liste-rdv li + li { margin-top: .4rem; }
.liste-rdv a {
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem .8rem; border-radius: var(--rayon-petit);
  background: var(--creme); box-shadow: inset 4px 0 0 var(--couleur, var(--violet));
  color: var(--encre); text-decoration: none;
  transition: background .2s, transform .2s var(--ressort);
}
.liste-rdv a:hover { background: var(--lavande); transform: translateX(3px); }
.liste-rdv a.est-annule { opacity: .55; text-decoration: line-through; }
.liste-rdv__heure { font-family: var(--titre); font-weight: 600; min-width: 4.2rem; color: var(--prune); }
.liste-rdv__qui { flex: 1; min-width: 0; }
.liste-rdv__qui small { display: block; color: var(--doux); font-size: .85rem; }

.liste-simple li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--trait); flex-wrap: wrap; }
.liste-simple li:last-child { border-bottom: 0; }
.liste-simple span { color: var(--doux); font-size: .88rem; }
.liste-simple .est-close a { color: var(--pale); text-decoration: line-through; }

.menu-plus { background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; animation: monte .5s var(--ressort) backwards; }
.menu-plus li a { display: block; padding: 1rem 1.2rem; border-bottom: 1px solid var(--trait); color: var(--prune); text-decoration: none; font-weight: 500; transition: background .2s, padding .2s; }
.menu-plus li:last-child a { border-bottom: 0; }
.menu-plus li a:hover { background: #F7F2FA; padding-left: 1.4rem; }

/* --- Fiches --- */

.fiche-tete { margin-bottom: 1.1rem; animation: glisse-bas .45s var(--ressort) backwards; }
.fiche-tete h1 { margin: .1rem 0 .3rem; }
.fiche-tete__type { color: var(--couleur, var(--violet)); font-weight: 600; font-size: .92rem; }
.fiche-tete__quand { font-size: 1.05rem; margin: 0 0 .5rem; }
.raccourcis { display: flex; flex-wrap: wrap; gap: .5rem; }

.donnees { margin: 0; }
.donnees div { display: flex; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--trait); flex-wrap: wrap; }
.donnees div:last-child { border-bottom: 0; }
.donnees dt { color: var(--doux); min-width: 6rem; }
.donnees dd { margin: 0; flex: 1; word-break: break-word; }

.liste-envois li { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; padding: .45rem 0; border-bottom: 1px solid var(--trait); font-size: .9rem; }
.liste-envois small { color: var(--pale); margin-left: auto; }

.liste-contacts { background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); padding: .3rem .6rem; animation: monte .5s var(--ressort) backwards; }
@media (min-width: 1100px) { .liste-contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.4rem; } }
@media (min-width: 1500px) { .liste-contacts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.liste-contacts li a { display: flex; align-items: center; gap: .8rem; padding: .7rem .5rem; border-bottom: 1px solid var(--trait); color: var(--encre); text-decoration: none; border-radius: 10px; transition: background .2s; }
.liste-contacts li a:hover { background: #F7F2FA; }
.liste-contacts small { display: block; color: var(--doux); font-size: .85rem; }
.initiales {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lavande); color: var(--violet-fonce); font-family: var(--titre); font-weight: 600;
}
.initiales--plein { width: 34px; height: 34px; font-size: .8rem; background: var(--violet); color: #fff; }
.initiales--mini { width: 26px; height: 26px; font-size: .68rem; background: #E6D8EE; }

.liste-periodes li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; margin-bottom: .45rem; background: var(--surface); border-radius: var(--rayon-petit); box-shadow: var(--ombre); }
.liste-periodes form { margin: 0; }

/* --- Tâches ----------------------------------------------------------------- */

.recherche-vive {
  display: flex; align-items: center; gap: .5rem;
  background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon-petit);
  padding: 0 .9rem; min-height: 46px; flex: 1 1 16rem; max-width: 22rem;
  transition: border-color .2s, box-shadow .2s;
}
.recherche-vive:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139,90,155,.14); }
.recherche-vive svg { width: 18px; height: 18px; fill: none; stroke: var(--pale); stroke-width: 1.8; stroke-linecap: round; }
.recherche-vive input { border: 0; background: transparent; box-shadow: none !important; padding: .5rem 0; min-height: 0; }

.ajout-rapide {
  display: flex; gap: .6rem; flex-wrap: wrap; align-items: center;
  margin-bottom: 1rem; padding: .7rem;
  background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre);
  animation: monte .45s var(--ressort) backwards; animation-delay: 60ms;
}
.ajout-rapide input[type=text] { flex: 1 1 14rem; background: transparent; border-color: transparent; }
.ajout-rapide input[type=text]:focus { background: var(--creme); }
.ajout-rapide select, .ajout-rapide input[type=date] { flex: 0 1 11rem; width: auto; }
.ajout-rapide.est-signale { animation: respire 1.2s ease-in-out 2; }

.filtres { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.filtre {
  font: 500 .9rem var(--texte); padding: .45rem .95rem; min-height: 38px; border-radius: 999px;
  border: 1px solid var(--trait); background: var(--surface); color: #4A3E55; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s var(--ressort);
}
.filtre:hover { border-color: var(--violet); }
.filtre:active { transform: scale(.96); }
.filtre[aria-pressed="true"] { background: var(--prune); border-color: var(--prune); color: #fff; }
.filtre--discret { margin-left: auto; background: transparent; border-style: dashed; }
.filtre--discret[aria-pressed="true"] { background: var(--lavande); border-color: var(--violet); color: var(--violet-fonce); border-style: solid; }

.js body:not(.voir-repliees) [data-repliable] { display: none !important; }

.tableau-onglets { display: none; }

.tableau {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(16rem, 86%);
  gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
  padding: 0 16px .8rem; margin: 0 -16px;
  align-items: start;
  scrollbar-width: thin;
}
@media (min-width: 900px) {
  .tableau { grid-auto-columns: minmax(15.5rem, 1fr); gap: 1.1rem; scroll-snap-type: none; padding: 0 0 .8rem; margin: 0; }
}

.colonne {
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: .7rem;
  background: rgba(255,255,255,.55);
  border: 1px solid #EADFF0;
  border-radius: 20px; padding: .85rem;
  min-height: 12rem; min-width: 0;
  animation: monte .5s var(--ressort) backwards;
  animation-delay: calc(var(--rang, 0) * 60ms);
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.colonne--close { background: rgba(255,255,255,.35); }
.colonne.est-cible { background: color-mix(in srgb, var(--couleur) 9%, #fff); border-color: color-mix(in srgb, var(--couleur) 45%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--couleur) 14%, transparent); }

.colonne__tete { display: flex; align-items: center; gap: .6rem; margin: 0; padding: .15rem .3rem .2rem; font-size: 1rem; }
.colonne__point { width: 10px; height: 10px; border-radius: 50%; background: var(--couleur); box-shadow: 0 0 0 4px color-mix(in srgb, var(--couleur) 16%, transparent); }
.colonne__nom { flex: 1; min-width: 0; }
.colonne__nombre {
  font: 600 .8rem var(--texte); padding: .12rem .6rem; border-radius: 999px;
  color: var(--couleur); background: color-mix(in srgb, var(--couleur) 13%, #fff);
}

.colonne__cartes { display: flex; flex-direction: column; gap: .6rem; min-height: 4rem; border-radius: 12px; }
@media (min-width: 900px) {
  .colonne__cartes { max-height: calc(100vh - 21rem); overflow-y: auto; margin: 0 -4px; padding: 2px 4px 6px; scrollbar-width: thin; }
}
.colonne__vide { margin: 0; padding: 1rem .5rem; text-align: center; color: var(--pale); font-size: .88rem; border: 1.5px dashed #E0D3E7; border-radius: 12px; }
.colonne__cartes:has([data-tache]:not(.est-filtree)) .colonne__vide { display: none; }

.colonne__ajout {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem; min-height: 42px; border-radius: 12px;
  border: 1.5px dashed #D6C6DF; background: transparent; color: #7E6E8A;
  font: 500 .9rem var(--texte); cursor: pointer;
  transition: all .2s;
}
.colonne__ajout svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.colonne__ajout:hover { border-color: var(--violet); color: var(--violet-fonce); background: #fff; }

.carte-tache {
  position: relative;
  display: flex; flex-direction: column; gap: .4rem;
  background: var(--surface); border-radius: 14px;
  padding: .85rem .95rem;
  color: var(--encre); text-decoration: none;
  box-shadow: 0 1px 2px rgba(37,26,46,.06), 0 4px 14px rgba(37,26,46,.05);
  cursor: grab;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  animation: monte .45s var(--ressort) backwards;
  animation-delay: calc(var(--rang, 0) * 60ms + 120ms + var(--ordre, 0) * 45ms);
  transition: transform .2s var(--ressort), box-shadow .2s, opacity .2s;
}
.carte-tache:hover { transform: translateY(-3px); box-shadow: var(--ombre-haute); }
.carte-tache__titre { font: 600 .95rem/1.35 var(--titre); color: var(--prune); }
.carte-tache__note { color: var(--doux); font-size: .85rem; line-height: 1.45; }
.carte-tache__pied { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .15rem; }
.carte-tache__pied .initiales { margin-left: auto; }
.colonne--close .carte-tache { box-shadow: 0 1px 2px rgba(37,26,46,.05); }
.colonne--close .carte-tache__titre { color: var(--doux); }
.carte-tache.est-filtree { display: none; }

/* Pendant un glisser : la carte d'origine devient l'emplacement d'arrivée,
   une copie suit le pointeur. */
.carte-tache.est-pressee { transform: scale(.97); box-shadow: 0 0 0 2px rgba(139,90,155,.35); transition-duration: .3s; }
.carte-tache.est-saisie {
  background: rgba(139,90,155,.07);
  box-shadow: inset 0 0 0 2px rgba(139,90,155,.45);
  animation: none; transform: none;
}
.carte-tache.est-saisie > * { visibility: hidden; }
.carte-tache.est-arrivee { animation: arrivee .7s ease-out; }
.carte-fantome {
  position: fixed; left: 0; top: 0; z-index: 1000; margin: 0;
  pointer-events: none; cursor: grabbing;
  animation: none !important;
  box-shadow: 0 24px 50px rgba(37,26,46,.28), 0 0 0 2px var(--violet);
  transition: none;
  will-change: transform;
}
.carte-fantome.est-posee { transition: transform .2s var(--ressort), box-shadow .2s; box-shadow: var(--ombre); }
body.glisse-en-cours, body.glisse-en-cours * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }

/* Sur téléphone : une colonne à la fois, des onglets pour sauter de l'une à l'autre. */
@media (max-width: 899px) {
  .tableau-onglets {
    display: flex; gap: .45rem; overflow-x: auto; margin: 0 -16px .9rem; padding: 0 16px 2px;
    scrollbar-width: none;
  }
  .tableau-onglets::-webkit-scrollbar { display: none; }
  .tableau-onglets a {
    flex: none; display: flex; align-items: center; gap: .4rem;
    padding: .5rem .95rem; border-radius: 999px;
    background: var(--surface); color: #4A3E55; text-decoration: none;
    font: 600 .88rem var(--titre); box-shadow: var(--ombre);
    transition: background .2s, color .2s;
  }
  .tableau-onglets a small { font-weight: 500; opacity: .6; }
  .tableau-onglets a[aria-current] { background: var(--prune); color: #fff; }
  .filtres { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px .9rem; padding: 0 16px 2px; scrollbar-width: none; }
  .filtre { flex: none; }
  .filtre--discret { margin-left: 0; }
  .recherche-vive { max-width: none; }
  /* Le formulaire d'ajout se resserre en un seul champ tant qu'on n'y écrit pas. */
  .ajout-rapide select, .ajout-rapide input[type=date] { flex: 1 1 8rem; }
  .ajout-rapide .bouton { flex: 1 1 100%; }
  .ajout-rapide:not(:focus-within) select,
  .ajout-rapide:not(:focus-within) input[type=date],
  .ajout-rapide:not(:focus-within) .bouton { display: none; }
  .tableau { grid-auto-columns: min(84vw, 24rem); }
}

/* --- Disponibilités --- */

.plages { border-left: 4px solid var(--couleur); }
.plages__tete { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; flex-wrap: wrap; }
.plage { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; flex-wrap: wrap; }
.plage select { flex: 1 1 8rem; width: auto; }
.plage input[type=time] { flex: 0 0 7.2rem; width: auto; }
.plage span { color: var(--doux); }

/* --- Agenda --- */

.agenda-tete { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.agenda-tete__nav { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.agenda-tete__nav h1 { margin: 0 0 0 .4rem; font-size: 1.15rem; }
.agenda-tete__outils { display: flex; gap: .5rem; align-items: center; }

.segments { display: inline-flex; background: var(--surface); border: 1px solid var(--trait); border-radius: 10px; padding: 3px; }
.segments a { padding: .4rem .75rem; border-radius: 8px; color: var(--doux); text-decoration: none; font-size: .9rem; }
.segments a[aria-current="page"] { background: var(--violet); color: #fff; }

.menu-ajout { position: relative; }
.menu-ajout summary { list-style: none; }
.menu-ajout summary::-webkit-details-marker { display: none; }
.menu-ajout > div {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 15; min-width: 14rem;
  background: var(--surface); border: 1px solid var(--trait); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(37,26,46,.12); padding: .3rem;
}
.menu-ajout > div a { display: block; padding: .6rem .8rem; border-radius: 8px; color: var(--prune); text-decoration: none; }
.menu-ajout > div a:hover { background: var(--lavande); }

/* Grille horaire : masquée sur téléphone, qui reçoit la liste. */
.grille { display: none; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; }
.agenda-liste { display: block; }
@media (min-width: 760px) {
  .grille { display: block; }
  .agenda-liste { display: none; }
}

.grille__entetes { display: grid; grid-template-columns: 3.2rem repeat(var(--colonnes), 1fr); border-bottom: 1px solid var(--trait); }
.grille__entete { display: flex; flex-direction: column; align-items: center; padding: .45rem 0; text-decoration: none; color: var(--doux); font-size: .8rem; }
.grille__entete b { font-family: var(--titre); font-size: 1.15rem; color: var(--prune); }
.grille__entete.est-aujourdhui b { color: #fff; background: var(--violet); border-radius: 50%; width: 2rem; height: 2rem; display: grid; place-items: center; }

.grille__corps { position: relative; display: grid; grid-template-columns: 3.2rem repeat(var(--colonnes), 1fr); overflow-y: auto; max-height: calc(100vh - 13rem); }
.grille__heures { position: relative; }
.grille__heures span { position: absolute; right: .4rem; transform: translateY(-50%); font-size: .72rem; color: var(--pale); }
.grille__heures span:first-child { transform: none; }
.grille__jour {
  position: relative; border-left: 1px solid var(--trait);
  background-image: linear-gradient(to bottom, var(--trait) 1px, transparent 1px);
  background-size: 100% var(--heure);
}
.grille__jour.est-aujourdhui { background-color: rgba(242,235,246,.35); }
.grille__dispo { position: absolute; left: 0; right: 0; background: rgba(139,90,155,.06); border-left: 3px solid rgba(139,90,155,.25); pointer-events: none; }
.grille__ouverture { position: absolute; left: 0; right: 0; background: rgba(63,122,79,.08); border-left: 3px solid rgba(63,122,79,.35); pointer-events: none; }
.grille__case { position: absolute; left: 0; right: 0; height: var(--heure); }
.grille__case:hover { background: rgba(139,90,155,.07); }
.grille__absence {
  position: absolute; left: 0; right: 0; z-index: 2;
  background: repeating-linear-gradient(-45deg, rgba(180,73,47,.07) 0 8px, rgba(180,73,47,.14) 8px 16px);
  display: flex; justify-content: center; pointer-events: none;
}
.grille__absence span { margin-top: .4rem; font-size: .75rem; color: var(--alerte); font-weight: 500; }
.grille__maintenant { position: absolute; left: 0; right: 0; height: 2px; background: var(--alerte); z-index: 4; pointer-events: none; }
.grille__maintenant::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--alerte); }

.evt {
  position: absolute; z-index: 3; overflow: hidden;
  padding: 3px 6px; border-radius: 7px;
  background: color-mix(in srgb, var(--couleur) 16%, white);
  border-left: 3px solid var(--couleur);
  color: var(--prune); text-decoration: none; font-size: .76rem; line-height: 1.3;
}
.evt b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evt span { color: var(--doux); white-space: nowrap; }
.evt:hover { z-index: 5; box-shadow: 0 4px 14px rgba(37,26,46,.18); }
.evt.est-retenu { opacity: .6; border-left-style: dashed; }
/* Ses occupations personnelles, venues de Google : présentes, mais en retrait. */
.evt--google { background: #F3F1F6; color: var(--doux); border-left-style: dotted; }
.evt--google b { font-weight: 500; }

.agenda-liste__jour { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: .8rem; margin-bottom: .7rem; }
.agenda-liste__jour.est-aujourdhui { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet); }
.agenda-liste__jour h2 { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: 1rem; margin-bottom: .5rem; }
.agenda-liste__jour h2 a { color: var(--prune); text-decoration: none; }
.agenda-liste__absence { margin: 0 0 .4rem; padding: .4rem .6rem; border-radius: 8px; color: var(--alerte); background: var(--alerte-fond); font-size: .9rem; }
.agenda-liste__item { display: flex; gap: .8rem; padding: .55rem .6rem; margin-bottom: .35rem; border-radius: 9px; background: var(--creme); border-left: 4px solid var(--couleur); color: var(--encre); text-decoration: none; }
.agenda-liste__item small { display: block; color: var(--doux); font-size: .82rem; }
.agenda-liste__heure { font-family: var(--titre); font-weight: 600; min-width: 3.8rem; color: var(--prune); }
.agenda-liste__heure small { font-family: var(--texte); font-weight: 400; color: var(--pale); }
.agenda-liste__ajout { display: inline-block; margin-top: .2rem; font-size: .88rem; text-decoration: none; }

.mois { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--trait); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; }
.mois__entete { background: var(--surface); text-align: center; padding: .4rem 0; font-size: .78rem; color: var(--doux); }
.mois__jour { background: var(--surface); min-height: 5.5rem; padding: .3rem; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mois__jour.est-hors-mois { background: var(--creme); }
.mois__jour.est-hors-mois .mois__num { color: var(--pale); }
.mois__jour.est-absent { background: repeating-linear-gradient(-45deg, #fff 0 6px, #FBF0EC 6px 12px); }
.mois__num { font-size: .85rem; font-weight: 600; color: var(--prune); text-decoration: none; align-self: flex-start; padding: 0 .3rem; border-radius: 999px; }
.mois__jour.est-aujourdhui .mois__num { background: var(--violet); color: #fff; }
.mois__absence { font-size: .68rem; color: var(--alerte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mois__item { display: block; font-size: .7rem; padding: 1px 4px; border-radius: 4px; background: color-mix(in srgb, var(--couleur) 16%, white); color: var(--prune); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mois__plus { font-size: .7rem; color: var(--doux); text-decoration: none; }
@media (max-width: 560px) {
  .mois__jour { min-height: 3.8rem; }
  .mois__item { font-size: 0; height: 6px; padding: 0; background: var(--couleur); }
}

/* --- Boîte d'envoi --- */

.envoi { background: var(--surface); border: 1px solid var(--trait); border-radius: 10px; margin-bottom: .5rem; }
.envoi summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; padding: .7rem .9rem; cursor: pointer; }
.envoi__dest { font-weight: 500; }
.envoi__sujet { color: var(--doux); flex: 1; min-width: 10rem; }
.envoi summary small { color: var(--pale); }
.envoi pre { white-space: pre-wrap; word-break: break-word; font: .9rem/1.5 var(--texte); margin: 0; padding: 0 .9rem .9rem; color: var(--encre); }
.envoi > p { padding: 0 .9rem; }

/* --- Pages publiques --- */

body.public { background: linear-gradient(160deg, var(--lavande) 0%, var(--creme) 40%) fixed; }
.public-tete { padding: 1rem 16px; max-width: 40rem; margin: 0 auto; }
.public-tete__marque { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--prune); }
.public-tete__marque b { display: block; font-family: var(--titre); font-weight: 600; }
.public-tete__marque small { display: block; color: var(--violet); font-size: .82rem; }
.public-pied { text-align: center; color: var(--doux); font-size: .9rem; padding: 1rem 16px 2rem; }

.types-publics { display: grid; gap: .9rem; }
.type-public { display: block; background: var(--surface); border: 1px solid var(--trait); border-left: 5px solid var(--couleur); border-radius: 14px; padding: 1.1rem 1.2rem; text-decoration: none; color: var(--encre); }
.type-public:hover { box-shadow: 0 6px 20px rgba(37,26,46,.1); }
.type-public h2 { margin: 0 0 .2rem; font-size: 1.2rem; }
.type-public__meta { color: var(--violet-fonce); font-weight: 500; margin: 0 0 .6rem; }
.type-public p { margin: 0 0 .6rem; }
.type-public__suite { color: var(--violet-fonce); font-weight: 500; }

.etape-titre { margin-top: 1.4rem; }
.jours { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem 0 .6rem; scroll-snap-type: x proximity; }
.jour {
  flex: none; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 4.2rem; padding: .55rem 0; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--trait);
  color: var(--doux); text-decoration: none; font-size: .8rem;
}
.jour b { font-family: var(--titre); font-size: 1.35rem; color: var(--prune); line-height: 1.2; }
.jour.est-choisi { background: var(--violet); border-color: var(--violet); color: #f0e6f5; }
.jour.est-choisi b { color: #fff; }

.heures { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: .5rem; }
.heures form { margin: 0; }
.heure {
  display: flex; align-items: center; justify-content: center; width: 100%;
  min-height: 48px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--violet);
  color: var(--violet-fonce); font: 600 1rem var(--titre); text-decoration: none; cursor: pointer;
}
.heure:hover { background: var(--violet); color: #fff; }

.recap { display: flex; flex-direction: column; gap: .1rem; background: var(--surface); border: 1px solid var(--trait); border-left: 5px solid var(--couleur); border-radius: 14px; padding: .9rem 1.1rem; margin: .5rem 0 1.2rem; }
.recap b { font-family: var(--titre); font-weight: 600; color: var(--prune); font-size: 1.05rem; }
.recap span { color: var(--doux); }
.recap.est-annule { opacity: .6; }

.progression { display: flex; list-style: none; padding: 0; margin: 0 0 1.2rem; gap: .3rem; counter-reset: etape; }
.progression li {
  flex: 1; text-align: center; font-size: .8rem; color: var(--pale);
  padding-top: .9rem; border-top: 4px solid var(--trait); counter-increment: etape;
}
.progression li.est-en-cours { color: var(--violet-fonce); border-color: var(--violet); font-weight: 500; }
.progression li.est-faite { color: var(--ok); border-color: var(--ok); }

.formulaire--code input { font: 600 1.6rem var(--titre); letter-spacing: .35em; text-align: center; }
.formulaire--code button { margin-top: .8rem; }
.renvoyer { text-align: center; color: var(--doux); }


/* Page Google Agenda */
.liste-explications { margin: .3rem 0 0; padding-left: 1.1rem; }
.liste-explications li { margin-bottom: .45rem; }
.a-copier { display: block; padding: .55rem .7rem; background: var(--lavande); border-radius: 8px; word-break: break-all; user-select: all; font-size: .85rem; }
details.carte > summary { cursor: pointer; list-style-position: outside; }
details.carte > summary h2 { display: inline; }

/* Ceux qui ont demandé moins d'animation n'en ont pas : ni apparitions, ni
   pulsations. Le glisser-déposer reste, sans ses transitions. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Dans la carte de connexion, le formulaire n'a pas besoin d'un second cadre. */
.connexion .carte { box-shadow: none; border: 0; padding: 0; margin: 0; animation: none; background: transparent; }

/* Une adresse e-mail longue se coupe plutôt que d'élargir la page. */
.liste-contacts li a > span:last-child { min-width: 0; overflow-wrap: anywhere; }

/* L'agenda prend le même habit que les autres cartes. */
.grille, .mois, .agenda-liste__jour { border-color: transparent; box-shadow: var(--ombre); animation: monte .5s var(--ressort) backwards; }
.agenda-tete { animation: glisse-bas .45s var(--ressort) backwards; }
.segments { box-shadow: var(--ombre); border-color: transparent; }
