* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #333;
}

/* -------------------------------- 
  Bandeau haut
 --------------------------------*/
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #0A66CC;
  z-index: 1000;
}

.nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 15px 0;
}

.nav li {
  margin: 0 15px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.nav a:hover {
  text-decoration: underline;
}

/* --------------------------------
  Contenu principal
 --------------------------------*/
main {
  padding: 110px 20px 90px;
  max-width: 1000px;
  margin: auto;
}

h1 {
  text-align: center;
  margin-bottom: 50px;
}

section {
  margin-bottom: 70px;
  scroll-margin-top: 90px; /* hauteur du bandeau permet de renvoyer à la section avec affichage du titre */
}

section h2 {
  margin-bottom: 20px;
  color: #0A66CC;
}

.liste-prise {
  list-style: none;
  padding-left: 0;
}

.liste-prise li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.liste-prise li::before {
  content: "⚡️";    /* 🔌💡 */
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.1em;
  filter: grayscale(20%);
}

/* Galerie vignettes */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-item {
  width: calc(25% - 10px);
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1001;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  animation: fadeIn 0.3s;
}

.lightbox-img {
  max-width: 80%;
  max-height: 70%;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: transform 0.3s;
}

#lightbox-caption {
  color: #fff;
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 5px;
  text-align: center;
}

#lightbox-description {
  color: #ddd;
  font-size: 1em;
  margin-bottom: 20px;
  text-align: center;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #ddd;
}

/* Navigation */
.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  color: #fff;
  font-size: 60px;
  user-select: none;
  cursor: pointer;
}

.prev:hover, .next:hover {
  color: #bbb;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-item {
    width: calc(50% - 10px);
  }
}

@media (max-width: 480px) {
  .gallery-item {
    width: 100%;
  }
}

/* Animation */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}


/* Section contact */
#contact {
  margin-bottom: 80px;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

/* Colonne coordonnées */
.contact-info {
  background-color: #d5d6d8;
  padding: 25px;
  border-radius: 8px;
}

.contact-info h3 {
  margin-top: 0;
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.contact-info a {
  color: #1f2933;
  text-decoration: none;
  font-weight: bold;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Colonne formulaire */
.contact-form-wrapper {
  background-color: #d5d6d8;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.contact-form-wrapper h3 {
  margin-top: 0;
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
}

.contact-form button {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #0A66CC;
  color: #fff;
  border: none;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #2563eb;
}

.contact-item {
  display: flex;
  align-items: center;      /* ALIGNEMENT VERTICAL */
  gap: 10px;
  margin-bottom: 18px;      /* espace icône / texte */
  line-height: 1.6;
}

.contact-item .icon {
  width: 35px;
  height: 35px;
  min-width: 35x;          /* empêche le décalage */
  fill: #0A66CC;
  flex-shrink: 0;
  display: block;           /* important pour SVG (les icônes sont en SVG) */
}

.contact-item .icon-whatsapp {
  fill: #25d366;
  width: 35px;
  height: 35px;
}

.contact-item a {
  color: #0A66CC;
  text-decoration: none;
  font-weight: bold;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}

/* Bandeau bas */
.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #0A66CC;
  text-align: center;
  padding: 12px 0;
}

.footer a {
  margin: 0 10px;
  color: #fff;
  text-decoration: none;
}

/* Bouton WhatsApp flottant */
.whatsapp-float {
  position: fixed;
  bottom: 90px; /* au-dessus du footer */
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 2000;
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

/* Mobile : légèrement plus bas */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 80px;
    right: 15px;
  }
}
