/* =========================================================================
   BARSOUM Voyages — Composants
   Boutons · badges · carte offre · ligne de départ · bannière deux univers
   · étapes TEKKET · témoignage · WhatsApp flottant
   ========================================================================= */

/* ================================================================ BOUTONS */

.bv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--police-titre);
  font-size: var(--fs-400);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.1;
  /* 44 px de haut minimum : c'est le seuil de confort tactile retenu par les
     règles d'accessibilité (WCAG 2.5.5). Au-delà, on ne gagne pas en facilité
     de clic, on perd en densité — trois boutons empilés occupaient la moitié
     du panneau de réservation. */
  min-height: 44px;
  padding: 0.6rem var(--sp-4);
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}

.bv-btn:active { transform: translateY(1px); }

/* Action principale — « Se préinscrire », « Demander un devis ». */
.bv-btn--primaire {
  background: var(--action-fond);
  color: var(--action-texte);
}
.bv-btn--primaire:hover { background: var(--action-fond-survol); color: var(--action-texte); }

/* Action secondaire — « Découvrir l'offre ». */
.bv-btn--secondaire {
  background: var(--bv-bleu-800);
  color: var(--texte-inverse);
}
.bv-btn--secondaire:hover { background: var(--bv-bleu-700); color: var(--texte-inverse); }

/* Action tertiaire sur fond clair. */
.bv-btn--contour {
  background: transparent;
  color: var(--bv-bleu-800);
  border-color: var(--bv-bleu-800);
}
.bv-btn--contour:hover { background: var(--bv-bleu-800); color: var(--texte-inverse); }

/* Sur les sections bleues et les surimpressions photo. */
.bv-btn--clair {
  background: var(--bv-blanc);
  color: var(--bv-bleu-800);
}
.bv-btn--clair:hover { background: var(--bv-gris-100); }

.bv-btn--contour-clair {
  background: transparent;
  color: var(--bv-blanc);
  border-color: rgba(255, 255, 255, 0.65);
}
.bv-btn--contour-clair:hover { background: rgba(255, 255, 255, 0.14); color: var(--bv-blanc); }

.bv-btn--whatsapp {
  background: var(--bv-whatsapp);
  color: var(--bv-noir);
}
.bv-btn--whatsapp:hover { background: #1FBA59; color: var(--bv-noir); }

.bv-btn--large { font-size: var(--fs-500); min-height: 50px; padding-inline: var(--sp-5); }
.bv-btn--pleine { width: 100%; }

/* ================================================================= BADGES */

.bv-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--police-titre);
  font-size: var(--fs-300);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.4rem 0.7rem;
  border-radius: var(--r-sm);
  white-space: nowrap;
}

.bv-badge--une      { background: var(--bv-or-500);     color: var(--bv-blanc); }
.bv-badge--dernieres{ background: var(--bv-orange-500); color: var(--bv-noir); }
.bv-badge--complet  { background: var(--bv-gris-600);   color: var(--bv-blanc); }
.bv-badge--promo    { background: var(--bv-bleu-800);   color: var(--bv-blanc); }
.bv-badge--ouvert   { background: var(--bv-succes);     color: var(--bv-blanc); }
.bv-badge--tekket   { background: var(--bv-or-100);     color: var(--bv-or-600); }

/* =========================================================== CARTE OFFRE */

