/* E'C Nails — site public (index.html, annulation.html, pages légales).
 * Nécessite tokens.css et base.css. Mobile d'abord ; passage « bureau » à 760 px (comme le prototype).
 * Sommaire : en-tête et navigation · héros · sections · histoire (frise, chiffres) · prestations
 *            · fidélité · contact · pied de page · modale de réservation (étapes, semaine,
 *            créneaux, onglets jours, code SMS, confirmation) · pages simples
 */

/* ---------- En-tête et navigation ---------- */
.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nav-links a, .nav-mobile a {
  color: var(--c-brown);
  border-radius: var(--r-pill);
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; }
.nav-links a:hover, .nav-mobile a:hover { background: var(--c-hover); color: var(--c-ink); }
.nav-links .btn { margin-left: 10px; min-height: 46px; padding: 0 24px; font-size: 13px; letter-spacing: .14em; color: var(--c-cream); }
.nav-links .btn:hover { background: var(--g-primary); color: var(--c-cream); }
.nav-compact { display: flex; align-items: center; gap: 8px; }
.nav-compact .btn-primary { min-height: 44px; padding: 0 18px; font-size: 12px; letter-spacing: .12em; }
.nav-compact .btn-icon { border-color: var(--c-border-white); }
.nav-compact .btn-icon:hover { background: var(--g-ghost); color: var(--c-brown); border-color: var(--c-border-white); }
.nav-mobile {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-nav);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--sh-glass);
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  animation: pop .3s var(--ease) both;
}
.nav-mobile a { display: block; padding: 14px 18px; }

@media (min-width: 760px) {
  .nav-links { display: flex; }
  .nav-compact, .nav-mobile { display: none !important; }
}

/* ---------- Héros ---------- */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: center;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 7vh 5vw 9vh;
  scroll-margin-top: var(--header-offset);
}
.hero .kicker { margin-bottom: 18px; }
.hero-lead { max-width: 460px; margin: 26px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-actions .btn-ghost { padding: 0 26px; }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-orb { position: relative; width: min(86%, 400px); aspect-ratio: 1; }
.hero-orb::before, .hero-orb::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-orb::before { inset: -16px; border: 1px solid var(--c-border-soft); }
.hero-orb::after { inset: -32px; border: 1px solid rgba(164, 126, 74, .16); }
.hero-orb-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--c-border-white);
  border-radius: 50%;
  background-color: var(--c-bg-light);
  background-image: linear-gradient(150deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .4)), var(--img-page);
  background-image: linear-gradient(150deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .4)), var(--img-page-set);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 1px 0 #fff, 0 40px 90px rgba(90, 62, 43, .18);
}
.hero-orb-inner::before {
  content: "";
  position: absolute;
  top: 5%;
  left: 16%;
  width: 56%;
  height: 30%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0));
  filter: blur(8px);
  pointer-events: none;
}
.hero-orb-inner picture, .hero-orb-inner img { position: relative; display: block; width: 64%; }
.hero-orb-inner picture img { width: 100%; }
.hero-orb-inner img { height: auto; filter: drop-shadow(0 12px 24px rgba(90, 62, 43, .18)); }

/* ---------- Sections ---------- */
.section { padding: 4vh var(--gutter) 6vh; scroll-margin-top: var(--header-offset); }
.section-tight { padding-top: 2vh; }
.section-last { padding-bottom: 8vh; }
.panel-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 44px;
  align-items: start;
}
.panel-split.gap-lg { gap: 52px; }
.panel-split.align-center { align-items: center; }
.section-head { margin-bottom: 44px; text-align: center; }
.section-title { margin-bottom: 22px; }
.section-head .section-title { margin-bottom: 12px; }
.section-intro { font-size: 16px; font-weight: 300; color: var(--c-brown); }
.section-text { margin: 0 0 22px; font-size: 17px; line-height: 1.7; font-weight: 300; }
.section-text:last-child { margin-bottom: 0; }

/* ---------- Notre histoire : frise ---------- */
.story-aside { display: grid; gap: 22px; align-self: center; }
.timeline { position: relative; display: grid; gap: 24px; padding: 6px 0 6px 36px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: linear-gradient(180deg, rgba(164, 126, 74, 0), rgba(164, 126, 74, .6) 12%, rgba(164, 126, 74, .6) 88%, rgba(164, 126, 74, 0));
}
.timeline-item { position: relative; }
.timeline-item::before, .timeline-item::after { content: ""; position: absolute; border-radius: 50%; }
.timeline-item::before {
  left: -36px;
  top: 4px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(164, 126, 74, .5);
  background: var(--g-pearl);
  box-shadow: inset 0 1px 0 #fff, 0 6px 14px rgba(90, 62, 43, .10);
}
.timeline-item::after { left: -28px; top: 12px; width: 8px; height: 8px; background: var(--g-gold-dot); }
.timeline-when { font-family: var(--font-script); font-size: 30px; line-height: 1; color: var(--c-gold); }
.timeline-title { margin-top: 4px; font-family: var(--font-serif); font-size: 23px; font-weight: 500; line-height: 1.15; color: var(--c-brown); }
.timeline-text { margin: 4px 0 0; font-size: 14px; font-weight: 300; line-height: 1.55; color: var(--c-ink); text-wrap: pretty; }

