<code lang="css">
@import url('[https://fonts.googleapis.com/css2?family=Lora:wght@400;700&amp;family=Open+Sans:wght@400;600&amp;display=swap](https://fonts.googleapis.com/css2?family=Lora:wght@400;700&amp;family=Open+Sans:wght@400;600&amp;display=swap)');

:root {
    --primary-color: #1a237e; /* Bleu nuit profond */
    --secondary-color: #c5a13c; /* Or/Jaune moutarde pour l'accent */
    --background-color: #f4f4f9; /* Blanc cassé/Gris très clair */
    --text-color: #333333;
    --light-text-color: #ffffff;
    --font-serif: 'Lora', serif;
    --font-sans-serif: 'Open Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans-serif);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 0.5rem 2rem; /* Padding vertical légèrement réduit */
    display: flex;
    justify-content: space-between; /* Pousse le logo à gauche et la nav à droite */
    align-items: center; /* Centre verticalement tout le contenu */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}


/* Bouton menu hamburger (caché sur PC) */
#menu-toggle {
    display: none; /* Caché par défaut */
    background: none;
    border: none;
    font-size: 1.8rem; /* Taille de l'icône légèrement réduite */
    cursor: pointer;
    color: var(--light-text-color);
    padding: 0.25rem; /* Ajout d'un petit padding pour faciliter le clic */
    line-height: 1; /* Empêche le bouton d'ajouter une hauteur excessive */
}

header.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
}

header nav {
    display: flex;
    align-items: right;
}

header nav a {
    color: var(--light-text-color);
    text-decoration: none;
    margin: 0 1rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

header nav a:hover, header nav a.active {
    border-color: var(--secondary-color);
}

main {
    padding: 2rem;
	background-image : url("goat.jpg");
	height: 80vh;
background-repeat: no-repeat;
  background-size: 100%;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h1, h2, h3 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; color: var(--primary-color); }

.hero {
    text-align: center;
    padding: 4rem 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.cta-button, button {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover, button:hover {
    background-color: #a88a34;
    transform: translateY(-2px);
}

#admin-login-btn {
    background-color: #fff;
    color: var(--primary-color);
    margin-left: 1rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary-color);
}

/* Styles pour la section Événements */
#event-list {
    display: grid;
    gap: 1.5rem;
}

.event-item {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-left: 5px solid var(--secondary-color);
}

.event-item h3 {
    color: var(--secondary-color);
}

.event-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.event-admin-buttons {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.event-admin-buttons button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.edit-btn { background-color: #2962ff; }
.delete-btn { background-color: #d32f2f; }

/* Styles pour le panneau d'administration */
.admin-section {
    background-color: #e8eaf6;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

#event-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#event-form input, #event-form textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-sans-serif);
    font-size: 1rem;
}

#event-form button {
    align-self: flex-start;
}
/* /* Ce style doit être HORS de la section @media. */ */
/* /* Il s'applique par défaut, donc sur ordinateur. */ */
/* #menu-toggle { */
    /* display: none; /* CACHÉ par défaut */ */
    /* background: none; */
    /* border: none; */
    /* font-size: 2rem; */
    /* cursor: pointer; */
    /* color: var(--light-text-color); /* Blanc par défaut sur fond bleu */ */
/* } */
#form-cancel-btn {
    background-color: #757575;
}

/* Styles pour la section Contact */
.contact-container {
    display: flex;
    gap: 2rem;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.contact-info {
    flex-basis: 40%;
}

.contact-form {
    flex-basis: 60%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-sans-serif);
    font-size: 1rem;
}

.contact-form button {
    align-self: flex-start;
}

footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    background-color: var(--primary-color);
    color: var(--light-text-color);
	height: 5vh;
}
/* --- STYLES POUR LE POPUP (MODAL) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #aaa;
    cursor: pointer;
}

#login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#login-form input {
     padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.error-message {
    color: #d32f2f;
    background-color: #ffcdd2;
    padding: 0.8rem;
    border-radius: 5px;
    text-align: center;
}


/* --- STYLES POUR LA RESPONSIVITÉ (MOBILE) --- */

