.html {
  height: auto;
  min-height: 100%;
}
/* Reset de base pour enlever les marges par défaut */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background-color: #eee5fa;
  color: #333;
  line-height: 1.6;

  /* --- SETUP STICKY FOOTER --- */
  min-height: 100vh;
  height: auto; /* Force le body à s'adapter au contenu */
  display: flex; /* 2. On active Flexbox */
  flex-direction: column; /* 3. On empile verticalement */
  margin: 0; /* Sécurité */
}

.fond-cerisier {
  background-image: url("Ressources/cerisier.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.fond-sable {
  background-image: url("Ressources/sable.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

/* --- Navigation --- */
header {
  display: flex; /* Active Flexbox */
  justify-content: space-between; /* Espace max entre Nav et Compte */
  align-items: center; /* Centre verticalement */
  padding: 10px 40px; /* Un peu de marge sur les côtés */
  position: sticky; /* Garde ton sticky existant */
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
  height: 60px; /* Ajustez la hauteur selon vos besoins */
}

nav {
  flex: 1;
}
nav ul {
  list-style: none;
  display: flex; /* Aligne les éléments côte à côte */
  justify-content: center; /* Centre le menu */
  flex-wrap: wrap; /* Permet de passer à la ligne sur petit écran */
  gap: 20px; /* Espace entre les liens */
}

nav a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 5px 10px;
  transition: color 0.3s;
}

nav a:hover {
  color: #7d4e85; /* Changement de couleur au survol */
}

.compte-container {
  position: relative;
  margin-left: 20px;
}

.btn-icone {
  background: none;
  border: none;
  font-size: 1.5rem; /* Taille de l'icone */
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: background 0.3s;
}

/* Pour colorier l'icône en violet */
.btn-icone i {
  color: #7d4e85;
  font-size: 1.5rem; /* Pour grossir l'icône */
}
.btn-icone:hover {
  background-color: rgba(125, 78, 133, 0.1); /* Fond léger au survol */
}

/* --- Le Menu Déroulant (La boîte blanche) --- */
.dropdown-compte {
  display: none; /* CACHÉ par défaut */

  position: absolute; /* Sort du flux normal */
  top: 100%; /* Se place juste en dessous du bouton */
  right: 0; /* S'aligne à droite du bouton */

  background-color: white;
  width: 150px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
  flex-direction: column; /* Les liens l'un sous l'autre */
}

/* --- Style spécial pour la ligne Pingouins --- */
.info-pingouin {
  display: block; /* Prend toute la largeur comme les liens */
  padding: 10px 15px; /* Mêmes marges internes que les liens (IMPORTANT) */
  color: #7d4e85; /* On le met en violet pour le distinguer */
  font-weight: bold; /* En gras pour le mettre en valeur */
  font-size: 0.9rem; /* Même taille de texte */
  border-bottom: 1px solid #eee; /* La petite ligne de séparation */
  cursor: default; /* Le curseur reste une flèche (pas de main) */
  background-color: white; /* Optionnel : un petit fond beige léger pour faire joli */
}

/* Style des liens dans le menu déroulant */
.dropdown-compte a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid #eee;
}

.dropdown-compte a:hover {
  background-color: #7d4e85; /* Ton violet */
  color: white;
}

/* --- Classe active (ajoutée par JS) --- */
.dropdown-compte.actif {
  display: flex; /* DEVIENT VISIBLE */
}

/* --- Contenu Principal --- */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  /* Mets une petite valeur ici, au lieu de 15vh */
  padding-bottom: 40px;
}

main h1 {
  text-align: center;
  margin-top: 2vh;
  margin-bottom: 40px;
  font-size: 2.5rem;
  color: #7d4e85;
}

main h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
  color: #7d4e85;
}

/* Index --- */
/* --- STYLE DU FLYER REPRODUIT --- */

.flyer-container {
  background-color: white;
  width: 100%;

  margin: 50px auto; /* Centré au milieu de la page */
  padding: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* Ombre portée pour l'effet papier */
  border-radius: 4px;
  font-family:
    "Times New Roman", Times, serif; /* Police avec empattement comme sur le flyer */
}

/* --- Partie Haute (Image + Titre) --- */
.flyer-header {
  display: flex; /* Active le mode colonnes */
  justify-content: center; /* Espace entre l'image et le titre */
  align-items: center; /* Centre verticalement */
  margin-bottom: 20px;
}

/* Zone Image (Gauche) */
.flyer-image-box {
  flex: 1; /* Prend 1 part de l'espace */
  overflow: hidden;
  border-radius: 4px;
}

.flyer-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Recadre l'image proprement */
}

