/* ===================================
   MUGEF-CI Website Styles
   =================================== */

/* ===================================
   1. CSS Variables & Base Styles
   =================================== */
   /* ======== NOUVELLE POLICE GLOBALE POUR TOUT LE SITE ======== */
html, body{
  font-family: "Poppins", "Roboto", Arial, sans-serif;
}

/* Correctifs responsive : hero, rendez-vous et spécialités */
.hero-carousel .carousel-container {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 16 / 9;
}

.hero-carousel .carousel-slide,
.hero-carousel .slide-image { min-height: 0; }

.hero-carousel .slide-image img {
  height: 100% !important;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.smf-rdv-section-full { overflow: hidden; }
.smf-rdv-widget-full,
.alaxione-widget-full { width: 100%; }

.alaxione-widget-full {
  display: block;
  height: clamp(850px, 105vh, 1120px);
  min-height: 850px;
  border: 0;
  background: #fff;
}

@media (max-width: 980px) {
  .smf-specialites-grid { gap: 16px; }
  .smf-specialites-sidebar { padding: 14px; overflow: hidden; }

  .smf-specialites-menu {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .smf-specialites-menu li {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .smf-link {
    width: auto;
    min-width: max-content;
    min-height: 46px;
    padding: 7px 12px 7px 8px;
  }

  .smf-link.active::after { display: none; }
  .smf-specialites-content { scroll-margin-top: 92px; }
}

@media (max-width: 640px) {
  .hero-carousel .carousel-container {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .hero-carousel .carousel-control {
    top: 50%;
    bottom: auto;
    width: 38px;
    height: 38px;
    transform: translateY(-50%);
  }

  .hero-carousel .carousel-control:hover,
  .hero-carousel .carousel-control:focus-visible {
    transform: translateY(-50%) scale(1.04);
  }

  .hero-carousel .carousel-control.prev { left: 10px; }
  .hero-carousel .carousel-control.next { right: 10px; }
  .hero-carousel .carousel-indicators { bottom: 12px; }
  .indicator { width: 22px; height: 4px; }
  .indicator.active { width: 32px; }

  .alaxione-widget-full { height: 1200px; min-height: 1200px; }
  .smf-specialites-layout { padding-bottom: 44px; }
  .smf-panel-head { padding: 18px 20px; }
  .smf-panel-media { padding: 14px 14px 0; }

  .smf-panel-media img {
    height: auto;
    min-height: 0;
    max-height: 320px;
    object-fit: cover;
  }

  .smf-panel-body { padding: 18px; overflow-wrap: anywhere; }
}

/* =========================================================
   PREMIUM UI SYSTEM — couche finale commune et non destructive
   ========================================================= */
:root {
  --premium-navy: #082f49;
  --premium-blue: #0369a1;
  --premium-sky: #0ea5e9;
  --premium-teal: #0f766e;
  --premium-ink: #0f2744;
  --premium-muted: #5f7187;
  --premium-canvas: #f5f8fc;
  --premium-card: #ffffff;
  --premium-line: rgba(15, 39, 68, .1);
  --premium-shadow: 0 18px 50px rgba(15, 39, 68, .1);
  --premium-shadow-hover: 0 24px 64px rgba(3, 105, 161, .16);
  --premium-radius: 22px;
  --premium-container: 1200px;
}

html {
  overflow-x: hidden;
  scroll-padding-top: 104px;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--premium-canvas);
  color: var(--premium-ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-is-open { overflow: hidden; }

img,
video,
iframe,
object {
  max-width: 100%;
}

img {
  height: auto;
  image-rendering: auto;
}

.container,
.container-historique,
.smf-container {
  width: min(var(--premium-container), calc(100% - 40px));
  margin-inline: auto;
}

section { position: relative; }

section p,
.smf-panel-body p,
.smf-panel-body li {
  line-height: 1.7;
}

a,
button,
input,
textarea,
select { -webkit-tap-highlight-color: transparent; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(14, 165, 233, .42);
  outline-offset: 3px;
}

.btn-primary,
.btn-secondary,
.btn-prestation,
.btn-praticien,
.emergency-rdv,
.smf-hero-actions a,
.quality-actions a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-primary:hover,
.btn-prestation:hover,
.btn-praticien:hover,
.smf-hero-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(3, 105, 161, .2);
}

/* En-tête */
.top-bar {
  background: var(--premium-navy);
  color: rgba(255,255,255,.9);
}

.main-header {
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--premium-line);
  box-shadow: 0 8px 30px rgba(15,39,68,.06);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.navbar.centered-inline-nav {
  width: min(var(--premium-container), calc(100% - 40px));
  min-height: 76px;
  margin-inline: auto;
  padding: 8px 0;
}

.logo img {
  width: auto;
  height: 58px;
  object-fit: contain;
}

.nav-menu { gap: 4px; }

.nav-menu a {
  min-height: 42px;
  padding-inline: 12px;
  color: #243b53;
  font-size: .9rem;
  white-space: nowrap;
}

.nav-menu a.active {
  background: #e7f5ff;
  color: var(--premium-blue);
  box-shadow: inset 0 0 0 1px rgba(14,165,233,.14);
}

/* Sections et cartes communes */
.patient-quick-card,
.patient-step,
.prestation-card,
.quality-grid article,
.rdv-checklist-grid article,
.contact-routing-grid article,
.contact-card,
.partners-box,
.smf-card {
  border: 1px solid var(--premium-line);
  border-radius: var(--premium-radius);
  background: rgba(255,255,255,.96);
  box-shadow: var(--premium-shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.patient-quick-card:hover,
.patient-step:hover,
.prestation-card:hover,
.quality-grid article:hover,
.rdv-checklist-grid article:hover,
.contact-routing-grid article:hover,
.partners-box:hover,
.smf-card:hover {
  transform: translateY(-5px);
  border-color: rgba(14,165,233,.24);
  box-shadow: var(--premium-shadow-hover);
}

.nos-prestations,
.patient-journey,
.quality-pillars,
.contact-info,
.contact-routing,
.partners-layout,
.smf-specialites-layout {
  background:
    radial-gradient(700px 260px at 0 0, rgba(14,165,233,.07), transparent 70%),
    var(--premium-canvas);
}

.section-title,
section h1,
section h2 {
  text-wrap: balance;
}

/* Accueil et carrousel */
.hero-carousel {
  background: #eaf2f8;
  border-bottom: 1px solid var(--premium-line);
}

.hero-carousel .carousel-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  max-height: min(72vh, 760px);
  background: #eaf2f8;
}

.hero-carousel .carousel-slide,
.hero-carousel .slide-image {
  min-height: 0;
  background: #eaf2f8;
}

.hero-carousel .slide-image img {
  width: 100%;
  height: 100% !important;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.hero-carousel .carousel-control {
  border-radius: 14px;
  background: rgba(8,47,73,.68);
  backdrop-filter: blur(10px);
}

.hero-carousel .indicator {
  border: 1px solid rgba(8,47,73,.14);
  box-shadow: 0 2px 8px rgba(8,47,73,.14);
}

.patient-quick-access { padding-block: 24px 46px; }

#historique-hme .container-historique {
  gap: clamp(28px, 5vw, 70px);
}

#historique-hme .historique-image img,
.subsidiary-video-card,
.subsidiary-video-card video {
  border-radius: var(--premium-radius);
}

/* Services */
.service-hero-redesign,
.contact-hero,
.quality-hero,
.partners-hero,
.rdv-intro,
.smf-hero {
  overflow: hidden;
}

.smf-specialites-sidebar,
.smf-specialites-content {
  border-color: var(--premium-line);
  box-shadow: var(--premium-shadow);
}

.smf-specialites-content { min-width: 0; }

.smf-panel-head {
  background: linear-gradient(135deg, #f8fbff, #edf7fb);
}

.smf-panel-media img {
  display: block;
  width: 100%;
  object-position: center;
}

.smf-panel-body > p:first-child {
  border: 1px solid rgba(14,165,233,.1);
}

/* Rendez-vous */
.smf-rdv-section-full,
.widget-area {
  background: linear-gradient(180deg, #eef7fb, #f8fafc);
}

.smf-rdv-widget-full {
  width: min(1440px, 100%);
  margin-inline: auto;
  padding: 24px clamp(12px, 3vw, 34px) 38px;
}

.alaxione-widget-full,
.alaxione-widget {
  display: block;
  width: 100%;
  border: 1px solid var(--premium-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--premium-shadow);
}

.alaxione-widget-full {
  height: clamp(900px, 110vh, 1160px);
  min-height: 900px;
}

/* Formulaires */
input,
select,
textarea {
  max-width: 100%;
  min-height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: var(--premium-ink);
}

textarea { min-height: 130px; resize: vertical; }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--premium-sky);
  box-shadow: 0 0 0 4px rgba(14,165,233,.1);
}

/* Pied de page */
.newsletter {
  background: linear-gradient(135deg, #075985, #0f766e);
}

.newsletter-content { gap: 24px; }

.main-footer {
  background:
    radial-gradient(600px 280px at 85% 0, rgba(14,165,233,.13), transparent 70%),
    #071d2f;
}

.footer-content { gap: clamp(24px, 4vw, 54px); }

.footer-section p,
.footer-section li,
.footer-section a { line-height: 1.7; }

/* Tablettes */
@media (max-width: 1100px) {
  .navbar.centered-inline-nav { width: min(100% - 32px, var(--premium-container)); }
  .nav-menu a { padding-inline: 9px; font-size: .84rem; }
  .logo img { height: 52px; }
}

@media (max-width: 980px) {
  html { scroll-padding-top: 88px; }

  .navbar.centered-inline-nav {
    min-height: 70px;
    justify-content: space-between;
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--premium-line);
    border-radius: 14px;
    background: #f8fbff;
    color: var(--premium-navy);
  }

  .nav-menu {
    top: calc(100% + 10px);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 12px;
    border-radius: 20px;
  }

  .nav-menu a {
    min-height: 48px;
    padding: 10px 14px;
    font-size: .95rem;
  }

  .smf-specialites-menu {
    display: flex;
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    padding: 3px 3px 12px;
  }

  .smf-specialites-menu li { flex: 0 0 auto; scroll-snap-align: start; }
  .smf-link { width: auto; min-width: max-content; }
  .smf-specialites-content { scroll-margin-top: 88px; }

  .footer-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Téléphones */
@media (max-width: 640px) {
  :root { --premium-radius: 18px; }

  html { scroll-padding-top: 80px; }

  .container,
  .container-historique,
  .smf-container,
  .navbar.centered-inline-nav {
    width: calc(100% - 28px);
  }

  .top-bar { display: none; }
  .navbar.centered-inline-nav { min-height: 66px; }
  .logo img { height: 48px; max-width: 180px; }

  .hero-carousel .carousel-container {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .hero-carousel .carousel-control {
    top: 50%;
    bottom: auto;
    width: 38px;
    height: 38px;
    transform: translateY(-50%);
  }

  .hero-carousel .carousel-control:hover,
  .hero-carousel .carousel-control:focus-visible {
    transform: translateY(-50%) scale(1.03);
  }

  .hero-carousel .carousel-control.prev { left: 8px; }
  .hero-carousel .carousel-control.next { right: 8px; }
  .hero-carousel .carousel-indicators { bottom: 10px; gap: 7px; }
  .hero-carousel .indicator { width: 20px; height: 4px; }
  .hero-carousel .indicator.active { width: 30px; }

  .patient-quick-access { padding: 16px 0 34px; }

  .patient-quick-grid,
  .patient-journey-grid,
  .rdv-checklist-grid,
  .contact-routing-grid,
  .quality-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .patient-quick-card,
  .patient-step,
  .prestation-card,
  .quality-grid article,
  .rdv-checklist-grid article,
  .contact-routing-grid article {
    border-radius: 17px;
  }

  section p,
  .smf-panel-body p,
  .smf-panel-body li {
    text-align: left;
    line-height: 1.65;
  }

  .service-hero-redesign,
  .contact-hero,
  .quality-hero,
  .partners-hero,
  .rdv-intro,
  .smf-hero {
    padding-block: 42px 30px;
  }

  .smf-specialites-layout { padding: 18px 0 42px; }
  .smf-specialites-sidebar { padding: 12px; border-radius: 18px; }
  .smf-specialites-sidebar-subtitle { margin-bottom: 12px; }
  .smf-link { min-height: 44px; padding: 6px 11px 6px 7px; }
  .smf-link i { width: 32px; height: 32px; flex-basis: 32px; }
  .smf-specialites-content { border-radius: 18px; }
  .smf-panel-head { padding: 17px 18px; }
  .smf-panel-media { padding: 12px 12px 0; }
  .smf-panel-media img {
    height: auto;
    min-height: 0;
    max-height: 300px;
    border-radius: 14px;
  }
  .smf-panel-body { padding: 16px; overflow-wrap: anywhere; }
  .smf-panel-body > p:first-child { padding: 14px; font-size: .96rem; }
  .smf-panel-body h3 { white-space: normal; line-height: 1.3; }

  .smf-rdv-widget-full { padding: 14px 8px 28px; }
  .alaxione-widget-full {
    height: 1200px;
    min-height: 1200px;
    border-radius: 14px;
  }

  .newsletter-content { align-items: stretch; text-align: left; }
  .newsletter-form { width: 100%; flex-direction: column; }
  .newsletter-form input,
  .newsletter-form .btn-primary { width: 100%; }

  .floating-rdv {
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
  }

  #backToTop {
    right: 14px;
    bottom: 82px;
    width: 48px;
    height: 48px;
  }
}

/* Affichage intégral des bannières sur tous les formats, PC compris. */
.hero-carousel,
.hero-carousel .carousel-container,
.hero-carousel .carousel-slide,
.hero-carousel .slide-image {
  background: #ffffff;
}

.hero-carousel .slide-image img {
  width: 100%;
  height: 100% !important;
  object-fit: contain;
  object-position: center;
  transform: none;
}

/* Slide plus panoramique : l'image exploite davantage la largeur disponible. */
.hero-carousel,
.hero-carousel .carousel-container,
.hero-carousel .carousel-slide,
.hero-carousel .slide-image {
  width: 100vw;
  max-width: 100vw;
}

.hero-carousel .carousel-container {
  aspect-ratio: 2 / 1;
}

.hero-carousel .slide-image img {
  width: 100vw !important;
  max-width: 100vw !important;
}

@media (max-width: 980px) {
  .hero-carousel .carousel-container {
    aspect-ratio: 16 / 9;
  }
}

/* Sur tablette et téléphone, aucun texte ni visage du visuel n'est rogné. */
@media (max-width: 980px) {
  .hero-carousel,
  .hero-carousel .carousel-container,
  .hero-carousel .carousel-slide,
  .hero-carousel .slide-image {
    background: #ffffff;
  }

  .hero-carousel .slide-image img {
    width: 100%;
    height: 100% !important;
    object-fit: contain;
    object-position: center;
  }
}

@media (max-width: 380px) {
  .container,
  .container-historique,
  .smf-container,
  .navbar.centered-inline-nav { width: calc(100% - 20px); }
  .logo img { max-width: 150px; height: 44px; }
  .menu-toggle { width: 42px; height: 42px; }
  .floating-rdv .rdv-text { display: none; }
  .floating-rdv { padding: 7px; }
}

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

/* Espace étendu pour afficher l'intégralité du parcours de rendez-vous. */
.smf-rdv-section-full {
  min-height: 1350px;
}

.alaxione-widget-full {
  height: 1350px;
  min-height: 1350px;
}

@media (max-width: 980px) {
  .smf-rdv-section-full,
  .alaxione-widget-full {
    min-height: 1500px;
  }

  .alaxione-widget-full {
    height: 1500px;
  }
}

@media (max-width: 640px) {
  .smf-rdv-section-full,
  .alaxione-widget-full {
    min-height: 1650px;
  }

  .alaxione-widget-full {
    height: 1650px;
  }
}

/* Appliquer à tous les textes */
*{
  font-family: inherit;
}


:root {
    /* Colors */
    --primary-color: #1e3a8a;        /* Bleu foncé MUGEF */
    --secondary-color: #f97316;      /* Orange */
    --accent-color: #0ea5e9;         /* Bleu clair */
    --success-color: #22c55e;
    --warning-color: #eab308;
    --danger-color: #ef4444;

    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Typography */
    --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;

    /* Container */
    --container-max-width: 1200px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: var(--transition-base);
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Section Spacing */
section {
    padding: var(--spacing-3xl) 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    position: relative;
    padding-bottom: var(--spacing-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: var(--radius-full);
}

/* ===================================
   2. Top Bar
   =================================== */

.top-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-sm) 0;
    font-size: 0.875rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.contact-info {
    display: flex;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.contact-info i {
    color: var(--secondary-color);
}

.top-bar-buttons {
    display: flex;
    gap: var(--spacing-md);
}

.btn-outline {
    padding: var(--spacing-sm) var(--spacing-lg);
    border: 1px solid var(--white);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 0.875rem;
    transition: var(--transition-base);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* ===================================
   3. Header & Navigation
   =================================== */

.main-header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg) 0;
}

.logo img {
    height: 60px;
    width: auto;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    color: var(--gray-700);
    position: relative;
    padding: var(--spacing-sm) 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition-base);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.emergency-strip {
    padding: 0;
    background: #b91c1c;
    color: var(--white);
}

.emergency-strip-inner {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
}

.emergency-strip strong {
    font-size: 1rem;
    text-transform: uppercase;
}

.emergency-strip a {
    color: var(--white);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.emergency-rdv {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-md);
    text-decoration: none !important;
    white-space: nowrap;
}

.rdv-fallback {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-2xl);
    text-align: center;
    background: var(--gray-50);
    color: var(--gray-800);
}

.rdv-fallback a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
}

.image-fallback {
    object-fit: contain !important;
    background: var(--gray-50);
    padding: var(--spacing-md);
}

.patient-quick-access {
    padding: var(--spacing-xl) 0;
    background: var(--gray-50);
}

.patient-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--spacing-md);
}

.patient-quick-card {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-lg);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    color: var(--gray-800);
    box-shadow: var(--shadow-sm);
}

.patient-quick-card i {
    color: var(--primary-color);
    font-size: 1.35rem;
}

.patient-quick-card span {
    font-weight: 700;
}

.patient-quick-card small {
    color: var(--gray-600);
    line-height: 1.4;
}

.patient-quick-card.primary {
    background: var(--primary-color);
    color: var(--white);
}

.patient-quick-card.primary i,
.patient-quick-card.primary small {
    color: var(--white);
}

.patient-quick-card.urgent {
    border-color: #fecaca;
}

.patient-quick-card.urgent i {
    color: #b91c1c;
}

.patient-journey,
.patient-info-band,
.doctor-help-band,
.rdv-intro,
.rdv-checklist,
.contact-routing {
    background: var(--white);
}

.patient-journey-grid,
.patient-info-grid,
.doctor-help-grid,
.rdv-checklist-grid,
.contact-routing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-lg);
}

