/* ═══════════════════════════════════════════
   Cabinet de chirurgie pédiatrique — Sfax
   Feuille de style principale (FR / AR / EN)
   ═══════════════════════════════════════════ */

:root {
  --navy:        #1F3D6B;
  --navy-soft:   #2E4774;   /* texte courant (foncé pour une meilleure lisibilité) */
  /* Palette : bleu marine + lavande/mauve (blocs chauds) + bleu poudré (blocs froids),
     rose-mauve en accent */
  --pink:        #F6F0F8;   /* lavande très pâle (champs, fonds légers) */
  /* Couleur de l'accueil, reprise pour les blocs (hors menu) */
  --soft:        #F3E6F0;
  --soft-grad:   linear-gradient(180deg, #F6F0F8 0%, #F3E6F0 45%, #E6E0F5 100%);
  --pink-deep:   #E6E0F5;   /* mauve clair */
  --pink-accent: #DE9AB2;
  --pink-dark:   #C9748F;
  /* Bleu poudré clair */
  --blue:        #E6EFF5;
  --blue-soft:   #DDE9F1;
  --blue-deep:   #D3E3EC;
  --blue-dark:   #3A5E96;
  --white:       #FFFFFF;
  --border:      #E2DCEA;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, sans-serif;

  --max-width: 1180px;
  --radius:    18px;
  --shadow:    0 10px 30px rgba(31, 61, 107, .08);
}

/* Arabic swaps the display face for one with proper Arabic glyphs */
html[lang="ar"] {
  --font-display: 'Cairo', 'Segoe UI', sans-serif;
  --font-body:    'Cairo', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  font-family: var(--font-body);
  color: var(--navy-soft);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

/* ─── Top bar ─────────────────────────────── */
.topbar {
  background: var(--navy);
  color: #D8E3F5;
  font-size: .82rem;
}
.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  padding-block: 9px;
}
.topbar-item { white-space: nowrap; }
.topbar-item:not(span):hover { color: var(--white); }
.topbar-address { display: inline-flex; align-items: center; gap: 6px; }
.topbar-address svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--pink-accent); }
.topbar-fb { display: inline-flex; align-items: center; gap: 6px; }
/* Logo Facebook : bleu officiel, « f » évidé laissant voir un fond blanc */
.fb-icon { fill: #1877F2; background: #fff; border-radius: 50%; }
.topbar-fb svg { width: 16px; height: 16px; }
.topbar-fb:hover .fb-icon { transform: scale(1.1); }
.fb-icon { transition: transform .2s; }

/* ─── Navbar ──────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { height: 46px; width: auto; flex-shrink: 0; }
.logo-body { display: flex; flex-direction: column; gap: 2px; }
.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 1.2;
}
.logo-text {
  font-size: .8rem;
  font-weight: 500;
  color: var(--navy-soft);
  line-height: 1.2;
  max-width: 210px;
}

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-size: .93rem;
  font-weight: 600;
  color: var(--navy-soft);
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  border-bottom-color: var(--pink-accent);
}

.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch { display: flex; gap: 8px; }
/* Boutons de langue en lettres (FR / AR / EN) */
.lang-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding: 0 6px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  background: none;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--navy-soft);
  cursor: pointer;
  opacity: .7;
  transition: opacity .2s, color .2s, background .2s, border-color .2s;
}

/* Infobulle : texte seul, sans fond ni bordure */
.lang-btn[data-lang="ar"] { font-family: 'Cairo', sans-serif; font-size: 1rem; line-height: 1; }

.lang-btn::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  font-size: .72rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.lang-btn:hover::after,
.lang-btn:focus-visible::after { opacity: 1; }
.lang-btn:hover {
  opacity: 1;
  color: var(--navy);
  border-color: var(--pink-accent);
}
.lang-btn.active {
  opacity: 1;
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}
.lang-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Buttons ─────────────────────────────── */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 30px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--pink-accent); color: var(--white); }
.btn-primary:hover { background: var(--pink-dark); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; }

