/* ==========================================================================
   COMPOSANTS — Orthodontie des Pins
   ========================================================================== */

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,252,233,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  gap: 1.5rem;
}
.site-branding { display: flex; align-items: center; }
.custom-logo, .site-logo img { max-height: 56px; width: auto; display: block; }
.site-logo { display: inline-flex; align-items: center; }
.custom-logo-link { display: inline-flex; align-items: center; }
.site-logo--mobile { display: none; }
.site-logo--mobile img { max-height: 46px; }
.site-title {
  font-family: var(--font-heading);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--color-primary);
}

/* Bascule logo : sur petits écrans, le logo mobile remplace le principal (si défini) */
@media (max-width: 768px) {
  .site-branding.has-mobile-logo .site-logo--desktop { display: none; }
  .site-branding.has-mobile-logo .site-logo--mobile { display: inline-flex; }
}

/* Navigation desktop */
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav__list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav__list a {
  color: var(--color-text);
  font-weight: 600;
  font-size: var(--step--1);
  padding-block: 0.5rem;
  position: relative;
}
.main-nav__list a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}
.main-nav__list a:hover::after,
.main-nav__list .current-menu-item > a::after { width: 100%; }
.main-nav__cta { display: flex; align-items: center; gap: 1rem; }
.main-nav__phone { font-weight: 700; color: var(--color-primary); }

/* ---------- Sous-menus déroulants ---------- */
.main-nav__list li { position: relative; }
.main-nav__list .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 200;
}
.main-nav__list li:hover > .sub-menu,
.main-nav__list li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav__list .sub-menu a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: var(--step--1);
  white-space: nowrap;
}
.main-nav__list .sub-menu a::after { display: none; }
.main-nav__list .sub-menu a:hover { background: var(--color-bg-tint); color: var(--color-primary); }

/* Bouton flèche (caret) injecté par JS */
.submenu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: inherit;
  display: inline-flex;
  align-items: center;
}
.submenu-plus {
  position: relative;
  display: inline-block;
  width: 11px; height: 11px;
}
.submenu-plus::before,
.submenu-plus::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: opacity var(--transition), transform var(--transition);
}
/* barre horizontale (toujours visible) */
.submenu-plus::before {
  top: 50%; left: 0;
  width: 11px; height: 1.5px;
  transform: translateY(-50%);
}
/* barre verticale (disparaît à l'ouverture → devient un « − ») */
.submenu-plus::after {
  left: 50%; top: 0;
  width: 1.5px; height: 11px;
  transform: translateX(-50%);
}
.main-nav__list li:hover > .submenu-toggle .submenu-plus::after { opacity: 0; transform: translateX(-50%) scaleY(0); }

/* Bouton hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle__bar {
  width: 26px; height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.menu-toggle[aria-expanded="true"] { position: relative; z-index: 100001; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar { background: #fff; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(4) { transform: rotate(-45deg) translate(5px, -5px); }

/* Responsive nav */
@media (max-width: 1024px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    z-index: 100000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    padding: 5rem 1.5rem 2.5rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    gap: 1.5rem;
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav__list { flex-direction: column; gap: 0.25rem; align-items: center; width: 100%; }
  .main-nav__list a {
    display: block;
    padding: 0.6rem 0;
    border-bottom: none;
    color: #fff;
    text-align: center;
    font-size: var(--step-2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }
  .main-nav__list a:hover { color: var(--color-bg); }
  .main-nav__cta { flex-direction: column; align-items: center; margin-top: 1rem; }

  /* Sous-menus en accordéon */
  .main-nav__list .menu-item-has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  .main-nav__list .menu-item-has-children > a { flex: 0 1 auto; }
  .main-nav__list .submenu-toggle { padding: 0.75rem; color: #fff; }
  .main-nav__list .submenu-plus::before,
  .main-nav__list .submenu-plus::after { background: #fff; }
  .main-nav__list .sub-menu {
    flex-basis: 100%;
    width: 100%;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    list-style: none;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: transparent;
  }
  .main-nav__list .menu-item-has-children.is-expanded > .sub-menu { max-height: 600px; }
  .main-nav__list .sub-menu a {
    padding: 0.4rem 0;
    color: rgba(255,255,255,0.85);
    font-size: var(--step-0);
    font-weight: 400;
    text-transform: none;
    text-align: center;
  }
  .main-nav__list .menu-item-has-children.is-expanded > .submenu-toggle .submenu-plus::after { opacity: 0; transform: translateX(-50%) scaleY(0); }
  body.nav-open { overflow: hidden; }
  .nav-overlay {
    position: fixed; inset: 0;
    background: rgba(26,34,56,0.4);
    z-index: 99; opacity: 0; visibility: hidden;
    transition: var(--transition);
  }
  .nav-overlay.is-visible { opacity: 1; visibility: visible; }
}

/* ---------- Fil d'Ariane ---------- */
.breadcrumb {
  background: var(--color-bg-soft);
  font-size: var(--step--1);
  padding-block: 0.75rem;
  color: var(--color-text-light);
}
.breadcrumb a { color: var(--color-text-light); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-bg-tint) 0%, var(--color-bg-soft) 100%);
  padding-block: clamp(3rem, 7vw, 6rem);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--gap);
  align-items: center;
}
.hero h1 { margin-bottom: 1rem; }
.hero h1 span {
  display: block;
  font-size: var(--step-1);
  color: var(--color-primary);
  font-weight: 500;
  margin-top: 0.5rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-block: 1.5rem; }
.hero__meta { display: flex; gap: 2rem; flex-wrap: wrap; align-items: center; font-weight: 600; }
.hero__phone { color: var(--color-primary); font-size: var(--step-1); }
.hero__media img,
.hero__video { border-radius: var(--radius); box-shadow: var(--shadow-lg); object-fit: cover; width: 100%; height: auto; display: block; }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
}