.patient-step,
.patient-info-grid article,
.doctor-help-grid article,
.rdv-checklist-grid article,
.contact-routing-grid article {
    padding: var(--spacing-xl);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.patient-step span {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-full);
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
}

.patient-step h3,
.patient-info-grid h2,
.doctor-help-grid h2,
.rdv-checklist-grid h2,
.contact-routing-grid h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.patient-step a,
.patient-info-grid a,
.doctor-help-grid a,
.contact-routing-grid a {
    display: inline-block;
    margin-top: var(--spacing-md);
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.patient-info-grid i,
.rdv-checklist-grid i,
.contact-routing-grid i {
    margin-bottom: var(--spacing-md);
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.rdv-page {
    background: var(--gray-50);
}

.rdv-intro-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--spacing-xl);
    align-items: center;
}

.rdv-intro h1 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.rdv-contact-card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    background: var(--primary-color);
    color: var(--white);
}

.rdv-contact-card a {
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 700;
}

.contact-routing {
    padding-top: var(--spacing-xl);
}

.trust-section {
    background: var(--gray-50);
}

.trust-section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: var(--spacing-2xl);
    align-items: center;
}

.quality-kicker {
    display: inline-block;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.trust-section h2,
.quality-hero h1,
.patient-rights h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.trust-section p,
.quality-hero p,
.patient-rights p {
    margin-bottom: var(--spacing-lg);
    color: var(--gray-700);
}

.trust-metrics {
    display: grid;
    gap: var(--spacing-md);
}

.trust-metrics article {
    padding: var(--spacing-lg);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.trust-metrics strong {
    display: block;
    color: var(--primary-color);
    font-size: 2rem;
    line-height: 1;
}

.trust-metrics span {
    color: var(--gray-600);
}

.quality-page {
    background: var(--white);
}

.quality-hero {
    background: var(--gray-50);
}

.quality-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--spacing-2xl);
    align-items: center;
}

.quality-hero-card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    background: var(--primary-color);
    color: var(--white);
}

.quality-hero-card a {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-lg);
}

.quality-grid article {
    padding: var(--spacing-xl);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.quality-grid i {
    margin-bottom: var(--spacing-md);
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.quality-grid h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.patient-rights {
    background: var(--gray-50);
}

.patient-rights-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: var(--spacing-2xl);
    align-items: start;
}

.quality-list {
    display: grid;
    gap: var(--spacing-md);
}

.quality-list li {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid var(--gray-200);
}

.quality-list i {
    margin-top: 0.2rem;
    color: var(--success-color);
}

.quality-actions {
    background: var(--white);
}

.quality-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-lg);
}

.quality-actions-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    min-height: 72px;
    border-radius: var(--radius-md);
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
}

/* ===================================
   4. Hero Carousel
   =================================== */

.hero-carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 800px; /* hauteur plus étirée */
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-image {
    position: absolute;
    inset: 0;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(3,7,18,0.24) 0%,
        rgba(3,7,18,0.12) 60%,
        rgba(3,7,18,0.22) 100%);
    backdrop-filter: saturate(110%);
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    z-index: 2;
    color: #ffffff;
    max-width: 600px;
    font-family: 'Roboto', sans-serif;
}

.slide-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 18px;
}

.btn-primary {
    background: #1877f2;
    color: #fff;
    padding: 12px 18px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.30);
    color: #fff;
    border: none;
    font-size: 30px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 3;
}

.carousel-control.prev { left: 20px; }
.carousel-control.next { right: 20px; }

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.6;
    border: none;
    cursor: pointer;
}

.indicator.active {
    opacity: 1;
    background: #1877f2;
}


/* ===================================
   5. Quick Access Cards
   =================================== */

.quick-access {
    background: var(--gray-50);
    padding: var(--spacing-2xl) 0;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.access-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-base);
}

.access-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.access-card h3 {
    font-size: 1.125rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.access-card p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: var(--spacing-lg);
}

.card-link {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-xl);
    background: var(--secondary-color);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition-base);
}

.card-link:hover {
    background: #ea580c;
    transform: scale(1.05);
}

/* ===================================
   6. Banner Section
   =================================== */

.banner-section {
    padding: var(--spacing-xl) 0;
}

.banner-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

.banner-img:hover {
    transform: scale(1.02);
}

/* ===================================
   7. Certifications
   =================================== */

.certifications {
    background: var(--white);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: var(--spacing-2xl);
}

.certification-card {
    display: flex;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition-base);
}

