/* Morganegmp Studio : style aligné sur morganegmp.fr */
:root {
  --fond: #F8F6F5;
  --carte: #FFFFFF;
  --texte: #4C4C4C;
  --texte-doux: #6E6E6E;
  --menu: #888888;
  --ligne: #ECE9E7;
  --alterne: #F3F1EF;
  --passe: #8A8A8A;
  --alerte: #A33A2E;
  --titres: 'Josefin Sans', 'Arial Nova Light', Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: var(--texte); font-family: var(--titres); font-size: 16px; line-height: 1.5; }
a { color: var(--texte); }
a:hover { color: #1F1F1F; }
img { max-width: 100%; }
img[src$="logo.png"] { mix-blend-mode: multiply; }

.caps { font-weight: 600; letter-spacing: 3px; text-transform: uppercase; font-size: 13px; }
h1, h2, h3 { font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin: 0; color: var(--texte); }
h1 { font-size: 28px; }
h2 { font-size: 18px; }
.doux { color: var(--texte-doux); }
.petit { font-size: 13px; }

/* boutons */
.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 3px 22px 0;
  border: 1px solid var(--texte); background: var(--texte); color: #fff; text-decoration: none; cursor: pointer;
  font-family: var(--titres); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }
.btn:hover { background: #1F1F1F; color: #fff; }
.btn.clair { background: transparent; color: var(--texte); }
.btn.clair:hover { background: var(--texte); color: #fff; }
.btn.danger { background: transparent; color: var(--alerte); border-color: var(--alerte); }
.btn-lien { background: none; border: none; padding: 0; color: var(--texte); text-decoration: underline; cursor: pointer; font: inherit; }

/* formulaires */
label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--menu); margin-bottom: 6px; }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #D6D2CF; background: #fff;
  font-family: inherit; font-size: 16px; color: var(--texte); }