/* ---------- Hero avec vidéo en fond (texte par-dessus) ---------- */
.hero--video { padding-top: clamp(1rem, 2vw, 1.75rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.hero--video .hero__inner {
  position: relative;
  display: block;
}
.hero--video .hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  order: 0;
}
.hero--video .hero__video {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
/* Voile crème dégradé pour garder le texte lisible côté gauche */
.hero--video .hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--color-bg) 0%, rgba(255,252,233,0.88) 45%, rgba(255,252,233,0.3) 70%, rgba(255,252,233,0) 100%);
}
.hero--video .hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  padding-left: clamp(1.5rem, 3vw, 2.75rem);
  padding-right: 2rem;
}
/* Le texte reste sur la gauche (≈2/3) ; les boutons s'étendent à droite, dans la zone vidéo */
.hero--video .hero__content h1,
.hero--video .hero__content .lead { max-width: 66%; }
.hero--video .hero__content .lead { font-size: 0.97rem; }
.hero--video .hero__actions { justify-content: flex-end; width: 100%; margin-block: 1rem 0; flex-wrap: nowrap; }
/* 2e bouton lisible sur la vidéo : léger fond blanc */
.hero--video .hero__actions .btn--outline {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(2px);
}
.hero--video .hero__actions .btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}
@media (max-width: 860px) {
  .hero--video .hero__content { width: 100%; min-height: 0; padding-left: 1.25rem; }
  .hero--video .hero__content h1,
  .hero--video .hero__content .lead { max-width: 100%; }
  .hero--video .hero__actions { justify-content: flex-start; flex-wrap: wrap; }
  .hero--video .hero__media::after {
    background: linear-gradient(180deg, rgba(255,252,233,0.15) 0%, rgba(255,252,233,0.85) 65%, var(--color-bg) 100%);
  }
}

/* ---------- Section head ---------- */
/* (défini dans style.css) */

/* ---------- Carte équipe ---------- */
.team-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--gap);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  align-items: stretch;
}
.team-card__photo { height: 100%; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.team-card__body { padding: 2rem; font-size: 0.97rem; }
.team-card__body p { margin-bottom: 1.1rem; }
.team-card__role { color: var(--color-accent-dark); font-weight: 600; }
.team-card__name { margin: 0; font-size: var(--step-2); }
.team-card__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.team-card__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 760px) {
  .team-card { grid-template-columns: 1fr; }
  .team-card__photo img { max-height: 460px; object-position: center 20%; }
}

/* ---------- Vision ---------- */
.vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}
.vision__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
@media (max-width: 760px) { .vision { grid-template-columns: 1fr; } }

/* ---------- Section approche avec vidéo en fond (texte à droite) ---------- */
.vision-section--video .vision {
  position: relative;
  display: block;
  min-height: 460px;
}
.vision-section--video .vision__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.vision-section--video .vision__video {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: block;
}
/* Voile crème dégradé depuis la droite (le texte est à droite) */
.vision-section--video .vision__media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(270deg, var(--color-bg) 0%, rgba(255,252,233,0.88) 45%, rgba(255,252,233,0.3) 70%, rgba(255,252,233,0) 100%);
}
.vision-section--video .vision__content {
  position: relative;
  z-index: 1;
  width: 60%;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.75rem) clamp(2rem, 4vw, 3rem) 0;
}
.vision-section--video .vision__content > .btn { align-self: flex-end; }
@media (max-width: 860px) {
  .vision-section--video .vision__content { width: 100%; padding: clamp(1.5rem, 4vw, 2.5rem) 1.25rem; }
  .vision-section--video .vision__media::after {
    background: linear-gradient(180deg, rgba(255,252,233,0.15) 0%, rgba(255,252,233,0.85) 65%, var(--color-bg) 100%);
  }
}

/* ---------- Grille de cartes ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  color: var(--color-text);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--color-text); }
.card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--color-bg-tint); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card__body h3 { font-size: var(--step-1); margin: 0; }
.card__more { margin-top: auto; font-weight: 600; color: var(--color-accent-dark); }

/* ---------- Dentapoche ---------- */
.dentapoche__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
}
.dentapoche__inner h2 { color: #fff; }
.dentapoche__inner .eyebrow { color: var(--color-accent); }
.dentapoche__list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0.6rem; }
.dentapoche__media { text-align: center; }
.dentapoche__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 230px; max-width: 40vw; height: auto; object-fit: cover; display: block; }
@media (max-width: 760px) { .dentapoche__inner { grid-template-columns: 1fr; } .dentapoche__media { order: -1; } .dentapoche__media img { width: 200px; max-width: 60%; margin: 0 auto; } }

/* ---------- Urgences ---------- */
.urgences__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gap);
  flex-wrap: wrap;
}
.urgences__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Accès ---------- */
.acces {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--gap);
  align-items: center;
}
.acces__info { display: flex; flex-direction: column; align-items: flex-start; }
.acces__info > .btn { align-self: flex-end; }
@media (max-width: 760px) { .acces__info > .btn { align-self: flex-start; } }
.acces__map iframe {
  width: 100%;
  min-height: 400px;
  border: 0;
  border-radius: var(--radius);
  display: block;
}
.acces__map-placeholder {
  background: #fff;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  color: var(--color-text-light);
}
@media (max-width: 760px) { .acces { grid-template-columns: 1fr; } }