.certification-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.certification-badge img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.certification-content h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.certification-content p {
    color: var(--gray-600);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.btn-link {
    color: var(--secondary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.btn-link:hover {
    color: #ea580c;
    text-decoration: underline;
}

/* ===================================
   8. Products Section
   =================================== */

.products {
    background: var(--gray-50);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.products-grid:last-child {
    margin-bottom: 0;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    height: 200px;
    overflow: hidden;
    background: var(--gray-200);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-card h3 {
    padding: var(--spacing-lg);
    color: var(--primary-color);
    font-size: 1.125rem;
    font-weight: 600;
    min-height: 70px;
}

.product-card p {
    padding: 0 var(--spacing-lg);
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.product-actions {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    display: flex;
    gap: var(--spacing-md);
}

.btn-primary {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--secondary-color);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 500;
    text-align: center;
    transition: var(--transition-base);
}

.btn-primary:hover {
    background: #ea580c;
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 500;
    text-align: center;
    transition: var(--transition-base);
}

.btn-secondary:hover {
    background: #1e40af;
    box-shadow: var(--shadow-md);
}

/* ===================================
   9. Subsidiaries (Filiales)
   =================================== */

.subsidiaries {
    background: var(--white);
}

.subsidiaries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.subsidiary-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.subsidiary-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.subsidiary-image {
    height: 180px;
    overflow: hidden;
    background: var(--gray-200);
}

.subsidiary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subsidiary-card h3,
.subsidiary-card h5 {
    padding: var(--spacing-lg);
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    min-height: 80px;
}

.subsidiary-card .btn-secondary {
    margin: 0 var(--spacing-lg) var(--spacing-lg);
    display: block;
}

.cmu-banner {
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
}

.cmu-banner h1 {
    color: var(--white);
    font-size: 1.5rem;
    text-align: center;
    line-height: 1.4;
}

.cmu-banner a {
    color: var(--white);
    transition: var(--transition-base);
}

.cmu-banner a:hover {
    text-decoration: underline;
}

.subsidiaries {
    position: relative;
    padding: 90px 0;
    background-image: url("../images/22.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.subsidiaries::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.subsidiaries .container {
    position: relative;
    z-index: 1;
}

.subsidiaries .section-title {
    color: #fff;
}

/* Cartes */
.subsidiary-card {
    background: rgba(255,255,255,.95);
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0,0,0,.25);
    transition: all .3s ease;
}

.subsidiary-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0,0,0,.35);
}

/* CMU spécial */
.subsidiary-card.cmu-banner {
    background: linear-gradient(135deg, #005baa, #0b78d0);
    color: #fff;
}

.subsidiary-card.cmu-banner h1 a {
    color: #fff;
}


/* ===================================
   10. News Section
   =================================== */

.news {
    background: var(--gray-50);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.news-image {
    height: 200px;
    overflow: hidden;
    background: var(--gray-200);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: var(--spacing-lg);
}

.news-content h3 {
    font-size: 1.125rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.news-content h3 a {
    transition: var(--transition-base);
}

.news-content h3 a:hover {
    color: var(--secondary-color);
}

.news-date {
    color: var(--gray-500);
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.news-date::before {
    content: '\f133';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* ===================================
   11. Newsletter
   =================================== */

.newsletter {
    background: var(--primary-color);
    padding: var(--spacing-2xl) 0;
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-2xl);
    flex-wrap: wrap;
}

.newsletter-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.newsletter-text {
    flex: 1;
    min-width: 200px;
}

.newsletter-text h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-md);
    flex: 1;
    min-width: 300px;
}

.newsletter-form input {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.newsletter-form .btn-primary {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* ===================================
   12. Feedback Section
   =================================== */

.feedback {
    background: var(--white);
    text-align: center;
}

.feedback h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
}

.feedback p {
    color: var(--gray-600);
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.8;
}

.feedback .btn-primary {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-2xl);
    font-size: 1.125rem;
}

/* ===================================
   13. Partners
   =================================== */
.partners {
    padding: 50px 0;
    background: #ffffff;
}

.partners-slider {
    overflow: hidden;
    width: 100%;
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: scrollPartners 25s linear infinite;
}

.partners-track img {
    height: 70px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partners-track img:hover {
    transform: scale(1.05);
}

@keyframes scrollPartners {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}


/* ===================================
   14. Footer
   =================================== */

.main-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--spacing-3xl) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-column h3 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-column p {
    line-height: 1.8;
    font-size: 0.9375rem;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-column ul li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    font-size: 0.9375rem;
}

.footer-column ul li i {
    color: var(--secondary-color);
    margin-top: 4px;
    font-size: 0.75rem;
}

.footer-column a {
    color: var(--gray-300);
    transition: var(--transition-base);
}

.footer-column a:hover {
    color: var(--secondary-color);
    padding-left: var(--spacing-sm);
}

.contact-list li {
    gap: var(--spacing-md);
}

.contact-list i {
    font-size: 1rem !important;
    margin-top: 2px !important;
}

.footer-map {
    margin: var(--spacing-2xl) 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* ===================================
   15. Cookie Notice
   =================================== */

.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-lg);
    z-index: 9999;
    transform: translateY(100%);
    transition: var(--transition-base);
}

.cookie-notice.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    min-width: 300px;
    color: var(--gray-700);
    font-size: 0.9375rem;
}

.cookie-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.btn-accept {
    padding: var(--spacing-sm) var(--spacing-xl);
    background: var(--success-color);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 500;
}

.btn-accept:hover {
    background: #16a34a;
}

.btn-decline {
    padding: var(--spacing-sm) var(--spacing-xl);
    background: var(--danger-color);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 500;
}

.btn-decline:hover {
    background: #dc2626;
}

.cookie-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    width: 30px;
    height: 30px;
    font-size: 1.5rem;
    color: var(--gray-500);
}

.cookie-close:hover {
    color: var(--gray-800);
}

/* ===================================
   16. Moya Chat Widget
   =================================== */

.moya-chat-widget {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    z-index: 9998;
}

.moya-toggle {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-base);
}

.moya-toggle:hover {
    transform: scale(1.1);
    background: #ea580c;
}

.moya-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.moya-header {
    background: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.moya-header h4 {
    font-size: 1.125rem;
}

.moya-close {
    color: var(--white);
    font-size: 1.5rem;
}

.moya-messages {
    flex: 1;
    padding: var(--spacing-lg);
    overflow-y: auto;
    background: var(--gray-50);
}

.moya-input {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    border-top: 1px solid var(--gray-200);
}

.moya-input input {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
}

.moya-input button {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.moya-input button:hover {
    background: #ea580c;
}

/* ===================================
   17. Responsive Design
   =================================== */

@media (max-width: 1024px) {
    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .certification-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* Top Bar */
    .top-bar-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-links {
        order: -1;
    }

    /* Navigation */
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-base);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .emergency-strip-inner {
        align-items: flex-start;
        flex-direction: column;
        min-height: 0;
        padding-top: var(--spacing-md);
        padding-bottom: var(--spacing-md);
    }

    .emergency-rdv {
        width: 100%;
    }

    .patient-quick-grid,
    .patient-journey-grid,
    .patient-info-grid,
    .doctor-help-grid,
    .rdv-checklist-grid,
    .contact-routing-grid,
    .rdv-intro-grid,
    .trust-section-grid,
    .quality-hero-inner,
    .quality-grid,
    .patient-rights-grid,
    .quality-actions-grid {
        grid-template-columns: 1fr;
    }

    .patient-quick-card {
        min-height: 108px;
    }

    /* Carousel */
    .carousel-container {
        height: 400px;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content h2 {
        font-size: 1.75rem;
    }

    .phone-number {
        font-size: 3rem !important;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .carousel-control.prev {
        left: var(--spacing-md);
    }

    .carousel-control.next {
        right: var(--spacing-md);
    }

    /* Newsletter */
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    /* Moya Chat */
    .moya-chat-window {
        width: 100vw;
        height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .moya-chat-widget {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    /* Typography */
    .section-title {
        font-size: 1.5rem;
    }

    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }

    /* Quick Access */
    .quick-access-grid {
        grid-template-columns: 1fr;
    }

    /* News */
    .news-grid {
        grid-template-columns: 1fr;
    }

    /* Subsidiaries */
    .subsidiaries-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   18. Utility Classes
   =================================== */

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

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

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

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

/* ===================================
   19. Animations
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn var(--transition-slow) ease-out;
}

.slide-in-left {
    animation: slideInLeft var(--transition-slow) ease-out;
}

.slide-in-right {
    animation: slideInRight var(--transition-slow) ease-out;
}

/* ===================================
   20. Print Styles
   =================================== */

@media print {
    .top-bar,
    .main-header,
    .hero-carousel,
    .newsletter,
    .cookie-notice,
    .moya-chat-widget {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        text-decoration: underline;
    }
}




/* Hero Carousel Slides */








/* Historique SMF */
.container-historique {
    display: flex;
    flex-wrap: wrap;
    gap: 40px; /* plus d'espace entre image et texte */
    justify-content: center;
    max-width: 1200px; 
    margin: 0 auto;
    padding: 50px 20px;
    align-items: flex-start;
}

.historique-image {
    flex: 1 1 350px; /* image plus large */
    max-width: 500px; /* augmente la taille visible */
}

.historique-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.historique-texte {
    flex: 2 1 550px;
    text-align: justify; /* Justifie le texte */
}

.historique-texte h2 {
    margin-bottom: 25px;
    font-size: 2em; /* titre un peu plus grand */
}

.historique-texte p {
    margin-bottom: 15px;
    line-height: 1.7; /* espace entre lignes pour confort lecture */
}

/* Responsive : sur mobile, image au-dessus */
@media (max-width: 768px) {
    .container-historique {
        flex-direction: column;
        align-items: center;
    }

    .historique-texte {
        flex: 1 1 100%;
    }

    .historique-image {
        max-width: 90%;
    }
}


#historique-hme h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: #1877f2;
    margin-top: 10px;
}
#historique-hme h2 {
    color: #1877f2; /* bleu comme les autres titres */
    font-size: 36px; /* tu peux ajuster la taille si besoin */
    font-weight: 700; /* titre en gras */
    margin-bottom: 20px; /* un peu d'espace sous le titre */
}




#historique-hme {
    padding: 60px 0;
}

.container-historique {
    display: flex;
    gap: 40px;
    align-items: stretch; /* force la même hauteur */
}

.historique-image,
.historique-texte {
    flex: 1;
}

.historique-image {
    display: flex;
}

.historique-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* remplit proprement la hauteur du texte */
    border-radius: 10px;
}

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

.historique-texte h2 {
    color: #1877f2;
    font-size: 2rem;
    margin-bottom: 15px;
}

.historique-texte p {
    line-height: 1.7;
    margin-bottom: 10px;
}



.nos-prestations h2 {
    color: #1877f2;
}






/* Section Nos Prestations */
.nos-prestations {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.nos-prestations h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

/* Slider horizontal */
.prestations-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.prestations-slider::-webkit-scrollbar {
    height: 8px;
}

.prestations-slider::-webkit-scrollbar-thumb {
    background-color: #0066cc;
    border-radius: 4px;
}

/* Carte prestation */
.prestation-card {
    background: #fff;
    flex: 0 0 300px; /* largeur fixe pour chaque carte */
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.prestation-card:hover {
    transform: translateY(-5px);
}

.prestation-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.prestation-card h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.prestation-card p {
    font-size: 0.95em;
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-prestation {
    background-color: #0066cc;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-prestation:hover {
    background-color: #004999;
}

/* Responsive : cartes un peu plus petites sur mobile */
@media (max-width: 768px) {
    .prestation-card {
        flex: 0 0 80%;
    }
}
.nos-prestations h2 {
    color: #1877f2;
}




.praticiens-section {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.praticiens-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.praticiens-carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    
}

.praticien-card {
    flex: 0 0 250px;
    background-color: #fff;
    border-radius: 10px;
    text-align: center;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.praticien-photo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

.btn-praticien {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #0072c6;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
}

/* Masquer la barre de scroll */
.praticiens-carousel::-webkit-scrollbar {
   
}

/* Défilement automatique */
@keyframes slideScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Ajuster selon le nombre de cartes */
}


}
.praticiens-section {
    background-color: #ffffff; /* bleu ciel */
}
.praticiens-section h2 {
    color: #1877F2;   /* bleu du titre */
    font-size: 2rem; /* plus grand */
    font-weight: 700;  /* bien visible */
}
.praticiens-carousel {
    display: grid;
    grid-auto-flow: column;              /* défilement horizontal */
    grid-template-rows: repeat(2, 1fr);  /* 2 lignes */
    gap: 20px;
    overflow-x: auto;                    /* scroll manuel */
    overflow-y: hidden;
    padding-bottom: 10px;
    scroll-behavior: smooth;
}

/* largeur fixe des cartes pour forcer le scroll */
.praticien-card {
    width: 260px;
    flex-shrink: 0;
}
.praticiens-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto); /* 2 lignes */
    gap: 20px;
    overflow-x: auto;   /* scroll à la main */
    overflow-y: hidden;
    padding-bottom: 10px;
}

/* cartes */
.praticien-card {
    width: 260px;
}



.certifications {
    padding: 70px 0;
    background: #f8f9fb;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: #1877f2; /* bleu institutionnel */
    margin-bottom: 50px;
}

/* grille */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch;
}

/* carte */
.certification-card {
    display: flex;
    gap: 25px;
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    align-items: flex-start;
}

/* image */
.certification-badge {
    flex-shrink: 0;
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certification-badge img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* contenu */
.certification-content {
    display: flex;
    flex-direction: column;
}

.certification-content h3 {
    font-size: 20px;
    color: #0a2e5c;
    margin-bottom: 12px;
}

.certification-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
    text-align: justify;
}

/* lien */
.btn-link {
    margin-top: auto;
    color: #1877f2;
    font-weight: 600;
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
}



.floating-rdv {
    position: fixed;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, #1877f2, #0b5ed7);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: 0.3s ease;
}

.floating-rdv:hover {
    transform: translateY(-50%) scale(1.08);
}

.rdv-icon {
    font-size: 28px;
    margin-bottom: 4px;
}

.rdv-text {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
}



/* ============================
   Page Spécialités SMF (menu à gauche + contenu à droite)
   ============================ */

.smf-specialites-hero {
  background: #f3f4f6;
  padding: 40px 0;
}

.smf-specialites-hero h1 {
  margin: 0 0 8px;
  color: var(--primary-color);
  font-size: 2.2rem;
}

.smf-specialites-hero p {
  margin: 0;
  color: var(--gray-600);
}

.smf-specialites-layout {
  padding: 40px 0;
}

.smf-specialites-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
}

