/* =========================================================================
   Cabinet Thibault Massiot — Ostéopathe & Kinésithérapeute
   Feuille de style principale (HTML/CSS/JS statique, sans framework)
   ========================================================================= */

/* ---- Variables de thème ---- */
:root {
  --navy:        #28324C;
  --navy-deep:   #1B2236;
  --blue:        #5E7DAE;
  --blue-deep:   #3F5C90;
  --bg:          #F1F4F8;
  --bg-alt:      #E7ECF5;
  --ink:         #232733;
  --muted:       #565C6A;
  --muted-soft:  #4B5260;
  --eyebrow:     #5E7DAE;
  --gold:        #E8A93B;
  --card-shadow: 0 14px 40px rgba(40, 52, 82, 0.06);
  --maxw:        1180px;
  --font-serif:  'Spectral', Georgia, 'Times New Roman', serif;
  --font-sans:   'Mulish', system-ui, -apple-system, sans-serif;
}

/* ---- Reset & base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }

@keyframes floatChev { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ---- Eyebrow / titres de section ---- */
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--eyebrow);
  margin-bottom: 18px;
}
.section-head { text-align: center; margin: 0 auto 48px; }
.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(32px, 4.2vw, 46px);
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.section-lead { font-size: 18px; line-height: 1.6; color: var(--muted); }

/* ---- Boutons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
}
.btn svg { flex-shrink: 0; }
.btn--solid {
  background: var(--blue);
  color: #fff;
  padding: 17px 32px;
  font-size: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}
.btn--solid:hover { background: #54719f; }
.btn--ghost {
  background: transparent;
  color: #fff;
  padding: 17px 32px;
  font-size: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn--light {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 15px 28px;
  font-size: 15px;
  box-shadow: 0 8px 22px rgba(40, 52, 82, 0.07);
}
.btn--lg { padding: 19px 40px; font-size: 17px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); }

/* =========================================================================
   En-tête fixe
   ========================================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-header.is-scrolled {
  background: var(--navy);
  box-shadow: 0 8px 28px rgba(20, 28, 48, 0.28);
}
.site-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brand { line-height: 1; }
.brand__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 23px;
  color: #fff;
  letter-spacing: 0.01em;
}
.brand__role {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 4px;
  font-weight: 600;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}
.site-nav a {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.3s ease;
}
.site-nav a:hover { color: #fff; }
.site-nav .btn--solid {
  padding: 12px 24px;
  font-size: 15px;
  box-shadow: 0 6px 18px rgba(94, 125, 174, 0.32);
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(26, 33, 52, 0.72) 0%, rgba(26, 33, 52, 0.80) 55%, rgba(26, 33, 52, 0.90) 100%);
}
.hero__inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 64px 32px;
}
.hero__content { max-width: 780px; margin: 0 auto; text-align: center; }
.hero .eyebrow { color: #AEC0DC; margin-bottom: 22px; }
.hero__title {
  font-family: var(--font-serif);
  font-weight: 600;
  color: #fff;
  font-size: clamp(44px, 6.4vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}
.hero__title em { font-style: italic; font-weight: 500; color: #A6BEE0; }
.hero__lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: #DEE3EC;
  max-width: 560px;
  margin: 0 auto 38px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(36px, 6vw, 80px);
  margin-top: 64px;
  justify-content: center;
}
.stat__num {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(36px, 4vw, 52px);
  color: #fff;
  line-height: 1;
}
.stat__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: #BAC3D4;
  margin-top: 8px;
}
.hero__chevron {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.75);
  animation: floatChev 2.2s ease-in-out infinite;
}

/* =========================================================================
   Parcours (bandeau défilant)
   ========================================================================= */
.parcours { background: var(--bg); padding: clamp(64px, 8vw, 100px) 0; overflow: hidden; }
.parcours .section-head { max-width: 760px; padding: 0 32px; }

