* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  margin: 0;
  padding: 0;
}

.main-header {
  position: fixed;
  top: 0;
  z-index: 1000;
  background-color: #f4f5d1;
  width: 100%;
}

/* --- HERO --- */
.hero {
  position: relative;
  overflow: hidden;
  background-color: #fff8dc; /* doux, modifiable selon la charte */
  padding: 100px 20px;
  text-align: center;
}

/* Section HERO */
.hero {
  background-color: #f7f7f8;
  text-align: center;
  padding: 60px 20px;
  font-family: "Open Sans", sans-serif;
  position: relative;
  border: 0.5px solid #bcb3b3; /* Épaisseur réduite à 0.5px */
  background-image: url("images/logo_2.png");
  background-size: cover; /* Couvre toute la section */
  background-position: center; /* Centre l'image */
  background-repeat: no-repeat; /* Évite la répétition */
  background-attachment: fixed; /* Fixe l'image en arrière-plan */
  margin-bottom: 30px; /* Espacement accru en bas */
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit; /* Hérite de l'image de fond */
  filter: blur(5px); /* Effet flouté */
  z-index: 0; /* Derrière le contenu */
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
  position: relative; /* Assure que le contenu est au-dessus du flou */
  z-index: 1; /* Au-dessus de l'effet flou */
}

.hero-title {
  font-size: 2.4em;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 15px;
  color: #333;
}

.hero-title .highlight {
  color: #c2a52b;
  display: block;
  margin-top: 10px;
}

