/* ==========================================================
   Dr Hind Ben Adada — ORL · "Ondes & Écoute"
   Palette : lavande #F4F1FA · violet #4B3580 · menthe #6FD3B8 · or #C9A24B
   ========================================================== */

:root {
  --lav: #F4F1FA;
  --lav-2: #EDE7F7;
  --violet: #4B3580;
  --violet-deep: #37255F;
  --violet-soft: #6B54A8;
  --mint: #6FD3B8;
  --mint-deep: #3BA98B;
  --mint-soft: #DCF3EB;
  --gold: #C9A24B;
  --ink: #241A3D;
  --muted: #6B6386;
  --white: #FFFFFF;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 18px 45px -18px rgba(75, 53, 128, .28);
  --shadow-sm: 0 8px 24px -10px rgba(75, 53, 128, .22);
  --font-head: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --mobile-bar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip; /* clip n'empêche pas position:sticky */
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 .6em;
  color: var(--violet-deep);
}
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: 1.12rem; font-weight: 600; }
h1 em, h2 em { font-style: normal; color: var(--mint-deep); }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; }

/* ---------- Demo ribbon ---------- */
.demo-ribbon {
  background: linear-gradient(90deg, var(--violet-deep), var(--violet), var(--violet-soft));
  color: #F3EDFF;
  text-align: center;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 8px 14px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 22px;
  border: none;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%);
  color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(75, 53, 128, .5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(75, 53, 128, .55); }
.btn-mint {
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint-deep) 100%);
  color: #0E3A2D;
  box-shadow: 0 10px 24px -8px rgba(59, 169, 139, .45);
}
.btn-mint:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(59, 169, 139, .5); }
.btn-ghost {
  background: rgba(75, 53, 128, .06);
  color: var(--violet);
  border: 1.5px solid rgba(75, 53, 128, .18);
}
.btn-ghost:hover { background: rgba(75, 53, 128, .12); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--violet);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: gap .25s ease, color .25s ease;
}
.link-arrow:hover { gap: 12px; color: var(--mint-deep); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 97; /* au-dessus de l'overlay du menu (94) */
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(75, 53, 128, .08);
  transition: box-shadow .3s ease;
}
.topbar.scrolled { box-shadow: 0 6px 24px -12px rgba(75, 53, 128, .25); }
.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-logo {
  width: 46px; height: 46px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 4px 14px -6px rgba(75, 53, 128, .3);
  padding: 3px;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--font-head); font-size: .98rem; color: var(--violet-deep); white-space: nowrap; }
.brand-text small { font-size: .74rem; color: var(--muted); letter-spacing: .03em; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  padding: 9px 11px;
  border-radius: 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background .2s ease, color .2s ease;
}
.nav a:hover { background: var(--lav-2); color: var(--violet); }

.topbar-actions { display: flex; gap: 10px; margin-left: 8px; }
.btn-top { padding: 9px 18px; min-height: 42px; font-size: .88rem; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 11px;
  background: rgba(75, 53, 128, .07);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin-left: auto;
  -webkit-tap-highlight-color: transparent;
}
.burger span {
  display: block;
  height: 2.5px;
  border-radius: 3px;
  background: var(--violet);
  transition: transform .3s ease, opacity .3s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(111, 211, 184, .35), transparent 60%),
    radial-gradient(800px 500px at -5% 110%, rgba(201, 162, 75, .18), transparent 55%),
    linear-gradient(160deg, var(--lav) 0%, #FBF9FE 55%, var(--lav) 100%);
  padding: 70px 0 110px;
}

.eq {
  position: absolute;
  top: 50%;
  width: 120px;
  height: 220px;
  opacity: .38;
  pointer-events: none;
}
.eq-left  { left: -14px; transform: translateY(-50%); }
.eq-right { right: -14px; transform: translateY(-50%) scaleX(-1); }

