/* Chantier « Nos agences » — 18/11/2026.
   Bandeau Paris / Lille en haut de page (dans l'en-tête fixe) + pied de page « Nos agences ».
   Couleurs et typographie : uniquement les variables de style.css. */

:root { --bandeau-h: 36px; }

/* L'en-tête fixe grandit de la hauteur du bandeau : on décale la page d'autant. */
body { padding-top: var(--bandeau-h); }
html { scroll-padding-top: calc(80px + var(--bandeau-h)); }

/* ----- Bandeau ----- */
.bandeau-agences {
  background: var(--secondary);
  color: var(--gray-400);
  font-size: 0.8rem;
  line-height: 1;
}
.header .bandeau-agences .container {
  height: var(--bandeau-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.bandeau-agences p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.bandeau-certif i { color: var(--primary-light); }
.bandeau-lignes { gap: 16px; }
.bandeau-lignes a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.bandeau-lignes a:hover { color: var(--primary-light); }
.bandeau-zone { color: var(--gray-400); font-weight: 500; }
.bandeau-lignes a:hover .bandeau-zone { color: inherit; }
.bandeau-sep { width: 1px; height: 14px; background: rgba(255,255,255,0.2); }
.bandeau-lignes a i { display: none; }
.bandeau-txt { display: inline-flex; align-items: center; gap: 8px; }
.z-court { display: none; }

@media (max-width: 1199px) {
  .bandeau-agences .bandeau-certif { display: none; }
  .header .bandeau-agences .container { justify-content: center; }
}

/* ===== TÉLÉPHONE (≤ 768 px) ===== */
@media (max-width: 768px) {
  /* Bandeau en deux boutons d'appel (même famille que « Assistance gratuite » / « Devis Gratuit »),
     en-tête ramené de 80 à 64 px pour ne pas manger l'écran. */
  :root { --bandeau-h: 56px; --entete-h: 64px; }
  body { padding-top: calc(var(--bandeau-h) + var(--entete-h) - 80px); }
  html { scroll-padding-top: calc(var(--bandeau-h) + var(--entete-h)); }
  .header .container { height: var(--entete-h); }
  .logo img { height: 44px; }
  .nav.active {
    top: calc(var(--bandeau-h) + var(--entete-h));
    max-height: calc(100vh - var(--bandeau-h) - var(--entete-h));
  }

  .header .bandeau-agences .container { padding: 0 12px; }
  .bandeau-agences .bandeau-lignes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .bandeau-sep { display: none; }
  .bandeau-lignes a {
    height: 44px;
    justify-content: center;
    gap: 9px;
    padding: 0 10px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
  }
  .bandeau-lignes a:first-child {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
  }
  .bandeau-lignes a:last-child { background: var(--white); color: var(--primary-dark); }
  .bandeau-lignes a:hover, .bandeau-lignes a:active { color: inherit; filter: brightness(1.05); }
  .bandeau-lignes a:last-child:hover { color: var(--primary-dark); }
  .bandeau-lignes a i { display: inline-block; font-size: 15px; }
  .bandeau-txt { flex-direction: column; align-items: flex-start; gap: 2px; line-height: 1.05; }
  .bandeau-zone, .bandeau-lignes a:hover .bandeau-zone {
    color: inherit;
    opacity: 0.9;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
  }
  .z-long { display: none; }
  .z-court { display: inline; }
  .bandeau-num { font-size: clamp(14px, 4.1vw, 16px); font-weight: 800; white-space: nowrap; }

  /* Accueil, « Pourquoi nous choisir » : débordait de 14 px en largeur sur les téléphones de 360 px (défaut antérieur). */
  .why-choose .container { grid-template-columns: minmax(0, 1fr); }
  .why-choose .container > * { min-width: 0; }
  .why-choose-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-choose-images img { max-width: 100%; }
  .why-feature { display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; align-items: start; }
  .why-feature .why-icon { grid-row: span 2; }
  .why-feature h3, .why-feature p { grid-column: 2; margin: 0; }

  /* Formulaires : 16 px minimum, sinon l'iPhone zoome tout seul à chaque champ touché. */
  html body .hero-form .hf-group input,
  html body .hero-form .hf-group select,
  html body .hero-form .hf-group textarea { font-size: 16px; }

  /* Accueil : les deux boutons (devis + numéro) remontent juste sous le titre, le texte passe dessous. */
  .page-accueil .hero-content { display: flex; flex-direction: column; align-items: flex-start; }
  .page-accueil .hero-badge { order: 1; margin-bottom: 16px; }
  .page-accueil .hero h1 { order: 2; margin-bottom: 18px; }
  .page-accueil .hero-actions { order: 3; width: 100%; gap: 10px; margin-bottom: 22px; }
  .page-accueil .hero-actions .btn-lg { padding-top: 15px; padding-bottom: 15px; }
  .page-accueil .hero-content > p { order: 4; }
  .page-accueil .hero-avatars { order: 5; }

  /* Page devis : tout le formulaire tient dans l'écran ; la barre du bas (doublon du bandeau) est retirée. */
  .page-devis .sticky-call-banner { display: none; }
  body.page-devis { padding-bottom: 0; }
  .page-devis .devis-hero { padding: 92px 0 32px !important; }
  .page-devis .devis-hero .container > div:first-child { margin-bottom: 14px !important; }
  .page-devis .devis-hero .hero-urgency-badge { margin: 0 auto 8px !important; padding: 6px 14px; font-size: 0.68rem; }
  .page-devis .devis-hero h1 { font-size: 1.3rem !important; line-height: 1.25; margin: 0; }
  .page-devis .hero-form-card { padding: 14px 14px 16px; }
  .page-devis .hero-form .hf-row { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .page-devis .hero-form .hf-group label { font-size: 0.68rem; }
  .page-devis .hero-form .hf-group input,
  .page-devis .hero-form .hf-group select,
  .page-devis .hero-form .hf-group textarea { padding: 10px 12px; }
  .page-devis .hero-form .hf-group textarea { height: 66px; min-height: 66px; }
  /* Page devis anglaise : le badge « We'll call you back in English » du formulaire tient lieu de bandeau d'accroche. */
  html[lang="en"] .page-devis .devis-hero .hero-urgency-badge { display: none; }
  .page-devis .en-badge { margin-bottom: 10px; padding-top: 5px; padding-bottom: 5px; }
}
/* Écrans étroits (≤ 380 px) : les deux boutons du bandeau restent dans l'écran. */
@media (max-width: 380px) {
  .header .bandeau-agences .container { padding: 0 10px; }
  .bandeau-agences .bandeau-lignes { gap: 6px; }
  .bandeau-lignes a { padding: 0 6px; gap: 6px; min-width: 0; }
  .bandeau-lignes a i { font-size: 13px; }
  .bandeau-num { font-size: 14px; letter-spacing: 0; }
}
/* Petits écrans (iPhone SE…) : on gagne encore un peu de hauteur. */
@media (max-width: 768px) and (max-height: 600px) {
  .page-devis .devis-hero .hero-urgency-badge { display: none; }
  .page-devis .devis-hero .container > div:first-child { margin-bottom: 10px !important; }
  .page-devis .devis-hero h1 { font-size: 1.15rem !important; }
  .page-devis .hero-form .hf-group input,
  .page-devis .hero-form .hf-group select { padding-top: 8px; padding-bottom: 8px; }
  .page-devis .hero-form .hf-group textarea { height: 50px; min-height: 50px; }
  .page-devis .hero-form { gap: 8px; }
  .page-devis .hero-form-card { padding-top: 10px; }
  html[lang="en"] .page-devis .devis-hero h1 { font-size: 1.05rem !important; }
  html[lang="en"] .page-devis .en-badge { margin-bottom: 6px; }
  html[lang="en"] .page-devis .hero-form .hf-group { gap: 2px; }
  html[lang="en"] .page-devis .hero-form .hf-group input,
  html[lang="en"] .page-devis .hero-form .hf-group select { padding-top: 7px; padding-bottom: 7px; }
  html[lang="en"] .page-devis .hero-form .hf-group textarea { height: 36px; min-height: 36px; }
  html[lang="en"] .page-devis .en-badge { padding-top: 4px; padding-bottom: 4px; }
  .page-accueil .hero-badge { margin-bottom: 10px; }
  .page-accueil .hero h1 { margin-bottom: 12px; }
  .page-accueil .hero-actions { gap: 8px; }
}

/* Éléments collants calés sous l'en-tête : même décalage. */
.service-sidebar, .devis-sidebar { top: calc(100px + var(--bandeau-h)); }
.faq-image img { top: calc(120px + var(--bandeau-h)); }

/* ----- Pied de page : Nos agences ----- */
.footer-agences-zone {
  color: var(--white);
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0 0 10px;
}
.footer-agences .footer-address { margin-bottom: 8px; }
.footer-agences .footer-address + .footer-agences-zone { margin-top: 18px; }
.footer-address a { color: inherit; transition: var(--transition); }
.footer-address a:hover { color: var(--primary); }
.footer-agences-titre {
  color: var(--white);
  font-size: 1.05rem;
  margin: 28px 0 16px;
}
