

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    color: #333;
}

header {
    background: #ffffff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #007BFF;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #007BFF;
}

.btn-primary {
    background: #007BFF;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
}

.btn-primary:hover {
    background: #0056b3;
}

main {
    padding: 50px 20px;
}

section {
    background: #fff;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #007BFF;
    text-align: center;
}

.event-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.event-card {
  background: #e9f5ff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 300px;
  flex: 1 1 280px;
}

.testimonial {
    background: #fff3cd;
    padding: 30px;
    border-left: 5px solid #ffae42;
    margin: 20px 0;
    text-align: center;
}

.partner-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.partner-list img {
    max-width: 150px;
    height: auto;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
}

footer a {
    color: #ffae42;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .event-list {
        flex-direction: column;
        align-items: center;
    }
}

/* Style pour le formulaire */
form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

form h3 {
    font-size: 1.5rem;
    color: #007BFF;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

input[type="text"],
input[type="number"],
input[type="tel"],
input[type="email"],
textarea,
select {
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #f9f9f9;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    border-color: #007BFF;
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

input[type="checkbox"] {
    margin-right: 8px;
}

button[type="submit"] {
    background: #007BFF;
    color: #fff;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
    margin-top: 20px;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Responsivité */
@media (max-width: 768px) {
    form {
        padding: 20px;
        grid-template-columns: 1fr;
    }

    .form-group {
        margin-bottom: 15px;
    }

    button[type="submit"] {
        width: 100%;
    }
}
.text-center {
    text-align: center;
}

.text-primary {
    color: #007BFF;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}
input[type="checkbox"]:hover {
    cursor: pointer;
    outline: 2px solid #007BFF;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="number"]:hover,
input[type="tel"]:hover,
select:hover {
    background: #eef6ff;
}
/* === STYLE COMPACT ET CENTRÉ === */

/* Centrage global */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Sections plus compactes */
section {
    width: 100%;
    padding: 20px;
    margin: 20px auto;
}
section {
  padding: 30px 40px;
}


/* Formulaire plus compact */
form {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
    form {
        grid-template-columns: 1fr;
    }
}

/* === COULEURS MOBILIZON: BLEU VIOLET ET TONS DOUX === */

:root {
    --primary-color: #7C3AED; /* Violet doux */
    --primary-dark: #5B21B6;
    --background: #F9FAFB;
    --light-border: #E5E7EB;
}

/* Refonte couleurs */
body {
    background: var(--background);
    color: #111827;
}

.logo {
    color: var(--primary-color);
}

nav a:hover,
h2,
form h3 {
    color: var(--primary-color);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-color);
}

/* Boutons stylés */
.btn-primary,
button[type="submit"] {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 4px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover,
button[type="submit"]:hover {
    background-color: var(--primary-dark);
}

/* Footer plus doux */
footer {
    background: #1F2937;
    color: #D1D5DB;
}

/* === PETITS EFFETS ET FINESSES === */

/* Légère animation sur les inputs */
input, select, textarea {
    transition: all 0.2s ease-in-out;
}

input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

/* Légère élévation des cartes au hover */
.event-card:hover {
    transform: translateY(-3px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
/* === Améliorations Mobilizon Étirées & Formulaire simplifié === */

/* Étirer le contenu sans casser la structure */
main, section, form {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 30px;
}

/* Ajouter plus d'air entre les sections */
section {
    margin-bottom: 40px;
}



/* Espacer davantage le contenu dans les cartes d’événements */
.event-card {
    padding: 25px;
    width: 280px;
}

/* Centrage global et espacement */
body {
    line-height: 1.7;
}

/* Simplicité des checkboxes (cases à cocher) */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #007BFF; /* couleur de coche simple */
    box-shadow: none;
    outline: none;
    border: none;
    vertical-align: middle;
}

/* Supprimer les effets de hover/focus trop marqués */
input[type="checkbox"]:focus,
input[type="checkbox"]:hover {
    border: none;
    outline: none;
    box-shadow: none;
}

/* Étirer et aligner les champs de formulaire correctement */
form .form-group {
    max-width: 100%;
    gap: 10px;
}

/* Gérer les labels de checkbox correctement */
.form-group label[for*="checkbox"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}

/* Soumission bouton mieux espacé */
button[type="submit"] {
    margin-top: 30px;
}
/* === Mobilizon étiré et espacé v2 === */

main, section, form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 40px;
}

/* Sections plus espacées entre elles */
section {
    margin-bottom: 50px;
}

/* Cartes d'événements un peu plus larges */
.event-card {
    padding: 30px;
    width: 320px;
}

/* Espacement vertical global */
body {
    line-height: 1.8;
}

/* Cases à cocher simples et sans fioritures */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #007BFF;
    box-shadow: none;
    outline: none;
    border: none;
    vertical-align: middle;
}

/* Enlever les effets visuels sur hover/focus */
input[type="checkbox"]:focus,
input[type="checkbox"]:hover {
    border: none;
    outline: none;
    box-shadow: none;
}

/* Alignement propre des labels de checkbox */
.form-group label[for*="checkbox"] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
}

/* Étirement et espacement des champs */
form .form-group {
    max-width: 100%;
    gap: 10px;
}
.event-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
  align-items: center;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #333;
}

.icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.icon:hover {
  transform: scale(1.1);
}
.event-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
section {
  padding: 30px 40px;
}
/* Amélioration de la disposition des événements */
.event-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.event-card {
  background: #e9f5ff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 300px;
  flex: 1 1 280px;
  transition: transform 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
}
.testimonials-section {
  padding: 90px 40px;
  text-align: center;
  background-color: #f9f9f9;
}

.testimonials-section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #333;
}

.comment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.comment-card {
  width: 300px;
  padding: 20px;
  background-color: transparent;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: background-color 0.4s ease, transform 0.3s ease;
  cursor: pointer;
  text-align: left;
}

.comment-card:hover {
  background-color: rgba(0, 123, 255, 0.1);
  transform: translateY(-5px);
}

.comment-card p {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}

.comment-card h4 {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #007bff;
}

.recherche-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;  /* Fixe la section à l'écran */
  top: 9.1rem;  /* Déplace la section un peu plus bas */
  left: 2rem;  /* Marge à gauche */
  width: 200px;  /* Réduit encore la largeur de la section */
  z-index: 1000;  /* S'assure que la section est au-dessus des autres éléments */
}


