/* La Fontaine Bleue — compléments pour le site en plusieurs pages */

/* En-tête des pages intérieures */
.page-hero { padding-top: 132px; padding-bottom: 3.5rem; }
.page-hero .lead { color: rgba(255,255,255,.85); }
.navbar .nav-link.active { color: #fff; font-weight: 600; box-shadow: inset 0 -2px 0 var(--fb-gold); }

/* Photo de la bonbonne dans l'accueil */
.hero-photo { position: relative; margin-top: 1.5rem; max-width: 330px; border-radius: 1.5rem; overflow: hidden;
  box-shadow: 0 0 0 6px rgba(255,255,255,.14), 0 30px 50px rgba(0,0,0,.45); }
.hero-photo img { display: block; width: 100%; height: auto; }
.offer-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

/* Cartes simples */
.who-card, .step-card { background: #fff; border: 1px solid var(--grid); border-radius: 1.25rem; padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(18,25,90,.06); }
.who-card h3, .step-card h3 { color: var(--fb-navy); }
.step-card { position: relative; padding-top: 2.75rem; }
.step-num { position: absolute; top: -1.1rem; left: 1.5rem; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--fb-gold); color: var(--fb-navy); font-weight: 800; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(201,163,74,.4); }

/* Disponibilité des formats */
.badge-dispo { background: #17804a; color: #fff; }
.badge-indispo { background: #e9ecf5; color: #4a5272; border: 1px solid #cfd6e8; }
.format-card { background: #fff; border-radius: 1.25rem; overflow: hidden; box-shadow: 0 10px 30px rgba(18,25,90,.08); }
.format-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.format-card.is-off img { filter: grayscale(.85); opacity: .7; }
.format-card.is-off h3 { color: var(--muted); }
.notice { background: #fff8e6; border: 1px solid #ecd9a4; border-left: 4px solid var(--fb-gold); border-radius: .75rem;
  padding: 1rem 1.25rem; color: var(--ink); }

/* Pied de page */
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }

/* Formulaire de devis */
#form-devis .form-label { font-weight: 500; }
#form-devis .req { color: #b3261e; }
#form-devis .field-help { font-size: .85rem; color: var(--muted); margin: .25rem 0 0; }
#form-devis .field-error { display: none; font-size: .875rem; color: #b3261e; margin: .25rem 0 0; }
#form-devis .has-error .field-error { display: block; }
#form-devis button[disabled] { opacity: .65; }
#devis-merci:focus { outline: none; }

@media (max-width: 575.98px) {
  .page-hero { padding-top: 110px; padding-bottom: 2.5rem; }
  .hero-photo { max-width: 240px; }
}

.offer-cooler .cooler-stage { height: 100%; display: flex; align-items: center; }
.offer-cooler .cooler-svg { height: 270px; width: auto; }
/* Écrans bas (téléphone à l'horizontale, petite tablette) : le premier écran montre le titre, la photo et les boutons */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { padding-top: 70px; }
  .min-vh-hero { min-height: 0; padding-bottom: 1rem; }
  .min-vh-hero > .col-lg-7 { flex: 0 0 auto; width: 62%; text-align: left !important; }
  .min-vh-hero > .col-lg-5 { flex: 0 0 auto; width: 38%; }
  .min-vh-hero > .col-lg-7 .justify-content-center { justify-content: flex-start !important; }
  .min-vh-hero .flex-sm-row { flex-direction: row !important; }
  #accueil h1 { font-size: clamp(1.3rem, 3.4vw, 2rem); margin-bottom: .5rem !important; }
  #accueil h1 br { display: none; }
  #accueil h1 .text-shimmer { margin-left: .25em; }
  #accueil .lead { font-size: .85rem; margin-bottom: .75rem !important; }
  #accueil .eyebrow { font-size: .7rem; }
  #accueil .btn-lg { padding: .5rem 1rem; font-size: .95rem; white-space: nowrap; }
  .min-vh-hero .flex-sm-row { gap: .6rem !important; }
  .hero-photo { margin-top: 0; max-width: none; max-height: 68vh; width: auto; display: inline-block; }
  .hero-photo img { max-height: 68vh; width: auto; }
  .page-hero { padding-top: 84px; padding-bottom: 1.75rem; }
  .page-hero h1 { font-size: clamp(1.5rem, 4.2vw, 2.3rem); }
  .wa-float { padding: .5rem .9rem; font-size: .9rem; }
}
@media (max-height: 560px) and (orientation: landscape) and (max-width: 820px) {
  /* Petit écran : le bouton WhatsApp flottant suffit, le second bouton du haut déborderait sur la photo */
  #accueil .min-vh-hero .dropdown { display: none; }
}

/* Menu sur ordinateur : toujours sur une ligne, jamais coupé */
#menu .nav-link { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199.98px) {
  #nav .navbar-brand span { display: none; }
  #menu .navbar-nav { gap: 0 !important; }
  #menu .nav-link { font-size: .92rem; padding-left: .5rem !important; padding-right: .5rem !important; }
  #menu .btn-gold { font-size: .9rem; padding: .4rem .8rem; white-space: nowrap; }
  #menu .nav-item.ms-lg-2 { margin-left: .35rem !important; }
}

/* Photo de la bonbonne sur fond blanc (accueil et page Bonbonnes) */
.hero-photo.hd { background: #fff; max-width: 300px; }
.hero-photo.hd img { max-height: min(62vh, 560px); width: auto; max-width: 100%; margin: 0 auto; }
.bonbonne-photo.hd { background: #fff; }
.bonbonne-photo.hd img { max-height: 520px; width: auto; max-width: 100%; margin: 0 auto; display: block; }

/* Menu : tailles fixes en pixels, pour qu'il tienne aussi quand le navigateur grossit le texte */
@media (min-width: 992px) and (max-width: 1399.98px) {
  #menu .navbar-nav { gap: 0 !important; }
  #menu .nav-link { font-size: 15px; padding-left: 8px !important; padding-right: 8px !important; }
  #menu .btn-gold { font-size: 14.5px; padding: 6px 13px; white-space: nowrap; }
  #menu .nav-item.ms-lg-2 { margin-left: 6px !important; }
  #nav .navbar-brand span { font-size: 18px; }
}