@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    /* Affiche le bouton menu et le met en noir */
    #menu-toggle {
        display: block;
        color: black; /* CHANGEMENT : L'icône devient noire */
    }

    /* Le menu de navigation qui s'ouvre */
    header nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff; /* CHANGEMENT : Le fond devient blanc opaque */
        padding: 1rem 0;
        border-bottom: 1px solid #e0e0e0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    /* Affiche la navigation quand le menu est ouvert */
    header nav.active {
        display: flex;
    }

    /* Les liens dans le menu de navigation mobile */
    header nav a {
        margin: 0.5rem 1rem;
        text-align: center;
        color: var(--primary-color); /* CHANGEMENT : Les liens deviennent foncés pour être visibles sur fond blanc */
    }
    
    /* Le reste de vos styles mobiles... */
    main {
        padding: 1rem;
        background-size: cover;
        background-position: center center;
        height: auto;
        min-height: 70vh;
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }

    .contact-container {
        flex-direction: column;
    }
}
/* Nouveau style pour le bouton de connexion Google officiel */
.google-login-btn {
    all: unset; /* Réinitialise tous les styles par défaut du bouton */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    height: 40px;
    padding: 0 10px;
    background-color: #ffffff;
    border: 1px solid #747775;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif; /* Google recommande la police Roboto */
    font-size: 14px;
    font-weight: 500;
    color: #1f1f1f;
    cursor: pointer;
    transition: background-color .3s, box-shadow .3s;
}

.google-login-btn:hover {
    background-color: #f7fafe;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
}

.google-logo {
    width: 18px;
    height: 18px;
}
/* --- STYLES POUR LA PAGE DE CONNEXION --- */
#connexion-page {
    display: none; /* Cachée par défaut */
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 2rem;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-container form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-container form input {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.auth-container form button {
    margin-top: 0.5rem;
    padding: 0.9rem;
    font-size: 1rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #999;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.auth-divider:not(:empty)::before {
    margin-right: .5em;
}

.auth-divider:not(:empty)::after {
    margin-left: .5em;
}

.auth-toggle-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.auth-toggle-link a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

/* Style officiel pour le bouton Google */
.google-login-btn {
    all: unset; /* Réinitialise les styles par défaut */
    box-sizing: border-box; /* Important avec all:unset */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    height: 42px;
    padding: 0 10px;
    background-color: #ffffff;
    border: 1px solid #747775;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1f1f1f;
    cursor: pointer;
    transition: background-color .3s, box-shadow .3s;
}

.google-login-btn:hover {
    background-color: #f7fafe;
    border-color: #d2e3fc;
}

.google-logo {
    width: 18px;
    height: 18px;
}
/* --- STYLES POUR LA PAGE DE CONNEXION --- */
#connexion-page {
    display: none; /* Reste caché par défaut */
    position: fixed; /* Le fixe par-dessus tout le reste */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Prend toute la hauteur de l'écran */
    background-color: var(--background-color); /* Fond opaque */
    z-index: 1500; /* S'assure qu'il est au-dessus du header */

    /* Centrage du contenu */
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-container form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-container form input {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.auth-container form button {
    margin-top: 0.5rem;
    padding: 0.9rem;
    font-size: 1rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #999;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.auth-divider:not(:empty)::before {
    margin-right: .5em;
}

.auth-divider:not(:empty)::after {
    margin-left: .5em;
}

.auth-toggle-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.auth-toggle-link a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

/* Style officiel pour le bouton Google */
.google-login-btn {
    all: unset; /* Réinitialise les styles par défaut */
    box-sizing: border-box; /* Important avec all:unset */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    height: 42px;
    padding: 0 10px;
    background-color: #ffffff;
    border: 1px solid #747775;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1f1f1f;
    cursor: pointer;
    transition: background-color .3s, box-shadow .3s;
}

.google-login-btn:hover {
    background-color: #f7fafe;
    border-color: #d2e3fc;
}

.google-logo {
    width: 18px;
    height: 18px;
}
/* --- STYLES POUR LE MENU PROFIL UTILISATEUR --- */
#user-profile-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    transition: background-color 0.3s;
}

#user-profile-menu:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#user-profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
}