.hero-credit {
  font-size: 1.3em;
  color: #666;
  margin-bottom: 30px;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: #c2a52b;
  color: #fff;
  border-radius: 50%;
  font-size: 1em;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.info-icon:hover {
  transform: scale(1.2);
  background-color: #a58c22;
}

.info-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.9em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.info-icon:hover .info-tooltip {
  opacity: 1;
  visibility: visible;
}

/* --- SERVICES --- */
.services-preview {
  background-color: #f7f7f8;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto 30px;
  border: 0.5px solid #bcb3b3;
}

.services-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.service-box {
  flex: 1;
  min-width: 300px;
  min-height: 270px;
  background-color: #f4f5d1;
  border: 3px solid #bcb3b3;
  border-radius: 10px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.service-box:hover {
  background-color: #e5da93;
  transform: translateY(-5px);
}

.service-box h3 {
  font-size: 1.6em;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.service-box p {
  font-size: 1.1em;
  color: #666;
  line-height: 1.5;
  margin-bottom: 15px;
}

.service-price {
  font-size: 1.2em;
  font-weight: 600;
  color: #c2a52b;
  line-height: 1.4;
  margin-bottom: 15px;
}

.service-price span {
  font-size: 0.9em;
  font-weight: 400;
  color: #666;
  display: block;
  margin-top: 4px;
}

.service-box img {
  max-width: 100%;
  height: auto;
  border: 2px solid #bcb3b3;
  border-radius: 5px;
  margin-top: auto;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
}

.centered-button {
  text-align: center;
  margin-top: 20px;
}

.cta-button {
  background-color: #f4f0a1;
  color: #2f2f2f;
  padding: 14px 28px;
  font-size: 1.1em;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #e5da93;
}

/* --- SECTIONS --- */
section {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto 30px;
  background-color: #f7f7f8;
  border: 0.5px solid #bcb3b3;
}

#map-zones {
  height: 300px;
  width: 100%;
  margin: 20px 0;
  border: 0.5px solid #bcb3b3;
}

.leaflet-popup-content {
  font-size: 1.1em;
  font-family: "Open Sans", sans-serif;
}

/* --- BOUTONS D'ACTION --- */
.cta {
  display: inline-block;
  padding: 10px 20px;
  background: #f4f0a1;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2em;
  margin: 10px;
}

.cta:hover {
  background: #f4f5d1;
}

/* --- FORMULAIRES --- */
form:not(.form-creation) {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 0 auto;
}

form input,
form textarea {
  margin: 10px 0;
  padding: 10px;
  font-size: 1.1em;
  border: 1px solid #bcb3b3;
  border-radius: 5px;
  background: #f7f7f8;
}

/* FORMULAIRE */
.form-creation {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #f4f5d1;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.form-creation:hover {
  background-color: #e5da93; /* ou la couleur du hover des services */
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* effet de surélévation */
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}

.btn {
  background-color: #2e8b57;
  color: white;
  padding: 10px 20px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.radio-group {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  align-items: center;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="radio"],
select {
  width: 100%;
  padding: 8px;
  font-size: 1em;
  box-sizing: border-box;
  border: 1px solid #bcb3b3;
}

fieldset {
  border: 1px solid #ccc;
  padding: 15px;
  margin-bottom: 20px;
}

legend {
  font-weight: bold;
  margin-bottom: 10px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

form button {
  padding: 10px;
  background: #f4f0a1;
  color: #333;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
}

form button:hover {
  background: #f4f5d1;
}

.popup-erreur button:hover {
  background-color: #666;
}

/* --- TABLEAU ESPACE CLIENT --- */
#espace-client table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

#espace-client th,
#espace-client td {
  border: 1px solid #bcb3b3;
  padding: 10px;
  text-align: left;
  font-size: 1.1em;
}

#espace-client th {
  background: #e3e5e5;
}

#espace-client td {
  background: #f7f7f8;
}

/* --- Modale prestations --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  text-align: center;
  font-family: "Open Sans", sans-serif;
}

.modal-btn:hover {
  filter: brightness(1.1);
}

.modal-close {
  margin-top: 20px;
  padding: 6px 14px;
  border: none;
  background: #666;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

.modal-close:hover {
  background-color: #4cae4c;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.modal-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  display: inline-block;
}
/* --- Bloc contact direct dans la modale --- */
.modal-direct-contact {
  margin-top: 20px; /* Espace au-dessus */
  text-align: center; /* Centrage du texte */
  font-size: 1rem; /* Taille de police adaptée */
  color: #333; /* Couleur de texte sobre */
}

/* Liens de contact (téléphone et email) */
.modal-direct-contact a {
  color: #007bff; /* Bleu doux pour les liens */
  text-decoration: none; /* Pas de soulignement par défaut */
}

/* Effet au survol des liens */
.modal-direct-contact a:hover {
  text-decoration: underline; /* Soulignement au survol */
}

/* --- Boutons de prestation --- */
.btn-prestation {
  background-color: #f4f0a1;
  color: black;
  font-weight: 600;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: 100%;
  max-width: 240px;
  text-align: center;
}

.btn-prestation:hover {
  background-color: #bcb3b3;
  color: black;
  transform: scale(1.03);
}

.btn-create {
  background-color: #4caf50;
}
.btn-login {
  background-color: #2196f3;
}
.btn-call {
  background-color: #ff9800;
}

/**/
.message-box {
  padding: 15px 20px;
  margin: 20px auto;
  max-width: 800px;
  border-radius: 8px;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.message-error {
  background-color: #ffecec;
  color: #b30000;
  border: 1px solid #ff4d4d;
}

.message-success {
  background-color: #e6ffe6;
  color: #2e7d32;
  border: 1px solid #5cb85c;
}

/* --- COMPTE --- */
#compte .form-container {
  display: flex;
  justify-content: space-between;
  max-width: 800px;
  margin: 0 auto;
  gap: 20px;
}

#compte .form-container form {
  flex: 1;
}

#compte .error {
  color: #bcb3b3;
  font-size: 1em;
  margin-top: 5px;
}

/* --- FOOTER --- */
footer {
  background: #e3e5e5;
  padding: 10px;
  text-align: center;
  font-size: 1em;
  color: #bcb3b3;
}

#compte .form-container {
  flex-direction: column;
}

footer {
  font-size: 0.9em;
}

