/* =========================================================================
   components.css : Styles des composants fonctionnels (formulaires, 
   avantages, partenaires, grilles, etc). À importer après layout.css.
   ======================================================================== */

/* -------------------- AVANTAGES (4 colonnes desktop, 2 colonnes mobile) -------------------- */
.avantages-cols,
.avantages-row,
.avantages-detaillees {
  display: flex;
  width: 100%;
  box-sizing: border-box;
}

.avantages-cols {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1em 0.5em;
  justify-content: center;
}

.avantages-row,
.avantages-detaillees {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  width: 100%;
  box-sizing: border-box;
}

.avantages-detaillees {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5em 2em;
  width: 100%;
  max-width: var(--max-width); /* alignement cohérent avec .wrapper */
  margin: 0 auto;
}

.avantages-detaillees li {
  width: 22%;
  max-width: none;
  text-align: center;
  margin-bottom: 1.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avantages-detaillees .icon {
  width: 64px;
  height: 64px;
  margin-bottom: 0.5em;
}

.avantages-detaillees div {
  font-size: 1em;
  line-height: 1.4;
  color: var(--white);
  max-width: 220px;
}

/* -------------------- ETAPES -------------------- */
.etapes {
  display: flex;
  flex-wrap: wrap; /* Responsive */
  gap: 1.5em;
  justify-content: center;
  align-items: center;
  margin-top: 1em; /* réduit l'espace au-dessus */
}
.etape {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 180px;
  max-width: 260px;
  text-align: center;
}
/* Augmenter la taille de police pour la description de l'étape */
.etape > div:not(.etape-num) {
  font-size: 1.15em; /* Augmenté de 1.1em à 1.15em */
  line-height: 1.4; /* Ajuster si nécessaire */
}
.etape-num {
  background: var(--white);
  color: var(--orange);
  font-weight: 700;
  font-size: 1.3em;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.7em auto;
}
.etape-arrow {
  width: 40px; /* Ajuster la taille si besoin */
  height: auto;
  margin: 0 1em; /* Espacement horizontal */
  vertical-align: middle; /* Alignement vertical */
}

/* -------------------- INFOS PRATIQUES (apparence) -------------------- */
#infos-contact .col.infos strong {
  color: var(--dark);
  font-weight: 700;
}
#infos-contact .col.infos .infos-value,
#infos-contact .col.infos .infos-value strong {
  color: var(--light-gray);
  font-weight: 700;
  text-decoration: underline;
}
#infos-contact .col.infos .infos-value:not(a) {
  text-decoration: none;
}

/* -------------------- FORMULAIRE CONTACT -------------------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 480px;
  margin: 0 auto;
  align-items: stretch;
}

.contact-form label {
  display: flex;
  align-items: center;
  gap: 1.2em;
  font-size: 1em;
  color: inherit;
  margin-bottom: 0;
  flex-direction: row;
  justify-content: flex-start;
  width: 100%;
}

.contact-form label > span {
  min-width: 90px;
  text-align: left; /* aligné à gauche */
  flex-shrink: 0;
  display: inline-block;
  font-weight: 700; /* met en gras les labels */
}

.contact-form input,
.contact-form textarea {
  flex: 1 1 0;
  width: 100%;
  max-width: 370px;
  font-size: 1em;
  padding: 0.5em 0.8em;
  border: 1px solid #ccc;
  border-radius: 0;
  background: var(--white);
  color: #232323;
  font-family: var(--font);
  box-sizing: border-box;
  height: 2.2em;
  margin: 0;
  display: block;
}

.contact-form textarea {
  height: 6em; /* une ligne de plus */
  resize: vertical;
}

.contact-form button {
  padding: 0 0.8em;
  margin: 1.2em auto 0 auto;
  width: 180px;
  max-width: 100%;
  display: block;
  box-shadow: 0 4px 16px 0 rgba(0,0,0,0.15);
  height: 50px; /* hauteur réduite */
}
.contact-form button .icon {
  width: 40px !important;
  height: 40px !important;
  margin-right: 8px;
  vertical-align: middle;
}
.contact-form button.btn-orange:hover {
  box-shadow: 0 6px 24px 0 rgba(0,0,0,0.18); /* Specific hover shadow for form button */
}

