/* =========================================================================
   BARSOUM Voyages — Gabarits
   Images de remplacement · accueil · fiche d'offre · listes filtrables
   ========================================================================= */

/* ============================================ IMAGES DE REMPLACEMENT */
/* Tant que la photothèque n'est pas constituée, aucune page ne doit
   afficher un rectangle gris cassé. Ces fonds dégradés reprennent la
   charte et laissent le site présentable dès la mise en ligne. */

.bv-media--vide {
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--bv-bleu-700) 0%, var(--bv-bleu-800) 52%, var(--bv-or-600) 100%);
}
.bv-media--vide[data-univers="catholique"] {
  background: linear-gradient(150deg, var(--bv-bleu-700) 0%, var(--bv-bleu-800) 52%, #0D4E76 100%);
}
.bv-media--vide[data-univers="neutre"] {
  background: linear-gradient(150deg, var(--bv-bleu-800) 0%, #155E52 58%, var(--bv-or-600) 100%);
}
.bv-media--vide span {
  font-family: var(--police-titre);
  font-size: var(--fs-300);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  padding: 0 var(--sp-4);
  text-align: center;
}

/* ================================================= ACCUEIL — BANNIÈRE */

.bv-hero__volet::before { background-image: var(--photo, none); }

/* Sur téléphone, la bannière de bureau est quatre fois trop grande pour
   l'écran. On sert la déclinaison légère quand elle existe, et la grande
   à défaut — un gabarit qui n'écrirait que « --photo » continue de marcher. */
@media (max-width: 640px) {
  .bv-hero__volet::before { background-image: var(--photo-petite, var(--photo, none)); }
}
.bv-hero__volet--sans-photo::before {
  background: linear-gradient(168deg, var(--bv-bleu-700) 0%, var(--bv-bleu-800) 46%, #5C4620 100%);
}
.bv-hero__volet--catholique.bv-hero__volet--sans-photo::before {
  background: linear-gradient(192deg, var(--bv-bleu-700) 0%, var(--bv-bleu-800) 48%, #0D4E76 100%);
}
/* Trame verticale discrète : donne de la matière là où la photo manque. */
.bv-hero__volet--sans-photo::after {
  background:
    linear-gradient(180deg, rgba(7, 31, 54, .18) 0%, rgba(7, 31, 54, .52) 48%, rgba(7, 31, 54, .93) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .055) 0 2px, transparent 2px 68px);
}

/* ================================================ ACCUEIL — RUBRIQUES */

.bv-rubrique {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  color: var(--texte-inverse);
  text-decoration: none;
}
.bv-rubrique::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  /* Le repli, visible tant qu'aucune photo n'est déposée sur la carte.
     La photo, elle, est une vraie image posée par-dessus (voir plus bas) :
     c'est ce qui lui permet d'attendre qu'on approche d'elle avant de se
     télécharger. */
  background-color: var(--bv-bleu-800);
  background-image: linear-gradient(150deg, var(--bv-bleu-700), var(--bv-bleu-800) 55%, var(--bv-or-600));
  transition: transform var(--transition);
}

/* La photo de la carte : même place que le repli, juste au-dessus de lui,
   et toujours sous le voile sombre qui rend le texte lisible. */
.bv-rubrique__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.bv-rubrique:hover .bv-rubrique__photo { transform: scale(1.04); }
.bv-rubrique::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 31, 54, .12) 0%, rgba(7, 31, 54, .62) 55%, rgba(7, 31, 54, .93) 100%);
}
.bv-rubrique:hover::before { transform: scale(1.04); }
.bv-rubrique h3 { color: var(--texte-inverse); font-size: var(--fs-700); margin-bottom: var(--sp-2); }
.bv-rubrique p { color: rgba(255, 255, 255, .88); font-size: var(--fs-400); margin-bottom: var(--sp-4); }
.bv-rubrique__cta {
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: var(--fs-400);
  color: var(--bv-orange-500);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.bv-rubrique:hover .bv-rubrique__cta { gap: var(--sp-3); }

/* ================================================== ACCUEIL — TEKKET */

.bv-tekket { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--sp-7); align-items: center; }
.bv-tekket__visuel {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #123E67, #0B2E4F 60%, #7A5826);
  color: rgba(255, 255, 255, .75);
  font-family: var(--police-titre);
  font-size: var(--fs-300);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  text-align: center;
  padding: var(--sp-5);
}

/* Quand une vraie image remplace le dégradé : même cadre, même proportion,
   pas de déformation quel que soit le format du fichier déposé. */
.bv-tekket__visuel--photo {
  display: block;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: none;
}
.bv-tekket__visuel--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* =============================================== ACCUEIL — NEWSLETTER */

.bv-newsletter { background: var(--bv-or-100); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 3rem); }
.bv-interets { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: 0 0 var(--sp-4); padding: 0; }
.bv-interets label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  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;
}
.bv-interets input:checked + span { font-weight: 700; }