/*Design  formulaire connexion*/
.form-connexion {
  background-color: #f4f5d1; /* même couleur que le header */
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.form-connexion:hover {
  background-color: #e5da93;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 🎨 Palette couleurs */
:root {
  --fond-header: #f4f5d1;
  --fond-formulaire: #f7f7f8;
  --texte-gris: #bcb3b3;
}
/*alert erreur connexion*/
.alert-error {
  position: relative;
  background-color: #ffe5e5;
  color: #a30000;
  border: 1px solid #f5c2c2;
  padding: 1rem 2rem 1rem 1rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

.close-alert {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.2rem;
  font-weight: bold;
  color: #a30000;
  cursor: pointer;
}

/* 🌑 Arrière-plan fondu */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* 📦 Boîte de la modale */
.modal-box {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ✅ Pour la modale message (erreur ou succès) */
#modalMessage .modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-align: center;
}

#modalMessage .modal-btn-close {
  margin-top: 20px;
  padding: 10px 20px;
  background: #5cb85c;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
}

#modalMessage .modal-btn-close:hover {
  background-color: #4cae4c;
}

/* --- Bouton de fermeture pour la modale de prestation --- */
.modal-close-prestation {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #5cb85c;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  position: static; /* assure qu'il ne flotte plus dans le coin */
}

.modal-close-prestation:hover {
  background-color: #4cae4c;
}

/*Optimisation ancres*/
[id] {
  scroll-margin-top: 100px; /* ajuste la valeur à la hauteur de ton header */
}

/*Permet de voir le hero en entier lors d'une utilisation d'ancre*/
.hero::before {
  content: "";
  display: block;
  height: 112px; /* même hauteur que ton header sticky */
  margin-top: -112px;
}
.anchor-offset::before {
  content: "";
  display: block;
  height: 140px; /* Ajuste ici si besoin (> header) */
  margin-top: -140px;
}

/* --- Table Prestations Espace Client--- */
.table-prestations {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.table-prestations th,
.table-prestations td {
  border: 1px solid #ccc;
  padding: 0.5rem;
  text-align: left;
}

.btn-telecharger {
  background-color: #e7e160;
  color: black;
  padding: 0.4rem 0.6rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.btn-telecharger.disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Flash messages */
#flash-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.flash {
  min-width: 260px;
  max-width: 420px;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.flash-success {
  background: #dff6dd;
  color: #0a5f22;
  border: 1px solid #b8e6b5;
}
.flash-error {
  background: #ffe1e1;
  color: #7a0b0b;
  border: 1px solid #f3b3b3;
}
.flash-info {
  background: #eaf4ff;
  color: #0b3d7a;
  border: 1px solid #c7e0ff;
}
.flash-warning {
  background: #fff7da;
  color: #7a5a00;
  border: 1px solid #ffe7a3;
}
.flash .close-x {
  margin-left: auto;
  cursor: pointer;
  font-weight: 700;
  opacity: 0.6;
}
.flash .close-x:hover {
  opacity: 1;
}

/* --- Boutons de téléchargement --- */
.btn-telecharger {
  display: inline-block;
  background-color: #e7e160;
  color: #000;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #d1ca55;
  transition: background-color 0.2s ease-in-out;
}
.btn-telecharger:hover {
  background-color: #dcd350;
}

/* --- Bouton téléchargement désactivé --- */
.btn-disabled {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  background-color: #e3e5e5;
  color: #777;
  border: 1px solid #ccc;
  font-weight: 600;
  cursor: not-allowed;
}

/* Modale générique (si tu n'as pas déjà un style global pour tes modales) */
.modal {
  display: none;
}
.modal[aria-hidden="false"] {
  display: block;
}
.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.modal__dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 540px;
  width: 92%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: background-color 0.3s ease; /* ← Pour le hover doux */
}
body.scroll-lock {
  overflow: hidden;
}

/* === Politique de confidentialité – styles === */
:root {
  --pc-bg: #f7f7f8;
  --pc-surface: #ffffff;
  --pc-primary: #e7e160; /* accent */
  --pc-muted: #e3e5e5;
  --pc-border: #bcb3b3;
  --pc-text: #222; /* contraste fort */
  --pc-text-muted: #555;
  --pc-maxw: 980px;
}

/* Conteneur principal : TOC + contenu */
.pc-page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: var(--pc-maxw);
  margin: 0 auto;
  padding: clamp(16px, 2vw, 32px);
  background: var(--pc-bg);
  color: var(--pc-text);
  line-height: 1.7;
  font-size: clamp(17px, 1.2vw + 0.5rem, 19px); /* confortable pour seniors */
}

/* Table des matières (cachée sur petits écrans) */
.pc-toc {
  display: none;
}

.pc-toc-title {
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  color: var(--pc-text-muted);
  letter-spacing: 0.02em;
}

.pc-toc ol {
  list-style: decimal;
  padding-left: 1rem;
  margin: 0;
}

.pc-toc a {
  text-decoration: none;
  border-bottom: 1px dotted var(--pc-border);
}

.pc-toc a:hover,
.pc-toc a:focus {
  outline: 2px solid transparent;
  border-bottom-style: solid;
}

/* Zone contenu */
.pc-content {
  background: var(--pc-surface);
  border: 1px solid var(--pc-muted);
  border-radius: 12px;
  padding: clamp(16px, 2.2vw, 28px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.pc-header h1 {
  font-size: clamp(26px, 2.5vw + 1rem, 36px);
  line-height: 1.2;
  margin: 0 0 0.5rem 0;
}

.pc-meta {
  color: var(--pc-text-muted);
  margin: 0 0 1rem 0;
}

/* Titres de section très lisibles */
.pc-content h2 {
  font-size: clamp(20px, 1.5vw + 0.8rem, 28px);
  margin: 1.5rem 0 0.6rem 0;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--pc-primary);
}

/* Paragraphes et listes aérées */
.pc-content p,
.pc-content li {
  max-width: 70ch; /* confort de lecture */
}

.pc-content ul,
.pc-content ol {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.pc-content li + li {
  margin-top: 0.25rem;
}

/* Liens visibles et accessibles */
.pc-content a {
  color: #000;
  background: linear-gradient(transparent 60%, rgba(231, 225, 96, 0.45) 60%);
  text-decoration: none;
}
.pc-content a:hover,
.pc-content a:focus {
  background: linear-gradient(transparent 50%, rgba(231, 225, 96, 0.9) 50%);
  outline: 2px dashed var(--pc-primary);
  outline-offset: 2px;
}

/* Encadrés d’info si besoin
.example-callout {
  background: #fffff0;
  border-left: 4px solid var(--pc-primary);
  padding: .75rem 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}
*/

/* Bouton “Haut de page” */
.pc-backtop {
  margin-top: 2rem;
  font-size: 0.95rem;
}
.pc-backtop a {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--pc-border);
  border-radius: 8px;
}

/* Disposition desktop : TOC sticky + contenu */
@media (min-width: 992px) {
  .pc-page {
    grid-template-columns: 260px 1fr;
    align-items: start;
    gap: 2rem;
  }
  .pc-toc {
    display: block;
    position: sticky;
    top: 2rem;
    align-self: start;
    background: var(--pc-surface);
    border: 1px solid var(--pc-muted);
    border-radius: 12px;
    padding: 1rem;
    max-height: calc(100vh - 3rem);
    overflow: auto;
  }
}

/* Mode impression : tout sur une colonne, liens soulignés simples */
@media print {
  .pc-toc {
    display: none !important;
  }
  .pc-page {
    grid-template-columns: 1fr;
    background: #fff;
  }
  .pc-content {
    box-shadow: none;
    border: none;
  }
  .pc-content a {
    background: none;
    text-decoration: underline;
  }
}

.pc-page {
  max-width: 960px; /* ✅ Largeur maximale confortable */
  margin: 0 auto; /* ✅ Centre le contenu */
  padding: 2rem; /* ✅ Un peu d’espace autour */
  display: block; /* ⛔ Ne pas utiliser de grid ici si tu ne fais pas de colonnes */
}

.pc-content {
  width: 100%; /* ✅ Prend toute la largeur du .pc-page */
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e3e5e5;
}

.pc-header h1 {
  font-size: 32px;
  margin-bottom: 0.5rem;
}

.pc-meta {
  color: #555;
  font-size: 0.95rem;
}

.pc-content h2 {
  font-size: 24px;
  margin-top: 2rem;
  border-bottom: 2px solid #e7e160;
  padding-bottom: 0.3rem;
}

.pc-content ul {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.pc-content li + li {
  margin-top: 0.4rem;
}

.pc-backtop {
  margin-top: 2rem;
  text-align: right;
}

.pc-backtop a {
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid #ccc;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
}

.modal__content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  z-index: 10000;
  max-height: 90vh; /* ✅ limite à 90% de la hauteur de la fenêtre */
  overflow-y: auto; /* ✅ permet de scroller le contenu si trop long */
}

/* === MODALE RDV : STYLE UNIFIÉ ======================================================== */
#modal-rdv {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.35); /* fond sombre semi-transparent */
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.3s ease-out;
}

#modal-rdv .modal__dialog {
  background-color: #f4f5d1; /* fond des cartes */
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 92%;
  max-width: 540px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

/* Effet hover sur la boîte entière */
#modal-rdv .modal__dialog:hover {
  background-color: #e7e160; /* couleur hover cartes */
}