/* ---------- Pages internes ---------- */
.page-hero {
  background: var(--color-bg);
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
}
.page-hero__inner {
  border-left: 4px solid var(--color-primary);
  padding-left: clamp(1rem, 2.5vw, 1.75rem);
}
.page-hero__crumb {
  font-size: var(--step--1);
  color: var(--color-text-light);
  margin-bottom: 0.4rem;
}
.page-hero__crumb a { color: var(--color-text-light); }
.page-hero__crumb a:hover { color: var(--color-primary); }
.page-hero h1 { margin: 0; }
.entry-content { padding-block: 3rem; }
/* Liens dans le corps de texte : bien visibles (couleur accent + soulignés) */
.entry-content a {
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.entry-content a:hover { color: var(--color-accent); }
.team-intro { text-align: center; padding-bottom: 1rem; }

/* ---------- Page Notre équipe : membres côte à côte ---------- */
.team-members { padding-top: clamp(1rem, 3vw, 2rem); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  max-width: 900px;
  margin-inline: auto;
}
.team-member {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.team-member__photo { aspect-ratio: 3 / 4; overflow: hidden; }
.team-member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.team-member__body { padding: 1.5rem 1.5rem 1.75rem; }
.team-member__body .btn { display: block; width: fit-content; margin-inline: auto; }
.team-member__name { margin: 0 0 0.25rem; font-size: var(--step-2); }
.team-member__role { color: var(--color-accent-dark); font-weight: 600; margin: 0 0 1rem; }
.team-member__diplomas {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-text-light);
}
.team-member__diplomas li { padding-left: 1.1rem; position: relative; }
.team-member__diplomas li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}
@media (max-width: 700px) {
  .team-grid { grid-template-columns: 1fr; max-width: 420px; }
}
.entry-content img, .page-featured { border-radius: var(--radius); margin-block: 1.5rem; }
.entry-content h2 { margin-top: 2rem; }
.post-meta { color: var(--color-text-light); }

/* ---------- Fiche traitement ---------- */
.treatment-hero { background: var(--color-bg-soft); padding-block: clamp(2.5rem, 6vw, 4rem); }
.treatment-hero__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center;
}
.treatment-hero__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 760px) { .treatment-hero__inner { grid-template-columns: 1fr; } }

/* ---------- Bande CTA ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 0.5rem; }

/* ---------- Pagination ---------- */
.pagination .page-numbers {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  margin: 0 0.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ---------- Accordéon "Nos traitements / techniques" (image qui change) ---------- */
.accordion {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.accordion__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.accordion__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.5s ease, transform 0.6s ease;
}
.accordion__img.is-active { opacity: 1; transform: scale(1); }

.accordion__head { margin-bottom: 1.5rem; text-align: center; }
.accordion__head .eyebrow { margin-bottom: 0.4rem; }
.accordion__head h2 { margin: 0; }
.accordion__list { list-style: none; margin: 0; padding: 0; }
.accordion__item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
  cursor: pointer;
}
.accordion__item:first-child { padding-top: 0; }
.accordion__title {
  margin: 0;
  font-size: var(--step-2);
  color: var(--color-text);
  transition: color var(--transition);
}
.accordion__item:hover .accordion__title,
.accordion__item.is-open .accordion__title { color: var(--color-primary); }

/* Panneau déroulant : description + lien */
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.35s ease, opacity 0.35s ease, margin 0.35s ease;
  margin-top: 0;
}
.accordion__panel > * { overflow: hidden; }
.accordion__item.is-open .accordion__panel {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 0.75rem;
}
.accordion__panel p { margin: 0 0 0.75rem; color: var(--color-text-light); }
.accordion__more {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--color-accent-dark);
}
.accordion__more span {
  display: inline-flex;
  width: 22px; height: 22px;
  align-items: center; justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  padding-bottom: 1px;
  flex-shrink: 0;
  font-family: sans-serif;
}

/* Sur mobile : image au-dessus, liste en dessous */
@media (max-width: 768px) {
  .accordion { grid-template-columns: 1fr; }
  .accordion__media { order: -1; max-height: 320px; }
  .accordion__title { font-size: var(--step-1); }
}

/* ---------- Barre latérale d'icônes (ordinateur uniquement) ---------- */
.side-rail {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  background: var(--color-primary);
  border-radius: var(--radius) 0 0 var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.side-rail__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  color: #fff;
  transition: background var(--transition);
}
.side-rail__item + .side-rail__item { border-top: 1px solid rgba(255,255,255,0.15); }
.side-rail__item:hover { background: var(--color-accent); color: #fff; }
.side-rail__label {
  position: absolute;
  right: 100%;
  margin-right: 0;
  white-space: nowrap;
  background: var(--color-primary);
  color: #fff;
  font-size: var(--step--1);
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: all var(--transition);
  pointer-events: none;
}
.side-rail__item:hover .side-rail__label { opacity: 1; visibility: visible; transform: translateX(-8px); }

/* Masquée sur tablette et mobile */
@media (max-width: 1024px) {
  .side-rail { display: none; }
}

/* ---------- Barre flottante des coordonnées (ordinateur uniquement) ---------- */
.contact-rail {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1.25rem;
  z-index: 80;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  max-width: none;
  white-space: nowrap;
  background: rgba(85, 92, 56, 0.92);
  color: #fff;
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  box-shadow: var(--shadow-lg);
  font-size: var(--step--1);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.contact-rail.is-hidden { opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(12px); }
.contact-rail__phone { color: #fff; font-weight: 700; font-size: var(--step-0); }
.contact-rail__addr { color: #fff; }
.contact-rail__addr:hover { color: var(--color-bg); }
@media (max-width: 1024px) {
  .contact-rail { display: none; }
}

/* ---------- Widget Doctolib intégré ---------- */
/* La section RDV suit directement le texte d'intro : on supprime le padding haut
   pour éviter le double espace (padding de .entry-content + padding de .section). */
.rdv-section { padding-top: 0; }
.rdv-embed {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.doctolib-frame {
  width: 100%;
  height: 525px;
  border: 0;
  display: block;
  border-radius: var(--radius);
}
@media (max-width: 768px) {
  .doctolib-frame { height: 480px; }
}
.rdv-fallback {
  text-align: center;
  font-size: var(--step--1);
  color: var(--color-text-light);
  margin-top: 1.25rem;
}

/* Icône RDV mise en avant (terracotta) dans la barre latérale */
.side-rail__item--accent { background: var(--color-accent); }
.side-rail__item--accent:hover { background: var(--color-accent-dark); }

/* ---------- Formulaire de contact (Contact Form 7) ---------- */
/* Encart sur fond olive, champs à trait fin, libellés clairs. */
.contact-form-wrap {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(1.75rem, 5vw, 3.5rem);
  box-shadow: var(--shadow);
}
.contact-form-wrap h2,
.contact-form-wrap h3 { color: #fff; }

/* Grille 2 colonnes */
.odp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
}
.odp-field { margin: 0; display: flex; flex-direction: column; }
.odp-field--message { grid-column: 1 / -1; }
.odp-submit { grid-column: 1 / -1; margin-top: 1.5rem; display: flex; justify-content: flex-end; }

/* Neutraliser les <br> et <p> injectés par CF7 */
.contact-form-wrap .wpcf7-form br { display: none; }
.contact-form-wrap .wpcf7-form p { margin: 0; }
.contact-form-wrap .wpcf7-form-control-wrap { display: block; margin-top: 0.35rem; }

/* Labels */
.odp-field label {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.75);
}

/* Champs texte/tel/email/textarea */
.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap input[type="email"],
.contact-form-wrap textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 0;
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--step-0);
  padding: 0.4rem 0;
  transition: border-color var(--transition);
}
/* Select avec chevron visible */
.contact-form-wrap select {
  width: 100%;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.8)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.25rem center;
  border: 0;
  border-bottom: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 0;
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--step-0);
  padding: 0.4rem 1.5rem 0.4rem 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color var(--transition);
}
.contact-form-wrap select option { color: var(--color-text); background: #fff; }
.contact-form-wrap textarea { resize: vertical; min-height: 48px; max-height: 120px; line-height: 1.5; }
.contact-form-wrap input:focus,
.contact-form-wrap select:focus,
.contact-form-wrap textarea:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
}
.contact-form-wrap input::placeholder,
.contact-form-wrap textarea::placeholder { color: rgba(255,255,255,0.45); }

