@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Muli:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   CLINIQUE DENTAIRE MUTUALISTE
   Feuille de style principale
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs de marque (extraites du logo) */
  --navy: #182845;
  --navy-deep: #0e1e37;
  --navy-soft: #1f2a4b;
  --teal: #6c9e9d;
  --teal-light: #78aeaa;

  /* Couleurs d'accent (signature du gabarit de référence) */
  --green: #90bd2b;
  --green-dark: #7ba321;
  --blue: #114092;

  /* Texte */
  --ink: #0e1e37;
  --body: #5b6472;
  --muted: rgba(0, 0, 0, .55);
  --muted-2: rgba(0, 0, 0, .4);
  --on-dark: rgba(255, 255, 255, .68);
  --on-dark-2: rgba(255, 255, 255, .4);

  /* Surfaces */
  --white: #fff;
  --line: #e6e9ee;
  --grey: #f5f7f9;

  /* Typographie */
  --font-head: 'Poppins', Helvetica, Arial, sans-serif;
  --font-body: 'Muli', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Structure */
  --container: 1200px;
  --gutter: 40px;
  --header-h: 104px;

  /* Effets */
  --shadow-btn: 0 14px 30px -10px rgba(22, 41, 68, .4);
  --shadow-card: 0 24px 60px -28px rgba(14, 30, 55, .45);
  --ease: 300ms cubic-bezier(.4, 0, .2, 1);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  /* Empeche le menu hors-ecran de creer un defilement horizontal.
     `clip` ne transforme pas <html> en conteneur de defilement :
     `position: sticky` du header continue de fonctionner. */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--ease);
}
a:hover { color: var(--navy); }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

strong { font-weight: 700; color: var(--ink); }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

::selection {
  background: var(--teal);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.screen-reader {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: top var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* --------------------------------------------------------------------------
   3. MISE EN PAGE
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 32px;
}

/* Rythme vertical fluide : 56px sur petit ecran -> 96px sur grand ecran.
   Avant, la valeur etait fixe (96px) et trois sections avaient un
   `padding-top: 0`, d'ou un contenu colle en haut de section. */
.section {
  position: relative;
  padding-block: clamp(56px, 7vw, 96px);
}

.section--tight { padding-block: clamp(44px, 5vw, 64px); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

.section--grey { background: var(--grey); }
.section--dark { background: var(--navy); color: var(--on-dark); }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark strong { color: #fff; }
.section--dark a { color: var(--teal-light); }
.section--dark a:hover { color: #fff; }

.section--navy-deep { background: var(--navy-deep); }

/* Rangées en grille */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: -24px;
}

.col {
  flex: 0 0 100%;
  max-width: 100%;
  padding-inline: 24px;
}

@media (min-width: 768px) {
  .col--6 { flex: 0 0 50%; max-width: 50%; }
  .col--5 { flex: 0 0 41.666%; max-width: 41.666%; }
  .col--7 { flex: 0 0 58.333%; max-width: 58.333%; }
  .col--4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col--8 { flex: 0 0 66.666%; max-width: 66.666%; }
}

.align-center { display: flex; flex-direction: column; justify-content: center; }

/* --------------------------------------------------------------------------
   4. TYPOGRAPHIE
   -------------------------------------------------------------------------- */
.eyebrow {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted-2);
}

.section--dark .eyebrow,
.eyebrow--light { color: var(--on-dark-2); }

.h-xl {
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 600;
  line-height: 1.2;
}

.h-lg {
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 600;
  line-height: 1.3;
}

.h-md {
  font-size: clamp(24px, 2.6vw, 40px);
  font-weight: 600;
  line-height: 1.3;
}

.h-sm {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.4;
}

.lead {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.8;
}

.text-block p { margin-bottom: 1.1em; }

.text-center { text-align: center; }

.prose {
  max-width: 760px;
  margin-inline: auto;
}

.link-arrow {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
}
.link-arrow::after {
  content: "\2192";
  display: inline-block;
  margin-left: .5em;
  transition: transform var(--ease);
}
.link-arrow:hover::after { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   5. BOUTONS
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--navy-soft);
  --btn-hover: var(--teal-light);
  position: relative;
  display: inline-block;
  padding: 14px 30px;
  border: 0;
  border-radius: 0;
  background: var(--btn-bg);
  color: #fff;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background-color var(--ease), color var(--ease),
              padding var(--ease), box-shadow var(--ease);
}

.btn::after {
  content: "\2192";
  display: inline-block;
  margin-left: 0;
  opacity: 0;
  font-size: 1.1em;
  transform: translateX(-6px);
  transition: opacity var(--ease), transform var(--ease), margin var(--ease);
}

.btn:hover,
.btn:focus-visible {
  background: var(--btn-hover);
  color: #fff;
  padding-right: 38px;
}
.btn:hover::after,
.btn:focus-visible::after {
  opacity: 1;
  margin-left: 10px;
  transform: translateX(0);
}

.btn--green { --btn-bg: var(--green); --btn-hover: var(--green-dark); }

/* Variante barre supérieure : compacte, très espacée */
.btn--hero {
  --btn-bg: var(--green);
  --btn-hover: var(--green-dark);
  padding: 13px 26px;
  font-size: 13px;
  letter-spacing: 1.6px;
  box-shadow: 0 12px 18px -6px rgba(0, 0, 0, 0);
}
.btn--hero:hover,
.btn--hero:focus-visible {
  box-shadow: 0 12px 18px -6px rgba(105, 193, 32, .64);
  padding-right: 32px;
  padding-left: 32px;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-hover: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  box-shadow: none;
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: #fff;
  color: var(--navy);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 1px;
}

.btn-block { display: block; width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

/* --------------------------------------------------------------------------
   6. EN-TÊTE
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--grey);
  border-bottom: 1px solid var(--line);
}

/* Barre superieure : compacte. Le bouton d'appel etait a 18px / 4px
   d'interlettrage, soit 412x68px — il dominait l'en-tete et ecrasait
   la mise en page sur tablette et mobile. */
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 8px;
}

.topbar__info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: .5px;
  color: var(--muted);
}