#modal-rdv .modal__header,
#modal-rdv .modal__footer {
  background-color: #bcb3b3;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#modal-rdv .modal__header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #333;
}

#modal-rdv .modal__body {
  padding: 16px;
  background-color: #f4f5d1; /* Couleur de fond des cartes de prestation */
  transition: background-color 0.3s ease; /* effet doux de transition */
}

#modal-rdv .modal__body:hover {
  background-color: #e5da93; /* une nuance plus sombre ou plus chaude */
}

#modal-rdv label {
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  display: block;
}

#modal-rdv select {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

#modal-rdv .btn-fermer {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #333;
}

/* Boutons pied de modale */
#modal-rdv .btn-modifier,
#modal-rdv .btn-upload {
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

#modal-rdv .btn-modifier {
  background-color: #e3e5e5;
  color: #333;
}

#modal-rdv .btn-upload {
  background-color: #e7e160;
  color: #333;
}

#modal-rdv .btn-upload:hover,
#modal-rdv .btn-modifier:hover {
  background-color: #dcd86b;
}

/* Animation d’apparition en douceur */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.nav-links a {
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  background: #f7f7f7;
  color: #333;
}
.nav-links a:hover {
  background: #eee;
}

/* Boutons "Atelier individuel" (2H + 4H) en ligne, responsive */
.centered-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap; /* passe en ligne suivante si manque de place */
}
.centered-button .btn-prestation {
  /* garde une taille cliquable et lisible */
  min-width: 180px;
}
@media (max-width: 480px) {
  .centered-button .btn-prestation {
    width: 100%;
    max-width: 320px; /* évite de coller aux bords */
  }
}

/* Override local pour les boutons côte à côte dans le cartouche */
.centered-button .btn-prestation {
  width: auto; /* annule width:100% */
  max-width: none; /* lève la contrainte 240px si présente */
  flex: 0 0 auto; /* ne pas s'étirer */
  /* display: inline-flex; évite le block */
}

.rdv-multi-days small.rdv-multi-days-hint {
  display: block;
  color: #555;
  margin-top: 4px;
}

.zones-map-wrap {
  max-width: 900px; /* pas pleine largeur */
  width: 95vw;
  margin: 0 auto; /* centré */
}

#map-zones {
  max-width: 720px; /* pas pleine largeur */
  height: 420px; /* hauteur raisonnable */
  margin: 0 auto; /* centré */
  border-radius: 8px; /* joli :) */
  overflow: hidden;
}