/* Sidebar */
.smf-specialites-sidebar {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px;
  position: sticky;
  top: 110px;
}

.smf-specialites-sidebar-title {
  margin: 0 0 12px;
  color: var(--primary-color);
  font-size: 1.25rem;
}

.smf-specialites-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.smf-link {
  width: 100%;
  text-align: left;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  font-weight: 600;
  color: #111827;
  transition: 0.2s ease;
}

.smf-link:hover {
  border-color: var(--primary-color);
  transform: translateX(2px);
}

.smf-link.active {
  background: rgba(24, 119, 242, 0.10);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Contenu */
.smf-specialites-content {
  background: var(--white);
  border: 1

  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px;
}

.smf-panel { display: none; }
.smf-panel.active { display: block; }

.smf-panel-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 22px;
  align-items: start;
}

.smf-photo img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  border-radius: 12px;
  background: #eef2ff;
}

.smf-info h2 {
  margin: 0 0 10px;
  color: var(--primary-color);
  font-size: 1.8rem;
}

.smf-info h3 {
  margin: 16px 0 8px;
  color: #111827;
  font-size: 1.1rem;
}

.smf-info p {
  color: var(--gray-600);
  line-height: 1.75;
}

.smf-info ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
  color: var(--gray-600);
}

.smf-actions {
  margin-top: 18px;
}

/* Responsive */
@media (max-width: 992px) {
  .smf-specialites-grid { grid-template-columns: 1fr; }
  .smf-specialites-sidebar { position: static; }
  .smf-panel-inner { grid-template-columns: 1fr; }
  .smf-photo img { height: 240px; }
}






/* ===== Page Nos Médecins (SMF) ===== */

.smf-doctors-hero {
  background: #f7fafc;
  padding: 40px 0 25px;
}

.smf-doctors-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.smf-doctors-hero h1 {
  color: var(--primary-color);
  font-size: 2rem;
  margin: 0 0 8px;
}

.smf-doctors-hero p {
  margin: 0;
  color: var(--gray-600);
  max-width: 720px;
  line-height: 1.6;
}

.smf-doctors-toolbar {
  padding: 18px 0;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.smf-toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.smf-search {
  flex: 1 1 360px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-50);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 12px 14px;
  border-radius: 12px;
}

.smf-search i { color: var(--gray-600); }

.smf-search input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
}

.smf-filters {
  display: flex;
  gap: 10px;
  flex: 1 1 320px;
  justify-content: flex-end;
}

.smf-filters select {
  width: 100%;
  max-width: 260px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  outline: none;
}

.smf-doctors-list {
  padding: 28px 0 55px;
  background: #fff;
}

.smf-doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.smf-doctor-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  overflow: hidden;
  transition: 0.2s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,0.04);
}

.smf-doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.08);
}

.smf-doctor-photo {
  width: 100%;
  height: 190px;
  background: #f2f6fb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.smf-doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* si photo réelle */
  opacity: 0.95;
}

.smf-doctor-body {
  padding: 16px 16px 18px;
}

.smf-doctor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.smf-doctor-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--primary-color);
  line-height: 1.25;
}

.smf-doctor-badge {
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(24, 119, 242, 0.12); /* style "facebook blue" léger */
  color: #1877F2;
  white-space: nowrap;
}

.smf-doctor-role {
  margin: 10px 0 12px;
  color: var(--gray-600);
  line-height: 1.5;
}

.smf-doctor-meta {
  display: grid;
  gap: 8px;
  color: var(--gray-600);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.smf-doctor-meta i {
  color: #1877F2;
  margin-right: 8px;
}

.smf-doctor-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.smf-doctor-actions .btn-primary,
.smf-doctor-actions .btn-secondary {
  flex: 1 1 140px;
  text-align: center;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
}

.smf-doctors-empty {
  margin-top: 18px;
  color: var(--gray-600);
  background: var(--gray-50);
  border: 1px dashed rgba(0,0,0,0.15);
  padding: 14px;
  border-radius: 12px;
  text-align: center;
}

/* Responsive petits écrans */
@media (max-width: 700px) {
  .smf-doctors-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .smf-filters {
    width: 100%;
    justify-content: flex-start;
  }
  .smf-filters select {
    max-width: none;
  }
}



/* ======= SECTION NOS PRESTATIONS ======= */
.nos-prestations {
    position: relative;
    padding: 90px 0;
    background-image: url("../images/prestations-bg.jpg"); /* ← ton image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* voile sombre pour lisibilité */
.nos-prestations::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

/* tout le contenu passe au-dessus du fond */
.nos-prestations .container {
    position: relative;
    z-index: 1;
}

/* titre en blanc */
.nos-prestations .section-title {
    color: #fff;
}

/* cartes plus élégantes sur fond image */
.prestation-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0,0,0,.2);
    transition: transform .3s ease, box-shadow .3s ease;
}

.prestation-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0,0,0,.28);
}


/* === CENTRAGE DU LOGO + MENU === */
.centered-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

/* LOGO PLUS GRAND ET STYLÉ */
.logo img {
    width: 180px; /* plus grand */
    max-width: 100%;
    transition: transform 0.3s ease;
}

/* effet au survol */
.logo img:hover {
    transform: scale(1.05);
}

/* MENU CENTRÉ */
.nav-menu {
    display: flex;
    justify-content: center;
    gap: 25px;
}

/* STYLE DU MENU PLUS PRO */
.nav-menu a {
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
}

/* petit effet souligné animé */
.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #005baa;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}


/* === LOGO + MENU SUR LA MÊME LIGNE ET CENTRÉS === */
.centered-inline-nav {
    display: flex;
    align-items: center;
    justify-content: center; /* centre tout le bloc */
    gap: 60px; /* espace entre logo et menu */
    width: 100%;
}

/* LOGO PLUS GRAND ET STYLÉ */
.logo img {
    width: 160px;   /* agrandi */
    max-width: 100%;
    transition: transform 0.3s ease;
}

/* effet discret au survol */
.logo img:hover {
    transform: scale(1.05);
}

/* MENU ALIGNÉ HORIZONTALEMENT */
.nav-menu {
    display: flex;
    gap: 28px;
}

/* style plus pro des liens */
.nav-menu a {
    font-weight: 600;
    letter-spacing: 0.4px;
    position: relative;
}

/* petit effet souligné animé */
.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #005baa;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}


/* MENU ACTIF (page en cours) */
.nav-menu a.active {
    color: #005baa;        /* bleu MUGEF */
    font-weight: 700;
}

/* Soulignement permanent sur l'élément actif */
.nav-menu a.active::after {
    width: 100%;
}

/* Couleur au survol (inchangée) */
.nav-menu a:hover {
    color: #005baa;
}


/* Justifier tous les textes dans le contenu des spécialités */
.smf-panel-body,
.smf-panel-body p,
.smf-panel-body li {
  text-align: justify;
  text-justify: inter-word;
}

/* Petit confort visuel (optionnel mais recommandé) */
.smf-panel-body p,
.smf-panel-body li {
  line-height: 1.8;
}

/* 1) Police (tu peux changer la police ici) */
.smf-panel-body{
  font-family: "Poppins", "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.85;
}

/* 2) Descendre le texte (espace au-dessus du bloc texte) */
.smf-panel-body{
  margin-top: 30px;   /* augmente à 24px si tu veux plus bas */
}

/* 3) Justification (ce que tu voulais) */
.smf-panel-body,
.smf-panel-body p,
.smf-panel-body li{
  text-align: justify;
  text-justify: inter-word;
}


/* ======= CONTACT ======= */
    body {
      font-family: 'Inter', sans-serif;
      margin: 0;
      padding: 0;
      line-height: 1.6;
      color: #333;
      background: #f8f9fa;
    }

    a { text-decoration: none; color: #007bff; }

  

   text-align: center;
    }
   
   

    .contact-info {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      margin: 40px 0;
    }
    .contact-card {
      background: white;
      border-radius: 8px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
      flex: 1 1 30%;
      padding: 25px;
      margin: 10px;
      text-align: center;
      transition: .3s;
    }
    .contact-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 28px rgba(0,0,0,.1);
    }
    .contact-card i {
      font-size: 2rem;
      margin-bottom: 10px;
      color: #007bff;
    }
    .contact-card h3 {
      margin-bottom: 10px;
      font-weight: 600;
    }
    .contact-card p {
      font-size: .95rem;
      margin-bottom: 5px;
    }

    .contact-form {
      background: white;
      border-radius: 8px;
      padding: 30px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
      margin-bottom: 50px;
    }
    .contact-form h2 {
      margin-bottom: 20px;
    }
    .contact-form input,
    .contact-form textarea {
      width: 100%;
      padding: 12px;
      margin: 8px 0 16px;
      border: 1px solid #ccc;
      border-radius: 6px;
      font-size: 1rem;
    }
    .contact-form button {
      background: #007bff;
      color: white;
      padding: 12px 22px;
      border: none;
      border-radius: 6px;
      font-size: 1rem;
      cursor: pointer;
      transition: .3s;
    }
    .contact-form button:hover {
      background: #0056b3;
    }

    .map-wrapper {
      margin-bottom: 50px;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
    }

    footer {
      background: #343a40;
      color: white;
      text-align: center;
      padding: 20px 0;
      font-size: .9rem;
    }

    @media (max-width: 768px) {
      .contact-info { flex-direction: column; }
      .contact-card { flex: 1 1 100%; }
    }
	
	/* Section RDV */
.smf-rdv-section {
  padding: 60px 0;
  background: #f8f9fa;
}

.smf-rdv-header {
  text-align: center;
  margin-bottom: 30px;
}

.smf-rdv-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #007bff;
  margin-bottom: 10px;
}

.smf-rdv-header p {
  font-size: 1rem;
  color: #555;
  max-width: 700px;
  margin: auto;
}