/* ─── Hero ────────────────────────────────── */
.hero {
  /* Plus clair que le menu (rose) pour bien l'en distinguer :
     lavande pâle en haut, rose poudré au milieu, mauve en bas */
  background: var(--soft-grad);
  padding-block: 84px 0;
  text-align: center;
}
.hero-title {
  /* Taille calibrée pour tenir sur une seule ligne sur grand écran */
  font-size: clamp(1.15rem, 2.6vw, 2.05rem);
  text-wrap: balance;
}
.hero-subtitle {
  margin: 22px auto 0;
  max-width: 60ch;
  font-size: 1.08rem;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  /* Placés sous le carrousel */
  margin-top: 4px;
  padding-bottom: 52px;
}

/* ─── Hero carousel ───────────────────────── */
/* The active slide sits in the centre; its neighbours are shown smaller
   on each side. JS (main.js) sets the is-active / is-prev / is-next classes. */
.hero-carousel {
  position: relative;
  padding-block: 48px 30px;
}
.carousel-stage {
  position: relative;
  height: clamp(260px, 27vw, 340px);
  touch-action: pan-y;
}
.slide {
  --x: 0%;
  --s: .6;
  position: absolute;
  top: 0;
  left: 50%;
  width: min(440px, 100%);
  height: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: center 30%;
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(-50% + var(--x))) scale(var(--s));
  transition: transform .7s cubic-bezier(.3,.7,.3,1), opacity .7s, filter .7s;
}
.slide.is-active { --s: 1; opacity: 1; z-index: 2; }
.slide.is-prev,
.slide.is-next {
  --s: .78;
  opacity: .6;
  z-index: 1;
  filter: saturate(.8);
  pointer-events: auto;
  cursor: pointer;
}
.slide.is-prev { --x: -80%; }
.slide.is-next { --x: 80%; }
[dir="rtl"] .slide.is-prev { --x: 80%; }
[dir="rtl"] .slide.is-next { --x: -80%; }
.slide.is-prev:hover, .slide.is-next:hover { opacity: .85; }
/* Business card: shown whole; the background matches the card's own colour
   so the extra space blends in */
.slide-card { object-fit: contain; background: #E6F0F1; }
.slide-card-white { background: #FFFFFF; }

.carousel-btn {
  position: absolute;
  top: calc(48px + clamp(260px, 27vw, 340px) / 2);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  translate: 0 -50%;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .2s, background .2s;
}
.carousel-btn:hover { transform: scale(1.08); background: var(--pink-accent); color: #fff; }
.carousel-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[dir="rtl"] .carousel-btn svg { transform: scaleX(-1); }
.carousel-prev { inset-inline-start: 24px; }
.carousel-next { inset-inline-end: 24px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  opacity: .25;
  cursor: pointer;
  transition: width .3s, opacity .3s, background .3s;
}
.carousel-dots button[aria-current="true"] {
  width: 28px;
  opacity: 1;
  background: var(--pink-accent);
}

/* Hero animation: staggered entrance */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroZoom {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: none; }
}
/* Titre et sous-titre : chaque mot apparaît en cascade (spans créés par main.js) */
.hero-title .word,
.hero-subtitle .word {
  display: inline-block;
  animation: listItemIn .5s ease-out both;
}
.hero-buttons  { animation: heroRise .8s .3s ease-out both; }
/* Les images voisines des carrousels ne doivent pas élargir la page sur mobile */
.hero, #cabinet { overflow-x: clip; }

.hero-carousel { animation: heroZoom .9s .45s cubic-bezier(.2,.7,.3,1) both; }

/* Services ticker at the bottom of the hero */
@keyframes tickerScroll { to { transform: translateX(-50%); } }
@keyframes tickerScrollRtl { to { transform: translateX(50%); } }
.ticker {
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding-block: 16px;
  /* fade the edges */
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 38s linear infinite;
}
[dir="rtl"] .ticker-track { animation-name: tickerScrollRtl; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticker-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-inline: 18px;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: .02em;
}
.ticker-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink-accent);
}

/* Variante texte simple, sous le sous-titre du hero */
.ticker-text {
  background: none;
  color: var(--navy);
  padding-block: 6px;
  margin: 18px auto 0;
  max-width: 100%;
  overflow: visible;
  font-size: .9rem;
}
.ticker-text .ticker-list li { font-weight: 600; }

