/*********** BANDEAU ENQUÊTE (temporaire) ***********/
/* Voir bandeau-enquete.php pour la suppression */

#bandeau-enquete {
  /* Au-dessus de <main> (remonté juste en dessous, voir plus bas) : sinon ses images de fond
     décoratives (#accueil, #presentation) se dessinent sur le bas du bandeau.
     Le header fixe (z-index 100) reste au-dessus. */
  position: relative;
  z-index: 1;
  margin-top: var(--header-h, 100px); /* header fixe : hauteur mesurée en JS (100px par défaut) */
  background-color: #2f6df0;
  background-image: url("/images/Parcours_bandeau_enquete.svg"),
    linear-gradient(135deg, #3a7bf5 0%, #2a62e6 100%);
  background-repeat: no-repeat;
  background-position: right -210px bottom -145px, 0 0; /* coin bas droit : décalé d'1/3 de sa taille (630×420) vers le bas et la droite ; le trait sort par le bord droit */
  background-size: 630px auto, cover;
  color: white;
  overflow: hidden;
}

/* Les pages gèrent déjà l'espace du header avec leur propre padding-top :
   on remonte le contenu pour que ce padding serve de respiration sous le bandeau */
#bandeau-enquete ~ main {
  margin-top: calc(-1 * var(--header-h, 100px) + 20px);
}

/* Prendre la parole : la section bleue (#parole) a sa propre marge haute et démarre sous le header,
   pas de remontée sinon elle chevaucherait le bandeau */
#bandeau-enquete ~ main#boite-idees {
  margin-top: 0;
}

.bandeau-enquete-contenu {
  width: 90%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 40px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, calc(40% - 40px)) minmax(0, 60%); /* texte 40 % (moins l’écart) / cartes 60 % */
  gap: 40px;
  align-items: start;
}

/* --- Texte --- */
.bandeau-col-texte p {
  margin: 0 0 18px;
  line-height: 1.4;
  font-size: 16px;
}

.bandeau-col-texte .bandeau-titre {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 26px;
}

.bandeau-col-texte .bandeau-accroche {
  color: var(--vert-50);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 26px;
}

.bandeau-points {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.bandeau-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 18px;
}

/* --- Cartes --- */
.bandeau-col-cartes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.bandeau-carte {
  box-sizing: border-box;
  min-width: 0;
  border-radius: 18px;
  padding: 18px 18px 16px;
  color: white;
  display: flex;
  flex-direction: column;
}

.bandeau-apprenti { background-color: var(--jaune-50); }
.bandeau-maitre { background-color: #74d3a2; }
.bandeau-employeur { background-color: #e8793d; }

/* Disposition desktop : apprenti + maître en haut, employeur dessous à gauche */
.bandeau-apprenti { grid-column: 1; grid-row: 1; }
.bandeau-maitre { grid-column: 2; grid-row: 1; align-self: start; }
.bandeau-employeur { grid-column: 1; grid-row: 2; }

.bandeau-carte p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.3;
}

/* Texte courant en Regular, questions en gras : la police (Strawford) n'a que Regular et Medium,
   on force 700 pour que le gras ressorte davantage */
.bandeau-carte p { font-weight: 400; }
.bandeau-carte p b { font-weight: 700; font-size: 15px; }

/* Léger espace entre les deux groupes question/réponse (1er groupe = .bandeau-groupe) */
.bandeau-carte .bandeau-groupe { margin-bottom: 8px; }

.bandeau-carte .bandeau-carte-titre {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
}

.bandeau-carte .bandeau-carte-titre svg {
  flex-shrink: 0;
}

.bandeau-bouton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  padding: 10px 16px;
  border-radius: 99px;
  background-color: #2250d6;
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}

.bandeau-bouton:hover {
  background-color: var(--bleu-80);
  color: white;
}

/*********** RESPONSIF ***********/

@media (max-width: 1100px) {
  #bandeau-enquete {
    background-position: right 0 bottom -5px, 0 0; /* position d'origine hors desktop */
  }

  .bandeau-enquete-contenu {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .bandeau-enquete-contenu {
    width: 100%;
    box-sizing: border-box;
    padding: 28px 20px 32px;
  }

  .bandeau-col-texte .bandeau-titre { font-size: 24px; }
  .bandeau-col-texte .bandeau-accroche { font-size: 18px; }
  .bandeau-col-texte p { font-size: 14px; }

  .bandeau-points li { font-size: 16px; }

  /* Cartes empilées */
  .bandeau-col-cartes {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .bandeau-apprenti,
  .bandeau-maitre,
  .bandeau-employeur {
    grid-column: 1;
    grid-row: auto;
  }
}