/* Message de statut du formulaire */
#form-status-message {
  margin-bottom: 1em;
  text-align: center;
  font-weight: bold;
  font-size: 1.08em;
  min-height: 1.5em;
}

/* Form Components */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 480px;
  margin: 0 auto;
}
.form__group {
  display: flex;
  gap: var(--space-sm);
}
.form__label { min-width: 90px; }
.form__input {
  width: 100%;
  padding: var(--space-sm);
  border: var(--border-sm) solid var(--light-gray);
}

/* -------------------- QUI TEXTE (pour autres usages) -------------------- */
.qui-texte {
  font-size: 1.15em;
  line-height: 1.7;
  color: var(--dark);
  text-align: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}
.qui-texte p { margin: 0 0 1.1em 0; }
.qui-texte p:last-child { margin-bottom: 0; }
.qui-texte .promesse-texte {
  font-weight: 500;
  margin-top: 1.2em;
}

/* -------------------- PARTENAIRE CARD -------------------- */
.partenaire-card img {
  height: 75px; /* 50% larger than 50px */
  width: auto;
  margin-bottom: 1em;
  object-fit: contain;
  max-width: 100%;
}

/* -------------------- MODALE MENTIONS LÉGALES -------------------- */
.modal-mentions {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: none; /* Explicitement masqué par défaut */
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.modal-mentions__overlay {
  position: fixed;
  inset: 0;
  background: rgba(40,40,40,0.45);
  transition: opacity 0.3s;
  opacity: 0;
  pointer-events: auto;
}
.modal-mentions__content {
  background: #fff;
  color: #232323;
  border-radius: 14px;
  box-shadow: 0 8px 32px 0 rgba(40,40,40,0.18);
  max-width: 480px;
  width: 92vw;
  padding: 2em 1.5em 1.5em 1.5em;
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.35s cubic-bezier(.4,0,.2,1), transform 0.35s cubic-bezier(.4,0,.2,1);
  pointer-events: auto;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-mentions__close {
  position: absolute;
  top: 1em;
  right: 1em;
  background: none;
  border: none;
  font-size: 2em;
  color: #888;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}
.modal-mentions__close:hover {
  color: #F26623;
}
.modal-mentions__body {
  font-size: 1em;
  opacity: 0.98;
}
.modal-mentions.open {
  display: flex;
  pointer-events: auto;
}
.modal-mentions.open .modal-mentions__overlay {
  opacity: 1;
}
.modal-mentions.open .modal-mentions__content {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 600px) {
  .modal-mentions__content {
    max-width: 98vw;
    padding: 1.2em 0.7em 1em 0.7em;
    font-size: 0.98em;
  }
  .modal-mentions__close {
    top: 0.5em;
    right: 0.5em;
    font-size: 1.5em;
  }
}

/* ----------- CTA Commande Béton ----------- */
.cta-beton-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 2px solid var(--light-gray);
  border-radius: 14px;
  margin: 0em 0em 0em 0em;
  background: transparent;
  padding-bottom: 1.2em; /* léger padding bottom */
}
.cta-beton-text {
  font-size: 1.25em;
  font-weight: 600;
  margin-bottom: 1.2em;
  color: #232323;
}
.btn-orange {
  background: var(--orange);
  color: var(--white);
  border: none;
  font-size: 1.05em;
  font-weight: 600;
  border-radius: 0;
  transition: 0.2s;
  text-align: center;
  letter-spacing: 1px;
  height: 2.4em;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 0.8em 1.4em;
  margin-top: 0.5em; /* réduit le margin top */
}
.btn-orange:hover {
  background: var(--orange2);
  box-shadow: 0 6px 24px 0 rgba(0,0,0,0.18);
}

/* ----------- Commande Texte ----------- */
.commande-texte {
  color: #FFD700;
  font-weight: 700;
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 0em;
  margin-top: 0.5em; /* réduit le margin top */
  display: flex;
  align-items: center;
  justify-content: center;
}
.commande-texte .icon {
  width: 66px;
  height: 66px;
  margin-right: 0.7em;
  margin-bottom: 0; /* supprime tout décalage vertical */
}

/* ----------- Icon Maps ----------- */
.icon-maps {
  width: 100px;
  height: 100px;
  display: inline-block; /* Ensures proper block-level behavior for sizing */
  vertical-align: middle; /* Aligns icon nicely with text if wrapped differently */
  transition: filter 0.2s, transform 0.2s; /* Added transform for a subtle zoom/lift */
  /* If using an SVG icon that should inherit color or have a specific color: */
  /* fill: currentColor; */ /* Example: if you want it to match text color */
  /* fill: var(--orange); */ /* Example: to make it orange */
}
.maps-link { /* Style for the link itself, if needed */
  display: inline-flex; /* Helps align the icon within the link */
  align-items: center;
  margin-left: 6px; /* Spacing from the address text */
}
.maps-link:hover .icon-maps {
  filter: brightness(1.2) drop-shadow(0 2px 4px rgba(0,0,0,0.12));
  transform: scale(1.1); /* Slight zoom on hover */
}

#infos-contact {
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-form {
  margin-bottom: 0;
}

#partenaires {
  margin-top: 0 !important;
}

/* --- SLIDER PHOTO/VIDEO --- */
.slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-height: 380px;
}
.slides {
  display: flex;
  transition: transform 0.5s ease;
  /* Correction : évite le retour à l'affichage vertical si flex-basis saute */
  width: 100%;
}
.slide {
  min-width: 100%;
  box-sizing: border-box;
  flex-shrink: 0; /* Ajouté : force chaque slide à rester sur une seule "page" */
  /* Correction : évite que les slides se mettent en colonne */
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide img,
.slide video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 380px;
  object-fit: cover;
}

