/* === FOOTER PRINCIPAL === */

/* ========================================================= */
/* === GESTION DU DISPLAY PC/MOBILE (Globale par défaut) === */
/* ========================================================= */

/* Par défaut (PC, Laptop, et tout ce qui est > 992px) : */

/* 1. On affiche le Header Desktop (votre header PC original). */
.header-desktop { 
    display: block !important; 
}

/* 2. On cache le Header Mobile sur ces grands écrans. */
.header-mobile { 
    display: none !important; 
}

/*------------------------**************************-------------------------*********************----******-*-*/

.footer-mwt {
    background: linear-gradient(
        to top,
        rgba(15, 15, 15, 0.9) 0%,
        rgba(15, 15, 15, 0.85) 100%
    );
    color: #f0ead6;
    padding-top: 50px;
    font-size: 16px;
}
.footer-mwt .footer-title {
    color: #f0ead6;
    font-size: 1.3em;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}
.footer-mwt p { line-height: 1.8; }
.footer-mwt a {
    color: #f0ead6;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}
.footer-mwt a:hover { color: #cc6600; }
.logo-footer { max-width: 150px; height: auto; margin-bottom: 15px; }

/* Grille footer */
.footer-sections .row { display: flex; flex-wrap: wrap; margin-left:-15px; margin-right:-15px; }
.footer-sections .footer-col { flex: 0 0 25%; max-width: 25%; padding: 0 15px; box-sizing: border-box; }
@media (max-width: 767px) {
    .footer-sections .footer-col { flex: 0 0 100%; max-width: 100%; margin-bottom: 30px; }
}

/* Footer contact */
.footer-col--brand { padding-left: 24px !important; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { width: 96px; height: auto; flex: 0 0 auto; }
.mission-text { margin: 0; line-height: 1.4; }
.contact-line { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.contact-line .icon { width: 18px; height: 18px; fill: #6b7280; flex: 0 0 18px; transition: fill 0.3s ease-in-out; }
.contact-line:hover .icon { fill: #ffffff; }

/* Footer bottom */
.footer-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.15); }
.footer-bottom .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.footer-bottom-left { flex: 0 0 70%; max-width: 70%; }
.footer-bottom-right { flex: 0 0 30%; max-width: 30%; text-align: right; }
@media (max-width: 767px) {
    .footer-bottom-left, .footer-bottom-right { flex: 0 0 100%; max-width: 100%; text-align: center; margin-bottom: 10px; }
}

/* Icônes sociales */
.social-icons a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; margin-left: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.05); color: #bbb;
    transition: all 0.3s ease-in-out; text-decoration: none;
}
.social-icons a svg { width: 18px; height: 18px; fill: currentColor; }
.social-icons a:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* Animation footer */
@keyframes footerFadeIn { 0%{opacity:0;transform:translateY(30px);} 100%{opacity:1;transform:translateY(0);} }
.footer-mwt, .footer-bottom { opacity:0; transform:translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.footer-mwt.visible, .footer-bottom.visible { opacity:1; transform:translateY(0); animation: footerFadeIn 0.8s ease-out forwards; }

/* === HEADER TOPBAR === */
.header-topbar {
    background: rgba(204, 102, 0, 0.85); /* orange translucide */
    color: #fff;
    font-size: 0.95rem;
    padding: 6px 1rem;
}
.header-topbar a { color:#fff; text-decoration:none; }
.header-topbar a:hover { color:#222; }
.header-topbar .header-topbar-inner {
    max-width: 1200px; margin: 0 auto;
    display:flex; justify-content:space-between; align-items:center; gap:8px;
}

/* HEADER PRINCIPAL */
.template-header {
    background: rgba(204, 102, 0, 0.9); /* orange translucide */
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 1px 6px rgba(0,0,0,0.12);
    color: #fff;
    position: relative;
    z-index: 5;
    min-height: 200px; /* place pour logo */
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.template-header a { color:#fff; text-decoration:none; }
.template-header a:hover { color:#222; }
.header-inner { max-width:1200px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:12px; }



/* CONTACT HEADER */
.header-contact {
    display:flex; align-items:center; gap:12px; flex-wrap:nowrap;
}
.header-contact a {
    display:inline-flex; align-items:center; justify-content:center;
    width:28px; height:28px;
    border-radius:50%;
    background: rgba(255,255,255,0.1);
    color:#f0ead6;
    transition: all 0.3s ease; text-decoration:none;
}
.header-contact a:hover { background:#cc6600; color:#fff; }
.header-contact svg { width:16px; height:16px; fill:currentColor; }

/* LANG SWITCHER */
.header-topbar-right { display:flex; align-items:center; gap:12px; }
.mod-languages { display:flex; gap:6px; }
.mod-languages li { list-style:none; }
.mod-languages a {
    display:inline-block;
    padding:4px 8px;
    border:1px solid rgba(255,255,255,0.4);
    border-radius:4px;
    background: rgba(255,255,255,0.15);
    color:#fff;
    font-size:0.85rem;
    text-decoration:none;
    transition: all 0.3s ease;
}
.mod-languages a:hover, .mod-languages a.active {
    background:#fff;
    color:#cc6600;
    border-color:#fff;
}

.header-actions .btn {
    display:inline-block;
    padding:12px 28px;
    border-radius:10px;
    background: linear-gradient(135deg,#e67300,#cc5500);
    color:#fff;
    font-weight:700;
    font-size:1rem;
    letter-spacing:0.5px;
    text-transform:uppercase;
    text-decoration:none;
    box-shadow:0 6px 18px rgba(204,102,0,0.3);
    transition: all 0.3s ease-in-out;
}
.header-actions .btn:hover {
    background: linear-gradient(135deg,#ff8800,#e06600);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(204,102,0,0.45);
}

/* BURGER (mobile) */
.menu-toggle { display:none; background:transparent; border:0; cursor:pointer; padding:8px; }
.menu-toggle .burger { display:inline-block; width:22px; height:2px; background:#222; position:relative; }
.menu-toggle .burger::before, .menu-toggle .burger::after {
    content:""; position:absolute; left:0; width:100%; height:2px; background:#222; transition: transform 0.25s ease;
}
.menu-toggle .burger::before { top:-7px; }
.menu-toggle .burger::after { top:7px; }




/* === CONTACTS TOPBAR (mail, whatsapp, facebook, instagram) === */
.header-contact {
    display: flex;
    align-items: center;
    gap: 14px; /* espace entre icônes */
}
.header-contact a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
}
.header-contact a:hover {
    background: #fff;
    color: #cc6600;
}
.header-contact .icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}



/* Recherche (à gauche) */
.header-search input[type="search"],
.header-search input[type="text"] {
    padding: 10px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    background: #fff;
    min-width: 200px;
}

/* Bouton Réserver XXL (à droite) */
.header-actions .btn {
    padding: 14px 36px;
    border-radius: 12px;
    background: linear-gradient(135deg,#e67300,#cc5500);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(204,102,0,0.3);
    transition: all 0.3s ease-in-out;
	margin-right: 60px; /* ← éloigne du bord droit */
}
.header-actions .btn:hover {
    background: linear-gradient(135deg,#ff8800,#e06600);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(204,102,0,0.45);
}






/* ================================
   Style personnalisé des articles Joomla
   Thème : Baobabs & Couchers de soleil
   ================================ */

.article-madagascar {
  background: rgba(20, 20, 20, 0.6);
  color: #f4e1c1;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
  margin: 2rem auto;
  max-width: 1300px;
   width: 95%; 
  line-height: 1.7;
}

.article-madagascar h1,
.article-madagascar h2 {
  color: #ff914d;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  margin-bottom: 1rem;
}

.article-madagascar p {
  margin-bottom: 1rem;
  color: #fcefdc;
}

.article-madagascar .highlight {
  color: #ffb347;
  font-weight: bold;
}

.article-madagascar .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin: 2rem 0;
}

.article-madagascar .gallery img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.article-madagascar .gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 145, 77, 0.8);
}

.article-madagascar .highlight-image {
  text-align: center;
  margin: 2rem 0;
}

.article-madagascar .highlight-image img {
  max-width: 100%;
  border: 3px solid rgba(255, 145, 77, 0.6);
  border-radius: 18px;
  transition: opacity 0.3s ease-in-out;
}

/* Effet zoom esthétique au survol */
.zoom-hover img {
  transition: transform 0.6s ease, box-shadow 0.4s ease;
  cursor: zoom-in;
  border-radius: 8px;
}

.zoom-hover img:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  cursor: zoom-out;
}

/* Galerie centrée */
.gallery {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.gallery img {
  max-width: 400px;
  border-radius: 6px;
}
/* Layout en 3 colonnes */
/* Conteneur */
/* Conteneur article */
.tsingy-article {
  border: 2px solid #444;
  border-radius: 12px;
  padding: 20px;
  margin: 20px auto;
  background: #f9f9f9;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Disposition principale */
.tsingy-container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Images */
.tsingy-image img {
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Portrait */
.tsingy-image.portrait {
  flex: 0 0 25%;
  max-width: 25%;
}

/* Texte */
.tsingy-text {
  flex: 1 1 50%;
  font-size: 1.1em;
  line-height: 1.6;
}

/* Paysage */
.tsingy-image.landscape {
  margin-top: 20px;
  text-align: right;
}

.tsingy-image.landscape img {
  max-width: 40%;
}

/* ✅ Overlay (fond noir) */
.zoom-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9998;
}

/* ✅ Image zoomée */
.zoom-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.zoom-overlay img:hover {
  transform: scale(1.2);
}

/* Responsive mobile */
@media (max-width: 768px) {
  .tsingy-container {
    flex-direction: column;
  }
  .tsingy-image.portrait,
  .tsingy-text,
  .tsingy-image.landscape img {
    max-width: 100%;
    flex: 1 1 100%;
    text-align: center;
  }
}
/* ========================================================= */
/* 1. RÈGLE FONDAMENTALE (ESSENTIELLE) */
/* Rendre toutes les images flexibles et éviter le débordement */
/* ========================================================= */
.article-madagascar img,
.article-ouest img {
  max-width: 100%;
  height: auto;
  display: block; /* Aide à l'alignement */
}

/* ========================================================= */
/* 2. OPTIMISATION DU CONTENEUR PRINCIPAL */
/* Ajuster le padding sur les petits écrans */
/* ========================================================= */
@media (max-width: 600px) {
  .article-madagascar,
  .article-ouest {
    padding: 1rem; /* Réduit l'espace autour du contenu sur mobile */
  }
}

/* ========================================================= */
/* 3. STRUCTURES FLEXIBLES (SECTIONS .grid) */
/* Gère les sections alternant image/texte (Baobabs, Mangoky, Camping) */
/* ========================================================= */
.article-madagascar .grid,
.article-ouest .grid {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 3rem 0;
  flex-wrap: wrap; /* Permet le retour à la ligne sur les petits écrans */
}

.article-madagascar .grid-item {
  flex: 1;
  min-width: 300px; /* Force un retour à la ligne si la zone est trop petite */
}

/* Inversion de l'ordre pour les sections avec la classe .reverse */
.article-ouest .grid.reverse {
  flex-direction: row-reverse;
}

/* 📱 RESPONSIVE MOBILE : .grid devient vertical */
@media (max-width: 768px) {
  .article-madagascar .grid,
  .article-ouest .grid {
    flex-direction: column; /* Les éléments s'empilent verticalement */
  }

  /* Rétablit l'ordre standard sur mobile pour les sections .reverse */
  .article-ouest .grid.reverse {
    flex-direction: column;
  }
}

/* ========================================================= */
/* 4. STRUCTURE DE GRILLE (SECTION .faune-grid) */
/* Gère la disposition en plusieurs colonnes (Fosa, Lémuriens) */
/* ========================================================= */
.article-madagascar .faune-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonnes par défaut */
  gap: 20px;
  text-align: center;
  margin-top: 2rem;
}



/* 📱 RESPONSIVE MOBILE : 1 colonne */
@media (max-width: 600px) {
  .article-madagascar .faune-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================= */
/* 5. SECTION BANNIÈRE (.hero) */
/* Gère l'image de fond et le texte superposé */
/* ========================================================= */
.article-ouest .hero {
  position: relative;
  margin-bottom: 3rem;
}

.article-ouest .hero img {
  min-height: 300px;
  object-fit: cover;
  border-radius: 15px;
}

.article-ouest .hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px 40px;
  border-radius: 10px;
  text-align: center;
  max-width: 80%;
}

/* 📱 RESPONSIVE MOBILE : Texte en bas de la bannière */
@media (max-width: 600px) {
  .article-ouest .hero-text {
    /* Le texte passe en position standard (en bas) */
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    border-radius: 0 0 15px 15px;
    padding: 15px;
    /* Assure que l'image et le texte s'empilent correctement */
    display: block; 
  }
  .article-ouest .hero {
    /* Utilise flex pour empiler si nécessaire, ou assure un flux normal */
    display: flex;
    flex-direction: column;
  }
}
/* CORRECTION : L'image HERO doit être full responsive */
.article-ouest .hero img {
  /* Force l'image à respecter la largeur du conteneur */
  width: 100% !important; 
  max-width: 100% !important; 
  height: auto; 
  display: block;
}

/* CORRECTION : Le layout de la section HERO sur mobile */
@media (max-width: 600px) {
    .article-ouest .hero {
        /* Empile l'image et le texte verticalement */
        display: flex;
        flex-direction: column;
    }

    .article-ouest .hero-text {
        /* Le texte reprend sa place normale sous l'image */
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin-top: 0;
        border-radius: 0 0 15px 15px;
        padding: 15px;
    }
}









/* ========================================================= */
/* 1. FIX DE POSITIONNEMENT (Pour la méthode header-wrapper) */
/* ========================================================= */
.header-wrapper {
    position: relative !important; /* CRITIQUE : Nouvelle référence pour le menu */
    z-index: 100; 
    width: 100%;
}





/* ========================================================= */
/* === GESTION DU DISPLAY PC/MOBILE (Globale) === */
/* ========================================================= */

/* Par défaut (PC) : Afficher le header PC, cacher le header Mobile */
.header-desktop { display: block !important; }
.header-mobile { display: none !important; }


/* ========================================================= */
/* === RESPONSIVE MOBILE : LAYOUT, LOGO & ACTIONS FIX (V4 - FINAL) === */
/* ========================================================= */

@media (max-width: 992px) {
    /* --- GESTION DU DISPLAY MOBILE/PC (Masquage du PC) --- */
	/* 1. On masque l'intégralité du conteneur PC */
    .header-desktop, 
    .maheader-desktop { 
        display: none !important; 
        visibility: hidden !important;
        position: absolute !important; 
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* --------------------------------- */
    /* --- CORRECTION ESPACE CONTENU (150px = 40px TopBar + 110px Header) --- */
    /* --------------------------------- */
    
    /* Pousse le contenu SOUS le header (nécessaire pour sticky/fixed) */
    .template-content {
        padding-top: 150px !important; 
    }
    
    /* 2. On affiche le conteneur Mobile */
    .header-mobile { 
        display: block !important; 
        visibility: visible !important;
    }

    /* --------------------------------- */
    /* --- CORRECTION TOP BAR (COULEUR & STICKY) --- */
    /* --------------------------------- */

    /* Neutralisation du Wrapper pour le Desktop */
    .header-wrapper {
        position: relative !important; 
        top: unset !important;
        z-index: 1000 !important; 
    }
    
    /* La Top Bar (position: sticky) */
    .header-topbar {
        display: block !important;
        width: 100% !important;
        padding: 5px 1rem !important;
        
        position: sticky !important; /* Reste en haut au scroll */
        top: 0 !important; 
        left: 0 !important;
        z-index: 1002 !important; 
        
        /* COULEUR DE FOND DEMANDÉE */
        background: #ECD6AF !important; 
        color: #4a351e !important; 
        font-size: 0.8rem !important;
    }
    
    .header-topbar-inner {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    .header-contact, .header-topbar-right {
        display: flex !important;
        gap: 15px !important;
        align-items: center !important;
    }
    .header-contact .icon {
        fill: #4a351e !important; 
        width: 20px !important;
        height: 20px !important;
    }

    /* --------------------------------- */
    /* --- HEADER MOBILE (STICKY ET POSITIONNÉ SOUS LA TOP BAR) --- */
    /* --------------------------------- */
    
    .header-mobile {
        position: sticky !important; 
        top: 40px !important; /* Se colle 40px SOUS la Top Bar */
        left: 0 !important;
        
        width: 100% !important;
        z-index: 1001 !important; 
        
        /* Dégradé Radial */
        background-image:
            radial-gradient(circle at center,
                #eada11 0%,
                #ffd85a 15%,
                #f08b0a 40%,
                #b01c00 70%
            ),
            radial-gradient(circle at center,
                rgba(0,0,0,0.00) 45%,
                rgba(0,0,0,0.18) 65%,
                rgba(0,0,0,0.45) 100%
            ) !important;
        
        background-position: center !important;
        background-size: cover !important; 
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
    }
    
    /* Le conteneur principal : empile la barre du haut et la barre du bas */
    .mobile-header-bar {
        display: flex !important;
        flex-direction: column !important;	
        padding: 0 !important;
    }

    /* --- 2. LIGNE DU HAUT (Logo & Burger) --- */
    .mobile-header-top {
        display: flex !important;
        justify-content: space-between !important;	
        align-items: center !important;
        padding: 8px 1rem !important;	
    }

    /* LOGO MOBILE */
    .logo-mobile {
        order: 1 !important;
        z-index: 12 !important;	
        position: relative !important;	
        flex: 0 1 auto !important;
        margin: 0 !important;
    }
    .logo-mobile a img {
        max-height: 50% !important;	
        max-width: 50% !important;
        width: auto !important;
        height: auto !important;
    }

    /* MENU BURGER */
    .menu-toggle {
        order: 2 !important;	
        z-index: 1001 !important;	
        display: block !important; 
        padding: 10px 0 10px 20px !important;
    }

    /* --- 3. LIGNE DU BAS (Recherche & Réserver) --- */
    .mobile-header-bottom {
        display: flex !important;
        flex-direction: column !important; 
        align-items: flex-end !important; 
        padding: 6px 1rem 10px 1rem !important;	
        border-top: 1px solid rgba(0,0,0,0.08) !important;
        gap: 5px !important;	
    }

    /* BOUTON RÉSERVER */
    .header-actions {
        order: 1 !important; 
        width: 100% !important;	
        text-align: right !important; 
    }
    .header-actions .btn {
        display: inline-block !important;	
        width: auto !important;	
        max-width: 100% !important;	
        font-size: 14px !important;	
        padding: 8px 12px !important;	
        box-sizing: border-box !important; 
    }

    /* CHAMP DE RECHERCHE */
    .header-search {
        order: 2 !important; 
        width: 100% !important;	
        text-align: right !important;	
    }
    .header-search form {
        display: flex !important;
        justify-content: flex-end !important; 
    }
    .header-search form input[type="text"] {
        width: 100% !important;	
        max-width: 250px !important; 
        padding: 7px 10px !important;
        font-size: 14px !important;
    }

    /* --------------------------------- */
    /* --- MENU DÉROULANT COMPLET (Correction du Ciblage Spécifique) --- */
    /* --------------------------------- */

    /* Le sélecteur complet pour le menu (état initial) */
    .header-mobile #main-navigation.menu-main {
        visibility: hidden !important; /* CLÉ : Caché par défaut */
        transform: translateY(-100%) !important;
        opacity: 0 !important;

        position: absolute !important; /* Positionné par rapport au .header-mobile sticky */
        left: 0 !important;
        width: 100% !important;

        top: 110px !important; /* Démarre sous la barre du header mobile */
        
        max-height: calc(100vh - 150px) !important; /* Hauteur max ajustée au total fixe */
        height: auto !important; 
        
        z-index: 999 !important; 
        
        /* Fond et transition */
        background: rgba(239, 214, 174, 0.98) !important; 
        backdrop-filter: blur(5px) !important;
        overflow-y: auto !important;
        transition: transform 0.4s ease-out, opacity 0.4s ease-out, visibility 0.4s;
    }

    /* État OUVERT (Ciblage spécifique) */
    .header-mobile #main-navigation.menu-main.open {
        visibility: visible !important; 
        transform: translateY(0) !important; 
        opacity: 1 !important;
    }

    /* --- Styles des éléments de menu internes (Verticalité et Couleurs) --- */
    .header-mobile #main-navigation.menu-main ul.nav {
        display: block !important; width: 100% !important; padding: 0 !important; margin: 0 !important;
    }
    .header-mobile #main-navigation.menu-main ul.nav li.nav-item {
        display: block !important; float: none !important; width: 100% !important; border-bottom: 1px solid rgba(74, 53, 30, 0.2) !important; 
    }
    .header-mobile #main-navigation.menu-main ul.nav li.nav-item a {
        color: #4a351e !important; padding: 15px 1.5rem !important; text-align: left !important; background: transparent !important; box-shadow: none !important; border-bottom: none !important;
    }
    .header-mobile #main-navigation.menu-main ul.nav li.nav-item a:hover,
    .header-mobile #main-navigation.menu-main ul.nav li.nav-item.active a {
        background: #e6cda5 !important; color: #333 !important;
    }
}
/* ========================================================= */
/* === 1. HEADER DESKTOP : LOGO GÉANT, POSITIONNÉ & RESPONSIVE === */
/* ========================================================= */

/* Conteneur principal du header */
.maheader-desktop {
    width: 100% !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2) !important; 
}

/* Header (matemplate-header) : Dégradé fourni et Hauteur Globale */
.matemplate-header {
    width: 100% !important;
    min-height: 180px !important; /* Grande hauteur pour le logo */
    padding: 30px 0 !important; /* Espace vertical pour le logo */

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* DÉGRADÉ EXACT FOURNI PAR L'UTILISATEUR */
        background-image:
        radial-gradient(circle at center,
            #eada11 0%,
            #ffd85a 15%,
            #f08b0a 40%,
            #b01c00 70%
        ),
        radial-gradient(circle at center,
            rgba(0,0,0,0.00) 45%,
            rgba(0,0,0,0.18) 65%,
            rgba(0,0,0,0.45) 100%
        ) !important;
    /*background-blend-mode: multiply !important;--*/
    background-position: center !important;
    background-size: cover !important;
}


/* --- PARAMÈTRES CRITIQUES POUR LE LOGO 100% HAUTEUR (NE PAS CHANGER) --- */
.maheader-inner {
    max-width: 1200px !important; width: 100% !important; margin: 0 auto !important;
    padding: 0 20px !important; display: flex !important; justify-content: center !important;
    height: calc(100% - 60px) !important; /* Hauteur ajustée (180px - 2x30px padding) */
}
.maheader-inner .header-right {
    display: flex !important; align-items: stretch !important; justify-content: space-between !important; 
    width: 100% !important; height: 100% !important;
}

 /* ========================================================= */
/* === RÉGLAGES MANUELS DU LOGO (Pour vous) - FLEXBOX CORRIGÉ === */
/* ========================================================= */

.maheader-inner .header-right .site-logo-link {
    order: 2 !important; 
    
    position: relative !important;
    z-index: 10 !important; /* Calque distinct */
    
    /* MODIFICATION CLÉ : Permettre au bloc de se rétrécir si besoin */
    flex: 0 1 auto !important; /* Flex-basis auto, permet de shrink (1) */
    
    /* Garder le reste pour le centrage et le décalage */
    margin: 0 auto !important;
    top: 0;
    transform: translateX(-10%) translateY(0);
    height: 100% !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.maheader-inner .header-right .site-logo-link img {
    /* PARAMÈTRES DEMANDÉS */
    /* 3. TAILLE MAX DU LOGO (RESPONSIVE) */
    /* Le logo prend 100% de la hauteur disponible. */
	/* 💥 LE LOGO (L'IMAGE ELLE-MÊME) : CONTRÔLE DE TAILLE */
    /* ANNUEL TOUTES LES LIMITES FIXES (Sécurité anti-template) */
    max-height: none !important; 
    max-width: none !important;
    min-height: unset !important;
    min-width: unset !important;

    /* CONTRÔLE DE LA TAILLE : Utiliser la valeur souhaitée */
    /* REMPLACEZ CES VALEURS POUR CONTRÔLER LA TAILLE */
    max-height: 50% !important; /* Votre valeur demandée (10% de la hauteur disponible) */
    max-width: 50% !important;  /* NOUVEAU : LIMITE la largeur à 10% aussi */
    
    /* Forcer le ratio */
    height: auto !important; 
    width: auto !important; 
}
}
/* ========================================================= */


/* --- Styles des autres éléments --- */
.maheader-search { order: 1 !important; flex: 1 1 300px !important; text-align: left !important; }
.header-actions { order: 3 !important; flex: 1 1 auto !important; text-align: right !important; }

.maheader-search input[type="text"], .maheader-search input[type="search"] {
    padding: 12px 18px !important; border-radius: 30px !important;
    border: 2px solid #f08b0a !important; background: #FFFFFF !important;
    min-width: 280px !important;
}
.header-actions .btn {
    display: inline-block !important; padding: 14px 30px !important;
    border-radius: 10px !important; background: #f08b0a !important;
    color: #fff !important; font-weight: 700 !important;
    box-shadow: 0 6px 15px rgba(240, 139, 10, 0.4) !important;
}
.header-actions .btn:hover { background: #b01c00 !important; }


/* ========================================================= */
/* === 2. NAVIGATION : LAYOUT & STYLE DÉFINITIFS (GOLD/MARRON) === */
/* ========================================================= */

#main-navigation.menu-main {
    width: 100% !important;
    /* NOUVEAU FOND : Beige/Or Dégradé */
    background: linear-gradient(to bottom, #EFD6AE, #e6cda5) !important;
    /* NOUVELLE BORDURE BASSE (Effet relief) */
    border-bottom: 3px solid #d4b98d !important;
    
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4) !important; 
    display: flex !important;
    justify-content: center !important; 
}

/* 1. LAYOUT HORIZONTAL ET CENTRAGE (Correction de la verticalité) */
/* Cible l'UL avec la classe 'nav' (Module Joomla) */
#main-navigation.menu-main ul.nav {
    max-width: 1200px !important; 
    width: 100% !important;
    margin: 0 auto !important; /* Centrage dans la nav */
    padding: 0 !important;
    list-style: none !important;
    
    /* Flexbox pour l'horizontalité et le centrage */
    display: flex !important;
    justify-content: center !important; 
}

/* Cible les LI (nav-item) pour l'horizontalité */
#main-navigation.menu-main ul.nav li.nav-item {
    display: block !important; /* Nécessaire pour l'horizontalité Flex */
    float: left !important; /* Sécurité si Flexbox est ignoré */
    margin: 0 !important;
    padding: 0 !important;
}


/* 2. STYLE DES LIENS (TEXTE ET COULEUR) - CORRECTION TEXTE BRUT */
/* SÉLECTEUR TRES SPÉCIFIQUE POUR FORCER LE STYLE */
#main-navigation.menu-main ul.nav li.nav-item a {
    display: block !important;
    padding: 10px 16px !important; 
    
    /* COULEURS CRITIQUES - La solution au texte "nul" */
    color: #4a351e !important; /* Marron foncé */
    text-decoration: none !important; /* Suppression du soulignement bleu */
    
    font-size: 17px !important;
    font-weight: 600 !important; 
    transition: all 0.3s ease !important;
    border-bottom: 3px solid transparent !important;
}


/* 3. EFFET HOVER AVEC OUTGLOW (Lueur Esthétique Orangée) */
/* Cible le survol (hover), l'élément actif (active) et l'élément courant (current) */
#main-navigation.menu-main ul.nav li.nav-item a:hover,
#main-navigation.menu-main ul.nav li.nav-item.current a,
#main-navigation.menu-main ul.nav li.nav-item.active a { 
    
    /* Fond semi-transparent pour la lueur */
    background: rgba(255, 255, 255, 0.4) !important; 
    
    color: #333 !important; /* Texte légèrement plus foncé */
    
    /* EFFET LUMINEUX ESTHÉTIQUE (ORANGE OUTGLOW) */
    box-shadow: 0 0 12px 2px rgba(255, 165, 0, 0.6) !important; 
    
    border-radius: 0 !important;
    
    /* Ligne d'accentuation orange */
    border-bottom: 3px solid #cc6600 !important; 
}


