/* =============================================================
   EUP FASS KC — eup-global.css
   Feuille de style GLOBALE du site : design system de marque,
   navbar, footer, loader, composants communs à toutes les pages.
   (fusion de theme.css + styles navbar/footer/index.php)
   ============================================================= */

/* ==========================================================================
   EUP FASS KC — Design System (référence de marque)
   Bleu institutionnel + vert (repris du logo croix/main), sur fond clair.
   Ce fichier est chargé sur toutes les pages via index.php. Les autres
   feuilles de style (styleAccueil.css, navbar.php, footer.php) ont été
   recalées sur cette même palette pour un rendu visuel cohérent.
   ========================================================================== */

:root {
  /* Couleurs de marque */
  --brand-primary: #0B4DA2;       /* Bleu institutionnel principal */
  --brand-primary-dark: #073B7D;  /* Bleu foncé (fonds, hover) */
  --brand-secondary: #1E9FE0;     /* Bleu ciel (accents, liens) */
  --brand-green: #1E9FE0;         /* Bleu ciel — accent principal du site */
  --brand-green-light: #63BCEE;   /* Bleu ciel clair (badges, éléments secondaires) */
  --brand-dark: #0A2A52;          /* Bleu marine foncé (navbar, footer, texte fort) */

  /* Neutres */
  --brand-text: #101820;
  --brand-text-muted: #64748B;
  --brand-bg-light: #F4F8FB;
  --brand-white: #FFFFFF;
  --brand-border: #E2E8F0;

  /* Typographie */
  --font-heading: 'Quicksand', 'Open Sans', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Autres */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 14px rgba(10, 42, 82, 0.08);
  --shadow-md: 0 10px 30px rgba(10, 42, 82, 0.12);
  --shadow-lg: 0 20px 50px rgba(10, 42, 82, 0.18);
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font-body);
  color: var(--brand-text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* ----- Titres de section réutilisables ----- */
.eup-section-title {
  position: relative;
  display: inline-block;
  font-weight: 700;
  color: var(--brand-dark);
}

.eup-section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-green));
}

.eup-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-green);
  margin-bottom: 0.5rem;
}

/* ----- Boutons de marque ----- */
.btn-eup-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-primary);
  color: var(--brand-white);
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition-base);
}

.btn-eup-primary:hover {
  background: var(--brand-primary-dark);
  color: var(--brand-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-eup-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition-base);
}

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

/* ----- En-tête générique pour les pages secondaires (à réutiliser) ----- */
.eup-page-header {
  text-align: center;
  padding: 130px 20px 70px;
  background: linear-gradient(rgba(10, 42, 82, 0.78), rgba(11, 77, 162, 0.72)), url('../img/bg-slide-1-1.jpg') center 30% / cover no-repeat;
  color: var(--brand-white);
}

.eup-page-header h1 {
  font-size: 2.6rem;
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.eup-page-header p {
  margin-top: 12px;
  opacity: 0.9;
  font-size: 1.05rem;
}

/* ===== Loader ===== */
  #loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
  }

  #loader.hidden {
    opacity: 0;
    visibility: hidden;
  }

  .logo-loader {
    width: 120px;
    height: 120px;
    animation: spin 3s linear infinite, pulse 2s ease-in-out infinite;
  }

  @keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  @keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(0deg); }
  }

  .loader-text {
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--medium-green);
    font-family: "Poppins", sans-serif;
    animation: fadeInOut 2s ease-in-out infinite;
  }

  @keyframes fadeInOut {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
  }