/* Bouton Envoyer */
.contact-form-wrap .wpcf7-submit {
  background: var(--color-bg);
  color: var(--color-primary);
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: var(--step--1);
  padding: 1rem 2.5rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.contact-form-wrap .wpcf7-submit:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
}

/* Messages CF7 */
.contact-form-wrap .wpcf7-not-valid-tip { color: #ffe0d6; font-size: var(--step--1); margin-top: 0.25rem; }
.contact-form-wrap .wpcf7-response-output {
  border-color: rgba(255,255,255,0.5) !important;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0 0;
}

@media (max-width: 768px) {
  .odp-form-grid { grid-template-columns: 1fr; }
}

/* Disposition page contact : infos à gauche, formulaire à droite */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.contact-infos h2 { margin-top: 0; }
.contact-infos a:not(.btn) { color: var(--color-primary); }
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* ---------- Badges de téléchargement Dentapoche (App Store / Google Play) ---------- */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.5rem 0 1rem;
  justify-content: flex-end;
}
@media (max-width: 760px) { .store-badges { justify-content: flex-start; } }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.1rem;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--color-primary); }
.store-badge svg { flex-shrink: 0; }
.store-badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-weight: 700;
  font-size: var(--step-0);
}
.store-badge small {
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
}
.dentapoche .store-note { font-size: var(--step--1); opacity: 0.8; }
.dentapoche__link { color: #fff; font-weight: 600; text-decoration: underline; }
.dentapoche__link:hover { color: var(--color-accent); }

/* ---------- Écran de préchargement (preloader) ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: odp-fade-in 0.4s ease;
}
.preloader__inner img { max-height: 135px; width: auto; }
.preloader__title {
  font-family: var(--font-heading);
  font-size: var(--step-3);
  color: var(--color-primary);
  font-weight: 600;
}
@keyframes odp-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Accessibilité : pas d'animation si l'utilisateur le préfère */
@media (prefers-reduced-motion: reduce) {
  .preloader, .preloader__inner { transition: none; animation: none; }
}

/* Resserre l'espace entre le hero et la carte du praticien */
#equipe { padding-top: clamp(1rem, 2.5vw, 1.75rem); }
/* Resserre l'espace au-dessus des sections accordéon (photo) et Dentapoche */
.accordion-section { padding-top: clamp(1.5rem, 4vw, 3rem); }
.dentapoche { padding-top: clamp(1.5rem, 4vw, 3rem); }

/* En-tête de la carte praticien : titre/sous-titre à gauche, boutons à droite ; empilé sur mobile */
@media (max-width: 600px) {
  .team-card__head { flex-direction: column; }
}

/* ==========================================================================
   BLOCS WORDPRESS NATIFS (éditeur) — habillage aux couleurs du site
   ========================================================================== */

/* ---------- Bloc « Médias et texte » ---------- */
.wp-block-media-text {
  border-radius: var(--radius);
  overflow: hidden;
  margin-block: 2.5rem;
  align-items: center;
}
.wp-block-media-text .wp-block-media-text__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: block;
}
/* Un peu d'air entre l'image et le texte */
.wp-block-media-text .wp-block-media-text__content {
  padding-inline: clamp(1.5rem, 4vw, 3rem);
}
.wp-block-media-text h2,
.wp-block-media-text h3 { margin-top: 0; }

/* ---------- Images natives ---------- */
.entry-content .wp-block-image img { border-radius: var(--radius); }
.entry-content .wp-block-image figcaption {
  color: var(--color-text-light);
  font-size: var(--step--1);
  text-align: center;
}

/* ---------- Boutons natifs : reprennent le style du thème ---------- */
.entry-content .wp-block-button__link {
  background: var(--color-accent);
  color: #fff;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  font-weight: 600;
  transition: background var(--transition);
}
.entry-content .wp-block-button__link:hover { background: var(--color-accent-dark); }
.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ---------- Citations ---------- */
.entry-content .wp-block-quote {
  border-left: 4px solid var(--color-primary);
  padding-left: 1.25rem;
  font-style: italic;
  color: var(--color-text-light);
}

/* ---------- Colonne « collante » (page praticien) ---------- */
/* À appliquer sur la colonne photo via le champ « Classe(s) CSS » du bloc Colonne. */
.col-sticky { align-self: start; }
@media (min-width: 781px) {
  .col-sticky { position: sticky; top: 120px; }
}