.bv-carte {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.bv-carte:hover { box-shadow: var(--ombre-relief); transform: translateY(-3px); }

.bv-carte__media { position: relative; aspect-ratio: 4 / 3; background: var(--bv-bleu-100); }
.bv-carte__media img { width: 100%; height: 100%; object-fit: cover; }

.bv-carte__badges {
  position: absolute;
  inset: var(--sp-3) var(--sp-3) auto var(--sp-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.bv-carte__corps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  flex: 1;
}

.bv-carte__titre { font-size: var(--fs-700); margin: 0; }
.bv-carte__titre a { color: inherit; text-decoration: none; }
.bv-carte__titre a:hover { color: var(--bv-azur-600); }

.bv-carte__texte { color: var(--texte-doux); font-size: var(--fs-400); margin: 0; }

/* Ligne de méta : durée · destination · hébergement */
.bv-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  font-size: var(--fs-300);
  color: var(--texte-doux);
  margin: 0;
  padding: 0;
  list-style: none;
}
.bv-meta li { display: flex; align-items: center; gap: var(--sp-1); }

/* Le prix ferme la carte : posé sur un filet, jamais dans le flux du texte. */
.bv-carte__pied {
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--bordure);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.bv-prix { display: flex; flex-direction: column; gap: 2px; }
.bv-prix__montant {
  font-family: var(--police-titre);
  font-size: var(--fs-600);
  font-weight: 800;
  color: var(--bv-bleu-800);
  font-variant-numeric: tabular-nums;
}
.bv-prix__mention {
  font-family: var(--police-titre);
  font-size: var(--fs-300);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--texte-doux);
}
.bv-prix__ancien {
  font-size: var(--fs-400);
  color: var(--texte-doux);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

/* ========================================================= LIGNE DE DÉPART */
/* Section « Nos prochains départs » (§6.2) et pages « Nos départs ». */

.bv-depart {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-left: 4px solid var(--bv-or-500);
  border-radius: var(--r-md);
}
.bv-depart--catholique { border-left-color: var(--bv-azur-500); }
.bv-depart--complet { opacity: 0.65; border-left-color: var(--bv-gris-400); }

.bv-depart__date {
  display: grid;
  place-items: center;
  gap: 0;
  min-width: 72px;
  padding: var(--sp-2);
  background: var(--bv-bleu-800);
  color: var(--texte-inverse);
  border-radius: var(--r-md);
  font-family: var(--police-titre);
  line-height: 1.05;
}
.bv-depart__jour { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.bv-depart__mois { font-size: var(--fs-300); text-transform: uppercase; letter-spacing: 0.08em; }
.bv-depart__annee { font-size: var(--fs-300); color: var(--texte-inverse-doux); }

.bv-depart__infos { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.bv-depart__titre { font-family: var(--police-titre); font-weight: 700; font-size: var(--fs-600); margin: 0; }
.bv-depart__titre a { color: inherit; text-decoration: none; }

.bv-depart__actions { display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-2); }

@media (max-width: 720px) {
  .bv-depart { grid-template-columns: auto 1fr; }
  .bv-depart__actions { grid-column: 1 / -1; align-items: stretch; }
  .bv-depart__actions .bv-btn { width: 100%; }
}

/* ================================================ BANNIÈRE DEUX UNIVERS */
/* §5 : un seul bleu de fond pour les deux côtés, l'accent seul les distingue. */

.bv-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: min(78vh, 660px); }

.bv-hero__volet {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--sp-4);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  overflow: hidden;
  isolation: isolate;
  color: var(--texte-inverse);
}

.bv-hero__volet::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}

/* Surimpression : la photo reste lisible, le texte garde 7:1 de contraste. */
.bv-hero__volet::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 31, 54, 0.25) 0%, rgba(7, 31, 54, 0.55) 45%, rgba(7, 31, 54, 0.92) 100%);
  z-index: -1;
}

/* Le filet d'accent est la seule marque distinctive de chaque univers. */
.bv-hero__volet--musulman { border-bottom: 6px solid var(--bv-or-500); }
.bv-hero__volet--catholique { border-bottom: 6px solid var(--bv-azur-500); }

.bv-hero__titre { font-size: var(--fs-800); color: var(--texte-inverse); margin: 0; }
.bv-hero__accroche { font-size: var(--fs-600); color: rgba(255, 255, 255, 0.92); margin: 0; max-width: 34ch; }

@media (max-width: 800px) {
  .bv-hero { grid-template-columns: 1fr; min-height: 0; }
  .bv-hero__volet { min-height: 58vw; justify-content: flex-end; }
}

/* ========================================================= ÉTAPES TEKKET */
/* La numérotation est portée par le contenu : le §15 décrit une séquence. */

.bv-etapes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--sp-5);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: etape;
}

/* La pastille est posée en absolu : la réserve au-dessus du titre doit valoir
   sa hauteur PLUS un espace, sinon le titre lui passe dessus. Les deux
   dérivent de la même variable, impossible qu'elles se désynchronisent. */
.bv-etape {
  --puce: 2.5rem;
  position: relative;
  padding-top: calc(var(--puce) + var(--sp-3));
  counter-increment: etape;
}

.bv-etape::before {
  content: counter(etape);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: var(--puce);
  height: var(--puce);
  border-radius: 50%;
  background: var(--bv-orange-500);
  color: var(--bv-noir);
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: var(--fs-500);
}

.bv-etape h3 { font-size: var(--fs-600); margin-bottom: var(--sp-2); }

/* ============================================================ TÉMOIGNAGE */

.bv-temoignage {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--surface);
  border-radius: var(--r-lg);
  border-top: 4px solid var(--bv-or-500);
  box-shadow: var(--ombre-carte);
}
.bv-temoignage blockquote { margin: 0; font-size: var(--fs-500); }
.bv-temoignage__auteur { display: flex; align-items: center; gap: var(--sp-3); margin-top: auto; }
.bv-temoignage__auteur img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.bv-temoignage__nom { font-family: var(--police-titre); font-weight: 700; }
.bv-temoignage__lieu { font-size: var(--fs-300); color: var(--texte-doux); }
.bv-etoiles { color: var(--bv-orange-600); letter-spacing: 0.1em; }

