/* ============================================================
   CoiffureRDV — feuille de style
   Objectifs : grand, lisible, très contrasté, utilisable au doigt.
   ============================================================ */

:root {
  --prune: #5b2a86;
  --prune-fonce: #3d1a5e;
  --prune-clair: #f2eaf9;
  --or: #c98a1f;
  --or-clair: #fdf3e0;
  --vert: #157f4a;
  --vert-clair: #e5f6ed;
  --rouge: #b3261e;
  --rouge-clair: #fdeceb;
  --bleu: #1c5fa8;
  --bleu-clair: #e8f1fb;

  --fond: #faf7f6;
  --carte: #ffffff;
  --texte: #241c2c;
  --texte-doux: #5d5468;
  --bordure: #e3dce6;
  --bordure-forte: #c9bfcf;

  --rayon: 16px;
  --rayon-petit: 10px;
  --ombre: 0 2px 4px rgba(36, 28, 44, .06), 0 8px 24px rgba(36, 28, 44, .07);
  --ombre-forte: 0 4px 10px rgba(36, 28, 44, .1), 0 16px 40px rgba(36, 28, 44, .12);

  --base: 17px;
  --largeur: 1140px;
}

html.gros-texte { --base: 21px; }

* { box-sizing: border-box; }

html {
  font-size: var(--base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--prune); }
a:hover { color: var(--prune-fonce); }

h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: 18px;
}
.conteneur--etroit { max-width: 720px; }
.conteneur--moyen { max-width: 920px; }

.saut-contenu {
  position: absolute; left: -9999px;
  background: var(--prune); color: #fff; padding: 12px 18px; z-index: 100; border-radius: 0 0 8px 0;
}
.saut-contenu:focus { left: 0; top: 0; }

:focus-visible {
  outline: 3px solid var(--or);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------- En-tête ---------------- */

.entete {
  background: #fff;
  border-bottom: 2px solid var(--bordure);
  position: sticky; top: 0; z-index: 50;
}
.entete__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; min-height: 68px; flex-wrap: wrap;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 1.25rem; color: var(--prune-fonce); text-decoration: none;
}
.logo__icone { font-size: 1.4rem; }

.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav__lien {
  display: inline-block; padding: 10px 12px; border-radius: var(--rayon-petit);
  color: var(--texte); text-decoration: none; font-weight: 600;
}
.nav__lien:hover { background: var(--prune-clair); color: var(--prune-fonce); }
.nav__lien.est-actif { background: var(--prune-clair); color: var(--prune-fonce); }
.nav__form { margin: 0; display: inline-flex; }

.menu-burger {
  display: none; width: 48px; height: 44px; border: 2px solid var(--bordure-forte);
  background: #fff; border-radius: var(--rayon-petit); cursor: pointer; padding: 10px 9px;
  flex-direction: column; justify-content: space-between;
}
.menu-burger span { display: block; height: 3px; background: var(--prune-fonce); border-radius: 2px; }

@media (max-width: 860px) {
  .menu-burger { display: flex; }
  .nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    padding-bottom: 14px; gap: 4px;
  }
  .nav.est-ouvert { display: flex; }
  .nav__lien, .nav .bouton, .nav__form .bouton { width: 100%; text-align: center; }
  .nav__form { width: 100%; }
}