/* Liste fixe sur deux lignes (4 + 4), sans défilement */
.ticker-text { mask-image: none; -webkit-mask-image: none; }
.ticker-text .ticker-track { animation: none; width: auto; justify-content: center; }
.ticker-text .ticker-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 10px;
}
/* Saut de ligne forcé : services en ligne 1, interventions en ligne 2 */
.ticker-text .ticker-list li.ticker-break {
  flex-basis: 100%;
  height: 0;
  padding: 0;
  animation: none;
}
.ticker-text .ticker-list li.ticker-break::before { display: none; }
.ticker-text .ticker-list[aria-hidden="true"] { display: none; }
.ticker-text .ticker-list li { padding-inline: 11px; gap: 10px; }
.ticker-text .ticker-list li::before { flex-shrink: 0; }

/* Une couleur par ligne : services (bleu) puis interventions (rose) */
.ticker-text .ticker-list li { color: var(--navy); }
.ticker-text .ticker-list li::before { background: var(--pink-accent); }
.ticker-text .ticker-list li.row-2 { color: var(--pink-dark); }
.ticker-text .ticker-list li.row-2::before { background: var(--navy-soft); }

/* Petite animation : apparition en cascade, puis points qui pulsent */
@keyframes listItemIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.5); opacity: .6; }
}
/* Le texte pulse au même rythme que les points (2,4 s), après son apparition.
   Délai de 4,8 s = deux périodes complètes : texte et points restent synchronisés. */
@keyframes textPulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.06); opacity: .75; }
}
.ticker-text .ticker-list li {
  animation:
    listItemIn .5s ease-out both,
    textPulse 2.4s ease-in-out infinite;
  animation-delay:
    calc(var(--list-start, .35s) + var(--i, 0) * .08s),
    4.8s;
}
.ticker-text .ticker-list li::before { animation: dotPulse 2.4s ease-in-out infinite; }

/* Écrans moyens : les intitulés FR/EN longs peuvent passer à la ligne */
@media (max-width: 1100px) {
  .ticker-text .ticker-list li { white-space: normal; text-align: start; }
}

@media (max-width: 760px) {
  .ticker-text .ticker-list li { white-space: normal; font-size: .9rem; }
}

/* ─── Section shells ──────────────────────── */
.section { padding-block: 92px; }
.section-blue      { background: var(--blue); }
.section-pink      { background: var(--soft-grad); }
.section-pink-deep { background: var(--pink-deep); }
.section-blue-deep { background: var(--blue-deep); }
/* Alternance des sections : lavande (accueil, expertise, services, cabinet)
   / bleu poudré (à propos, opérations, préparation, contact) */
.section-split-bg  { background: var(--soft-grad); }

/* Filet de séparation, pour les sections voisines de même fond */
.section-divider { position: relative; }
.section-divider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--max-width), calc(100% - 48px));
  height: 1px;
  background: rgba(31, 61, 107, .18);
}

.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.section-sub { margin-top: 16px; font-size: 1.02rem; }
.lead { margin-top: 18px; font-size: 1.02rem; }
.split-body p + p { margin-top: 16px; }

/* ─── Section « À propos » ────────────────── */
#about .section-title {
  font-size: clamp(1.4rem, 2.7vw, 2.05rem);
  line-height: 1.3;
}
/* Nom sur sa propre ligne, spécialité en dessous */
.about-name,
.about-role { display: block; }
.about-role {
  margin-top: 2px;
  font-size: .8em;
  color: var(--pink-dark);
}
#about .split-body p {
  text-align: justify;
  hyphens: auto;
}
#about .lead { font-size: .97rem; }
#about .framed {
  max-width: 330px;
  margin-inline: auto;
}
/* Colonne image fixe : tout l'espace restant va au texte */
#about .split {
  grid-template-columns: 330px 1fr;
  gap: 48px;
}

/* ─── Split layouts ───────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}
.split-contact { align-items: start; }
.framed {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
/* Image au format portrait dans une section en deux colonnes */
.framed-portrait {
  aspect-ratio: 4 / 5;
  max-width: 300px;
  margin-inline: auto;
}
.split-media.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.panel {
  /* Blanc pour ressortir sur le fond lavande de la section */
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 44px;
}
/* Titre « Une expertise… » : réduit et réparti sur 2 lignes */
.panel .section-title {
  font-size: clamp(1.3rem, 2.5vw, 1.95rem);
  text-wrap: balance;
}
.panel p {
  text-align: justify;
  hyphens: auto;
}
.section-split-bg .split-media.mosaic .framed { aspect-ratio: 4 / 5; }