.eq-bar {
  fill: var(--violet);
  opacity: .8;
  transform-box: fill-box;
  transform-origin: bottom;
  animation: eqDance 1.6s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}
.eq .eq-bar:nth-child(odd) { fill: var(--mint); }

@keyframes eqDance {
  from { transform: scaleY(calc(var(--p, .6) * .35)); opacity: .55; }
  to   { transform: scaleY(var(--p, .6)); opacity: .95; }
}

.hero-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--violet);
  font-size: .82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.hero-kicker svg { color: var(--mint-deep); flex-shrink: 0; }

.hero-sub {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 28px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.hero-rating {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(201, 162, 75, .3);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: .92rem;
  color: var(--ink);
}
.hero-rating .stars { color: var(--gold); letter-spacing: 2px; font-size: 1rem; }
.hero-rating strong { color: var(--violet-deep); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
}

.rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.ring {
  position: absolute;
  width: 190px; height: 190px;
  border-radius: 50%;
  border: 2px solid var(--mint);
  opacity: 0;
  animation: ringPulse 4s ease-out infinite;
}
.ring-2 { animation-delay: 1.33s; border-color: var(--violet-soft); }
.ring-3 { animation-delay: 2.66s; border-color: var(--gold); }

@keyframes ringPulse {
  0%   { transform: scale(.6); opacity: 0; }
  15%  { opacity: .55; }
  100% { transform: scale(2.1); opacity: 0; }
}

.hero-logo-card {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: 32px;
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(75, 53, 128, .08);
  animation: floatY 5.5s ease-in-out infinite;
}
.hero-logo { width: 230px; height: auto; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.hero-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border-radius: 999px;
  padding: 9px 15px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--violet-deep);
  box-shadow: var(--shadow-sm);
  animation: floatY 6s ease-in-out infinite;
}
.hero-chip svg { color: var(--mint-deep); flex-shrink: 0; }
.chip-top    { top: 26px; right: 2%; }
.chip-bottom { bottom: 30px; left: 0; animation-delay: 1.4s; }
.chip-bottom svg { color: var(--gold); }

.hero-eq-bottom {
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 90px;
  opacity: .16;
  pointer-events: none;
}
.hero-eq-bottom svg { width: 100%; height: 100%; display: block; }
.eq-bar-b {
  fill: var(--violet);
  transform-box: fill-box;
  transform-origin: bottom;
  animation: eqDance 1.9s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}
.hero-eq-bottom .eq-bar-b:nth-child(3n) { fill: var(--mint-deep); }
.hero-eq-bottom .eq-bar-b:nth-child(4n) { fill: var(--gold); }

/* ---------- Sections communes ---------- */
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.02rem; }

.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mint-deep);
  background: var(--mint-soft);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 16px;
}
.kicker-light { color: var(--mint); background: rgba(111, 211, 184, .14); }

/* ---------- Services ---------- */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: linear-gradient(170deg, var(--white) 0%, var(--lav) 140%);
  border: 1px solid rgba(75, 53, 128, .1);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
  border-color: rgba(111, 211, 184, .6);
}
.service-icon {
  width: 58px; height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-soft) 100%);
  color: var(--mint);
  margin-bottom: 18px;
  transition: transform .3s ease;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.08); }
.service-card p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- À propos ---------- */
.about { background: var(--lav); }
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-visual {
  position: relative;
  display: grid;
  place-items: center;
  background: var(--white);
  border-radius: 32px;
  padding: 54px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.rings-small .ring { width: 150px; height: 150px; }
.about-logo { width: 100%; max-width: 290px; position: relative; z-index: 2; }

.about-role {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--mint-deep);
  margin-bottom: 18px;
}
.about-text p { color: #4A4166; }
.about-points { list-style: none; padding: 0; margin: 22px 0 28px; }
.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 12px;
  font-weight: 500;
  font-size: .96rem;
}
.about-points svg { color: var(--mint-deep); flex-shrink: 0; margin-top: 3px; }