/* ---------------- Boutons ---------------- */

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 24px;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.bouton:active { transform: translateY(1px); }
.bouton--principal { background: var(--prune); color: #fff; box-shadow: var(--ombre); }
.bouton--principal:hover { background: var(--prune-fonce); color: #fff; }
.bouton--secondaire { background: var(--or); color: #26190a; }
.bouton--secondaire:hover { background: #b2770f; color: #fff; }
.bouton--fantome { background: #fff; color: var(--prune-fonce); border-color: var(--bordure-forte); }
.bouton--fantome:hover { background: var(--prune-clair); }
.bouton--danger { background: var(--rouge-clair); color: var(--rouge); border-color: #f0bfbc; }
.bouton--danger:hover { background: var(--rouge); color: #fff; }
.bouton--succes { background: var(--vert); color: #fff; }
.bouton--succes:hover { background: #0f6539; color: #fff; }
.bouton--petit { min-height: 42px; padding: 8px 16px; font-size: .95rem; }
.bouton--large { width: 100%; }
.bouton--geant { min-height: 66px; font-size: 1.2rem; padding: 14px 34px; }
.bouton[disabled], .bouton.est-desactive { opacity: .5; cursor: not-allowed; }

.bouton-texte {
  background: none; border: none; font: inherit; color: var(--texte-doux);
  cursor: pointer; padding: 10px 12px; border-radius: var(--rayon-petit); font-weight: 600;
}
.bouton-texte:hover { background: var(--prune-clair); color: var(--prune-fonce); }

.groupe-boutons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------- Messages ---------------- */

.zone-messages { margin-top: 18px; }
.message {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--rayon); margin-bottom: 12px;
  border: 2px solid; font-weight: 600;
}
.message__icone { font-size: 1.3rem; line-height: 1.2; }
.message--succes { background: var(--vert-clair); border-color: #a9ddc1; color: #0d5a33; }
.message--erreur { background: var(--rouge-clair); border-color: #f0bfbc; color: #8c1d17; }
.message--info   { background: var(--bleu-clair); border-color: #b9d4f0; color: #14457c; }

/* ---------------- Cartes & sections ---------------- */

.section { padding: 46px 0; }
.section--fond { background: #fff; border-block: 2px solid var(--bordure); }
.section__titre { text-align: center; margin-bottom: 8px; }
.section__intro { text-align: center; color: var(--texte-doux); max-width: 640px; margin: 0 auto 32px; }

.carte {
  background: var(--carte); border: 2px solid var(--bordure);
  border-radius: var(--rayon); padding: 22px; box-shadow: var(--ombre);
}
.carte--plate { box-shadow: none; }
.carte + .carte { margin-top: 18px; }

.grille { display: grid; gap: 20px; }
.grille--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grille--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grille--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grille--principal-aside { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }

@media (max-width: 860px) {
  .grille--principal-aside { grid-template-columns: 1fr; }
}

/* ---------------- Accueil ---------------- */

.hero {
  background: linear-gradient(160deg, var(--prune-fonce), var(--prune) 60%, #7b3fa8);
  color: #fff; padding: 62px 0 70px;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); }
.hero__accroche { font-size: 1.2rem; opacity: .95; max-width: 640px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero__recherche {
  margin-top: 30px; background: #fff; border-radius: var(--rayon);
  padding: 16px; display: flex; gap: 12px; flex-wrap: wrap; box-shadow: var(--ombre-forte);
}
.hero__recherche .champ { flex: 1 1 240px; margin: 0; }

.etape-numero {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--prune); color: #fff; font-weight: 900; font-size: 1.4rem; margin-bottom: 14px;
}

/* ---------------- Liste des salons ---------------- */

.salon-carte {
  background: #fff; border: 2px solid var(--bordure); border-radius: var(--rayon);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--ombre);
  transition: transform .12s ease, box-shadow .15s ease;
}
.salon-carte:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); }
.salon-carte__image {
  aspect-ratio: 16 / 9; background: var(--prune-clair) center/cover no-repeat;
  display: grid; place-items: center; font-size: 3rem;
}
.salon-carte__corps { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.salon-carte__ville { color: var(--texte-doux); font-weight: 600; }
.salon-carte__pied { margin-top: auto; padding-top: 12px; }

.etiquette {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700;
  background: var(--prune-clair); color: var(--prune-fonce);
}
.etiquette--or { background: var(--or-clair); color: #8a5d0c; }
.etiquette--vert { background: var(--vert-clair); color: #0d5a33; }
.etiquette--rouge { background: var(--rouge-clair); color: #8c1d17; }
.etiquette--gris { background: #eeeaf0; color: var(--texte-doux); }
.etiquette--bleu { background: var(--bleu-clair); color: #14457c; }

/* ---------------- Page salon ---------------- */

.banniere-salon {
  height: 240px; background: linear-gradient(160deg, var(--prune-fonce), #7b3fa8) center/cover no-repeat;
  position: relative;
}
.banniere-salon::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .25));
}
.entete-salon { margin-top: -70px; position: relative; }

@media (max-width: 700px) {
  .banniere-salon { height: 150px; }
  .entete-salon { margin-top: -50px; }
  .entete-salon__carte { padding: 18px; }
  .avatar-salon { width: 72px; height: 72px; font-size: 1.9rem; }
  .entete-salon__carte > div:last-child { min-width: 0 !important; width: 100%; }
}
.entete-salon__carte {
  background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre-forte);
  padding: 24px; display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap;
  border: 2px solid var(--bordure);
}
.avatar-salon {
  width: 96px; height: 96px; border-radius: 22px; background: var(--prune-clair) center/cover no-repeat;
  display: grid; place-items: center; font-size: 2.4rem; flex: none; border: 2px solid var(--bordure);
}

.prestation {
  display: flex; gap: 16px; align-items: center; padding: 16px;
  border: 2px solid var(--bordure); border-radius: var(--rayon); background: #fff;
}
.prestation + .prestation { margin-top: 12px; }
.prestation__image {
  width: 84px; height: 84px; border-radius: var(--rayon-petit); flex: none;
  background: var(--prune-clair) center/cover no-repeat; display: grid; place-items: center; font-size: 1.8rem;
}
.prestation__infos { flex: 1 1 200px; min-width: 0; }
.prestation__nom { font-weight: 800; font-size: 1.05rem; }
.prestation__meta { color: var(--texte-doux); }
.prestation__prix { font-weight: 900; font-size: 1.25rem; color: var(--prune-fonce); white-space: nowrap; }
.prestation__action { flex: none; }

@media (max-width: 620px) {
  .prestation { flex-wrap: wrap; }
  .prestation__action, .prestation__action .bouton { width: 100%; }
}

.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.galerie img { border-radius: var(--rayon-petit); aspect-ratio: 1; object-fit: cover; width: 100%; }

.horaires { width: 100%; border-collapse: collapse; }
.horaires td { padding: 10px 6px; border-bottom: 1px solid var(--bordure); }
.horaires tr:last-child td { border-bottom: none; }
.horaires td:first-child { font-weight: 700; text-transform: capitalize; }
.horaires td:last-child { text-align: right; }
.horaires .est-aujourdhui { background: var(--or-clair); }

/* ---------------- Formulaires ---------------- */

.champ { margin-bottom: 20px; }
.champ__label { display: block; font-weight: 700; margin-bottom: 7px; }
.champ__aide { color: var(--texte-doux); font-size: .92rem; margin-top: 6px; }
.champ__erreur { color: var(--rouge); font-weight: 700; margin-top: 6px; }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="date"], input[type="time"], input[type="search"],
input[type="url"], select, textarea {
  width: 100%; padding: 14px 16px; font: inherit; color: var(--texte);
  background: #fff; border: 2px solid var(--bordure-forte); border-radius: var(--rayon-petit);
  min-height: 54px;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--prune); outline: 3px solid var(--prune-clair); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--rouge); }

.champ-inline { display: flex; gap: 12px; flex-wrap: wrap; }
.champ-inline > * { flex: 1 1 200px; }

.case-a-cocher {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px;
  border: 2px solid var(--bordure); border-radius: var(--rayon-petit); background: #fff; cursor: pointer;
}
.case-a-cocher input { width: 26px; height: 26px; flex: none; accent-color: var(--prune); margin-top: 2px; }

.choix-cartes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.choix-carte {
  border: 3px solid var(--bordure); border-radius: var(--rayon); padding: 20px; background: #fff;
  cursor: pointer; display: block; text-align: center;
}
.choix-carte input { position: absolute; opacity: 0; width: 0; height: 0; }
.choix-carte:hover { border-color: var(--prune); }
.choix-carte:has(input:checked) { border-color: var(--prune); background: var(--prune-clair); box-shadow: var(--ombre); }
.choix-carte__icone { font-size: 2.4rem; }
.choix-carte__titre { font-weight: 800; font-size: 1.1rem; margin-top: 6px; }
.choix-carte__texte { color: var(--texte-doux); font-size: .95rem; }

/* ---------------- Tunnel de réservation ---------------- */

.etapes {
  display: flex; gap: 8px; align-items: center; justify-content: center;
  margin: 0 0 28px; flex-wrap: wrap; list-style: none; padding: 0;
}
.etapes li {
  display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--texte-doux);
  background: #fff; border: 2px solid var(--bordure); border-radius: 999px; padding: 8px 16px;
}
.etapes li .pastille {
  width: 30px; height: 30px; border-radius: 50%; background: var(--bordure);
  color: var(--texte); display: grid; place-items: center; font-size: .95rem;
}
.etapes li.est-active { border-color: var(--prune); color: var(--prune-fonce); background: var(--prune-clair); }
.etapes li.est-active .pastille { background: var(--prune); color: #fff; }
.etapes li.est-faite .pastille { background: var(--vert); color: #fff; }

.bandeau-jours {
  display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 14px; scroll-snap-type: x mandatory;
}
.jour-carte {
  flex: 0 0 auto; width: 96px; text-align: center; padding: 12px 6px;
  border: 3px solid var(--bordure); border-radius: var(--rayon); background: #fff;
  text-decoration: none; color: var(--texte); scroll-snap-align: start;
}
.jour-carte:hover { border-color: var(--prune); }
.jour-carte.est-choisi { border-color: var(--prune); background: var(--prune-clair); }
.jour-carte.est-complet { opacity: .45; }
.jour-carte__jour { font-weight: 700; text-transform: capitalize; }
.jour-carte__num { font-size: 1.7rem; font-weight: 900; line-height: 1.1; color: var(--prune-fonce); }
.jour-carte__mois { color: var(--texte-doux); font-size: .85rem; }
.jour-carte__dispo { font-size: .8rem; font-weight: 700; color: var(--vert); margin-top: 4px; }
.jour-carte.est-complet .jour-carte__dispo { color: var(--texte-doux); }

.creneaux { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.creneau {
  display: block; text-align: center; padding: 14px 6px; font-weight: 800; font-size: 1.05rem;
  border: 3px solid var(--bordure); border-radius: var(--rayon-petit); background: #fff;
  color: var(--prune-fonce); text-decoration: none; cursor: pointer;
}
.creneau:hover { border-color: var(--prune); background: var(--prune-clair); }
.creneau.est-choisi { background: var(--prune); border-color: var(--prune); color: #fff; }

.recap { background: var(--prune-clair); border: 2px solid #d9c6ea; border-radius: var(--rayon); padding: 20px; }
.recap dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; }
.recap dt { font-weight: 700; color: var(--texte-doux); }
.recap dd { margin: 0; font-weight: 700; text-align: right; }

/* ---------------- Confirmation ---------------- */

.confirmation { text-align: center; padding: 40px 0; }
.confirmation__coche {
  width: 96px; height: 96px; border-radius: 50%; background: var(--vert-clair);
  display: grid; place-items: center; font-size: 3rem; margin: 0 auto 20px; border: 4px solid var(--vert);
}
.reference {
  display: inline-block; font-family: ui-monospace, "Courier New", monospace; font-size: 1.5rem; font-weight: 900;
  letter-spacing: .08em; background: #fff; border: 3px dashed var(--prune); border-radius: var(--rayon);
  padding: 12px 22px; margin: 10px 0 20px;
}

/* ---------------- Espace coiffeur / admin ---------------- */

.mise-en-page-pro { display: grid; grid-template-columns: 268px 1fr; gap: 28px; align-items: start; padding: 28px 0; }
@media (max-width: 900px) { .mise-en-page-pro { grid-template-columns: 1fr; } }

.menu-lateral {
  background: #fff; border: 2px solid var(--bordure); border-radius: var(--rayon);
  padding: 12px; position: sticky; top: 88px;
}
@media (max-width: 900px) { .menu-lateral { position: static; } }
.menu-lateral a {
  display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: var(--rayon-petit);
  color: var(--texte); text-decoration: none; font-weight: 700;
}
.menu-lateral a:hover { background: var(--prune-clair); }
.menu-lateral a.est-actif { background: var(--prune); color: #fff; }
.menu-lateral__groupe { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--texte-doux); padding: 14px 14px 6px; font-weight: 800; }

.stat-carte { background: #fff; border: 2px solid var(--bordure); border-radius: var(--rayon); padding: 20px; }
.stat-carte__valeur { font-size: 2.2rem; font-weight: 900; color: var(--prune-fonce); line-height: 1.1; }
.stat-carte__libelle { color: var(--texte-doux); font-weight: 600; }

.tableau-enveloppe { overflow-x: auto; border: 2px solid var(--bordure); border-radius: var(--rayon); background: #fff; }
table.tableau { width: 100%; border-collapse: collapse; min-width: 640px; }
table.tableau th, table.tableau td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--bordure); vertical-align: middle; }
table.tableau th { background: #f7f3f9; font-weight: 800; }
table.tableau tr:last-child td { border-bottom: none; }

.rdv-ligne { display: flex; gap: 16px; align-items: center; padding: 16px; border: 2px solid var(--bordure); border-radius: var(--rayon); background: #fff; flex-wrap: wrap; }
.rdv-ligne + .rdv-ligne { margin-top: 12px; }
.rdv-ligne__heure { font-size: 1.35rem; font-weight: 900; color: var(--prune-fonce); min-width: 96px; }
.rdv-ligne__infos { flex: 1 1 220px; min-width: 0; }
.rdv-ligne__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.bloc-qr { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.bloc-qr__image { background: #fff; padding: 14px; border: 2px solid var(--bordure); border-radius: var(--rayon); }
.bloc-qr__image svg, .bloc-qr__image img { width: 220px; height: 220px; }

.champ-copie { display: flex; gap: 10px; flex-wrap: wrap; }
.champ-copie input { flex: 1 1 260px; font-family: ui-monospace, "Courier New", monospace; }

.etoiles { color: var(--or); font-size: 1.15rem; letter-spacing: .05em; }

.vide {
  text-align: center; padding: 46px 20px; color: var(--texte-doux);
  border: 3px dashed var(--bordure-forte); border-radius: var(--rayon); background: #fff;
}
.vide__icone { font-size: 3rem; margin-bottom: 10px; }

/* ---------------- Pied de page ---------------- */

.pied { background: var(--prune-fonce); color: #efe7f5; margin-top: 56px; padding: 40px 0 20px; }
.pied a { color: #efe7f5; text-decoration: none; font-weight: 600; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied__inner { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.pied__titre { font-weight: 900; font-size: 1.15rem; margin: 0 0 6px; }
.pied__texte { opacity: .85; max-width: 380px; }
.pied__liens { display: flex; flex-direction: column; gap: 8px; }
.pied__copyright { text-align: center; opacity: .7; margin: 26px 0 0; font-size: .9rem; }

/* ---------------- Utilitaires ---------------- */

.texte-centre { text-align: center; }
.texte-doux { color: var(--texte-doux); }
.texte-fort { font-weight: 800; }
.texte-grand { font-size: 1.15rem; }
.texte-petit { font-size: .9rem; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 10px; } .mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 32px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pile { display: flex; flex-direction: column; gap: 14px; }
.rangee { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.rangee--espace { justify-content: space-between; }
.separateur { height: 2px; background: var(--bordure); border: none; margin: 26px 0; }

@media print {
  .entete, .pied, .bouton, .menu-lateral, .saut-contenu { display: none !important; }
  body { background: #fff; }
}
