/* CZ Signature — composants. Un bloc par composant, préfixe cz-. */

/* ---------- Bouton ---------- */
.cz-btn {
  font: inherit; font-weight: 500; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-6);
  border-radius: var(--radius-pill); border: 1px solid var(--field-border);
  background: transparent; color: var(--ink); cursor: pointer; text-decoration: none;
}
.cz-btn:hover { background: var(--blush); }
.cz-btn-primary { background: var(--terracotta); border-color: var(--terracotta); color: var(--on-terracotta); }
.cz-btn-primary:hover { background: var(--terracotta); filter: brightness(.92); }
.cz-btn-small { min-height: 34px; padding: 0 var(--space-4); font-size: 14px; }
.cz-btn-danger { color: var(--danger); border-color: var(--danger); }
.cz-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- En-tête ---------- */
.cz-header { background: var(--blush); padding: var(--space-4) 0; position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); }
.cz-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.cz-logo { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 32px; color: var(--ink); text-decoration: none; }
.cz-nav { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.cz-nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.cz-nav a:hover { color: var(--terracotta); }
@media (max-width: 700px) { .cz-nav { display: none; } }

/* ---------- Accueil ---------- */
.cz-hero { background: var(--blush); padding: 72px 0 var(--space-12); text-align: center; }
.cz-hero .brand { font-family: var(--font-display); font-weight: 600; font-size: 64px; line-height: 68px; }
.cz-hero .signature { display: flex; align-items: center; justify-content: center; gap: var(--space-3); margin: var(--space-3) 0 var(--space-8); color: var(--ink-muted); }
.cz-hero .signature::before, .cz-hero .signature::after { content: ""; width: 48px; height: 1px; background: var(--ink-muted); }
.cz-hero .meta { margin-top: var(--space-6); color: var(--ink-muted); font-size: 14px; }
@media (max-width: 600px) { .cz-hero .brand { font-size: 48px; line-height: 52px; } }

/* ---------- Étiquette de rubrique ---------- */
.cz-rubric {
  display: inline-block; font-family: var(--font-script); font-size: 30px; line-height: 40px;
  background: var(--blush-strong); border-radius: var(--radius-pill); padding: 0 var(--space-6);
  box-shadow: var(--shadow-soft);
}

/* ---------- Carte d'information ---------- */
.cz-card {
  position: relative; background: var(--blush-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft); padding: var(--space-8) var(--space-6) var(--space-6);
  margin-top: var(--space-8);
}
.cz-card > .cz-rubric { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.cz-card .body { display: flex; gap: var(--space-6); align-items: flex-start; }
.cz-card .icon { flex: 0 0 56px; height: 56px; color: var(--ink); }
.cz-card ul { margin: 0; padding-left: 20px; }
.cz-card li + li { margin-top: var(--space-2); }
.cz-card ul.check { list-style: none; padding: 0; }
.cz-card ul.check li::before { content: "✓"; margin-right: var(--space-2); }
.cz-card ul.cross { list-style: none; padding: 0; }
.cz-card ul.cross li::before { content: "✕"; margin-right: var(--space-2); }
.cz-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
@media (max-width: 600px) { .cz-cols { grid-template-columns: 1fr; } .cz-card .icon { flex-basis: 40px; height: 40px; } }
.cz-note { margin-top: var(--space-8); text-align: center; font-family: var(--font-script); font-size: 26px; line-height: 34px; }

/* ---------- Liste de prix ---------- */
.cz-service { display: grid; grid-template-columns: 180px 1fr; gap: var(--space-8); align-items: center; padding: var(--space-6) 0; }
.cz-service + .cz-service { border-top: 1px solid var(--line); }
.cz-service img { width: 180px; height: 180px; object-fit: cover; border-radius: var(--radius-md); display: block; }
.cz-service h3 { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 32px; color: var(--terracotta); margin-bottom: var(--space-3); }
.cz-service .desc { color: var(--ink-muted); margin-bottom: var(--space-3); }
.cz-prices { list-style: none; margin: 0; padding: 0; }
.cz-prices li { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.cz-prices .price { font-weight: 500; font-size: 18px; color: var(--terracotta); white-space: nowrap; }
/* Téléphone : vignette carrée à gauche, titre et prix à droite (les photos actuelles sont petites : on ne les étire pas) */
@media (max-width: 600px) {
  .cz-service { grid-template-columns: 104px minmax(0, 1fr); gap: var(--space-4); align-items: start; padding: var(--space-6) 0; }
  .cz-service img { width: 104px; height: 104px; border-radius: var(--radius-sm); }
  .cz-service h3 { font-size: 18px; line-height: 24px; margin-bottom: var(--space-2); }
  .cz-service .desc { font-size: 14px; line-height: 20px; }
  .cz-prices li { font-size: 15px; }
  .cz-prices .price { font-size: 16px; }
}

/* ---------- Réservation ---------- */
.cz-steps { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: var(--space-8) var(--space-6); }
.cz-step + .cz-step { margin-top: var(--space-8); }
.cz-step h3 { font-size: 20px; line-height: 28px; margin-bottom: var(--space-4); }
.cz-step h3 .n { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--terracotta); color: var(--on-terracotta); align-items: center; justify-content: center; font-size: 15px; margin-right: var(--space-2); }
.cz-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-3); }
.cz-choice {
  font: inherit; text-align: left; cursor: pointer; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm); border: 1px solid var(--field-border); background: var(--slot-free); color: var(--ink);
  display: flex; justify-content: space-between; gap: var(--space-2);
}
.cz-choice small { color: var(--ink-muted); display: block; }
.cz-choice > span:last-child { white-space: nowrap; }
.cz-choice[aria-pressed="true"] { background: var(--terracotta); border-color: var(--terracotta); color: var(--on-terracotta); }
.cz-choice[aria-pressed="true"] small { color: var(--on-terracotta); }

