/* ==========================================================================
   Cornette Kiné Santé & Co — feuille de style
   Palette : encre marine (marque) · porcelaine · eucalyptus (kiné) · rose poudré (esthétique)
   Typo : Bricolage Grotesque (titres) · Figtree (texte)
   ========================================================================== */

:root {
  --ink: #131d40;
  --navy: #1b2a5b;
  --navy-deep: #121d42;
  --navy-soft: #3a4c85;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --mist: #eceff6;
  --line: #dde3ef;
  --muted: #566180;
  --euca: #2f7a68;
  --euca-ink: #1f5748;
  --euca-soft: #e2f0eb;
  --rose: #b76e79;
  --rose-ink: #93525d;
  --rose-soft: #f8ecee;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-soft: 0 1px 2px rgba(19, 29, 64, 0.05), 0 8px 24px rgba(19, 29, 64, 0.07);
  --shadow-lift: 0 2px 4px rgba(19, 29, 64, 0.06), 0 16px 40px rgba(19, 29, 64, 0.12);
  --font-display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.28rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

h4 { font-size: 1.05rem; font-weight: 650; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--navy-soft); }

.lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--muted);
  line-height: 1.6;
}

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

:focus-visible {
  outline: 3px solid var(--navy-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--navy); color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus-visible { left: 12px; color: #fff; }

/* --------------------------------------------------------------------------
   Navigation — barre translucide, contenu qui défile dessous
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(247, 248, 251, 0.75);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms ease, background-color 240ms ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 248, 251, 0.85);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}

.brand img { width: 44px; height: 44px; flex: none; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.15;
  white-space: nowrap;
}

.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a:not(.btn) {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 550;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 160ms ease;
}

.nav-links a:not(.btn):hover { background: rgba(27, 42, 91, 0.07); }

.nav-links a[aria-current="page"] {
  background: rgba(27, 42, 91, 0.1);
  font-weight: 650;
}

.nav-cta { margin-left: 8px; }

.burger {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.burger:active { transform: scale(0.94); }

/* --------------------------------------------------------------------------
   Boutons — réponse immédiate au toucher
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.btn:active { transform: scale(0.965); }

.btn svg { flex: none; }

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 6px 18px rgba(27, 42, 91, 0.28);
}

.btn-primary:hover {
  background: var(--navy-deep);
  color: #fff;
  box-shadow: 0 8px 24px rgba(27, 42, 91, 0.34);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover { border-color: var(--navy-soft); background: rgba(27, 42, 91, 0.04); color: var(--ink); }

.btn-euca { background: var(--euca-ink); color: #fff; box-shadow: 0 6px 18px rgba(31, 87, 72, 0.28); }
.btn-euca:hover { background: #17453a; color: #fff; }

.btn-rose { background: var(--rose-ink); color: #fff; box-shadow: 0 6px 18px rgba(147, 82, 93, 0.28); }
.btn-rose:hover { background: #7d414c; color: #fff; }

.btn-sm { padding: 10px 18px; font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Sections & structure
   -------------------------------------------------------------------------- */

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow { max-width: 860px; }

.section { padding: clamp(64px, 9vw, 112px) 0; }

.section-tight { padding: clamp(48px, 6vw, 72px) 0; }

.section-alt { background: var(--surface); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-soft);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.65;
}

.eyebrow-euca { color: var(--euca); }
.eyebrow-rose { color: var(--rose-ink); }

.section-head { max-width: 700px; margin-bottom: clamp(32px, 5vw, 56px); }

/* --------------------------------------------------------------------------
   Héros — filigrane du logo « colonne » en signature
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(56px, 9vw, 120px)) 0 clamp(64px, 9vw, 120px);
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  right: -160px;
  transform: translateY(-50%) rotate(8deg);
  width: clamp(420px, 48vw, 680px);
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
}

.hero-inner { position: relative; max-width: 720px; }

.hero .lead { max-width: 600px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
}

.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }

.hero-facts svg { color: var(--navy-soft); flex: none; }

.hero-sub {
  padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 88px));
  padding-bottom: clamp(40px, 6vw, 72px);
}

/* --------------------------------------------------------------------------
   Cartes
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 22px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.card h3 { margin-bottom: 0.45em; }

a.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease, border-color 220ms ease;
}

a.card-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  color: inherit;
}

a.card-link:active { transform: translateY(-1px) scale(0.99); }

/* Pôles — les deux univers du centre */

.pole-card {
  position: relative;
  overflow: hidden;
  padding: 34px 30px;
  border-radius: 24px;
}

.pole-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
}