#user-profile-name {
    font-weight: 600;
}

/* --- STYLES POUR LA MODALE DU COMPTE --- */
#account-modal .modal-content {
    max-width: 500px;
}

#account-modal form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

#account-modal label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: -5px;
}

.danger-zone {
    border: 2px solid #d32f2f;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.danger-zone h4 {
    color: #d32f2f;
}

.danger-zone .danger-btn {
    background-color: #d32f2f;
    margin: 0.5rem;
}
/* --- STYLES POUR LE LIEN DE PROFIL --- */
#user-profile-link {
    padding: 2px 10px 2px 2px;
    border-radius: 20px;
    transition: background-color 0.3s;
    border-bottom: 2px solid transparent; /* Pour la cohérence avec les autres liens */
}
#user-profile-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent; /* Empêche le surlignage au survol */
}
#user-profile-link.active {
    border-color: var(--secondary-color); /* Surligne quand la page profil est active */
}

.profile-link-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

#user-profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
}

#user-profile-name {
    font-weight: 600;
}

/* Styles pour la page de profil (réutilise le style de la page de connexion) */
#profile-page {
    display: none; /* Cachée par défaut */
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 2rem;
}
#profile-page h3 {
    text-align: center;
    font-size: 2rem;
}
/* ... tous vos styles existants ... */

/* --- STYLES POUR LA PAGE DE CONNEXION (inchangés) --- */
#connexion-page { /* ... */ }
.auth-container { /* ... */ }
/* ... etc ... */

/* --- STYLES POUR LE LIEN DE PROFIL (mis à jour) --- */
#user-profile-container {
    position: relative; /* Contexte pour le positionnement du dropdown */
	height: fit-content;
	width: fit-content;
}
#user-profile-link {
    padding: 2px 10px 2px 2px;
    border-radius: 20px;
    transition: background-color 0.3s;
    border-bottom: 2px solid transparent;
}
.profile-link-content {
    display: flex;
    align-items: center;
    gap: 10px;
}
#user-profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
}
#user-profile-name {
    font-weight: 600;
}

/* NOUVEAU : Style du menu déroulant */
#profile-dropdown {
    display: none; /* Caché par défaut */
    position: absolute;
    top: calc(100% + 10px); /* Juste en dessous du header */
    right: 0;
    width: 320px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    z-index: 2000;
    padding: 1.5rem;
    border: 1px solid #eee;
}
#profile-dropdown h3 {
    text-align: center;
    margin-top: 0;
}
#profile-dropdown form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
#profile-dropdown label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: -5px;
}
/* Style pour le bouton d'upload personnalisé */
.file-upload-label {
    background-color: #e8eaf6;
    color: var(--primary-color);
    padding: 0.6rem;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}
.file-upload-label:hover {
    background-color: #d1d9e6;
}
#profile-file-input {
    display: none; /* On cache le bouton par défaut */
}
#file-chosen-text {
    font-size: 0.8rem;
    color: #777;
    text-align: center;
    margin-top: -10px;
}

/* Actions en bas du dropdown */
.dropdown-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}
#logout-btn {
    width: auto;
    background-color: var(--primary-color);
    padding: 0.6rem 1rem;
}
#delete-account-link {
    font-size: 0.8rem;
    color: #d32f2f;
    text-decoration: none;
}
#delete-account-link:hover {
    text-decoration: underline;
}

/* Avatar dans le header */
#user-profile-pic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
}


/* Conteneur de l'avatar + nom */
#profile-menu-container #profile-menu-button{
  display: flex;
  align-items: center;
  gap: 8px; /* espace entre l'image et le nom */
  max-height: 40px;
  overflow: hidden;
  padding: 4px 0;
}

</code>