/* ===== En-têtes de page (pages secondaires) ===== */
      
        :root {
            --primary: #0B4DA2;
            --primary-soft: rgba(11, 77, 162, 0.85);
            --secondary: #1E9FE0;
            --dark: #0A2A52;
            --light: #f4f8fb;
            --light-green: #63BCEE;
            --medium-green: #1E9FE0;
            --dark-green: #0B6EA8;
            --text-dark: #101820;
            --text-light: #64748B;
        }
        
        .hero-bg {
            background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('img/bg-370x200.jpg');
            background-size: cover;
            background-position: center;
        }
        
        .btn-primary {
            background-color: var(--primary);
            border-color: var(--primary);
        }
        
        .btn-outline-primary {
            color: var(--primary);
            border-color: var(--primary);
        }
        
        .btn-outline-primary:hover {
            background-color: var(--primary);
            color: white;
        }
        
        .section-title {
            position: relative;
            display: inline-block;
        }
        
        .section-title::after {
            position: absolute;
            content: "";
            width: 50px;
            height: 3px;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--primary);
        }
        
        .impact-card {
            transition: transform 0.3s;
            border: none;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .impact-card:hover {
            transform: translateY(-10px);
        }
        
        .project-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 2;
        }

         /* Conteneur d'image avec ratio fixe */
    .image-container {
        position: relative;
        padding-top: 56.25%; /* Ratio 16:9 */
        overflow: hidden;
    }
    
    .image-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }
    
    .card:hover .image-container img {
        transform: scale(1.05);
    }
    
    /* Boutons de navigation */
    .carousel-control-prev, .carousel-control-next {
        width: auto;
        opacity: 1;
    }
    
    .carousel-control-prev {
        left: -50px;
    }
    
    .carousel-control-next {
        right: -50px;
    }
    
    .carousel-control-prev-icon, 
    .carousel-control-next-icon {
        background-size: 1.5rem;
    }
    
    @media (max-width: 768px) {
        .carousel-control-prev {
            left: -20px;
        }
        .carousel-control-next {
            right: -20px;
        }
    }

    .bg-light-green { background-color: var(--light-green) !important; }
    .bg-medium-green { background-color: var(--medium-green) !important; }
    .bg-dark-green { background-color: var(--dark-green) !important; }
    
    .text-dark-green { color: var(--dark-green) !important; }
    .text-light-green { color: var(--light-green) !important; }
    
    .btn-outline-light-green {
        border-color: var(--light-green);
        color: var(--dark-green);
    }
    .btn-outline-medium-green {
        border-color: var(--medium-green);
        color: var(--dark-green);
    }
    .btn-outline-dark-green {
        border-color: var(--dark-green);
        color: var(--dark-green);
    }
    
    .causes-item {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .causes-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    }
    
    .causes-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(46, 125, 50, 0.8);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .causes-item:hover .causes-overlay {
        opacity: 1;
    }

    .header-bg {
      background: linear-gradient(rgba(10, 42, 82, .75), rgba(11, 77, 162, .65)), url(img/service-3.jpg) center center no-repeat;
      background-size: cover;
    }

    /* Section Titre pour toute les pages */
    .history-header {
    text-align: center;
    padding: 100px 20px 70px;
    background: linear-gradient(rgba(10, 42, 82, 0.78), rgba(11, 77, 162, 0.7)), 
                url('img/bg-slide-1-1.jpg') center 5%/cover no-repeat;
    color: white;
    position: relative;
}

    .history-header h1 {
      font-size: 4rem;
      margin: 0;
      letter-spacing: 6px;
      font-weight: 800;
      text-transform: uppercase;
      animation: fadeInDown 1.5s ease;
    }

    .history-header p {
      font-size: 1.2rem;
      margin-top: 15px;
      opacity: 0.9;
      animation: fadeInUp 2s ease;
    }