/* ---------- Sous-titre « rôle » réutilisable (orange en gras) ---------- */
/* À appliquer via le champ « Classe(s) CSS » d'un bloc Paragraphe. */
.role-title {
  color: var(--color-accent-dark);
  font-weight: 600;
  margin: 0.25rem 0 1rem;
}

/* ==========================================================================
   PAGE CABINET — vidéo de visite + carrousel
   ========================================================================== */

/* ---------- Vidéo de visite virtuelle ---------- */
.cabinet-intro { padding-bottom: 0; }
.cabinet-video { padding-top: clamp(1rem, 2.5vw, 1.5rem); padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.cabinet-video__frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.cabinet-video__el { width: 100%; height: auto; display: block; }
/* Intégration Vimeo en ratio 16:9 */
.cabinet-video__frame--embed { position: relative; aspect-ratio: 16 / 9; }
.cabinet-video__frame--embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Carrousel (photo centrale + aperçu des voisines) ---------- */
.cabinet-gallery { padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; }
.carousel__track {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  transition: transform 0.5s ease;
  will-change: transform;
}
/* La diapo centrale fait ~64% de la largeur, les voisines dépassent sur les côtés */
.carousel__slide {
  flex: 0 0 64%;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  opacity: 0.55;
  transition: opacity 0.5s ease;
}
.carousel__slide.is-active { opacity: 1; }
.carousel__slide img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.carousel__rule {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: clamp(1.25rem, 3vw, 2rem) 0 0;
}
.carousel__controls {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}
.carousel__arrow {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary);
  padding: 0.5rem;
  transition: color var(--transition), transform var(--transition);
}
.carousel__arrow:hover { color: var(--color-accent); transform: scale(1.08); }
@media (max-width: 700px) {
  .carousel__slide { flex: 0 0 82%; }
}

/* ==========================================================================
   PAGE NOS TECHNOLOGIES — texte / image en alternance
   ========================================================================== */
.tech-intro { padding-bottom: 0; }
.tech-row { padding-block: clamp(1.5rem, 4vw, 2.75rem); }
.tech-row__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center; /* texte centré verticalement par rapport à la photo */
}
.tech-row__text h2 { margin-top: 0; }
.tech-row__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.tech-row__placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--color-bg-tint);
  border: 2px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: var(--step--1);
}
/* Alternance : image à droite par défaut, à gauche un bloc sur deux */
.tech-row:nth-child(even) .tech-row__text { order: 2; }
.tech-row:nth-child(even) .tech-row__media { order: 1; }
@media (max-width: 760px) {
  .tech-row__inner { grid-template-columns: 1fr; }
  .tech-row:nth-child(even) .tech-row__text,
  .tech-row:nth-child(even) .tech-row__media { order: 0; }
  .tech-row__media { order: -1; } /* image au-dessus du texte sur mobile */
}

/* ==========================================================================
   PAGE SPÉCIALITÉ — logos officiels
   ========================================================================== */
.specialite__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin: 2rem 0 2.5rem;
}
.specialite__logos img {
  max-height: 180px;
  width: auto;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

/* ==========================================================================
   PAGE QU'EST-CE QUE L'ORTHODONTIE — 3 colonnes par âge
   ========================================================================== */
.ortho-intro { padding-bottom: 1rem; }
.ortho-ages { padding-top: clamp(1rem, 3vw, 2rem); }
.ortho-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}
.ortho-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.ortho-card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.ortho-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ortho-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ortho-card__title { margin: 0 0 0.75rem; font-size: var(--step-2); }
.ortho-card__body p { font-size: 0.95rem; }
/* Bouton aligné en bas de chaque carte, centré */
.ortho-card__body .btn { margin-top: auto; align-self: center; }
@media (max-width: 860px) {
  .ortho-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
}

/* ==========================================================================
   PAGE ÉTAPES DE TRAITEMENT — frise verticale
   ========================================================================== */
.etapes-intro { padding-bottom: 1rem; }
.etapes { padding-top: clamp(1rem, 3vw, 2rem); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
  padding-bottom: clamp(2rem, 5vw, 3rem);
}
/* Trait vertical reliant les pastilles */
.timeline__item::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}
.timeline__item.is-last::before { display: none; }
.timeline__marker {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--step-1);
  font-family: var(--font-heading, inherit);
  z-index: 1;
}
.timeline__title { margin: 0.25rem 0 0.75rem; }
.timeline__body { font-size: 0.97rem; display: grid; grid-template-columns: 1fr 260px; gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
.timeline__body p { margin: 0; }
/* Photo discrète à droite du texte */
.timeline__media { max-width: 260px; }
.timeline__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
/* Quand il n'y a pas de photo, le texte occupe toute la largeur */
.timeline__body:not(:has(.timeline__media)) { grid-template-columns: 1fr; }
@media (max-width: 600px) {
  .timeline__item { grid-template-columns: 40px 1fr; gap: 1rem; }
  .timeline__item::before { left: 19px; }
  .timeline__marker { width: 40px; height: 40px; }
  .timeline__body { grid-template-columns: 1fr; }
  .timeline__media { max-width: 100%; }
}

/* ==========================================================================
   PAGES ORTHODONTIE PAR ÂGE (enfant / ado / adulte)
   ========================================================================== */
/* Alternance explicite des blocs texte/image (classe posée en PHP) */
.tech-row--alt .tech-row__text { order: 2; }
.tech-row--alt .tech-row__media { order: 1; }
@media (max-width: 760px) {
  .tech-row--alt .tech-row__text,
  .tech-row--alt .tech-row__media { order: 0; }
}

/* Encadrés « parallaxe » (image de fond fixe, texte au-dessus) */
.parallax-box {
  position: relative;
  margin-block: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1.75rem, 5vw, 3rem) 1.5rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
}
.parallax-box__inner { max-width: 720px; margin-inline: auto; }
.parallax-box__eyebrow {
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-bg);
  margin: 0 0 0.75rem;
  opacity: 0.9;
}
.parallax-box__text {
  font-family: var(--font-heading, Georgia, serif);
  font-size: var(--step-0);
  line-height: 1.6;
  color: #fff;
  margin: 0;
}

