/* ==========================================================
   Clinique Équilibre — feuille de style (thème bleu ciel)
   Changez les couleurs ici : tout le site suit.
   ========================================================== */
:root {
  --teal: #1A78B8;        /* bleu ciel soutenu : couleur principale (boutons, liens) */
  --teal-dark: #14639A;
  --teal-deep: #0E3A5C;   /* bleu profond : fonds sombres */
  --mint: #E6F3FC;        /* bleu ciel très clair : fonds doux */
  --mint-2: #CDE7F8;
  --apricot: #F4B183;     /* accent chaleureux (toujours avec texte foncé) */
  --apricot-soft: #FCE9DC;
  --ink: #0F2433;
  --muted: #4A5D6B;
  --muted-light: #B7CCDD;
  --paper: #F5F9FC;
  --white: #FFFFFF;
  --line: #DCE8F1;

  --font-display: "Sora", "Helvetica Neue", sans-serif;
  --font-body: "Nunito Sans", "Helvetica Neue", Helvetica, sans-serif;
  --wrap: 1200px;
  --r-lg: 28px;
  --r: 20px;
  --r-sm: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--teal); color: var(--white); padding: 12px 20px; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.025em; }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.04; font-weight: 600; }
h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; font-weight: 600; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: 19px; color: var(--muted); max-width: 56ch; }
.deep .lead, .deep p { color: var(--muted-light); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-dark); color: var(--white); }
.btn-apricot { background: var(--apricot); color: var(--ink); }
.btn-apricot:hover { background: #EE9F68; color: var(--ink); }
.btn-line { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-line:hover { background: var(--teal); color: var(--white); }
.btn-light { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--teal-deep); }

/* ---------- Bandeau info ---------- */
.topbar { background: var(--teal-deep); color: var(--muted-light); font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: var(--white); font-weight: 700; text-decoration: none; }
.open-badge { display: inline-flex; align-items: center; gap: 8px; }
.open-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #8FA2B3; }
.open-badge.is-open .dot { background: #5BD39A; }
.open-badge.is-open { color: var(--white); }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245,249,252,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; line-height: 1.15; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 12px; color: var(--muted); letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; padding: 10px 0; }
.nav a:hover { color: var(--teal); }
.nav a[aria-current="page"] { color: var(--teal); box-shadow: inset 0 -3px 0 var(--apricot); }
.nav .btn { min-height: 46px; padding: 0 22px; color: var(--white); box-shadow: none; }
.nav .btn:hover { color: var(--white); }
.menu-toggle { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); padding: 8px 24px 24px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin-top: 16px; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero { padding: 56px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { color: var(--teal-deep); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; font-weight: 600; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { color: var(--teal); }
.hero-media { position: relative; }
.hero-media .photo { height: 520px; border-radius: 240px 240px var(--r-lg) var(--r-lg); }
.hero-card { position: absolute; left: -32px; bottom: 36px; background: var(--white); border-radius: var(--r); padding: 18px 20px; box-shadow: 0 20px 50px rgba(15,36,51,.16); display: flex; gap: 14px; align-items: center; max-width: 300px; }
.hero-card .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--apricot-soft); color: var(--teal-deep); display: flex; align-items: center; justify-content: center; flex: none; }
.hero-card strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.hero-card span { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media .photo { height: 340px; }
  .hero-card { left: 12px; right: 12px; bottom: -28px; max-width: none; }
  .hero { padding-bottom: 72px; }
}

/* ---------- Photos ---------- */
.photo { position: relative; overflow: hidden; border-radius: var(--r); background: var(--mint); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.is-missing { background: repeating-linear-gradient(135deg, #E4F0F8 0 14px, #D6E8F4 14px 28px); display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; color: var(--muted); font-size: 14px; }
.photo.is-missing img { display: none; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }
.white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mint { background: var(--mint); }
.deep { background: var(--teal-deep); color: var(--white); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-bottom: 48px; }
.section-head h2 { max-width: 20ch; color: var(--teal-deep); }
.deep .section-head h2 { color: var(--white); }
.section-head p { max-width: 46ch; color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Disciplines ---------- */
.disc { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.disc:hover { border-color: var(--teal); color: var(--ink); }
.disc .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--mint); color: var(--teal); display: flex; align-items: center; justify-content: center; }
.disc p { color: var(--muted); font-size: 16px; }
.disc .more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--teal); font-size: 15px; }

/* ---------- Bloc partagé ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .photo { height: 480px; border-radius: var(--r-lg); }
.split-text { display: flex; flex-direction: column; gap: 22px; }
.split-text h2 { color: var(--teal-deep); }
.deep .split-text h2 { color: var(--white); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .split .photo { height: 300px; } }

.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: none; margin-top: 3px; color: var(--teal); }
.deep .checks svg { color: var(--apricot); }

/* ---------- Étapes ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps li { padding: 28px; border-radius: var(--r); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; gap: 10px; }
.steps .n { width: 40px; height: 40px; border-radius: 50%; background: var(--apricot); color: var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; }
.steps h3 { color: var(--white); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Équipe ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer; }
.filter:hover { border-color: var(--teal); }
.filter[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--white); }
.pro { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.pro[hidden] { display: none; }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--teal-deep); background: var(--mint-2); margin-bottom: 6px; }
.pro:nth-child(3n+2) .avatar { background: var(--apricot-soft); }
.pro:nth-child(3n+3) .avatar { background: #E2E8F6; }
.pro .role { font-weight: 700; color: var(--teal); font-size: 15px; }
.pro p { font-size: 15px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--muted); }
.pro .btn { margin-top: auto; min-height: 44px; font-size: 15px; }

/* ---------- En-tête de page ---------- */
.page-hero { background: var(--mint); }
.page-hero .wrap { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 16px; }
.page-hero h1 { color: var(--teal-deep); font-size: clamp(38px, 5.4vw, 64px); }
.page-hero p { font-size: 19px; color: var(--muted); max-width: 60ch; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* ---------- Détail services ---------- */
.svc-detail { display: grid; grid-template-columns: 320px 1fr; gap: 48px; padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.svc-detail:last-child { border-bottom: 0; }
.svc-detail aside { display: flex; flex-direction: column; gap: 14px; }
.svc-detail aside .ic { width: 64px; height: 64px; border-radius: 18px; background: var(--mint); color: var(--teal); display: flex; align-items: center; justify-content: center; }
.svc-detail aside h2 { font-size: 32px; color: var(--teal-deep); }
.svc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.svc-body .full { grid-column: 1 / -1; }
.svc-body h3 { font-size: 16px; margin-bottom: 10px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.fact { font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: var(--apricot-soft); color: var(--ink); }
@media (max-width: 860px) { .svc-detail { grid-template-columns: 1fr; gap: 24px; } .svc-body { grid-template-columns: 1fr; } }

/* ---------- Formulaire de rendez-vous ---------- */
.book-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 960px) { .book-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 600px) { .form-card { padding: 22px; } }
.block { display: flex; flex-direction: column; gap: 14px; border: 0; padding: 0; margin: 0; }
.block > legend { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 20px; padding: 0; margin-bottom: 14px; }
.block > legend .n { width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: var(--white); font-size: 15px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, .field > .lbl { font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea { min-height: 52px; padding: 12px 16px; border-radius: var(--r-sm); border: 1.5px solid #C6D9E7; background: var(--paper); font: inherit; font-size: 16px; color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: var(--white); }
.error { font-size: 13px; color: #B42318; font-weight: 600; }
.has-error input, .has-error select, .has-error textarea { border-color: #D92D20; }
.hint { font-size: 13px; color: var(--muted); }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 8px 18px; border-radius: var(--r-sm); border: 1.5px solid #C6D9E7; background: var(--paper); cursor: pointer; font-weight: 700; }
.seg small { font-weight: 600; color: var(--muted); font-size: 12px; }
.seg input:checked + span { border-color: var(--teal); background: var(--mint); box-shadow: inset 0 0 0 1px var(--teal); }
.seg input:focus-visible + span { outline: 3px solid var(--apricot); outline-offset: 2px; }

.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.day { flex: none; width: 76px; min-height: 76px; border-radius: var(--r-sm); border: 1.5px solid #C6D9E7; background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; font: inherit; cursor: pointer; color: var(--ink); }
.day small { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: capitalize; }
.day strong { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.1; }
.day:disabled { opacity: .4; cursor: not-allowed; }
.day[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--white); }
.day[aria-pressed="true"] small { color: var(--mint-2); }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { min-height: 46px; padding: 0 16px; border-radius: var(--r-sm); border: 1.5px solid #C6D9E7; background: var(--white); font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.slot:hover { border-color: var(--teal); }
.slot[aria-pressed="true"] { background: var(--apricot); border-color: var(--apricot); }
.empty { font-size: 15px; color: var(--muted); padding: 8px 0; }

.check-line { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check-line input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--teal); flex: none; }

.summary { background: var(--teal-deep); color: var(--white); border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 100px; }
.summary h2 { font-size: 24px; color: var(--white); }
.summary dl { margin: 0; display: flex; flex-direction: column; }
.summary dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 15px; }
.summary dt { color: var(--muted-light); }
.summary dd { margin: 0; text-align: right; font-weight: 700; }
.summary p { font-size: 14px; color: var(--muted-light); }
.done { background: var(--mint); border: 1.5px solid var(--teal); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.done[hidden] { display: none; }
.done strong { font-family: var(--font-display); font-size: 20px; color: var(--teal-deep); }

/* ---------- Contact ---------- */
.hours { width: 100%; border-collapse: collapse; font-size: 16px; }
.hours td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 700; }
.hours tr.today td { color: var(--teal); }
.hours tr.today td:first-child::after { content: " · aujourd'hui"; font-weight: 600; font-size: 13px; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.info-card h2 { font-size: 26px; color: var(--teal-deep); }
.info-row { display: flex; gap: 14px; align-items: flex-start; }
.info-row .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--mint); color: var(--teal); display: flex; align-items: center; justify-content: center; flex: none; }
.info-row small { display: block; font-size: 13px; color: var(--muted); }
.map { height: 340px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 0 24px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; padding: 20px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; border-right: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(45deg) translateY(-4px); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details p { padding-bottom: 20px; color: var(--muted); }

/* ---------- Bandeau CTA ---------- */
.cta { background: var(--apricot); }
.cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.cta h2 { color: var(--ink); max-width: 22ch; font-size: clamp(26px, 3.2vw, 38px); }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn-line { border-color: var(--ink); color: var(--ink); }
.cta .btn-line:hover { background: var(--ink); color: var(--white); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--teal-deep); color: var(--muted-light); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer-grid h3 { color: var(--white); font-size: 15px; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--muted-light); text-decoration: none; }
.footer-grid a:hover { color: var(--apricot); }
.site-footer .brand { color: var(--white); margin-bottom: 14px; }
.site-footer .brand-name small { color: var(--muted-light); }
.urgence { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-sm); background: rgba(255,255,255,.07); font-size: 14px; }
.urgence strong { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 24px; font-size: 13px; }
.footer-bottom a { color: var(--muted-light); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Barre mobile ---------- */
.call-bar { display: none; }
@media (max-width: 640px) {
  .call-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1px solid var(--line); }
  .call-bar .btn { flex: 1; min-height: 50px; padding: 0 10px; }
  body { padding-bottom: 76px; }
  .summary { position: static; }
}