/* ===== Utilitaires divers (causes, couleurs bootstrap étendues) ===== */
    .border-purple { border-color: #6f42c1!important; }
    .bg-purple { background-color: #6f42c1!important; }
    .btn-outline-purple { 
        color: #6f42c1;
        border-color: #6f42c1;
    }
    .btn-outline-purple:hover {
        color: #fff;
        background-color: #6f42c1;
    }
    .causes-item { transition: transform 0.3s; }
    .causes-item:hover { transform: translateY(-10px); }
    .causes-overlay {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        transition: 0.5s;
    }
    .causes-item:hover .causes-overlay { opacity: 1; }

/* ===== Navbar (topbar + navigation principale) ===== */
/* ===== Variables UNIQUES ===== */
:root {
    --topbar-bg: #0A2A52;
    --topbar-text: #ffffff;
    --topbar-accent: #1E9FE0;
    --nav-primary-bg: #0B3D74;
    --nav-accent-green: #1E9FE0;
    --nav-light-green: #5CB6E8;
    --nav-text-light: #ffffff;
    --nav-text-muted: #cbd8e8;
    --nav-dropdown-bg: #0A2A52;
    --nav-shadow: 0 4px 20px rgba(10, 42, 82, 0.35);
    --nav-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Topbar ===== */
.topbar-unique {
    background: var(--topbar-bg);
    color: var(--topbar-text);
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar-unique.hidden {
    transform: translateY(-100%);
}

.topbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-contact {
    display: flex;
    gap: 25px;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--nav-transition);
}

.topbar-item:hover {
    color: var(--topbar-accent);
}

.topbar-icon {
    font-size: 0.8rem;
    color: var(--topbar-accent);
    width: 14px;
    text-align: center;
}

.topbar-social {
    display: flex;
    gap: 12px;
}

.topbar-social-link {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--topbar-text);
    text-decoration: none;
    transition: var(--nav-transition);
    font-size: 0.9rem;
}

.topbar-social-link:hover {
    background: var(--topbar-accent);
    transform: translateY(-2px);
}

/* ===== Navigation principale ===== */
.navbar-unique {
    position: fixed;
    top: 40px; /* Hauteur du topbar */
    left: 0;
    width: 100%;
    background: var(--nav-primary-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: var(--nav-transition);
}

/* Espace pour compenser la hauteur combinée */
.nav-height-spacer {
    height: 120px; /* 40px (topbar) + 80px (navbar) */
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-height-spacer.compact {
    height: 80px; /* Hauteur réduite quand le topbar est caché */
}

.nav-unique-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 80px;
}

/* ===== Logo et marque ===== */
.nav-unique-brand {
    flex-shrink: 0;
}

.nav-brand-link {
    text-decoration: none;
    display: block;
}

.nav-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--nav-accent-green);
    transition: var(--nav-transition);
}

.nav-brand-link:hover .nav-logo-image {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(21, 228, 73, 0.4);
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
}

.nav-brand-title {
    color: var(--nav-text-light);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}

.nav-brand-subtitle {
    color: var(--nav-accent-green);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ===== Menu desktop ===== */
.nav-unique-menu {
    display: flex;
    align-items: center;
}

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

.nav-menu-item {
    position: relative;
}

.nav-menu-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: var(--nav-text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 25px;
    transition: var(--nav-transition);
    position: relative;
    overflow: hidden;
}

.nav-menu-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(21, 228, 73, 0.1), transparent);
    transition: left 0.6s ease;
}

.nav-menu-link:hover::before {
    left: 100%;
}

.nav-menu-link:hover {
    color: var(--nav-accent-green);
    background: rgba(21, 228, 73, 0.1);
}

.nav-menu-link.active {
    color: var(--nav-accent-green);
    background: rgba(21, 228, 73, 0.15);
    font-weight: 600;
}

.nav-link-icon {
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

/* ===== Dropdown desktop ===== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    padding-right: 15px;
}

.nav-dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--nav-dropdown-bg);
    border-radius: 12px;
    box-shadow: var(--nav-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--nav-transition);
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

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

.nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--nav-text-light);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--nav-transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-dropdown-link:last-child {
    border-bottom: none;
}

.nav-dropdown-link:hover {
    background: rgba(21, 228, 73, 0.1);
    color: var(--nav-accent-green);
    padding-left: 25px;
}

.nav-dropdown-link.active {
    background: rgba(21, 228, 73, 0.15);
    color: var(--nav-accent-green);
    border-left: 3px solid var(--nav-accent-green);
}

.nav-dropdown-icon {
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
    color: var(--nav-accent-green);
}

/* ===== Bouton mobile ===== */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    transition: var(--nav-transition);
}

.nav-toggle-bar {
    width: 25px;
    height: 2px;
    background: var(--nav-text-light);
    transition: var(--nav-transition);
    border-radius: 1px;
}

