/* couleur primaire globale */
:root,
[data-bs-theme="light"]{
  --bs-primary: #4472C4;
  --bs-primary-rgb: 11,110,253;
}
[data-bs-theme="dark"]{
  --bs-primary: #4472C4;
  --bs-primary-rgb: 11,110,253;
}

/* si tu veux assurer le fond, garde aussi ceci au cas où */
.navbar.bg-primary,
footer.bg-primary,
.bg-primary{
  background-color:#4472C4 !important;
}

/* Partie Alternance des menus */

/* Conteneur dédié à tes p/img alternés */
.explain {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  max-width: 1024px;
  margin: 40px auto;
  align-items: center;
  grid-auto-flow: row dense; /* comble les trous si une carte est plus haute */
}

/* Éléments */
.explain .bloc { max-width: 100%; }
.explain p.bloc {
  margin: 0;
  line-height: 1.6;
  font-size: 1.05rem;
}
.explain img.bloc {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* Alternance par groupe de 4 éléments (p,img,p,img) */
.explain > .bloc:nth-child(4n + 1) { grid-column: 1; } /* 1,5,9... : p à gauche   */
.explain > .bloc:nth-child(4n + 2) { grid-column: 2; } /* 2,6,10... : img à droite */
.explain > .bloc:nth-child(4n + 3) { grid-column: 2; } /* 3,7,11... : p à droite  */
.explain > .bloc:nth-child(4n)     { grid-column: 1; } /* 4,8,12... : img à gauche */

/* Responsive : une seule colonne */
@media (max-width: 768px) {
  .explain { grid-template-columns: 1fr; gap: 16px; margin: 24px auto; }
  .explain .bloc { grid-column: 1 !important; }
}

/* fin */

/* From Uiverse.io by Madflows */ 
.button {
  position: relative;
  overflow: hidden;
  height: 3rem;
  padding: 0 2rem;
  border-radius: 1.5rem;
  background: #3d3a4e;
  background-size: 400%;
  color: #fff;
  border: none;
  cursor: pointer;
}

.button:hover::before {
  transform: scaleX(1);
}

.button-content {
  position: relative;
  z-index: 1;
}

.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: 0 50%;
  width: 100%;
  height: inherit;
  border-radius: inherit;
  background: linear-gradient(
    82.3deg,
    rgba(68, 114, 196, 1) 10.8%,
    rgba(68, 114, 196, 1) 94.3%
  );
  transition: all 0.475s;
}


/* PDF */
/* Wrapper pour bouton + PDF */
.planning {
    display: flex;
    justify-content: center;   /* centre horizontalement */
    align-items: center;       /* centre verticalement */
    gap: 20px;                 /* espace entre bouton et iframe */
    margin: 40px auto;
    width: fit-content;        /* évite d’étirer inutilement */
}

/* Conteneur PDF avec aspect-ratio natif */
.pdf-container {
    width: 1000px;              /* largeur par défaut */
    max-width: 80vw;           /* responsive */
    aspect-ratio: 16 / 9;      /* format 16:9 natif */
    display: flex;
    align-items: center;       /* centre l’iframe verticalement */
    justify-content: center;
}

/* Iframe rempli son conteneur */
.pdf-container .pdf {
    width: 100%;
    height: 100%;
    border: none;
}

/* En mobile : masquer l’iframe */
@media (max-width: 767px) {
    .pdf-container {
        display: none;
    }
    .planning {
        justify-content: center;
    }
}
/* Fin PDF */
