/* =========================================================================
   layout.css : Structure et disposition des bandeaux, header, footer, 
   sections principales, couleurs de fond, positionnements principaux.
   À importer après base.css.
   ======================================================================== */

/* -------------------- BANDEAUX -------------------- */
/* Structure des bandeaux */
.bandeau,
.bandeau-titre,
.bandeau-header,
#photo.bandeau {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
  padding-top: var(--bandeau-vpad);
  padding-bottom: var(--bandeau-vpad);
}

.bandeau {
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

.bandeau.blanc { background: none; color: var(--dark); }
.bandeau.gris { background: var(--light-gray); color: var(--dark); }
.bandeau.orange { background: var(--orange); color: var(--white); }
.bandeau.orange h2, .bandeau.orange h3 { color: var(--white); }
.bandeau.orange {
  margin-top: 1.5em;
}

/* Réduction du padding top pour le bandeau "Comment ça marche" */
#fonctionnement.bandeau.orange {
  padding-top: 0.5em !important;
  padding-bottom: 2.5em;
  margin-bottom: 0;
}

/* ---- BANDEAU AVANTAGES ---- */
#avantages.bandeau {
  background: var(--gray-bg) !important;
  color: var(--white) !important;
}
#avantages.bandeau h2 {
  color: var(--white) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* -------------------- BANDEAU TITRE -------------------- */
.bandeau-titre {
  background: var(--gray-bg);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: var(--bandeau-vpad) 0;
}
.bandeau-titre .main-title {
  font-size: 2.8em; /* plus de !important */
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  display: flex;
  gap: 0.5em;
  margin-bottom: 0.3em; /* réduit l'espace sous le H1 */
}
.bandeau-titre .main-title .express {
  color: var(--orange);
}
.bandeau-titre .bons {
  font-size: 1.1em !important;
  margin-top: 0.7em;
  color: var(--white);
  text-transform: uppercase;
  font-weight: 500;
  text-align: center;
  letter-spacing: 1px;
}

/* ----------- SOUS-TITRE SOUS LE H1 ----------- */
.sous-titre {
  margin-top: 0.5em;           /* Réduit l’espacement au-dessus */
  margin-bottom: 1.5em;        /* Augmente l’espacement en dessous */
  font-size: 1.25em;
  color: var(--white);
  text-align: center;
}

.sous-titre-h1 {
  margin-top: 0.15em;
  margin-bottom: 2em; /* augmente l'espace sous le sous-titre h1 */
  font-size: 1.1em;
  line-height: 1.3;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* -------------------- BANDEAU LOGO + QUI SOMMES NOUS -------------------- */
.bandeau-header {
  background: transparent;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  margin: 0;
  margin-top: 0; /* retire tout margin-top par défaut */
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box;
}
.bandeau-header .logo-col {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0 1.5em; /* Ajoute du padding à gauche et à droite */
  background: #fff; /* Fond blanc pour la colonne logo */
  flex-shrink: 0;
  width: fit-content;
  min-width: 0;
  max-width: none;
}
.bandeau-header .logo-col img {
  display: block;
  max-height: 300px;
  width: auto;
  object-fit: contain;
  margin: 0;
  padding: 0;
  align-self: stretch;
}
.bandeau-header .qui-col {
  flex: 1 1 0;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  max-height: 300px;
  box-sizing: border-box;
  overflow-y: auto;
  padding: 1em 2.5em;
  background: var(--gray-bg);
}
.bandeau-header .qui-col h2 {
  font-weight: 700;
  color: var(--white);
  margin: 0 0 1em 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
  align-self: flex-start;
}
.bandeau-header .qui-col .qui-texte {
  font-size: 1.1em;
  color: var(--white);
  line-height: 1.7;
  text-align: justify; /* Justifie le texte */
  margin: 0;
  padding: 0;
  overflow: auto;
  max-height: 100%;
}
.bandeau-header .qui-col .qui-texte p { margin: 0 0 1.1em 0; }
.bandeau-header .qui-col .qui-texte p:last-child { margin-bottom: 0; }

/* -------------------- BANDEAU PHOTO -------------------- */
#photo.bandeau {
  border: none;
  box-sizing: border-box;
  padding: 0 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  margin: 0 auto !important;
}