/* Widget */
.smf-rdv-widget {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* Object Alaxione */
.alaxione-widget {
  width: 100%;
  min-height: 565px;
  height: 100%;
  border: none;
  display: block;
}
/* Section RDV full width */
.smf-rdv-section-full {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: #f4f6f8; /* optionnel */
}

/* Conteneur widget */
.smf-rdv-widget-full {
  width: 100%;
  height: auto;
}

/* Widget Alaxione */
.alaxione-widget-full {
  width: 100%;
  min-height: 650px;
  height: 100vh; /* optionnel si tu veux très grand */
  border: none;
  display: block;
}


html { scroll-behavior: smooth; }
    body{
      font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      margin: 0;
      background: ;
      color: ;
    }

    /* Pour éviter que la section #prise-rdv soit cachée si ton header est fixed */
    #prise-rdv { scroll-margin-top: 120px; }

    .container{
      max-width: 1180px;
      margin: 0 auto;
      padding: 0 18px;
    }

    /* HERO */
    .rdv-hero{
      padding: 30px 0 18px;
    }
    .rdv-hero-card{
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 18px;
      padding: 18px;
      box-shadow: 0 18px 50px rgba(0,0,0,.35);
    }
    .rdv-hero h1{
      margin: 0 0 8px;
      font-size: clamp(22px, 3vw, 34px);
      letter-spacing: -.4px;
    }
    .rdv-hero p{
      margin: 0 0 14px;
      color: rgba(255,255,255,.75);
      line-height: 1.6;
      text-align: justify;
    }
    .rdv-actions{
      display:flex;
      flex-wrap:wrap;
      gap:10px;
    }
    .btn{
      display:inline-flex;
      align-items:center;
      gap:10px;
      padding: 12px 14px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,.18);
      text-decoration:none;
      font-weight: 600;
      font-size: 14px;
      transition: transform .12s ease;
      color:#fff;
      background: rgba(255,255,255,.06);
    }
    .btn:hover{ transform: translateY(-1px); }
    .btn.primary{
      background: linear-gradient(135deg, rgba(45,212,191,.95), rgba(96,165,250,.95));
      color: #06101c;
      border-color: transparent;
    }

    /* Widget full width */
    .rdv-widget-wrap{
      margin: 18px 0 26px;
      border-radius: 20px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,.14);
      box-shadow: 0 18px 55px rgba(0,0,0,.35);
      background: rgba(255,255,255,.03);
    }
    .rdv-widget-topbar{
      display:flex;
      align-items:center;
      justify-content: space-between;
      gap: 10px;
      padding: 12px 14px;
      border-bottom: 1px solid rgba(255,255,255,.10);
      background: rgba(255,255,255,.06);
    }
    .rdv-widget-topbar .title{
      display:flex; align-items:center; gap:10px;
      font-weight: 700; font-size: 14px;
    }
    .rdv-widget-topbar .title i{ color: #2dd4bf; }
    .rdv-widget-topbar .small{
      font-size: 12.5px;
      color: rgba(255,255,255,.72);
    }

    /* IMPORTANT : object prend toute la largeur */
    .alaxione-widget{
      width: 100%;
      height: 100%;
      min-height: 780px;
      display: block;
      border: 0;
      background: #fff;
    }

    /* Bouton flottant => scroll vers widget */
    .floating-rdv{
      position: fixed;
      right: 18px;
      bottom: 18px;
      z-index: 9999;
      display:flex;
      gap:10px;
      align-items:center;
      padding: 12px 14px;
      border-radius: 999px;
      background: linear-gradient(135deg, rgba(45,212,191,.95), rgba(96,165,250,.95));
      color:#06101c;
      text-decoration:none;
      font-weight: 800;
      box-shadow: 0 12px 40px rgba(0,0,0,.35);
      border: 1px solid rgba(255,255,255,.22);
      transition: transform .12s ease;
    }
    .floating-rdv:hover{ transform: translateY(-2px); }
    .floating-rdv .rdv-icon{
      width: 38px; height: 38px;
      border-radius: 999px;
      display:flex; align-items:center; justify-content:center;
      background: rgba(255,255,255,.25);
    }
    .floating-rdv .rdv-text{
      font-size: 13.2px;
      line-height: 1.05;
    }

    @media (max-width: 980px){
      .alaxione-widget{ min-height: 860px; }
    }
	
	
	/* ===== HEADER / MENU UNIFORME ===== */
.main-header{
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.navbar.centered-inline-nav{
  display: flex;
  align-items: center;
  justify-content: center; /* centre le bloc logo + menu */
  gap: 22px;
  padding: 12px 0;
}

/* Logo */
.logo{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo img{
  height: 58px;   /* plus grand */
  width: auto;
  display: block;
}

/* Menu */
.nav-menu{
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.nav-menu a{
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  color: #0f172a;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.nav-menu a:hover{
  background: rgba(14,165,233,.12);
  color: #0369a1;
  transform: translateY(-1px);
}

/* Actif (page courante) */
.nav-menu a.active{
  background: rgba(14,165,233,.18);
  color: #0369a1;
  border: 1px solid rgba(14,165,233,.25);
}



/* --- MODE VIDÉO (même fond, plus clean) --- */
.subsidiaries-grid.video-only{
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

/* Carte vidéo */
.subsidiary-video-card{
  background: rgba(255,255,255,0.95);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.10);
}

/* Vidéo responsive */
.video-wrapper{
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.smf-video{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* Légende */
.video-caption{
  text-align: center;
  margin-top: 18px;
}

.video-caption h3{
  font-size: 1.6rem;
  margin: 0 0 10px 0;
  color: #0b3a63;
}

.video-caption p{
  margin: 0 auto;
  max-width: 820px;
  color: #555;
  line-height: 1.7;
}

/* Mobile */
@media (max-width: 768px){
  .subsidiary-video-card{
    padding: 18px;
  }
  .video-caption h3{
    font-size: 1.3rem;
  }
}


 :root{
      --smf-primary:#0b6bcb;
      --smf-primary-2:#00b3a6;
      --smf-ink:#0f172a;
      --smf-muted:#64748b;
      --smf-card:#ffffff;
      --smf-border:rgba(15,23,42,.08);
      --smf-bg:#f6f9ff;
      --smf-radius:18px;
      --smf-shadow:0 12px 30px rgba(2, 6, 23, .08);
    }

    body{ font-family:"Poppins",sans-serif; }

    /* Keep the same background “feel” as your site */
    .smf-partners-page{
      background:
        radial-gradient(900px 380px at 10% -10%, rgba(0,179,166,.18), transparent 60%),
        radial-gradient(900px 380px at 90% 0%, rgba(11,107,203,.18), transparent 55%),
        linear-gradient(180deg, #ffffff 0%, var(--smf-bg) 55%, #ffffff 100%);
    }

    /* HERO */
    .smf-hero{
      padding: 46px 0 26px;
    }
    .smf-hero .wrap{
      display:grid;
      grid-template-columns: 1.2fr .8fr;
      gap: 18px;
      align-items: stretch;
    }
    .smf-hero-card{
      background: linear-gradient(135deg, rgba(11,107,203,.95), rgba(0,179,166,.9));
      color:#fff;
      border-radius: var(--smf-radius);
      box-shadow: var(--smf-shadow);
      padding: 28px 26px;
      position:relative;
      overflow:hidden;
    }
    .smf-hero-card:before{
      content:"";
      position:absolute; inset:-40px -40px auto auto;
      width: 220px; height: 220px;
      background: rgba(255,255,255,.16);
      border-radius: 999px;
      filter: blur(1px);
      transform: rotate(15deg);
    }
    .smf-hero h1{
      margin:0 0 8px;
      font-size: clamp(22px, 3vw, 34px);
      line-height:1.15;
      letter-spacing:-.5px;
    }
    .smf-hero p{
      margin:0;
      opacity:.95;
      max-width: 62ch;
    }
    .smf-hero-actions{
      display:flex;
      flex-wrap:wrap;
      gap:10px;
      margin-top: 16px;
    }
    .smf-btn{
      display:inline-flex;
      align-items:center;
      gap:10px;
      padding: 11px 14px;
      border-radius: 999px;
      text-decoration:none;
      font-weight: 600;
      border: 1px solid rgba(255,255,255,.25);
      transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
      user-select:none;
      white-space:nowrap;
    }
    .smf-btn:hover{ transform: translateY(-1px); box-shadow: 0 10px 22px rgba(2,6,23,.18); }
    .smf-btn.primary{ background:#fff; color: var(--smf-ink); border-color: rgba(255,255,255,.35); }
    .smf-btn.ghost{ background: rgba(255,255,255,.12); color:#fff; }

    .smf-mini-panel{
      background: var(--smf-card);
      border: 1px solid var(--smf-border);
      border-radius: var(--smf-radius);
      box-shadow: 0 10px 25px rgba(2,6,23,.06);
      padding: 18px;
      display:flex;
      flex-direction:column;
      gap: 10px;
    }
    .smf-mini-panel .row{
      display:flex; align-items:flex-start; gap: 10px;
      color: var(--smf-ink);
    }
    .smf-mini-panel i{
      color: var(--smf-primary);
      margin-top: 2px;
    }
    .smf-mini-panel strong{ display:block; }
    .smf-mini-panel span{ color: var(--smf-muted); font-size: .95rem; }

    /* SECTIONS */
    .smf-section{ padding: 22px 0; }
    .smf-section-title{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      margin-bottom: 14px;
    }
    .smf-section-title h2{
      margin:0;
      font-size: 1.2rem;
      color: var(--smf-ink);
    }
    .smf-section-title p{
      margin:0;
      color: var(--smf-muted);
      font-size: .98rem;
    }

    /* CARDS GRID */
    .smf-grid{
      display:grid;
      grid-template-columns: repeat(3, minmax(0,1fr));
      gap: 14px;
    }
    .smf-card{
      background: var(--smf-card);
      border: 1px solid var(--smf-border);
      border-radius: var(--smf-radius);
      box-shadow: 0 12px 28px rgba(2,6,23,.06);
      padding: 18px;
      position:relative;
      overflow:hidden;
      transition: transform .15s ease, box-shadow .15s ease;
      min-height: 150px;
    }
    .smf-card:hover{
      transform: translateY(-2px);
      box-shadow: 0 16px 36px rgba(2,6,23,.10);
    }
    .smf-pill{
      display:inline-flex;
      align-items:center;
      gap:8px;
      padding: 6px 10px;
      border-radius: 999px;
      font-weight: 600;
      font-size: .85rem;
      background: rgba(11,107,203,.10);
      color: var(--smf-primary);
      border: 1px solid rgba(11,107,203,.15);
    }
    .smf-card h3{
      margin: 10px 0 6px;
      font-size: 1.05rem;
      color: var(--smf-ink);
    }
    .smf-card p{
      margin:0;
      color: var(--smf-muted);
      line-height: 1.55;
      text-align: justify;
    }
    .smf-card .actions{
      margin-top: 12px;
      display:flex;
      flex-wrap:wrap;
      gap: 10px;
    }
    .smf-card .actions a{
      display:inline-flex;
      align-items:center;
      gap:8px;
      text-decoration:none;
      font-weight: 700;
      color: var(--smf-primary);
    }
    .smf-card .actions a:hover{ text-decoration: underline; }

    /* BIG CTA */
    .smf-cta{
      margin-top: 10px;
      background: linear-gradient(135deg, rgba(2,6,23,.92), rgba(2,6,23,.86));
      color:#fff;
      border-radius: var(--smf-radius);
      box-shadow: var(--smf-shadow);
      padding: 22px 18px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 14px;
    }
    .smf-cta h3{ margin:0 0 6px; }
    .smf-cta p{ margin:0; opacity:.9; max-width: 70ch; text-align: justify; }

    /* FAQ */
    .smf-faq{
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }
    details.smf-qa{
      background:#fff;
      border: 1px solid var(--smf-border);
      border-radius: var(--smf-radius);
      padding: 14px 14px;
      box-shadow: 0 10px 25px rgba(2,6,23,.05);
    }
    details.smf-qa summary{
      cursor:pointer;
      font-weight: 700;
      color: var(--smf-ink);
      list-style:none;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 12px;
    }
    details.smf-qa summary::-webkit-details-marker{ display:none; }
    details.smf-qa summary .chev{ color: var(--smf-primary); }
    details.smf-qa p{
      margin:10px 0 0;
      color: var(--smf-muted);
      line-height:1.6;
      text-align: justify;
    }

    /* RESPONSIVE */
    @media (max-width: 980px){
      .smf-hero .wrap{ grid-template-columns: 1fr; }
      .smf-grid{ grid-template-columns: 1fr; }
      .smf-faq{ grid-template-columns: 1fr; }
    }
	
	
	/* Bouton retour en haut */
#backToTop {
  position: fixed;
  bottom: 90px; /* au-dessus du bouton RDV si besoin */
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0b6bcb, #00b3a6);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all .3s ease;
  z-index: 999;
}

#backToTop:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,.3);
}

/* Bouton visible */
#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================================================
   International polish: navigation, home hierarchy, services
   ========================================================= */
.top-bar {
  background: #082f49;
}

.main-header {
  top: 0;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.navbar.centered-inline-nav {
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 10px 0;
}

.logo img {
  height: 56px;
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.08));
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-menu a {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #1e293b;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  background: transparent;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.nav-menu a::after {
  display: none;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #075985;
  background: #e0f2fe;
  border-color: #bae6fd;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(14, 165, 233, 0.14);
}

.nav-menu a[href="rendezvous.html"] {
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #0284c7);
  box-shadow: 0 12px 24px rgba(2, 132, 199, 0.24);
}

.nav-menu a[href="contact.html#urgences"] {
  color: #991b1b;
  background: #fff1f2;
  border-color: #fecdd3;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #eff6ff;
}

.hero-carousel {
  margin-bottom: 0;
  background: #082f49;
}

.carousel-container {
  height: min(680px, calc(100vh - 150px));
  min-height: 500px;
}

.slide-overlay {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0%, rgba(15, 23, 42, 0.18) 48%, rgba(15, 23, 42, 0.28) 100%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.14), transparent 45%);
  backdrop-filter: saturate(115%);
}

.slide-content {
  max-width: 760px;
}

.slide-content h2 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 0.98;
  max-width: 10ch;
}

.slide-content p {
  max-width: 620px;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.patient-quick-access {
  position: relative;
  z-index: 10;
  margin-top: -48px;
  padding: 0 0 56px;
  background: linear-gradient(180deg, transparent 0%, #f8fafc 48px, #f8fafc 100%);
}

.patient-quick-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.patient-quick-card {
  min-height: 148px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  overflow: hidden;
}

.patient-quick-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.patient-quick-card i {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #e0f2fe;
  color: #0369a1;
}

.patient-quick-card.primary {
  background: linear-gradient(135deg, #075985, #0f766e);
}

.patient-quick-card.urgent {
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

.nos-prestations,
.patient-journey,
.trust-section {
  background: #f8fafc;
}

.patient-step,
.prestation-card,
.trust-metrics article {
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.smf-specialites-page {
  background:
    linear-gradient(180deg, #f8fafc 0%, #ffffff 34%, #f8fafc 100%);
}

.service-hero-redesign {
  padding: 72px 0 44px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 89, 133, 0.96), rgba(15, 118, 110, 0.92)),
    url("../images/services/cardiologie.jpg") center/cover;
}

.service-hero-redesign .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 34px;
  align-items: end;
}

.service-hero-redesign h1 {
  max-width: 780px;
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  line-height: 1;
}

.service-hero-redesign p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.service-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.service-hero-actions .btn-primary,
.service-hero-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 18px;
}

.service-hero-actions .btn-secondary {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
}

.service-hero-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.service-hero-panel div {
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 18px;
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(12px);
}

.service-hero-panel strong {
  display: block;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.service-hero-panel span {
  color: rgba(255,255,255,0.82);
}

.patient-info-band {
  margin-top: -18px;
  padding-top: 0;
  background: transparent;
}

.patient-info-grid article {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.smf-specialites-layout {
  padding: 26px 0 72px;
}

.smf-specialites-grid {
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 24px;
}

.smf-specialites-sidebar,
.smf-specialites-content {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08);
}

.smf-specialites-sidebar {
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 128px);
  overflow: auto;
}

.smf-link {
  border-radius: 14px;
  min-height: 42px;
}

.smf-link.active,
.smf-link:hover {
  background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
  color: #075985;
  transform: translateX(3px);
}

.smf-panel-head {
  background: linear-gradient(135deg, #075985, #0f766e);
  color: #fff;
}

.smf-panel-head h2 {
  color: #fff;
}

.smf-panel-media img {
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.smf-panel-body h3 {
  color: #075985;
}

@media (max-width: 980px) {
  .navbar.centered-inline-nav {
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: grid;
    grid-template-columns: 1fr;
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-menu a {
    width: 100%;
    justify-content: flex-start;
    height: 44px;
  }

  .carousel-container {
    height: 560px;
    min-height: 500px;
  }

  .patient-quick-grid,
  .service-hero-redesign .container,
  .smf-specialites-grid {
    grid-template-columns: 1fr;
  }

  .patient-quick-access {
    margin-top: 0;
    padding-top: 18px;
  }

  .smf-specialites-sidebar {
    position: static;
    max-height: none;
  }
}

@media (max-width: 560px) {
  .slide-content h2 {
    max-width: 12ch;
  }

  .carousel-container {
    height: 500px;
  }

  .service-hero-redesign {
    padding: 52px 0 32px;
  }
}

/* =========================================================
   Services section redesign: fun, clear, professional
   ========================================================= */
.specialties-showcase-intro {
  padding: 58px 0 18px;
  background:
    radial-gradient(700px 220px at 12% 0%, rgba(20, 184, 166, 0.12), transparent 70%),
    radial-gradient(700px 220px at 88% 0%, rgba(14, 165, 233, 0.12), transparent 70%),
    #f8fafc;
}

.specialties-showcase-intro .container {
  max-width: 920px;
  text-align: center;
}

.specialties-showcase-intro h2 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.specialties-showcase-intro p {
  margin: 0 auto;
  max-width: 680px;
  color: #64748b;
  font-size: 1.05rem;
}

.smf-specialites-layout {
  padding-top: 24px;
}

.smf-specialites-grid {
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
}

.smf-specialites-sidebar {
  padding: 18px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.96));
}

.smf-specialites-sidebar-title {
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 1.18rem;
}

.smf-specialites-sidebar-subtitle {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.45;
}

.smf-specialites-menu {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.smf-link {
  position: relative;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 16px;
  background: #fff;
  color: #334155;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.smf-link i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  border-radius: 12px;
  color: #0284c7;
  background: #e0f2fe;
}

.smf-link span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.smf-link:hover,
.smf-link.active {
  border-color: rgba(14, 165, 233, 0.28);
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
  color: #075985;
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.12);
}

.smf-link.active::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #14b8a6;
  box-shadow: 0 0 0 5px rgba(20, 184, 166, 0.14);
}

.smf-specialites-content {
  padding: 0;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
}

.smf-panel.active {
  display: block;
}

.smf-panel-head {
  grid-column: 1 / -1;
  padding: 22px 28px;
}

.smf-panel-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.smf-panel-media {
  padding: 24px 24px 0;
}

.smf-panel-media img {
  width: 100%;
  height: clamp(260px, 34vw, 430px);
  min-height: 0;
  object-fit: cover;
}

.smf-panel-body {
  padding: 26px 30px 34px;
}

.smf-panel-body > p:first-child {
  margin-top: 0;
  padding: 18px;
  border-radius: 18px;
  background: #f8fafc;
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.75;
}

.smf-panel-body h3 {
  display: inline-flex;
  align-items: center;
  margin: 20px 0 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfeff;
  color: #075985;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.smf-panel-body ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.smf-panel-body li {
  position: relative;
  padding: 10px 12px 10px 34px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 14px;
  background: #fff;
  color: #475569;
}

.smf-panel-body li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 1.1rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #14b8a6;
}

@media (max-width: 980px) {
  .smf-specialites-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .smf-panel-media {
    padding: 20px 20px 0;
  }

  .smf-panel-media img {
    min-height: 260px;
  }
}

@media (max-width: 620px) {
  .smf-specialites-menu {
    grid-template-columns: 1fr;
  }

  .smf-panel-body {
    padding: 22px;
  }
}

/* =========================================================
   Home prestations redesign
   ========================================================= */
.nos-prestations {
  position: relative;
  padding: 92px 0;
  overflow: hidden;
  background:
    radial-gradient(800px 280px at 12% 0%, rgba(20, 184, 166, 0.14), transparent 70%),
    radial-gradient(760px 280px at 88% 8%, rgba(14, 165, 233, 0.16), transparent 70%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 52%, #f8fafc 100%);
  text-align: left;
}

.nos-prestations::before {
  display: none;
}

.prestations-head {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.prestations-head .section-title {
  margin-bottom: 12px;
  color: #0f172a;
}

.prestations-head .section-title::after {
  background: linear-gradient(90deg, #14b8a6, #0284c7);
}

.prestations-head p {
  margin: 0 auto;
  max-width: 680px;
  color: #64748b;
  font-size: 1.05rem;
}

.prestations-slider {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  overflow: visible;
  padding: 0;
}

.prestations-slider::-webkit-scrollbar {
  display: none;
}

.prestation-card {
  position: relative;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: initial;
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.09);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.prestation-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(14, 165, 233, 0.16));
  z-index: 0;
}

.prestation-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.26);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
}

.prestation-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 4px;
  border-radius: 18px;
  background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
  color: #0369a1;
  font-size: 1.35rem;
}

.prestation-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.prestation-card h3 {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 1.18rem;
  line-height: 1.2;
}

.prestation-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.65;
  font-size: 0.94rem;
}

.btn-prestation {
  margin-top: auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
}

.btn-prestation:hover {
  background: linear-gradient(135deg, #075985, #0f766e);
}

@media (max-width: 1180px) {
  .prestations-slider {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nos-prestations {
    padding: 68px 0;
  }

  .prestations-slider {
    grid-template-columns: 1fr;
  }

  .prestation-card {
    min-height: 230px;
  }
}

/* =========================================================
   Fresh playful menu redesign
   ========================================================= */
.main-header {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.86));
  border-bottom: 1px solid rgba(14, 165, 233, 0.16);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.10);
}

.navbar.centered-inline-nav {
  min-height: 92px;
  padding: 12px 0;
  gap: 18px;
}

.logo {
  padding: 8px 12px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.logo img {
  height: 54px;
}

.nav-menu {
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(240, 253, 250, 0.92), rgba(239, 246, 255, 0.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 14px 32px rgba(15, 23, 42, 0.08);
}

.nav-menu a {
  min-width: 0;
  height: 52px;
  gap: 8px;
  padding: 0 14px;
  border-radius: 20px;
  font-family: "Trebuchet MS", "Poppins", Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
  color: #0f172a;
}

.nav-menu a::before {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  color: #0284c7;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.9rem;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.nav-menu a[href="index.html"]::before { content: "\f015"; }
.nav-menu a[href="services.html"]::before { content: "\f0f1"; }
.nav-menu a[href="medecins.html"]::before { content: "\f0f0"; }
.nav-menu a[href="partenaires.html"]::before { content: "\f2b5"; }
.nav-menu a[href="rendezvous.html"]::before { content: "\f274"; }
.nav-menu a[href="contact.html#urgences"]::before { content: "\f071"; }
.nav-menu a[href="qualite-securite.html"]::before { content: "\f058"; }
.nav-menu a[href="contact.html"]::before { content: "\f0e0"; }

.nav-menu a:hover,
.nav-menu a.active {
  color: #075985;
  background: #ffffff;
  border-color: rgba(14, 165, 233, 0.18);
  transform: translateY(-3px) rotate(-0.5deg);
  box-shadow: 0 16px 28px rgba(14, 165, 233, 0.16);
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
  color: #ffffff;
  background: linear-gradient(135deg, #14b8a6, #0284c7);
}

.nav-menu a[href="rendezvous.html"] {
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #0284c7);
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(2, 132, 199, 0.28);
}

.nav-menu a[href="rendezvous.html"]::before {
  color: #0f766e;
}

.nav-menu a[href="rendezvous.html"]:hover {
  color: #ffffff;
  transform: translateY(-4px) rotate(0.5deg);
}

.nav-menu a[href="contact.html#urgences"] {
  color: #9f1239;
  background: linear-gradient(135deg, #fff1f2, #fff7ed);
  border-color: rgba(251, 113, 133, 0.22);
}

.nav-menu a[href="contact.html#urgences"]::before {
  color: #e11d48;
  background: #ffffff;
}

.menu-toggle {
  color: #075985;
  background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.14);
}

@media (max-width: 1180px) {
  .nav-menu a {
    width: 52px;
    padding: 0;
    overflow: hidden;
    color: transparent;
  }

  .nav-menu a::before {
    margin: 0;
  }

  .nav-menu a[href="rendezvous.html"],
  .nav-menu a[href="contact.html#urgences"] {
    width: auto;
    padding: 0 12px;
    color: #ffffff;
  }

  .nav-menu a[href="contact.html#urgences"] {
    color: #9f1239;
  }
}

@media (max-width: 980px) {
  .navbar.centered-inline-nav {
    min-height: 78px;
  }

  .logo {
    padding: 6px 10px;
    border-radius: 18px;
  }

  .logo img {
    height: 48px;
  }

  .nav-menu {
    gap: 8px;
    padding: 12px;
    border-radius: 24px;
  }

  .nav-menu a,
  .nav-menu a[href="rendezvous.html"],
  .nav-menu a[href="contact.html#urgences"] {
    width: 100%;
    height: 50px;
    justify-content: flex-start;
    padding: 0 12px;
    color: #0f172a;
    overflow: visible;
  }

  .nav-menu a[href="rendezvous.html"] {
    color: #ffffff;
  }

  .nav-menu a[href="contact.html#urgences"] {
    color: #9f1239;
  }
}

/* Menu cleanup: remove the desktop background container */
.nav-menu {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 980px) {
  .nav-menu {
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  }
}

/* Carousel polish */
.hero-carousel {
  background: #082f49;
}

.carousel-container {
  height: 640px;
  min-height: 520px;
  max-height: calc(100vh - 132px);
  isolation: isolate;
  overflow: hidden;
}

.carousel-slide {
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transform: scale(1.01);
  transition: opacity 700ms ease, transform 900ms ease;
}

.carousel-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.72) 0%, rgba(2, 6, 23, 0.42) 46%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.42) 0%, transparent 42%);
}

.carousel-slide.active {
  transform: scale(1);
}

.slide-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.slide-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-position: center;
  transform: scale(1.015);
}