.nav-mobile-toggle:hover .nav-toggle-bar {
    background: var(--nav-accent-green);
}

.nav-mobile-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-mobile-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-mobile-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== Sidebar mobile amélioré ===== */
.nav-mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    background: #0A2A52;
    z-index: 1002;
    transition: var(--nav-transition);
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
}

.nav-mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 20px 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #123A66;
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--nav-accent-green);
}

.mobile-brand-text {
    display: flex;
    flex-direction: column;
}

.mobile-brand-title {
    color: var(--nav-text-light);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.mobile-brand-subtitle {
    color: var(--nav-accent-green);
    font-size: 0.7rem;
    font-weight: 600;
}

.mobile-close-btn {
    background: none;
    border: none;
    color: var(--nav-text-light);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
    transition: var(--nav-transition);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-close-btn:hover {
    color: var(--nav-accent-green);
    background: rgba(21, 228, 73, 0.2);
    transform: scale(1.1);
}

/* ===== Section contact mobile ===== */
.mobile-contact-section {
    padding: 20px;
    background: #123A66;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-contact-item:last-child {
    border-bottom: none;
}

.mobile-contact-icon {
    color: var(--nav-accent-green);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.mobile-contact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-contact-label {
    color: var(--nav-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-contact-value {
    color: var(--nav-text-light);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===== Menu mobile amélioré ===== */
.mobile-sidebar-content {
    padding: 0;
    background: #0A2A52;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    color: var(--nav-text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--nav-transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: #0A2A52;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: rgba(21, 228, 73, 0.15);
    color: var(--nav-accent-green);
    padding-left: 25px;
}

.mobile-link-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: var(--nav-accent-green);
}

/* ===== Dropdown mobile amélioré ===== */
.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #123A66;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 400px;
}

.mobile-dropdown-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: var(--nav-text-muted);
}

.mobile-dropdown.active .mobile-dropdown-arrow {
    transform: rotate(180deg);
    color: var(--nav-accent-green);
}

.mobile-dropdown-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px 15px 55px;
    color: var(--nav-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--nav-transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    background: #123A66;
}

.mobile-dropdown-link:hover,
.mobile-dropdown-link.active {
    color: var(--nav-accent-green);
    background: rgba(21, 228, 73, 0.1);
    padding-left: 60px;
}

.mobile-dropdown-icon {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
    color: var(--nav-accent-green);
}

/* ===== Réseaux sociaux mobile ===== */
.mobile-social-section {
    padding: 25px 20px;
    background: #123A66;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

.mobile-social-title {
    color: var(--nav-text-light);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.mobile-social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nav-text-light);
    text-decoration: none;
    transition: var(--nav-transition);
    font-size: 1rem;
}

.mobile-social-link:hover {
    background: var(--nav-accent-green);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(21, 228, 73, 0.3);
}

/* ===== Overlay mobile ===== */
.nav-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--nav-transition);
    backdrop-filter: blur(3px);
}

.nav-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .nav-unique-menu {
        display: none;
    }
    
    .nav-mobile-toggle {
        display: flex;
    }
    
    .nav-unique-container {
        padding: 0 15px;
        height: 70px;
    }
    
    .nav-height-spacer {
        height: 110px; /* 40px (topbar) + 70px (navbar mobile) */
    }
    
    .nav-height-spacer.compact {
        height: 70px; /* Hauteur réduite en mobile quand le topbar est caché */
    }
    
    .topbar-contact {
        gap: 15px;
    }
    
    .topbar-item span {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .topbar-container {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
    }
    
    .topbar-contact {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .topbar-social {
        justify-content: center;
    }
    
    .nav-height-spacer {
        height: 150px; /* Ajusté pour le topbar en colonne */
    }
    
    .nav-height-spacer.compact {
        height: 70px; /* Hauteur réduite en mobile colonne */
    }
}

@media (max-width: 480px) {
    .nav-mobile-sidebar {
        width: 280px;
    }
    
    .nav-brand-title {
        font-size: 1.1rem;
    }
    
    .nav-brand-subtitle {
        font-size: 0.6rem;
    }
    
    .topbar-item span {
        font-size: 0.75rem;
    }
    
    .mobile-contact-section {
        padding: 15px;
    }
    
    .mobile-menu-link {
        padding: 16px 15px;
        font-size: 0.9rem;
    }
    
    .mobile-dropdown-link {
        padding: 14px 15px 14px 50px;
        font-size: 0.85rem;
    }
}

/* Masquer le topbar sur mobile si nécessaire */
/* ===== Topbar ===== */
.topbar-unique {
    background: var(--topbar-bg);
    color: var(--topbar-text);
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* AJOUTER CES MEDIA QUERIES POUR CACHER LE TOPBAR EN MOBILE */
@media (max-width: 768px) {
    .topbar-unique {
        display: none; /* Cache complètement le topbar */
    }
    
    .navbar-unique {
        top: 0; /* La navbar remonte en haut puisque le topbar est caché */
    }
    
    .nav-height-spacer {
        height: 70px; /* Réduit la hauteur car plus de topbar */
    }
    
    .nav-height-spacer.compact {
        height: 70px; /* Même hauteur en mode compact */
    }
}

/* ===== Footer ===== */
/* ===== Variables UNIQUES pour le footer ===== */
.footer-unique-section {
    --footer-primary-blue: #0B3D74;
    --footer-accent-blue: #1E9FE0;
    --footer-light-blue: #dbeafe;
    --footer-dark-blue: #0B4DA2;
    --footer-text-light: #ffffff;
    --footer-text-muted: #e5e7eb;
    --footer-bg-dark: #0A2A52;
    --footer-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Section principale ===== */
.footer-unique-section {
    position: relative;
    background: var(--footer-bg-dark);
    color: var(--footer-text-light);
    overflow: hidden;
}

.footer-unique-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.footer-unique-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(30, 58, 138, 0.9) 50%,
        rgba(37, 99, 235, 0.85) 100%
    );
}

/* ===== Conteneur principal ===== */
.footer-unique-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 40px 20px;
}

.footer-unique-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* ===== Colonnes ===== */
.footer-unique-col {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-unique-title {
    color: var(--footer-light-blue);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    padding-bottom: 12px;
}

.footer-unique-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--footer-accent-blue), var(--footer-light-blue));
    border-radius: 1px;
}

