/* ==========================================================================
   MPTENT Comores - En-tête (menu) et pied de page
   Même langage graphique que le reste du site. Le petit bandeau supérieur
   aux couleurs du drapeau (.top-bar et .comoros-flag-decoration) est conservé.
   ========================================================================== */

:root {
    --ch-serif: 'Poppins', sans-serif;
    --ch-ease: cubic-bezier(.22, .61, .36, 1);
    --ch-star-light: url("../images/motif-clair-fin.png");
}

/* =====================================================================
   EN-TÊTE / MENU
   ===================================================================== */
body .navbar {
    padding: 15px 0;
    box-shadow: 0 1px 0 #dfe6e2, 0 8px 22px rgba(10, 40, 30, .06);
}
body .navbar.scrolled { box-shadow: 0 1px 0 #dfe6e2, 0 10px 26px rgba(10, 40, 30, .1); }
body .navbar-brand img { filter: none; }
body .navbar-brand::after { height: 2px; }

body .navbar-nav .nav-link {
    border-radius: 3px;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 15px !important;
}
body .navbar-nav .nav-link::before { height: 2px; border-radius: 0; bottom: 3px; background: var(--comoros-yellow); }
body .navbar-nav .nav-link:hover,
body .navbar-nav .nav-link.active {
    transform: none;
    background: rgba(0, 102, 51, .06);
}
body .navbar-nav .nav-link:hover i,
body .navbar-nav .nav-link.active i { transform: none; color: var(--comoros-green); }

body .dropdown-menu {
    border-radius: 4px;
    padding: 10px;
    margin-top: 12px;
    border-top: 3px solid var(--comoros-yellow);
    box-shadow: 0 2px 6px rgba(10, 40, 30, .08), 0 18px 40px rgba(10, 40, 30, .14);
}
body .dropdown-item { border-radius: 3px; padding: 12px 15px; }
body .dropdown-item:hover { transform: none; background: rgba(0, 102, 51, .07); }
body .dropdown-item:hover i { transform: none; color: var(--comoros-green); }
body .dropdown-header { border-radius: 2px; background: rgba(0, 102, 51, .06); }
body .dropdown-divider { border-top: 1px solid #dfe6e2; }

body .lock-btn { border-radius: 4px !important; width: 44px; height: 44px; box-shadow: none; }
body .lock-btn::before { display: none; }
body .lock-btn:hover { transform: none; box-shadow: 0 6px 16px rgba(0, 51, 102, .25); background: var(--comoros-blue); }

/* =====================================================================
   PIED DE PAGE
   ===================================================================== */
body .footer {
    background: var(--ch-star-light) 0 0 / 128px 128px, linear-gradient(120deg, #04321f 0%, #064a2e 42%, #003366 100%);
}
body .footer::before { height: 4px; background: linear-gradient(90deg, #F7D117 0 25%, #FFFFFF 25% 50%, #C8102E 50% 75%, #003366 75% 100%); }
body .footer::after { display: none; }
body .footer .footer-top { padding: 72px 0 44px; }

body .footer .footer-title {
    font-family: var(--ch-serif);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0;
    color: #fff;
    padding-bottom: 14px;
    margin-bottom: 24px;
}
body .footer .footer-title::after { height: 3px; width: 44px; border-radius: 0; background: #F7D117; }
body .footer .footer-title::before { display: none; }

body .footer .social-link { border-radius: 3px; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); }
body .footer .social-link:hover { transform: none; border-color: #F7D117; background: #F7D117; color: #003366; }
body .footer .social-link:hover::before { opacity: 0; }

body .footer .footer-links li { margin-bottom: 11px; }
body .footer .footer-links a:hover { transform: translateX(4px); }
body .footer .footer-links a:hover i { transform: none; color: #F7D117; }

body .footer .contact-icon { border-radius: 3px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); }
body .footer .footer-contact li:hover { transform: none; }
body .footer .footer-contact li:hover .contact-icon { transform: none; background: #F7D117; }

body .footer .btn-whatsapp { border-radius: 3px; background: #1f9d55; background-image: none; padding: 12px 20px; font-weight: 600; }
body .footer .btn-whatsapp:hover { background: #17784a; transform: none; }

body .footer .footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); background: rgba(0, 0, 0, .18); }
body .footer .footer-bottom a { transition: color .3s; }

body .footer .back-to-top, body .back-to-top { border-radius: 3px !important; }

/* =====================================================================
   ACCESSIBILITÉ
   ===================================================================== */
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 3000; padding: 12px 20px; background: #003366; color: #fff;
    font-weight: 600; text-decoration: none; border-radius: 3px; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; outline: 3px solid #F7D117; }
#contenu-principal:focus { outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid #F7D117; outline-offset: 2px; box-shadow: 0 0 0 1px #003366;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .top-bar::before { display: none; }
}

/* =====================================================================
   MOBILE : aucun défilement horizontal (animations d'entrée, éléments décoratifs)
   ===================================================================== */
main, body .footer { overflow-x: clip; }
html { max-width: 100%; }
img, video, iframe, svg { max-width: 100%; }
.pagination, .pagination-modern { flex-wrap: wrap; }

/* =====================================================================
   TAILLE DE LECTURE : texte plus grand sur tout le site (toutes les tailles en rem suivent)
   ===================================================================== */
html { font-size: 112.5%; }          /* 18 px au lieu de 16 px */
@media (max-width: 991px) { html { font-size: 106.25%; } }   /* 17 px sur tablette et mobile */
body { font-size: 1rem; line-height: 1.65; }

/* Menu : jamais de retour à la ligne, logo protégé (largeurs intermédiaires) */
body .navbar-brand { flex-shrink: 0; }
body .navbar-brand img { max-width: none; }
@media (min-width: 992px) {
    body .navbar-nav { flex-wrap: nowrap; }
    body .navbar-nav .nav-link { white-space: nowrap; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    body .navbar-nav .nav-item { margin: 0 1px; }
    body .navbar-nav .nav-link { padding: 9px 9px !important; font-size: .86rem; }
    body .navbar-nav .nav-link i { margin-right: 3px; }
    body .navbar-brand img { height: 52px; }
}