.topbar__info span,
.topbar__info a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.topbar__info a:hover { color: var(--blue); }

.topbar__info .ico { color: var(--teal); font-size: 14px; }

@media (max-width: 1279px) {
  .topbar .btn--hero { padding: 11px 18px; font-size: 12px; letter-spacing: 1.2px; }
  .topbar__info { gap: 6px 20px; font-size: 11px; }
}

@media (max-width: 767px) {
  /* Sur mobile le bouton d'appel vert est masque : il pesait sur la barre
     superieure et repoussait le logo. Le numero reste accessible via les
     liens du menu et le bouton du hero. */
  .topbar__inner { flex-direction: column; }
  .topbar .btn--hero { display: none; }
  .topbar__info { justify-content: center; text-align: center; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
  transition: box-shadow var(--ease);
}

.site-header.is-stuck { box-shadow: 0 8px 30px -12px rgba(14, 30, 55, .3); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding-block: 12px;
}

.brand__logo {
  width: auto;
  height: 52px;
  transition: height var(--ease);
}

.nav { display: flex; align-items: center; }

.nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 30px;
}

.nav__link {
  position: relative;
  display: block;
  padding: 10px 0;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, .9);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}

.nav__link:hover { color: var(--navy); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__link.is-active { color: var(--navy); font-weight: 600; }
.nav__link.is-active::after { transform: scaleX(1); }

.nav__cta { margin-left: 12px; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle__bar { position: relative; margin: 0 auto; }
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle__bar::before { top: -8px; }
.nav-toggle__bar::after { top: 8px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
  top: 0; transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
  top: 0; transform: rotate(-45deg);
}

@media (max-width: 1080px) {
  :root { --header-h: 88px; }
  .brand__logo { height: 44px; }
  .nav-toggle { display: block; }

  /* Le panneau doit passer AU-DESSUS du voile (.nav-scrim z-index 880).
     Sans ce z-index, le voile sombre se superposait au panneau blanc qui
     apparaissait donc translucide. Les controles de l'en-tete restent
     au-dessus du panneau pour pouvoir le refermer. */
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 890;
    width: min(360px, 88vw);
    padding: calc(var(--header-h) + 20px) 32px 40px;
    background: #fff;
    box-shadow: -20px 0 60px -30px rgba(14, 30, 55, .5);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 400ms cubic-bezier(.4, 0, .2, 1), visibility 400ms;
    overflow-y: auto;
    /* en colonne : sinon le bouton se place a cote de la liste des liens */
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }
  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  /* L'en-tete est `sticky` (donc sous la barre superieure) alors que le
     panneau est `fixed` (duree jusqu'en haut de l'ecran) : sans cet
     alignement, le premier lien chevauche le logo. `body.is-locked` est pose
     par main.js a l'ouverture du menu. */
  body.is-locked .site-header {
    position: fixed;
    inset: 0 0 auto auto;
    width: min(360px, 88vw);
  }

  /* l'en-tete reste maniposable par-dessus le panneau ouvert */
  .brand,
  .lang,
  .nav-toggle { position: relative; z-index: 900; }
  .site-header__inner .lang { order: 1; margin-left: auto; }
  .site-header__inner .nav-toggle { order: 2; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__link {
    padding: 17px 0;
    font-size: 13px;
  }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--green-dark); }
  .nav__cta { margin: 28px 0 0; }
  .nav__cta .btn { width: 100%; }

  .nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 880;
    background: rgba(14, 30, 55, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--ease), visibility var(--ease);
  }
  .nav-scrim.is-visible { opacity: 1; visibility: visible; }
}

