/* Studio Kléo — coiffeur & barbier */

:root {
  --blanc: #fbf8f6;
  --blanc-2: #f2ebe6;
  --encre: #17161a;
  --encre-doux: #5d5760;
  --corail: #e0644f;
  --corail-clair: #f4a596;
  --sable: #e8dcd2;
  --display: "Syne", system-ui, sans-serif;
  --sans: "Outfit", system-ui, sans-serif;
  --wrap: 1220px;
  --pad: clamp(1.1rem, 4vw, 2.4rem);
  --r: 26px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 1.03rem;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -.035em; margin: 0 0 .5em; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--corail); outline-offset: 3px; }

.wrap { width: min(100% - var(--pad) * 2, var(--wrap)); margin-inline: auto; }
section { padding-block: clamp(3.6rem, 8.5vw, 7rem); position: relative; }
.center { text-align: center; }

.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 600; color: var(--corail); margin: 0 0 1rem;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--corail); }
.center .kicker { justify-content: center; }
.title { font-size: clamp(2rem, 4.6vw, 3.3rem); }
.title-xl { font-size: clamp(2.6rem, 6.6vw, 5rem); }
.intro { font-size: 1.08rem; color: var(--encre-doux); max-width: 56ch; }
.center .intro { margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.8rem; border-radius: 100px; background: var(--encre); color: var(--blanc);
  font-family: var(--sans); font-weight: 500; font-size: .95rem; border: 1.5px solid var(--encre);
  cursor: pointer; transition: background .3s, color .3s, transform .3s;
}
.btn:hover { background: transparent; color: var(--encre); transform: translateY(-2px); }
.btn-corail { background: var(--corail); border-color: var(--corail); color: #fff; }
.btn-corail:hover { background: transparent; color: var(--corail); }
.btn-line { background: transparent; color: var(--encre); }
.btn-line:hover { background: var(--encre); color: var(--blanc); }

/* ---------- En-tête ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 60; padding-block: 1.1rem; transition: .35s; }
.site-header.is-stuck { background: rgba(251,248,246,.92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(23,22,26,.09); padding-block: .6rem; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.04em; display: flex; align-items: center; gap: .55rem; }
.brand i { width: 11px; height: 11px; border-radius: 50%; background: var(--corail); display: block; }
.menu { display: flex; align-items: center; gap: 1.7rem; }
.menu a { font-size: .95rem; font-weight: 400; position: relative; }
.menu a::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px; background: var(--corail); transition: width .3s; }
.menu a:hover::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: .8rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--encre); background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 17px; height: 1.6px; background: var(--encre); margin: 4px auto; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

@media (max-width: 940px) {
  .menu { position: fixed; inset: 0; background: var(--blanc); flex-direction: column; justify-content: center; gap: 1.6rem; transform: translateY(-100%); transition: transform .45s cubic-bezier(.7,0,.2,1); }
  .menu.is-open { transform: none; }
  .menu a { font-size: 1.5rem; font-family: var(--display); font-weight: 700; }
  .nav-toggle { display: block; position: relative; z-index: 70; }
  .header-cta .btn { display: none; }
}

/* ---------- Héros ---------- */
.hero { padding-top: clamp(7rem, 14vw, 10rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { max-width: 12ch; }
.hero h1 span { color: var(--corail); }
.hero-sub { font-size: 1.15rem; color: var(--encre-doux); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-note { display: flex; align-items: center; gap: .8rem; margin-top: 2rem; font-size: .9rem; color: var(--encre-doux); }
.hero-note b { color: var(--encre); font-weight: 600; }
.avatars { display: flex; }
.avatars img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--blanc); object-fit: cover; margin-left: -12px; }
.avatars img:first-child { margin-left: 0; }

.hero-media { position: relative; }
.hero-media > img { width: 100%; aspect-ratio: 4/4.6; object-fit: cover; border-radius: 200px 200px var(--r) var(--r); }
.hero-card {
  position: absolute; left: -6%; bottom: 7%; background: var(--blanc);
  border-radius: 18px; padding: 1rem 1.3rem; box-shadow: 0 24px 50px -24px rgba(23,22,26,.4);
  display: flex; align-items: center; gap: .9rem;
}
@media (max-width: 520px) { .hero-card { left: 0; } }
.hero-card b { display: block; font-family: var(--display); font-size: 1.5rem; line-height: 1; }
.hero-card span { font-size: .78rem; color: var(--encre-doux); }
.hero-card .ring {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--corail) 0 88%, var(--sable) 0);
  display: grid; place-items: center;
}
.hero-card .ring::after { content: ""; width: 30px; height: 30px; border-radius: 50%; background: var(--blanc); }

/* ---------- Bandeau ---------- */
.ticker { background: var(--encre); color: var(--blanc); padding-block: .9rem; overflow: hidden; }
.ticker-in { display: flex; gap: 2.5rem; width: max-content; animation: run 30s linear infinite; }
@keyframes run { to { transform: translateX(calc(-50% - 1.25rem)); } }
.ticker span { font-family: var(--display); font-weight: 600; font-size: .95rem; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 2.5rem; white-space: nowrap; }
.ticker span::after { content: "✳"; color: var(--corail); }