/* Bloc « Voir aussi » */
.voir-aussi { padding-block: clamp(2rem, 5vw, 3rem); }
.voir-aussi__title {
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin: 0 0 1rem;
}
.voir-aussi__links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.voir-aussi__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.voir-aussi__link:hover { background: var(--color-bg-tint); transform: translateY(-2px); color: var(--color-primary); }
.voir-aussi__arrow { color: var(--color-accent-dark); font-size: 1.2em; }
@media (max-width: 600px) {
  .voir-aussi__links { grid-template-columns: 1fr; }
}

/* ── Urgences ── */
.urgence-item {
  border-bottom: 1px solid var(--color-border);
}
.urgence-item:last-of-type { border-bottom: none; }
.urgence-item__inner {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding-block: clamp(1.25rem, 3vw, 1.75rem);
}
.urgence-item__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 90px;
  flex-shrink: 0;
}
.urgence-item__media img {
  width: 110px;
  height: 90px;
  object-fit: contain;
  object-position: center;
}
.urgence-item__placeholder {
  width: 110px;
  height: 110px;
  background: var(--color-bg-tint);
  border-radius: 50%;
}
.urgence-item__text h2 {
  font-size: var(--step-1);
  color: var(--color-primary-dark);
  margin: 0 0 0.5rem;
}
.urgence-item__text p { margin: 0; }
@media (max-width: 600px) {
  .urgence-item__inner { grid-template-columns: 1fr; }
  .urgence-item__media { justify-content: flex-start; }
}

/* ── Deux colonnes (avantages / inconvénients) ── */
.twocol__heading { margin-bottom: 1.5rem; }
.twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.twocol__col-title {
  font-family: var(--font-heading);
  font-size: var(--step-0);
  color: var(--color-primary-dark);
  margin: 0 0 0.75rem;
}
.twocol__col ul {
  padding-left: 1.2em;
  margin: 0;
}
.twocol__col ul li { margin-bottom: 0.5rem; }
@media (max-width: 640px) {
  .twocol { grid-template-columns: 1fr; }
}

/* ── Accès (page contact) ── */
.acces-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.acces-left {
  display: flex;
  flex-direction: column;
}
.acces-map iframe {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
}
.acces-zone-img {
  margin-top: 1.25rem;
  flex: 1;
  position: relative;
}
.acces-zone-img img {
  width: 100%;
  border-radius: 8px;
  display: block;
}
.acces-zone-img__cta {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
}
.acces-zone-img__cta .btn--primary,
.acces-zone-img__cta .btn--primary:visited,
.acces-zone-img__cta .btn--primary:hover {
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.acces-infos {
  display: flex;
  flex-direction: column;
}
.acces-infos h3 {
  font-size: var(--step-0);
  color: var(--color-primary-dark);
  margin: 1.25rem 0 0.4rem;
}
.acces-infos h3:first-child { margin-top: 0; }

/* Encadré adresse/horaires */
.acces-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.acces-left--has-zone .acces-infos { justify-content: space-between; }
.acces-left--has-zone ~ .acces-infos .acces-card { margin-top: auto; }
.acces-card__item { display: flex; flex-direction: column; gap: 0.2rem; }
.acces-card__label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}
.acces-card__value {
  font-size: var(--step-0);
  color: var(--color-text);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .acces-layout { grid-template-columns: 1fr; }
  .acces-map iframe { height: 260px; }
  .acces-card { margin-top: 1.5rem; }
}


/* ── Notice page RDV ── */
.rdv-notice {
  background: var(--color-bg-tint);
  border-left: 4px solid var(--color-accent);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: var(--step-0);
}
.rdv-notice p { margin: 0; }

/* ── Page 404 ── */
.notfound {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.notfound__inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.notfound__tooth {
  width: 100%;
  max-width: 200px;
  filter: drop-shadow(0 8px 24px rgba(85,92,56,0.15));
  animation: notfound-wobble 3s ease-in-out infinite;
}
@keyframes notfound-wobble {
  0%, 100% { transform: rotate(-4deg); }
  50%       { transform: rotate(4deg); }
}
.notfound__code {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--color-bg-tint);
  line-height: 1;
  margin: 0 0 0.25rem;
  -webkit-text-stroke: 2px var(--color-primary);
}
.notfound__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--color-primary-dark);
  margin: 0 0 1rem;
}
.notfound__text {
  color: var(--color-text-light);
  font-size: var(--step-0);
  max-width: 480px;
  margin: 0 0 2rem;
  line-height: 1.7;
}
.notfound__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .notfound__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .notfound__tooth { max-width: 140px; margin: 0 auto; }
  .notfound__actions { justify-content: center; }
}

/* ==========================================================================
   BANDEAU D'INFORMATIONS (haut de page, disparaît au scroll)
   ========================================================================== */
