/* Style global */
body {
  background-color: #f8f8f8; /* Blanc cassé */
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
}

/* Titres */
h1, h2, h3 {
  text-align: center;
  color: #222;
  margin-top: 20px;
}

/* Conteneur principal */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* Boutons */
button, .btn {
  display: inline-block;
  padding: 12px 24px;
  margin: 10px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
  border: none;
  background-color: #333;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}
button:hover, .btn:hover {
  background-color: #555;
}

/* Liens */
a {
  color: #0066cc;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Listes */
ul {
  list-style-type: none;
  padding: 0;
}
li {
  margin: 10px 0;
}

.hero-image {
  width: 100%;              /* Largeur complète */
  max-width: 1200px;        /* Limite la largeur pour ne pas flouter */
  height: 500px;            /* Hauteur fixe */
  object-fit: cover;        /* Remplit le cadre sans déformer */
  object-position: center 33%; /* Décale légèrement vers le haut */
  border-radius: 20px;      /* Bords arrondis */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Ombre légère */
  display: flex;
  margin: 20px auto;
}

.btn-contact {
  background-color: #16a34a; /* Rouge */
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
}

.btn-contact:hover {
  background-color: #16a34a;
}





.contact-form-container {
  max-width: 500px;
  margin: 50px auto;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background-color: #fff;
}

.contact-form-container h1 {
  text-align: center;
  margin-bottom: 20px;
}

.contact-form-container label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

.contact-form-container input,
.contact-form-container textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.contact-form-container button {
  display: block;
  margin: 20px auto 0;
  padding: 10px 30px;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

.contact-form-container button:hover {
  background-color: #16a34a;
}

.btn-contact {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #16a34a;
  color: white;
  text-decoration: none;
  border-radius: 8px;
}

.btn-contact:hover {
  background-color: #16a34a;
}

/* Style général pour les boutons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  margin: 10px;
  border-radius: 30px; /* Bord arrondi */
  background: #000000; /* Couleur de fond douce */
  color: #ebebeb; /* Texte sombre */
  font-weight: bold; /* Texte en gras */
  text-decoration: none; /* Retire le soulignement */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Ombre légère */
  transition: all 0.3s ease;
}

/* Effet hover (au survol) */
.btn:hover {
  background: #f0efef; /* Fond un peu plus foncé */
  transform: translateY(-2px); /* Petit effet de levée */
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

/* Bouton de contact avec une couleur spéciale */
.btn-contact {
  background: #d4af37; /* Or élégant */
  color: white;
}

.btn-contact:hover {
  background: #bfa32f; /* Or foncé */
}

/* --- Page Consignes --- */
.consignes-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}

.consignes-page .page-title {
  text-align: center;
  font-size: 2rem;
  color: #16a34a;
  margin-bottom: 28px;
}

.consigne-card {
  background: #fff;
  padding: 20px;
  margin-bottom: 24px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.1);
  transition: transform .18s ease, box-shadow .18s ease;
}
.consigne-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,.14);
}

.consigne-card .section-title {
  margin-top: 0;
  color: #111827;
  font-size: 1.35rem;
}

.consigne-card .text-block {
  font-size: 1rem;
  line-height: 1.6;
  color: #374151;
  margin: 8px 0;
}

.styled-list {
  padding-left: 20px;
  margin: 8px 0;
  color: #374151;
  font-size: 1rem;
  line-height: 1.6;
}

/* Bloc téléphone avec image plus large */
.phone-section {
  display: flex;
  align-items: stretch; /* fait que l'image et le texte ont la même hauteur */
  gap: 24px;
  flex-wrap: wrap;
}

.phone-img {
  flex: 1 1 40%;
  min-width: 300px;
  display: flex; /* ajouté pour que l'image remplisse toute la hauteur */
}

.phone-img img {
  width: 100%;
  height: 100%; /* occupe toute la hauteur du conteneur */
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  object-fit: cover; /* recadre l'image sans laisser de blanc */
}

.phone-text {
  flex: 1 1 55%;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}


/* --- Base fiable --- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #f3f4f6;
  color: #111827;
}

/* --- Bouton (utilisé pour le retour) --- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 9999px;
  background: #16a34a;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
  border: 1px solid rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease, background-color .2s ease;
}
.btn:hover { background: #15803d; transform: translateY(-1px); }

/* --- Page Journée --- */
.journee-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}
.page-title {
  text-align: center;
  font-size: 2rem;
  line-height: 1.2;
  color: #16a34a;
  margin: 8px 0 28px;
}

/* Carte uniforme + centrée */
.journee-card {
  width: min(560px, 100%);
  margin: 0 auto 24px;
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 18px 16px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
  transition: transform .18s ease, box-shadow .18s ease;
}
.journee-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,.14);
}

/* Image centrée, même taille partout */
.journee-img {
  display: block;
  width: 100%;
  max-width: 520px;      /* largeur uniforme */
  height: 260px;         /* hauteur uniforme */
  margin: 0 auto 14px;
  object-fit: cover;     /* recadre proprement */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* Texte sous l'image */
.journee-card p {
  margin: 0;
  color: #374151;
  line-height: 1.55;
  font-size: 1rem;
}
.journee-card .important {
  display: block;
  font-weight: 800;
  font-size: 1.15rem;    /* légèrement plus grand */
  color: #111827;
  margin-bottom: 4px;
}

/* Lien retour */
.back-link { text-align: center; margin-top: 26px; }



/* --- Page Logements --- */
.logements-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}
.logements-page .page-title {
  text-align: center;
  font-size: 2rem;
  line-height: 1.2;
  color: #16a34a;
  margin: 8px 0 28px;
}

