      :root {
      --primary: #8f0518;
      --primary-dark: #6b0312;
      --primary-light: #fceeee;
      --secondary: #1a1a2e;
      --gold: #d4a853;
    }

    /* ===== SECTION TITLE ===== */
    .section-title-custom {
      text-align: center;
      margin-bottom: 50px;
    }
    .section-title-custom h2 {
      font-size: 2.5rem;
      font-weight: 700;
      color: var(--secondary);
    }
    .section-title-custom h2 span {
      color: var(--primary);
    }
    .section-title-custom .subtitle {
      color: #6c757d;
      font-size: 1.1rem;
      max-width: 700px;
      margin: 10px auto 0;
    }

    /* ===== BOUTONS ===== */
    .btn-primary-custom {
      background-color: var(--primary);
      border-color: var(--primary);
      color: #fff;
      padding: 12px 30px;
      border-radius: 50px;
      font-weight: 600;
      transition: all 0.3s ease;
    }
    .btn-primary-custom:hover {
      background-color: var(--primary-dark);
      border-color: var(--primary-dark);
      transform: translateY(-2px);
      box-shadow: 0 10px 25px rgba(143, 5, 24, 0.3);
      color: #fff;
    }
    .btn-outline-custom {
      border: 2px solid var(--primary);
      color: var(--primary);
      padding: 12px 30px;
      border-radius: 50px;
      font-weight: 600;
      transition: all 0.3s ease;
      background: transparent;
    }
    .btn-outline-custom:hover {
      background-color: var(--primary);
      color: #fff;
      transform: translateY(-2px);
    }

    /* ===== CARDS ===== */
    .card-hover {
      border: none;
      border-radius: 16px;
      transition: all 0.3s ease;
      height: 100%;
      box-shadow: 0 4px 15px rgba(0,0,0,0.06);
      border: 1px solid #eef2f6;
      overflow: hidden;
      background: white;
    }
    .card-hover:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 40px -12px rgba(0,0,0,0.15);
    }
    .card-hover .card-img-top {
      height: 220px;
      object-fit: cover;
    }

    .icon-circle-custom {
      width: 60px;
      height: 60px;
      background: var(--primary-light);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1rem;
    }
    .icon-circle-custom i {
      font-size: 1.8rem;
      color: var(--primary);
    }


    /* ===== SECTION AVEC PHOTO + TEXTE ===== */
    .content-block {
      padding: 80px 0;
    }
    .content-block .image-wrapper {
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    }
    .content-block .image-wrapper img {
      width: 100%;
      height: 400px;
      object-fit: cover;
      transition: transform 0.5s ease;
    }
    .content-block .image-wrapper:hover img {
      transform: scale(1.03);
    }
    .content-block .content-text h3 {
      font-size: 2rem;
      font-weight: 700;
      color: var(--secondary);
    }
    .content-block .content-text h3 span {
      color: var(--primary);
    }
    .content-block .content-text .highlight-box {
      background: var(--primary-light);
      border-left: 4px solid var(--primary);
      padding: 20px 25px;
      border-radius: 0 12px 12px 0;
      margin: 20px 0;
    }

    /* ===== STATS ===== */
    .stats-section {
      background: var(--secondary);
      color: white;
      padding: 60px 0;
    }
    .stats-section .stat-number {
      font-size: 3.5rem;
      font-weight: 800;
      color: var(--gold);
    }

    /* ===== TIMELINE ===== */
    .timeline-item {
      border-left: 3px solid var(--primary);
      padding-left: 25px;
      margin-bottom: 30px;
      position: relative;
    }
    .timeline-item::before {
      content: '';
      width: 14px;
      height: 14px;
      background: var(--primary);
      border-radius: 50%;
      position: absolute;
      left: -8px;
      top: 5px;
      border: 3px solid white;
      box-shadow: 0 0 0 3px var(--primary);
    }
    .timeline-item .year {
      font-weight: 700;
      color: var(--primary);
      font-size: 1.2rem;
    }

    /* ===== PATIENT STEPS ===== */
    .step-card {
      text-align: center;
      padding: 30px 20px;
      border-radius: 16px;
      background: white;
      border: 1px solid #eef2f6;
      transition: all 0.3s ease;
      height: 100%;
    }
    .step-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    }
    .step-card .step-number {
      width: 50px;
      height: 50px;
      background: var(--primary);
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.3rem;
      font-weight: 700;
      margin: 0 auto 15px;
    }

    /* ===== BADGE ===== */
    .badge-custom {
      background-color: var(--primary);
      color: #fff;
      padding: 6px 18px;
      border-radius: 30px;
      font-weight: 600;
      font-size: 0.85rem;
    }

    /* ===== SECTIONS ===== */
    .section-padding {
      padding: 80px 0;
    }
    .section-bg-light {
      background: #f8f9fa;
    }

    /* ===== ORGANIGRAMME ===== */
    .org-card {
      background: white;
      border-radius: 12px;
      padding: 20px;
      border-left: 4px solid var(--primary);
      box-shadow: 0 2px 10px rgba(0,0,0,0.05);
      margin-bottom: 15px;
      transition: all 0.3s ease;
    }
    .org-card:hover {
      transform: translateX(5px);
      box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    }
    .org-card h6 {
      color: var(--primary);
      font-weight: 700;
    }

    /* ===== FOOTER ===== */
    .footer-16 {
      background: var(--secondary);
      color: rgba(255,255,255,0.8);
    }
    .footer-16 .sitename {
      color: white;
      font-size: 1.5rem;
      font-weight: 700;
    }
    .footer-16 .footer-nav a {
      color: rgba(255,255,255,0.7);
      text-decoration: none;
      display: block;
      padding: 5px 0;
      transition: 0.3s;
    }
    .footer-16 .footer-nav a:hover {
      color: white;
    }
    .footer-bottom {
      border-top: 1px solid rgba(255,255,255,0.1);
      padding: 20px 0;
    }



    

    /* ===== RESPONSIVE ===== */
    @media (max-width: 991px) {
      .hero {
        padding-top: 100px !important;
      }
      .contact-info {
        display: none;
      }
      .top-links {
        justify-content: center;
        width: 100%;
      }
      .content-block .image-wrapper img {
        height: 250px;
      }
      .urgence-section .urgence-title {
        font-size: 2.2rem;
      }
    }  
      
      


      /* Header */
      .header {
          box-shadow: 0 2px 15px rgba(0,0,0,0.08);
          background: #fff;
      }

      /* Décaler le Hero sous le header */
      .hero {
          padding-top: 110px !important;
      }

      
      /* Branding */
      .branding {
          background: #fff;
          min-height: 90px;
          border-bottom: 1px solid #eaeaea;
      }

      /* Logo */
      .logo img {
          max-height: 65px;
      }

      .logo .sitename {
          font-size: 28px;
          font-weight: 700;
          color: #0d6efd;
      }

      /* Slogan */
      .logo small {
          font-size: 13px;
          color: #6c757d !important;
      }

      /* Menu */
      .navmenu ul li a {
          font-weight: 600;
          color: #222;
          padding: 10px 15px;
          transition: all .3s ease;
      }


      /* Hero */
      .hero-content h1 {
          font-size: 3.2rem;
          font-weight: 800;
          line-height: 1.2;
      }

      .hero-description {
          font-size: 18px;
          color: #666;
      }

      .hero-actions .btn-primary {
          padding: 14px 32px;
          border-radius: 50px;
          font-weight: 600;
      }

      .hero-actions .btn-outline {
          padding: 14px 32px;
          border-radius: 50px;
      }

      /* Cartes flottantes */
      .floating-card {
          border-radius: 20px;
          box-shadow: 0 15px 40px rgba(0,0,0,0.12);
          background: #fff;
      }

      /* Responsive */
      @media(max-width:991px){

          .hero{
              padding-top: 110px !important;
          }

          .contact-info{
              display:none;
          }

          .top-links{
              justify-content:center;
              width:100%;
          }
      }


      .mobile-only{
          display:none;
      }

      @media (max-width:1199px){

          .mobile-only{
              display:block !important;
          }

      }

        .section-header-hero {
      position: relative;
      
      margin-top: 140px; 
      
      background-image: url('../../assets/img/health/facilities-6.webp'); 
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      padding: 60px 0; /* Hauteur interne du header */
      text-align: center;
      color: #ffffff;
    }

    /* Calque sombre pour garantir la lisibilité du texte blanc */
    .section-header-hero::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.75); /* Bleu médical profond semi-transparent */
      z-index: 1;
    }

    

    /* Force le contenu à passer au-dessus du calque */
    .section-header-hero .header-container {
      position: relative;
      z-index: 2;
      font-family: 'Montserrat', 'Segoe UI', sans-serif;
    }

    .section-header-hero h1 {
      font-size: 2.2rem;
      font-weight: 700;
      margin-bottom: 10px;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    /* Style du petit fil d'ariane (navigation) */
    .section-header-hero .breadcrumb {
      display: flex;
      justify-content: center;
      background: transparent;
      margin: 0;
      padding: 0;
      font-size: 0.9rem;
    }

    .section-header-hero .breadcrumb a {
      color: #a0c4ff; /* Bleu très clair */
      text-decoration: none;
      transition: color 0.2s;
    }

    .section-header-hero .breadcrumb a:hover {
      color: #ffffff;
    }

    .section-header-hero .breadcrumb-item + .breadcrumb-item::before {
      color: rgba(255, 255, 255, 0.6);
      content: "•";
      padding: 0 10px;
    }
    
    .section-header-hero .breadcrumb-item.active {
      color: #ffffff;
      opacity: 0.9;
    }

    /* Ajustement responsive si la navbar change de taille sur mobile */
    @media (max-width: 768px) {
      .section-header-hero {
        margin-top: 70px; /* Souvent plus petite sur mobile */
        padding: 40px 0;
      }
      .section-header-hero h1 {
        font-size: 1.8rem;
      }
    }
        .card-department {
          border: none;
          border-radius: 1.2rem;
          transition: 0.25s ease;
          height: 100%;
          box-shadow: 0 6px 14px rgba(252, 0, 0, 0.02);
          background: white;
          border: 1px solid #eef2f6;
        }
        .card-department:hover {
          transform: translateY(-5px);
          box-shadow: 0 20px 30px -12px rgba(248, 2, 2, 0.08);
          border-color: #dce5ec;
        }
        /* Carte cliquable : ouvre le service correspondant sur la page Services médicaux */
        .lien-departement {
          display: block;
          color: inherit;
          text-decoration: none;
        }
        .lien-departement:hover h5,
        .lien-departement:focus-visible h5 {
          color: #8f0518;
        }
        .lien-departement:focus-visible {
          outline: 2px solid #8f0518;
          outline-offset: 3px;
        }
        .icon-circle {
          width: 55px;
          height: 55px;
          background: #fceeee;
          border-radius: 30px;
          display: flex;
          align-items: center;
          justify-content: center;
          margin-bottom: 1.2rem;
        }
        .icon-circle i {
          font-size: 1.8rem;
          color: var(--primary);
        }
        .timeline-item {
          border-left: 3px solid var(--primary);
          padding-left: 1.5rem;
          margin-bottom: 1.8rem;
        }
        .patient-step {
          display: flex;
          gap: 1rem;
          margin-bottom: 1.5rem;
          align-items: flex-start;
        }
        .step-number {
          width: 40px;
          height: 40px;
          background: var(--primary);
          color: white;
          border-radius: 40px;
          display: flex;
          align-items: center;
          justify-content: center;
          font-weight: 700;
          flex-shrink: 0;
        }

        /* ===== ANTI-OVERFLOW RESPONSIVE ===== */

/* 1. Empêcher tout débordement au niveau de la structure principale */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

/* 2. Rendre tous les éléments média et images parfaitement responsifs */
img, svg, video, canvas, iframe {
  max-width: 100% !important;
  height: auto;
}

/* 3. Sécuriser les conteneurs Bootstrap et éléments de mise en page */
.container, 
.container-fluid, 
.row, 
.main, 
header, 
footer {
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Fix spécifique Bootstrap : neutraliser les marges négatives des rows qui dépassent */
.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ===== AJUSTEMENTS MOBILE PARTICULIERS ===== */

@media (max-width: 768px) {
  /* Empêcher les textes longs d'étirer l'écran */
  h1, h2, h3, h4, h5, h6, p, a, span {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Correction du Header & Hero sur mobile */
  .section-header-hero h1 {
    font-size: 1.6rem !important;
  }

  /* Ajustement de la Topbar si elle dépasse */
  .topbar .contact-info span, 
  .topbar .contact-info a {
    font-size: 0.8rem;
    white-space: nowrap;
  }
}