

body {

    margin:0;

    font-family:Arial, sans-serif;

    background:#f2f2f2;

}


.header {

    background:#ffffff;

    display:flex;

    align-items:center;

    padding:15px 30px;

}


.logo {

    width:90px;

    height:auto;

    margin-right:20px;

}


.header h1 {

    color:#1565c0;

}



.menu {

    background:#1565c0;

    padding:10px;

    text-align:center;

}


.menu a {

    color:white;

    text-decoration:none;

    margin:0 15px;

    font-weight:bold;

}

/* =========================================================
   BANDEAU PRINCIPAL
   ========================================================= */

.site-banner {
    position: relative;
    width: 100%;
    height: 180px;

    background-image: url("../images/banner.jpg");
    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

/* Voile léger sur l'image */
.site-banner::before {
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.20);

    z-index: 1;
}

/* Logo au-dessus du bandeau */
.banner-logo {
    position: relative;
    z-index: 2;

    max-width: 220px;
    max-height: 130px;

    width: auto;
    height: auto;

    object-fit: contain;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .site-banner {
        height: 140px;
    }

    .banner-logo {
        max-width: 170px;
        max-height: 100px;
    }
}


@media (max-width: 480px) {

    .site-banner {
        height: 110px;
    }

    .banner-logo {
        max-width: 140px;
        max-height: 80px;
    }
}
```




input {

    width:100%;

    padding:12px;

    margin:10px 0;

    box-sizing:border-box;

}



button {

    width:100%;

    padding:12px;

    background:#1565c0;

    color:white;

    border:0;

    border-radius:5px;

    cursor:pointer;

}


button:hover {

    background:#0d47a1;

}



.message {

    background:#eeeeee;

    padding:15px;

    margin-bottom:15px;

    border-radius:5px;

}



.footer {

    text-align:center;

    padding:20px;

    margin-top:40px;

}

a {
    position: relative;
    z-index: 9999;
}

/* =========================================================
   NAVBAR BOOTSTRAP
   ========================================================= */

/* 
Liens principaux de la navbar */
.navbar .nav-link {
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
}


/* Au survol */
.navbar .nav-link:hover {
    color: #ffc107 !important;
}


/* Bouton Connexion */
.navbar .btn-outline-light {
    color: #ffffff !important;
    border-color: #ffffff !important;
}


/* Survol Connexion */
.navbar .btn-outline-light:hover {
    color: #212529 !important;
    background-color: #ffffff !important;
}


/* Bouton Créer un compte */
.navbar .btn-warning {
    color: #212529 !important;
}


/* Mon espace */
.navbar .btn-light {
    color: #212529 !important;
}

/* =========================================================
   NAVBAR DU SITE
   ========================================================= */

.navbar {
    background-color: #1565c0 !important;
    min-height: 70px;
    z-index: 10000 !important;
}

.navbar .navbar-brand {
    color: #ffffff !important;
}

.navbar .navbar-brand:hover {
    color: #ffc107 !important;
}

.navbar .nav-link {
    display: block !important;
    color: #ffffff !important;
    font-weight: 500;
    opacity: 1 !important;
    visibility: visible !important;
    text-decoration: none !important;
}

.navbar .nav-link:hover {
    color: #ffc107 !important;
}

.navbar .nav-link:focus {
    color: #ffffff !important;
}


/* Zone des boutons utilisateur */

.navbar .d-flex {
    visibility: visible !important;
    opacity: 1 !important;
}


/* Bouton Connexion / Mon espace */

.navbar .btn-light {
    display: inline-block !important;
    color: #212529 !important;
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
}


/* Bouton Déconnexion / Créer un compte */

.navbar .btn-warning {
    display: inline-block !important;
    color: #212529 !important;
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    opacity: 1 !important;
    visibility: visible !important;
}


/* Texte des boutons */

.navbar .btn {
    white-space: nowrap;
}


/* Contenu de la navbar au-dessus du reste */

.navbar .container,
.navbar .navbar-collapse,
.navbar .navbar-nav {
    position: relative;
    z-index: 10001;
}


.navbar {
    background-color: #1565c0 !important;
}

.main-navbar {
    min-height: 180px;

    background-image: url("../images/bandeau.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}



/* Logo et liens */
.main-navbar .navbar-brand,
.main-navbar .nav-link {
    color: white;
}

.main-navbar .nav-link {
    font-weight: 500;
}

.main-navbar .nav-link:hover {
    color: #ffc107;
}

/* Bouton hamburger */
.main-navbar .navbar-toggler {
    background-color: rgba(255, 255, 255, 0.85);
}


/* =========================================================
   CARTE GOOGLE MAPS DES EVENEMENTS
   ========================================================= */

.event-map {
    width: 100%;
    height: 200px;
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

/* Adaptation mobile */

@media (max-width: 768px) {

    .event-map {
        height: 180px;
    }
}


.map-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

  /* Style par défaut pour les ordinateurs et tablettes */
        .galerie {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 15px;
            width: 100%;
            padding: 10px;
            box-sizing: border-box;
        }

        .galerie img {
            width: 23%; /* 4 images côte à côte */
            height: auto;
            object-fit: cover;
            border-radius: 8px; /* Optionnel : arrondit les coins */
        }

        /* 📱 Version Mobile (écrans de moins de 768px) */
        @media (max-width: 768px) {
            .galerie {
                flex-direction: column; /* Aligne les images verticalement */
                gap: 20px;              /* Augmente l'espace entre les images empilées */
            }

            .galerie img {
                width: 100%; /* Les images prennent toute la largeur du mobile */
                max-width: 400px; /* Optionnel : évite que l'image devienne trop géante */
            }
        }
  
/* =========================================================
   Partie formulaire
   ========================================================= */
      
    form input {
    display: block;
    width: 100%;
    margin-bottom: 5px;
}

form button {
    margin-top: 10px;
}

/* =========================================================
   CHAMP MOT DE PASSE AVEC ŒIL
   ========================================================= */

.password-container {
    position: relative;
    width: 100%;
}

.password-container input.form-control {
    width: 100%;
    padding-right: 50px;
    box-sizing: border-box;
}


/* Œil placé DANS le champ */
.password-container .password-toggle {
    position: absolute;

    top: 50%;
    right: 15px;

    transform: translateY(-50%);

    width: 25px !important;
    height: 25px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent !important;
    border: 0 !important;

    color: #333;

    font-size: 18px;
    line-height: 1;

    cursor: pointer;

    z-index: 10;
}

.password-container .password-toggle:hover {
    background: transparent !important;
    color: #1565c0;
    opacity: 0.8;
}


/* Règles du mot de passe */
#password-rules {
    margin-top: 10px;
    font-size: 0.9rem;
}

#password-rules div {
    margin-bottom: 3px;
}



/* =========================================================
   CHAMPS MOT DE PASSE avec 2em oeil
   ========================================================= */

.password-box {
    position: relative;
    width: 100%;
}


/* Champ */

.password-box .form-control {
    width: 100%;
    padding-right: 50px;
    box-sizing: border-box;
}


/* Œil */

.password-eye {
    position: absolute;

    right: 12px;
    top: 50%;

    transform: translateY(-50%);

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    font-size: 18px;

    z-index: 10;

    user-select: none;
}

.password-eye:hover {
    opacity: 0.7;
}