/* ─── Cards ───────────────────────────────── */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
/* 4 interventions : colonnes plus étroites pour tenir sur une ligne */
#operations .grid-3 { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }
#operations .card p {
  text-align: justify;
  hyphens: auto;
}

.card {
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.18rem; margin-bottom: 12px; }
.card p, .card li { font-size: .95rem; }
.card-blue { background: var(--blue-soft); }
.card-pink { background: var(--soft-grad); }
.card-soft { background: #EEF4F8; text-align: center; }
.card-soft h3 { color: var(--blue-dark); }
.card-icon { width: 56px; height: 56px; margin-bottom: 18px; }
.card-soft .card-icon { margin-inline: auto; }
.card-icon svg { width: 100%; height: 100%; }

/* ─── Checklist ───────────────────────────── */
.checklist { margin-top: 28px; display: grid; gap: 16px; }
.checklist li {
  position: relative;
  padding-inline-start: 38px;
  font-size: .97rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #E6F3EC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E8B57' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ─── Videos ──────────────────────────────── */
.video-card {
  background: var(--blue);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.video-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--pink-deep), var(--blue-soft));
  display: grid;
  place-items: center;
}
.video-thumb svg { width: 62px; height: 62px; }
.video-card h3 { font-size: 1.1rem; margin: 22px 24px 8px; }
.video-card p { margin: 0 24px 26px; font-size: .94rem; }

/* ─── Contact info ────────────────────────── */
.info-list {
  margin-top: 30px;
  display: grid;
  gap: 20px;
}
.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(31, 61, 107, .1);
}
.info-icon svg { width: 20px; height: 20px; }
.info-icon-fb { background: var(--white); }
.info-icon-fb .fb-icon { width: 26px; height: 26px; }
.info-body { display: grid; gap: 2px; }
.info-label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: .95rem;
}
.info-value { font-size: .97rem; }
.info-value a { transition: color .2s; }
.info-value a:hover { color: var(--pink-dark); text-decoration: underline; }