.cz-days { display: flex; gap: var(--space-2); overflow-x: auto; padding-bottom: var(--space-2); }
.cz-day {
  font: inherit; flex: 0 0 72px; cursor: pointer; padding: var(--space-2); text-align: center;
  border-radius: var(--radius-sm); border: 1px solid var(--field-border); background: var(--slot-free); color: var(--ink);
  font-size: 14px; line-height: 20px;
}
.cz-day b { display: block; font-size: 20px; line-height: 26px; }
.cz-day[disabled] { background: var(--slot-taken); border-color: var(--slot-taken); color: var(--ink-muted); cursor: not-allowed; }
.cz-day[aria-pressed="true"] { background: var(--terracotta); border-color: var(--terracotta); color: var(--on-terracotta); }

.cz-slots { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.cz-slot {
  font: inherit; cursor: pointer; min-width: 80px; padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm); border: 1px solid var(--field-border); background: var(--slot-free); color: var(--ink);
}
.cz-slot[aria-pressed="true"] { background: var(--terracotta); border-color: var(--terracotta); color: var(--on-terracotta); }

/* ---------- Formulaires ---------- */
.cz-form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.cz-field { display: flex; flex-direction: column; gap: var(--space-1); }
.cz-field.full { grid-column: 1 / -1; }
.cz-field label { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.cz-field input, .cz-field select, .cz-field textarea {
  font: inherit; color: var(--ink); background: var(--slot-free);
  border: 1px solid var(--field-border); border-radius: var(--radius-sm); padding: var(--space-3);
}
.cz-check { display: flex; gap: var(--space-3); align-items: flex-start; grid-column: 1 / -1; }
.cz-check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--terracotta); }
@media (max-width: 600px) { .cz-form { grid-template-columns: 1fr; } }

