/* Thème floral : rose poudré, vert sauge, crème */
:root {
  --creme: #fdf8f3;
  --papier: #ffffff;
  --encre: #4a3b40;
  --doux: #7d6b70;
  --rose: #d97a98;
  --rose-fonce: #b4587a;
  --rose-pale: #f9e3ea;
  --peche: #f2b48f;
  --lilas: #b9a1d6;
  --sauge: #8faa8b;
  --sauge-fonce: #5f7d5c;
  --sauge-pale: #e7efe4;
  --or: #f1c75b;
  --bord: #eedfe3;
  --ombre: 0 6px 24px rgba(120, 70, 90, .09);
  --rayon: 18px;
  --titres: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --texte: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--encre);
  font: 16px/1.6 var(--texte);
  background-color: var(--creme);
  /* semis de petites fleurs */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='%23f6dfe6'%3E%3Ccircle cx='30' cy='26' r='5'/%3E%3Ccircle cx='38' cy='32' r='5'/%3E%3Ccircle cx='35' cy='41' r='5'/%3E%3Ccircle cx='25' cy='41' r='5'/%3E%3Ccircle cx='22' cy='32' r='5'/%3E%3C/g%3E%3Ccircle cx='30' cy='34' r='3' fill='%23f7e7c0'/%3E%3Cg fill='%23e5eee2'%3E%3Cellipse cx='112' cy='104' rx='10' ry='4' transform='rotate(-30 112 104)'/%3E%3Cellipse cx='126' cy='118' rx='10' ry='4' transform='rotate(40 126 118)'/%3E%3C/g%3E%3C/svg%3E");
}
a { color: var(--rose-fonce); }
a:hover { color: var(--sauge-fonce); }
h1, h2, h3 { font-family: var(--titres); font-weight: 600; line-height: 1.2; color: var(--rose-fonce); }
h1 { font-size: 2.3rem; margin: 0 0 .6em; }
h2 { font-size: 1.55rem; margin: 1.4em 0 .5em; color: var(--sauge-fonce); }
h3 { font-size: 1.2rem; margin: 0 0 .5em; }

