/* ==========================================================================
   L'Atelier du mouvement — Clinique de physiothérapie
   ========================================================================== */

:root {
  --plum: rgb(69, 42, 63);
  --plum-deep: rgb(52, 31, 47);
  --terra: rgb(190, 133, 111);
  --terra-dark: rgb(168, 111, 90);
  --sage: rgb(173, 184, 163);
  --sage-light: rgb(214, 220, 207);
  --cream: rgb(242, 239, 233);
  --white: #fff;

  --text: var(--plum);
  --text-soft: rgba(69, 42, 63, 0.75);
  --line: rgba(69, 42, 63, 0.14);

  --font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --radius: 4px;
  --header-h: 84px;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--plum); color: var(--cream); padding: .6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* Layout ----------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--white { background: var(--white); }
.section--sage { background: var(--sage-light); }
.section--plum { background: var(--plum); color: var(--cream); }

/* Typography ------------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p + p { margin-top: 1em; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-soft); }
.section--plum .lead { color: rgba(242, 239, 233, 0.8); }

/* Eyebrow with the logo's slanted bar */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--terra-dark);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 2.2rem; height: .55rem; background: currentColor;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
}
.section--plum .eyebrow { color: var(--terra); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head .lead { margin-top: 1rem; }
.section-head--split {
  max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap;
}
.section-head--split > div { max-width: 40rem; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem;
  font-family: var(--font-body); font-size: .92rem; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; border: 1.5px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--terra); color: var(--white); }
.btn--primary:hover { background: var(--terra-dark); }
.btn--dark { background: var(--plum); color: var(--cream); }
.btn--dark:hover { background: var(--plum-deep); }
.btn--outline { border-color: var(--plum); color: var(--plum); }
.btn--outline:hover { background: var(--plum); color: var(--cream); }
.section--plum .btn--outline { border-color: rgba(242, 239, 233, .5); color: var(--cream); }
.section--plum .btn--outline:hover { background: var(--cream); color: var(--plum); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .92rem; text-decoration: none;
  border-bottom: 1.5px solid var(--terra); padding-bottom: .2rem;
}
.link-arrow svg { width: 1em; height: 1em; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 239, 233, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
.brand img { height: 52px; width: auto; }

.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  position: relative; text-decoration: none; font-size: .92rem; font-weight: 500; padding-block: .4rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--terra); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { padding: .75rem 1.25rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  align-items: center; justify-content: center; color: var(--plum);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: transform .25s, background .25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .brand img { height: 44px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 1.5rem;
    padding: 1.5rem var(--gutter) 2rem;
    background: var(--cream); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: .9rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav .btn { padding: 1rem; }
}

/* Hero ------------------------------------------------------------------- */
.hero-media { background: rgb(96, 150, 186); }
.hero-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.hero-intro { padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero-intro__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: end; }
.hero-intro h1 { max-width: 16ch; }
.hero-intro .lead { margin-bottom: 2rem; }

@media (max-width: 860px) {
  .hero-intro__grid { grid-template-columns: 1fr; }
}

/* About ------------------------------------------------------------------ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 6rem); }
.about-text { margin-top: 1.75rem; }
.about-text p { color: var(--text-soft); }
.about-text p:first-child { font-size: 1.15rem; color: var(--text); font-weight: 500; }

.steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.step__num { font-family: var(--font-display); font-size: .9rem; font-weight: 600; color: var(--terra-dark); padding-top: .15rem; }
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--text-soft); font-size: .95rem; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* Service cards ---------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card {
  background: var(--white); padding: 2rem 1.6rem 2.2rem;
  display: flex; flex-direction: column; gap: 1.4rem; min-height: 14rem;
  transition: background .25s;
}
.section--white .card { background: var(--cream); }
.card__num { font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--terra-dark); }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card__icon {
  width: 2.8rem; height: 2.8rem; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; background: var(--sage-light); color: var(--plum);
  transition: background .25s, color .25s;
}
.card__icon svg { width: 1.3rem; height: 1.3rem; }
.card h3 { font-size: 1.08rem; line-height: 1.3; margin-top: auto; }
.card:hover { background: var(--sage-light); }
.card:hover .card__icon { background: var(--white); color: var(--terra-dark); }

@media (max-width: 1024px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; flex-direction: row; align-items: center; gap: 1.2rem; padding: 1.4rem 1.3rem; }
  .card__top { flex-direction: row-reverse; gap: .9rem; }
  .card__icon { width: 2.4rem; height: 2.4rem; }
  .card__icon svg { width: 1.1rem; height: 1.1rem; }
  .card h3 { margin-top: 0; }
}

/* Conditions ------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  padding: .55rem 1.05rem; border-radius: 999px;
  background: rgba(255, 255, 255, .6); border: 1px solid rgba(69, 42, 63, .12);
  font-size: .9rem; font-weight: 500;
}

.condition-list { columns: 3; column-gap: clamp(2rem, 4vw, 3.5rem); }
.condition-list li {
  break-inside: avoid; display: flex; gap: .85rem; align-items: baseline;
  padding: .9rem 0; border-bottom: 1px solid var(--line);
}
.condition-list li::before {
  content: ""; flex-shrink: 0; width: .8rem; height: .4rem; background: var(--terra);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%); transform: translateY(-.15rem);
}
@media (max-width: 960px) { .condition-list { columns: 2; } }
@media (max-width: 600px) { .condition-list { columns: 1; } }

/* Service list (Soins page) --------------------------------------------- */
.service-list { border-top: 1px solid var(--line); }
.service-item {
  display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; align-items: baseline;
  padding: 1.6rem 0; border-bottom: 1px solid var(--line);
}
.service-item__num { font-family: var(--font-display); font-weight: 600; color: var(--terra-dark); }
.service-item h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 500; }
@media (max-width: 560px) { .service-item { grid-template-columns: 2.8rem 1fr; } }