.slide-overlay {
  display: none;
}

.slide-content {
  z-index: 3;
  left: max(6vw, 72px);
  right: 96px;
  max-width: 720px;
  text-shadow: 0 2px 18px rgba(2, 6, 23, 0.42);
}

.slide-content h2 {
  max-width: 720px;
  font-size: 4rem;
  line-height: 1.05;
  margin-bottom: 16px;
}

.slide-content p {
  max-width: 620px;
  font-size: 1.25rem;
  line-height: 1.55;
}

.carousel-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(2, 6, 23, 0.38);
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.22);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.carousel-control:hover,
.carousel-control:focus-visible {
  background: rgba(24, 119, 242, 0.88);
  border-color: rgba(255, 255, 255, 0.72);
  transform: translateY(-50%) scale(1.04);
  outline: none;
}

.carousel-control.prev {
  left: 24px;
}

.carousel-control.next {
  right: 24px;
}

.carousel-indicators {
  bottom: 28px;
  gap: 12px;
}

.indicator {
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  opacity: 1;
  transition: width 180ms ease, background 180ms ease;
}

.indicator.active,
.indicator:focus-visible {
  width: 48px;
  background: #1877f2;
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
}

.carousel-container.is-static .carousel-control,
.carousel-container.is-static .carousel-indicators {
  display: none;
}