textarea { min-height: 96px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--texte); outline-offset: 2px; }
.champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.champ-large { grid-column: 1 / -1; }
.champs > div { display: flex; flex-direction: column; min-width: 0; }
.champs label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grille-form { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.aide { margin: 6px 0 0; font-size: 13px; color: var(--texte-doux); }
.erreur { color: var(--alerte); font-weight: 600; }
.ok { color: #3E6B4A; }

/* ---------------- admin */
.admin { display: flex; min-height: 100vh; }
.nav { width: 240px; flex: none; background: var(--carte); border-right: 1px solid var(--ligne); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.nav-logo { display: block; padding: 4px 10px 18px; }
.nav-logo img { width: 84px; display: block; }
.nav nav { display: flex; flex-direction: column; gap: 2px; }
.nav-groupe { margin: 18px 12px 6px; font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--menu); }
.nav-lien { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 6px; text-decoration: none; color: var(--texte);
  font-family: inherit; font-size: 15px; background: none; border: none; width: 100%; cursor: pointer; text-align: left; }
.nav-lien span:first-of-type { flex: 1; padding-top: 2px; }
.nav-lien:hover { background: var(--alterne); color: #1F1F1F; }
.nav-lien.actif { background: #ECE7E2; font-weight: 600; color: #1F1F1F; }
.nav-lien .ico { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav-lien .pastille { flex: none; }
.nav-bas { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--ligne); display: flex; flex-direction: column; gap: 2px; }
.nav-bas .nav-lien { font-size: 14px; color: var(--texte-doux); }
.nav-mobile { display: none; }
.admin main { flex: 1; min-width: 0; padding: 36px clamp(16px, 4vw, 48px); display: flex; flex-direction: column; gap: 24px; max-width: 1280px; }
.onglets { display: flex; flex-wrap: wrap; gap: 4px 26px; border-bottom: 1px solid var(--ligne); margin-top: -8px; }
.onglets a { min-height: 44px; display: flex; align-items: center; padding-top: 3px; text-decoration: none; color: var(--menu); font-size: 13px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; border-bottom: 2px solid transparent; margin-bottom: -1px; gap: 8px; }
.onglets a:hover { color: var(--texte); }
.onglets a[aria-current="page"] { color: var(--texte); border-bottom-color: var(--texte); }
@media (max-width: 900px) {
  .admin { flex-direction: column; }
  .nav-mobile { display: block; position: sticky; top: 0; z-index: 20; background: var(--carte); border-bottom: 1px solid var(--ligne); }
  .nav-mobile summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; cursor: pointer; font-weight: 600; }
  .nav-mobile summary::-webkit-details-marker { display: none; }
  .nav-mobile .ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
  .nav { display: none; width: auto; height: auto; position: static; border-right: none; border-bottom: 1px solid var(--ligne); }
  .nav.ouvert { display: flex; }
  .admin main { padding: 20px 16px; }
}
.entete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.carte { background: var(--carte); padding: 24px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.kpi { background: var(--carte); padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.kpi span:first-child { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--menu); }
.kpi span:nth-child(2) { font-size: 30px; font-weight: 300; }
.tableau { background: var(--carte); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; padding: 16px; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; border-bottom: 2px solid var(--texte); white-space: nowrap; }
td { padding: 13px 16px; vertical-align: top; }
tbody tr:nth-child(even) { background: var(--alterne); }
tr.passe td { color: var(--passe); font-style: italic; }
td.num, th.num { text-align: right; white-space: nowrap; }
.tag { display: inline-block; padding: 3px 10px 1px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; border: 1px solid #D6D2CF; white-space: nowrap; }
.tag.fort { background: var(--texte); color: #fff; border-color: var(--texte); }
.tag.alerte { color: var(--alerte); border-color: var(--alerte); }
.lien-copie { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lien-copie input { flex: 1 1 320px; font-size: 14px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.vide { padding: 32px; text-align: center; color: var(--texte-doux); }
.login { max-width: 400px; margin: 10vh auto; padding: 40px; background: var(--carte); display: flex; flex-direction: column; gap: 18px; }
.login img { width: 110px; align-self: center; }

/* ---------------- galerie publique */
.site-entete { background: var(--carte); padding: 16px 3%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.site-entete img { width: 110px; display: block; }
.site-entete nav { display: flex; flex-wrap: wrap; gap: 28px; }
.site-entete nav a { text-decoration: none; color: var(--menu); }
.page { max-width: 1110px; margin: 48px auto; padding: 0 16px; }
.page .carte { padding: 40px; display: flex; flex-direction: column; gap: 28px; }
.intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.intro .texte { display: flex; flex-direction: column; gap: 12px; max-width: 620px; }
.filtres { display: flex; flex-wrap: wrap; column-gap: 28px; border-bottom: 1px solid var(--ligne); }
.partie-titre { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.partie-titre a { color: var(--menu); }
.partie-titre a:hover { color: var(--texte); }
.filtres button { min-height: 44px; padding: 4px 0 0; border: none; background: none; cursor: pointer; font-family: inherit; color: var(--menu);
  font-weight: 600; letter-spacing: 3px; text-transform: uppercase; font-size: 13px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.filtres button[aria-pressed="true"] { color: var(--texte); border-bottom-color: var(--texte); }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px; }
.photo { position: relative; margin: 0; aspect-ratio: 2 / 3; background: #E7E2DD; overflow: hidden; }
.photo > button.voir { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.coeur { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: none; border-radius: 22px; background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center; cursor: pointer; }
.coeur svg { width: 20px; height: 20px; fill: none; stroke: var(--texte); stroke-width: 1.8; }
.coeur[aria-pressed="true"] svg { fill: var(--texte); }
.dl-une { position: absolute; bottom: 8px; right: 8px; width: 44px; height: 44px; border-radius: 22px; background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; }
.photo:hover .dl-une, .dl-une:focus-visible { opacity: 1; }
.dl-une svg { width: 18px; height: 18px; fill: none; stroke: var(--texte); stroke-width: 1.8; }
.cache { display: none !important; }
.site-pied { background: var(--carte); padding: 28px 3%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--menu); }
.bandeau-apercu { background: var(--texte); color: #fff; text-align: center; padding: 8px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }

/* visionneuse */
.visionneuse { position: fixed; inset: 0; background: rgba(20,20,20,.94); display: flex; align-items: center; justify-content: center; z-index: 10; }
.visionneuse img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.visionneuse button { position: absolute; width: 52px; height: 52px; border: none; border-radius: 26px; background: rgba(255,255,255,.9); cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.visionneuse svg { width: 22px; height: 22px; fill: none; stroke: #1F1F1F; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visionneuse .fermer { top: 16px; right: 16px; }
.visionneuse .prec { left: 16px; top: 50%; transform: translateY(-50%); }
.visionneuse .suiv { right: 16px; top: 50%; transform: translateY(-50%); }
.visionneuse .dl-v { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); width: 52px; height: 52px; border-radius: 26px;
  background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; }

@media (max-width: 640px) {
  .page { margin: 16px auto; padding: 0 8px; }
  .page .carte { padding: 20px; }
  .grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-une { opacity: 1; }
  h1 { font-size: 22px; }
}

/* réservation */
.form-resa { display: flex; flex-direction: column; gap: 20px; max-width: 900px; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.accord { display: flex; gap: 12px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 400; color: var(--texte); cursor: pointer; white-space: normal; }
.accord input { width: 22px; min-height: 22px; height: 22px; margin-top: 2px; flex: none; }
.pastille { display: inline-block; min-width: 20px; padding: 2px 6px 0; border-radius: 10px; background: var(--texte); color: #fff; font-size: 11px; letter-spacing: 0; text-align: center; }

/* ---------------- réservation en ligne */
.etapes { list-style: none; display: flex; gap: 0; margin: 0 0 8px; padding: 0; counter-reset: none; }
.etapes li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; color: var(--menu); font-size: 13px; text-align: center; }
.etapes li::before { content: ""; position: absolute; top: 14px; left: -50%; width: 100%; height: 1px; background: var(--ligne); z-index: 0; }
.etapes li:first-child::before { display: none; }
.etapes .rond { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 14px; border: 1px solid #D6D2CF; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; padding-top: 2px; }
.etapes .en-cours { color: var(--texte); font-weight: 600; }
.etapes .en-cours .rond { background: var(--texte); border-color: var(--texte); color: #fff; }
.etapes .fait .rond { background: #E7E2DD; border-color: #E7E2DD; color: var(--texte); }
.offres { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.offre { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--ligne); text-decoration: none; color: var(--texte); background: #fff; transition: border-color .15s; }
.offre:hover, .offre:focus-visible { border-color: var(--texte); }
.offre h2 { font-size: 18px; }
.offre .infos { margin: 0; color: var(--texte-doux); }
.offre .desc { margin: 0; font-size: 15px; white-space: pre-line; }
.offre .prochain { margin: 0; font-size: 13px; color: var(--texte-doux); flex: 1; }
.offre .tag { align-self: flex-start; }
.offre .btn { align-self: flex-start; }
.resa-grille { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.calendrier { flex: 999 1 520px; min-width: 0; }
.creneaux { flex: 1 1 280px; display: flex; flex-direction: column; gap: 14px; }
.creneaux h2 { font-size: 16px; }
.cal-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cal-tete h2 { font-size: 18px; text-align: center; flex: 1; }
.cal-nav { width: 44px; height: 44px; border: 1px solid #D6D2CF; display: flex; align-items: center; justify-content: center; font-size: 24px; text-decoration: none; color: var(--texte); }
.cal-nav.inactif { color: #D6D2CF; }
table.cal { table-layout: fixed; border: 1px solid var(--ligne); }
table.cal th { text-align: center; border-bottom: 1px solid var(--ligne); padding: 10px 4px; font-size: 11px; }
table.cal td { height: 76px; padding: 0; border: 1px solid var(--ligne); vertical-align: top; background: #fff; }
table.cal tbody tr:nth-child(even) { background: none; }
table.cal td .num { display: block; padding: 6px 8px; text-align: right; font-size: 14px; }
table.cal td.hors .num, table.cal td.passe .num { color: #C4BFBB; }
table.cal td.dispo a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--texte); }
table.cal td.dispo .nb { margin: auto 6px 6px; padding: 3px 4px 1px; background: #E7E2DD; font-size: 11px; text-align: center; letter-spacing: .5px; }
table.cal td.dispo a:hover .nb { background: var(--texte); color: #fff; }
table.cal td.choisi { outline: 2px solid var(--texte); outline-offset: -2px; }
table.cal td.choisi .nb { background: var(--texte); color: #fff; }
.liste-creneaux { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.creneau { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid #D6D2CF; text-decoration: none; color: var(--texte); background: #fff; }
.creneau .heure { font-size: 22px; font-weight: 600; }
.creneau:hover, .creneau:focus-visible { border-color: var(--texte); background: var(--texte); color: #fff; }
.creneau:hover .doux, .creneau:focus-visible .doux { color: #eee; }
.recap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--ligne); }
@media (max-width: 640px) {
  .etapes .label { display: none; }
  table.cal td { height: 56px; }
  table.cal td.dispo .nb { font-size: 0; height: 8px; padding: 0; margin: auto 8px 8px; background: var(--texte); }
}
.creneau-admin { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--ligne); background: #fff; }
.creneau-admin.pris { background: var(--alterne); border-color: #D6D2CF; }
.passe-bloc { opacity: .6; font-style: italic; }
table.horaires td { padding: 8px 10px; vertical-align: middle; }
.plage { display: flex; align-items: center; gap: 8px; }
.plage input { width: auto; flex: 1 1 110px; min-width: 0; }

/* choix du dossier de galerie */
.choix-dossier { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.choix-dossier legend { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--menu); margin-bottom: 6px; padding: 0; }
.filtres-dossier { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.filtres-dossier > div { display: flex; flex-direction: column; min-width: 0; }
.liste-dossiers { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow-y: auto; padding: 2px; }
.dossier { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 14px;
  border: 1px solid #D6D2CF; background: #fff; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--texte); margin: 0; min-height: 44px; white-space: normal; flex: none; overflow: visible; }
.dossier input { grid-row: 1 / 3; width: 20px; height: 20px; min-height: 20px; margin: 0; accent-color: var(--texte); }
.dossier .d-nom { font-size: 16px; }
.dossier .d-infos { font-size: 13px; color: var(--texte-doux); }
.dossier:has(input:checked) { border-color: var(--texte); background: var(--alterne); }
.dossier:hover { border-color: var(--texte); }

.option { display: flex; gap: 12px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 15px; color: var(--texte);
  white-space: normal; cursor: pointer; padding: 12px 14px; border: 1px solid var(--ligne); margin: 0; overflow: visible; }
.option:has(input:checked) { border-color: var(--texte); background: var(--alterne); }
.option input { width: 20px; height: 20px; min-height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--texte); }

/* pied de page public */
.site-pied { align-items: center; }
.site-pied .pied-mail { color: var(--texte-doux); font-size: 14px; letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .site-pied { flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-pied .caps { letter-spacing: 2px; font-size: 12px; }
}
[hidden] { display: none !important; }

.nav-sous { display: flex; flex-direction: column; margin: 2px 0 6px 43px; border-left: 1px solid var(--ligne); }
.nav-sous a { padding: 8px 12px; font-size: 14px; color: var(--texte-doux); text-decoration: none; border-left: 2px solid transparent; margin-left: -1px; }
.nav-sous a:hover { color: var(--texte); }
.nav-sous a.actif { color: #1F1F1F; font-weight: 600; border-left-color: var(--texte); }

/* menu du site, commun à toutes les pages publiques */
.haut { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 28px; border-bottom: 1px solid #efebe8; }
.haut img { height: 58px; display: block; }
.haut nav { display: flex; gap: 22px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.haut nav::-webkit-scrollbar { display: none; }
.haut nav a { white-space: nowrap; font-size: 12px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: #6E6E6E; text-decoration: none; padding: 12px 0 9px; }
.haut nav a:hover { color: var(--texte); }
.haut nav a.btn { color: #fff; padding: 12px 18px 9px; }
@media (max-width: 860px) {
  .haut { padding: 8px 14px; }
  .haut img { height: 44px; }
  .haut nav { gap: 16px; }
  .haut nav a.btn { display: none; }
}

.haut .menu-large { display: flex; gap: 22px; align-items: center; }
.menu-tel { display: none; }
@media (max-width: 860px) {
  .haut { padding: 8px 16px; }
  .haut .menu-large { display: none; }
  .menu-tel { display: flex; align-items: center; gap: 14px; }
  .menu-tel > .btn { font-size: 11px; letter-spacing: 2px; padding: 11px 14px 8px; color: #fff; text-decoration: none; }
  .menu-tel summary { list-style: none; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 10px; cursor: pointer; }
  .menu-tel summary::-webkit-details-marker { display: none; }
  .menu-tel summary span { display: block; height: 2px; background: var(--texte); transition: transform .2s, opacity .2s; }
  .menu-tel details[open] summary span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-tel details[open] summary span:nth-child(2) { opacity: 0; }
  .menu-tel details[open] summary span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .menu-tel nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid #efebe8;
    box-shadow: 0 12px 24px rgba(0,0,0,.08); display: flex; flex-direction: column; align-items: stretch; gap: 0; overflow: visible; padding: 8px 0 14px; }
  .menu-tel nav a { padding: 16px 24px 13px; font-size: 14px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--texte); text-decoration: none; }
  .menu-tel nav a + a { border-top: 1px solid #f3f0ed; }
}

/* suivi des séances */
.suivi { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.suivi li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--ligne); }
.suivi li:first-child { border-top: none; }
.suivi .coche { flex: none; width: 26px; height: 26px; border: 1.5px solid var(--texte); border-radius: 6px; background: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1; cursor: pointer; padding: 0; color: var(--texte); }
span.coche { border: none; cursor: default; }
.suivi .corps { flex: 1; min-width: 0; }
.suivi .quand { font-size: 13px; color: var(--texte-doux); margin-left: 6px; }
.suivi li.fait .lib, .suivi li.fait strong { text-decoration: line-through; color: var(--passe); font-style: italic; }
.suivi li.fait .coche { background: #ECE7E2; }
.suivi li.retard .quand { color: var(--texte); font-weight: 600; }
.suivi details summary { margin-top: 4px; }

/* ---- admin sur téléphone ---- */
.lien-bloc { color: inherit; text-decoration: none; display: block; }
.lien-bloc:hover strong { text-decoration: underline; }
.d-bloc { display: block; margin: 2px 0 0 !important; }
.bloc-liste { display: flex; flex-direction: column; gap: 6px; }
.bloc-liste h2 { margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.compte { font-size: 12px; background: #ECE7E2; border-radius: 10px; padding: 3px 9px 1px; letter-spacing: 0; }
.barre-bas { display: none; }
@media (max-width: 900px) {
  .nav-mobile { display: none !important; }
  .admin main { padding-bottom: 96px; }
  .barre-bas { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
    border-top: 1px solid var(--ligne); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .barre-bas a, .barre-bas button { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px;
    font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .5px; color: var(--texte-doux); text-decoration: none; background: none; border: none; cursor: pointer; }
  .barre-bas .ico { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .barre-bas a.actif { color: #1F1F1F; }
  .barre-bas .pastille { position: absolute; top: 0; left: calc(50% + 6px); font-size: 10px; min-width: 18px; padding: 2px 5px 0; }
  .nav.ouvert { display: flex; position: relative; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi { padding: 14px 16px; gap: 4px; }
  .kpi span:first-child { font-size: 10px; letter-spacing: 1px; }
  .kpi span:nth-child(2) { font-size: 22px; }
  .kpi .aide { display: none; }
  .admin h1 { font-size: 24px; }
  .entete .actions .btn { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 640px) {
  .tableau { background: transparent; overflow: visible; }
  table.cartes-tel thead { display: none; }
  table.cartes-tel, table.cartes-tel tbody { display: block; }
  table.cartes-tel tr { display: flex; flex-wrap: wrap; gap: 2px 14px; background: var(--carte); padding: 14px 16px; margin-bottom: 8px; border: none; }
  table.cartes-tel tr:nth-child(even) { background: var(--carte); }
  table.cartes-tel td { display: block; padding: 0; border: none; font-size: 14px; text-align: left !important; }
  table.cartes-tel td:first-child { flex-basis: 100%; font-size: 16px; font-weight: 600; }
  table.cartes-tel td:empty { display: none; }
  table.cartes-tel td[data-label]:not(:first-child)::before { content: attr(data-label) " : "; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--texte-doux); }
}

/* ---- couleurs de l'espace admin (vert sauge, gris, noir ; ocre pour les retards) ---- */
body.espace-admin {
  --vert: #5E7B60; --vert-fonce: #44604A; --vert-clair: #E6EEE4; --vert-pale: #F2F6F0;
  --ocre: #A8742A; --ocre-clair: #F7EEDD;
}
.espace-admin .btn:not(.clair):not(.danger) { background: var(--vert-fonce); border-color: var(--vert-fonce); }
.espace-admin .btn:not(.clair):not(.danger):hover { background: #2F4734; border-color: #2F4734; }
.espace-admin .btn.clair:hover { background: var(--vert-fonce); border-color: var(--vert-fonce); }
.espace-admin .pastille { background: var(--vert); }
.espace-admin .nav-lien.actif { background: var(--vert-clair); color: var(--vert-fonce); box-shadow: inset 3px 0 0 var(--vert); }
.espace-admin .nav-sous a.actif { border-left-color: var(--vert); color: var(--vert-fonce); }
.espace-admin .barre-bas a.actif { color: var(--vert-fonce); }
.espace-admin .barre-bas a.actif .ico { stroke-width: 2; }
.espace-admin .onglets a[aria-current="page"] { color: var(--vert-fonce); border-bottom-color: var(--vert); }
.espace-admin .kpi { border-top: 3px solid var(--vert-clair); }
.espace-admin .kpi span:nth-child(2) { color: var(--vert-fonce); }
.espace-admin .ok { color: var(--vert-fonce); background: var(--vert-pale); padding: 10px 14px; border-left: 3px solid var(--vert); }
.espace-admin h2 { color: #3F3F3F; }
.espace-admin a.lien-bloc strong, .espace-admin .tableau td:first-child a { color: var(--vert-fonce); }
.espace-admin .compte { background: var(--vert-clair); color: var(--vert-fonce); }
.espace-admin .tag.fort { background: var(--vert-fonce); border-color: var(--vert-fonce); }
/* checklist */
.espace-admin .suivi .coche { border-color: var(--vert); }
.espace-admin .suivi li.fait .coche { background: var(--vert); border-color: var(--vert); color: #fff; }
.espace-admin .suivi li.retard { background: linear-gradient(90deg, var(--ocre-clair), transparent 70%); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-left: 3px solid var(--ocre); }
.espace-admin .suivi li.retard .quand { color: var(--ocre); }
.espace-admin #mails .suivi .coche, .espace-admin span.coche { color: var(--vert-fonce); }
.espace-admin .option:has(input:checked) { border-color: var(--vert); background: var(--vert-pale); }
.espace-admin input:focus, .espace-admin select:focus, .espace-admin textarea:focus { outline: 2px solid var(--vert); outline-offset: 0; border-color: var(--vert); }
.espace-admin input[type=checkbox], .espace-admin input[type=radio] { accent-color: var(--vert); }
/* statuts de paiement colorés (tableaux et fiches) */
.statut { display: inline-block; padding: 2px 10px 0; border-radius: 12px; font-size: 13px; white-space: nowrap; }
.statut-paye, .statut-offert, .statut-bon-cadeau { background: var(--vert-clair); color: var(--vert-fonce); }
.statut-acompte-recu, .statut-acompte-en-attente { background: #EEF0E4; color: #5B6236; }
.statut-a-regler { background: var(--ocre-clair); color: var(--ocre); }
.statut-annule { background: #EFEDEB; color: var(--passe); font-style: italic; }

/* boutons de contact rapides */
.contacts { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 2px 14px 0; border: 1px solid var(--ligne); border-radius: 20px;
  background: var(--carte); color: var(--texte); text-decoration: none; font-size: 14px; }
.contact-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-btn:hover { border-color: var(--vert, #4C4C4C); color: var(--vert-fonce, #1F1F1F); }
.contact-btn.discret { border-style: dashed; }
@media (max-width: 640px) { .contact-btn span { display: none; } .contact-btn { padding: 2px 11px 0; } .contact-btn.discret { display: none; } }

/* séances : onglets Toutes / À venir / Passées */
.onglets-quand { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.onglets-quand a { padding: 8px 16px; border: 1px solid var(--ligne); border-radius: 999px; text-decoration: none; color: inherit; background: #fff; min-height: 40px; display: inline-flex; align-items: center; gap: 8px; }
.onglets-quand a span { font-size: .8em; opacity: .7; }
.onglets-quand a.actif { background: var(--vert, #46604c); border-color: var(--vert, #46604c); color: #fff; }

/* mail à relire avant envoi */
.a-valider { margin: 8px 0 0; padding: 12px 14px; border: 1px dashed var(--ocre, #b5813a); border-radius: 10px; background: #fffaf2; display: flex; flex-direction: column; gap: 10px; }
.apercu-mail .mail-lu { margin-top: 8px; padding: 12px; background: #fff; border: 1px solid var(--ligne); border-radius: 8px; line-height: 1.5; }

/* onglets qui défilent sur téléphone au lieu de s'empiler */
/* sur téléphone : les sections en pastilles, toutes visibles d'un coup */
@media (max-width: 760px) {
  .onglets-defilants { border-bottom: none; gap: 8px; margin-top: 0; }
  .onglets-defilants a { min-height: 40px; padding: 6px 14px; border: 1px solid var(--ligne); border-radius: 999px; background: #fff;
    letter-spacing: 1px; font-size: 12px; }
  .espace-admin .onglets-defilants a[aria-current="page"] { background: var(--vert); border-color: var(--vert); color: #fff; }
}
/* libellés longs : sur deux lignes plutôt que coupés */
.grille-form label { white-space: normal; overflow: visible; }

/* avancement d'une séance */
.avancement { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.avancement .barre { flex: 1; height: 8px; border-radius: 99px; background: #E7E4DE; overflow: hidden; min-width: 60px; }
.avancement .barre span { display: block; height: 100%; background: var(--vert, #46604C); border-radius: 99px; }
.avancement.a-finir .barre span { background: var(--ocre, #B5813A); }
.avancement .pct { font-size: 12px; font-variant-numeric: tabular-nums; min-width: 38px; text-align: right; }
.avancement.fini .pct { color: var(--vert-fonce, #2F4A36); font-weight: 600; }

.programmer-envoi { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border: 1px dashed var(--ligne); border-radius: 10px; }

/* clients : recherche, badges, icônes de ligne */
.barre-recherche { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 16px; }
.champ-recherche { position: relative; flex: 1; min-width: 240px; }
.champ-recherche span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: .6; }
.champ-recherche input { padding-left: 36px; width: 100%; }
.barre-recherche .onglets-quand { margin: 0; }
.badge-fidele { display: inline-block; margin-top: 4px; padding: 2px 9px; border-radius: 999px; background: #F6F1E6; color: #7A5418; font-size: 11px; letter-spacing: .5px; font-weight: 400; vertical-align: middle; }
.icones-ligne { white-space: nowrap; text-align: right; }
.icones-ligne form { display: inline; }
.icone { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; border: none; background: none; cursor: pointer; font-size: 16px; color: #666; text-decoration: none; border-radius: 8px; }
.icone:hover { background: rgba(0,0,0,.05); }
.encart-noel { display: flex; flex-direction: column; gap: 12px; background: #FBF7EF; border: 1px solid var(--ocre, #B5813A); margin-bottom: 16px; }

/* liste des clients : une ligne, toujours la même hauteur (ordinateur) */
@media (min-width: 761px) {
  #table-clients { table-layout: fixed; width: 100%; }
  #table-clients th:nth-child(1) { width: 25%; } #table-clients th:nth-child(2) { width: 17%; }
  #table-clients th:nth-child(3) { width: 22%; } #table-clients th:nth-child(4) { width: 8%; }
  #table-clients th:nth-child(5) { width: 10%; } #table-clients th:nth-child(6) { width: 11%; }
  #table-clients th { white-space: nowrap; letter-spacing: 1.5px; } #table-clients th:nth-child(7) { width: 84px; }
  #table-clients tbody tr { height: 56px; }
  #table-clients td { vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: 0; padding-bottom: 0; }
  #table-clients td.col-contact { overflow: visible; text-overflow: clip; }
}
#table-clients .cadeau { font-size: 13px; }
#table-clients .num-tel { margin-right: 4px; font-variant-numeric: tabular-nums; }
.contacts-icones { display: inline-flex; gap: 2px; vertical-align: middle; }
.ic, .icone { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; color: #6b6b6b; background: none; border: none; cursor: pointer; text-decoration: none; padding: 0; }
.ic:hover, .icone:hover { background: rgba(70, 96, 76, .10); color: var(--vert, #46604C); }
.ic svg, .icone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icones-ligne { text-align: right; overflow: visible !important; }

.tri, .tri-reset { background: none; border: none; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; }
.tri:hover { color: var(--vert, #46604C); }
.tri span { font-size: 10px; margin-left: 2px; }
.tri-reset { font-size: 11px; color: var(--vert, #46604C); text-decoration: underline; white-space: nowrap; }
.tri-info { margin: 0 0 8px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
@media (max-width: 760px) { .tri-info { display: none; } }

.form-fidele { display: inline; }
.etoile { background: none; border: none; padding: 0 6px 0 0; margin: 0; cursor: pointer; font-size: 18px; line-height: 1; color: #C9C4BA; vertical-align: -1px; }
.etoile.on { color: #C8962E; }
.etoile:hover { color: #B5813A; transform: scale(1.15); }

/* fêtes & mini sessions */
.fetes { display: flex; flex-direction: column; }
.fete { border-bottom: 1px solid var(--ligne); }
.fete.active { background: #F3F6F2; }
.fete-ligne { display: grid; grid-template-columns: 110px 1fr 230px 130px; gap: 10px; align-items: center; padding: 12px 16px; min-height: 52px; }
.fete-date { font-variant-numeric: tabular-nums; }
.fete.active .fete-date, .fete.active .fete-nom { font-weight: 600; }
.fete-comm { font-size: 12px; color: var(--vert, #46604C); }
.fete-detail { padding: 4px 16px 16px 136px; display: flex; flex-direction: column; gap: 10px; }
.coche-mini { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.suivi.comm li { padding: 4px 0; }
.quand-comm { display: inline-block; min-width: 86px; font-variant-numeric: tabular-nums; color: #666; }
.texte-comm { white-space: pre-line; background: #fff; border: 1px solid var(--ligne); border-radius: 8px; padding: 10px; margin: 6px 0; }
.reponses dt { font-weight: 600; margin-top: 8px; } .reponses dd { margin: 2px 0 0; }
.attente-ligne { padding: 10px 0; border-top: 1px solid var(--ligne); }
@media (max-width: 760px) {
  .fete-ligne { grid-template-columns: 90px 1fr; } .fete-etat, .fete-comm { grid-column: 2; }
  .fete-detail { padding: 4px 12px 16px; }
}
.coche-mini { text-transform: none; letter-spacing: 0; font-size: 14px; color: inherit; font-weight: 400; margin: 0; }
.coche-mini input[type=checkbox] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; accent-color: var(--vert, #46604C); }
.suivi.comm li.fait .corps { color: #888; font-style: italic; }

.filtres-revenus { display: flex; gap: 14px; flex-wrap: wrap; align-items: end; margin: 0 0 14px; }
.filtres-revenus label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; margin: 0; }
.filtres-revenus select { width: auto; min-width: 160px; }
.table-mois .mois-tete { cursor: pointer; }
.table-mois .mois-tete:hover td { background: #eef2ec; }
.table-mois .fleche { display: inline-block; transition: transform .15s; margin-right: 6px; }
.table-mois .mois-bloc.ouvert .fleche { transform: rotate(90deg); }
.table-mois .mois-detail { display: none; }
.table-mois .mois-bloc.ouvert .mois-detail { display: table-row; }
.table-mois .mois-detail td { font-size: .92em; }
.fete-site { display: flex; gap: 16px; align-items: flex-start; margin: 4px 0 12px; padding: 12px; background: #fff; border: 1px solid var(--ligne); }
.fete-photo { width: 160px; aspect-ratio: 4/3; background: #f1f1ef; display: flex; align-items: center; justify-content: center; flex: 0 0 160px; overflow: hidden; }
.fete-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .fete-site { flex-direction: column; } .fete-photo { width: 100%; flex-basis: auto; } }
@media (min-width: 761px) {
  #table-clients th:nth-child(1) { width: 22%; } #table-clients th:nth-child(2) { width: 16%; }
  #table-clients th:nth-child(3) { width: 20%; } #table-clients th:nth-child(4) { width: 7%; }
  #table-clients th:nth-child(5) { width: 9%; } #table-clients th:nth-child(6) { width: 10%; }
  #table-clients th:nth-child(7) { width: 10%; } #table-clients th:nth-child(8) { width: 84px; }
}
@media (min-width: 761px) {
  #table-clients th:nth-child(1) { width: 21%; } #table-clients th:nth-child(2) { width: 15%; }
  #table-clients th:nth-child(3) { width: 19%; } #table-clients th:nth-child(4) { width: 8%; }
  #table-clients th:nth-child(5) { width: 9%; } #table-clients th:nth-child(6), #table-clients th:nth-child(7) { width: 11%; }
  #table-clients td:nth-child(6), #table-clients td:nth-child(7), #table-clients th:nth-child(6), #table-clients th:nth-child(7) { padding-left: 8px; padding-right: 8px; }
}

.fete.active > .fete-ligne { cursor: pointer; }
.fete.active > .fete-ligne:hover { background: #eef2ec; }
.fete.active > .fete-detail { display: none; }
.fete.active.ouvert > .fete-detail { display: flex; }
.fete .fleche { display: inline-block; width: 14px; transition: transform .15s; color: #888; }
.fete.ouvert .fleche { transform: rotate(90deg); }
.fete-comm strong { color: #8a5a00; font-weight: 600; }
.fete-site-bas { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.fete-site-bas .btn { white-space: nowrap; }
.fete-site > .champs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; align-items: start; }
.fete-site > .champs .fete-site-bas { grid-column: 1 / -1; }
@media (max-width: 760px) { .fete-site > .champs { grid-template-columns: 1fr; } }
.fete .fleche, .table-mois .fleche { transform: none !important; }
.fete .fleche::before, .table-mois .fleche::before { content: "▸"; }
.fete.ouvert .fleche::before, .table-mois .mois-bloc.ouvert .fleche::before { content: "▾"; }
.fete-site-bas { justify-content: flex-start; text-align: left; }
.fete-site .fete-site-bas { display: flex !important; flex-direction: row !important; justify-content: flex-start !important; align-items: center !important; text-align: left !important; }
.fete-site .fete-site-bas .btn { width: auto !important; }

/* accueil « Cette semaine » */
.carte.semaine { display: flex; flex-direction: column; gap: 14px; }
.semaine-bloc { border-top: 1px solid var(--ligne); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.semaine-bloc h3 { margin: 0; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }
.semaine-bloc .compte { font-size: 11px; background: #e6ece4; border-radius: 999px; padding: 1px 8px; margin-left: 4px; letter-spacing: 0; }
.ligne-urssaf { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ligne-urssaf > span { flex: 1; min-width: 220px; }
/* séances par cliente */
.barre-vue { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; }
.vue-bascule { display: inline-flex; border: 1px solid var(--ligne); border-radius: 999px; overflow: hidden; background: #fff; }
.vue-bascule a { padding: 6px 14px; text-decoration: none; color: inherit; font-size: 13px; }
.vue-bascule a.actif { background: var(--vert, #46604c); color: #fff; }
.table-groupes .groupe-tete { cursor: pointer; }
.table-groupes .groupe-tete:hover td { background: #eef2ec; }
.table-groupes .groupe-detail { display: none; }
.table-groupes .groupe-bloc.ouvert .groupe-detail { display: table-row; }
.table-groupes .groupe-detail td:first-child { padding-left: 34px; }
.table-groupes .fleche::before { content: "▸"; color: #888; margin-right: 4px; }
.table-groupes .groupe-bloc.ouvert .fleche::before { content: "▾"; }
/* fiche séance : blocs pliables */
.carte.pliable > h2 { cursor: pointer; user-select: none; }
.carte.pliable > h2 .fleche::before { content: "▾"; color: #888; margin-right: 8px; font-size: .8em; }
.carte.pliable.plie > h2 .fleche::before { content: "▸"; }
.carte.pliable.plie > :not(h2) { display: none !important; }
.carte.pliable.plie { padding-bottom: 14px; }
/* onglet Mails */
.liste-mails .mail-ligne { display: flex; gap: 12px; align-items: flex-start; }
.liste-mails .mail-ligne .corps { flex: 1; min-width: 0; }
.liste-mails .choix-mail, .coche-groupe input { width: 18px; height: 18px; min-height: 0; margin: 4px 0 0; accent-color: var(--vert, #46604c); }
.actions-mail { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; margin: 0; }
.mail-groupe > details > summary { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; list-style: none; padding: 4px 0; }
.mail-groupe > details > summary::-webkit-details-marker { display: none; }
.mail-groupe > details > summary::after { content: "▸"; color: #888; margin-left: auto; }
.mail-groupe > details[open] > summary::after { content: "▾"; }
.mail-groupe > details > ul { margin-top: 8px; padding-left: 30px; }
.barre-lot { position: sticky; top: 0; z-index: 5; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: #fff; border: 1px solid var(--ligne); padding: 10px 14px; margin: 0 0 12px; }
.carte.plus-tard > summary { cursor: pointer; }
@media (max-width: 760px) { .liste-mails .mail-ligne { flex-wrap: wrap; } .actions-mail { justify-content: flex-start; width: 100%; } }
/* compte client */
.resume-client { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.resume-client a { background: #fff; border: 1px solid var(--ligne); padding: 8px 14px; text-decoration: none; color: inherit; font-size: 13px; }
.resume-client a strong { font-size: 16px; margin-right: 4px; }
.lien-fiche { font-size: 12px; margin-left: 6px; }
.mail-groupe > details { flex: 1; width: 100%; min-width: 0; }
.mail-groupe > details > summary::after { font-size: 14px; padding-left: 12px; }
