body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #2829b9;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background-color: #2829b9; /* Teal primary from association theme */
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

header img.main-logo {
    max-width: 600px;
    height: auto;
    margin-bottom: 10px;
}

h1, h2, h3 {
    color: #2829b9;
    font-weight: bold;
}

h1 {
    font-size: 2.5rem;
    margin: 0;
}

h2 {
    font-size: 2rem;
    margin-top: 40px;
}

h3 {
    font-size: 1.5rem;
    margin-top: 30px;
}

p {
    margin-bottom: 20px;
}

a {
    color: #2829b9; /* Blue link color */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2829b9;
    text-decoration: underline;
}

.nav-link.active {
    font-weight: bold;
    text-decoration: underline;
    color: #ff0000; /* Red accent from phone number in logo */
}

.card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card-title {
    color: #2829b9;
    font-size: 2rem;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.gallery img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

footer {
    background-color: #2829b9;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

footer p {
    margin: 5px 0;
}

/* Accessibility enhancements */
a:focus, button:focus, input:focus {
    outline: 3px solid #ffbf00; /* Yellow focus for visibility */
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Custom accents from PDF images */
.accent-red {
    color: #ff0000; /* Red from phone and TACO vehicle */
}

.accent-blue {
    color: #2829b9; /* Blue from logo text */
}

.multi-color {
    /* Gradient inspired by Avesnois logo */
    background: linear-gradient(to right, #ff0000, #ffff00, #00ff00, #2829b9);
    -webkit-background-clip: text;
    color: transparent;
}

/* Responsive design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    h3 {
        font-size: 1.5rem;
    }
    .gallery {
        flex-direction: column;
    }
    .row {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
}

/* Additional styles for Bootstrap overrides */
.navbar {
    background-color: #f8f9fa !important;
}

.navbar-light .navbar-nav .nav-link {
    color: #2829b9;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #ff0000;
}

.btn-primary {
    background-color: #004d40;
    border-color: #004d40;
}

.btn-primary:hover {
    background-color: #00332b;
    border-color: #00332b;
}

.navbar-nav .nav-link {
    font-size: 1rem; /*  augmente la taille à x fois la taille de base */
}
/* Menu de base (visible sur ordinateur) */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px;
}

/* Menu hamburger sur mobile */
.menu-toggle {
    display: none; /* Caché par défaut */
    font-size: 30px;
    cursor: pointer;
    color: #333;
}

/* Override pour mobile : force horizontal même sur petits écrans */
@media screen and (max-width: 768px) {  /* Ajustez la largeur selon votre breakpoint */
  .menu {
    flex-direction: row !important;  /* Force horizontal */
    flex-wrap: nowrap !important;
    overflow-x: auto !important;  /* Scroll si nécessaire */
    white-space: nowrap;  /* Empêche les sauts de ligne */
  }
  .menu li {  /* Items du menu */
    display: inline-block;  /* Ou flex pour aligner */
  }
  /* Si hamburger menu, cachez-le ou forcez l'affichage */
  .hamburger-icon { display: none !important; }
  .menu { display: flex !important; }  /* Si caché sur mobile */
}

.menu li {
  float: left;  /* Horizontal */
}
@media screen and (max-width: 768px) {
  .menu li {
    float: left !important;
    clear: none !important;
  }
}

@media (max-width: 576px) {  /* Cible les mobiles étroits, ajustez si nécessaire (ex. : 768px pour tablettes) */
    .gallery {
        flex-direction: column !important;  /* Empile verticalement au lieu d'horizontal */
        align-items: center !important;     /* Centre les images */
        gap: 10px !important;               /* Réduit l'espacement pour éviter les marges excessives */
    }
    
    .gallery img {
        width: 100% !important;             /* Force les images à prendre toute la largeur disponible */
        max-width: none !important;         /* Override tout max-width fixe qui pourrait causer des problèmes */
        height: auto !important;            /* Garde le ratio d'aspect */
    }
}



/* Sur écran mobile (moins de 768px) 
@media (max-width: 768px) {
    nav ul {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 60px; 
        left: 0;
        right: 0;
        background-color: #fff;
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

    nav ul.active {
        display: flex; 
    }

    .menu-toggle {
        display: block; 
    }
} */