/* Rappel réservé aux administrateurs, jamais vu par un visiteur. */
.bv-note {
  margin: 0;
  padding: var(--sp-3) var(--sp-4);
  background: var(--bv-blanc);
  border-left: 3px solid var(--bv-orange-500);
  border-radius: var(--r-sm);
  font-size: var(--fs-400);
}



/* ================================================ ÉCHELLE DES TITRES */
/* fs-900 (jusqu'à 64 px) est calibré pour une bannière plein écran : un
   titre d'accueil ou de fiche d'offre, posé sur une photo. Sur une page
   intérieure — Contact, Guide du pèlerin, liste d'offres — le même corps
   écrase le contenu qu'il annonce. Ces pages descendent d'un cran. */
.bv-entete-section h1 { font-size: var(--fs-800); }

/* La bannière TEKKET occupe une demi-largeur : son titre suit la même règle
   que les pages intérieures, sinon il se brise en quatre lignes. */
.bv-tekket h1 { font-size: var(--fs-800); }

/* ====================================================== PAGE CONTACT */
/* Les coordonnées d'abord, le formulaire ensuite : sur téléphone, le
   visiteur qui veut appeler ne doit pas faire défiler un formulaire. */

.bv-contact {
  display: grid;
  gap: var(--sp-7);
  align-items: start;
}
@media (min-width: 860px) {
  .bv-contact { grid-template-columns: 1fr 1.1fr; gap: var(--sp-8); }
}

.bv-contact__bloc + .bv-contact__bloc { margin-top: var(--sp-6); }
.bv-contact__bloc h2 { font-size: var(--fs-700); margin-bottom: var(--sp-3); }
.bv-contact__bloc p { margin-bottom: var(--sp-3); }

.bv-contact__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.bv-contact__liste li { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); align-items: baseline; }
.bv-contact__liste span {
  min-width: 6.5rem;
  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-contact__liste a { color: var(--bv-azur-600); font-weight: 600; }

.bv-contact__formulaire {
  background: var(--surface-douce);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}
.bv-contact__formulaire h2 { font-size: var(--fs-700); margin-bottom: var(--sp-4); }

/* ========================================================= PAGE TEKKET */

.bv-tekket__principe {
  font-size: var(--fs-600);
  color: rgba(255, 255, 255, .92);
  max-width: 34ch;
  margin-bottom: 0;
}

/* Les sept projets du §15 : des pastilles, pas une liste à puces — on lit
   « Hajj, Oumrah, Rome… » d'un coup d'œil plutôt qu'en descendant. */
.bv-projets {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  margin: var(--sp-3) 0 0;
  padding: 0;
}
.bv-projets li {
  padding: var(--sp-1) var(--sp-3);
  background: var(--surface-douce);
  border-radius: var(--r-pill);
  font-size: var(--fs-300);
  font-family: var(--police-titre);
  font-weight: 600;
}

/* Le montant d'exemple : c'est le chiffre qui rend le principe concret. */
.bv-objectif { display: flex; flex-direction: column; gap: var(--sp-1); margin-top: var(--sp-3); }
.bv-objectif span {
  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-objectif strong {
  font-family: var(--police-titre);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  color: var(--bv-bleu-800);
  font-variant-numeric: tabular-nums;
}

.bv-texte-libre { max-width: 68ch; margin-top: var(--sp-7); }

/* ===================================================== FICHE D'OFFRE */

.bv-offre__banniere {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(280px, 42vw, 460px);
  padding: clamp(1.5rem, 4vw, 3.5rem) 0;
  color: var(--texte-inverse);
}
.bv-offre__banniere::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--photo, none);
  background-size: cover;
  background-position: center;
  background-color: var(--bv-bleu-800);
}
.bv-offre__banniere::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 31, 54, .35) 0%, rgba(7, 31, 54, .68) 50%, rgba(7, 31, 54, .94) 100%);
}
.bv-offre__banniere h1 { color: var(--texte-inverse); margin-bottom: var(--sp-3); }
.bv-offre__banniere .bv-eyebrow { color: var(--bv-orange-500); }
.bv-offre__accroche { font-size: var(--fs-600); color: rgba(255, 255, 255, .92); max-width: 46ch; }
.bv-offre__badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-4); }

.bv-offre__corps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
@media (max-width: 980px) { .bv-offre__corps { grid-template-columns: 1fr; } }

.bv-offre__bloc { margin-bottom: var(--sp-7); }
.bv-offre__bloc h2 { font-size: var(--fs-700); margin-bottom: var(--sp-4); }

/* Faits clés : une grille lisible en un coup d'œil, pas un tableau. */
.bv-faits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: var(--sp-4);
  list-style: none;
  margin: 0 0 var(--sp-7);
  padding: var(--sp-5);
  background: var(--surface-alt);
  border-radius: var(--r-md);
}
.bv-faits dt {
  font-family: var(--police-titre);
  font-size: var(--fs-300);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--texte-doux);
  margin-bottom: var(--sp-1);
}
.bv-faits dd { margin: 0; font-weight: 600; }