/* -------------------- PARTENAIRES -------------------- */
.partenaires-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2em 1em;
  justify-content: center;
  align-items: center;
  margin-top: 2em;
  width: 100%;
}
.partenaire-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.partenaire-label {
  color: var(--white);
  font-size: 1em;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.5px;
}
#partenaires.bandeau {
  background: var(--white) !important;
  color: var(--dark) !important;
  margin-top: 0;
}
#partenaires.bandeau h2,
#partenaires.bandeau .partenaire-label {
  color: var(--dark) !important;
}
#partenaires {
  margin-top: 0;
}

/* -------------------- INFOS + CONTACT (structure, fond, couleurs, textes) -------------------- */
#infos-contact {
  display: flex;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin-bottom: 0;
}
#infos-contact .col {
  flex: 1;
  padding: 0em 2em 1em 2em;
  border-radius: 0;
}

/* ---- Colonne Informations (anciennement Blanche) ---- */
#infos-contact .col.infos {
  background: rgba(224,224,224,0.4);
}
#infos-contact .col.infos h2 {
  color: var(--light-gray);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- Colonne Contact (anciennement Grise) ---- */
#infos-contact .col.contact {
  background: rgba(68,70,74,0.92);
  color: #fff;
}

/* ---- Structure des lignes infos ---- */
.infos-pratiques {
  font-size: 1.1em;
  line-height: 1.7;
  margin-top: 1em;
  font-style: normal; /* Supprime le style italique par défaut de la balise <address> */
}
.infos-line {
  margin-bottom: 0.7em;
  display: flex;
  align-items: center;
  gap: 1em;
}
.infos-line strong,
.infos-line span {
  color: #fff;
  font-weight: 700;
}
.infos-line a.tel-link {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}
.infos-line a.tel-link:hover,
.infos-line a.tel-link:focus {
  color: var(--orange);
}

/* ----------- MAP CONTAINER ----------- */
.map-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto 0 auto;
  padding: 0;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: stretch;
  box-sizing: border-box;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
  border: none;
  border-bottom: 2px solid var(--light-gray);
  opacity: 0.9;
}
.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
  display: block;
}

/* ----------- CTA Commande Béton ----------- */
.cta-beton {
  background: #fff;
  padding: 2.5em 0 2.5em 0;
  margin: 0;
}
.cta-beton-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 2px solid var(--light-gray);
  border-radius: 14px;
  margin: 1em 0 0 0;
  background: transparent;
  padding-bottom: 1.2em;
}

/* ----------- CHRONOBÉTON (COMMANDE EN LIGNE) ----------- */
.bandeau-cta-chronobeton {
  margin-top: 1.2em; /* ajoute un léger espace au-dessus du cta-beton-wrapper */
  margin-bottom: 1.2em;
}
.cta-chronobeton {
  margin-top: 1.2em !important; /* Réduit l’espacement au-dessus */
}

/* ----------- CTA Fleche Desc ----------- */
.icon-fleche-desc, /* nouvelle classe dédiée */
.cta-fleche-desc {
  display: block;
  margin: 0 auto;
  width: 48px;
  height: auto;
  animation: fleche-blink 1.6s infinite alternate !important;
  will-change: opacity;
}

@keyframes fleche-blink {
  0%   { opacity: 1; }
  60%  { opacity: 1; }
  80%  { opacity: 0.3; }
  100% { opacity: 1; }
}

/* -------------------- FOOTER -------------------- */
footer {
  background: transparent;
  color: #aaa;
  padding: 1em;
  text-align: center;
  font-size: 0.9em;
  border-radius: 0;
  margin-top: 0;
  margin-bottom: 1.5em;
}

footer p {
  font-size: 0.8em;
  opacity: 0.6;
  margin: 0.5em 0 0 0;
}

footer p:first-child {
  font-size: 0.9em;
  opacity: 1;
  margin: 0;
}

footer a {
  color: inherit;
  text-decoration: underline;
  opacity: 0.7;
  cursor: pointer;
}