@media (max-width: 900px) {
  .carousel-container {
    height: 560px;
    min-height: 480px;
    max-height: none;
  }

  .slide-content {
    left: 32px;
    right: 32px;
    max-width: 620px;
  }

  .slide-content h2 {
    font-size: 3rem;
  }

  .slide-content p {
    font-size: 1.1rem;
  }
}

@media (max-width: 640px) {
  .carousel-container {
    height: 500px;
    min-height: 500px;
  }

  .slide-overlay {
    display: none;
  }

  .carousel-slide::before {
    background:
      linear-gradient(0deg, rgba(2, 6, 23, 0.78) 0%, rgba(2, 6, 23, 0.32) 68%, rgba(2, 6, 23, 0.18) 100%);
  }

  .slide-content {
    top: auto;
    bottom: 88px;
    left: 24px;
    right: 24px;
    transform: none;
  }

  .slide-content h2 {
    font-size: 2.25rem;
    line-height: 1.08;
  }

  .slide-content p {
    font-size: 1rem;
    line-height: 1.45;
  }

  .carousel-control {
    top: auto;
    bottom: 24px;
    width: 42px;
    height: 42px;
    font-size: 1.9rem;
    transform: none;
  }

  .carousel-control:hover,
  .carousel-control:focus-visible {
    transform: scale(1.04);
  }

  .carousel-control.prev {
    left: 24px;
  }

  .carousel-control.next {
    right: 24px;
  }

  .carousel-indicators {
    bottom: 42px;
  }
}
/* Affiche les photos du carrousel sans filtre sombre. */
.hero-carousel .carousel-slide::before,
.hero-carousel .slide-overlay {
  display: none;
  background: none;
  backdrop-filter: none;
}

/* Alignement de la section de présentation sur la grille principale. */
#historique-hme .container-historique {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

#historique-hme .historique-texte h2 {
  margin-top: 0;
  margin-inline: 0;
  text-align: left;
  line-height: 1.2;
}

/* Les visuels remplissent intégralement chaque slide. */
.hero-carousel,
.hero-carousel .carousel-container,
.hero-carousel .carousel-slide,
.hero-carousel .slide-image {
  width: 100%;
  max-width: none;
}

.hero-carousel .slide-image img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-carousel .carousel-container {
  position: relative;
}

.hero-carousel .carousel-slide,
.hero-carousel .slide-image {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 100%;
}

.hero-carousel .slide-image img {
  position: absolute;
  inset: 0;
  height: 100% !important;
  min-height: 100%;
  object-fit: fill;
}

.hero-carousel,
.hero-carousel .carousel-container,
.hero-carousel .carousel-slide,
.hero-carousel .slide-image {
  background-color: #ffffff;
}

/* Le slider commence immédiatement sous le menu. */
.main-header {
  margin-bottom: 0;
}

.main-header + .hero-carousel,
.hero-carousel#accueil {
  margin-top: 0;
  padding-top: 0;
}

/* Barre d'urgence retirée sur l'ensemble du site. */
.emergency-strip,
.emergency-strip-contact {
  display: none !important;
}

/* Le rendez-vous flottant apparaît uniquement après le slider. */
.floating-rdv {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) scale(.96);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}

.floating-rdv.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.floating-rdv.is-visible:hover {
  transform: translateY(-3px) scale(1.02);
}

/* Une seule commande de retour en haut, plus lisible et accessible. */
.back-to-top {
  display: none !important;
}

#backToTop {
  right: 22px;
  bottom: 96px;
  width: 56px;
  height: 56px;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 18px;
  background: linear-gradient(145deg, #1877f2, #0756b8);
  font-size: 20px;
  box-shadow: 0 12px 30px rgba(15, 76, 150, .32), 0 0 0 4px rgba(24, 119, 242, .12);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease, box-shadow .25s ease;
}

#backToTop:hover,
#backToTop:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 76, 150, .4), 0 0 0 5px rgba(24, 119, 242, .18);
}

#backToTop:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}

#backToTop:active {
  transform: translateY(-1px) scale(.96);
}

@media (max-width: 640px) {
  #backToTop {
    right: 16px;
    bottom: 88px;
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }
}

/* Parcours patient : lecture plus claire et grille équilibrée. */
.nos-prestations {
  padding-block: 96px;
}

.nos-prestations .prestations-head {
  max-width: none;
  margin: 0 0 46px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  grid-template-areas:
    "kicker description"
    "title description";
  column-gap: 72px;
  row-gap: 8px;
  align-items: center;
  text-align: left;
}

.nos-prestations .prestations-head .quality-kicker {
  grid-area: kicker;
  justify-self: start;
}

.nos-prestations .prestations-head .section-title {
  grid-area: title;
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 3.6rem);
  line-height: 1.05;
}

.nos-prestations .prestations-head .section-title::after {
  margin: 18px 0 0;
}

.nos-prestations .prestations-head p {
  grid-area: description;
  max-width: 620px;
  margin: 0;
  padding-left: 28px;
  border-left: 3px solid #14b8a6;
  color: #475569;
  font-size: 1.08rem;
  line-height: 1.75;
}

.nos-prestations .prestations-slider {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

.nos-prestations .prestation-card {
  grid-column: span 2;
  min-height: 320px;
  padding: 28px;
}

.nos-prestations .prestation-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.nos-prestations .prestation-card:nth-child(5) {
  grid-column: 4 / span 2;
}

@media (max-width: 980px) {
  .nos-prestations .prestations-head {
    grid-template-columns: 1fr;
    grid-template-areas: "kicker" "title" "description";
    gap: 12px;
  }

  .nos-prestations .prestations-head p {
    margin-top: 12px;
  }

  .nos-prestations .prestations-slider {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nos-prestations .prestation-card,
  .nos-prestations .prestation-card:nth-child(4),
  .nos-prestations .prestation-card:nth-child(5) {
    grid-column: auto;
  }

  .nos-prestations .prestation-card:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 11px);
    width: 100%;
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .nos-prestations {
    padding-block: 68px;
  }

  .nos-prestations .prestations-head {
    margin-bottom: 30px;
  }

  .nos-prestations .prestations-head p {
    padding-left: 18px;
    font-size: 1rem;
  }

  .nos-prestations .prestations-slider {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .nos-prestations .prestation-card,
  .nos-prestations .prestation-card:last-child {
    grid-column: auto;
    max-width: none;
    min-height: 260px;
  }
}

/* Version premium : les cinq étapes restent sur une seule ligne. */
.nos-prestations .prestations-slider {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  overflow: visible;
}

/* L'accueil présente quatre prestations : elles occupent une grille centrée. */
.nos-prestations .prestations-slider--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nos-prestations .prestation-card,
.nos-prestations .prestation-card:nth-child(4),
.nos-prestations .prestation-card:nth-child(5),
.nos-prestations .prestation-card:last-child {
  grid-column: auto;
  width: auto;
  max-width: none;
  min-height: 340px;
  padding: 22px 20px;
  overflow: hidden;
  border: 1px solid rgba(14, 116, 144, .13);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(240, 249, 255, .92));
  box-shadow:
    0 18px 42px rgba(15, 76, 120, .09),
    inset 0 1px 0 rgba(255, 255, 255, .95);
}

.nos-prestations .prestation-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #14b8a6, #0284c7, #2563eb);
}

.nos-prestations .prestation-card::after {
  width: 92px;
  height: 92px;
  right: -28px;
  bottom: -30px;
  border-radius: 50%;
  filter: blur(1px);
}

.nos-prestations .prestation-card:hover {
  transform: translateY(-8px);
  border-color: rgba(2, 132, 199, .3);
  box-shadow:
    0 26px 58px rgba(15, 76, 120, .16),
    0 0 0 1px rgba(20, 184, 166, .08);
}

.nos-prestations .prestation-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 15px;
  box-shadow: inset 0 0 0 1px rgba(14, 116, 144, .08);
}

.nos-prestations .prestation-tag {
  min-height: 25px;
  padding-inline: 9px;
  font-size: .7rem;
  letter-spacing: .04em;
}

.nos-prestations .prestation-card h3 {
  font-size: 1.08rem;
}

.nos-prestations .prestation-card p {
  font-size: .88rem;
  line-height: 1.58;
}