.map {
  margin-top: 30px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  background: var(--blue-soft);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link {
  display: inline-block;
  margin-top: 12px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1.5px solid var(--pink-accent);
  padding-bottom: 2px;
  transition: color .2s;
}
.map-link:hover { color: var(--pink-dark); }

/* ─── Form ────────────────────────────────── */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}
.form-title { font-size: 1.6rem; margin-bottom: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 7px; }
.contact-form label span {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
}
input, textarea {
  font: inherit;
  font-size: .95rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--navy);
  resize: vertical;
}
input::placeholder, textarea::placeholder { color: #A9A3B8; }
input:focus, textarea:focus { outline: none; border-color: var(--pink-accent); background: var(--white); }
input:user-invalid, textarea:user-invalid { border-color: #D9788A; }

.form-note { font-size: .9rem; min-height: 1.2em; }
.form-note.ok    { color: #2E8B57; }
.form-note.error { color: #C0455C; }

/* ─── Bouton de navigation verticale ──────── */
.scroll-btn {
  position: fixed;
  inset-inline-end: 24px;
  bottom: 24px;
  z-index: 90;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--pink-accent);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(31, 61, 107, .24);
  transition: transform .2s, background .2s;
}
.scroll-btn:hover { background: var(--pink-dark); transform: translateY(-3px); }
.scroll-btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.scroll-btn svg { width: 22px; height: 22px; transition: transform .3s; }
.scroll-btn.up svg { transform: rotate(180deg); }

/* ─── Le cabinet (carrousel photos) ───────── */
/* Reprend le carrousel de l'accueil, avec des photos en portrait (3:4) */
.cabinet-carousel {
  --stage-h: clamp(220px, 20vw, 270px);
  position: relative;
  padding-bottom: 10px;
}
.cabinet-carousel .carousel-stage { height: var(--stage-h); }
.cabinet-carousel .slide {
  width: auto;
  aspect-ratio: 3 / 4;
  object-position: center;
}
.cabinet-carousel .slide.is-prev { --x: -95%; }
.cabinet-carousel .slide.is-next { --x: 95%; }
[dir="rtl"] .cabinet-carousel .slide.is-prev { --x: 95%; }
[dir="rtl"] .cabinet-carousel .slide.is-next { --x: -95%; }
.cabinet-carousel .slide.is-active { cursor: zoom-in; pointer-events: auto; }
.cabinet-carousel .slide:focus-visible { outline: 3px solid var(--pink-accent); outline-offset: 3px; }
.cabinet-carousel .carousel-btn { top: calc(var(--stage-h) / 2); }

/* Carte de visite (paysage) dans le carrousel du cabinet :
   on écarte les photos voisines pour qu'elles ne la recouvrent pas */
.cabinet-carousel .slide-card { aspect-ratio: 934 / 514; }
.cabinet-carousel .slide-card.is-prev { --x: -60%; }
.cabinet-carousel .slide-card.is-next { --x: 60%; }
[dir="rtl"] .cabinet-carousel .slide-card.is-prev { --x: 60%; }
[dir="rtl"] .cabinet-carousel .slide-card.is-next { --x: -60%; }
.cabinet-carousel .carousel-stage:has(.slide-card.is-active) .slide.is-prev { --x: -150%; }
.cabinet-carousel .carousel-stage:has(.slide-card.is-active) .slide.is-next { --x: 150%; }
[dir="rtl"] .cabinet-carousel .carousel-stage:has(.slide-card.is-active) .slide.is-prev { --x: 150%; }
[dir="rtl"] .cabinet-carousel .carousel-stage:has(.slide-card.is-active) .slide.is-next { --x: -150%; }

@media (max-width: 980px) {
  .cabinet-carousel { --stage-h: clamp(220px, 65vw, 270px); }
  .cabinet-carousel .slide { width: auto; }
  .cabinet-carousel .slide.is-prev { --x: -110%; }
  .cabinet-carousel .slide.is-next { --x: 110%; }
  [dir="rtl"] .cabinet-carousel .slide.is-prev { --x: 110%; }
  [dir="rtl"] .cabinet-carousel .slide.is-next { --x: -110%; }
  .cabinet-carousel .carousel-btn { top: calc(var(--stage-h) / 2); }
  .cabinet-carousel .slide-card { aspect-ratio: auto; width: 100%; }
}

/* Visionneuse plein écran */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(15, 30, 55, .92);
  display: none;
  place-items: center;
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: transparent; }
.lightbox-img {
  max-width: min(90vw, 900px);
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
  object-fit: contain;
}
.lightbox-close,
.lightbox-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--navy);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.lightbox-close:hover,
.lightbox-btn:hover { background: var(--white); transform: scale(1.06); }
.lightbox-close svg,
.lightbox-btn svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.lightbox-close { top: 20px; inset-inline-end: 20px; }
.lightbox-btn { top: 50%; translate: 0 -50%; }
.lightbox-prev { inset-inline-start: 20px; }
.lightbox-next { inset-inline-end: 20px; }
[dir="rtl"] .lightbox-btn svg { transform: scaleX(-1); }

@media (max-width: 760px) {
  .lightbox-btn { top: auto; bottom: 24px; translate: none; }
}

/* ─── FAQ (accordéon) ─────────────────────── */
.faq-list {
  max-width: 860px;
  margin-inline: auto;
  display: grid;
  gap: 14px;
}
.faq-item {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
/* Pastille + / − */
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--pink-dark);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform .25s, background .25s, color .25s;
}
.faq-item[open] summary::after {
  content: "−";
  background: var(--pink-accent);
  color: var(--white);
}
.faq-item summary:hover { color: var(--pink-dark); }
.faq-item summary:focus-visible { outline: 3px solid var(--pink-accent); outline-offset: -3px; }
.faq-item p {
  padding: 0 22px 20px;
  line-height: 1.75;
}

