/* RdvCoiff — site vitrine. Identité « pâte » (claymorphism) de l'application. */

:root {
  --primary: #5b4fff;
  --primary-dark: #4a3fe0;
  --primary-soft: #e6e2ff;
  --coral: #ff7a59;
  --mint: #7fd8b6;
  --butter: #ffd873;
  --lilac: #c9c1ff;
  --text: #1e1b33;
  --text-muted: #5e5a78;
  --surface: #fbfaff;
  --bg: #ece9fb;
  --border: #dcd7f5;
  --success-text: #0b7a55;

  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 36px;
  /* Pâte : relief externe doux + reflet interne en haut à gauche */
  --clay: 0 18px 40px -18px rgba(74, 63, 224, 0.35), 0 4px 10px -4px rgba(30, 27, 51, 0.12),
    inset 0 2px 0 rgba(255, 255, 255, 0.9), inset 0 -6px 14px rgba(91, 79, 255, 0.08);
  --clay-sm: 0 10px 22px -12px rgba(74, 63, 224, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.85),
    inset 0 -4px 10px rgba(91, 79, 255, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}
/* Icônes du sprite : tracé type Lucide */
svg.i {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

a {
  color: var(--primary-dark);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--text);
  color: #fff;
  border-radius: 12px;
  font-weight: 800;
}
.skip-link:focus {
  top: 12px;
}

.container {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.3rem, 6vw, 3.9rem);
}
h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

.muted {
  color: var(--text-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--clay-sm);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--primary-dark);
  margin-bottom: 18px;
}

/* ── Pâtes ──────────────────────────────────────────────── */
.clay {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--clay);
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  box-shadow: var(--clay-sm);
  color: var(--text);
  flex-shrink: 0;
}
.icon-badge svg {
  width: 26px;
  height: 26px;
}
.bg-lilac {
  background: var(--lilac);
}
.bg-mint {
  background: var(--mint);
}
.bg-butter {
  background: var(--butter);
}
.bg-coral {
  background: var(--coral);
}
.bg-soft {
  background: var(--primary-soft);
}

/* ── Boutons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.btn svg {
  width: 20px;
  height: 20px;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #6c62ff, var(--primary-dark));
  box-shadow: 0 16px 30px -14px rgba(74, 63, 224, 0.8), inset 0 2px 0 rgba(255, 255, 255, 0.35),
    inset 0 -4px 8px rgba(0, 0, 0, 0.12);
}
.btn-coral {
  color: var(--text);
  background: linear-gradient(135deg, #ff9677, var(--coral));
  box-shadow: 0 16px 30px -14px rgba(255, 122, 89, 0.9), inset 0 2px 0 rgba(255, 255, 255, 0.45),
    inset 0 -4px 8px rgba(0, 0, 0, 0.08);
}
.btn-soft {
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--clay-sm);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(1px) scale(0.98);
}
.btn[aria-disabled='true'] {
  cursor: default;
  opacity: 0.75;
}
.btn[aria-disabled='true']:hover {
  transform: none;
}

/* ── En-tête ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0;
  background: rgba(236, 233, 251, 0.82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: var(--clay-sm);
}
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a:not(.btn) {
  padding: 10px 12px;
  font-weight: 800;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 12px;
}
.nav a:not(.btn):hover {
  color: var(--text);
}
.nav .btn {
  min-height: 44px;
  padding: 0 18px;
}
@media (max-width: 760px) {
  .nav a:not(.btn) {
    display: none;
  }
}

/* ── Héros ──────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 48px 0 72px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}
.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 34ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-note {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.blob {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  box-shadow: var(--clay);
}
.blob-1 {
  width: 260px;
  height: 260px;
  right: -80px;
  top: -40px;
  background: var(--lilac);
}
.blob-2 {
  width: 140px;
  height: 140px;
  left: -50px;
  bottom: 10px;
  background: var(--butter);
}
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 28px;
  }
}

/* Téléphone factice : un vrai rendez-vous tel que l'app l'affiche */
.phone {
  justify-self: center;
  width: min(330px, 100%);
  padding: 14px;
  border-radius: 46px;
  background: var(--text);
  box-shadow: 0 40px 70px -30px rgba(30, 27, 51, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.15);
}
.phone-screen {
  border-radius: 34px;
  background: var(--bg);
  padding: 22px 16px 18px;
  display: grid;
  gap: 14px;
}
.phone-title {
  font-weight: 900;
  font-size: 1.15rem;
  margin: 0;
}
.rdv-card {
  padding: 16px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--clay-sm);
  display: grid;
  gap: 10px;
}
.rdv-head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.rdv-time {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--butter);
  box-shadow: var(--clay-sm);
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  font-size: 1.05rem;
}
.rdv-time small {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
}
.rdv-salon {
  font-weight: 900;
  line-height: 1.25;
}
.rdv-service {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.pill svg {
  width: 14px;
  height: 14px;
}
.pill-success {
  background: #d7f4e8;
  color: var(--success-text);
}
.rdv-deposit {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--success-text);
}
.notif {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--clay-sm);
  font-size: 0.85rem;
  line-height: 1.35;
}
.notif img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