/* ---------- Galerie marquee ---------- */
.gallery {
  background: var(--white);
  padding-bottom: 100px;
  overflow: hidden;
}
.marquee {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  gap: 22px;
  width: max-content;
  padding: 10px 0;
  animation: marqueeMove 28s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track,
.marquee:active .marquee-track { animation-play-state: paused; }

@keyframes marqueeMove {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 11px)); }
}

.marquee-item {
  margin: 0;
  width: clamp(240px, 30vw, 340px);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 4px solid var(--white);
  flex-shrink: 0;
  transition: transform .3s ease;
}
.marquee-item:hover { transform: scale(1.03); }
.marquee-item img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ---------- Rendez-vous ---------- */
.rdv {
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(111, 211, 184, .22), transparent 60%),
    radial-gradient(600px 500px at 0% 100%, rgba(201, 162, 75, .14), transparent 55%),
    linear-gradient(150deg, var(--violet-deep) 0%, var(--violet) 70%, var(--violet-soft) 100%);
  color: #EFEAFB;
}
.rdv h2, .rdv h3 { color: var(--white); }
.rdv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}
.rdv-info p { color: rgba(239, 234, 251, .85); font-size: 1.02rem; }
.rdv-info strong { color: var(--mint); }

.rdv-call { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin: 26px 0 30px; }
.rdv-wa-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--mint);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border-bottom: 1.5px dashed rgba(111, 211, 184, .5);
  padding-bottom: 3px;
  transition: color .25s ease;
}
.rdv-wa-link:hover { color: var(--white); }

.rdv-hours-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.rdv-hours-mini > div {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.rdv-hours-mini strong { display: block; font-family: var(--font-head); font-size: .85rem; color: var(--white); margin-bottom: 4px; }
.rdv-hours-mini span { font-size: .82rem; color: var(--mint); }

.rdv-form {
  background: var(--white);
  color: var(--ink);
  border-radius: 26px;
  padding: 32px 30px;
  box-shadow: 0 30px 60px -20px rgba(20, 10, 45, .5);
}
.rdv-form h3 { color: var(--violet-deep); font-size: 1.25rem; margin-bottom: 20px; }

.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--violet-deep);
  margin-bottom: 6px;
}
.field label small { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--lav);
  border: 1.5px solid rgba(75, 53, 128, .15);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 48px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 84px; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234B3580' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--mint-deep);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(111, 211, 184, .25);
}

.form-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .8rem;
  color: var(--muted);
  margin: 14px 0 0;
}
.form-note svg { flex-shrink: 0; margin-top: 3px; color: var(--mint-deep); }
.form-error {
  margin: 12px 0 0;
  padding: 11px 14px;
  background: #FDECEA;
  border: 1px solid #F5B7B1;
  color: #B03A2E;
  border-radius: 12px;
  font-size: .88rem;
  font-weight: 500;
}

/* ---------- Horaires & infos ---------- */
.infos { background: var(--lav); }
.infos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(75, 53, 128, .08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.info-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--mint-soft);
  color: var(--mint-deep);
  margin-bottom: 16px;
}
.info-icon svg { width: 25px; height: 25px; }

.hours-list { list-style: none; padding: 0; margin: 6px 0 0; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(75, 53, 128, .15);
  font-size: .94rem;
}
.hours-list li:last-child { border-bottom: none; }
.hours-list strong { color: var(--violet); font-family: var(--font-head); font-size: .88rem; white-space: nowrap; }
.hours-list .closed strong { color: #B03A2E; }

.info-card p { color: var(--muted); font-size: .95rem; }
.info-phone {
  font-family: var(--font-head);
  font-size: 1.4rem !important;
  font-weight: 700;
  color: var(--violet-deep) !important;
  margin-bottom: 16px !important;
}
.info-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Carte ---------- */
.map { background: var(--white); }
.map-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(75, 53, 128, .1);
}
.map-card iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}
.map-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 24px;
  background: var(--lav);
}
.map-foot p { margin: 0; font-weight: 500; font-size: .95rem; color: var(--violet-deep); }