/* ─── Footer ──────────────────────────────── */
.footer {
  background: var(--navy);
  color: #C7D5EB;
  padding-block: 40px;
  text-align: center;
  font-size: .9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 1fr);
  gap: 32px;
  text-align: start;
}
.footer-title {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.footer-col p { line-height: 1.7; }
.footer a { color: inherit; text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--pink-accent); }
.footer-fb { display: inline-flex; align-items: center; gap: 8px; }
.footer-fb svg { width: 20px; height: 20px; flex-shrink: 0; }
.footer-fb:hover .fb-icon { transform: scale(1.1); }
.footer-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--pink-accent) !important;
  font-weight: 500;
}

.footer-logo { display: inline-flex; align-items: center; gap: 12px; }
.footer-logo .logo-mark { height: 56px; }
.footer-logo-body { display: flex; flex-direction: column; gap: 4px; }
.footer-logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  font-size: 1.15rem;
  line-height: 1.3;
}
.footer-logo-text { font-size: .85rem; line-height: 1.4; }

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .footer-logo { justify-content: center; text-align: start; }
}

/* ═══ RTL adjustments (Arabic) ═══════════════ */
[dir="rtl"] .hero-title,
[dir="rtl"] .section-title { line-height: 1.45; }
[dir="rtl"] .footer-col p { line-height: 1.9; }
[dir="rtl"] .footer-title { font-size: 1.1rem; }
[dir="rtl"] .footer a[dir="ltr"] { unicode-bidi: isolate; }
[dir="rtl"] .card-soft ul,
[dir="rtl"] .checklist { text-align: start; }

/* ═══ Responsive ═════════════════════════════ */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  #about .split { grid-template-columns: 1fr; gap: 40px; }
  .split-media { order: -1; }
  .section-split-bg .split-media { order: 0; }
  /* One slide at a time; neighbours slide out of view */
  .carousel-stage { height: clamp(200px, 56vw, 300px); }
  .slide { width: min(520px, 100%); }
  .slide.is-prev, .slide.is-next { --s: .9; opacity: 0; pointer-events: none; }
  .slide.is-prev { --x: -110%; }
  .slide.is-next { --x: 110%; }
  [dir="rtl"] .slide.is-prev { --x: 110%; }
  [dir="rtl"] .slide.is-next { --x: -110%; }
  .carousel-btn { top: calc(48px + clamp(200px, 56vw, 300px) / 2); width: 38px; height: 38px; }
  .carousel-prev { inset-inline-start: 10px; }
  .carousel-next { inset-inline-end: 10px; }
}

/* Écrans moyens : liens plus serrés pour tenir sur une ligne */
@media (max-width: 1200px) {
  .nav-inner { gap: 18px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: .88rem; }
}

/* Menu hamburger (tablettes et mobiles) */
@media (max-width: 1060px) {
  .menu-toggle { display: flex; }
  .nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(31, 61, 107, .08);
    max-height: calc(100vh - 100%);
    max-height: calc(100dvh - 100%);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .nav.open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .2s, transform .2s;
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: 1180px;
    margin-inline: auto;
    padding: 8px 24px 16px;
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links a {
    display: block;
    padding: 14px 12px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    border-inline-start: 3px solid transparent;
  }
  .nav-links a:hover, .nav-links a.active {
    border-bottom-color: var(--border);
    border-inline-start-color: var(--pink-accent);
    background: var(--pink);
    color: var(--navy);
  }
}

@media (max-width: 860px) {
  .topbar-inner { justify-content: center; font-size: .74rem; gap: 6px 20px; }

  .logo-name { font-size: .95rem; }
  .logo-text { font-size: .72rem; max-width: 150px; }
}

@media (max-width: 620px) {
  /* L'adresse passe à la ligne au lieu de déborder de l'écran */
  .topbar-inner { padding-block: 8px; gap: 5px 16px; }
  .topbar-address { max-width: 100%; white-space: normal; text-align: center; justify-content: center; line-height: 1.4; }
  .topbar-address span { min-width: 0; overflow-wrap: anywhere; }
  .section { padding-block: 62px; }
  .scroll-btn { width: 44px; height: 44px; inset-inline-end: 16px; bottom: 16px; }
  .lang-btn { min-width: 30px; height: 26px; font-size: .74rem; }
  .hero { padding-top: 60px; }
  .hero-carousel { padding-block: 44px 24px; }
  .carousel-btn { top: calc(44px + clamp(200px, 56vw, 300px) / 2); }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }
  .panel { padding: 30px 24px; }
  .split-media.mosaic { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  /* Without motion, show the services as a static wrapped list */
  .ticker { mask-image: none; -webkit-mask-image: none; }
  .ticker-track { width: auto; justify-content: center; }
  .ticker-list { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .ticker-list[aria-hidden="true"] { display: none; }
}

/* ═══ Pages d'intervention (générées par tools/build-langs.js) ═══ */
.card-more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--pink-dark);
  border-bottom: 1.5px solid transparent;
  transition: border-color .2s;
}
.card-more:hover { border-bottom-color: var(--pink-dark); }
.card-soft .card-more { margin-inline: auto; }