.logement-card {
  width: min(680px, 100%);
  margin: 0 auto 26px;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,.1);
  transition: transform .18s ease, box-shadow .18s ease;
}
.logement-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,.14);
}

.logement-card h2 {
  margin-top: 0;
  color: #111827;
  font-size: 1.35rem;
}
.logement-card p,
.logement-card ul {
  margin: 8px 0;
  color: #374151;
  font-size: 1rem;
  line-height: 1.5;
}
.logement-card ul { padding-left: 20px; }

.logement-img {
  display: block;
  width: 100%;
  max-width: 640px;
  height: 300px;
  margin: 0 auto 14px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.logement-card .important {
  font-weight: 700;
  font-size: 1.1rem;
  color: #111827;
}

/* Bloc info navette */
.info-card {
  width: min(680px, 100%);
  margin: 20px auto;
  padding: 18px;
  border-left: 6px solid #1d4ed8;
  background: #e0e7ff;
  border-radius: 12px;
}
.info-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #1e3a8a;
}
.info-card p {
  margin: 0;
  font-size: 1rem;
  color: #1f2937;
}

.back-link { text-align: center; margin-top: 26px; }





/* --- Page Photos --- */
.photos-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}

.photos-page .page-title {
  text-align: center;
  font-size: 2rem;
  color: #16a34a;
  margin-bottom: 24px;
}

.email-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 24px;
}

.email-list li {
  font-size: 1rem;
  line-height: 1.6;
  margin: 4px 0;
  color: #374151;
}

/* Formulaire */
.photo-form-card {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.1);
  margin-bottom: 32px;
}

.photo-form-card .section-title {
  margin-top: 0;
  font-size: 1.35rem;
  color: #111827;
}

.photo-form-card .small-text {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 16px;
}

.photo-form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.photo-form .form-group label {
  font-weight: 500;
  margin-bottom: 6px;
  color: #374151;
}

.photo-form .form-group input,
.photo-form .form-group textarea {
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.photo-form .form-group input:focus,
.photo-form .form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
}

.photo-form button.btn {
  background-color: #16a34a;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

.photo-form button.btn:hover {
  background-color: #008120;
}


/* --- Formulaire Contact --- */
.contact-form-container {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.1);
}

.contact-form-container h1 {
  text-align: center;
  color: #16a34a;
  margin-bottom: 24px;
  font-size: 2rem;
}

.contact-form-container form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form-container label {
  font-weight: 500;
  margin-bottom: 4px;
}

.contact-form-container input,
.contact-form-container textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.contact-form-container button,
.contact-form-container .btn {
  background-color: #16a34a; /* bleu principal */
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.contact-form-container button:hover,
.contact-form-container .btn:hover {
  background-color: #16a34a; /* bleu plus clair au hover */
}

/* Carte */
#map {
  height: 400px;
  width: 100%;
  margin-top: 30px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.1);
}


/* --- Header --- */
.site-header {
  background-color: #1f2937; /* gris foncé */
  padding: 16px 0;
  color: #fff;
  border-bottom: 2px solid #111827; /* séparation header/contenu */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.header-container .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-container .logo img {
  display: none; /* supprime l'image de bague */
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 24px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #60a5fa; /* un bleu léger au survol */
}

/* --- Footer --- */
.site-footer {
  position: relative;
  color: #fff;
  background-color: #111827; /* couleur de base si image non chargée */
  padding: 60px 16px 40px;
  overflow: hidden;
}

.site-footer .footer-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/bas.png') no-repeat center center;
  background-size: cover;
  opacity: 0.25; /* transparence pour que le texte reste lisible */
  z-index: 0;
}

.site-footer .footer-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-links, .footer-contact {
  flex: 1 1 200px;
}

.footer-links h5,
.footer-contact h5 {
  margin-bottom: 12px;
  font-size: 2rem;
  color: #f3f4f6; /* texte légèrement plus clair */
  text-align: center; /* centrer le texte */
}

.footer-links,
.footer-contact {
  text-align: center; /* centrer tout le contenu à l'intérieur */
}

.footer-links a {
  display: block;
  color: #f3f4f6;
  text-decoration: none;
  margin-bottom: 6px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #60a5fa;
}

.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #d1d5db;
}

/* === POPUP === */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.popup-box {
  background: #fff;
  padding: 30px 40px;
  border-radius: 16px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  animation: fadeIn 0.3s ease;
  font-family: "Arial", sans-serif;
}

.popup-box h2 {
  margin-top: 0;
  font-size: 22px;
  color: #222;
}

.popup-box p {
  font-size: 17px;
  margin: 15px 0;
  line-height: 1.5;
  color: #333;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: #777;
  transition: color 0.2s ease;
}

.popup-close:hover {
  color: #000000;
}

/* Animation d'apparition */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
