/* box */


* { box-sizing: border-box; }

.container2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 40px;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Box principale --- */
.box-verte {
  --couleur: #075701;
  background: var(--couleur);
  color: #e0e0e0;
  border: 3px solid #ff0000;
  border-radius: 14px;
  padding: 28px;
  width: 100%;
  max-width: 400px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  animation: fadeSlide 0.8s ease forwards;
  transition: transform 0.4s ease, background-color 0.4s ease, color 0.4s ease;
}

.box-verte:hover {
  background-color: #6a0dad;
  color: #ffff66;
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.3);
}

/* Bouton */
.box-bouton {
  display: inline-block;
  text-decoration: none;
  padding: 10px 18px;
  background: #ffffff;
  color: var(--couleur);
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.box-bouton:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.box-bouton:active {
  transform: translateY(1px);
}

/* === Cadre flottant (invisible par défaut) === */
/* === Cadre flottant === */
.cadre-flottant {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* fond semi-transparent */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;

  /* invisibilité et transition */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;

  /* 💫 flou d’arrière-plan */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ✅ S’affiche quand ciblé */
.cadre-flottant:target {
  opacity: 1;
  pointer-events: auto;
}

/* === Contenu du cadre === */
.cadre-contenu {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  overflow: hidden;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);
  position: relative;

  /* effet de départ */
  transform: scale(0.85);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease,
    box-shadow 0.5s ease;
}

/* ✨ Effet zoom + fondu + ombre animée */
.cadre-flottant:target .cadre-contenu {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 0 40px rgba(106, 13, 173, 0.4);
}

/* === Contenu interne === */
iframe {
  width: 100%;
  height: 75vh;
  border: none;
  display: block;
}

/* === Bouton Fermer === */
.fermer {
  position: absolute;
  top: 10px;
  right: 15px;
  text-decoration: none;
  background: #6a0dad;
  color: white;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease, transform 0.2s ease;
}

.fermer:hover {
  background: #550a9a;
  transform: scale(1.05);
}

/* === Mobile === */


/* Mobile 
@media (max-width: 768px) {
  .container2 {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .cadre-contenu {
    width: 95%;
  }

  iframe {
    height: 70vh;
  }

  .fermer {
    top: 8px;
    right: 10px;
    font-size: 0.9rem;
  }
}

*/