/* ==========================================================================
   DEMO — Studio Élan · salon de coiffure
   Light, airy, editorial. Generous white space, thin rules, soft blush.
   ========================================================================== */

:root {
  --bone:   #fbf9f7;
  --shell:  #f2ebe6;
  --blush:  #e3c9c0;
  --clay:   #a97b6c;
  --ink:    #211d1b;
  --ink-2:  #6f6660;
  --line:   #e6ded8;
  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'Jost', ui-sans-serif, system-ui, sans-serif;
  --ease:   cubic-bezier(.2, .7, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.5rem; }
p  { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 26px; }
.narrow { max-width: 760px; }
section { padding: clamp(70px, 10vw, 130px) 0; }

.kicker {
  display: block;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 22px;
}

.rule { width: 40px; height: 1px; background: var(--blush); margin: 26px 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bone); }

/* ---------- demo ribbon (remove in a real client build) ---------- */
.demo-bar {
  background: #0a0a0f;
  color: #f4f4f6;
  font-size: .8rem;
  letter-spacing: .04em;
  padding: 9px 0;
  text-align: center;
}
.demo-bar a { color: #d4ff3f; }
.demo-bar a:hover { text-decoration: underline; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 247, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-block: 18px; }
.brand { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .06em; }
.brand small {
  display: block; font-family: var(--sans);
  font-size: .58rem; letter-spacing: .38em; text-transform: uppercase;
  color: var(--clay); margin-top: -2px;
}
.hdr nav { display: flex; gap: 32px; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
.hdr nav a { color: var(--ink-2); white-space: nowrap; transition: color .25s var(--ease); }
.hdr nav a:hover { color: var(--ink); }
.hdr .btn { padding: 12px 24px; font-size: .68rem; }

.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: none; cursor: pointer; }
.burger span, .burger span::before, .burger span::after {
  display: block; width: 16px; height: 1px; background: var(--ink); position: relative; margin-inline: auto;
}
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -5px; } .burger span::after { top: 5px; }

/* ---------- hero ---------- */
.hero { padding: clamp(70px, 9vw, 120px) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 6vw, 70px); align-items: end; }
.hero h1 em { font-style: italic; color: var(--clay); }
.hero p { color: var(--ink-2); max-width: 42ch; margin-top: 26px; }
.hero .btn { margin-top: 30px; }

/* Replace .portrait with <img src="images/salon.jpg" alt="Le salon"> */
.portrait {
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(70% 55% at 60% 25%, rgba(255,255,255,.5), transparent 60%),
    linear-gradient(160deg, var(--blush), #cfae9f 55%, #8e6b5e);
  position: relative;
}
.portrait::after { content: ''; position: absolute; inset: 16px; border: 1px solid rgba(251,249,247,.5); }

.marquee {
  margin-top: clamp(50px, 7vw, 90px);
  border-block: 1px solid var(--line);
  padding: 20px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-in { display: inline-flex; gap: 60px; animation: slide 34s linear infinite; }
.marquee span {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--ink-2);
}
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- philosophie ---------- */
.philo { text-align: center; }
.philo .wrap { max-width: 760px; }
.philo h2 { margin-bottom: 8px; }
.philo p { color: var(--ink-2); font-size: 1.08rem; }
.philo .rule { margin-inline: auto; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(46px, 6vw, 76px);
  text-align: left;
}
.pillar { background: var(--bone); padding: 36px 30px; }
.pillar b {
  display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--blush); line-height: 1; margin-bottom: 16px;
}
.pillar h3 { font-size: 1.2rem; margin-bottom: 8px; }
.pillar p { color: var(--ink-2); font-size: .93rem; margin: 0; }

/* ---------- prestations ---------- */
.svc-sec { background: var(--shell); }
.svc-head { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: end; margin-bottom: clamp(38px, 5vw, 58px); }
.svc-head p { color: var(--ink-2); max-width: 40ch; margin: 0; font-size: .95rem; }