/* Chiffres (30 ans, 2 passionnées, 100 %) */
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.figure { display: grid; gap: 6px; padding: 18px 10px 16px; border-radius: var(--r-card); text-align: center; }
.figure-value { font-family: var(--font-serif); font-size: clamp(32px, 4vw, 44px); line-height: 1; color: var(--c-gold); }
.figure-label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-brown); }

/* ---------- Prestations ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 18px;
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px 24px;
  border-radius: var(--r-card-lg);
  background: var(--glass-bg-card);
}
.service-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.service-name { font-size: 27px; line-height: 1.1; }
.service-desc { font-size: 15px; font-weight: 300; line-height: 1.6; color: var(--c-ink); text-wrap: pretty; }
.service-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }

/* ---------- Fidélité ---------- */
.loyalty-steps { display: grid; gap: 14px; }
.loyalty-step { display: flex; align-items: flex-start; gap: 16px; padding: 22px 22px 20px; border-radius: var(--r-card); }
.loyalty-num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--g-gold);
  box-shadow: var(--sh-gold);
  color: var(--c-paper);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
}
.loyalty-step-title { font-family: var(--font-serif); font-size: 24px; line-height: 1.1; color: var(--c-brown); }
.loyalty-step-text { margin: 6px 0 0; font-size: 15px; font-weight: 300; line-height: 1.6; color: var(--c-ink); text-wrap: pretty; }

/* ---------- Contact ---------- */
.contact-list { display: grid; gap: 14px; font-size: 16px; font-weight: 300; line-height: 1.6; }
.contact-card { display: flex; align-items: flex-start; gap: 14px; padding: 20px 24px; border-radius: var(--r-card); min-width: 0; }
.contact-card .dot-gold { margin-top: 6px; }
.contact-card > div { min-width: 0; overflow-wrap: anywhere; }
.contact-label { margin-bottom: 6px; font-size: 11px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--c-gold-dark); }
.contact-note { font-size: 13px; color: var(--c-gold-dark); }
.contact-card a { color: var(--c-brown); }
.contact-card a:hover { color: var(--c-gold); }

/* ---------- Pied de page ---------- */
.site-footer {
  margin: 2vh 0 0;
  padding: 44px 5vw calc(30px + env(safe-area-inset-bottom, 0px));
  border-radius: 48px 48px 0 0;
  background: var(--g-footer);
  color: var(--c-cream);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 -20px 50px rgba(90, 62, 43, .10);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-brand { font-family: var(--font-serif); font-size: 30px; line-height: 1; }
.footer-brand .title-script { font-size: .9em; color: var(--c-gold-light); }
.footer-tagline { margin-left: 10px; font-family: var(--font-sans); font-size: 13px; font-weight: 300; opacity: .8; }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 12px; opacity: .75; }
.footer-meta a { color: var(--c-cream); opacity: .7; text-decoration: underline; text-underline-offset: 2px; }
.footer-meta a:hover { color: var(--c-cream); opacity: 1; }
.site-footer :focus-visible { outline-color: var(--c-gold-light); }

/* Cibles tactiles ≥ 44 px sous 1100 px (spec V1.1 §5.3). Liens du pied de page : rangées de 44 px.
 * Liens seuls sur leur ligne (contact, mentions légales) : zone agrandie par un rembourrage
 * compensé par une marge négative, sans changer la mise en page. */
@media (max-width: 1099.98px) {
  .footer-meta { row-gap: 0; }
  .footer-meta a { display: inline-flex; align-items: center; min-height: 44px; }
  .contact-card a, .legal dd > a { display: inline-block; padding-block: 11px; margin-block: -11px; }
}

/* ---------- Modale de réservation ---------- */
.booking-deco { position: absolute !important; right: 64px; top: -26px; width: 92px; opacity: .3; pointer-events: none; }
.booking-deco img { width: 100%; }

/* Indicateur d'étapes : l'étape courante porte aria-current="step", les précédentes .is-done */
.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 0;
  margin: 0;
  padding: 18px 12px 0;
  list-style: none;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.step { display: flex; align-items: center; gap: 8px; padding: 0 10px; color: var(--c-gold-dark); }
