/* Ondes, salon de coiffure (exemple fictif Simplavie) */

@font-face { font-family: "Fraunces"; src: url("fonts/fraunces.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("fonts/work-sans.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --ink: #2B1630;     /* aubergine */
  --plum: #6E2C5E;    /* prune, boutons et mèches */
  --lilac: #F3E9F5;   /* lilas pâle, fonds */
  --mauve: #C99AD0;   /* mauve, mèches claires */
  --muted: #65506A;
  --white: #FFFFFF;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --side: clamp(16px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 1.05rem; line-height: 1.6; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 420; line-height: 1.04; font-variation-settings: "SOFT" 100, "WONK" 1; text-wrap: balance; }
p, ul, dl, dd { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 4px; }
.frame { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--side); }
.lede { margin-top: 1rem; max-width: 36em; color: var(--muted); font-size: 1.1rem; }
section h2 { font-size: clamp(2.3rem, 6vw, 3.6rem); }

/* Bandeau « exemple fictif » */
.fiction { background: var(--ink); color: #fff; font-size: .85rem; }
.fiction-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding-block: .5rem; }
.fiction a { color: var(--mauve); font-weight: 600; }

/* Boutons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: .75rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; text-decoration: none; transition: background-color .15s, color .15s; }
.button-plum { background: var(--plum); color: #fff; }
.button-plum:hover { background: var(--ink); }
.button-soft { border-color: var(--plum); color: var(--plum); }
.button-soft:hover { background: var(--plum); color: #fff; }
.button-light { background: #fff; color: var(--ink); }
.button-light:hover { background: var(--lilac); }
.button-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.button-outline:hover { background: rgba(255,255,255,.12); }

/* En-tête */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid #e6d9ea; }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.wordmark { display: flex; align-items: baseline; gap: .45rem; font-family: var(--serif); font-size: 1.9rem; font-weight: 500; font-variation-settings: "SOFT" 100, "WONK" 1; text-decoration: none; line-height: 1; }
.wordmark span { font-family: var(--sans); font-size: .85rem; font-weight: 500; color: var(--muted); }
.menu { display: flex; align-items: center; gap: 1.5rem; font-size: .97rem; }
.menu a { text-decoration: none; }
.menu a:hover { text-decoration: underline; text-underline-offset: .3em; }
.menu .menu-rdv { padding: .5rem 1.1rem; border-radius: 999px; background: var(--plum); color: #fff; font-weight: 600; }
.menu .menu-rdv:hover { background: var(--ink); text-decoration: none; }
.menu-toggle { display: none; min-height: 2.75rem; padding: .4rem 1.1rem; border: 1.5px solid var(--ink); border-radius: 999px; background: none; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 880px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--side) 1.25rem; background: #fff; border-bottom: 1px solid #e6d9ea; }
  .menu.is-open { display: flex; }
  .menu a { padding: .85rem 0; border-bottom: 1px solid var(--lilac); }
  .menu .menu-rdv { margin-top: 1rem; text-align: center; border-bottom: 0; }
}

/* Accueil */
.opening { background: var(--lilac); overflow: hidden; }
.opening-grid { display: grid; gap: 1.5rem; padding-block: clamp(2.75rem, 7vw, 5rem) 0; }
@media (min-width: 900px) { .opening-grid { grid-template-columns: 1.2fr .8fr; align-items: center; padding-block: 4rem; } }
.opening h1 { font-size: clamp(2.9rem, 9vw, 5.4rem); font-weight: 380; letter-spacing: -.015em; }
.opening-lead { margin-top: 1.4rem; max-width: 32em; font-size: 1.15rem; }
.opening-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.strands { width: min(100%, 400px); justify-self: center; margin-bottom: -40px; }
@media (min-width: 900px) { .strands { margin-bottom: 0; } }
.strands path { fill: none; stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: grow 1.6s cubic-bezier(.4,0,.2,1) forwards; }
.strands path:nth-child(odd) { stroke: var(--plum); }
.strands path:nth-child(even) { stroke: var(--mauve); }
.strands path:nth-child(2) { animation-delay: .15s; } .strands path:nth-child(3) { animation-delay: .3s; } .strands path:nth-child(4) { animation-delay: .45s; }
@keyframes grow { to { stroke-dashoffset: 0; } }

/* Signature : quelles sont vos boucles ? */
.curls { padding-block: clamp(3.5rem, 8vw, 6rem); }
.curl-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: 2.25rem; }
.curl { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem .25rem .8rem; background: #fff; border: 1.5px solid #dcc8e0; border-radius: 18px; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.curl svg { width: 100%; max-width: 54px; height: auto; aspect-ratio: 60 / 200; }
.curl path { fill: none; stroke: var(--plum); stroke-width: 2.6; stroke-linecap: round; }
.curl:hover { border-color: var(--plum); }
.curl[aria-checked="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.curl[aria-checked="true"] path { stroke: #F1DDF3; }
@media (min-width: 700px) { .curl { padding: 1.5rem .5rem 1.1rem; font-size: 1.1rem; } .curl svg { max-width: 70px; } }

.advice { display: grid; gap: 1.5rem; margin-top: 1rem; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--lilac); border-radius: 18px; }
@media (min-width: 800px) { .advice { grid-template-columns: 1fr auto; align-items: end; gap: 3rem; } }
.advice-kind { font-weight: 600; color: var(--plum); }
.advice-title { margin-top: .35rem; font-size: clamp(1.7rem, 4vw, 2.3rem); }
.advice-text { margin-top: .7rem; max-width: 36em; }
.advice-facts { display: flex; gap: 2.5rem; }
.advice-facts dt { font-size: .9rem; color: var(--muted); }
.advice-facts dd { font-family: var(--serif); font-size: 2.4rem; line-height: 1.1; font-variation-settings: "SOFT" 100, "WONK" 1; white-space: nowrap; }
.curl-help { margin-top: 1rem; color: var(--muted); font-size: .97rem; }

/* Prestations */
.services { padding-block: clamp(3.5rem, 8vw, 6rem); border-top: 1px solid #e6d9ea; }
.services-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .services-grid { grid-template-columns: .8fr 1.2fr; gap: 4rem; } }
.price-list h3 { font-size: 1.6rem; }
.price-list h3 + ul { margin-top: .75rem; }
.price-list ul + h3 { margin-top: 2.25rem; }
.price-list ul { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1.25rem; padding-block: .85rem; border-bottom: 1px solid #e6d9ea; }
.price-list .item small { display: block; font-size: .9rem; color: var(--muted); }
.price-list .cost { flex: none; font-family: var(--serif); font-size: 1.35rem; font-variation-settings: "SOFT" 100, "WONK" 1; }

/* Le salon */
.method { background: var(--lilac); padding-block: clamp(3.5rem, 8vw, 6rem); }
.method-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .method-grid { grid-template-columns: .8fr 1.2fr; gap: 4rem; } }
.method-big { font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.25; font-variation-settings: "SOFT" 100, "WONK" 1; margin-bottom: 1rem; }
.method-body > p + p { max-width: 36em; }
.method-points { list-style: none; padding: 0; margin-top: 1.75rem; display: grid; gap: 1rem; }
.method-points li { padding-left: 1.1rem; border-left: 3px solid var(--plum); }

/* Rendez-vous */
.booking { background: var(--ink); color: #fff; padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.booking h2 { color: #fff; font-size: clamp(2.6rem, 7vw, 4.2rem); }
.booking-inner > p { margin-top: 1rem; font-size: 1.15rem; max-width: 34em; }
.booking-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.75rem; }
.booking .booking-tip { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.25); font-size: 1rem; color: #E6D4EA; }
.booking-tip b { color: #fff; }
.booking :focus-visible { outline-color: #fff; }

/* Horaires */
.visit { padding-block: clamp(3.5rem, 8vw, 6rem); }
.visit-grid { display: grid; gap: 2rem; }
@media (min-width: 860px) { .visit-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.open-now { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem; padding: .35rem .9rem; border-radius: 999px; background: var(--lilac); font-weight: 600; }
.open-now:empty { display: none; }
.open-now::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--muted); }
.open-now.is-open::before { background: #2F7D4F; }
.address { margin-top: 1rem; max-width: 30em; }
.hours { width: 100%; border-collapse: collapse; }
.hours caption { text-align: left; font-family: var(--serif); font-size: 1.6rem; font-variation-settings: "SOFT" 100, "WONK" 1; padding-bottom: .75rem; }
.hours th, .hours td { padding: .7rem 0; border-bottom: 1px solid #e6d9ea; text-align: left; font-weight: 400; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 600; color: var(--plum); }

.end { padding-block: 1.75rem; border-top: 1px solid #e6d9ea; font-size: .9rem; color: var(--muted); }
.end-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .strands path { stroke-dashoffset: 0; }
}
