/* ════════════════════════════════════════════
   DESIGN SYSTEM — Dr Kerboeuf
   Palette : Warm & Human + touch Medical Clean
════════════════════════════════════════════ */

:root {
  --primary:        #3B7DB5;
  --primary-dark:   #2E6A9E;
  --secondary:      #5BA5A0;
  --secondary-dark: #4A8D89;
  --accent:         #C9A96E;
  --accent-dark:    #B8943A;
  --bg:             #F9F6F1;
  --bg-alt:         #EEF7F6;
  --white:          #FFFFFF;
  --text:           #2C3E50;
  --text-muted:     #7F8C8D;
  --card-bg:        #FFFFFF;
  --card-border:    #E8E2D9;
  --contact-bg:     #3B7DB5;

  --font-heading:   'Playfair Display', Georgia, serif;
  --font-body:      'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm:  8px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 100px;

  --shadow-sm:  0 2px 8px  rgba(44,62,80,.06);
  --shadow-md:  0 4px 24px rgba(44,62,80,.08);
  --shadow-lg:  0 8px 40px rgba(44,62,80,.12);

  --header-h: 72px;
  --container: 1200px;
  --gap:       24px;

  --transition: 200ms ease;
}

/* ── Reset ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Container ───────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Sections scroll offset ──────────────── */
section[id] { scroll-margin-top: var(--header-h); }

/* ════════════════════════════════════════════
   TYPOGRAPHIE
════════════════════════════════════════════ */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.eyebrow--secondary { color: var(--secondary); }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -.02em;
}
.section-title--center { text-align: center; margin-bottom: 48px; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 56px;
}
.section-subtitle {
  margin-top: 16px;
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ════════════════════════════════════════════
   BOUTONS
════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  min-height: 44px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.btn--primary {
  background: var(--primary);
  color: var(--white);
}
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn--ghost:hover { background: rgba(59,125,181,.07); }

.btn--accent {
  background: var(--accent);
  color: var(--white);
}
.btn--accent:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn--lg { padding: 14px 32px; font-size: 16px; min-height: 52px; }
.btn--full { width: 100%; }

/* ════════════════════════════════════════════
   HEADER
════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}
.nav__logo { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--text); }
.nav__logo-sub { font-family: var(--font-body); font-size: 11px; font-weight: 400; color: var(--text-muted); letter-spacing: .02em; }

.nav__links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width var(--transition);
  border-radius: 2px;
}
.nav__link:hover { color: var(--primary); }
.nav__link:hover::after { width: 100%; }

.nav__cta { margin-left: 8px; }

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  border-radius: var(--radius-sm);
}
.nav__burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 200ms ease;
  transform-origin: center;
}
.nav__burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero {
  padding: 96px 0 80px;
  background: var(--bg);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
}
.hero__content { max-width: 560px; }
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.5vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 20px;
}
.hero__subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 500px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__image-wrap {
  position: relative;
  flex-shrink: 0;
  width: 420px;
}
.hero__image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.hero__image-wrap::before {
  content: '';
  position: absolute;
  inset: -20px -20px 20px 20px;
  background: var(--secondary);
  opacity: .12;
  border-radius: var(--radius-xl);
  z-index: -1;
}

/* ════════════════════════════════════════════
   AGITATION
════════════════════════════════════════════ */
.agitation {
  padding: 80px 0;
  background: var(--bg-alt);
}

/* ════════════════════════════════════════════
   CARDS GRID
════════════════════════════════════════════ */
.cards-grid { display: grid; gap: var(--gap); }
.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt);
  border-radius: var(--radius);
  color: var(--secondary);
  margin-bottom: 16px;
}
.card--agit .card__icon { color: var(--secondary); }

.card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}
.card__text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Orient cards */
.card--orient { background: var(--bg); border-color: var(--card-border); }
.card--orient:hover { background: var(--white); }
.card__accent {
  width: 48px; height: 4px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}
.card__accent--primary   { background: var(--primary); }
.card__accent--secondary { background: var(--secondary); }
.card__accent--accent    { background: var(--accent); }
.card__tag {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  background: rgba(59,125,181,.1);
  color: var(--primary);
}