.info-bar {
  display: none; /* masqué sur desktop */
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.88);
  font-size: 0.72rem;
  text-align: center;
  padding: 0.5rem 1rem;
  line-height: 1.65;
}
.info-bar a { color: #fff; text-decoration: none; }
.info-bar a:hover { text-decoration: underline; }
.info-bar__inner { max-width: 1200px; margin-inline: auto; }
.info-bar__sep { opacity: 0.45; margin-inline: 0.15rem; }
@media (max-width: 860px) {
  .info-bar { display: block; }
}

/* ==========================================================================
   BOUTON FLOTTANT RDV (page d'accueil, mobile uniquement)
   ========================================================================== */
.floating-rdv {
  display: none; /* desktop : masqué */
}
@media (max-width: 860px) {
  .floating-rdv {
    display: block;
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 800;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .floating-rdv.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(12px);
  }
  .floating-rdv__btn {
    background: var(--color-accent) !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 0.85rem 2rem !important;
    font-size: var(--step-0) !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 18px rgba(191,107,72,0.45) !important;
    white-space: nowrap;
  }
  .floating-rdv__btn:hover {
    background: var(--color-accent-dark) !important;
    transform: translateY(-2px);
  }
}

/* ==========================================================================
   MOBILE : HERO VIDEO — voile uniforme (lisibilité texte)
   ========================================================================== */
@media (max-width: 860px) {
  .hero--video .hero__media::after {
    background: rgba(255,252,233,0.88) !important;
  }
  /* Masquer le bouton RDV dans le hero sur mobile (remplacé par le bouton flottant) */
  .hero--video .hero__actions .btn--primary {
    display: none;
  }
}

/* ==========================================================================
   MOBILE : NOTRE APPROCHE (vision vidéo) — voile uniforme
   ========================================================================== */
@media (max-width: 860px) {
  .vision-section--video .vision__media::after {
    background: rgba(255,252,233,0.88) !important;
  }
}

/* ==========================================================================
   MOBILE : DR ROLLAND — petite photo encadrée en haut à droite
   ========================================================================== */
@media (max-width: 760px) {
  .team-card {
    position: relative;
    grid-template-columns: 1fr;
    overflow: hidden;
    align-items: start;
  }
  .team-card__photo {
    position: absolute;
    top: 1.75rem;
    right: 1.75rem;
    width: 130px;
    height: 190px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: none;
    z-index: 2;
  }
  .team-card__photo img {
    max-height: none;
    width: 130px;
    height: 190px;
    object-fit: cover;
    object-position: center 15%;
    display: block;
  }
  .team-card__body {
    padding: 1.75rem;
  }
  /* Nom+rôle empilés au-dessus des boutons, place pour la photo à droite */
  .team-card__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-right: calc(130px + 1.25rem);
  }
  /* 1er paragraphe bio : aussi dégagé car photo peut encore être là */
  .team-card__body > p:first-of-type {
    padding-right: calc(130px + 1.25rem);
  }
  .team-card__body > p { padding-right: 0; }
  .team-card__actions { flex-direction: row; flex-wrap: wrap; }
}

/* ==========================================================================
   MOBILE : DENTAPOCHE — badges centrés
   ========================================================================== */
@media (max-width: 760px) {
  .store-badges { justify-content: center; }
}

/* ==========================================================================
   MOBILE : SECTION "NOUS TROUVER" — masquer bouton RDV
   ========================================================================== */
@media (max-width: 860px) {
  .acces__info > .btn--primary { display: none; }
}

/* ==========================================================================
   MOBILE : PRELOADER — taille divisée par 2
   ========================================================================== */
@media (max-width: 860px) {
  .preloader__inner img { max-height: 68px; }
  .preloader__title { font-size: var(--step-1); }
}

/* ==========================================================================
   MOBILE : CAROUSEL ACCORDÉON (Traitements / Appareils)
   ========================================================================== */
/* Desktop : cacher les éléments mobile */
.acc-mobile-only { display: none; }

/* Mobile : carousel scroll snap */
@media (max-width: 768px) {
  /* Masquer l'accordéon desktop */
  .accordion { display: none; }
  /* Afficher les éléments mobile */
  .acc-mobile-only { display: block; }
  .acc-section-head { text-align: center; margin-bottom: 1.25rem; }
  .acc-section-head .eyebrow { margin-bottom: 0.4rem; }
  .acc-section-head h2 { margin: 0; }

  /* Le carousel */
  .acc-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0.25rem 1.25rem 1.25rem;
    margin: 0 -1.25rem;
    scrollbar-width: none;
    list-style: none;
  }
  .acc-carousel::-webkit-scrollbar { display: none; }

  /* Carte individuelle */
  .acc-card {
    flex: 0 0 78%;
    scroll-snap-align: center;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    color: var(--color-text);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
  }
  .acc-card:active { transform: scale(0.98); }
  .acc-card__img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-bg-tint);
  }
  .acc-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .acc-card__body {
    padding: 1.1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
  }
  .acc-card__body h3 {
    margin: 0;
    font-size: var(--step-1);
    color: var(--color-primary);
  }
  .acc-card__body p {
    margin: 0;
    font-size: var(--step--1);
    color: var(--color-text-light);
    line-height: 1.5;
  }
  .acc-card .accordion__more {
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: var(--step--1);
  }
}

/* ==========================================================================
   MOBILE : TECHNOLOGIES — image bandeau pleine largeur
   ========================================================================== */
@media (max-width: 760px) {
  .tech-list .tech-row__inner {
    display: flex;
    flex-direction: column;
  }
  .tech-list .tech-row__media {
    order: -1;
    width: 100%;
    max-height: 170px;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    float: none;
  }
  .tech-list .tech-row__media img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    aspect-ratio: unset;
    border-radius: var(--radius);
    box-shadow: none;
  }
  .tech-list .tech-row__placeholder {
    width: 100%;
    height: 120px;
    aspect-ratio: unset;
  }
  .tech-list .tech-row__text h2 {
    font-size: var(--step-1);
  }
}

/* ==========================================================================
   MOBILE : ÉTAPES DE TRAITEMENT — pas d'images
   ========================================================================== */
@media (max-width: 760px) {
  .timeline__body {
    display: block !important;
    grid-template-columns: unset !important;
  }
  .timeline__media { display: none; }
}

/* ==========================================================================
   MOBILE : IMAGES EN BANDEAU 160PX — toutes pages avec .page-content
   (enfant, ado, adulte, interception, multi-attaches, aligneurs, urgences…)
   Pour choisir la zone visible de chaque image → overrides par body class ci-dessous
   ========================================================================== */
