@charset "utf-8";
/* ==========================================================================
   Cabinet Médical du Sommeil — Dr Ari ASSOULINE
   Feuille de style principale
   ========================================================================== */

:root {
  --navy-950: #0a1730;
  --navy-900: #0f1e3d;
  --navy-800: #16294f;
  --navy-700: #1f3766;
  --gold: #e6a355;
  --gold-dark: #c9862f;
  --gold-light: #f6cd93;
  --bg: #f7f8fb;
  --card: #ffffff;
  --text: #1e2433;
  --muted: #5c6478;
  --border: #e4e7ef;
  --shadow: 0 10px 30px rgba(15, 30, 61, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 30, 61, 0.16);
  --radius: 14px;
  --maxw: 1140px;

  /* Échelle typographique — une seule série de tailles, réutilisée partout */
  --fs-2xs: 0.72rem;   /* micro-labels (puce de coche) */
  --fs-xs:   0.8rem;    /* barre du haut, fil d'ariane, badges, mentions légales */
  --fs-sm:   0.875rem;  /* texte secondaire discret */
  --fs-md:   0.9375rem; /* navigation, boutons */
  --fs-base: 1rem;      /* sous-titres de cartes */
  --fs-lg:   1.0625rem; /* nom de marque, numéros d'étapes */
  --fs-xl:   1.125rem;  /* chapô, accroche du hero */
  --fs-2xl:  1.25rem;   /* h3, liens du menu mobile */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--navy-900);
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: var(--fs-2xl); }

p { margin: 0 0 16px; color: var(--text); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: var(--fs-xs);
  color: var(--gold-dark);
  margin-bottom: 10px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.lead {
  font-size: var(--fs-xl);
  color: var(--muted);
  max-width: 62ch;
}

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

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--fs-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-950);
  box-shadow: 0 12px 24px rgba(230, 163, 85, .35);
}
.btn-gold:hover { box-shadow: 0 16px 30px rgba(230, 163, 85, .45); }

.btn-outline-light {
  border-color: rgba(255,255,255,.55);
  color: #fff;
  background: rgba(255,255,255,.06);
}
.btn-outline-light:hover { background: rgba(255,255,255,.16); }

.btn-navy {
  background: var(--navy-900);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-800); }

.btn-block { width: 100%; justify-content: center; }