/* Page header ------------------------------------------------------------ */
.page-hero { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { max-width: 44rem; margin-top: 1.25rem; }
.subnav { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.intro-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 6vw, 5rem); }
.intro-grid p { color: var(--text-soft); }
.intro-grid p:first-child { color: var(--text); font-size: 1.15rem; font-weight: 500; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }

/* Location / contact ----------------------------------------------------- */
.location { display: grid; grid-template-columns: 1fr 1.35fr; background: var(--white); border: 1px solid var(--line); }
.section--white .location { background: var(--cream); }
.location__info { padding: clamp(2rem, 4vw, 3rem); display: flex; flex-direction: column; gap: 1.8rem; }
.location__map { min-height: 420px; background: var(--sage-light); }
.location__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

.info-list { display: grid; gap: 1.4rem; }
.info-item { display: grid; grid-template-columns: 2.6rem 1fr; gap: .9rem; align-items: start; }
.info-item__icon {
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--sage-light); color: var(--plum);
}
.info-item__icon svg { width: 1.15rem; height: 1.15rem; }
.info-item__label { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }
.info-item__value { font-weight: 500; }
.info-item__value a { text-decoration: none; }
.info-item__value a:hover { color: var(--terra-dark); }

@media (max-width: 900px) {
  .location { grid-template-columns: 1fr; }
  .location__map, .location__map iframe { min-height: 320px; }
}

.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: clamp(2rem, 4vw, 3rem); }
.contact-card { background: var(--white); padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: .9rem; }
.contact-card .info-item__icon { margin-bottom: .4rem; }
.contact-card__value { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.contact-card__value a { text-decoration: none; word-break: break-word; }
.contact-card__value a:hover { color: var(--terra-dark); }
.contact-card .link-arrow { margin-top: auto; align-self: flex-start; }
@media (max-width: 700px) { .contact-cards { grid-template-columns: 1fr; } }

.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours .is-closed td:last-child { font-weight: 400; color: var(--text-soft); }

.map-wrap { border: 1px solid var(--line); background: var(--sage-light); }
.map-wrap iframe { width: 100%; height: clamp(340px, 50vw, 520px); border: 0; }
.map-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 3vw, 2rem); background: var(--white); border-top: 1px solid var(--line);
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* CTA band --------------------------------------------------------------- */
.cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta h2 { max-width: 20ch; }
.cta .lead { margin-top: 1rem; max-width: 36rem; }

/* Urgent care band ------------------------------------------------------ */
.urgence { padding-block: clamp(3rem, 6vw, 4.5rem); }
.urgence .lead { margin-top: 1rem; max-width: 40rem; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--plum-deep); color: rgba(242, 239, 233, .78); font-size: .92rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-block: clamp(3.5rem, 7vw, 5rem); }
.footer-brand img { height: 72px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 22rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.footer-social a { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid rgba(242, 239, 233, .25); border-radius: 50%; color: var(--cream); transition: background .2s, border-color .2s, color .2s; }
.footer-social a:hover { background: var(--terra); border-color: var(--terra); color: var(--plum-deep); }
.footer-social svg { width: 1.1rem; height: 1.1rem; }
.footer-title { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--terra); margin-bottom: 1rem; }
.footer-list { display: grid; gap: .55rem; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { color: var(--cream); }
.footer-bottom { border-top: 1px solid rgba(242, 239, 233, .12); font-size: .82rem; }
.footer-bottom__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem 2rem; padding-block: 1.5rem; }
.footer-bottom a { color: var(--cream); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--terra); }
.footer-bottom a:hover { color: var(--terra); }

@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

.intro-grid .about-text { margin-top: 0; }
.address-line { margin-top: .75rem; }
.btn-row--spaced { margin-top: 1.75rem; }
.section--flush-top { padding-top: 0; }
.info-item--center { align-items: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Reveal on scroll ------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

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