/* --- En-tête --- */
.entete {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: linear-gradient(180deg, #fbe9ef 0%, #fdf3f1 60%, var(--creme) 100%);
  border-bottom: 1px solid var(--bord);
}
.bouquet { position: absolute; inset: 0; pointer-events: none; }
.bouquet svg { position: absolute; }
.f.rose { --petale: #eea3bb; --coeur: var(--or); }
.f.peche { --petale: #f6c3a2; --coeur: #e9946b; }
.f.lilas { --petale: #cdb9e6; --coeur: #fff2c4; }
.fe { width: 54px; height: 27px; }
.petales { fill: var(--petale, var(--rose)); }
.coeur { fill: var(--coeur, var(--or)); }
.limbe { fill: #a9c3a3; }
.nervure { stroke: #7f9f7a; stroke-width: 1.5; fill: none; }
.marque {
  position: relative;
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.marque .nom {
  display: block;
  font-family: var(--titres);
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-style: italic;
  font-weight: 600;
  color: var(--rose-fonce);
  letter-spacing: .02em;
  line-height: 1;
}
.marque .slogan {
  display: block;
  margin-top: 8px;
  color: var(--sauge-fonce);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .82rem;
}

/* --- Mise en page : menu à gauche, contenu à droite --- */
.page {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 16px 40px;
  align-items: start;
}
.menu {
  position: sticky;
  top: 16px;
  background: var(--papier);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 14px 10px;
}
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--encre);
  text-decoration: none;
  font-weight: 500;
}
.menu a:hover { background: var(--rose-pale); color: var(--rose-fonce); }
.menu a[aria-current="page"] { background: var(--rose-pale); color: var(--rose-fonce); }
.puce { width: 18px; height: 18px; flex: none; --petale: #e9c4d0; --coeur: #f3dc9a; transition: transform .3s; }
.menu a:hover .puce, .menu a[aria-current="page"] .puce { --petale: var(--rose); --coeur: var(--or); transform: rotate(36deg); }

.contenu { min-width: 0; }
.carte {
  background: var(--papier);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 28px 32px;
  margin-bottom: 24px;
}
.carte > :first-child { margin-top: 0; }
.colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.colonnes .carte { margin-bottom: 0; }
.intro { background: linear-gradient(135deg, #fff 55%, var(--rose-pale)); }
.a-completer { background: #fff7e0; border-left: 4px solid var(--or); padding: 6px 12px; border-radius: 6px; color: #7a5d16; }

.pied {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px 16px 30px;
  color: var(--doux);
  font-size: .9rem;
}

/* --- Éléments communs --- */
.bouton, button {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  background: var(--rose);
  color: #fff;
  text-decoration: none;
  transition: background .2s;
}
.bouton:hover, button:hover { background: var(--rose-fonce); color: #fff; }
.bouton.leger, button.leger { background: var(--sauge-pale); color: var(--sauge-fonce); }
.bouton.leger:hover, button.leger:hover { background: var(--sauge); color: #fff; }
button.petit { padding: 3px 10px; font-size: .8rem; font-weight: 500; background: var(--sauge-pale); color: var(--sauge-fonce); }
button.petit:hover { background: var(--sauge); color: #fff; }
button.danger { background: #fbe3e3; color: #a33b3b; }
button.danger:hover { background: #c24b4b; color: #fff; }
:focus-visible { outline: 3px solid var(--lilas); outline-offset: 2px; }

.message { padding: 12px 16px; border-radius: 12px; margin: 0 0 18px; background: var(--sauge-pale); }
.message.succes { background: var(--sauge-pale); border-left: 5px solid var(--sauge); }
.message.erreur { background: #fbe6e6; border-left: 5px solid #c24b4b; color: #7a2626; }
.message.alerte { background: #fff4dc; border-left: 5px solid var(--or); color: #6c5110; }
.note { color: var(--doux); font-size: .92rem; }

label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .92rem; }
label small { font-weight: 400; color: var(--doux); }
input {
  font: inherit;
  font-weight: 400;
  padding: 9px 12px;
  border: 1px solid #e3cfd6;
  border-radius: 10px;
  background: #fff;
  color: var(--encre);
  min-width: 0;
}
input:focus { border-color: var(--rose); outline: 2px solid var(--rose-pale); }
.champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 14px 0; }
.champs .large { grid-column: 1 / -1; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agenda { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

table.horaires { border-collapse: collapse; width: 100%; max-width: 420px; }
.horaires th, .horaires td { text-align: left; padding: 5px 8px; border-bottom: 1px dashed var(--bord); }
.horaires th { font-weight: 600; width: 40%; }
.horaires tr.ferme td { color: var(--doux); font-style: italic; }
.coordonnees { list-style: none; padding: 0; }
.coordonnees li { padding: 4px 0; }

.prestations { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 18px 0; }
.prestation { border: 1px solid var(--bord); border-radius: 14px; padding: 18px; background: linear-gradient(180deg, #fff, #fdf6f8); }
.prestation h2 { margin-top: 6px; }
.pastille { width: 34px; height: 34px; --petale: #eea3bb; }

/* --- Réservation --- */
.reservation { border: 2px solid var(--rose-pale); border-radius: 14px; padding: 18px 20px; margin: 0 0 22px; background: #fffafb; }
.reservation h2 { margin-top: 0; color: var(--rose-fonce); }
.semaine-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 18px 0; text-align: center; }
.semaine-nav > :first-child { justify-self: start; }
.semaine-nav > :last-child { justify-self: end; }
.calendrier { display: grid; grid-template-columns: repeat(var(--jours), minmax(0, 1fr)); gap: 10px; }
.jour { background: #fffbfc; border: 1px solid var(--bord); border-radius: 14px; padding: 10px 8px; min-width: 0; }
.jour.aujourdhui { border-color: var(--rose); box-shadow: 0 0 0 2px var(--rose-pale); }
.jour h3 { text-align: center; font-size: 1.05rem; margin-bottom: 8px; color: var(--sauge-fonce); }
.jour h3 span { display: block; font-family: var(--texte); font-size: .8rem; color: var(--doux); font-weight: 400; }
.creneaux { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.creneau { display: block; text-align: center; padding: 6px 4px; border-radius: 10px; font-size: .9rem; text-decoration: none; }
.creneau.libre { background: var(--sauge-pale); color: var(--sauge-fonce); font-weight: 600; border: 1px solid #cfdeca; }
a.creneau.libre:hover { background: var(--sauge); color: #fff; }
.creneau.choisi { background: var(--rose); color: #fff; border-color: var(--rose); }
.creneau.pris { background: #f4eef0; color: #b9aab0; text-decoration: line-through; }
.ferme, .complet, .vide { text-align: center; color: var(--doux); font-style: italic; font-size: .9rem; margin: 6px 0; }
.legende { color: var(--doux); font-size: .85rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.legende .creneau { display: inline-block; padding: 2px 8px; }

/* --- Admin --- */
.en-ligne { display: inline; margin: 0; }
.admin-cal { gap: 8px; }
.admin-cal .jour > form { display: block; text-align: center; margin-bottom: 8px; }
.admin-cal .jour.passe { opacity: .7; }
.creneaux.liste .creneau { text-align: left; display: flex; flex-direction: column; gap: 3px; padding: 6px 8px; font-size: .82rem; border: 1px solid transparent; }
.creneaux.liste .h { font-weight: 600; }
.creneaux.liste .qui small { color: var(--doux); }
.creneaux.liste .creneau.libre, .creneaux.liste .creneau.hors { background: var(--sauge-pale); color: var(--sauge-fonce); border-color: #d8e5d4; font-weight: 400; }
.creneaux.liste .creneau.reserve { background: var(--rose-pale); border-color: #efc6d3; color: var(--encre); }
.creneaux.liste .creneau.reserve .qui { font-weight: 600; color: var(--rose-fonce); }
.creneaux.liste .creneau.verrouille { background: repeating-linear-gradient(-45deg, #f3eff1, #f3eff1 6px, #ebe4e7 6px, #ebe4e7 12px); color: var(--doux); }
.creneaux.liste .creneau.passe { background: #f6f3f4; color: #b3a6ab; }
.creneaux.liste .creneau.autre { border-style: dashed; }
.creneaux.liste form { margin-top: 2px; }
.tableau-defile { overflow-x: auto; }
.tableau { border-collapse: collapse; width: 100%; font-size: .92rem; }
.tableau th, .tableau td { padding: 8px 10px; border-bottom: 1px solid var(--bord); text-align: left; vertical-align: middle; }
.tableau thead th { color: var(--sauge-fonce); font-weight: 600; background: #fbf7f8; }
.horaires-edit input { padding: 5px 6px; }
.horaires-edit td { white-space: nowrap; }
.liste-verrous { list-style: none; padding: 0; }
.liste-verrous li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--bord); }
.connexion form { max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
.deconnexion { text-align: right; }

/* --- Écrans moyens : planning admin sur deux lignes --- */
@media (max-width: 1100px) {
  .admin-cal { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --- Mobile : menu au-dessus, jours empilés --- */
@media (max-width: 800px) {
  .page { grid-template-columns: 1fr; gap: 18px; padding-top: 18px; }
  .menu { position: static; padding: 8px; }
  .menu ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .menu a { padding: 7px 12px; font-size: .92rem; }
  .carte { padding: 20px 18px; }
  h1 { font-size: 1.9rem; }
  .entete { min-height: 120px; }
  .bouquet .f, .bouquet .fe { scale: .7; }
  .calendrier, .admin-cal { grid-template-columns: 1fr; }
  .jour h3 { text-align: left; }
  .jour h3 span { display: inline; margin-left: 6px; }
  .calendrier:not(.admin-cal) .creneaux { flex-direction: row; flex-wrap: wrap; }
  .calendrier:not(.admin-cal) .creneau { padding: 6px 12px; }
  .semaine-nav { grid-template-columns: 1fr 1fr; }
  .semaine-nav > strong, .semaine-nav > span:nth-child(2) { grid-column: 1 / -1; order: -1; }
}