/* ========================================================= */
/* === 3. SOUS-MENUS (Déroulants) - ADAPTÉ À LA NOUVELLE PALETTE === */
/* ========================================================= */

/* Conteneur des sous-menus (ul) */
#main-navigation.menu-main ul.nav ul { /* Note : on cible ul.nav ul car le sous-menu n'a pas la classe .nav */
    position: absolute !important; 
    min-width: 200px !important; 
    top: 100% !important; 
    left: 0 !important;
    z-index: 999 !important; 
    background: #FFFFFF !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    /* Couleur de bordure supérieure d'accentuation */
    border-top: 3px solid #cc6600 !important; 
    display: none !important; 
}

/* Affichage du sous-menu au survol du LI parent */
#main-navigation.menu-main ul.nav li:hover > ul {
    display: block !important;
}

/* Style des liens dans le sous-menu */
#main-navigation.menu-main ul.nav ul li a {
    padding: 10px 15px !important;
    font-weight: 400 !important; 
    color: #444 !important;
    background: transparent !important; 
    box-shadow: none !important;
    border-bottom: none !important;
}

/* Survol des liens du sous-menu */
#main-navigation.menu-main ul.nav ul li a:hover {
    background: #cc6600 !important; /* Fond marron/orange au survol */
    color: #FFFFFF !important;
}