.nos-prestations .btn-prestation {
  width: 100%;
  min-height: 42px;
  position: relative;
  z-index: 1;
  border-radius: 13px;
  background: linear-gradient(135deg, #0f766e, #0369a1);
  box-shadow: 0 8px 18px rgba(3, 105, 161, .17);
}

@media (max-width: 1180px) {
  .nos-prestations .prestations-slider {
    display: flex;
    gap: 16px;
    margin-inline: -20px;
    padding: 6px 20px 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .nos-prestations .prestations-slider::-webkit-scrollbar {
    display: none;
  }

  .nos-prestations .prestation-card,
  .nos-prestations .prestation-card:nth-child(4),
  .nos-prestations .prestation-card:nth-child(5),
  .nos-prestations .prestation-card:last-child {
    flex: 0 0 min(310px, 82vw);
    min-height: 320px;
    scroll-snap-align: start;
  }
}

/* Système de titres commun à toutes les pages. */
:root {
  --smf-title-color: #0f2744;
  --smf-title-accent: linear-gradient(90deg, #14b8a6, #0284c7, #2563eb);
}

section h1,
.smf-hero h1,
.contact-hero h1,
.partners-hero h1,
.rdv-hero h1,
.quality-hero h1 {
  margin: 0 0 18px;
  color: var(--smf-title-color);
  font-family: "Poppins", "Roboto", sans-serif;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.section-title,
.prestations-head .section-title,
#historique-hme h2,
.smf-section-title h2,
.partners-results-title,
.contact-page section > .container > h2,
.quality-page section > .container > h2 {
  position: relative;
  margin: 0 0 34px;
  padding-bottom: 18px;
  color: var(--smf-title-color);
  font-family: "Poppins", "Roboto", sans-serif;
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.section-title::after,
.prestations-head .section-title::after,
#historique-hme h2::after,
.smf-section-title h2::after,
.partners-results-title::after {
  content: "";
  display: block;
  width: 76px;
  height: 4px;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--smf-title-accent);
}

/* Titres des spécialités : même signature, format adapté aux panneaux. */
.smf-panel-head h2 {
  margin: 0;
  color: var(--smf-title-color);
  font-family: "Poppins", "Roboto", sans-serif;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.smf-panel-head {
  position: relative;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(15, 39, 68, .1);
}

.smf-panel-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 58px;
  height: 3px;
  border-radius: 999px;
  background: var(--smf-title-accent);
}

.smf-specialites-sidebar-title,
.partners-box-title {
  color: var(--smf-title-color);
  font-family: "Poppins", "Roboto", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
}

@media (max-width: 640px) {
  section h1,
  .smf-hero h1,
  .contact-hero h1,
  .partners-hero h1,
  .rdv-hero h1,
  .quality-hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .section-title,
  .prestations-head .section-title,
  #historique-hme h2,
  .smf-section-title h2,
  .partners-results-title {
    margin-bottom: 26px;
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }
}

/* Priorité finale des correctifs responsive (après les styles historiques). */
.hero-carousel .carousel-container {
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 16 / 9;
}
.hero-carousel .carousel-slide,
.hero-carousel .slide-image { min-height: 0; }
.hero-carousel .slide-image img {
  height: 100% !important;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  transform: none;
}
.alaxione-widget-full {
  height: clamp(850px, 105vh, 1120px);
  min-height: 850px;
}

@media (max-width: 980px) {
  .smf-specialites-grid { gap: 16px; }
  .smf-specialites-sidebar { padding: 14px; overflow: hidden; }
  .smf-specialites-menu {
    display: flex;
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
  .smf-specialites-menu li { flex: 0 0 auto; scroll-snap-align: start; }
  .smf-link { width: auto; min-width: max-content; min-height: 46px; }
  .smf-link.active::after { display: none; }
  .smf-specialites-content { scroll-margin-top: 92px; }
}

@media (max-width: 640px) {
  .hero-carousel .carousel-container { height: auto; min-height: 0; }
  .hero-carousel .carousel-control {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
  .hero-carousel .carousel-control:hover,
  .hero-carousel .carousel-control:focus-visible {
    transform: translateY(-50%) scale(1.04);
  }
  .hero-carousel .carousel-control.prev { left: 10px; }
  .hero-carousel .carousel-control.next { right: 10px; }
  .hero-carousel .carousel-indicators { bottom: 12px; }
  .alaxione-widget-full { height: 1200px; min-height: 1200px; }
  .smf-panel-media img { height: auto; min-height: 0; max-height: 320px; }
  .smf-panel-body { padding: 18px; overflow-wrap: anywhere; }
}

/* Cascade premium finale : garantit la priorité sur les styles historiques. */
html { overflow-x: hidden; scroll-padding-top: 104px; }
body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--premium-canvas);
  color: var(--premium-ink);
  -webkit-font-smoothing: antialiased;
}
body.menu-is-open { overflow: hidden; }
img, video, iframe, object { max-width: 100%; }
.container, .container-historique, .smf-container {
  width: min(var(--premium-container), calc(100% - 40px));
  margin-inline: auto;
}
.main-header {
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--premium-line);
  box-shadow: 0 8px 30px rgba(15,39,68,.06);
  backdrop-filter: blur(16px) saturate(140%);
}
.navbar.centered-inline-nav {
  width: min(var(--premium-container), calc(100% - 40px));
  min-height: 76px;
  margin-inline: auto;
  padding: 8px 0;
}
.nav-menu { gap: 4px; }
.nav-menu a { min-height: 42px; color: #243b53; white-space: nowrap; }
.nav-menu a.active { background: #e7f5ff; color: var(--premium-blue); }
.btn-primary, .btn-secondary, .btn-prestation, .btn-praticien,
.emergency-rdv, .smf-hero-actions a, .quality-actions a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 14px;
  font-weight: 700;
  text-align: center;
}
.patient-quick-card, .patient-step, .prestation-card,
.quality-grid article, .rdv-checklist-grid article,
.contact-routing-grid article, .contact-card, .partners-box, .smf-card {
  border: 1px solid var(--premium-line);
  border-radius: var(--premium-radius);
  background: rgba(255,255,255,.96);
  box-shadow: var(--premium-shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.patient-quick-card:hover, .patient-step:hover, .prestation-card:hover,
.quality-grid article:hover, .rdv-checklist-grid article:hover,
.contact-routing-grid article:hover, .partners-box:hover, .smf-card:hover {
  transform: translateY(-5px);
  border-color: rgba(14,165,233,.24);
  box-shadow: var(--premium-shadow-hover);
}
.hero-carousel .carousel-container {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: min(72vh, 760px);
  aspect-ratio: 16 / 9;
  background: #eaf2f8;
}
.hero-carousel .carousel-slide, .hero-carousel .slide-image { min-height: 0; }
.hero-carousel .slide-image img {
  width: 100%;
  height: 100% !important;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  transform: none;
}
.smf-specialites-sidebar, .smf-specialites-content {
  border-color: var(--premium-line);
  box-shadow: var(--premium-shadow);
}
.smf-specialites-content { min-width: 0; }
.smf-panel-head { background: linear-gradient(135deg, #f8fbff, #edf7fb); }
.smf-panel-media img { display: block; width: 100%; object-position: center; }
.smf-rdv-widget-full {
  width: min(1440px, 100%);
  margin-inline: auto;
  padding: 24px clamp(12px, 3vw, 34px) 38px;
}
.alaxione-widget-full, .alaxione-widget {
  display: block;
  width: 100%;
  border: 1px solid var(--premium-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--premium-shadow);
}
.alaxione-widget-full { height: clamp(900px, 110vh, 1160px); min-height: 900px; }
input, select, textarea {
  max-width: 100%;
  min-height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
}
.newsletter { background: linear-gradient(135deg, #075985, #0f766e); }
.main-footer { background: #071d2f; }

@media (max-width: 980px) {
  .navbar.centered-inline-nav { width: calc(100% - 32px); min-height: 70px; }
  .menu-toggle {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--premium-line);
    border-radius: 14px;
    background: #f8fbff;
  }
  .nav-menu { max-height: calc(100vh - 100px); overflow-y: auto; }
  .nav-menu a { min-height: 48px; padding: 10px 14px; }
  .smf-specialites-menu {
    display: flex;
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    padding: 3px 3px 12px;
    scroll-snap-type: x proximity;
  }
  .smf-specialites-menu li { flex: 0 0 auto; scroll-snap-align: start; }
  .smf-link { width: auto; min-width: max-content; }
  .smf-specialites-content { scroll-margin-top: 88px; }
  .footer-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 80px; }
  .container, .container-historique, .smf-container,
  .navbar.centered-inline-nav { width: calc(100% - 28px); }
  .top-bar { display: none; }
  .navbar.centered-inline-nav { min-height: 66px; }
  .logo img { height: 48px; max-width: 180px; }
  .hero-carousel .carousel-container {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 9;
  }
  .hero-carousel .carousel-control {
    top: 50%;
    bottom: auto;
    width: 38px;
    height: 38px;
    transform: translateY(-50%);
  }
  .hero-carousel .carousel-control.prev { left: 8px; }
  .hero-carousel .carousel-control.next { right: 8px; }
  .hero-carousel .carousel-indicators { bottom: 10px; }
  .patient-quick-grid, .patient-journey-grid, .rdv-checklist-grid,
  .contact-routing-grid, .quality-grid, .footer-content {
    grid-template-columns: 1fr;
  }
  section p, .smf-panel-body p, .smf-panel-body li {
    text-align: left;
    line-height: 1.65;
  }
  .smf-specialites-layout { padding: 18px 0 42px; }
  .smf-specialites-sidebar { padding: 12px; border-radius: 18px; }
  .smf-specialites-content { border-radius: 18px; }
  .smf-panel-head { padding: 17px 18px; }
  .smf-panel-media { padding: 12px 12px 0; }
  .smf-panel-media img { height: auto; min-height: 0; max-height: 300px; }
  .smf-panel-body { padding: 16px; overflow-wrap: anywhere; }
  .smf-rdv-widget-full { padding: 14px 8px 28px; }
  .alaxione-widget-full { height: 1200px; min-height: 1200px; border-radius: 14px; }
  .newsletter-form { width: 100%; flex-direction: column; }
  .newsletter-form input, .newsletter-form .btn-primary { width: 100%; }
}

@media (max-width: 380px) {
  .container, .container-historique, .smf-container,
  .navbar.centered-inline-nav { width: calc(100% - 20px); }
  .logo img { max-width: 150px; height: 44px; }
  .floating-rdv .rdv-text { display: none; }
}

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

/* Hauteur finale du module de rendez-vous. */
.smf-rdv-section-full,
.alaxione-widget-full { min-height: 1350px; }
.alaxione-widget-full { height: 1350px; }

@media (max-width: 980px) {
  .smf-rdv-section-full,
  .alaxione-widget-full { min-height: 1500px; }
  .alaxione-widget-full { height: 1500px; }
}

@media (max-width: 640px) {
  .smf-rdv-section-full,
  .alaxione-widget-full { min-height: 1650px; }
  .alaxione-widget-full { height: 1650px; }
}

/* Dimension explicite du conteneur Alaxione demandé sur l'accueil. */
.smf-rdv-widget-full {
  box-sizing: border-box;
  height: 1800px;
  min-height: 1800px;
}

.smf-rdv-widget-full > .alaxione-widget-full {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

@media (max-width: 980px) {
  .smf-rdv-widget-full {
    height: 1900px;
    min-height: 1900px;
  }
}

@media (max-width: 640px) {
  .smf-rdv-widget-full {
    height: 2050px;
    min-height: 2050px;
  }
}

/* Ajustements demandés : visuels plein cadre et barre supérieure lisible. */
.hero-carousel .slide-image img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
}

.top-bar {
  background: #082f49;
  color: #bae6fd;
}

.top-bar .contact-info {
  margin: 0;
  padding: 0;
  background: transparent;
  color: #bae6fd;
  box-shadow: none;
}

.top-bar .contact-info span,
.top-bar .contact-info a,
.top-bar .social-links a {
  color: #bae6fd;
  text-shadow: none;
}

.top-bar .contact-info i,
.top-bar .social-links i {
  color: #fb923c;
}

.top-bar .btn-outline {
  border-color: rgba(251,146,60,.7);
  color: #fed7aa;
  background: transparent;
}

@media (max-width: 640px) {
  .top-bar {
    display: block;
    padding: 8px 0;
    font-size: .76rem;
  }

  .top-bar-content {
    align-items: stretch;
    gap: 8px;
  }

  .top-bar .contact-info {
    display: grid;
    gap: 5px;
  }

  .top-bar-buttons,
  .top-bar .social-links {
    display: none;
  }
}

/* Priorité mobile finale : affiche chaque bannière dans son intégralité. */
@media (max-width: 980px) {
  .hero-carousel,
  .hero-carousel .carousel-container,
  .hero-carousel .carousel-slide,
  .hero-carousel .slide-image {
    background: #ffffff;
  }

  .hero-carousel .slide-image img {
    width: 100%;
    height: 100% !important;
    object-fit: contain;
    object-position: center;
  }
}

/* Priorité finale PC : aucune information incorporée aux images n'est rognée. */
.hero-carousel,
.hero-carousel .carousel-container,
.hero-carousel .carousel-slide,
.hero-carousel .slide-image {
  background: #ffffff;
}

.hero-carousel .slide-image img {
  width: 100%;
  height: 100% !important;
  object-fit: contain;
  object-position: center;
  transform: none;
}

/* Largeur finale du slide et de ses images. */
.hero-carousel,
.hero-carousel .carousel-container,
.hero-carousel .carousel-slide,
.hero-carousel .slide-image {
  width: 100vw;
  max-width: 100vw;
}

.hero-carousel .carousel-container { aspect-ratio: 2 / 1; }

.hero-carousel .slide-image img {
  width: 100vw !important;
  max-width: 100vw !important;
}

@media (max-width: 980px) {
  .hero-carousel .carousel-container { aspect-ratio: 16 / 9; }
}

/* Images bord à bord : aucune marge latérale dans le slide. */
.hero-carousel .slide-image img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 100% !important;
  object-fit: fill;
  object-position: center;
}