@media (max-width: 760px) {
  .page-content .tech-row__inner { display: block; }
  .page-content .tech-row__media {
    display: block;
    float: none;
    width: 100%;
    max-height: 160px;
    overflow: hidden;
    border-radius: var(--radius);
    margin: 1rem 0 0;
  }
  .page-content .tech-row__media img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center 30%; /* défaut : légèrement au-dessus du centre */
    aspect-ratio: unset;
    border-radius: var(--radius);
    box-shadow: none;
  }
  .page-content .tech-row__placeholder { width: 100%; height: 100px; aspect-ratio: unset; }
  .page-content .tech-row__text h2 { font-size: var(--step-1); }

  /* ---- Overrides object-position par page ---- */
  /* Aligneurs : montrer le haut de la photo */
  .page-template-template-aligneurs .page-content .tech-row__media img {
    object-position: center top;
  }
  /* Interception, multi-attaches, adulte, enfant, ado → dis-moi top/center/bottom */
  /* Exemples prêts à activer :
  .page-template-template-interception    .page-content .tech-row__media img { object-position: center top; }
  .page-template-template-multiattaches   .page-content .tech-row__media img { object-position: center 40%; }
  .page-template-template-urgences        .page-content .tech-row__media img { object-position: center bottom; }
  .page-template-template-orthodontie-enfant    .page-content .tech-row__media img { object-position: center 20%; }
  .page-template-template-orthodontie-adolescent .page-content .tech-row__media img { object-position: center 20%; }
  .page-template-template-orthodontie-adulte    .page-content .tech-row__media img { object-position: center 20%; }
  */
}
@media (max-width: 768px) {
  /* Sur la page technologies, masquer la tech-list desktop */
  .tech-list { display: none; }
  /* Le carousel tech hérite du style acc-carousel */
  .tech-carousel .acc-card__body p {
    font-size: 0.78rem;
    /* limiter la hauteur du texte long */
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .tech-carousel .acc-card {
    flex: 0 0 82%;
  }
}

/* ==========================================================================
   MOBILE : MASQUER TOUS LES BOUTONS "PRENDRE RDV" SAUF FOOTER + FLOTTANT
   ========================================================================== */
@media (max-width: 860px) {
  /* Masquer tous les boutons primaires dans le contenu */
  main .btn--primary,
  main .btn--primary:visited {
    display: none !important;
  }
  /* Exceptions : footer et bouton flottant */
  .site-footer .btn--primary,
  .site-footer .btn--primary:visited,
  .floating-rdv .btn--primary,
  .floating-rdv .btn--primary:visited,
  .floating-rdv__btn {
    display: inline-flex !important;
  }
}

/* ==========================================================================
   MOBILE : MASQUER LES BOUTONS TÉLÉPHONE (numéro déjà dans le bandeau info)
   Exception : encadré CTA en bas de page (cta-band)
   ========================================================================== */
@media (max-width: 860px) {
  main a[href^="tel:"].btn { display: none !important; }
  /* Remettre le téléphone dans le cta-band (encadré phrase d'accroche) */
  .cta-band a[href^="tel:"].btn { display: inline-flex !important; }
}

/* ==========================================================================
   MOBILE : SUPPRIMER L'ESPACE VIDE LAISSÉ PAR LES BOUTONS MASQUÉS
   (hero__actions dans treatment-hero — RDV + téléphone cachés sur mobile)
   ========================================================================== */
@media (max-width: 860px) {
  .treatment-hero .hero__actions { display: none; }
}

/* ==========================================================================
   MOBILE : PHOTO DR ROLLAND — réduite pour que tout le texte passe dessous
   ========================================================================== */
@media (max-width: 760px) {
  .team-card__photo {
    width: 88px !important;
    height: 108px !important;
  }
  .team-card__photo img {
    width: 88px !important;
    height: 108px !important;
  }
  /* Adapter le padding-right du head à la nouvelle taille */
  .team-card__head {
    padding-right: calc(88px + 1.25rem) !important;
  }
  /* 1er paragraphe : pleine largeur (photo terminée avant lui) */
  .team-card__body > p:first-of-type {
    padding-right: 0 !important;
  }
}

/* ==========================================================================
   MOBILE : BOUTON "DÉCOUVRIR NOS TRAITEMENTS" — aligné à droite
   ========================================================================== */
@media (max-width: 860px) {
  .hero--video .hero__actions .btn--outline[href="#traitements"] {
    margin-left: auto;
  }
}

/* ==========================================================================
   MOBILE : VISION SECTION — supprimer min-height qui laisse espace vide
   (sous le bouton "Découvrir le cabinet")
   ========================================================================== */
@media (max-width: 860px) {
  .vision-section--video .vision { min-height: 0; }
}

/* ==========================================================================
   MOBILE : OBJECT-POSITION PAR PAGE (bandeau images 160px)
   ========================================================================== */
@media (max-width: 760px) {
  /* Orthodontie enfant : 65% du haut */
  .page-template-template-orthodontie-enfant .page-content .tech-row__media img {
    object-position: center 65%;
  }
  /* Orthodontie adolescent : 65% du haut */
  .page-template-template-orthodontie-adolescent .page-content .tech-row__media img {
    object-position: center 65%;
  }
  /* Orthodontie adulte : 65% uniquement pour la dernière image (chirurgie) */
  .page-template-template-orthodontie-adulte .page-content .tech-row--last .tech-row__media img {
    object-position: center 65%;
  }
}

/* ==========================================================================
   MOBILE : ADULTE — supprimer espacement au-dessus de "Pourquoi consulter"
   (section de type 'section', pas de class tech-row)
   ========================================================================== */
@media (max-width: 860px) {
  .page-template-template-orthodontie-adulte .page-content > section:not([class*="tech-row"]):not(.parallax-box):not(.voir-aussi):not(.cta-band) {
    padding-top: 0.25rem;
  }
}

/* ==========================================================================
   MOBILE : ORTHODONTIE ENFANT — images 1 et 3 à 50% (les autres à 65%)
   ========================================================================== */
@media (max-width: 760px) {
  .page-template-template-orthodontie-enfant .page-content > section:nth-child(2) .tech-row__media img {
    object-position: center 50%;
  }
  .page-template-template-orthodontie-enfant .page-content > section:nth-child(6) .tech-row__media img {
    object-position: center 25%;
  }
}