/* Zone Titre (Droite) */
.flyer-title-box {
  flex: 1.1; /* Prend un peu plus de place que l'image */
  text-align: center; /* Centre le texte et le logo */
  color: #7d4e85; /* Ton violet */
}

.flyer-logo-icon {
  font-size: 3rem; /* Taille du logo main */
  margin-bottom: 10px;
  display: block;
}

.flyer-title-box h1 {
  font-size: 2.2rem;
  font-weight: normal; /* Pas trop gras pour faire élégant */
  margin: 0;
}

/* --- Barre de séparation --- */
.flyer-separator {
  border: 0;
  height: 1px;
  background-color: #7d4e85; /* Ligne violette */
  width: 80%; /* Pas toute la largeur */
  margin: 20px auto; /* Centré */
}

/* --- Partie Basse (Textes) --- */
.flyer-footer-text {
  text-align: center;
  color: #555;
}

.slogan {
  font-size: 1.5rem;
  color: #7d4e85; /* Violet */
  margin-top: 15px;
  line-height: 1.5;
}

.asso-loi {
  font-size: 1rem;
  color: #333;
  margin-bottom: 30px;
}

/* --- RESPONSIVE (Pour téléphone) --- */
@media (max-width: 768px) {
  .flyer-header {
    flex-direction: column; /* On empile tout sur mobile */
  }

  .flyer-title-box {
    margin-top: 20px;
  }

  .flyer-separator {
    width: 100%;
  }
}

.bloc-contenu {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 100px;
  flex: 1;
  margin-bottom: 100px;
  padding: 40px;

  backdrop-filter: blur(10px); /* Floute ce qu'il y a derrière (effet verre) */
  -webkit-backdrop-filter: blur(10px); /* Pour que ça marche sur Safari/Mac */
  border: 2px solid rgba(255, 255, 255, 0.8); /* Une bordure blanche fine pour le relief */
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15); /* Une ombre douce colorée pour la profondeur */

  color: white;
  border-radius: 15px; /* Arrondi un peu plus prononcé pour le style verre */
  text-align: center;
}

.bloc-contenu div {
  margin-right: 50px;
}

.presentation-text p {
  color: #2b2929;
  font-size: 1.1rem;
  margin-top: 20px;
}

.blanc h1,
.blanc h2,
.blanc h3 {
  color: white;
}

h1,
h2 {
  color: #7d4e85;
  margin-bottom: 20px;
  font-size: 2.5rem;
  text-align: center;
}

h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.placeholder-text {
  align-items: center;
  text-align: left;
  padding: 20px 20px;
}

.image-adaptée {
  max-width: 100%;
  height: auto;
  border-radius: 0px;
}

.text p {
  font-size: large;
  margin-top: 20px;
}

/* --- Footer --- */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 30px 0;

  /* SÉCURITÉ : Empêche le footer de s'écraser si le texte est long */
  flex-shrink: 0;
}

footer a {
  color: #ddd;
  text-decoration: none;
  margin: 0 10px;
}

footer a:hover {
  text-decoration: underline;
}

/* --- Navigation active --- */
nav a.active {
  color: #7d4e85;
  border-bottom: 2px solid #7d4e85; /* soulignement */
}

/* --- RESPONSIVE ACCUEIL (Mobile) --- */
@media (max-width: 768px) {
  /* 1. On change la disposition du bloc principal */
  .bloc-contenu {
    flex-direction: column; /* Empile le texte et l'image verticalement */
    margin: 20px; /* On remplace les 100px par 20px pour gagner de la place */
    padding: 20px; /* On réduit un peu le padding interne */
  }

  /* 2. On réinitialise les marges des divs à l'intérieur (le texte) */
  .bloc-contenu div {
    margin-right: 0; /* On enlève la marge droite qui poussait l'image */
    margin-bottom: 30px; /* On ajoute de l'espace en bas pour séparer le texte de l'image */
    width: 100%; /* Le texte prend toute la largeur disponible */
  }

  /* 3. On s'assure que l'image est centrée et adaptée */
  .bloc-contenu .image-adaptée {
    display: block;
    margin: 0 auto; /* Centre l'image horizontalement */
    max-width: 100%; /* Empêche l'image de dépasser de l'écran */
    height: auto;
  }

  /* Optionnel : Ajuster la taille des titres sur mobile */
  main h1 {
    font-size: 1.8rem;
    padding: 0 10px;
  }
}

/* --- Styles spécifiques pour la page Prestations --- */

/* Le titre principal de la page */

.titre-prestations {
  display: flex; /* Active le mode "Ligne" */
  align-items: center; /* Centre verticalement (pour que le texte soit bien au milieu des fleurs) */
  justify-content: space-between; /* Centre tout le bloc au milieu de la page */
  margin-bottom: 40px;
}