@media (max-width: 560px) {
  .topbar__info { font-size: 11px; gap: 6px 18px; }
}

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(78vh, 760px);
  padding-block: 110px;
  background-color: var(--navy-deep);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

/* Variantes de hauteur pour les pages internes */
.hero--short { min-height: min(62vh, 620px); }
.hero--xs { min-height: min(52vh, 520px); }

@media (max-width: 767px) {
  .hero { min-height: auto; padding-block: 72px; }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(14, 30, 55, .92) 0%, rgba(24, 40, 69, .78) 45%, rgba(24, 40, 69, .35) 100%);
}

.hero__inner { max-width: 720px; }
.hero__inner .eyebrow { color: var(--on-dark-2); }

.hero__title {
  margin-bottom: 26px;
  color: #fff;
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 600;
  line-height: 1.2;
}

.hero__text {
  margin-bottom: 1em;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.8;
  color: rgba(255, 255, 255, .82);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.hero__meta strong { color: #fff; font-weight: 600; }

.scroll-hint {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.scroll-hint span {
  display: block;
  width: 1px;
  height: 34px;
  margin: 8px auto 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), transparent);
  animation: scrollHint 2.2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { opacity: .25; transform: scaleY(.6); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1);  transform-origin: top; }
}

/* Sur petit ecran le hero n'a plus de hauteur fixe : l'indication
   de defilement recouvrirait le texte, on la masque. */
@media (max-width: 767px) {
  .scroll-hint { display: none; }
}

/* --------------------------------------------------------------------------
   8. BANDEAU IMAGE + TEXTE
   -------------------------------------------------------------------------- */
.banner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.banner__media {
  flex: 0 0 100%;
  max-width: 100%;
}

.banner__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 100%;
  max-width: 100%;
  padding: 56px 40px;
  background: var(--navy);
  color: var(--on-dark);
}