.pole-euca::before { background: linear-gradient(90deg, var(--euca), #6fb3a2); }
.pole-rose::before { background: linear-gradient(90deg, var(--rose-ink), #d9a1ab); }

.pole-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.pole-euca .pole-tag { background: var(--euca-soft); color: var(--euca-ink); }
.pole-rose .pole-tag { background: var(--rose-soft); color: var(--rose-ink); }

.pole-card .go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 650;
  margin-top: 18px;
}

.pole-euca .go { color: var(--euca-ink); }
.pole-rose .go { color: var(--rose-ink); }

/* Puces de prestations */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  font-size: 0.88rem;
  font-weight: 550;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink);
}

.chips-euca li { background: var(--euca-soft); color: var(--euca-ink); }
.chips-rose li { background: var(--rose-soft); color: var(--rose-ink); }

/* Équipe */

.team-card { display: flex; flex-direction: column; }

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.avatar-navy { background: linear-gradient(135deg, var(--navy), var(--navy-soft)); }
.avatar-euca { background: linear-gradient(135deg, var(--euca-ink), var(--euca)); }
.avatar-rose { background: linear-gradient(135deg, var(--rose-ink), var(--rose)); }

.team-role {
  font-size: 0.92rem;
  font-weight: 650;
  margin-bottom: 12px;
}

.team-role.role-euca { color: var(--euca-ink); }
.team-role.role-rose { color: var(--rose-ink); }
.team-role.role-navy { color: var(--navy-soft); }

.team-card .btn { margin-top: auto; align-self: flex-start; }

.team-card p.bio { margin-bottom: 20px; }

/* Listes d'équipements / points forts */

.feature-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-list .ico {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--mist);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-list strong { display: block; }

.feature-list span.detail { color: var(--muted); font-size: 0.96rem; }

/* Étapes (déroulement d'une séance) */

.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 22px 24px 22px 70px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps-euca li::before { background: var(--euca-ink); }
.steps-rose li::before { background: var(--rose-ink); }

.steps strong { display: block; margin-bottom: 2px; }

/* Prestations esthétiques / soins détaillés */

.soin-card h3 { display: flex; align-items: center; gap: 12px; }

.soin-ico {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rose-soft);
  color: var(--rose-ink);
}

.soin-ico-euca { background: var(--euca-soft); color: var(--euca-ink); }

/* --------------------------------------------------------------------------
   Bandeau rendez-vous
   -------------------------------------------------------------------------- */

.rdv-band {
  background: var(--navy-deep);
  color: #fff;
  border-radius: 28px;
  padding: clamp(36px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}

.rdv-band h2, .rdv-band h3 { color: #fff; }

.rdv-band p { color: rgba(255, 255, 255, 0.78); }

.rdv-band .watermark {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 320px;
  opacity: 0.1;
  pointer-events: none;
}

.rdv-contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 28px;
  position: relative;
}

.rdv-contact {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 20px 22px;
}

.rdv-contact .who {
  font-weight: 650;
  display: block;
  margin-bottom: 2px;
}

.rdv-contact .what {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  display: block;
  margin-bottom: 12px;
}

.tel-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: #fff;
  text-decoration: none;
  transition: opacity 140ms ease;
}

.tel-link:hover { color: #fff; opacity: 0.85; }

.tel-link svg { flex: none; opacity: 0.8; }

.rdv-band .tel-link { color: #fff; }

.tel-link-ink { color: var(--navy); font-size: 1.2rem; }
.tel-link-ink:hover { color: var(--navy-soft); opacity: 1; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq { display: grid; gap: 12px; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 22px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 650;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--navy-soft);
  border-bottom: 2px solid var(--navy-soft);
  transform: rotate(45deg);
  transition: transform 200ms ease;
  margin-right: 4px;
}

.faq details[open] summary::after { transform: rotate(225deg); }

.faq details > div { padding: 0 0 20px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Page contact
   -------------------------------------------------------------------------- */

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--mist);
}

.map-frame iframe { display: block; width: 100%; height: 420px; border: 0; }

.info-cards { align-items: stretch; }

.info-cards .ico {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--mist);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: clamp(48px, 7vw, 72px) 0 32px;
  position: relative;
  overflow: hidden;
}

.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 44px;
}

.footer-brand img { width: 52px; margin-bottom: 14px; }

.footer-brand p { font-size: 0.95rem; }

.footer h4 {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.96rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a { color: rgba(255, 255, 255, 0.75); }

/* --------------------------------------------------------------------------
   Page 404
   -------------------------------------------------------------------------- */

.page-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.page-404 .hero-inner { margin: 0 auto; }

/* --------------------------------------------------------------------------
   Apparitions au défilement
   -------------------------------------------------------------------------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 640ms cubic-bezier(0.22, 1, 0.36, 1), transform 640ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.js .reveal.is-in { opacity: 1; transform: none; }

.reveal-d1 { transition-delay: 90ms; }
.reveal-d2 { transition-delay: 180ms; }
.reveal-d3 { transition-delay: 270ms; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .burger { display: inline-flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    backdrop-filter: blur(24px) saturate(170%);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 12px;
    box-shadow: var(--shadow-lift);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity 220ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav.menu-open .nav-links {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-links a:not(.btn) { padding: 13px 16px; font-size: 1.02rem; }

  .nav-cta { margin: 6px 4px 2px; }
  .nav-cta .btn { width: 100%; }
}

@media (max-width: 700px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-watermark { right: -220px; opacity: 0.045; }
  .brand-name small { display: none; }
  .map-frame iframe { height: 320px; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions .btn { width: 100%; }
  .card, .pole-card { padding: 24px 20px; }
}

/* --------------------------------------------------------------------------
   Préférences utilisateur
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn, a.card-link, .burger { transition: none; }
  .btn:active, a.card-link:hover, a.card-link:active { transform: none; }
  .nav-links { transition: opacity 160ms ease; transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav, .nav-links {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root { --line: #9aa3ba; --muted: #3c4560; }
}