/* Flèches de navigation améliorées : rectangles verticaux discrets */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  font-size: 2.2rem;
  padding: 0.7em 0.4em;
  cursor: pointer;
  z-index: 2;
  color: #232323;
  border-radius: 8px;
  width: 38px;
  height: 68px;
  min-width: 38px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(40,40,40,0.10);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.prev:hover, .next:hover {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 18px rgba(40,40,40,0.18);
}
.prev { left: 10px; }
.next { right: 10px; }

/* Petits points de navigation */
.dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #bbb;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.dots button.active {
  background: #333;
}

/* Empêche la barre de contrôle de la vidéo d’apparaître dans le slider */
.slide video {
  pointer-events: none;
  user-select: none;
  outline: none;
  border: none;
  background: #000;
}

/* Cache la barre de contrôle sur tous navigateurs */
.slide video::-webkit-media-controls { display: none !important; }
.slide video::-webkit-media-controls-enclosure { display: none !important; }
.slide video::-webkit-media-controls-panel { display: none !important; }
.slide video::-webkit-media-controls-play-button { display: none !important; }
.slide video::-webkit-media-controls-start-playback-button { display: none !important; }
.slide video::-webkit-media-controls-timeline { display: none !important; }
.slide video::-webkit-media-controls-current-time-display { display: none !important; }
.slide video::-webkit-media-controls-time-remaining-display { display: none !important; }
.slide video::-webkit-media-controls-volume-slider { display: none !important; }
.slide video::-webkit-media-controls-mute-button { display: none !important; }
.slide video::-webkit-media-controls-fullscreen-button { display: none !important; }
.slide video::-webkit-media-controls-overlay-play-button { display: none !important; }
.slide video::-webkit-media-controls-seek-back-button { display: none !important; }
.slide video::-webkit-media-controls-seek-forward-button { display: none !important; }
.slide video::-webkit-media-controls-rewind-button { display: none !important; }
.slide video::-webkit-media-controls-return-to-realtime-button { display: none !important; }
.slide video::-webkit-media-controls-toggle-closed-captions-button { display: none !important; }

/* Pour Firefox */
.slide video::-moz-media-controls { display: none !important; }
/* Pour Edge/IE */
.slide video::-ms-media-controls { display: none !important; }
/* Pour Safari */
.slide video::-webkit-media-controls { display: none !important; }