/* ════════════════════════════════════════════
   SOLUTION
════════════════════════════════════════════ */
.solution {
  padding: 96px 0;
  background: var(--white);
}
.solution__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.solution__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 20px;
}
.solution__body {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
}
.values-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.values-list__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}
.values-list__dot {
  flex-shrink: 0;
  width: 8px; height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--secondary);
}
.solution__image-wrap { position: relative; }
.solution__image {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.solution__image-wrap::after {
  content: '';
  position: absolute;
  bottom: -16px; right: -16px;
  width: 60%; height: 60%;
  background: var(--accent);
  opacity: .12;
  border-radius: var(--radius-xl);
  z-index: -1;
}

/* ════════════════════════════════════════════
   ORIENTATIONS
════════════════════════════════════════════ */
.orientations {
  padding: 96px 0;
  background: var(--bg);
}

/* ════════════════════════════════════════════
   PARCOURS
════════════════════════════════════════════ */
.parcours {
  padding: 96px 0;
  background: var(--white);
}
.parcours__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.parcours__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 20px;
}
.parcours__body {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
}

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 20px; }
.timeline__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.timeline__num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}
.timeline__num--secondary { background: var(--secondary); }
.timeline__num--accent    { background: var(--accent); }
.timeline__body { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.timeline__title { font-size: 16px; font-weight: 600; color: var(--text); }
.timeline__desc  { font-size: 14px; color: var(--text-muted); }

.parcours__image-wrap { position: relative; }
.parcours__image {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.parcours__image-wrap::before {
  content: '';
  position: absolute;
  top: -16px; left: -16px;
  width: 55%; height: 55%;
  background: var(--primary);
  opacity: .08;
  border-radius: var(--radius-xl);
  z-index: -1;
}

/* ════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════ */
.contact {
  padding: 96px 0;
  background: var(--contact-bg);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: flex-start;
}
.contact__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.contact__subtitle {
  font-size: 16px;
  color: rgba(255,255,255,.75);
  margin-bottom: 36px;
  line-height: 1.6;
}

/* Form */
.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__group { display: flex; flex-direction: column; gap: 6px; }
.form__label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9); }
.form__optional { font-weight: 400; opacity: .7; }
.form__input,
.form__textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.12);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--transition), background var(--transition);
  min-height: 44px;
}
.form__input::placeholder,
.form__textarea::placeholder { color: rgba(255,255,255,.45); }
.form__input:focus,
.form__textarea:focus { outline: none; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.18); }
.form__textarea { resize: vertical; min-height: 100px; line-height: 1.6; }

.form__consent {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  line-height: 1.5;
}
.form__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.form__checkbox { margin-top: 2px; accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.form__link { color: rgba(255,255,255,.9); text-decoration: underline; }
.form__link:hover { color: var(--white); }

/* Contact info */
.contact__info-col { min-width: 280px; padding-top: 8px; }
.contact__info-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 28px;
}
.contact__info-list { display: flex; flex-direction: column; gap: 20px; }
.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact__info-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.85);
}
.contact__info-item strong { display: block; font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 2px; }
.contact__info-item span  { font-size: 14px; color: rgba(255,255,255,.65); }

.doctolib-btns {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.doctolib-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.doctolib-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.doctolib-card__info strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.doctolib-card__info span {
  font-size: 13px;
  color: rgba(255,255,255,.7);
}

.doctolib-card__info a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
}

.doctolib-card__info a:hover {
  color: var(--white);
  text-decoration: underline;
}

.doctolib-card .btn {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.contact__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: rgba(255,255,255,.55);
  font-size: 13px;
}
.contact__divider::before,
.contact__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.2);
}

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.footer {
  background: #1E2C3A;
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer__name  { font-family: var(--font-heading); font-size: 16px; font-weight: 600; color: rgba(255,255,255,.9); }
.footer__order { font-size: 13px; color: rgba(255,255,255,.5); }
.footer__nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}
.footer__link { font-size: 13px; color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer__link:hover { color: rgba(255,255,255,.9); }
.footer__copy { font-size: 11px; color: rgba(255,255,255,.3); max-width: 640px; line-height: 1.6; margin-top: 4px; }

/* ════════════════════════════════════════════
   ACCESSIBILITÉ
════════════════════════════════════════════ */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ════════════════════════════════════════════
   RESPONSIVE — Tablette (≤ 1024px)
════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero__inner           { grid-template-columns: 1fr; gap: 48px; }
  .hero__image-wrap      { width: 100%; max-width: 480px; margin-inline: auto; }
  .hero__image-wrap::before { inset: -15px; }
  .hero__image           { height: 380px; }
  .hero__content         { max-width: 100%; text-align: center; }
  .hero__actions         { justify-content: center; }

  .solution__inner       { grid-template-columns: 1fr; gap: 48px; }
  .solution__image-wrap  { order: -1; }
  .solution__image       { height: 360px; }

  .parcours__inner       { grid-template-columns: 1fr; gap: 48px; }
  .parcours__image       { height: 340px; }

  .contact__inner        { grid-template-columns: 1fr; }
  .contact__info-col     { min-width: unset; }
  .doctolib-card         { flex-direction: column; align-items: flex-start; }
  .doctolib-card .btn    { width: 100%; justify-content: center; }

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

/* ════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 768px)
════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --header-h: 64px; }

  /* Header mobile */
  .nav__links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--card-border);
    padding: 24px;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 250ms ease, opacity 250ms ease;
    z-index: 99;
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }

  /* Sections */
  .hero         { padding: 64px 0 56px; }
  .agitation    { padding: 64px 0; }
  .solution     { padding: 64px 0; }
  .orientations { padding: 64px 0; }
  .parcours     { padding: 64px 0; }
  .contact      { padding: 64px 0; }

  .cards-grid--3 { grid-template-columns: 1fr; }
  .form__row     { grid-template-columns: 1fr; }

  .hero__image  { height: 380px; }
  .solution__image,
  .parcours__image { height: 280px; }

  .footer__nav { gap: 16px; }
}

/* ════════════════════════════════════════════
   RESPONSIVE — Petit mobile (≤ 480px)
════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .btn--lg { width: 100%; justify-content: center; }
}