.titre-prestations h1 {
  color: #7d4e85;
  font-size: 2.5rem;
  text-align: center;

  /* AJOUTE ÇA : On supprime toutes les marges par défaut */
  margin: 0;
  line-height: 1; /* Resserre la hauteur de ligne si besoin */
}

.fleur-deco {
  height: auto; /* Règle la taille de ta fleur ici */
  max-width: 20%; /* Garde les proportions */
}
/* ASTUCE PRO : Retourner la fleur de droite pour faire un effet miroir */
.fleur-droite {
  transform: scaleX(-1); /* Retourne l'image horizontalement */
}
.conteneur-prestations {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.conteneur-prestations h3 {
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #7d4e85;
  margin-top: 20px;
}

/* La Grille (Le conteneur des rectangles) */
.grille-prestations {
  display: grid;
  /* La formule magique pour 2 colonnes égales */
  grid-template-columns: 1fr 1fr;
  gap: 30px; /* Espace entre les rectangles */
}

/* Le Rectangle (La carte) */
.carte-prestation {
  display: flex; /* Active le mode flexible */
  justify-content: space-between; /* Espacement entre le texte et l'image */
  align-items: center; /* Aligne verticalement au centre */
  max-width: 700px;
  gap: 20px; /* Espace entre le texte et l'image */
  background-color: #ffffff; /* Fond blanc */
  padding: 30px;
  border-radius: 10px; /* Coins arrondis */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre douce pour l'effet de relief */
  transition: transform 0.3s ease; /* Animation fluide au survol */
  border-left: 5px solid #7d4e85; /* Une petite barre colorée décorative à gauche */
}

/* Effet quand on passe la souris sur un rectangle */
.carte-prestation:hover {
  transform: translateY(-5px); /* Le rectangle remonte légèrement */
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.carte-prestation h3 {
  color: #7d4e85; /* Titre */
  margin-bottom: 35px;
  font-size: 1.5rem;
}

.carte-prestation p {
  color: #7d4e85;
  font-size: 1rem;
}

.image-reduite {
  width: 120px; /* Largeur fixe de l'image (ajustez selon vos besoins) */
  height: 120px; /* Hauteur fixe pour faire un carré (ou 'auto' pour garder le ratio) */
  object-fit: cover; /* Coupe l'image proprement si elle n'est pas carrée */
  border-radius: 8px; /* Petits coins arrondis sur l'image pour faire joli */
}

/* --- Style de la Modale (Pop-up) --- */

/* L'arrière-plan sombre (Overlay) */
.modale-overlay {
  display: none; /* CACHÉ par défaut */
  position: fixed; /* Reste fixe même si on scrolle */
  z-index: 2000; /* Doit être au-dessus de tout (même du menu qui est à 1000) */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Permet de scroller si la modale est trop haute */
  background-color: rgba(
    0,
    0,
    0,
    0.6
  ); /* Noir transparent (l'effet assombri) */

  /* Pour l'animation d'apparition */
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* La boîte blanche au centre */
.modale-boite {
  background-color: #fff;
  margin: 10% auto; /* 10% du haut, centré horizontalement */
  padding: 30px;
  border-radius: 10px;
  border-top: 5px solid #7d4e85; /* Rappel du violet */
  width: 80%; /* Largeur sur mobile */
  max-width: 600px; /* Largeur max sur PC */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  color: #7d4e85;

  /* Animation de glissement */
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modale-text p {
  margin-top: 15px;
}

/* La croix de fermeture (X) */
.fermer {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.fermer:hover {
  color: #000;
}

/* Quand la modale est active (ajouté par JS) */
.modale-overlay.active {
  opacity: 1; /* Devient visible */
}

.modale-overlay.active .modale-boite {
  transform: translateY(0); /* Revient à sa place normale */
}

/* Style du petit lien "En savoir plus" */
.lien-details {
  display: inline-block;
  margin-top: 10px;
  color: #7d4e85;
  text-decoration: none;
  font-weight: bold;
}

/* --- Version Mobile (Responsive) --- */
/* Si l'écran est plus petit que 768px (tablette/mobile), on passe à 1 seule colonne */
@media (max-width: 768px) {
  .grille-prestations {
    grid-template-columns: 1fr; /* 1 colonne */
  }
}

/* --- Styles spécifiques pour la page Tarifs --- */

/* La grille à 3 colonnes */
.grille-tarifs {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonnes de taille égale */
  gap: 20%;
  margin: 0 8vh;
  margin-top: 8vh;
  padding: 0 20px;
}

/* --- RESPONSIVE : ADAPTATION MOBILE --- */
@media (max-width: 768px) {
  /* 1. On passe en 1 seule colonne */
  .grille-tarifs {
    grid-template-columns: 1fr;

    /* 2. IMPORTANT : On réduit les marges latérales drastiquement */
    /* Avant c'était 60px, on passe à 15px pour laisser de la place au contenu */
    margin: 0 15px;

    /* 3. On remplace le gap en % (trop grand) par des pixels fixes */
    gap: 30px;

    /* 4. On réduit un peu l'espacement du haut */
    margin-top: 30px;
  }

  /* Optionnel : Ajuster la taille du titre sur mobile */
  main h1 {
    font-size: 2rem;
    margin-top: 20px;
  }
}

/* Le style de la carte tarifaire */
.carte-tarif {
  background-color: #ffffff;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Pousse le bouton vers le bas */
}

.carte-tarif:hover {
  transform: scale(1.05); /* Grossit légèrement au survol */
  border: 1px solid #7d4e85;
}

/* Zone du haut (Titre et Prix) */
.entete-tarif {
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.carte-tarif h3 {
  color: #333;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.prix {
  font-size: 2.5rem;
  color: #7d4e85; /* Violet */
  font-weight: bold;
}

.duree {
  color: #888;
  font-size: 0.9rem;
  font-style: italic;
}

/* La liste des services */
.liste-services {
  list-style: none; /* Enlève les puces rondes moches */
  margin-bottom: 30px;
  text-align: left; /* Texte aligné à gauche pour la lecture */
}

.liste-services li {
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
  color: #555;
}

/* Le bouton en bas de carte */
.btn-tarif {
  display: inline-block;
  background-color: #2c3e50;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-tarif:hover {
  background-color: #7d4e85;
}

/* Responsive : Sur mobile, on passe à 1 colonne */
@media (max-width: 900px) {
  .grille-tarifs {
    grid-template-columns: 1fr;
  }
}
/* --- Styles spécifiques pour la page reservation --- */

/* --- STYLE PAGE RÉSERVATION --- */

/* Le conteneur blanc qui porte le formulaire */
.conteneur-formulaire {
  background-color: rgba(255, 255, 255, 0.95); /* Blanc quasi opaque */
  max-width: 600px; /* Largeur idéale pour un formulaire */
  width: 90%; /* S'adapte sur mobile */
  margin: 40px auto; /* Centré horizontalement */
  padding: 40px; /* Espace intérieur */
  border-radius: 20px; /* Coins bien arrondis */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Ombre douce pour le relief */
  border-top: 5px solid #7d4e85; /* Petite touche violette en haut */
}

/* Le titre du formulaire */
.conteneur-formulaire h1 {
  color: #7d4e85;
  margin-bottom: 10px;
  font-size: 2rem;
  text-align: center;
}

/* Les groupes (Label + Input) */
.groupe-input {
  margin-bottom: 20px;
}

.groupe-input label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: bold;
  font-size: 0.95rem;
}

/* Le style des champs (texte, email, select, date) */
.groupe-input input,
.groupe-input select,
.groupe-input textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd; /* Bordure grise légère */
  border-radius: 8px; /* Coins arrondis */
  font-size: 1rem;
  background-color: #f9f9f9; /* Fond très gris clair */
  transition: all 0.3s ease;
  font-family: "Arial", sans-serif;
}

/* Quand on clique dans un champ */
.groupe-input input:focus,
.groupe-input select:focus,
.groupe-input textarea:focus {
  outline: none;
  border-color: #7d4e85; /* Devient violet */
  background-color: #fff; /* Devient blanc pur */
  box-shadow: 0 0 0 3px rgba(125, 78, 133, 0.1); /* Petit halo violet */
}

/* Style spécifique pour le champ Date et Select pour faire joli */
.groupe-input input[type="date"],
.groupe-input select {
  cursor: pointer;
  color: #333;
}

/* Le bouton envoyer */
.btn-envoyer {
  width: 100%;
  padding: 15px;
  background-color: #7d4e85;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 50px; /* Forme de pilule */
  cursor: pointer;
  transition:
    transform 0.2s,
    background-color 0.3s,
    box-shadow 0.3s;
  margin-top: 10px;
}

.btn-envoyer:hover {
  background-color: #5a3661; /* Violet plus foncé */
  transform: translateY(-2px); /* Remonte un peu */
  box-shadow: 0 5px 15px rgba(125, 78, 133, 0.4); /* Ombre portée */
}

/* Responsive Mobile */
@media (max-width: 600px) {
  .conteneur-formulaire {
    padding: 25px;
    margin-top: 20px;
  }
}

/* --- Styles spécifiques pour la page Bons Cadeaux --- */

.conteneur-cadeaux h1 {
  text-align: center;
  margin-bottom: 30px;
}

/* Le bandeau d'explication "1€ = 2 points" */
.regle-points {
  text-align: center;
  margin-bottom: 50px;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.calcul {
  font-size: 1.5rem;
  font-weight: bold;
  color: #7d4e85;
  margin-top: 10px;
  border: 2px dashed #7d4e85;
  padding: 10px;
  display: inline-block;
  border-radius: 50px;
}

/* La grille des cartes (similaire aux tarifs) */
.grille-cadeaux {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 0 20px;
}

/* La Carte Cadeau */
.carte-cadeau {
  background-color: #fff;
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  position: relative; /* Nécessaire pour placer le badge promo */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  border-top: 5px solid #7d4e85; /* Couleur par défaut */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.carte-cadeau:hover {
  transform: translateY(-10px);
}

/* Le badge -25% */
.badge-promo {
  position: absolute;
  top: -15px;
  right: -15px;
  background-color: #7d4e85;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%; /* Cercle parfait */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transform: rotate(15deg); /* Légèrement penché */
}

.carte-cadeau h3 {
  color: #2c3e50;
  margin-bottom: 5px;
}

.description-offre {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* La zone avec les points */
.zone-points {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
}

.points-requis {
  font-size: 2rem;
  color: #2c3e50;
  font-weight: bold;
  display: block;
}

.condition {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: #999;
}

.explication-economie {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 20px;
  font-style: italic;
}

/* Bouton */
.btn-cadeau {
  background-color: #2c3e50;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 25px;
  transition: background 0.3s;
}

.btn-cadeau:hover {
  background-color: #7d4e85;
}

/* Section "Offrir" en bas */
.bloc-offrir {
  margin-top: 60px;
  text-align: center;
  background-color: #fff;
  padding: 40px;
  border-radius: 10px;
}

/* 1. La boîte blanche (Le Conteneur) */
.bloc-image-cadeau {
  width: fit-content; /* S'adapte au contenu sur PC */
  max-width: 90%; /* SUR MOBILE : Ne prend jamais plus de 90% de l'écran (laisse une petite marge) */
  margin: 40px auto; /* Centré */
  padding: 30px; /* Espace intérieur */
}

/* 2. L'image elle-même */
.image-cadeau {
  width: 800px; /* TAILLE CIBLE (PC) : On essaie d'être grand */
  max-width: 100%; /* SÉCURITÉ (Mobile) : On ne dépasse pas la boîte blanche */
  height: auto; /* On garde les proportions (pas d'écrasement) */
  display: block;
  border-radius: 4px; /* arrondir un peu les coins de l'image */
}

.lien-contact {
  display: inline-block;
  margin-top: 20px;
  color: #7d4e85;
  font-weight: bold;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .grille-cadeaux {
    grid-template-columns: 1fr;
  }

  .carte-cadeau {
    margin-bottom: 30px; /* Espace entre les cartes sur mobile */
  }
}

/* --- Styles spécifiques pour la page Avis --- */

.conteneur-avis {
  max-width: 800px;
  margin: 0 auto;
}

.conteneur-avis h1 {
  text-align: center;
  margin-bottom: 20px;
}

/* --- Style des bulles d'avis --- */
.bloc-avis {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px; /* Coins arrondis */
  margin-bottom: 25px; /* Espace entre les avis */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #7d4e85; /* La barre violette sur le côté */
  position: relative;
}

/* L'en-tête de l'avis (Nom + Etoiles) */
.entete-avis {
  display: flex;
  justify-content: space-between; /* Ecarte le nom à gauche et les étoiles à droite */
  align-items: center;
  margin-bottom: 15px;
}

.nom-client {
  font-weight: bold;
  font-size: 1.1rem;
  color: #7d4e85; /* Nom en violet */
}

.etoiles {
  color: #f1c40f; /* Jaune doré pour les étoiles (ça ressort mieux que le violet) */
  font-size: 1.2rem;
}

.texte-avis {
  font-style: italic;
  color: #555;
  line-height: 1.5;
}

.date-avis {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: #999;
  margin-top: 10px;
}

/* --- Section Formulaire d'avis --- */
.formulaire-avis-section {
  margin-top: 60px;
  background-color: #fff;
  padding: 40px;
  border-radius: 10px;
  border: 1px solid #eee;
}

.formulaire-avis-section h2 {
  color: #7d4e85; /* Titre en violet */
  margin-bottom: 20px;
  border-bottom: 2px solid #f5f5dc; /* Souligné en beige */
  padding-bottom: 10px;
  display: inline-block;
}

/* --- PAGE PROFIL --- */

/* On force le bloc profil à s'afficher en colonne sur mobile, et ligne sur PC */
.profil-container {
  flex-direction: row; /* Côte à côte */
  gap: 50px;
  align-items: flex-start; /* Aligné en haut */
  text-align: left; /* Texte aligné à gauche */
}

/* Colonne de gauche (Avatar) */
.profil-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 200px;
  border-right: 1px solid #ddd; /* Petite ligne de séparation */
  padding-right: 40px;
}

.profil-header h2 {
  font-size: 1.5rem;
  margin: 15px 0 5px 0;
  color: #333;
}

.badge-membre {
  font-size: 0.85rem;
  color: #888;
  background-color: #f0f0f0;
  padding: 5px 10px;
  border-radius: 20px;
}

/* Colonne de droite (Infos) */
.profil-details {
  flex: 1; /* Prend tout le reste de la place */
  width: 100%;
}

.info-item {
  margin-bottom: 20px;
  border-bottom: 1px dashed #eee;
  padding-bottom: 10px;
}

.info-item .label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 5px;
}

.info-item .valeur {
  font-size: 1.1rem;
  color: #333;
  font-weight: bold;
}

/* Bloc Spécial Fidélité */
.bloc-fidelite-profil {
  background-color: #fdf5e6; /* Fond beige/orangé léger */
  padding: 20px;
  border-radius: 10px;
  margin-top: 30px;
  text-align: center;
  border: 2px solid #fceabb;
}

.bloc-fidelite-profil h3 {
  font-size: 1.2rem;
  color: #d35400;
  margin-bottom: 15px;
}

.compteur-pingouins {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.chiffre-geant {
  font-size: 3rem;
  font-weight: bold;
  color: #7d4e85;
}

.texte-pingouin {
  font-size: 1.2rem;
  color: #555;
}

/* Barre de progression */
.barre-fond {
  background-color: #ddd;
  height: 10px;
  border-radius: 5px;
  margin-top: 10px;
  overflow: hidden;
}

.barre-remplissage {
  background-color: #7d4e85; /* Violet */
  height: 100%;
  border-radius: 5px;
  transition: width 0.5s ease-in-out; /* Animation fluide */
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
  .profil-container {
    flex-direction: column; /* Tout empiler sur mobile */
    align-items: center;
    text-align: center;
  }

  .profil-header {
    border-right: none;
    border-bottom: 1px solid #ddd;
    padding-right: 0;
    padding-bottom: 30px;
    margin-bottom: 30px;
    width: 100%;
  }
}

/* --- PARTIE ADMIN --- */

.fond-retour {
  background: white;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* adminClients.php */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.admin-table th {
  background: #7d4e85;
  color: white;
  padding: 12px;
  text-align: left;
}
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  color: #333;
}
.admin-table tr:hover {
  background-color: #f1f1f1;
}
.btn-action {
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.9rem;
}
.btn-edit {
  background: #3498db;
  color: white;
}
.btn-delete {
  background: #e74c3c;
  color: white;
  margin-left: 5px;
}

.btn-history {
  background: #f39c12;
  color: white;
  margin-right: 5px;
}
.btn-history:hover {
  background: #d35400;
}

/* ==========================================================================
   CSS RESPONSIVE header
   ========================================================================== */

@media (max-width: 900px) {
  header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  nav ul {
    gap: 5px; /* Réduit l'espace entre les liens sur mobile */
    margin: 10px;
    font-size: 0.8rem;
    text-align: center;
  }
}

/* ==========================================================================
   CSS RESPONSIVE SPÉCIFIQUE (Profil, Connexion, Admin)
   ========================================================================== */

/* --- 1. OPTIMISATION DES FORMULAIRES (Connexion / Inscription) SUR MOBILE --- */
@media (max-width: 900px) {
  .conteneur-formulaire {
    width: 95%; /* Prend presque toute la largeur */
    margin: 20px auto; /* Réduit les marges externes */
    padding: 20px; /* Réduit l'espace interne */
  }

  .conteneur-formulaire h1 {
    font-size: 1.5rem; /* Titre un peu plus petit */
  }

  /* Empêche le zoom automatique sur iPhone quand on clique dans un champ */
  .groupe-input input,
  .groupe-input select,
  .groupe-input textarea {
    font-size: 16px;
  }

  /* Bouton plus facile à taper avec le doigt */
  .btn-envoyer {
    padding: 15px;
    font-size: 1.2rem;
  }
}

/* --- 2. OPTIMISATION DU PROFIL SUR MOBILE --- */
@media (max-width: 900px) {
  /* Le conteneur principal a déjà un media query dans ton code, 
       mais on ajoute ces détails pour peaufiner */

  .profil-container {
    gap: 20px; /* Réduit l'espace entre l'avatar et les infos */
    padding: 15px; /* Moins de padding global */
  }

  .bloc-fidelite-profil {
    margin-top: 20px;
    padding: 15px;
  }

  .chiffre-geant {
    font-size: 2.5rem; /* Un peu moins énorme sur petit écran */
  }

  /* On s'assure que les infos ne débordent pas */
  .info-item {
    display: flex;
    flex-direction: column; /* Label au dessus, valeur en dessous */
    align-items: flex-start; /* Aligné à gauche */
  }
}

/* --- 3. OPTIMISATION DE LA PAGE ADMIN (adminClients.php) SUR MOBILE --- */

/* =========================================
   RESPONSIVE GESTION CLIENTS (Version Corrigée)
   ========================================= */

@media (max-width: 900px) {
  /* 1. On transforme le tableau en liste de cartes */
  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }

  .admin-table thead {
    display: none; /* On cache l'en-tête classique */
  }

  /* 2. Le style de la "Carte" (Le bloc blanc) */
  .admin-table tr {
    background: #ffffff;
    margin-bottom: 25px;
    border-radius: 15px; /* Plus arrondi */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    border-left: 6px solid #7d4e85; /* Bordure violette */
    padding: 15px;
    position: relative;
  }

  /* 3. Le style de chaque ligne à l'intérieur de la carte */
  /* NOUVEAU : On utilise Flexbox pour éviter les chevauchements */
  .admin-table td {
    display: flex; /* Active le mode flexible */
    justify-content: space-between; /* Ecarte l'étiquette et la valeur */
    align-items: center; /* Centre verticalement */

    text-align: right; /* Le texte de valeur est à droite */
    padding: 12px 5px;
    border-bottom: 1px dashed #eee;
    font-size: 0.95rem;

    /* On annule les anciens styles qui posaient problème */
    padding-left: 0;
    position: static;
  }

  /* 4. Le style des étiquettes (Nom:, Email: ...) */
  .admin-table td::before {
    position: static; /* Rentre dans le flux normal */
    font-weight: bold;
    color: #7d4e85;
    text-align: left;
    min-width: 80px; /* Largeur mini pour aligner proprement */
    margin-right: 15px; /* Espace entre l'étiquette et la valeur */
  }

  /* Col 1 : ID */
  .admin-table td:nth-of-type(1)::before {
    content: "ID :";
  }

  /* Col 2 : Nom */
  .admin-table td:nth-of-type(2)::before {
    content: "Nom :";
  }

  /* Col 3 : Prénom */
  .admin-table td:nth-of-type(3)::before {
    content: "Prénom :";
  }

  /* Col 4 : Email */
  .admin-table td:nth-of-type(4)::before {
    content: "Email :";
  }

  /* Col 5 : Téléphone */
  .admin-table td:nth-of-type(5)::before {
    content: "Tél :";
  }

  /* Col 6 : Date RDV */
  .admin-table td:nth-of-type(6)::before {
    content: "RDV :";
  }

  /* Col 7 : Soin (Le bloc violet) */
  .admin-table td:nth-of-type(7)::before {
    content: "Soin :";
  }

  /* Col 8 : Pingouins */
  .admin-table td:nth-of-type(8)::before {
    content: "Solde :";
  }

  /* Col 9 : Actions (Les boutons) */
  .admin-table td:nth-of-type(9) {
    border-bottom: none;
    padding-top: 20px;
    justify-content: center; /* Centre les boutons */
    gap: 10px;
    flex-wrap: wrap; /* Permet aux boutons de passer à la ligne si besoin */
  }
  /* Pas d'étiquette pour les boutons */
  .admin-table td:nth-of-type(9)::before {
    content: none;
  }

  /* On grossit les boutons pour le tactile */
  .btn-action,
  .btn-edit,
  .btn-delete,
  .btn-history {
    padding: 10px 20px;
    font-size: 1rem;
    flex: 1; /* Les boutons prennent la largeur dispo */
    text-align: center;
    max-width: 150px;
  }
}

/* =========================================
   RESPONSIVE GESTION AVIS (Correction Finale)
   ========================================= */

@media (max-width: 900px) {
  /* 1. On transforme le tableau en liste de cartes */
  .table-avis,
  .table-avis tbody,
  .table-avis tr,
  .table-avis td {
    display: block !important;
    width: 100% !important;
  }

  .table-avis thead {
    display: none !important; /* Cache l'en-tête rose */
  }

  /* 2. Style de la Carte */
  .table-avis tr {
    background: #ffffff;
    margin-bottom: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    border-left: 6px solid #e91e63 !important; /* Bordure Rose */
    padding: 20px !important;
  }

  /* 3. Style des lignes internes */
  .table-avis td {
    display: flex !important; /* FORCE le mode flexible */
    justify-content: space-between;
    align-items: center;
    text-align: right;
    padding: 10px 0 !important; /* Ecrase le padding du PHP */
    border-bottom: 1px dashed #eee;
    font-size: 0.95rem;
  }

  /* 4. Les Titres (Labels à gauche) */
  .table-avis td::before {
    font-weight: bold;
    color: #7d4e85;
    text-align: left;
    margin-right: 15px;
    min-width: 80px;
  }

  /* --- MAPPING DES COLONNES --- */
  .table-avis td:nth-of-type(1)::before {
    content: "Date :";
  }

  .table-avis td:nth-of-type(2)::before {
    content: "Pseudo :";
  }
  .table-avis td:nth-of-type(2) input {
    text-align: right;
    max-width: 150px;
  }

  .table-avis td:nth-of-type(3)::before {
    content: "Note :";
  }

  /* LE MESSAGE (Cas spécial : affichage en dessous) */
  .table-avis td:nth-of-type(4) {
    display: block !important; /* Casse le flex pour empiler */
    text-align: left;
    border-bottom: 1px solid #ddd;
  }
  .table-avis td:nth-of-type(4)::before {
    content: "Message :";
    display: block;
    margin-bottom: 8px;
  }
  .table-avis td:nth-of-type(4) textarea {
    width: 100%;
    background: #fafafa;
    min-height: 80px;
  }

  /* ACTIONS (Centrées) */
  .table-avis td:nth-of-type(5) {
    border-bottom: none;
    padding-top: 15px !important;
    justify-content: center !important;
    display: flex !important;
    gap: 20px;
  }
  .table-avis td:nth-of-type(5)::before {
    content: "";
    display: none;
  }
}

/* =========================================
   PAGE editer.php (Choix des pages)
   ========================================= */

/* Le conteneur principal */
.conteneur-selection-page {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

.conteneur-selection-page h1 {
  text-align: center;
  color: #7d4e85;
  margin-bottom: 40px;
  font-size: 2rem;
}

/* Le bouton "Retour" standardisé */
.lien-retour-admin {
  color: #7d4e85;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1rem;
}

/* LA GRILLE DE BOUTONS */
.grid-boutons {
  display: grid;
  /* Créé des colonnes auto-adaptables (Minimum 140px de large) */
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 25px; /* Espace entre les cases */
}

/* LE STYLE DES BOUTONS (CARTES) */
.btn-page {
  display: flex;
  flex-direction: column; /* Icône au dessus du texte */
  align-items: center;
  justify-content: center;

  background: white;
  padding: 30px 15px;
  height: 100%; /* Uniformise la hauteur */

  border-radius: 15px;
  border-top: 5px solid #7d4e85; /* Petite barre violette */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);

  text-decoration: none;
  color: #555;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-align: center;
}

/* Effet au survol souris */
.btn-page:hover {
  transform: translateY(-5px); /* Remonte un peu */
  box-shadow: 0 10px 25px rgba(125, 78, 133, 0.2);
  background-color: #fff;
}

/* Style de l'icône */
.btn-page i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #7d4e85;
}

/* Style du texte */
.btn-page span {
  font-weight: bold;
  font-size: 1.1rem;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 600px) {
  .conteneur-selection-page h1 {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }

  /* On réduit un peu les espaces sur mobile */
  .grid-boutons {
    gap: 15px;
    grid-template-columns: repeat(2, 1fr); /* Force 2 colonnes sur mobile */
  }

  .btn-page {
    padding: 20px 10px;
  }

  .btn-page i {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .btn-page span {
    font-size: 0.95rem;
  }
}
/* ==========================================================================
   CSS RESPONSIVE header (Mobile)
   ========================================================================== */

/* 1. Le style du nouveau bouton (Caché sur PC par défaut) */
#btn-menu-burger {
  display: none;
  background: none;
  border: 1px solid #7d4e85;
  color: #7d4e85;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 10px; /* Espace sous le logo */
}

#icone-burger {
  transition: transform 0.3s ease;
}

@media (max-width: 900px) {
  header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  /* 2. On affiche le bouton sur mobile */
  #btn-menu-burger {
    display: block;
    margin-bottom: 10px;
  }

  /* 3. On CACHE la navigation par défaut sur mobile avec un effet de glissement */
  #nav-principal {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    width: 100%; /* Prend toute la largeur */
  }

  /* 4. Quand le JS ajoute cette classe, le menu s'ouvre */
  #nav-principal.menu-ouvert {
    max-height: 400px; /* Assez grand pour afficher les liens */
  }

  nav ul {
    flex-direction: column; /* Les liens s'empilent */
    gap: 15px;
    margin: 15px 0;
    font-size: 1rem;
    text-align: center;
  }
}
