/* Bloc annonce masqué par défaut, affiché par JS si besoin */
#announcement {
  display: none;
  background: #F4D03F;
  color: #1B4332;
  padding: 1em;
  margin: 1em 0;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
}
/* Styles globaux */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #F8F9FA;
  color: #1B4332;
  display: flex;
  flex-direction: column;
}

html, body {
  height: 100%; /* Assure que le body occupe toute la hauteur de la page */
  margin: 0; /* Supprime les marges par défaut */
}

main {
  flex: 1; /* Permet au contenu principal de prendre l'espace disponible */
}

footer {
  margin-top: auto; /* Force le footer à rester en bas */
  position: relative; /* Assure que le footer est bien positionné */
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Section Hero */
.hero {
  background: linear-gradient(135deg, #1B4332, #2D6A4F, #D4AF37);
  color: white;
  text-align: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shine 3s infinite linear;
}

.hero h2 {
  font-size: 2.5rem;
  margin: 10px 0;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 1.2rem;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

/* Section Services */
.services {
  padding: 50px 20px;
  text-align: center;
}

.services h2 {
  font-family: 'Roboto', sans-serif; /* Police moderne et lisible */
  font-size: 2.5rem; /* Taille de police agrandie */
  color: #1B4332; /* Couleur vert foncé */
  text-align: center; /* Centrer le titre */
  margin-bottom: 20px; /* Espacement sous le titre */
}

.services .container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
  justify-items: center; /* Centre les éléments horizontalement dans la grille */
}

.services .container div {
  padding: 20px; /* Ajouter de l'espacement interne */
}

.services .container div:first-child {
  display: flex;
  flex-direction: column; /* Aligner les éléments verticalement */
  align-items: flex-start; /* Aligner à gauche */
  gap: 20px; /* Espacement entre les éléments */
}

.services ul {
  flex: 1; /* Prend 1 part de l'espace */
  text-align: left; /* Aligner le texte à gauche */
  list-style: none; /* Suppression des points de la liste */
  padding: 0; /* Suppression des marges internes */
}

.services li {
  margin: 10px 0;
  font-size: 1.1rem;
}

.services .image {
  text-align: center; /* Centrer l'image */
}

.services .image img {
  max-width: 100%; /* Image responsive */
  height: auto; /* Maintenir les proportions */
  border-radius: 10px; /* Coins arrondis pour un design moderne */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ajouter une ombre légère */
  display: inline-block; /* Assure que l'image est rendue */
}

.services .btn {
  display: flex; /* Utilisation de flexbox pour le centrage */
  justify-content: center; /* Centre horizontalement */
  align-items: center; /* Centre verticalement */
  margin: 20px auto; /* Centre le bouton avec une marge automatique */
  width: fit-content; /* Ajuste la largeur au contenu */
  padding: 15px 30px; /* Espacement interne augmenté pour un meilleur confort visuel */
  background: linear-gradient(45deg, #2D6A4F, #D4AF37); /* Dégradé vert-doré */
  color: #ffffff; /* Couleur du texte */
  font-size: 1.3rem; /* Taille de police légèrement agrandie */
  font-weight: bold; /* Texte en gras */
  text-transform: uppercase; /* Texte en majuscules */
  border: none; /* Suppression des bordures */
  border-radius: 12px; /* Coins plus arrondis pour un design moderne */
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); /* Ombre plus marquée pour un effet de relief */
  cursor: pointer; /* Curseur pointer pour indiquer l'interactivité */
  transition: all 0.3s ease; /* Transition fluide pour les interactions */
}

/* Ajout d'un effet visuel pour les appareils mobiles en utilisant :active pour simuler le hover */
.services .btn:active {
  background: linear-gradient(45deg, #D4AF37, #F1C40F); /* Couleur dorée plus claire au clic */
  transform: scale(1.1); /* Mise en avant au clic */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Réduction de l'ombre au clic */
}

/* Ajout d'une règle CSS plus spécifique pour forcer le centrage du bouton dans la section 'Services' */
.services .container .btn {
  margin: 20px auto !important; /* Forcer le centrage horizontalement */
  text-align: center;
}

/* Section Demarches */
.demarches {
  padding: 50px 20px;
  text-align: center;
  margin: 40px 0;
}

.demarches h2 {
  font-size: 2.5rem;
  margin-top: 40px; /* Augmente la marge supérieure */
  margin-bottom: 20px; /* Augmente la marge inférieure */
  color: #1B4332;
}

.demarches ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
}

.demarches li {
  margin: 10px 0;
  font-size: 1.1rem;
  background:linear-gradient(45deg, #2D6A4F, #D4AF37);
  border: none;
  color: #ffffff; /* Couleur du texte */
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.demarches li:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 10px rgba(82, 121, 111, 0.25);
  background: linear-gradient(45deg, #D4AF37, #F1C40F); /* Dégradé doré au survol */
}

.demarches a {
  color: inherit; /* Harmonise la couleur des liens avec le texte environnant */
  text-decoration: none; /* Supprime le soulignement par défaut */
}

.demarches a:hover {
  text-decoration: underline; /* Ajoute un soulignement au survol pour indiquer l'interactivité */
}

.demarches a.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #D4AF37; /* Couleur dorée pour le bouton */
  color: #fff; /* Couleur du texte du bouton */
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

/* Section Horaires */
.horaires {
  text-align: center; /* Centre le texte */
  margin: 40px auto; /* Centre la section horizontalement */
  max-width: 800px; /* Limite la largeur pour un meilleur alignement */
}

.horaires h2 {
  font-size: 2.5rem; /* Augmente la taille du titre */
  margin-bottom: 20px; /* Ajoute un espacement sous le titre */
  color: #1B4332; /* Couleur du texte du titre */
}

.horaires-table {
  width: 100%; /* Prend toute la largeur disponible */
  border-collapse: collapse; /* Supprime les espaces entre les bordures des cellules */
  margin: 20px 0; /* Marge verticale autour du tableau */
  font-size: 1.2rem; /* Taille de police pour le texte du tableau */
  text-align: left; /* Aligne le texte à gauche dans les cellules */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre pour un effet de relief */
}

.horaires-table th,
.horaires-table td {
  padding: 12px 15px; /* Espacement interne des cellules */
  border: 1px solid #ddd; /* Bordure légère autour des cellules */
}

.horaires-table thead th {
  background-color: #2D6A4F; /* Couleur de fond des en-têtes */
  color: #fff; /* Couleur du texte des en-têtes */
  text-align: center; /* Centre le texte des en-têtes */
}

.horaires-table tbody tr:nth-child(even) {
  background-color: #f3f3f3; /* Couleur de fond des lignes paires */
}

.horaires-table tbody tr.ferme {
  background-color: #ffe6e6; /* Couleur de fond pour les lignes "ferme" */
  color: #d32f2f; /* Couleur du texte pour les lignes "ferme" */
  font-weight: bold; /* Texte en gras pour les lignes "ferme" */
}

.horaires-table tbody tr:hover {
  background-color: #f1f1f1; /* Couleur de fond au survol */
}

/* === HORAIRES MODERNISÉS === */
.horaires-modern {
  padding: 50px 20px;
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.horaires-modern h2 {
  font-size: 2.8rem;
  color: #1B4332;
  text-align: center;
  margin-bottom: 15px;
  font-weight: 700;
}

.horaires-modern p {
  text-align: center;
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 40px;
}

.horaires-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.horaire-card {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  box-shadow: 
    0 4px 8px rgba(27, 67, 50, 0.1),
    0 2px 4px rgba(27, 67, 50, 0.06);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.horaire-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2D6A4F, #D4AF37);
}

.horaire-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 8px 16px rgba(27, 67, 50, 0.15),
    0 4px 8px rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.3);
}

.horaire-card.closed {
  background: linear-gradient(135deg, #ffeaea, #fff0f0);
  border-color: rgba(211, 47, 47, 0.2);
}

.horaire-card.closed::before {
  background: linear-gradient(90deg, #d32f2f, #f44336);
}

.horaire-card.closed:hover {
  border-color: rgba(211, 47, 47, 0.4);
}

.horaire-card .card-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.horaire-card h3 {
  color: #1B4332;
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.horaire-card.closed h3 {
  color: #d32f2f;
}

.horaire-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.time {
  background: linear-gradient(45deg, #2D6A4F, #D4AF37);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(45, 106, 79, 0.3);
}

.closed-text {
  background: linear-gradient(45deg, #d32f2f, #f44336);
  color: white;
  padding: 12px 20px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(211, 47, 47, 0.3);
}

/* === INFORMATIONS COMPLÉMENTAIRES === */
.info-complementaires {
  padding: 50px 20px;
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

.info-complementaires h2 {
  font-size: 2.5rem;
  color: #1B4332;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.info-card {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 
    0 4px 8px rgba(27, 67, 50, 0.1),
    0 2px 4px rgba(27, 67, 50, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #2D6A4F, #D4AF37);
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 6px 12px rgba(27, 67, 50, 0.15),
    0 3px 6px rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.4);
}

.info-card .card-icon {
  font-size: 2.2rem;
  margin-bottom: 15px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.info-card h3 {
  color: #1B4332;
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.info-card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .horaires-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .horaire-card, .info-card {
    padding: 20px 15px;
  }
  
  .horaires-modern h2 {
    font-size: 2.2rem;
  }
}

/* Annonce */
#announcement {
  background: linear-gradient(45deg, #D4AF37, #FFF3B0, #BF953F, #FFE87C);
  color: #2F3E46;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  padding: 12px 25px;
  margin: 20px auto;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
  display: none;
  border: 1px solid rgba(191, 149, 63, 0.2);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
  animation: goldShine 3s infinite linear;
}

@keyframes goldShine {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Documents */
.documents {
  margin: 40px auto; /* Centrer la section avec des marges */
  max-width: 800px; /* Limiter la largeur pour une meilleure lisibilité */
  padding: 20px; /* Ajouter de l'espacement interne */
  background-color: #f9f9f9; /* Couleur de fond douce */
  border: 1px solid #ddd; /* Bordure légère */
  border-radius: 8px; /* Coins arrondis */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre pour un effet de relief */
}

.documents h2 {
  font-size: 2rem; /* Taille de police agrandie pour le titre */
  color: #6B9B7F; /* Couleur du texte */
  text-align: center; /* Centrer le titre */
  margin-bottom: 20px; /* Espacement sous le titre */
}

.documents p {
  font-size: 1.2rem; /* Taille de police confortable */
  color: #333; /* Couleur du texte */
  line-height: 1.6; /* Hauteur de ligne pour une meilleure lisibilité */
  margin-bottom: 20px; /* Espacement sous le paragraphe */
}

.documents ul {
  list-style: disc inside; /* Style des puces à l'intérieur */
  padding: 0; /* Supprimer les marges internes */
  margin: 0; /* Supprimer les marges externes */
}

.documents ul li {
  margin-bottom: 10px; /* Espacement entre les éléments de la liste */
  font-size: 1.1rem; /* Taille de police légèrement agrandie */
  color: #555; /* Couleur du texte des éléments */
  display: flex; /* Aligner les éléments sur une ligne */
  align-items: center; /* Centrer verticalement */
  gap: 10px; /* Augmenter légèrement l'espacement entre le texte et le bouton */
}

/* Cards modernes pour les documents */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.document-card {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 
    0 4px 8px rgba(27, 67, 50, 0.1),
    0 2px 4px rgba(27, 67, 50, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.document-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 8px 16px rgba(27, 67, 50, 0.15),
    0 4px 8px rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.4);
}

.document-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2D6A4F, #D4AF37);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-align: center;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.card-content h3 {
  color: #1B4332;
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.card-content p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.print-btn {
  padding: 8px 16px;
  background: linear-gradient(145deg, #D4AF37, #B8941F);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
}

.print-btn:hover {
  background: linear-gradient(145deg, #F1C40F, #D4AF37);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(241, 196, 15, 0.4);
}

/* Animations au scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Délais d'animation pour un effet en cascade */
.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.5s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.6s; }
.animate-on-scroll:nth-child(7) { transition-delay: 0.7s; }

@media (max-width: 768px) {
  .documents-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .document-card {
    padding: 15px;
  }
}

.documents ul li button {
  padding: 6px 12px;
  background: linear-gradient(145deg, #D4AF37, #B8941F);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  margin-left: 8px;
  box-shadow: 
    0 2px 4px rgba(212, 175, 55, 0.3),
    0 1px 2px rgba(212, 175, 55, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
  transform: perspective(1px) translateZ(0);
}

.documents ul li button:hover {
  background: linear-gradient(145deg, #F1C40F, #D4AF37);
  transform: translateY(-1px);
  box-shadow: 
    0 3px 6px rgba(241, 196, 15, 0.4),
    0 2px 4px rgba(241, 196, 15, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.documents ul li button:active {
  transform: translateY(0);
  box-shadow: 
    0 1px 2px rgba(212, 175, 55, 0.3),
    inset 0 1px 0 rgba(0, 0, 0, 0.1);
}

/* Formulaire de contact */
.contact-form {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 20px auto;
}

/* Status du formulaire */
.form-status {
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 6px;
  display: none;
}

.form-status.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-status.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Champ honeypot */
.hidden-field {
  display: none;
}

/* Spinner de chargement */
.spinner {
  animation: rotate 2s linear infinite;
  width: 20px;
  height: 20px;
}

.spinner .path {
  stroke: #ffffff;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

.contact-form h2 {
  font-size: 2rem; /* Taille de police agrandie */
  color: #6B9B7F; /* Couleur du texte */
  text-align: center; /* Centrer le titre */
  margin-bottom: 20px; /* Espacement sous le titre */
}

.contact-form label {
  display: block; /* Chaque label sur une nouvelle ligne */
  font-size: 1.1rem; /* Taille de police confortable */
  color: #333; /* Couleur du texte */
  margin-bottom: 5px; /* Espacement sous le label */
}

.contact-form input,
.contact-form textarea {
  width: 100%; /* Champs prennent toute la largeur */
  padding: 10px; /* Espacement interne */
  margin-bottom: 15px; /* Espacement entre les champs */
  border: 1px solid #ddd; /* Bordure légère */
  border-radius: 5px; /* Coins arrondis */
  font-size: 1rem; /* Taille de police */
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); /* Ombre interne légère */
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #6B9B7F; /* Couleur de bordure au focus */
  outline: none; /* Supprime le contour par défaut */
  box-shadow: 0 0 5px rgba(82, 121, 111, 0.5); /* Effet lumineux au focus avec la couleur principale */
}

.contact-form button {
  display: block; /* Bouton centré */
  width: 100%; /* Prend toute la largeur */
  padding: 12px; /* Espacement interne légèrement augmenté */
  background: linear-gradient(45deg, #6B9B7F, #98D8C8); /* Dégradé cohérent */
  color: #fff; /* Couleur du texte */
  border: none; /* Supprime les bordures */
  border-radius: 8px; /* Coins arrondis */
  font-size: 1.2rem; /* Taille de police */
  font-weight: bold; /* Texte en gras */
  cursor: pointer; /* Curseur pointer */
  transition: all 0.3s ease; /* Transition fluide */
  box-shadow: 0 2px 4px rgba(82, 121, 111, 0.2);
}

.contact-form button:hover {
  background: linear-gradient(45deg, #98D8C8, #6B9B7F); /* Inverse le dégradé au survol */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(82, 121, 111, 0.3);
}

.contact-form button:active {
  transform: scale(0.98); /* Légère réduction au clic */
}

/* Styles pour les pages login et admin */
.login-container, .admin-container {
  max-width: 400px;
  margin: 50px auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #f9f9f9;
}

.login-container h1, .admin-container h1 {
  font-size: 1.5em;
  margin-bottom: 20px;
  text-align: center;
  color: #333;
}

form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #555;
}

form input, form textarea, form button {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

form button {
  background-color: #6B9B7F;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

form button:hover {
  background-color: #0056b3;
}

.form-preview {
  margin-bottom: 20px;
  padding: 15px;
  background: #f5f5f5;
  border-radius: 8px;
}

.form-preview h2 {
  font-size: 1.2rem;
  color: #6B9B7F;
  margin-bottom: 15px;
}

#announcement-preview {
  min-height: 50px;
  margin: 10px 0;
}

#announcement-preview .announcement {
  background: linear-gradient(45deg, #D4AF37, #FFF3B0, #BF953F, #FFE87C);
  color: #2F3E46;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
}

.no-preview {
  color: #666;
  font-style: italic;
  text-align: center;
}

.button-group {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.primary-button, .secondary-button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.primary-button {
  background: linear-gradient(45deg, #6B9B7F, #98D8C8);
  color: white;
  flex: 2;
}

.secondary-button {
  background: #f0f0f0;
  color: #6B9B7F;
  flex: 1;
}

.primary-button:hover, .secondary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.status-message {
  text-align: center;
  font-size: 0.9em;
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
  transition: opacity 0.3s ease;
}

.status-message.success {
  background-color: #dff0d8;
  color: #3c763d;
  border: 1px solid #d6e9c6;
}

.status-message.error {
  background-color: #f2dede;
  color: #a94442;
  border: 1px solid #ebccd1;
}

/* Effets hover pour les liens */
nav a:hover {
  color: #6B9B7F; /* Changement de couleur au survol */
  text-decoration: underline; /* Ajout d'un soulignement */
}

/* Effets hover pour les boutons */
button:hover, .btn:hover {
  background: linear-gradient(45deg, #98D8C8, #6B9B7F); /* Inverse le dégradé au survol */
  transform: scale(1.05); /* Légère mise en avant */
  box-shadow: 0 4px 6px rgba(82, 121, 111, 0.3); /* Ombre plus marquée avec la couleur principale */
}

/* Effets actifs pour les liens */
nav a:active {
  color: #98D8C8; /* Changement de couleur au clic */
  text-decoration: underline; /* Ajout d'un soulignement */
}

/* Effets actifs pour les boutons */
button:active, .btn:active {
  background-color: #1d3557; /* Couleur de fond au clic */
  transform: scale(0.95); /* Légère réduction pour un effet de clic */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Ombre réduite au clic */
}

/* Style pour le bouton 'Retour' */
.back-button {
  margin: 10px auto;
  text-align: left;
  max-width: 400px;
}

.back-button a {
  display: inline-block;
  color: #ffffff;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  padding: 10px 20px;
  background: linear-gradient(45deg, #6B9B7F, #98D8C8);
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.back-button a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Bouton retour global */
.return-button {
  display: block;
  margin: 20px auto;
  padding: 12px 25px;
  background: linear-gradient(45deg, #6B9B7F, #98D8C8);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.return-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Styles responsifs pour la section Services */
@media (max-width: 768px) {
  .services .container {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  
  .services .image {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 20px 0;
  }
  
  .services .image img {
    max-width: 100%;
    height: auto;
  }
  
  .footer-container {
    flex-direction: column;
  }
  
  .footer-col {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }

  /* Réorganisation de l'ordre des colonnes en mobile */
  .footer-col:nth-child(2) { /* Colonne du copyright */
    order: 3; /* La déplace en dernier */
    margin-top: 20px; /* Ajoute de l'espace au-dessus */
  }

  .footer-col:first-child {
    order: 1;
  }

  .footer-col:last-child {
    order: 2;
  }
}

/* Styles pour le footer */
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* Aligne les colonnes en bas */
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  gap: 60px;
}

.footer-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Aligne le contenu de chaque colonne en bas */
}

/* Ajustement pour que les titres restent en haut */
.footer-col h3 {
  margin-bottom: auto; /* Pousse le contenu vers le bas */
}

/* Assure que tous les paragraphes du footer ont la même marge en bas */
.footer-col p {
  margin-bottom: 0;
  white-space: nowrap;
}

.container .button-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 20px 0;
}

@media (max-width: 768px) {
  .footer-container {
    align-items: center;
    flex-direction: column;
    padding: 15px;
    gap: 15px;
  }
  
  .footer-col {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
  
  .footer-col:last-child {
    margin-bottom: 0;
  }
  
  .footer-col p {
    white-space: normal;
    margin: 5px 0;
    font-size: 0.9rem;
  }

  .footer-col h3 {
    margin-bottom: 5px;
    font-size: 1.1rem;
  }
}

/* Styles pour la page d'accueil modernisée */

/* Section Services Home */
.services-home {
  padding: 60px 20px;
  background: #F8F9FA;
}

.services-home h2 {
  text-align: center;
  color: #1B4332;
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.services-home > .container > p {
  text-align: center;
  color: #2D6A4F;
  font-size: 1.2rem;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.service-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: 
    0 8px 25px rgba(27, 67, 50, 0.08),
    0 3px 10px rgba(27, 67, 50, 0.05);
  transition: all 0.4s ease;
  border: 1px solid rgba(212, 175, 55, 0.1);
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
}

.service-card:visited {
  color: inherit;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #D4AF37, #2D6A4F);
  transition: left 0.4s ease;
}

.service-card:hover::before {
  left: 0;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 15px 40px rgba(27, 67, 50, 0.15),
    0 8px 20px rgba(27, 67, 50, 0.1);
  cursor: pointer;
}

.service-card .card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  color: #1B4332;
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.service-card p {
  color: #2D6A4F;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.services-cta {
  text-align: center;
}

.btn-modern {
  display: inline-block;
  background: linear-gradient(145deg, #D4AF37, #B8941F);
  color: white;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 
    0 6px 20px rgba(212, 175, 55, 0.3),
    0 3px 10px rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-modern:hover {
  background: linear-gradient(145deg, #2D6A4F, #1B4332);
  transform: translateY(-3px);
  box-shadow: 
    0 10px 30px rgba(45, 106, 79, 0.4),
    0 5px 15px rgba(45, 106, 79, 0.3);
}

/* Section About */
.about-section {
  padding: 60px 20px;
  background: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  color: #1B4332;
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.about-text p {
  color: #2D6A4F;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F8F9FA;
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid #D4AF37;
}

.feature-icon {
  font-size: 1.5rem;
}

.feature-item span:last-child {
  color: #1B4332;
  font-weight: 500;
}

.about-image {
  position: relative;
}

.bureau-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 
    0 15px 40px rgba(27, 67, 50, 0.15),
    0 8px 20px rgba(27, 67, 50, 0.1);
}

/* Responsive pour les nouvelles sections */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-card {
    padding: 25px;
  }
  
  .services-home h2 {
    font-size: 2rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .about-text h2 {
    font-size: 1.8rem;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
  
  .bureau-image {
    height: 300px;
  }
}