.exp-scroller {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.exp-scroller::-webkit-scrollbar { display: none; }
.exp-scroller.is-dragging { cursor: grabbing; }
.exp-track { display: flex; width: max-content; will-change: scroll-position; }
.exp-row { display: flex; }

.exp-card {
  position: relative;
  flex: 0 0 auto;
  width: 360px;
  height: 240px;
  border-radius: 18px;
  overflow: hidden;
  margin-right: 20px;
  background: var(--navy);
  box-shadow: 0 16px 38px rgba(40, 52, 82, 0.16);
}
.exp-card--light { background: #fff; }
.exp-card__img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.exp-card__img--logo { object-fit: contain; padding: 30px; }
.exp-card__img--logo-tight { object-fit: contain; padding: 24px; }
.exp-card__img--logo-cido { object-fit: contain; padding: 36px 34px 60px; }
.exp-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 33, 52, 0.10) 0%, rgba(26, 33, 52, 0.30) 50%, rgba(26, 33, 52, 0.70) 100%);
}
.exp-card__title {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
  color: #fff;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}
.exp-card__title--center { text-align: center; }

/* =========================================================================
   Services (tuiles dépliables)
   ========================================================================= */
.services { background: var(--bg); padding: clamp(72px, 9vw, 118px) 32px; }
.services__inner { max-width: var(--maxw); margin: 0 auto; }
.services .section-head { max-width: 620px; margin-bottom: 60px; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  align-items: stretch;       /* tuiles fermées : hauteurs égales */
}
.services__grid.has-open { align-items: start; }  /* une tuile ouverte : ne pas étirer la voisine */

.service-tile {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 22px;
  padding: 38px 36px;
  box-shadow: var(--card-shadow);
  text-align: center;
  cursor: pointer;
  transition: background 0.32s ease, border-color 0.32s ease;
}
.service-tile.is-open { background: var(--navy); border-color: var(--navy); text-align: left; }

.service-tile__icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #E2E9F3;
  color: #4E6CA0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 26px;
  transition: background 0.32s ease, color 0.32s ease;
}
.service-tile.is-open .service-tile__icon { background: rgba(255, 255, 255, 0.14); color: #fff; margin: 0 0 26px; }

.service-tile__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 25px;
  color: var(--ink);
  margin-bottom: 14px;
  transition: color 0.32s ease;
}
.service-tile.is-open .service-tile__title { color: #fff; }

.service-tile__desc {
  font-size: 16px;
  line-height: 1.62;
  color: var(--muted);
  margin-bottom: 22px;
  transition: color 0.32s ease;
}
.service-tile.is-open .service-tile__desc { color: rgba(255, 255, 255, 0.82); }

.service-tile__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
}
.service-tile.is-open .service-tile__more { display: none; }