.banner__body h3 { color: #fff; }
.banner__body p { color: rgba(255, 255, 255, .75); }

@media (min-width: 900px) {
  .banner__media { flex: 0 0 62%; max-width: 62%; }
  .banner__body  { flex: 0 0 38%; max-width: 38%; }
}

.banner__media img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   9. SECTION « À PROPOS » (sombre, image + texte)
   -------------------------------------------------------------------------- */
.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.split__media {
  flex: 0 0 100%;
  max-width: 100%;
}
.split__body {
  flex: 0 0 100%;
  max-width: 100%;
  padding-inline: 24px;
}

.split--reverse .split__media { order: 2; }

@media (min-width: 900px) {
  .split__media,
  .split__body { flex: 0 0 50%; max-width: 50%; }
  .split__media img {
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: cover;
    border-radius: 2px;
  }
}

.split__body--pad { padding-block: 40px; }

/* --------------------------------------------------------------------------
   10. CARTES / GRILLES
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }

.card {
  position: relative;
  padding: 40px 32px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-card);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 22px;
}

.card h3 { margin-bottom: 12px; font-size: 20px; }
.card p { font-size: 16px; }

.card--dark {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .12);
  color: var(--on-dark);
}
.card--dark h3 { color: #fff; }
.card--dark:hover { border-color: rgba(255, 255, 255, .3); }
.card--dark strong { color: #fff; }

/* Liste à puces « service » */
.check-list li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}

.check-list li:last-child { border-bottom: 0; }

.check-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 21px;
  width: 9px; height: 9px;
  background: var(--teal);
  transform: rotate(45deg);
}

.section--dark .check-list li { border-color: rgba(255, 255, 255, .12); }

/* --------------------------------------------------------------------------
   11. CARROUSEL DES TRAITEMENTS
   -------------------------------------------------------------------------- */
.carousel { position: relative; }

.carousel__viewport {
  overflow: hidden;
  margin-inline: -12px;
  padding: 12px;
}

.carousel__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

.slide {
  flex: 0 0 calc(33.333% - 16px);
  max-width: calc(33.333% - 16px);
  scroll-snap-align: start;
}

@media (max-width: 900px) { .slide { flex: 0 0 calc(50% - 12px); max-width: calc(50% - 12px); } }
@media (max-width: 560px) { .slide { flex: 0 0 78%; max-width: 78%; } }

.slide__figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--grey);
}

.slide__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2, .7, .3, 1);
}
.slide:hover .slide__figure img { transform: scale(1.07); }

.slide__body { padding-top: 20px; }
.slide__body h3 { margin-bottom: 8px; font-size: 17px; }
.slide__body p { font-size: 15px; }

.carousel__nav {
  display: flex;
  gap: 10px;
  margin-top: 34px;
}

.carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 18px;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease), opacity var(--ease);
}
.carousel__btn:hover:not(:disabled) {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.carousel__btn:disabled { opacity: .3; cursor: default; }

.carousel__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.carousel__dot {
  width: 9px; height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background-color var(--ease), transform var(--ease);
}
.carousel__dot.is-active { background: var(--teal); transform: scale(1.35); }

/* --------------------------------------------------------------------------
   12. ENCADRÉ « TARIFS / CONVENTION »
   -------------------------------------------------------------------------- */
.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 34px 38px;
  background: var(--grey);
  border-left: 4px solid var(--green);
}

.notice__list {
  flex: 1 1 320px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 40px;
}

.notice__list li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  color: var(--ink);
}

.notice__list li::before {
  content: "\2713";
  position: absolute;
  left: 0; top: 0;
  color: var(--green-dark);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   13. BANDEAU D'URGENCE
   -------------------------------------------------------------------------- */
.urgence {
  background: var(--green);
  color: var(--navy-deep);
}

.urgence__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding-block: clamp(26px, 3.5vw, 40px);
}

.urgence__title {
  font-size: 20px;
  color: var(--navy-deep);
}

.urgence__title span {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(14, 30, 55, .72);
}