/* ---------- Footer ---------- */
.footer {
  background: var(--violet-deep);
  color: #DCD3F2;
  padding: 54px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo {
  width: 52px; height: 52px;
  object-fit: contain;
  background: var(--white);
  border-radius: 14px;
  padding: 4px;
}
.footer-brand strong { display: block; font-family: var(--font-head); color: var(--white); font-size: 1.02rem; }
.footer-brand span { font-size: .84rem; opacity: .8; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: .92rem; }
.footer-contact a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--mint);
  text-decoration: none;
}
.footer-contact a:hover { text-decoration: underline; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a {
  color: #DCD3F2;
  text-decoration: none;
  font-size: .92rem;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  transition: color .2s ease;
}
.footer-nav a:hover { color: var(--mint); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 18px 20px calc(18px + var(--mobile-bar-h));
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: .8rem;
  opacity: .75;
  text-align: center;
}
.demo-note { color: var(--mint); }

/* ---------- Barre d'actions mobile ---------- */
.mobile-bar { display: none; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.services-grid .reveal:nth-child(2) { transition-delay: .08s; }
.services-grid .reveal:nth-child(3) { transition-delay: .16s; }
.services-grid .reveal:nth-child(5) { transition-delay: .08s; }
.services-grid .reveal:nth-child(6) { transition-delay: .16s; }
.infos-grid .reveal:nth-child(2) { transition-delay: .08s; }
.infos-grid .reveal:nth-child(3) { transition-delay: .16s; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 980px) {
  .topbar-actions .btn-ghost span { display: none; }
  .services-grid, .infos-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { min-height: 340px; }
  .rdv-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { max-width: 420px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .eq { opacity: .35; }
}

@media (max-width: 1100px) {
  /* Nav burger */
  .burger { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: 0;
    width: min(82vw, 330px);
    height: 100dvh;
    flex-direction: column;
    gap: 6px;
    padding: 96px 24px 40px;
    background: linear-gradient(170deg, var(--white) 0%, var(--lav) 100%);
    box-shadow: -18px 0 50px -20px rgba(55, 37, 95, .45);
    transform: translateX(105%);
    transition: transform .35s cubic-bezier(.2, .8, .3, 1);
    z-index: 95;
    margin-left: 0;
  }
  body.nav-open .nav { transform: translateX(0); }
  .nav a {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--violet-deep);
    border-bottom: 1px solid rgba(75, 53, 128, .1);
    border-radius: 0;
    padding: 14px 4px;
  }
  .nav a:hover { background: none; color: var(--mint-deep); }
  .burger { position: relative; z-index: 96; }
  body.nav-open .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.nav-open .burger span:nth-child(2) { opacity: 0; }
  body.nav-open .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  body.nav-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(36, 26, 61, .35);
    z-index: 94;
    backdrop-filter: blur(2px);
  }
}

@media (max-width: 760px) {
  :root { --mobile-bar-h: 76px; }
  .section { padding: 62px 0; }
  .topbar-actions { display: none; }

  .hero { padding: 48px 0 90px; }
  .eq { display: none; }
  .hero-sub { font-size: 1rem; }
  .hero-ctas .btn { width: 100%; }
  .hero-rating { font-size: .85rem; }
  .hero-visual { min-height: 300px; }
  .hero-logo { width: 190px; }
  .hero-chip { font-size: .74rem; padding: 8px 12px; }
  .chip-top { right: 0; top: 10px; }
  .chip-bottom { bottom: 12px; }

  .services-grid, .infos-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .rdv-form { padding: 26px 20px; }
  .rdv-hours-mini { grid-template-columns: 1fr; gap: 10px; }
  /* Évite que le contenu (bouton WhatsApp en nowrap) élargisse la piste de la grille */
  .rdv-grid > * { min-width: 0; }
  .rdv-form .btn { white-space: normal; text-align: center; }

  .map-card iframe { height: 300px; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  body { padding-bottom: var(--mobile-bar-h); }

  /* Barre d'actions collante */
  .mobile-bar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 98;
    gap: 10px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(75, 53, 128, .12);
    box-shadow: 0 -8px 30px -12px rgba(55, 37, 95, .3);
  }
  .mobile-bar a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    border-radius: 16px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .88rem;
    white-space: nowrap;
    gap: 6px;
    padding: 0 8px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform .2s ease;
  }
  .mobile-bar a:active { transform: scale(.96); }
  .mb-rdv {
    background: linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%);
    color: var(--white);
    box-shadow: 0 8px 20px -6px rgba(75, 53, 128, .5);
  }
  .mb-call {
    background: linear-gradient(135deg, var(--mint) 0%, var(--mint-deep) 100%);
    color: #0E3A2D;
    box-shadow: 0 8px 20px -6px rgba(59, 169, 139, .45);
  }

  /* Allègement des animations sur mobile */
  .hero-logo-card { animation-duration: 7s; }
  .ring { animation-duration: 5.5s; }
  .marquee-track { animation-duration: 34s; }
  .hero-eq-bottom { opacity: .1; }
}

