/* Page d'accueil (14/09/2026) — maquette validée, version 27.
   La barre de recherche est le composant du site (includes/barre-recherche.php) :
   navbar.css la pose en position:fixed sous la navbar ; ici elle vit DANS la
   photo, en flux. Les règles ci-dessous ne touchent que la page d'accueil
   (body.btb-accueil). */

/* Le corps ne réserve que la navbar : la barre n'est plus fixée. */
@media (min-width: 1024px) {
  /* Exactement la hauteur de la navbar : les 8 px de marge du site laissaient un liseré clair entre la barre et la photo (btob, 14/09). */
  body.btb-accueil, body.btb-accueil:has(.btb-rech-rang) { padding-top: var(--btb-hauteur-navbar) !important; }
}
@media (max-width: 1023px) {
  body.btb-accueil, body.btb-accueil:has(.btb-rech-rang) { padding-top: var(--btb-h-entete-mobile, 52px) !important; }
}

/* ── La photo ────────────────────────────────────────────────────────────── */
.btb-accueil-hero { position: relative; isolation: isolate; color: #fff; overflow: visible; margin-top: 0; background: #10131B; }
.btb-accueil-photo {
  position: absolute; inset: 0; z-index: -2;
  background: var(--btb-fond) center / cover no-repeat, #3c2513;
}
.btb-accueil-photo::before {   /* la teinte, réglée dans le panneau */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--btb-fond-teinte, #10131B); opacity: var(--btb-fond-force, 0); mix-blend-mode: multiply;
}
.btb-accueil-photo::after {    /* l'assombrissement, pour la lisibilité du texte */
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0) 45%, rgba(0,0,0,.35)), rgba(0,0,0,var(--btb-fond-assombrir, .35));
}
.btb-accueil-int { max-width: 1400px; margin: 0 auto; padding: 44px 24px 40px; display: grid; gap: 36px; }
.btb-accueil-titre { display: grid; gap: 6px; }
.btb-accueil-hero h1 {
  margin: 0; font-size: clamp(26px, 3.3vw, 46px); font-weight: 900; line-height: 1.12; letter-spacing: -.01em;
  text-shadow: 0 3px 22px rgba(0,0,0,.45); text-wrap: balance;
}
.btb-accueil-sous { margin: 0; font-size: clamp(15px, 1.35vw, 20px); font-weight: 600; color: #eef1f6; text-shadow: 0 2px 14px rgba(0,0,0,.5); }

/* ── La barre du site, dans la photo ─────────────────────────────────────── */
.btb-accueil-hero .btb-rech-rang { position: relative !important; top: auto !important; background: transparent !important; padding: 0 !important; z-index: 20; }
.btb-accueil-hero .btb-rech { max-width: none; box-shadow: 0 14px 44px rgba(0,0,0,.35); }
.btb-accueil-hero .btb-rech-go { background: #7CC242; color: #0f1a08; font-weight: 800; }
.btb-accueil-hero .btb-rech-go:hover { background: #8fd455; }
.btb-accueil-hero .btb-rech-sug { left: 0; width: 100%; max-width: none; color: #141a24; border-radius: 18px; margin-top: 10px; max-height: 440px; box-shadow: 0 14px 44px rgba(0,0,0,.35); }
.btb-accueil-hero .btb-sug-lbl { font-size: 14px; }
.btb-accueil-hero .btb-sug-sub { font-size: 12px; }
.btb-accueil-hero .btb-sug-item { padding: 9px 14px; }
.btb-accueil-hero .btb-sug-sec { padding: 8px 14px 4px; font-size: 11px; }
.btb-accueil-hero .btb-ou-volet { color: #141a24; }
/* Sur téléphone, les règles du site (navbar.css, une seule ligne) s'appliquent
   telles quelles ; les tailles ci-dessous sont pour l'écran d'ordinateur. */
@media (min-width: 1024px) {
  .btb-accueil-hero .btb-rech { min-height: 72px; border-radius: 999px; }
  .btb-accueil-hero .btb-rech-champ { font-size: 22px; padding: 18px 20px; }
  .btb-accueil-hero .btb-rech-ico { font-size: 18px; padding-left: 22px; }
  .btb-accueil-hero .btb-rech-go { font-size: 18px; padding: 0 36px; }
}

/* ── Les 18 catégories ───────────────────────────────────────────────────── */
.btb-accueil-cats {
  display: flex; gap: 6px; list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scrollbar-width: none; justify-content: space-between;
}
.btb-accueil-cats::-webkit-scrollbar { display: none; }
.btb-accueil-cats li { flex: 0 0 auto; }
.btb-accueil-cats a {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: clamp(70px, 6.6vw, 92px); padding: 8px 4px 6px; border-radius: 12px;
  text-decoration: none; color: #fff; font-weight: 700; font-size: 11.5px; text-align: center; line-height: 1.15;
  text-shadow: 0 1px 8px rgba(0,0,0,.5); transition: background .15s, transform .15s;
}
.btb-accueil-cats a:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.btb-accueil-cats a:focus-visible { outline: 3px solid #7CC242; outline-offset: 2px; }
.btb-accueil-cats svg {
  width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.5));
}
@media (max-width: 1023px) {
  .btb-accueil-int { padding: 14px 16px 16px; gap: 14px; }
  .btb-accueil-hero h1 { font-size: 20px; line-height: 1.22; }
  .btb-accueil-sous { font-size: 14.5px; }
  .btb-accueil-cats { justify-content: flex-start; gap: 2px; margin-inline: -16px; padding-inline: 16px; }
  .btb-accueil-cats a { width: 74px; font-size: 11px; padding: 6px 2px 4px; }
  .btb-accueil-cats svg { width: 24px; height: 24px; }
}

/* ── Les liens du pied (référencement) ───────────────────────────────────── */
.btb-accueil-liens { background: #10131B; color: #cdd3dd; font-size: 14.5px; }
.btb-accueil-liens-int {
  max-width: 1400px; margin: 0 auto; padding: 40px 24px 24px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px;
}
.btb-accueil-liens h2 { margin: 0 0 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #fff; font-weight: 900; }
.btb-accueil-liens ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.btb-accueil-liens a { color: inherit; text-decoration: none; }
.btb-accueil-liens a:hover { color: #fff; text-decoration: underline; }
.btb-accueil-app {
  margin-top: 16px; display: flex; align-items: center; gap: 12px;
  border: 1px solid rgba(255,255,255,.25); border-radius: 14px; padding: 10px 14px; color: #fff;
}
.btb-accueil-app:hover { background: rgba(255,255,255,.08); text-decoration: none !important; }
.btb-accueil-app svg { width: 30px; height: 30px; fill: none; stroke: #7CC242; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.btb-accueil-app b { display: block; font-weight: 800; }
.btb-accueil-app small { display: block; font-size: 12.5px; color: #cdd3dd; }
@media (max-width: 1100px) { .btb-accueil-liens-int { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .btb-accueil-liens-int { grid-template-columns: repeat(2, 1fr); padding: 28px 16px 18px; } }