.step-dot {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--c-gold);
  border-radius: 50%;
  background: #fff;
  color: var(--c-gold-dark);
  font-size: 11px;
  letter-spacing: 0;
  transition: background-color var(--t-slow);
}
.step.is-done .step-dot { border-color: transparent; background: var(--g-gold); color: var(--c-paper); }
.step[aria-current="step"] { color: var(--c-brown); font-weight: 500; }
.step[aria-current="step"] .step-dot { border-color: transparent; background: var(--g-primary); color: var(--c-cream); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 14px rgba(74, 53, 38, .25); }
@media (max-width: 420px) {
  .step:not([aria-current="step"]) .step-label { display: none; }
  .step { padding: 0 6px; }
}

.booking-step { display: grid; gap: 24px; }
.booking-narrow { max-width: 640px; margin: 0 auto; width: 100%; }
.booking-center { max-width: 440px; margin: 0 auto; width: 100%; text-align: center; }
.booking-block-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.booking-block-head label, .booking-block-head .label { margin: 0; }
.booking-summary { font-size: 15px; color: var(--c-brown); }

/* Navigation de semaine « ‹ 5 – 9 octobre 2026 › » */
.week-nav { display: flex; align-items: center; gap: 8px; }
.week-label { min-width: 170px; font-family: var(--font-serif); font-size: 19px; color: var(--c-brown); text-align: center; }
.week-nav .btn-icon:disabled { opacity: .3; }

/* Zone de la grille des créneaux (V1.1 §4) : pendant un chargement, la grille précédente reste
   visible, atténuée et non cliquable (aria-busy, hauteur figée en JS) ; petit indicateur en haut
   à droite, affiché seulement après 150 ms ; squelette neutre au tout premier chargement. */
.slots-host { position: relative; }
.slots-body { transition: opacity .15s; }
.slots-host.is-loading { pointer-events: none; }
.slots-host.is-loading > .slots-body { opacity: .55; }
.slots-busy {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  display: flex;
  padding: 5px;
  border-radius: 50%;
  background: var(--c-paper);
  box-shadow: 0 1px 4px rgba(90, 62, 43, .18);
}
.slots-busy .spinner { width: 16px; height: 16px; }
.slots-skeleton { height: 240px; border-radius: var(--r-field); background: var(--c-taken); }
.slot-live .alert { margin-bottom: 12px; }
@media (prefers-reduced-motion: reduce) {
  .slots-body { transition: none; }
}

/* Grille semaine (bureau) : --days = nombre de jours ouverts (5 à 7) */
.week-grid { display: none; grid-template-columns: repeat(var(--days, 5), minmax(0, 1fr)); gap: 8px; }
.day-col { display: grid; gap: 6px; align-content: start; }
.day-head { margin-bottom: 4px; padding: 8px 0 10px; border-radius: var(--r-field); background: rgba(164, 126, 74, .09); text-align: center; }
.day-head-dow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--c-gold-dark); }
.day-head-dom { font-family: var(--font-serif); font-size: 21px; color: var(--c-brown); }
.day-empty { padding: 10px 4px; font-size: 12px; text-align: center; color: var(--c-disabled); }

/* Créneau : aria-pressed="true" (ou .is-selected) = choisi, disabled = indisponible */
.slot {
  min-height: 44px;
  padding: 0 4px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--g-choice);
  box-shadow: var(--sh-choice);
  color: var(--c-brown);
  font-size: 14px;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}
.slot:hover { box-shadow: var(--sh-ghost); }
.slot[aria-pressed="true"], .slot.is-selected {
  border-color: transparent;
  background: var(--g-primary);
  color: var(--c-cream);
  box-shadow: var(--sh-selected);
  font-weight: 500;
}
.slot:disabled {
  border-color: transparent;
  background: var(--c-taken);
  box-shadow: none;
  color: var(--c-disabled);
  text-decoration: line-through;
  cursor: not-allowed;
}