/* ===== Logo et marque ===== */
.footer-unique-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-unique-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--footer-accent-blue);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    transition: var(--footer-transition);
}

.footer-unique-logo:hover .footer-logo-image {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.4);
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--footer-text-light);
    line-height: 1.2;
}

.footer-logo-subtitle {
    font-size: 0.9rem;
    color: var(--footer-light-blue);
    font-weight: 600;
}

.footer-unique-description {
    color: var(--footer-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ===== Liens sociaux ===== */
.footer-unique-social {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-text-light);
    text-decoration: none;
    transition: var(--footer-transition);
    backdrop-filter: blur(10px);
}

.footer-social-link:hover {
    background: var(--footer-accent-blue);
    border-color: var(--footer-accent-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* ===== Contact ===== */
.footer-unique-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.footer-contact-icon {
    color: var(--footer-accent-blue);
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-contact-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-contact-text strong {
    color: var(--footer-light-blue);
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-contact-text span {
    color: var(--footer-text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ===== Liens de navigation ===== */
.footer-unique-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: var(--footer-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--footer-transition);
    padding: 8px 0;
    position: relative;
    width: fit-content;
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--footer-accent-blue);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--footer-text-light);
    transform: translateX(8px);
}

.footer-link:hover::before {
    width: 100%;
}

/* ===== Horaires ===== */
.footer-unique-schedule {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.schedule-days {
    color: var(--footer-text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.schedule-hours {
    color: var(--footer-accent-blue);
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===== Bouton CTA ===== */
.footer-unique-cta {
    margin-top: 10px;
}

.footer-cta-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--footer-accent-blue), var(--footer-primary-blue));
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--footer-transition);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.footer-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    color: white;
}

/* ===== Copyright ===== */
.footer-unique-copyright {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 20px;
    backdrop-filter: blur(10px);
}

.footer-copyright-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright-text {
    color: var(--footer-text-muted);
    font-size: 0.9rem;
}

.copyright-text strong {
    color: var(--footer-light-blue);
}

.copyright-credits {
    color: var(--footer-text-muted);
    font-size: 0.9rem;
}

.credits-link {
    color: var(--footer-accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--footer-transition);
}

.credits-link:hover {
    color: var(--footer-light-blue);
    text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .footer-unique-container {
        padding: 60px 20px 30px 20px;
    }
    
    .footer-unique-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-copyright-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-unique-logo {
        justify-content: center;
        text-align: center;
    }
    
    .footer-unique-social {
        justify-content: center;
    }
    
    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .footer-unique-cta {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-unique-container {
        padding: 50px 15px 25px 15px;
    }
    
    .footer-logo-image {
        width: 60px;
        height: 60px;
    }
    
    .footer-logo-title {
        font-size: 1.2rem;
    }
    
    .footer-social-link {
        width: 40px;
        height: 40px;
    }
    
    .footer-cta-button {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Animation d'entrée ===== */
.footer-unique-col {
    opacity: 0;
    transform: translateY(30px);
    animation: footerFadeIn 0.8s ease forwards;
}

.footer-unique-col:nth-child(1) { animation-delay: 0.1s; }
.footer-unique-col:nth-child(2) { animation-delay: 0.2s; }
.footer-unique-col:nth-child(3) { animation-delay: 0.3s; }
.footer-unique-col:nth-child(4) { animation-delay: 0.4s; }

@keyframes footerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================================
   Page "Lecture d'article" (pages/lectureArticle.php)
   ============================================================= */
.article-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 140px 6% 50px;
}

.article-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 42, 82, 0.55) 0%, rgba(10, 42, 82, 0.88) 100%);
  z-index: 1;
}

.article-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  color: #fff;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  opacity: 0.85;
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 18px;
}

.article-back-link:hover {
  opacity: 1;
  color: #fff;
}

.article-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-secondary, #1E9FE0);
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.article-hero-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 18px;
}

.article-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.article-hero-meta i {
  margin-right: 5px;
}

.article-body-section {
  padding: 60px 20px;
  background: #fff;
}

.article-body-container {
  max-width: 780px;
  margin: 0 auto;
}

.article-lead {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brand-dark, #0A2A52);
  border-left: 3px solid var(--brand-secondary, #1E9FE0);
  padding-left: 18px;
  margin-bottom: 30px;
}

.article-body-content {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #3a4650;
}

.article-body-content p {
  margin-bottom: 20px;
}

.article-share-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid #eef1f4;
  font-size: 0.9rem;
  color: #64748B;
}

.article-share-bar a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #F4F8FB;
  color: var(--brand-primary, #0B4DA2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.article-share-bar a:hover {
  background: var(--brand-primary, #0B4DA2);
  color: #fff;
}

.article-suggestions-section {
  padding: 70px 20px 90px;
  background: #F4F8FB;
}

.article-suggestions-container {
  max-width: 1100px;
  margin: 0 auto;
}

.article-suggestions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.article-suggestion-card {
  display: block;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(10, 42, 82, 0.08);
  text-decoration: none;
  transition: all 0.3s ease;
}

.article-suggestion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(10, 42, 82, 0.14);
}

.article-suggestion-image {
  height: 170px;
  overflow: hidden;
}

.article-suggestion-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-suggestion-card:hover .article-suggestion-image img {
  transform: scale(1.06);
}

.article-suggestion-body {
  padding: 18px 20px 22px;
}

.article-suggestion-date {
  display: block;
  font-size: 0.78rem;
  color: var(--brand-secondary, #1E9FE0);
  font-weight: 600;
  margin-bottom: 8px;
}

.article-suggestion-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-dark, #0A2A52);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 576px) {
  .article-hero-content h1 { font-size: 1.6rem; }
  .article-hero { padding: 120px 5% 40px; }
}
