/* =========================================================================
   Ostéo Sport Santé — feuille de style unique (mobile-first, vanilla)
   Palette dérivée du logo OSS : bleu profond / bleu sport / or / vert.
   ========================================================================= */

:root {
  /* Couleurs de marque (issues du logo) */
  --blue-900: #12295f;
  --blue:     #1c3f8f;   /* primaire — texte "OSTEO" */
  --blue-400: #2f7fc4;   /* bleu sport — bord du cercle */
  --gold:     #e0a92e;   /* accent — "S" & montagne */
  --gold-600: #c8901c;
  --green:    #8aa93a;   /* liaison — dégradé montagne */

  /* Neutres */
  --ink:      #0c1730;
  --slate:    #435066;
  --mist:     #6b7688;
  --line:     #e3e7f0;
  --cloud:    #f5f7fb;
  --white:    #ffffff;

  /* Système */
  --radius:   12px;
  --radius-sm: 8px;
  --shadow:   0 10px 30px -8px rgba(18, 41, 95, .18);
  --shadow-sm: 0 4px 14px -6px rgba(18, 41, 95, .16);
  --maxw:     1120px;
  --nav-h:    68px;
  --ease:     .25s ease;
  --font:     'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }

/* ---------------------------- Layout ----------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.container--slim { max-width: 800px; }

.section { padding: 64px 0; }
.section--alt { background: var(--cloud); }
.section__eyebrow {
  color: var(--blue-400);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section__title {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--blue-900);
  margin-bottom: 36px;
}

/* ---------------------------- Boutons ---------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform var(--ease), background var(--ease), color var(--ease), border-color var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-900); }
.btn--accent { background: var(--gold); color: var(--blue-900); }
.btn--accent:hover { background: var(--gold-600); color: var(--white); }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--sm { min-height: 40px; padding: 8px 20px; font-size: .875rem; }
.btn--block { width: 100%; }

/* ------------------------------ Nav ------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  min-height: var(--nav-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__brand img { width: 44px; height: 44px; }
.nav__brand-text { font-weight: 700; color: var(--blue-900); letter-spacing: -.01em; font-size: 1.02rem; }

.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__link {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 500;
  color: var(--slate);
  transition: color var(--ease), background var(--ease);
}
.nav__link:hover { color: var(--blue); background: var(--cloud); }
.nav__link--cta { background: var(--blue); color: var(--white); }
.nav__link--cta:hover { background: var(--blue-900); color: var(--white); }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  padding: 10px;
}
.nav__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--blue-900);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------ Hero ----------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  padding: 48px 20px;
}
.hero__media {
  position: absolute;
  inset: 0;
  background: url("../images/cover-provisoire.jpg") center 30% / cover no-repeat;
  transform: scale(1.02);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 41, 95, .55) 0%, rgba(18, 41, 95, .68) 60%, rgba(12, 23, 48, .8) 100%);
}
.hero__content { position: relative; z-index: 1; color: var(--white); max-width: 720px; }
.hero__logo {
  width: 120px; height: 120px;
  margin: 0 auto 20px;
  background: rgba(255, 255, 255, .9);
  border-radius: 50%;
  padding: 8px;
  box-shadow: var(--shadow);
}
.hero__title {
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.hero__baseline {
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  font-weight: 300;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 32px;
}
.hero__baseline strong { font-weight: 600; color: var(--gold); }
.hero__cta { box-shadow: var(--shadow); }

/* --------------------------- Approche ---------------------------- */
.approche__lead {
  color: var(--slate);
  font-size: 1.05rem;
  max-width: 760px;
  margin-bottom: 40px;
}
.approche__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.approche__kicker {
  color: var(--blue-400);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.approche__title {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--blue-900);
  margin-bottom: 20px;
}
.approche__list { display: flex; flex-direction: column; gap: 14px; }
.approche__list li { position: relative; padding-left: 28px; color: var(--slate); }
.approche__list li::before {
  content: "";
  position: absolute; left: 0; top: .5em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.approche__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* --------------------------- Programmes -------------------------- */
.prog-block { margin-top: 8px; }
.prog-block + .prog-block { margin-top: 56px; }
.prog-block__head { margin-bottom: 24px; }
.prog-block__lead { color: var(--slate); font-size: 1.05rem; margin-top: 12px; max-width: 620px; }

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.badge--blue { background: rgba(47, 127, 196, .14); color: var(--blue); }
.badge--gold { background: rgba(224, 169, 46, .18); color: var(--gold-600); }

/* Cartes */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__body { padding: 28px; display: flex; flex-direction: column; height: 100%; }
.card__title { font-size: 1.2rem; font-weight: 700; color: var(--blue-900); margin-bottom: 12px; }
.card__price { margin-bottom: 18px; }
.card__amount { font-size: 1.9rem; font-weight: 700; color: var(--blue); }
.card__period { color: var(--mist); font-weight: 500; }
.card__list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.card__list li { position: relative; padding-left: 26px; color: var(--slate); }
.card__list li::before {
  content: "";
  position: absolute; left: 0; top: .55em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.card__list--sm li { font-size: .95rem; }
.card__cta { margin-top: auto; align-self: flex-start; }

/* Carte mise en avant (à distance) */
.card--feature {
  border: 2px solid var(--gold);
  max-width: 520px;
  position: relative;
  box-shadow: var(--shadow);
}
.card--feature .card__amount { color: var(--gold-600); }

/* Chips disciplines */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chips li {
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--slate);
}

/* Encart Natation & Aquagym */
.aqua {
  margin-top: 36px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-400) 100%);
  border-radius: var(--radius);
  padding: 32px 28px;
  color: var(--white);
  box-shadow: var(--shadow);
}
.aqua__title { font-size: 1.35rem; font-weight: 700; }
.aqua__sub { color: rgba(255, 255, 255, .82); font-weight: 500; margin-top: 2px; }
.aqua__head { margin-bottom: 24px; }
.aqua__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.aqua__card {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.aqua__card h4 { font-size: 1.05rem; font-weight: 600; }
.aqua__meta { color: rgba(255, 255, 255, .8); font-size: .9rem; }
.aqua__price { font-size: 1.7rem; font-weight: 700; color: var(--gold); }
.aqua__note { font-size: .85rem; color: rgba(255, 255, 255, .82); }
.aqua__card .btn { margin-top: 10px; }
.aqua__card .btn--primary { background: var(--gold); color: var(--blue-900); }
.aqua__card .btn--primary:hover { background: var(--white); }

/* ------------------------ Qui sommes-nous ------------------------ */
.profiles { display: grid; grid-template-columns: 1fr; gap: 32px; }
.profile { text-align: center; }
.profile__photo {
  width: 200px; height: 200px;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
}
.profile__name { font-size: 1.4rem; font-weight: 700; color: var(--blue-900); }
.profile__role { color: var(--blue-400); font-weight: 500; margin-bottom: 20px; }
.profile__label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin: 20px 0 10px;
}
.profile__list { display: inline-flex; flex-direction: column; gap: 6px; text-align: left; }
.profile__list li { position: relative; padding-left: 18px; color: var(--slate); }
.profile__list li::before {
  content: ""; position: absolute; left: 0; top: .65em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue-400);
}
.profile__exp { color: var(--ink); font-weight: 500; }