/* ── Sections ───────────────────────────────────────────── */
section {
  padding: 72px 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.problems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.problem {
  padding: 26px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.problem p {
  margin: 0;
  color: var(--text-muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 26px 26px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px;
  left: 26px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  box-shadow: var(--clay-sm);
}
.step p {
  margin: 0;
  color: var(--text-muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  padding: 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature h3 {
  margin-bottom: 4px;
}
.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.pro {
  background: var(--text);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 0;
}
.pro .container {
  width: min(1120px, 100% - 64px);
}
.pro h2 {
  color: #fff;
}
.pro .lead {
  color: #cdc9e8;
  font-size: 1.1rem;
}
.pro .features {
  margin-top: 32px;
}
.pro .feature {
  background: #2b2747;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.06), 0 18px 40px -22px rgba(0, 0, 0, 0.6);
}
.pro .feature p {
  color: #cdc9e8;
}
.pro-cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.pro-cta p {
  margin: 0;
  color: #cdc9e8;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.split > .clay {
  padding: 32px;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.check-list svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--success-text);
}

/* FAQ : <details> natifs, accessibles au clavier sans JavaScript */
.faq {
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin-inline: auto;
}
.faq details {
  padding: 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 900;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 44px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 1.3rem;
  transition: transform 200ms var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq .answer {
  padding: 0 24px 22px;
  color: var(--text-muted);
}
.faq .answer p:last-child {
  margin: 0;
}

.contact {
  text-align: center;
  padding: 48px 24px;
}
.contact .hero-cta {
  justify-content: center;
}

/* ── Pied de page ───────────────────────────────────────── */
.site-footer {
  padding: 40px 0 48px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.site-footer a {
  color: var(--text-muted);
  font-weight: 700;
}
.site-footer a:hover {
  color: var(--text);
}

/* ── Pages légales ──────────────────────────────────────── */
.legal {
  padding: 32px 0 72px;
}
.legal article {
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(24px, 5vw, 48px);
}
.legal h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
}
.legal h2 {
  font-size: 1.4rem;
  margin-top: 1.8em;
}
.legal h3 {
  margin-top: 1.3em;
}
.legal li {
  margin-bottom: 0.4em;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.95rem;
}
.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.legal th {
  background: var(--primary-soft);
}
.table-scroll {
  overflow-x: auto;
}
.updated {
  color: var(--text-muted);
  font-weight: 700;
}
/* Information légale à compléter avant publication (raison sociale, RCCM…) */
.a-completer {
  background: #fff1cc;
  color: #8f5600;
  border-radius: 6px;
  padding: 0 6px;
  font-weight: 800;
}

/* ── Apparition au défilement ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .faq summary::after {
    transition: none;
  }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .problems,
  .steps,
  .features {
    grid-template-columns: 1fr 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  body {
    font-size: 16px;
  }
  section {
    padding: 52px 0;
  }
  .problems,
  .steps,
  .features {
    grid-template-columns: 1fr;
  }
  .steps {
    gap: 32px;
  }
  .pro {
    border-radius: var(--radius);
  }
  .pro .container {
    width: min(1120px, 100% - 32px);
  }
  .hero-cta .btn {
    width: 100%;
  }
  .blob-1 {
    width: 180px;
    height: 180px;
    right: -90px;
  }
}