/*style du module de langue de joomla*/
/* Cache le titre du module ("Sélectionnez votre langue") */
/* 🔹 Supprime le label "Sélectionnez votre langue" */
.mod-languages label,
.mod-languages .mod-languages-label,
.mod-languages legend {
    display: none !important;
}

/* 🔹 Supprime le texte dans les boutons */
.mod-languages a span,
.mod-languages .btn span {
    display: none !important;
}

/* 🔹 Réduit et nettoie le style des boutons */
.mod-languages a,
.mod-languages .btn {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 5px !important;
    box-shadow: none !important;
    font-size: 0 !important;   /* cache les restes de texte */
    line-height: 0 !important;
}

/* 🔹 Affiche uniquement les drapeaux */
.mod-languages img {
    display: inline-block !important;
    width: 24px !important;   /* ajuste la taille */
    height: auto !important;
    vertical-align: middle !important;
}
/* Cacher le texte "Sélectionnez votre langue" */
.mod-languages label,
.mod-languages legend,
.mod-languages .mod-languages-label,
.language-switcher label,
.language-switcher legend,
.language-switcher .mod-languages-label {
    display: none !important;
}

/* En cas où le texte est dans un paragraphe ou div */
.mod-languages p,
.mod-languages .label,
.language-switcher p,
.language-switcher .label {
    display: none !important;
}