/* ---------- Messages ---------- */
.cz-alert { border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); margin-top: var(--space-4); background: var(--blush); }
.cz-alert.ok { color: var(--success); border: 1px solid var(--success); }
.cz-alert.err { color: var(--danger); border: 1px solid var(--danger); }
.cz-recap { background: var(--blush); border-radius: var(--radius-md); padding: var(--space-4); margin-top: var(--space-4); }

/* ---------- Statuts (espace pro) ---------- */
.cz-status { display: inline-block; font-size: 13px; line-height: 20px; padding: 0 var(--space-3); border-radius: var(--radius-pill); border: 1px solid currentColor; }
.cz-status.pending { color: var(--ink-muted); }
.cz-status.confirmed { color: var(--success); }
.cz-status.cancelled { color: var(--danger); }

/* ---------- Pied de page ---------- */
.cz-footer { background: var(--blush-strong); padding: var(--space-8) 0; text-align: center; font-size: 14px; color: var(--ink-muted); }
.cz-footer .handle { font-family: var(--font-display); font-size: 24px; color: var(--ink); font-weight: 600; }

/* ---------- Avant / après (curseur) ---------- */
.cz-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: var(--space-8); }
.cz-ba { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 1080 / 565; background: var(--blush); }
.cz-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cz-ba .before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cz-ba .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--surface); pointer-events: none; }
.cz-ba .handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: var(--terracotta); color: var(--on-terracotta);
  display: flex; align-items: center; justify-content: center; font-weight: 500; letter-spacing: 2px; box-shadow: var(--shadow-soft);
}
.cz-ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.cz-ba figcaption { position: absolute; left: 50%; bottom: var(--space-3); transform: translateX(-50%); background: var(--surface); color: var(--ink); font-size: 13px; line-height: 20px; padding: 2px var(--space-3); border-radius: var(--radius-pill); white-space: nowrap; pointer-events: none; }
.cz-ba:has(input:focus-visible) { outline: 2px solid var(--terracotta); outline-offset: 3px; }

/* ---------- Avis ---------- */
.cz-rating-summary { display: flex; align-items: baseline; justify-content: center; gap: var(--space-3); margin-bottom: var(--space-6); flex-wrap: wrap; }
.cz-rating-summary .big { font-family: var(--font-display); font-size: 48px; line-height: 52px; color: var(--terracotta); }
.cz-rating-summary .stars, .cz-review .stars { color: var(--terracotta); letter-spacing: 2px; }
.cz-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--space-4); }
.cz-review { background: var(--blush); border-radius: var(--radius-md); padding: var(--space-6); box-shadow: var(--shadow-soft); }
.cz-review .text { margin: var(--space-3) 0; overflow-wrap: anywhere; }
.cz-review .who { font-size: 14px; color: var(--ink-muted); }
.cz-stars-input { display: flex; gap: var(--space-1); }
.cz-stars-input .star { font: inherit; font-size: 32px; line-height: 40px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--field-border); padding: 0; }
.cz-stars-input .star.on { color: var(--terracotta); }
.cz-stars-input:hover .star { color: var(--terracotta); }
.cz-stars-input .star:hover ~ .star { color: var(--field-border); }