/* ==================================================== WHATSAPP FLOTTANT */
/* §23 : visible en permanence, ordinateur et mobile. */

.bv-whatsapp {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  display: flex;
  align-items: center;
  /* Pas d'écart entre l'icône et le libellé au repos : le libellé est replié
     à zéro, mais l'écart flex, lui, subsistait et ajoutait 12 px à droite —
     la pastille n'était donc pas ronde, elle penchait vers la gauche.
     L'espace est rendu par le libellé lui-même quand il se déplie. */
  gap: 0;
  padding: var(--sp-3);
  background: var(--bv-whatsapp);
  color: var(--bv-noir);
  border-radius: var(--r-pill);
  text-decoration: none;
  box-shadow: var(--ombre-relief);
  transition: padding var(--transition);
}
.bv-whatsapp svg { width: 30px; height: 30px; flex: none; }
.bv-whatsapp__texte {
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: var(--fs-400);
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width var(--transition), padding var(--transition);
}
.bv-whatsapp:hover .bv-whatsapp__texte,
.bv-whatsapp:focus-visible .bv-whatsapp__texte { max-width: 16rem; padding: 0 var(--sp-2) 0 var(--sp-3); }

/* Sur mobile, la pastille reste compacte pour ne pas masquer le contenu. */
@media (max-width: 640px) {
  .bv-whatsapp__texte { display: none; }
}

/* ============================================================ FORMULAIRES */

.bv-champ { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.bv-champ label { font-family: var(--police-titre); font-weight: 600; font-size: var(--fs-400); }
.bv-champ input,
.bv-champ select,
.bv-champ textarea {
  font-family: var(--police-texte);
  font-size: var(--fs-500);
  /* 16px minimum : en dessous, Safari iOS zoome automatiquement sur le champ. */
  min-height: 48px;
  padding: var(--sp-3);
  border: 1px solid var(--bordure-forte);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--texte);
}
.bv-champ input:focus-visible,
.bv-champ select:focus-visible,
.bv-champ textarea:focus-visible { border-color: var(--bv-azur-500); }
.bv-champ__aide { font-size: var(--fs-300); color: var(--texte-doux); }
.bv-champ--requis label::after { content: " *"; color: var(--bv-erreur); }

/* ================================================== FORMULAIRES (Fluent) */
/* Habillage unique pour les cinq formulaires du site. Il était auparavant
   recopié dans chaque bloc qui en affichait un — trois copies à maintenir,
   donc trois occasions de diverger. Une seule règle désormais.
   La largeur est bornée : un champ de 1200 px de long pour saisir un prénom
   ne se lit pas, et fait paraître le formulaire interminable. */

.fluentform { max-width: 42rem; }
.fluentform .ff-el-group { margin-bottom: var(--sp-4); }
.fluentform .ff-el-input--label label {
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: var(--fs-400);
  color: var(--texte);
}
.fluentform .ff-el-form-control {
  width: 100%;
  min-height: 46px;
  padding: var(--sp-2) var(--sp-3);
  font: inherit;
  color: var(--texte);
  background: var(--bv-blanc);
  border: 1px solid var(--bordure-forte);
  border-radius: var(--r-sm);
}
.fluentform .ff-el-form-control:focus { outline: 2px solid var(--bv-azur-600); outline-offset: 1px; }
.fluentform textarea.ff-el-form-control { min-height: 7rem; }

/* Cases à cocher en pastilles : plus lisibles au pouce qu'une colonne de
   petites cases, et plus compactes. */
.fluentform .ff-el-form-check { display: inline-block; margin: 0 var(--sp-2) var(--sp-2) 0; }
.fluentform .ff-el-form-check-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  margin: 0;
  padding: var(--sp-2) var(--sp-4);
  background: var(--bv-blanc);
  border: 1px solid var(--bordure-forte);
  border-radius: var(--r-pill);
  font-size: var(--fs-400);
  cursor: pointer;
}

/* Fluent Forms écrit la couleur de son bouton dans une règle portée par
   l'identifiant du formulaire — plus spécifique que tout sélecteur de classe.
   Seul endroit du thème où « !important » est justifié. */
.fluentform .ff-btn-submit {
  background: var(--action-fond) !important;
  color: var(--action-texte) !important;
  border-color: var(--action-fond) !important;
  min-height: 50px;
  padding-inline: var(--sp-5);
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: var(--fs-400);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.fluentform .ff-btn-submit:hover { filter: brightness(0.95); }

/* Dans un bloc déjà encadré (newsletter, colonne de page), le formulaire
   occupe toute la largeur qu'on lui donne. */
.bv-newsletter .fluentform,
.bv-contact__formulaire .fluentform,
.bv-page--illustree .bv-page__contenu .fluentform { max-width: none; }
