:root{
  /* palette nommée — Le Moulin Bleu */
  --bleu-moulin:#2C4A8C; --farine:#F7F8FB; --vert-pre:#6A994E; --meule:#8D99AE; --encre:#1B2A41;
  --paper:var(--farine); --ink:var(--encre); --muted:#55677E; --accent:var(--bleu-moulin); --line:#DDE3EC;
  --fond:var(--paper); --texte:var(--ink); --faible:var(--muted); --ligne:var(--line);
  --marque:var(--accent); --sur-marque:#ffffff; --sur-accent:#ffffff;
  --accent-vif:#3A5CA8;
  --accent-faible:rgba(44,74,140,.08); --accent-ligne:rgba(44,74,140,.34);
  --surface:#ffffff; --doux:#44536A;
  --ok:var(--vert-pre); --ok-fond:#ECF2E5; --ok-ligne:#C9D9B9;
  --attente:#A8701F; --attente-fond:#FBF0DD; --attente-ligne:#ECD2A2;
  --alerte:#A1432E; --alerte-fond:#F9E7E2; --alerte-ligne:#E8BCAC;
  --ease:cubic-bezier(.22,1,.36,1);
}

/* signature : calendrier en cases pleines + ruban continu sur les nuits choisies */
.calendrier{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;position:relative}
.calendrier .ent{font-size:10.5px;text-align:center;color:var(--faible);font-weight:600;padding-bottom:3px}
.jour-cal{aspect-ratio:1/.82;border-radius:6px;border:1px solid var(--ligne);background:var(--surface);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer;font-size:12.5px;position:relative;z-index:1;transition:transform .12s,box-shadow .12s}
.jour-cal .n{font-family:"Work Sans",sans-serif;font-weight:600}
.jour-cal .p{font-size:9.5px;color:var(--faible);white-space:nowrap}
@media(max-width:480px){
  .calendrier{gap:4px}
  .jour-cal{font-size:11px}
  .jour-cal .p{font-size:8.5px}
  .panneau-corps{padding:12px}
}
.jour-cal:hover:not(.indispo):not(.hors){transform:translateY(-1px);box-shadow:0 3px 8px rgba(27,42,65,.1);border-color:var(--accent-ligne)}
.jour-cal.hors{opacity:0;pointer-events:none}
.jour-cal.libre{background:var(--surface)}
.jour-cal.select{background:var(--accent);color:#fff;border-color:var(--accent)}
.jour-cal.select .p{color:rgba(255,255,255,.82)}
.jour-cal.entre-deux{background:var(--accent-faible);border-color:var(--accent-ligne)}
.jour-cal.attente{background:var(--attente-fond);border-color:var(--attente-ligne);color:var(--attente)}
.jour-cal.confirme{background:var(--ok-fond);border-color:var(--ok-ligne);color:var(--ok)}
.jour-cal.indispo{background:repeating-linear-gradient(135deg,var(--fond),var(--fond) 4px,var(--ligne) 4px,var(--ligne) 5px);color:var(--faible);cursor:pointer}
.jour-cal.aujourdhui{box-shadow:inset 0 0 0 2px var(--marque)}

/* ruban des nuits : superposé en absolute sur la zone de grille des jours sélectionnés
   (ne doit pas être un item de grille auto-placé, sinon il décale les cases suivantes) —
   sous les cases (z-index 0), comble l'espace entre les jours d'une même semaine, façon aile de moulin */
.lien-nuits{position:absolute;left:0;right:0;top:50%;height:58%;transform:translateY(-50%);z-index:0;background:linear-gradient(90deg,var(--accent),var(--accent-vif));border-radius:999px;margin:0 -3px;pointer-events:none}

.legende-cal{display:flex;gap:14px;flex-wrap:wrap;font-size:11.5px;color:var(--doux);margin-top:14px}
.legende-cal span{display:flex;align-items:center;gap:6px}
.legende-cal i{width:11px;height:11px;border-radius:3px;display:block}

.recap-sejour{background:var(--surface);border:1px solid var(--ligne);border-radius:10px;padding:18px}
.recap-ligne{display:flex;justify-content:space-between;gap:10px;font-size:13.5px;padding:8px 0;border-bottom:1px solid var(--ligne)}
.recap-ligne:last-child{border-bottom:0}
.recap-ligne.total{font-weight:700;font-size:15.5px;padding-top:12px}
.recap-ligne .mono{font-weight:600}

.confirmation{text-align:center;padding:40px 20px;max-width:440px;margin:0 auto}
.confirmation .coche{width:56px;height:56px;border-radius:50%;background:var(--ok-fond);color:var(--ok);display:flex;align-items:center;justify-content:center;margin:0 auto 16px}
.confirmation h2{font-family:"Gelasio",serif}
.confirmation .ref{font-family:"Work Sans",sans-serif;background:var(--fond);border:1px solid var(--ligne);border-radius:7px;padding:9px 14px;display:inline-block;margin:14px 0;font-weight:600}

.anneau{width:88px;height:88px;flex:none}
.anneau circle{fill:none;stroke-width:8}
.anneau .fond{stroke:var(--meule);opacity:.35}
.anneau .trace{stroke:var(--marque);stroke-linecap:round;transition:stroke-dashoffset .6s var(--ease)}

/* vue séjour — photo de la chambre plein cadre + agenda / récap sticky */
.chambre-vitrine{position:relative;margin:-26px -28px 26px;height:300px;overflow:hidden;background:var(--encre)}
.chambre-vitrine img{width:100%;height:100%;object-fit:cover;display:block}
.chambre-vitrine::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(27,42,65,.72) 0%,rgba(27,42,65,.02) 55%)}
.chambre-legende{position:absolute;left:28px;right:28px;bottom:16px;z-index:1;display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}
.chambre-legende strong{color:#fff;font-family:"Gelasio",serif;font-weight:600;font-size:19px;display:block}
.chambre-legende span{color:rgba(255,255,255,.78);font-size:12.5px;display:block;margin-top:3px}
.chambre-legende .credit-chambre{color:rgba(255,255,255,.6);font-size:10.5px;white-space:nowrap}

.sejour-layout{display:grid;grid-template-columns:1fr 320px;gap:22px;align-items:start}
.agenda-cal{position:relative}
.agenda-cal::before,.agenda-cal::after{content:"";position:absolute;inset:0;border:1px solid var(--ligne);border-radius:10px;background:var(--surface);z-index:-1}
.agenda-cal::before{transform:translate(5px,6px);opacity:.55}
.agenda-cal::after{transform:translate(10px,12px);opacity:.3}
.recap-sticky{position:sticky;top:20px}
@media(max-width:980px){
  .chambre-vitrine{margin:-18px -16px 20px;height:220px}
  .chambre-legende{left:18px;right:18px}
  .sejour-layout{grid-template-columns:1fr}
  .recap-sticky{position:static}
  .agenda-cal::before,.agenda-cal::after{display:none}
}

/* aperçu vivant — écran de connexion */
.av-cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.av-cal-ent{font-size:9px;text-align:center;color:var(--faible);font-weight:600}
.av-cal i{aspect-ratio:1;border-radius:4px;border:1px solid var(--ligne);background:var(--surface);display:flex;align-items:center;justify-content:center;font-style:normal}
.av-cal i.occ{background:var(--ok-fond);border-color:var(--ok-ligne)}
.av-cal i.av-reserve{color:transparent;font-weight:900;background:var(--surface);border-color:var(--ligne)}
.av-hero-actif .av-cal i.av-reserve{animation:avReserver 1s .6s cubic-bezier(.22,1,.36,1) both}
@keyframes avReserver{
  0%{transform:scale(1)}
  45%{transform:scale(1.16)}
  70%,100%{background:var(--accent);border-color:var(--accent);color:var(--surface);transform:scale(1)}
}
.av-legende{margin-top:14px;font-size:12px;color:var(--faible);text-align:center}
@media(prefers-reduced-motion:reduce){.av-hero-actif .av-cal i.av-reserve{animation:none;background:var(--accent);border-color:var(--accent);color:var(--surface)}}