.urgence__phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 600;
  color: var(--navy-deep);
}
.urgence__phone:hover { color: #fff; }

.urgence .btn { --btn-bg: var(--navy-deep); --btn-hover: var(--navy); }

/* --------------------------------------------------------------------------
   14. FORMULAIRE
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 22px; }

.form__row {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.field { display: grid; gap: 8px; }

.field label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted-2);
}

.field input:not([type="checkbox"]),
.field textarea,
.field select {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  transition: border-color var(--ease), box-shadow var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235b6472' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}

.field textarea { min-height: 150px; resize: vertical; }

.field input:not([type="checkbox"]):focus,
.field textarea:focus,
.field select:focus {
  outline: 0;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(108, 158, 157, .18);
}

.field input::placeholder,
.field textarea::placeholder { color: #a8b0bb; }

.field--error input,
.field--error textarea,
.field--error select { border-color: #cf2e2e; }

.field__error {
  display: none;
  font-size: 13px;
  color: #cf2e2e;
}
.field--error .field__error { display: block; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}
.checkbox input {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin-top: 3px;
  accent-color: var(--teal);
  -webkit-appearance: auto;
  appearance: auto;
  cursor: pointer;
}

.form__status {
  display: none;
  padding: 16px 20px;
  font-size: 15px;
}
.form__status.is-visible { display: block; }
.form__status--ok {
  background: rgba(144, 189, 43, .12);
  border-left: 3px solid var(--green);
  color: #4d6612;
}
.form__status--err {
  background: rgba(207, 46, 46, .08);
  border-left: 3px solid #cf2e2e;
  color: #96201f;
}

/* Piège à robots : invisible pour un humain, atteignable pour un robot. */
.champ-piege {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   15. TABLEAU DES HORAIRES
   -------------------------------------------------------------------------- */
.hours { width: 100%; border-collapse: collapse; }

.hours caption {
  margin-bottom: 18px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted-2);
}

.hours th,
.hours td {
  padding: 15px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 16px;
}
.hours th { font-weight: 600; color: var(--ink); }
.hours td { color: var(--body); }
.hours tbody tr:last-child th,
.hours tbody tr:last-child td { border-bottom: 0; }
.hours .is-closed { color: #a8b0bb; }

.section--dark .hours th,
.section--dark .hours td { border-color: rgba(255, 255, 255, .12); }
.section--dark .hours th { color: #fff; }
.section--dark .hours td { color: var(--on-dark); }
.section--dark .hours .is-closed { color: rgba(255, 255, 255, .32); }
.section--dark .hours caption { color: var(--on-dark-2); }

/* Encarts du formulaire de contact : respiration reduite sur mobile */
@media (max-width: 560px) {
  .contact-panel { padding: 28px 22px !important; }
  .contact-panel .hours th,
  .contact-panel .hours td { font-size: 15px; padding-inline: 4px; }
  .contact-panel .hours th { white-space: nowrap; }
}

/* --------------------------------------------------------------------------
   16. BLOCS DE COORDONNÉES
   -------------------------------------------------------------------------- */
.info-blocks {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.info-block {
  padding: 26px 24px;
  border: 1px solid var(--line);
}

.info-block__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted-2);
}

.info-block__label .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 15px;
  flex: 0 0 auto;
}

.info-block__value {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
}
.info-block__value a { color: var(--ink); }
.info-block__value a:hover { color: var(--blue); }

.section--dark .info-block { border-color: rgba(255, 255, 255, .12); }
.section--dark .info-block__label { color: var(--on-dark-2); }
.section--dark .info-block__value { color: #fff; }
.section--dark .info-block__value a { color: #fff; }
.section--dark .info-block__value a:hover { color: var(--teal-light); }

/* --------------------------------------------------------------------------
   17. PIED DE PAGE
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: var(--on-dark);
}

.footer-cta {
  padding-block: 84px;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.footer-cta__media {
  flex: 0 0 100%;
  max-width: 100%;
}
.footer-cta__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}

.footer-cta__body { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 900px) {
  /* calc() : la somme doit laisser la place au gap de 40px */
  .footer-cta__media { flex: 0 0 calc(42% - 20px); max-width: calc(42% - 20px); }
  .footer-cta__body  { flex: 0 0 calc(58% - 20px); max-width: calc(58% - 20px); }
}

.footer-cta__title {
  margin-bottom: 18px;
  font-size: clamp(26px, 3.2vw, 40px);
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
}

.footer-cta__text {
  margin-bottom: 1em;
  font-size: 18px;
  color: rgba(255, 255, 255, .72);
}

.footer-main { padding-block: 72px 56px; }

.footer-main__top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-brand { flex: 0 0 100%; max-width: 340px; }
.footer-brand__logo { height: 46px; width: auto; margin-bottom: 22px; }
.footer-brand p { font-size: 16px; color: var(--on-dark); }

.footer-nav,
.footer-contact,
.footer-hours { flex: 0 0 100%; max-width: 100%; }

.footer-col__title {
  margin-bottom: 24px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--on-dark-2);
}

.footer-nav__list li { border-bottom: 1px solid rgba(255, 255, 255, .07); }
.footer-nav__list a {
  display: block;
  padding: 9px 0;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--on-dark);
}
.footer-nav__list a:hover { color: var(--teal-light); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  font-size: 16px;
}
.footer-contact .ico { flex: 0 0 auto; margin-top: 4px; color: var(--teal-light); }
.footer-contact a { color: var(--on-dark); font-size: 14px; overflow-wrap: anywhere; }
.footer-contact a:hover { color: var(--teal-light); }