/* Liste « Nos interventions » du pied de page : centrée */
.footer-procs {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(199, 213, 235, .2);
  text-align: center;
}
.footer-procs div { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.footer-procs a { font-size: .88rem; }

.proc-narrow { max-width: 880px; }
.proc-hero { padding-block: 64px 72px; }
.breadcrumb { font-size: .85rem; margin-bottom: 18px; color: var(--navy-soft); }
.breadcrumb a { font-weight: 600; color: var(--pink-dark); }
.breadcrumb a:hover { text-decoration: underline; }
.proc-title { font-size: clamp(1.6rem, 3.6vw, 2.5rem); text-wrap: balance; }
.proc-also { margin-top: 12px; font-size: .95rem; }
.proc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.proc-cards { display: grid; gap: 18px; }
.proc-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
}
.proc-card h2 { font-size: 1.25rem; margin-bottom: 10px; }
.proc-note { margin-top: 22px; font-size: .88rem; font-style: italic; }
.proc-subtitle { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin-bottom: 24px; text-align: center; }
.proc-cta {
  background: var(--soft-grad);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.proc-cta h2 { font-size: 1.5rem; margin-bottom: 10px; }
.proc-cta .proc-actions { justify-content: center; }
.proc-others-title { margin-top: 56px; }
.proc-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.proc-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--white);
  border-radius: 12px;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow);
  transition: transform .2s, color .2s;
}
.proc-link:hover { transform: translateY(-2px); color: var(--pink-dark); }
[dir="rtl"] .proc-link span { transform: scaleX(-1); }

/* Bouton « Retour à l'accueil » des pages d'intervention */
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: .9rem;
  color: var(--navy);
  transition: color .2s, transform .2s;
}
.back-home:hover { color: var(--pink-dark); transform: translateX(-3px); }
[dir="rtl"] .back-home:hover { transform: translateX(3px); }
.back-arrow { display: inline-block; }
[dir="rtl"] .back-arrow { transform: scaleX(-1); }
.back-home-wrap { margin-top: 40px; text-align: center; }
.back-home-btn { display: inline-flex; align-items: center; gap: 10px; }

/* Liste des actes de l'accueil : intitulés cliquables */
.ticker-text .ticker-list li a {
  color: inherit;
  border-bottom: 1.5px solid transparent;
  transition: border-color .2s, opacity .2s;
}
.ticker-text .ticker-list li a:hover,
.ticker-text .ticker-list li a:focus-visible {
  border-bottom-color: currentColor;
  outline: none;
}

/* Numéros du cabinet (fixe) et mobile, toujours affichés ensemble */
.topbar-phones a:hover { color: var(--white); }
.proc-phones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.proc-cta .proc-phones { justify-content: center; }
.phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  transition: background .2s, color .2s;
}
.phone-btn:hover { background: var(--navy); color: var(--white); }
.phone-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--pink-dark);
}
.phone-btn:hover .phone-label { color: var(--pink-accent); }
.topbar-phones { display: inline-flex; align-items: center; gap: 6px; }
.topbar-phones svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--pink-accent); }

/* Icônes e-mail et téléphone (barre du haut et pied de page) */
.topbar-mail { display: inline-flex; align-items: center; gap: 6px; }
.topbar-mail svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--pink-accent); }
.footer-icon-link { display: inline-flex; align-items: center; gap: 8px; }
.footer-icon-link svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--pink-accent); }
.topbar-time { display: inline-flex; align-items: center; gap: 6px; }
.topbar-time svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--pink-accent); }