.recherche-evenement {
  width: 250px;  /* Fixe une largeur plus petite */
  background: #f9f9f9;
  padding: 1rem;  /* Réduit l'espace autour des éléments */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;  /* Aligne tout à gauche */
}

.recherche-evenement h2 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;  /* Réduit l'espacement */
  align-self: flex-start;  /* Aligne le titre à gauche */
}

.recherche-evenement input {
  width: 95%;
  padding: 0.3rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  text-align: left;  /* Aligne le texte à gauche */
}

.recherche-evenement button {
  width: 100%;
  padding: 0.7rem;
  background-color: #1d72b8;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.recherche-evenement button:hover {
  background-color: #155a8a;
}

/* ccs du formulaire caché */

.btn-commentaire {
  background-color: #1d72b8;
  color: white;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
    margin-top: 5rem; /* au lieu de 1rem */

}

.btn-commentaire:hover {
  background-color: #155a8a;
}

#form-temoignage {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 400px;
}

#form-temoignage input,
#form-temoignage textarea {
  padding: 0.7rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

#form-temoignage button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
  width: 100%; /* Aligne avec les champs du formulaire */
  box-sizing: border-box;
}
#form-temoignage button:hover {
  background-color: #218838;
}

/* css pour le bouton Admin */

.footer-burger {
  position: fixed; /* Toujours visible en bas à gauche de la page */
  bottom: 1rem;
  left: 1rem;
  z-index: 1000;
}

.burger-btn {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
}

.burger-menu {
  display: none;
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.burger-menu a {
  display: block;
  padding: 0.4rem 0.8rem;
  text-decoration: none;
  color: #1d72b8;
  font-weight: bold;
}

.burger-menu a:hover {
  background-color: #f5f5f5;
}
/* css de Admin */

.admin-container {
  max-width: 800px;
  margin: 4rem auto;
  padding: 2rem;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 12px;
}

.admin-container h1 {
  text-align: center;
  color: #1d72b8;
  margin-bottom: 2rem;
}

.filtre-container {
  text-align: center;
  margin-bottom: 2rem;
}

.filtre-container select {
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.evenements-liste {
  border-top: 1px solid #eee;
  padding-top: 1rem;
}
html {
  scroll-behavior: smooth;
}
#date-range {
  width: 100%;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