/* Le pied de page n'a pas la classe .section--dark : sans ces regles,
   les jours et la mention « Ouvert 5 jours sur 7 » restaient en marine
   sur fond marine, donc presque illisibles. */
.footer-hours .hours th,
.footer-hours .hours td { border-color: rgba(255, 255, 255, .1); font-size: 15px; }
.footer-hours .hours th {
  white-space: nowrap;
  color: #fff;
  font-weight: 600;
}
.footer-hours .hours td {
  white-space: nowrap;
  color: rgba(255, 255, 255, .75);
}
.footer-hours .hours .is-closed { color: rgba(255, 255, 255, .45); }
.footer-hours .hours caption {
  color: rgba(255, 255, 255, .6);
  font-weight: 600;
}

.footer-bottom {
  padding-block: 26px;
  background: var(--navy-deep);
}

.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 14px;
  color: var(--on-dark-2);
}

.footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer-bottom a { color: var(--on-dark-2); }
.footer-bottom a:hover { color: var(--teal-light); }

/* Colonnes du pied de page.
   `flex: <grow> 1 0` : la base vaut 0, les colonnes se partagent donc
   l'espace restant APRES deduction des `gap`. Avec des largeurs en
   pourcentage (100 % + gap) la 4e colonne passait a la ligne.
   En dessous de 1280px on passe en 2 colonnes : la colonne « Coordonnees »
   est alors trop etroite pour l'adresse e-mail sur une seule ligne. */
@media (min-width: 768px) and (max-width: 1279px) {
  .footer-brand,
  .footer-nav,
  .footer-contact,
  .footer-hours { flex: 1 1 calc(50% - 16px); max-width: calc(50% - 16px); }
}

@media (min-width: 1280px) {
  .footer-brand,
  .footer-nav,
  .footer-contact,
  .footer-hours { flex: 1 1 0; max-width: none; }
  .footer-brand   { flex-grow: 1.15; }
  .footer-nav     { flex-grow: 0.8; }
  .footer-contact { flex-grow: 1.15; }
  .footer-hours   { flex-grow: 0.9; }
}

/* --------------------------------------------------------------------------
   19. TRADUCTION
   -------------------------------------------------------------------------- */
/* La classe `i18n-pending` est ajoutee par un script en ligne : si le JS est
   desactive, elle n'est jamais posee et la page reste visible (pas de page
   blanche). Elle evite le clignotement du francais avant la traduction. */
html.i18n-pending body { opacity: 0; }

.lang { position: relative; flex: 0 0 auto; }

/* Placement : le selecteur reste a droite de la barre de navigation sur
   grand ecran, et juste avant le bouton burger sur mobile. */
@media (min-width: 1081px) {
  .site-header__inner .nav { order: 1; }
  .site-header__inner .lang { order: 2; }
}

.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--ease), background-color var(--ease);
}

.lang__btn:hover,
.lang.is-open .lang__btn { border-color: var(--teal); background: var(--grey); }

