/* ========== STRUCTURE GLOBALE ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
    .galerie-videos {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 12px;
    }
    

    .image-block {
      background: white;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      transition: transform 0.2s ease;
    }


body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Arial', sans-serif;
  background-color: #7d0000;
  color: #ffffff;
}

/* ========== EN-TÊTE ========== */
header {
  background-color: rgb(15, 133, 165);
  padding: 10px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 4px rgba(248, 248, 248, 0.1);
  text-align: center;
}

.logo {
  height: 50px;
  width: auto;
  max-width: 180px;
  margin-bottom: 10px;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0;
  margin: 0;
  justify-content: center;
}

nav a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  transition: color 0.3s;
  font-size: 1em;
}

nav a:hover {
  color: #cccccc;
}

/* ========== CONTENU PRINCIPAL ========== */
main {
  flex: 1;
  padding: 15px;
}

h1, h2 {
  text-align: center;
  color: #ffffff;
  font-size: 1.6em;
  margin-bottom: 20px;
  animation: slideCenter 2s ease-in-out forwards;
}

@keyframes slideCenter {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.intro {
  text-align: center;
  font-size: 1.05em;
  margin-bottom: 25px;
}

.orange {
  color: #E67E22;
}

/* ========== GALERIE DES PACKS ========== */
.galerie {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
  padding: 0 10px;
}

.carte-pack {
  background: white;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s;
}

.carte-pack:hover {
  transform: scale(1.02);
}

/* Forcer les images packs à être toujours carrées */
.carte-pack img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.nom-pack {
  margin-top: 10px;
  font-size: 0.9em;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
  background-color: #3CB371;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 5px;
  margin-bottom: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* ========== GALERIE DES MODÈLES ========== */
.galerie-modele {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 15px;
  justify-items: center;
  align-items: stretch;
  max-width: 100%;
  overflow-x: hidden;
}

.carte-modele {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 10px;
  text-align: center;
  font-size: 0.95em;
  animation: fadeModele 0.6s ease-in-out forwards;
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 100%;
}

@keyframes fadeModele {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.carte-modele:hover {
  transform: translateY(0px) scale(1.05);
  box-shadow: 0 12px 20px rgba(0,0,0,0.2);
}

.carte-modele img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  max-height: 300px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 8px;
  max-width: 100%;
}

/* ========== PRIX ET BOUTON ========== */
.prix {
  font-weight: bold;
  margin: 10px 0;
  font-size: 0.95em;
  color: #7d0000;
}

.btn-commander {
  width: 100%;
  padding: 8px;
  font-size: 0.95em;
  border-radius: 5px;
  background-color: #E67E22;
  color: white;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: background 0.3s;
  box-sizing: border-box;
}

.btn-commander:hover {
  background-color: #cf6a1c;
}

/* ========== FORMULAIRE ========== */
form {
  max-width: 450px;
  margin: 20px auto;
  background-color: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

form label {
  display: block;
  margin: 10px 0 5px;
  font-size: 0.95em;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  font-size: 1em;
}

.btn-envoyer {
  background-color: #2ECC71;
  color: white;
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
}

.btn-envoyer:hover {
  background-color: #27ae60;
}

/* ========== PRÉVISUALISATION IMAGE ========== */
#preview {
  max-width: 300px;
  margin: 0 auto 20px;
  text-align: center;
}

#preview img {
  width: 100%;
  border-radius: 10px;
}

/* ========== WHATSAPP ========== */
.info-choix {
  font-size: 0.95em;
  color: #555;
  text-align: center;
  margin-top: 10px;
}

.btns-whatsapp {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.btn-whatsapp {
  padding: 12px;
  border: none;
  color: white;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s;
}

.btn-whatsapp.normal {
  background-color: #25D366;
}

.btn-whatsapp.normal:hover {
  background-color: #1ebe5d;
}

.btn-whatsapp.business {
  background-color: #075E54;
}

.btn-whatsapp.business:hover {
  background-color: #064e46;
}

/* ========== PIED DE PAGE ========== */
footer {
  background-color: #2C3E50;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 0.95em;
  margin-top: auto;
}

/* ========== RESPONSIVE PACKS 4 COLONNES PLUS TOT ========== */
@media (min-width: 992px) {
  .galerie {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .galerie {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .galerie {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== RESPONSIVE GALERIE MODELE ========== */
@media (max-width: 1200px) {
  .galerie-modele {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0 10px;
  }
}

@media (max-width: 768px) {
  .galerie-modele {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 0 8px;
  }
}

@media (max-width: 480px) {
  .galerie-modele {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 8px;
  }

  .carte-modele img {
    max-width: 100%;
    max-height: 250px;
  }

  .btn-commander {
    font-size: 0.85em;
    padding: 6px;
  }
}

/* ==== SPÉCIFIQUE À LA PAGE VIDEO ==== */
.galerie-videos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 10px;
}

.video-block, .image-block {
  width: 70%;
  max-width: 200px;
  background: white;
  border-radius: 50px;
  padding: 50px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

video, img {
  width: 100%;
  border-radius: 10px;
}