/* Header ------------------------------------------------------------------ */
.topbar {
  background: var(--navy-950);
  color: #cfd6e6;
  font-size: var(--fs-xs);
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: #e9ecf5; }
.topbar a:hover { color: var(--gold-light); }
.topbar .topbar-links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar .topbar-links span.sep { opacity: .4; }

header.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 10px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  /* Ne jamais se comprimer au point d'écraser ou de chevaucher le texte :
     si la place manque à côté du bouton de rendez-vous, c'est tout le bloc
     qui passe proprement sur sa propre ligne (voir flex-wrap ci-dessus),
     jamais le nom qui se coupe ou se superpose. */
  flex-shrink: 0;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text {
  display: block;
}
/* Le nom du cabinet et celui du docteur doivent toujours rester lisibles en entier :
   la taille s'adapte à la largeur disponible, sans jamais tronquer ni couper un mot. */
.brand-text .name,
.brand-text .tagline {
  display: block;
  white-space: nowrap;
}
.brand-text .name {
  font-weight: 800;
  font-size: clamp(0.98rem, 0.82rem + 0.7vw, 1.15rem);
  color: var(--navy-900);
  line-height: 1.35;
}
.brand-text .tagline {
  font-size: clamp(0.8rem, 0.7rem + 0.4vw, 0.9375rem);
  font-weight: 600;
  color: var(--navy-700);
  letter-spacing: .01em;
  line-height: 1.35;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
nav.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--navy-800);
  white-space: nowrap;
}
nav.main-nav a:hover { background: var(--bg); color: var(--navy-950); }
nav.main-nav a.active { background: var(--navy-900); color: #fff; }

.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-cta .btn {
  padding: 11px 22px;
  font-size: var(--fs-md);
  white-space: nowrap;
}
.nav-cta .btn .btn-label-short { display: none; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
}

/* Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}
.hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(9,17,38,.94) 10%, rgba(9,17,38,.78) 45%, rgba(9,17,38,.35) 80%);
}
.hero .wrap {
  position: relative;
  padding: 96px 24px 90px;
}
.hero.hero-sm .wrap { padding: 64px 24px 60px; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero .hero-sub {
  color: var(--gold-light);
  font-weight: 700;
  font-size: var(--fs-xl);
  margin-bottom: 18px;
}
.hero .lead { color: #d7dcec; max-width: 56ch; }
.hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero .breadcrumb {
  font-size: var(--fs-xs);
  color: #aeb6cc;
  margin-bottom: 18px;
}
.hero .breadcrumb a:hover { color: #fff; }

/* Sections ---------------------------------------------------------------- */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
section.on-navy { background: var(--navy-900); color: #fff; }
section.on-navy h2 { color: #fff; }
section.on-navy .lead { color: #c7cee3; }
section.alt { background: #fff; }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin: 0 0 40px; text-align: left; }

/* Cards / grids ---------------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge.gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--navy-950); }

.pill-list { list-style: none; margin: 0; padding: 0; }
.pill-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.pill-list li:last-child { border-bottom: none; }
.pill-list .check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-2xs);
  margin-top: 2px;
}

/* Topic / pathology blocks ---------------------------------------------------------------- */
.topic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.topic:last-child { border-bottom: none; }
.topic.reverse .topic-media { order: 2; }
.topic.reverse .topic-body { order: 1; }
.topic-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
}
.topic-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--navy-800);
  background: #edf1fb;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* Stat / risk grid ---------------------------------------------------------------- */
.risk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.risk-card {
  text-align: center;
  padding: 26px 18px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
}
.risk-card .icon-badge { margin: 0 auto 16px; }
.risk-card h3 { color: #fff; font-size: var(--fs-base); }
.risk-card p { color: #b7c0da; font-size: var(--fs-sm); margin: 0; }

/* Quote / banner CTA ---------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
  border-radius: 20px;
  padding: 52px 40px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: #fff; margin-bottom: 6px; }
.cta-banner p { color: #c7cee3; margin: 0; }
.cta-banner .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Timeline / steps ---------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: flex;
  gap: 20px;
  padding: 0 0 30px 0;
  position: relative;
}
.steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 46px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.steps li .num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: var(--fs-lg);
}
.steps li .step-body h3 { margin-bottom: 6px; }
.steps li .step-body p { margin: 0; color: var(--muted); }

/* Diploma list ---------------------------------------------------------------- */
.diploma-list { list-style: none; margin: 0; padding: 0; }
.diploma-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.diploma-list li:last-child { border-bottom: none; }
.diploma-list .yr {
  flex-shrink: 0;
  min-width: 64px;
  font-weight: 800;
  color: var(--gold-dark);
}

/* Contact ---------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.info-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-row .icon-badge { margin-bottom: 0; }
.info-row h3 { margin-bottom: 4px; font-size: var(--fs-base); }
.info-row p { margin: 0; color: var(--muted); }
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }

/* Footer ---------------------------------------------------------------- */
footer.site-footer {
  background: var(--navy-950);
  color: #aab2c8;
  padding: 56px 0 26px;
  margin-top: 40px;
}
footer.site-footer .grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; }
footer.site-footer h4 { color: #fff; font-size: var(--fs-md); margin-bottom: 16px; }
footer.site-footer .brand-text .name { color: #fff; }
footer.site-footer .brand-text .tagline { color: #8b93ac; }
footer.site-footer p { color: #9aa2ba; font-size: var(--fs-sm); }
footer.site-footer ul { list-style: none; margin: 0; padding: 0; }
footer.site-footer li { margin-bottom: 10px; }
footer.site-footer a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 40px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: var(--fs-xs);
  color: #7d859e;
}
.legal-note {
  font-size: var(--fs-xs);
  color: #7d859e;
  max-width: 74ch;
  margin-top: 10px;
}

/* Misc ---------------------------------------------------------------- */
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.badge {
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  background: #edf1fb;
  color: var(--navy-800);
}
.moon-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  font-weight: 700;
  font-size: var(--fs-sm);
}

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 980px) {
  nav.main-nav { display: none; }
  .menu-toggle { display: block; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .risk-grid { grid-template-columns: repeat(2, 1fr); }
  .topic, .contact-grid { grid-template-columns: 1fr; }
  .topic.reverse .topic-media { order: 1; }
  .topic.reverse .topic-body { order: 2; }
  footer.site-footer .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .risk-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  footer.site-footer .grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .nav-cta .btn .btn-label-full { display: none; }
  .nav-cta .btn .btn-label-short { display: inline; }
  .nav-cta .btn { padding: 11px 18px; }
}

/* Mobile nav drawer ---------------------------------------------------------------- */
#mobileNav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy-950);
  z-index: 200;
  padding: 24px;
  color: #fff;
}
#mobileNav.open { display: block; }
#mobileNav .close-btn {
  background: none; border: none; color: #fff; font-size: 1.75rem; line-height: 1; cursor: pointer;
  position: absolute; top: 20px; right: 24px;
}
#mobileNav a {
  display: block;
  padding: 16px 0;
  font-size: var(--fs-2xl);
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: #fff;
}
