:root {
    /* --primary-color: #183168; */
    --primary-color: #007A3D; /*#007A3D;*/
    --secondary-color: #2c5282;
    --accent-color: #008751;/*#263a75;*/
    --bg-footer:  #1A1A1A; /*#0f2459; */
    --text-light: #5c687a;
    --bg-light: #f8f9fa;
    --border-color: #e2e8f0;
    --font-bg: #c3c4ea62;
    /* --font-bg: #33B380; */
    --hover-color: #2e4073;
    --hover-bg: rgba(44, 52, 93, 0.1);
    --bg-opacity: rgba(44, 52, 93, 0.06);
    --bg-opacity-fort: rgba(44, 52, 93, 0.08);
    --footer-color: #1A1A1A;
    --text-color: #000000;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Top Bar */
.top-bar {
    background: #F3F4F6;
    color: white;
    font-size: 14px;
}

.top-bar-container {
    max-width: 1280px;
    max-height: 30px;
    margin: 0 auto;
    padding: 0 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container {
    max-width: 1250px;
    margin: 0 auto;
}
.language-selector {
    color: white;
    font-size: 13px;
}

.lang-btn-fr {
    padding: 8px 8px;
    cursor: pointer;
    text-decoration: none;
    color: bla;
}

.lang-btn-en {
    padding: 8px 8px;
    color: rgba(255, 255, 255, 0.32);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}
.lang-btn-en:hover {
    color: white;
}

.search-box {
    display: flex;
    overflow: hidden;
    align-items: center;
    position: relative;
    max-width: 340px;
}

.search-box input {
    flex: 1;
    background: white;
    color: var(--bg-footer);
    border-radius: 8px;
    padding: 0px 30px;
    height: 30px;
    max-height: 25px;
    border: none;
    outline: none;
    font-size: 12px;
}

.search-box input:focus {
    border: 1px solid var(--accent-color);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    top: 0;
    z-index: 200;
    position: relative;
}

.logo img {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    padding: 8px;
}

.container {
    max-width: 1230px;
    margin: 0 auto;
}
.navbar-nav{
    padding: 0;
}

.navbar-nav {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 15px 20px !important;
    transition: all 0.3s ease;
}

.navbar-nav a:hover {
    color: var(--primary-color) !important;
}
.nav-item a {
    text-decoration: none;
    color: #15304b;
    font-weight: 500;
    font-size: 0.8rem;
    transition: color 0.3s;
    letter-spacing: 1px;
}

.nav-item a:hover {
    color:#1f3469;
}
.dropdown-menu {
    background: white;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 8px;
    margin-top: 0;
    animation: fadeInUp 0.3s ease;
    max-width: 300px;
    white-space: nowrap;
}
.dropdown-menu.dropdown-menu-start{
    top: 50px;
    right: -50px;
    left: auto;
}
.dropdown-menu.dropdown-menu-start1{
    top: 50px;
    right: -100px;
    left: auto;
}
.dropdown-menu.dropdown-menu-start-center{
    top: 50px;
    right: -90px;
    left: auto;
}
.dropdown-menu.dropdown-menu-end {
    top: 50px;
    right: -90px;
    left: auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 1px 20px;
    color: var(--primary-color);
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.dropdown-item:hover {
    background: var(--bg-light);
}
.dropdown-menu li {
    margin-bottom: 0.6rem;
}

/* Footer */
.footer {
    background: var(--bg-footer);
    color: rgba(255, 255, 255, 0.664);
    padding: 3rem 0 1rem;
}

.footer-section-titre {
    font-family: 'Merriweather', serif;
    color: white;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}
.footer p{
    line-height: 1.4;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.664);
    line-height: 1.4;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.newsletter {
    display: flex;
    margin-top: 1rem;
}

.newsletter input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.newsletter button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.form-icon {
    display: flex;
    gap: 15px;
    list-style: none;
    margin-top: 20px;
}
.form-icon a {
    list-style: none;
    margin-bottom: 5px;
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.form-icon  a:hover {
    color: white;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #333333;
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.664);;
}
.bottom{
    display: flex;
    gap: 15px;
}
.bottom a{
    color: rgba(255, 255, 255, 0.664);;
    text-decoration: none;
    transition: color 0.3s;
    line-height: 1.4;
    font-size: 0.9rem;
}
.bottom a:hover{
     color: white;
}
/* Responsive Design */
@media (max-width: 1250px) {
    .container {
        max-width: 1150px;
        margin: 0 auto;
    }
}
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .news-image {
        height: 180px;
    }
}
@media (max-width: 880px) {
    .contact-info {
        position: relative;
        max-width: 700px;
        margin: 0 auto;
    }
    .footer-bottom, .bottom {
        flex-direction: column;
        align-items: center;
    }
}
@media (max-width: 788px) {
    .hero-content span {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .message-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .message-preeidente {
        font-size: 1.7rem;
    }
    .message-text p{
        line-height: 1.6;
        font-size: 0.95rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .calendar-grid {
        font-size: 0.1rem;
    }
    
    .agenda-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .event-item {
        padding: 10px;
    }
    .news-section {
        padding: 0 0;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .news-image {
        height: 160px;
    }
    
    .news-content {
        padding: 15px;
    }
    
    .news-title {
        font-size: 1.2rem;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
    }
    .contact-ensemble {
        flex-direction: column;
    }
}
@media (max-width: 576px) {
    .hero {
        min-height: 70vh;
    }
    
    .hero-content span {
        font-size: 2rem;
    }
    
    .access-card,
    .news-card {
        margin-bottom: 2rem;
    }
    .event-details-titre{
        font-size: 0.9rem;
    }
    .event-details p{
        font-size: 0.8rem;
    }

    .message-preeidente {
        font-size: 1.7rem;
        margin-bottom: 30px;
    }
}
@media (max-width: 480px) {
    
    .header-container {
        padding: 0 15px;
    }
    .hero {
        height: 70vh;
    }
    .hero-content span {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    .hero-content p {
        line-height: 1.4;
        font-size: 1rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .news-image {
        height: auto;
        min-height: 150px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .news-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .news-content {
        padding: 12px;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
    
    .news-excerpt {
        font-size: 0.85rem;
    }
    
    .read-more {
        font-size: 0.9rem;
    }
    .message-text span {
        line-height: 1.2;
        font-size: 1.7rem;
    }
    .doc-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .doc-grid {
        grid-template-columns: 1fr; 
    }
    .doc-download {
        align-self: flex-end;
    }
}
@media (max-width: 320px) {
    .news-image {
        height: 120px;
    }
    
    .news-title {
        font-size: 1rem;
    }
    
    .news-excerpt {
        font-size: 0.8rem;
    }
}

.navbar-nav li {
    z-index: 1000;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s;
}

.navbar-nav li:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 4px 16px rgba(24, 49, 104, 0.10);
    background: rgba(24, 49, 104, 0.04);
    border-radius: 8px;
    z-index: 2;
}

.navbar-nav .nav-link {
    transition: color 0.2s;
    position: relative;
}

.navbar-nav li:hover .nav-link {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
    position: absolute;
    left: 0;
    bottom: 2px;
}

.navbar-nav li:hover .nav-link::after {
    width: 100%;
}

.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item:active {
    background: var(--secondary-color) !important;
    color: #fff !important;
}

/* Active le dropdown au survol pour les écrans larges */
/* Solution 100% CSS pour maintenir le dropdown ouvert au hover */

@media (min-width: 992px) {
  .navbar-nav .dropdown {
    position: relative;
  }
  @media (max-width: 991px) {
  .navbar-nav .dropdown-menu {
    position: static;
    float: none;
    background: white;
    border: none;
    box-shadow: none;
    display: none;
  }

  .navbar-nav .dropdown.show .dropdown-menu {
    display: block;
  }

  .navbar-nav .dropdown-toggle::after {
    display: inline-block;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
  }
}

  .navbar-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    width: max-content;       /* ✅ S’adapte à la largeur du texte */
    min-width: 100%;          /* ✅ Ne sera jamais plus étroit que le lien parent */
    white-space: nowrap;      /* ✅ Évite le retour à la ligne */
    padding: 0.5rem 0; 
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.15);
  }

  .navbar-nav .dropdown:hover > .dropdown-menu {
    display: block;
  }

  .navbar-nav .dropdown-menu a {
    white-space: nowrap;
  }
}

/* Style de la page active dans la navbar */