/* Mobile : onglets par jour + créneaux du jour choisi */
.week-mobile { display: grid; gap: 12px; }
.day-tabs { display: grid; grid-template-columns: repeat(var(--days, 5), minmax(0, 1fr)); gap: 6px; }
.day-tab {
  min-height: 60px;
  padding: 8px 0;
  border: 1px solid var(--c-border);
  border-radius: var(--r-tab);
  background: var(--g-choice);
  box-shadow: var(--sh-choice);
  color: var(--c-brown);
  cursor: pointer;
  transition: background-color var(--t-fast), box-shadow var(--t-fast);
}
.day-tab[aria-selected="true"], .day-tab.is-selected {
  border-color: transparent;
  background: var(--g-primary);
  color: var(--c-cream);
  box-shadow: var(--sh-selected);
}
.day-tab:disabled { opacity: .45; cursor: not-allowed; }
.day-tab-dow { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.day-tab-dom { display: block; font-family: var(--font-serif); font-size: 19px; line-height: 1.2; }
.slots-mobile { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.slots-empty { grid-column: 1 / -1; }

@media (min-width: 760px) {
  .week-grid { display: grid; }
  .week-mobile { display: none; }
}

/* Légende des créneaux */
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; font-size: 12px; color: var(--c-brown); }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.legend-dot.is-free { border: 1px solid var(--c-gold); background: #fff; }
.legend-dot.is-selected { background: var(--c-brown); }
.legend-dot.is-taken { background: rgba(90, 62, 43, .12); }

/* Récapitulatif prix (étape 3) */
.quote { display: grid; gap: 6px; }
.quote-line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.quote-total { font-family: var(--font-serif); font-size: 24px; color: var(--c-brown); }
.quote-old { text-decoration: line-through; color: var(--c-disabled); }

/* Code SMS à 4 chiffres */
.code-input {
  min-height: 68px;
  padding: 16px;
  border-radius: var(--r-pill);
  font-family: var(--font-serif);
  font-size: 32px;
  letter-spacing: .5em;
  text-align: center;
  text-indent: .5em; /* recentre malgré l'espacement final */
  color: var(--c-brown);
}
.code-input::placeholder { letter-spacing: .5em; }

/* Téléphone vérifié (étape 3) : même gabarit qu'un champ, sans en avoir l'air (pas de bordure ni d'ombre) */
.field-static {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  min-height: 50px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--r-field);
  background: var(--c-tint);
  color: var(--c-ink);
  font-size: 16px;
}
.field-static-meta { color: var(--c-gold-deep); font-size: 13px; }
/* Poussé à droite sur une ligne assez large ; sur mobile, il passe à la ligne aligné à gauche (spec UX §6) */
@media (min-width: 640px) {
  .field-static .btn-link { margin-left: auto; }
}

/* Confirmation */
.success-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--g-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 16px 34px rgba(74, 53, 38, .28);
  color: var(--c-cream);
  font-family: var(--font-serif);
  font-size: 40px;
}
.confirm-title { font-size: 36px; }
.confirm-text { font-size: 17px; font-weight: 300; line-height: 1.6; }
.confirm-ref { font-family: var(--font-mono); color: var(--c-gold-dark); }

/* ---------- Pages simples (annulation, mentions légales, confidentialité) ---------- */
.page-main { padding: 6vh var(--gutter) 8vh; }
.panel-narrow { max-width: 720px; }
.legal h2 { margin: 32px 0 12px; font-size: 28px; }
.legal p, .legal li { font-size: 16px; font-weight: 300; line-height: 1.7; }
.legal ul { padding-left: 20px; }
.todo { padding: 1px 6px; border-radius: 6px; background: var(--c-tint-strong); color: var(--c-gold-deep); font-weight: 400; }

/* ---------- Ajouts Task 11 (accueil, pages légales, annulation) ---------- */
.story-title { margin-bottom: 26px; }
.figures-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
ol.timeline { padding: 6px 0 6px 36px; } /* l'emporte sur ol[role="list"] de base.css */
.contact-text { margin-bottom: 26px; }

.legal p.kicker { margin-bottom: 14px; font-size: 12px; font-weight: 400; line-height: 1.5; }
.legal p.legal-updated { margin-top: 10px; font-size: 14px; color: var(--c-gold-dark); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; }
.legal ul + p { margin-top: 12px; }
.legal li + li { margin-top: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal dl { display: grid; grid-template-columns: minmax(0, 12em) minmax(0, 1fr); gap: 8px 18px; margin: 12px 0 0; font-size: 16px; font-weight: 300; line-height: 1.6; }
.legal dt { font-weight: 400; color: var(--c-brown); }
.legal dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .legal dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .legal dd + dt { margin-top: 10px; }
}

/* Annulation : récapitulatif du RDV et blocs d'état ([data-state]) */
.cancel-title { margin-bottom: 22px; }
.cancel-state { display: grid; gap: 18px; justify-items: start; }
.cancel-state > p:not(.notice, .alert) { font-size: 17px; font-weight: 300; line-height: 1.7; }
.cancel-state .btn-row { width: 100%; }
.recap { display: grid; margin: 0 0 24px; padding: 6px 22px; border-radius: var(--r-card); }
.recap-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.recap-row:last-child { border-bottom: 0; }
.recap dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--c-gold-dark); }
.recap dd { margin: 0; font-family: var(--font-serif); font-size: 21px; line-height: 1.25; color: var(--c-brown); text-align: right; }
.recap dd.mono { font-family: var(--font-mono); font-size: 15px; color: var(--c-gold-dark); }
[data-message]:focus { outline: none; }