@media (max-width: 400px) {
  .brand-text small { display: none; }
  .hero-logo { width: 165px; }
  .hero-logo-card { padding: 20px; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .marquee-track { animation: none; transform: none; }
  .marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   RTL — النسخة العربية (ar.html)
   قواعد محصورة بـ html[dir="rtl"] حتى لا تتأثر النسخة الفرنسية
   ========================================================== */
html[dir="rtl"] {
  --font-head: 'Tajawal', 'Sora', sans-serif;
  --font-body: 'Tajawal', 'Inter', sans-serif;
}

/* العربية لا تتحمل تباعد الحروف (يكسر اتصالها) */
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] .kicker,
html[dir="rtl"] .demo-ribbon,
html[dir="rtl"] .brand-text small,
html[dir="rtl"] .brand-text strong { letter-spacing: 0; }

/* عزل الأرقام والأوقات اللاتينية حتى لا تنقلب في RTL */
html[dir="rtl"] .ltr {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: 'Sora', 'Inter', sans-serif;
}

/* ترتيب الشريط العلوي في RTL: العلامة يميناً والقائمة والأزرار يساراً */
html[dir="rtl"] .nav { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .topbar-actions { margin-left: 0; margin-right: 8px; }
html[dir="rtl"] .burger { margin-left: 0; margin-right: auto; }

/* قلب سهم روابط "عرض على الخريطة" ليتجه مع القراءة العربية */
html[dir="rtl"] .link-arrow svg { transform: scaleX(-1); }

/* قائمة الهاتف المنزلقة: تدخل من اليسار في RTL */
@media (max-width: 1100px) {
  html[dir="rtl"] .nav {
    right: auto;
    left: 0;
    margin-right: 0;
    transform: translateX(-105%);
    box-shadow: 18px 0 50px -20px rgba(55, 37, 95, .45);
  }
  html[dir="rtl"] body.nav-open .nav { transform: translateX(0); }
}

/* سهم قائمة select ينتقل إلى اليسار في RTL */
html[dir="rtl"] .field select {
  background-position: left 14px center;
  padding-right: 14px;
  padding-left: 40px;
}

/* شريط الصور: صور بلا نص، نُبقي سلوكه مطابقاً للنسخة الفرنسية (مسار LTR) */
html[dir="rtl"] .marquee { direction: ltr; }

/* حقل الهاتف: الأرقام تُكتب وتُعرض من اليسار لليمين مع محاذاة لليمين */
html[dir="rtl"] .field input[type="tel"] {
  direction: ltr;
  text-align: right;
}