/* Programme : accordéon natif, aucun JavaScript. */
.bv-jour { border-bottom: 1px solid var(--bordure); }
.bv-jour summary {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--police-titre);
  font-weight: 700;
}
.bv-jour summary::-webkit-details-marker { display: none; }
.bv-jour__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bv-bleu-800);
  color: var(--texte-inverse);
  font-size: var(--fs-400);
  font-variant-numeric: tabular-nums;
}
.bv-jour[open] .bv-jour__num { background: var(--bv-orange-500); color: var(--bv-noir); }
.bv-jour__contenu { padding: 0 0 var(--sp-5) calc(42px + var(--sp-4)); }

/* Inclus / non inclus */
.bv-listes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--sp-5); }
.bv-liste-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.bv-liste-check li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.bv-liste-check li::before { content: "✓"; color: var(--bv-succes); font-weight: 700; flex: none; }
.bv-liste-check--non li::before { content: "✕"; color: var(--bv-erreur); }

/* Galerie */
.bv-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: var(--sp-3); }
.bv-galerie img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); width: 100%; }

/* --------------------------------------------- COLONNE DE RÉSERVATION */
/* Les quatre boutons permanents du §18 restent à portée de pouce
   pendant toute la lecture de la fiche. */

.bv-reservation {
  position: sticky;
  top: calc(78px + var(--sp-4));
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-top: 4px solid var(--bv-orange-500);
  border-radius: var(--r-lg);
  box-shadow: var(--ombre-carte);
}
.bv-reservation__prix { display: flex; flex-direction: column; gap: var(--sp-1); }
.bv-reservation__prix .bv-prix__montant { font-size: 1.5rem; line-height: 1.15; }
.bv-reservation__actions { display: flex; flex-direction: column; gap: var(--sp-2); }
.bv-reservation__actions .bv-btn { width: 100%; }

/* Le contact WhatsApp contextuel : un lien sous les deux actions
   principales, pour ne pas concurrencer la bulle flottante. */
.bv-lien-wa {
  display: inline-block;
  margin-top: var(--sp-1);
  font-family: var(--police-titre);
  font-size: var(--fs-400);
  font-weight: 600;
  color: var(--bv-azur-600);
  text-align: center;
}
.bv-reservation__departs { display: flex; flex-direction: column; gap: var(--sp-2); }
.bv-reservation__depart {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--surface-alt);
  border-radius: var(--r-sm);
  font-size: var(--fs-400);
}
.bv-reservation__depart b { font-variant-numeric: tabular-nums; }

@media (max-width: 980px) { .bv-reservation { position: static; } }

/* ========================================== LISTES ET FILTRES D'OFFRES */

.bv-filtres {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--bordure);
}
.bv-filtre {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--bordure-forte);
  border-radius: var(--r-pill);
  font-family: var(--police-titre);
  font-size: var(--fs-400);
  font-weight: 600;
  color: var(--texte);
  text-decoration: none;
}
.bv-filtre:hover { border-color: var(--bv-bleu-800); color: var(--bv-bleu-800); }
.bv-filtre[aria-current="page"] { background: var(--bv-bleu-800); border-color: var(--bv-bleu-800); color: var(--texte-inverse); }

.bv-vide {
  padding: var(--sp-7) var(--sp-5);
  text-align: center;
  background: var(--surface-alt);
  border-radius: var(--r-lg);
}
.bv-vide p { margin-inline: auto; }

/* Pagination native de WordPress */
.pagination { display: flex; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-7); }
.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--bordure);
  border-radius: var(--r-sm);
  text-decoration: none;
  font-family: var(--police-titre);
  font-weight: 600;
  color: var(--texte);
}
.pagination .page-numbers.current { background: var(--bv-bleu-800); border-color: var(--bv-bleu-800); color: var(--texte-inverse); }

/* ===================================================== PAGE ILLUSTRÉE */
/* Deux colonnes quand une image est choisie, une seule sinon. L'image est
   collante sur grand écran : elle accompagne le regard pendant que le
   visiteur descend dans un formulaire long, au lieu de disparaître au
   deuxième champ. */

.bv-page { display: grid; gap: var(--sp-6); align-items: start; }

@media (min-width: 900px) {
  .bv-page--illustree { grid-template-columns: 0.85fr 1fr; gap: var(--sp-8); }
  .bv-page--image-droite .bv-page__illustration { order: 2; }
  .bv-page--illustree .bv-page__illustration { position: sticky; top: calc(78px + var(--sp-4)); }
}

.bv-page__illustration { margin: 0; }
.bv-page__illustration img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-lg);
}
.bv-page__illustration figcaption {
  margin-top: var(--sp-3);
  font-size: var(--fs-400);
  color: var(--texte-doux);
}

/* Sur téléphone, la photo passe au-dessus du formulaire et se fait plus
   basse : elle illustre sans repousser les champs sous la ligne de flottaison. */
@media (max-width: 899px) {
  .bv-page__illustration img { aspect-ratio: 16 / 9; }
}
