/* =====================
   BASE
===================== */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  color: #002762;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* pour sticky footer */
}

.page-content {
  flex: 1; /* contenu prend tout l'espace restant */
}

/* =====================
   HEADER
===================== */
.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  box-sizing: border-box;
}

/* Logo */
.logo img {
  height: 135px;
  width: auto;
}

/* Navigation desktop */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  font-family: 'Montserrat', sans-serif;
  color: #002762;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background-color 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background-color: #BBED55;
  color: #002762;
}

/* Hamburger menu */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
  color: #002762;
}

/* Ombre du header au scroll */
.site-header.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* =====================
   HERO IMAGE + TEXTE SUR IMAGE (avec overlay foncé et bouton)
===================== */
.hero {
  position: relative;
  width: 100%;
  height: 75vh; /* 80% de la hauteur de l'écran */
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay sombre */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.35); /* ajuste l’opacité */
  pointer-events: none;
}

/* Texte centré sur l'image */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  z-index: 2;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 1.75rem;
  margin-bottom: 20px; /* espace avant le bouton */
}

/* Bouton hero */
.hero-text .hero-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: #BBED55; /* vert PSJ */
  color: #002762;             /* texte bleu PSJ */
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.25s, color 0.25s;
}

.hero-text .hero-button:hover {
  background-color: #002762;
  color: #ffffff;
}

/* Responsive hero */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-text .hero-button {
    padding: 10px 25px;
    font-size: 14px;
  }
}

/* =====================
   FOOTER
===================== */
.site-footer {
  background: #ffffff;
  color: #002762;
  text-align: center;
  padding: 20px 15px;
  font-size: 14px;
}

.site-footer .footer-copy,
.site-footer .footer-credit {
  margin: 0;
}

.site-footer .footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 5px 0 10px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}

.site-footer .footer-nav li {
  display: inline;
}

.site-footer .footer-nav li:not(:last-child)::after {
  content: "|";
  margin: 0 5px;
  color: #002762;
}

.site-footer .footer-nav a {
  color: #002762;
  text-decoration: none;
}

.site-footer .footer-nav a:hover {
  color: #BBED55;
}

.footer-credit::before {
  content: "💻";
  margin-right: 6px;
}

/* =====================
   FORMULAIRE CONTACT
===================== */
.contact-form {
  max-width: 600px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form label {
  position: relative;
  display: flex;
  align-items: center;
}

.contact-form .input-icon {
  position: absolute;
  left: 12px;
  font-size: 18px;
  pointer-events: none;
  color: #002762;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 12px 12px 40px;
  border: 2px solid #002762;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #BBED55;
  box-shadow: 0 0 5px rgba(187, 237, 85, 0.5);
}

.contact-form button {
  background-color: #002762;
  color: #ffffff;
  font-weight: 600;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.25s;
}

.contact-form button:hover {
  background-color: #BBED55;
  color: #002762;
}

/* =====================
   TITRES ET TEXTE CENTRÉS POUR TOUTES LES PAGES
===================== */
.page-content h1,
.page-content p {
  text-align: center;
}

/* =====================
   MOBILE
===================== */
@media (max-width: 768px) {
  /* Logo plus petit */
  .logo img {
    height: 60px;
  }

  /* Hamburger visible */
  .menu-toggle {
    display: block;
  }

  /* Menu desktop caché */
  .main-nav {
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    background: #ffffff;
    position: absolute;
    top: 80px;
    right: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    padding: 15px;
    border-radius: 8px;
    gap: 10px;
  }

  .contact-form {
    padding: 0 10px;
    gap: 12px;
  }
}
..ca-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #0b4fa3;
  color: #ffffff;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 8px 0;
  text-align: center;
}

.ca-back {
  position: relative;
}

.ca-since {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  opacity: 1;
  font-style: normal;
}

/* =====================
   PAGE À PROPOS
===================== */
.apropos-text-container p {
  line-height: 1.6;   /* espace entre les lignes */
  text-align: justify; /* si tu veux le texte justifié */
  margin-bottom: 1em;  /* ajoute un peu d’espace entre les paragraphes */
}

.apropos-text-container h1,
.apropos-text-container h2 {
  line-height: 1.3; /* interligne légèrement plus serré pour les titres */
  margin-bottom: 0.5em;
}
/* Hero spécifique à la page accueil */
.hero-accueil .hero-text {
  top: 30%; /* remonte le texte plus haut */
  transform: translate(-50%, -50%);
}
/* =====================
   PAGE ÉVÉNEMENTS – CONTENU
===================== */
.evenements-content {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: left;
}

.evenements-content h2 {
  text-align: left;
}

.evenements-content p {
  text-align: left;
}
/* =====================
   PAGE CA – SECTION PRINCIPALE
===================== */
.ca-section {
  max-width: 1200px;
  margin: 80px auto 100px;
  padding: 0 20px;
  text-align: center;
}

.ca-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.ca-intro {
  max-width: 720px;
  margin: 0 auto 50px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #555;
}
/* =====================
   FOND SECTION CA
===================== */
.ca-wrapper {
  background-color: #eef1f4;
  padding: 60px 0;
}
/* =====================
   HERO À PROPOS MOBILE – correction overlay et texte
===================== */
@media (max-width: 768px) {
  .apropos-text-container .hero {
    height: auto !important;
    position: relative !important;
  }

  /* Supprime le overlay global */
  .apropos-text-container .hero::after {
    display: none !important;
  }

  .apropos-text-container .hero-text {
    position: relative !important; /* texte dans le flux normal */
    z-index: auto !important;
    color: #222222 !important; /* texte noir foncé lisible */
    max-width: 100% !important;
    padding: 20px;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    text-align: justify !important;
  }

  .apropos-text-container .hero-text h1 {
    font-size: 2rem !important;
    text-align: center !important;
  }

  .apropos-text-container .hero-text p {
    font-size: 1rem !important;
    line-height: 1.5 !important;
  }
}