.svc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 72px); }
.svc-block h3 {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--clay);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--blush);
  margin-bottom: 8px;
}
.svc-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.svc-item .n { font-family: var(--serif); font-size: 1.32rem; }
.svc-item .p { font-family: var(--serif); font-size: 1.32rem; white-space: nowrap; }
.svc-item .d { grid-column: 1 / -1; font-size: .88rem; color: var(--ink-2); }
.svc-item .t { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--clay); }

.svc-foot { margin-top: 44px; font-size: .88rem; color: var(--ink-2); }

/* ---------- équipe ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: clamp(40px, 5vw, 62px); }
.member .ph {
  aspect-ratio: 4 / 5;
  margin-bottom: 20px;
  position: relative;
  transition: transform .5s var(--ease);
}
.member:hover .ph { transform: translateY(-6px); }
/* Replace with real portraits */
.member:nth-child(1) .ph { background: linear-gradient(160deg,#e8d3c9,#a97b6c); }
.member:nth-child(2) .ph { background: linear-gradient(160deg,#ded4cb,#8a7a70); }
.member:nth-child(3) .ph { background: linear-gradient(160deg,#e6d8cd,#9c8375); }
.member .ph::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(251,249,247,.45); }
.member h3 { font-size: 1.35rem; }
.member .role { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--clay); margin-top: 4px; }
.member p { color: var(--ink-2); font-size: .9rem; margin-top: 10px; }

/* ---------- témoignages ---------- */
.quotes { background: var(--ink); color: var(--bone); }
.quotes .kicker { color: var(--blush); }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(251,249,247,.16); border: 1px solid rgba(251,249,247,.16); }
.quote { background: var(--ink); padding: 38px 32px; }
.quote .stars { color: var(--blush); letter-spacing: .2em; font-size: .82rem; margin-bottom: 16px; }
.quote p { font-family: var(--serif); font-size: 1.25rem; font-style: italic; line-height: 1.5; }
.quote .who { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(251,249,247,.55); }

/* ---------- rdv ---------- */
.rdv-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.rdv-info p { color: var(--ink-2); }
.hours { list-style: none; margin: 30px 0 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.hours li span:first-child { color: var(--ink-2); }
.hours li.off span:last-child { color: var(--clay); }
.rdv-addr { margin-top: 30px; font-size: .95rem; color: var(--ink-2); }
.rdv-addr strong { display: block; color: var(--ink); font-weight: 500; }

.rdv-form { border: 1px solid var(--line); padding: clamp(28px, 4vw, 40px); display: grid; gap: 18px; background: #fff; }
.rdv-form h3 { margin-bottom: -4px; }
.r2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rdv-form label { display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.rdv-form input, .rdv-form select, .rdv-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  padding: 9px 0;
  font: inherit;
  font-size: .98rem;
  color: var(--ink);
  border-radius: 0;
}
.rdv-form textarea { min-height: 70px; resize: vertical; }
.rdv-form input:focus, .rdv-form select:focus, .rdv-form textarea:focus { outline: none; border-bottom-color: var(--clay); }
.rdv-form .note { font-size: .78rem; color: var(--ink-2); margin: 0; }
.form-ok { border: 1px solid var(--clay); padding: 18px 20px; font-size: .95rem; background: var(--shell); }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--line); padding: 40px 0; font-size: .84rem; color: var(--ink-2); }
.ftr .wrap { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; align-items: center; }
.ftr a:hover { color: var(--ink); }

/* ---------- reveal ---------- */
/* visible by default; only hidden once the inline <head> script adds .js */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, .marquee-in { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .svc-cols, .rdv-grid { grid-template-columns: 1fr; }
  .pillars, .team, .quote-grid { grid-template-columns: 1fr; }
  .portrait { aspect-ratio: 4/3; }
}
@media (max-width: 980px) {
  .hdr nav {
    display: none; position: absolute; top: 100%; left: 14px; right: 14px;
    flex-direction: column; gap: 0; background: var(--bone);
    border: 1px solid var(--line); padding: 8px;
  }
  .hdr nav.open { display: flex; }
  .hdr nav a { padding: 12px; }
  .hdr .wrap { position: relative; }
  .hdr .btn { display: none; }
  .burger { display: block; }
}
@media (max-width: 520px) { .r2 { grid-template-columns: 1fr; } }