.service-tile__list { display: none; flex-direction: column; gap: 15px; margin-top: 4px; padding: 0; list-style: none; }
.service-tile.is-open .service-tile__list { display: flex; }
.service-tile__list li { display: flex; align-items: flex-start; gap: 13px; }
.service-tile__list svg { flex-shrink: 0; margin-top: 1px; }
.service-tile__list span { font-size: 16px; font-weight: 600; color: #fff; line-height: 1.4; }
.service-tile__list i { font-weight: 400; opacity: 0.85; }

/* =========================================================================
   À propos
   ========================================================================= */
.about { background: var(--bg-alt); padding: clamp(72px, 9vw, 118px) 32px; }
.about__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.about__media { position: relative; }
.about__photo {
  width: 100%;
  max-width: 557px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
}
.about__badge {
  position: absolute;
  top: 26px;
  left: 26px;
  background: var(--blue-deep);
  color: #fff;
  border-radius: 18px;
  padding: 18px 26px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(40, 55, 95, 0.3);
}
.about__badge-title { font-family: var(--font-serif); font-weight: 700; font-size: 26px; line-height: 1; }
.about__badge-sub { font-size: 11px; letter-spacing: 0.16em; margin-top: 5px; color: #CFDCEF; font-weight: 600; }
.about__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(30px, 3.8vw, 44px);
  color: var(--ink);
  margin-bottom: 26px;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.about__title em { font-style: italic; font-weight: 500; }
.about__body p { font-size: 17px; line-height: 1.68; color: var(--muted-soft); margin-bottom: 20px; }
.about__body p:last-of-type { margin-bottom: 36px; }
.about__creds { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cred {
  background: #F8FAFD;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 22px 24px;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
}

/* =========================================================================
   Témoignages
   ========================================================================= */
.reviews { background: var(--bg); padding: clamp(72px, 9vw, 118px) 32px; }
.reviews__inner { max-width: var(--maxw); margin: 0 auto; }
.reviews .section-head { max-width: 640px; margin-bottom: 54px; }
.rating {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  padding: 11px 22px;
  box-shadow: 0 8px 24px rgba(40, 52, 82, 0.06);
}
.rating__stars { color: var(--gold); letter-spacing: 2px; font-size: 18px; }
.rating__score { font-weight: 700; color: var(--ink); }
.rating__sep { width: 1px; height: 18px; background: rgba(0, 0, 0, 0.12); }
.rating__source { font-size: 14px; color: #686F7E; }

.reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.review {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 32px 30px;
  box-shadow: 0 12px 34px rgba(40, 52, 82, 0.06);
}
.review__stars { color: var(--gold); letter-spacing: 2px; font-size: 15px; margin-bottom: 16px; }
.review__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  color: #343A48;
  margin-bottom: 24px;
}
.review__author { display: flex; align-items: center; gap: 12px; }
.review__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #E2E9F3;
  color: #4E6CA0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.review__name { font-weight: 700; color: var(--ink); font-size: 15px; }
.review__meta { font-size: 13px; color: #82889A; }
.reviews__cta { text-align: center; margin-top: 44px; }

/* =========================================================================
   Contact
   ========================================================================= */
.contact { background: var(--navy); color: #E8ECF3; padding: clamp(72px, 9vw, 118px) 32px; }
.contact__inner { max-width: var(--maxw); margin: 0 auto; }
.contact .section-head { max-width: 620px; margin-bottom: 58px; }
.contact .eyebrow { color: #A6BEE0; }
.contact .section-title { color: #fff; }
.contact .section-lead { color: #BCC5D5; }

.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: stretch; }
.contact__info {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact__row { display: flex; align-items: flex-start; gap: 16px; }
.contact__row + .contact__row { margin-top: 30px; }
.contact__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(174, 196, 230, 0.18);
  color: #BFD2EC;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact__label { font-size: 12px; letter-spacing: 0.14em; font-weight: 600; color: #94A6C2; margin-bottom: 7px; }
.contact__place { font-size: 18px; font-weight: 700; color: #fff; line-height: 1.5; }
.contact__addr { font-size: 17px; color: #CFD7E6; line-height: 1.5; }
.contact__hours { flex: 1; }
.contact__hours-label { margin-bottom: 12px; }
.contact__hours-row { display: flex; justify-content: space-between; gap: 16px; }
.contact__hours-row--first { padding-bottom: 11px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.contact__hours-row--last { padding-top: 11px; }
.contact__hours-row span:first-child { color: #CFD7E6; }
.contact__hours-row span:last-child { font-weight: 700; color: #fff; }
.contact__hours-row--last span:last-child { color: #94A6C2; }
.contact__map {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.contact__map iframe { border: 0; width: 100%; height: 100%; min-height: 300px; display: block; filter: grayscale(0.2); }
.contact__cta { text-align: center; margin-top: 44px; }

/* =========================================================================
   Pied de page
   ========================================================================= */
.site-footer { background: var(--navy-deep); color: #A6AFC2; padding: 54px 32px 40px; }
.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px 60px;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer__name { font-family: var(--font-serif); font-weight: 700; font-size: 21px; color: #fff; }
.site-footer__role { font-size: 11px; letter-spacing: 0.18em; color: #767E94; margin-top: 5px; font-weight: 600; }
.site-footer__addr { font-size: 14px; color: #888FA4; margin-top: 16px; max-width: 300px; line-height: 1.6; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px 30px; }
.site-footer nav a { font-size: 14px; color: #A6AFC2; }
.site-footer nav a:hover { color: #fff; }
.site-footer__legal {
  max-width: var(--maxw);
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #6A7288;
}

/* ---- Préférence : réduire les animations ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__chevron { animation: none; }
}