/* ---------- Étiquettes avant / après ---------- */
.cz-ba .tag { position: absolute; top: var(--space-3); font-size: 13px; line-height: 20px; font-weight: 500; padding: 2px var(--space-3); border-radius: var(--radius-pill); background: var(--ink); color: #FFFFFF; pointer-events: none; }
.cz-ba .tag-before { left: var(--space-3); }
.cz-ba .tag-after { right: var(--space-3); background: var(--terracotta); }

/* ---------- Prochaine disponibilité ---------- */
.cz-next { display: inline-flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); padding: var(--space-1) var(--space-4); border-radius: var(--radius-pill); background: #FFFFFF; color: var(--ink); text-decoration: none; font-size: 14px; line-height: 24px; box-shadow: var(--shadow-soft); }
.cz-next .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(30, 107, 74, .5); animation: cz-pulse 1.8s infinite; }
@keyframes cz-pulse { 0% { box-shadow: 0 0 0 0 rgba(30, 107, 74, .5); } 70% { box-shadow: 0 0 0 8px rgba(30, 107, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(30, 107, 74, 0); } }
.cz-hero .cz-next + .cz-btn { display: flex; width: max-content; margin: 0 auto; }
@media (prefers-reduced-motion: reduce) { .cz-next .dot { animation: none; } }
.cz-results > .cz-ba:first-child:nth-last-child(odd) { grid-column: 1 / -1; }

/* ---------- Liste d'attente ---------- */
.cz-wait { margin-top: var(--space-3); }
.cz-link { font: inherit; font-size: 14px; background: none; border: 0; padding: var(--space-2) 0; color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; text-align: left; }
.cz-wait-form { margin-top: var(--space-3); background: var(--blush); border-radius: var(--radius-md); padding: var(--space-4); align-items: end; }

/* ---------- FAQ ---------- */
.cz-faq { display: flex; flex-direction: column; gap: var(--space-3); max-width: 760px; margin: 0 auto; }
.cz-faq-item { background: #FFFFFF; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); padding: 0 var(--space-6); }
.cz-faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); min-height: 60px; font-weight: 600; }
.cz-faq-item summary::-webkit-details-marker { display: none; }
.cz-faq-item summary::after { content: "+"; font-family: var(--font-display); font-size: 22px; color: var(--terracotta); transition: transform .2s ease; flex: none; }
.cz-faq-item[open] summary::after { transform: rotate(45deg); }
.cz-faq-item p { padding-bottom: var(--space-6); color: var(--ink-muted); }

/* ---------- Contact rapide ---------- */
.cz-contact { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0; }
.cz-contact .cz-btn { background: #FFFFFF; }
.cz-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; display: none; align-items: center; gap: var(--space-2);
  min-height: 52px; padding: 0 var(--space-6); border-radius: var(--radius-pill); text-decoration: none;
  background: var(--terracotta); color: var(--on-terracotta); font-weight: 600; box-shadow: 0 4px 0 var(--btn-depth), 0 10px 24px rgba(18,19,24,.25);
}
.cz-float::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H9l-5 4v-4H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H9l-5 4v-4H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 700px) { .cz-float:not(.hidden) { display: inline-flex; } .cz-footer { padding-bottom: 96px; } }

/* ---------- Après traitement : une carte unique ---------- */
.cz-after { padding: var(--space-8) var(--space-8) var(--space-6); }
.cz-after .after-top { display: flex; gap: var(--space-6); align-items: center; padding-bottom: var(--space-6); border-bottom: 1px solid var(--line); }
.cz-after .icon { flex: 0 0 56px; height: 56px; }
.cz-after .after-lead { font-size: 18px; line-height: 26px; font-weight: 600; margin-bottom: var(--space-1); }
.cz-after .after-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); padding-top: var(--space-6); }
.cz-after .after-col { background: #FFFFFF; border-radius: var(--radius-md); padding: var(--space-4) var(--space-6) var(--space-6); }
.cz-after .after-col h3 { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 24px; margin-bottom: var(--space-3); }
.cz-after .after-col.ok h3 { color: var(--success); }
.cz-after .after-col.no h3 { color: var(--danger); }
@media (max-width: 600px) { .cz-after { padding: var(--space-8) var(--space-4) var(--space-4); } .cz-after .after-cols { grid-template-columns: 1fr; } .cz-after .after-top { align-items: flex-start; } .cz-after .icon { flex-basis: 40px; height: 40px; } }

/* ---------- Mentions légales ---------- */
.cz-legal { max-width: 720px; margin: var(--space-4) auto 0; text-align: left; }
.cz-legal summary { cursor: pointer; text-align: center; min-height: 44px; display: flex; align-items: center; justify-content: center; text-decoration: underline; text-underline-offset: 3px; }
.cz-legal p { margin-top: var(--space-2); }