.lang__globe { width: 15px; height: 15px; color: var(--teal); flex: 0 0 auto; }
.lang__chev {
  width: 9px; height: 9px;
  margin-left: 2px;
  color: var(--muted);
  transition: transform var(--ease);
}
.lang.is-open .lang__chev { transform: rotate(180deg); }

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 172px;
  padding: 6px;
  background: #fff;
  box-shadow: 0 18px 44px -18px rgba(14, 30, 55, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
}

.lang.is-open .lang__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang__menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: none;
  color: var(--body);
  font-family: var(--font-body);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease);
}

.lang__menu button:hover { background: var(--grey); color: var(--ink); }
.lang__menu button.is-active { color: var(--teal); font-weight: 700; }

.lang__menu button::after {
  content: "\2713";
  opacity: 0;
  color: var(--green-dark);
  font-size: 13px;
}
.lang__menu button.is-active::after { opacity: 1; }

.lang__code { min-width: 20px; text-align: left; }

/* --- Version mobile / tablette : le selecteur devient une icone globe ---
   Ni code langue ni chevron : uniquement le globe. Un clic ouvre la liste. */
@media (max-width: 1080px) {
  .lang__code,
  .lang__chev { display: none; }

  .lang__btn {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    gap: 0;
    border-radius: 50%;
  }
  .lang__btn:hover,
  .lang.is-open .lang__btn { border-radius: 50%; }

  .lang__globe { width: 19px; height: 19px; }

  .lang__menu {
    right: 0;
    left: auto;
    min-width: 176px;
    top: calc(100% + 10px);
  }
}

/* --------------------------------------------------------------------------
   20. ANIMATIONS AU DÉFILEMENT
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2, .7, .3, 1);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   20b. AJUSTEMENTS MOBILE DEMANDÉS
   -------------------------------------------------------------------------- */

/* Chiffres clés de la page Équipements : 4 colonnes sur ordinateur, 2 sur
   tablette et mobile, pour éviter un bloc très haut à parcourir.
   1080 px est le point de bascule du site (menu hamburger). */
@media (min-width: 1081px) {
  .grid--chiffres { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1080px) {
  .grid--chiffres { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
}
@media (max-width: 767px) {
  .grid--chiffres .h-lg { font-size: 30px; }
}

/* « Prendre rendez-vous » dans la barre haute : sur ordinateur seulement,
   le site passant en menu hamburger sous 1080 px. */
@media (max-width: 1080px) {
  .topbar .btn--hero { display: none; }
}

/* E-mail dans son encadré : 1 px de moins que sur bureau (17 px) sur mobile.
   L'adresse est plus courte, elle garde donc sa taille normale. */
@media (max-width: 767px) {
  .info-block__value a[href^="mailto:"] { font-size: 16px; }
}

/* Hero de la page Contact : le premier saut de ligne ne sert qu'aux écrans
   étroits. Sur ordinateur il est masqué, donc le nom de la clinique et
   l'adresse restent sur une seule ligne. */
@media (min-width: 768px) {
  .hero__text br:first-of-type { display: none; }
}

/* Menu principal : 13 px sur ordinateur seulement. Le menu mobile garde son
   propre réglage (17 px) déclaré plus bas dans la feuille. */
@media (min-width: 1081px) {
  .nav__link { font-size: 13px; }
}

/* --------------------------------------------------------------------------
   21. BOUTON WHATSAPP FLOTTANT
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, .38);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.whatsapp-float svg { width: 30px; height: 30px; display: block; }
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 22px rgba(37, 211, 102, .5);
}

/* Sur mobile, un peu plus petit et moins éloigné des bords. */
@media (max-width: 767px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 50px; height: 50px;
  }
  .whatsapp-float svg { width: 27px; height: 27px; }
}

/* Le bouton ne doit jamais masquer le dernier contenu de la page. */
@media (max-width: 767px) {
  body { padding-bottom: 78px; }
}

/* --------------------------------------------------------------------------
   22. IMPRESSION
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .topbar, .footer-cta, .nav-scrim, .scroll-hint, .carousel__nav { display: none; }
  .whatsapp-float { display: none; }
  body { color: #000; font-size: 12pt; }
  .section { padding-block: 12pt; }
  a[href^="tel:"]::after,
  a[href^="mailto:"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