/* ------------------------------ Contact -------------------------- */
.contact { display: grid; grid-template-columns: 1fr; gap: 32px; }

.contact__form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0; }
.field label { font-weight: 600; font-size: .9rem; color: var(--blue-900); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(47, 127, 196, .15);
}
.field textarea { resize: vertical; }
.contact__hint { font-size: .82rem; color: var(--mist); text-align: center; margin-top: 12px; }

.contact__aside { display: flex; flex-direction: column; gap: 24px; }
.contact__block h3 { font-size: 1.1rem; color: var(--blue-900); margin-bottom: 12px; }
.contact__list { display: flex; flex-direction: column; gap: 12px; }
.contact__list li { display: flex; align-items: center; gap: 12px; color: var(--slate); }
.contact__list a { color: var(--blue); font-weight: 500; word-break: break-word; }
.contact__list a:hover { text-decoration: underline; }
.contact__ico {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--blue);
  border-radius: 50%;
}

.crosslink {
  background: linear-gradient(135deg, rgba(224, 169, 46, .12), rgba(47, 127, 196, .12));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.crosslink__kicker {
  font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-600); margin-bottom: 6px;
}
.crosslink__text { color: var(--ink); margin-bottom: 10px; }
.crosslink__link { color: var(--blue); font-weight: 600; }
.crosslink__link:hover { text-decoration: underline; }

/* -------------------------------- FAQ ---------------------------- */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  color: var(--blue-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 11px; height: 11px;
  border-right: 2px solid var(--blue-400);
  border-bottom: 2px solid var(--blue-400);
  transform: rotate(45deg);
  transition: transform var(--ease);
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__item[open] summary { color: var(--blue); }
.faq__answer { padding: 0 24px 22px; color: var(--slate); }
.faq__answer p + p { margin-top: 10px; }
.faq__answer ul { list-style: none; margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.faq__answer li { position: relative; padding-left: 20px; }
.faq__answer li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}

/* ------------------------------ Footer --------------------------- */
.footer { background: var(--blue-900); color: rgba(255, 255, 255, .85); padding: 40px 0; }
.footer__inner { display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--white); }
.footer__brand img { background: var(--white); border-radius: 50%; padding: 4px; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.footer__nav a { color: rgba(255, 255, 255, .85); font-size: .95rem; }
.footer__nav a:hover { color: var(--gold); }
.footer__legal { font-size: .85rem; color: rgba(255, 255, 255, .6); }

/* ========================= RESPONSIVE =========================== */

/* Menu mobile */
@media (max-width: 820px) {
  .nav__burger { display: flex; }
  .nav__brand-text { display: none; }
  .nav__menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ease), transform var(--ease);
  }
  .nav__menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__link { padding: 14px 16px; }
  .nav__link--cta { text-align: center; margin-top: 4px; }
}

/* Tablette & desktop */
@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .aqua__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 760px) {
  .section { padding: 88px 0; }
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .profiles { grid-template-columns: 1fr 1fr; gap: 48px; max-width: 860px; margin-inline: auto; }
  .profile__photo { width: 220px; height: 220px; }
  .approche__grid { grid-template-columns: 1.1fr .9fr; gap: 48px; }
  .approche__media { max-width: 420px; margin-inline: auto; }
}

@media (min-width: 960px) {
  .contact { grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
}

/* Accessibilité : réduire les animations si demandé */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