/* ---------- Prestations ---------- */
.services { background: var(--blanc-2); }
.svc-tabs { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 2.2rem 0 2.8rem; }
.svc-tabs button {
  border: 1.5px solid rgba(23,22,26,.16); background: transparent; border-radius: 100px;
  padding: .6rem 1.4rem; font-family: var(--sans); font-size: .92rem; cursor: pointer; transition: .25s;
}
.svc-tabs button:hover { border-color: var(--encre); }
.svc-tabs button[aria-selected="true"] { background: var(--encre); border-color: var(--encre); color: var(--blanc); font-weight: 500; }
.price-list { max-width: 760px; margin-inline: auto; }
.price-row { display: flex; align-items: flex-start; gap: 1.2rem; padding: 1.15rem 0; border-bottom: 1px solid rgba(23,22,26,.12); }
.price-row:last-child { border-bottom: 0; }
.price-row .pl-main { flex: 1; }
.price-row h3 { font-size: 1.15rem; margin: 0 0 .2rem; letter-spacing: -.02em; }
.price-row p { margin: 0; font-size: .92rem; color: var(--encre-doux); }
.price-row .dur { font-size: .78rem; color: var(--corail); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.price-row .amount { font-family: var(--display); font-weight: 700; font-size: 1.35rem; flex: none; }

/* ---------- Galerie ---------- */
.masonry { columns: 3; column-gap: 1rem; }
@media (max-width: 860px) { .masonry { columns: 2; } }
@media (max-width: 520px) { .masonry { columns: 1; } }
.masonry figure { margin: 0 0 1rem; break-inside: avoid; position: relative; overflow: hidden; border-radius: var(--r); }
.masonry img { width: 100%; transition: transform .7s cubic-bezier(.2,1,.3,1); }
.masonry figure:hover img { transform: scale(1.06); }
.masonry figcaption {
  position: absolute; inset: auto 0 0; padding: 2rem 1.2rem .9rem;
  background: linear-gradient(transparent, rgba(23,22,26,.8)); color: var(--blanc);
  font-family: var(--display); font-weight: 600; font-size: 1rem;
}

/* ---------- Équipe ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6rem; }
.member img { width: 100%; aspect-ratio: 3/3.6; object-fit: cover; border-radius: var(--r); margin-bottom: 1rem; }
.member h3 { font-size: 1.25rem; margin-bottom: .1rem; }
.member .role { color: var(--corail); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-bottom: .5rem; }
.member p { font-size: .92rem; color: var(--encre-doux); margin: 0; }

/* ---------- Avis ---------- */
.reviews { background: var(--encre); color: var(--blanc); }
.reviews .intro { color: rgba(251,248,246,.65); }
.rev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.rev { border: 1px solid rgba(251,248,246,.18); border-radius: var(--r); padding: 1.8rem; }
.rev .stars { color: var(--corail-clair); letter-spacing: .18em; margin-bottom: .8rem; }
.rev blockquote { margin: 0 0 1.2rem; font-size: 1.03rem; line-height: 1.6; }
.rev cite { font-style: normal; font-size: .85rem; color: rgba(251,248,246,.6); }

/* ---------- Rendez-vous ---------- */
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .book-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 1rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .82rem; font-weight: 500; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid rgba(23,22,26,.16); border-radius: 14px; padding: .8rem 1rem;
  font-family: var(--sans); font-size: .98rem; background: var(--blanc); font-weight: 300;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--corail); }
.form-ok { border-radius: 14px; background: rgba(224,100,79,.1); border: 1.5px solid var(--corail); padding: .9rem 1.1rem; font-size: .94rem; }
.info-card { background: var(--blanc-2); border-radius: var(--r); padding: clamp(1.6rem, 3vw, 2.4rem); }
.hours { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed rgba(23,22,26,.16); font-size: .94rem; }
.hours li.closed { color: var(--encre-doux); }
.status { display: inline-flex; align-items: center; gap: .5rem; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 1rem; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.is-open-now { color: #2f8a4e; }
.status.is-closed-now { color: var(--corail); }
.map-embed { border-radius: var(--r); overflow: hidden; margin-top: 1.4rem; }
.map-embed iframe { width: 100%; height: 230px; border: 0; display: block; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--encre); color: rgba(251,248,246,.68); padding: clamp(3rem,6vw,4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.4rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: var(--blanc); margin-bottom: 1rem; }
.site-footer h4 { font-family: var(--sans); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--corail-clair); font-weight: 600; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .95rem; }
.site-footer a:hover { color: var(--blanc); }
.footer-bottom { margin-top: 2.8rem; padding-top: 1.4rem; border-top: 1px solid rgba(251,248,246,.16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; font-size: .82rem; }

/* ---------- Animation ---------- */
.js-anim [data-anim] { opacity: 0; transform: translateY(24px); transition: opacity .75s cubic-bezier(.2,1,.3,1), transform .75s cubic-bezier(.2,1,.3,1); }
.js-anim [data-anim].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-in { animation: none; }
  .js-anim [data-anim] { opacity: 1; transform: none; transition: none; }
}
