/* ✅ Style général du header */
header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #f8f8f8;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-family: Arial, sans-serif;
}

/* ✅ Bloc logo + texte */
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  height: 45px;
}

.logo h1 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
}

.logo span {
  font-size: 0.9rem;
  color: #777;
}

/* ✅ Navigation */
nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: #0077cc;
  font-weight: bold;
}

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

/* ✅ Responsive mobile */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }
}
.container {
  max-width: 1100px;
  margin: 0 auto;
}










/* 🌍 Conteneur global */
body {
  margin: 0;
  padding: 20px;
  font-family: Arial, sans-serif;
  background-color: #fff9f9;
}

/* 🌄 Fond personnalisé avec image */
body {
  margin: 0;
  padding: 20px;
  font-family: Arial, sans-serif;
  background-image: url("images/Fond.jpg"); /* ✅ remplace par ton chemin */
  background-size: cover;       /* ✅ l’image couvre tout l’écran */
  background-position: center;  /* ✅ centrée */
  background-repeat: no-repeat; /* ✅ pas de répétition */
  background-attachment: fixed; /* ✅ effet de parallaxe */
  color: #141414;
}

/* 🧠 Titres principaux */
h1, h2, h3 {
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold; /* ✅ gras activé */
  font-size: clamp(18px, 4vw, 24px); /* ✅ taille adaptative */
    /* ✅ Contour blanc simulé avec ombre multiple */
  /* text-shadow:
   -1px -1px 0 #272626, 
     1px -1px 0 #121111, 
    -1px  1px 0 #181717,
     1px  1px 0 #1c1b1b; */

}

/* 🧱 Grille responsive à 3 colonnes */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* ✅ fluide sur mobile */
  gap: 20px;
  margin-bottom: 30px;
}

/* 🧩 Carte individuelle */
.card-container {
  background-color: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
  border-left: 10px solid #0078D4;
  position: relative;
  max-width: 100%;
}

.card-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

/* 👤 Icône décorative (optionnelle) 💳 */
.card-container::before {
  content: "👤";
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  opacity: 0.2;
}

/* 📝 Champs et libellés */
label {
  font-size: clamp(14px, 4vw, 18px);
  color: #444;
  display: block;
  margin-bottom: 10px;
  line-height: 1.4;
  word-break: break-word;
}

input[type="radio"],
input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.1);
}

input[type="text"],
input[type="number"],
input[type="mail"],
input[type="date"],
select {
  width: 100%;
  padding: 8px 10px;
  font-size: clamp(14px, 4vw, 17px);
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
select:focus {
  border-color: #0078D4;
  box-shadow: 0 0 5px rgba(0,120,212,0.3);
}

/* 💰 Grille pour les prix */
.prix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.prix-grid label {
  display: flex;
  align-items: center;
}

/* ✅ Bouton principal */
button {
  margin-top: 15px;
  padding: 10px 18px;
  font-size: clamp(14px, 4vw, 16px);
  background-color: #0078D4;
  color: white;
  border: none;
  border-radius: 4px;
  border: 2px solid #ffffff; /* ✅ contour blanc */
  cursor: pointer;
  width: auto;
}

button:hover {
  background-color: #026fbd; /* ✅ bleu plus foncé */
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6); /* ✅ halo renforcé */
}


/* 📱 Centrage du bouton global */
.button-wrapper {
  text-align: center;
  margin-top: 30px;
}

/* 📱 Responsivité mobile */
@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  h1, h2, h3 {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .card-container {
    padding: 15px;
    border-left-width: 6px;
  }

  .prix-grid {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 8px;
  }

  button {
    width: 100%;
    font-size: 15px;
    padding: 12px;
  }

  .button-wrapper {
    margin-top: 20px;
  }
}





/* ✅ Style du modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  position: relative;
  text-align: left;
}

.modal-content h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.modal-content p {
  text-align: justify;
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}


.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

@media (max-width: 600px) {
  .modal-content {
    width: 95%;
    padding: 1rem;
    font-size: 0.95rem;
  }

  .modal-content h2 {
    font-size: 1.3rem;
  }

  .modal-content p {
    font-size: 0.95rem;
  }

  .close {
    font-size: 20px;
    top: 8px;
    right: 10px;
  }
}