/* Allô Immobilier : surcharges globales du thème */
html { scroll-padding-top: 140px; overflow-x: clip; }
html body header.site-header.site-header { padding-top: 0; border-top: 0; border-left: 0; border-right: 0; }
html body header.site-header.site-header .allo-bandeau { width: 100%; max-width: none; margin: 0; border: 0; }
html body header.site-header.site-header .allo-bandeau .allo-bandeau__x { width: 44px; height: 44px; min-height: 44px; margin-block: -6px; }
@media (max-width: 820px) {
  html body header.site-header.site-header a, html body header.site-header.site-header button, html body .kv-bouton.kv-bouton { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
}
body { font-family: var(--font-sans); background: var(--color-bg); color: var(--color-text); }
h1, h2, h3, .allo-titre { font-family: var(--font-display); font-weight: 400; letter-spacing: 0; }
[id], section[data-bloc] { scroll-margin-top: 140px; }

/* Bandeau du mois, collé en 0,0 sur toute la largeur */
.site-header.glass-nav { padding: 0 !important; top: 0; left: 0; right: 0; width: 100%; }
.allo-bandeau { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 36px; margin: 0; padding: 0 48px 0 16px; background: #2f2823; color: #f6f3ee; font-size: 14px; line-height: 1.3; position: relative; box-sizing: border-box; }
.allo-bandeau__txt { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.allo-bandeau__txt strong { font-weight: 700; color: #e7cfae; }
.allo-bandeau__x { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; background: none; border: 0; color: #f6f3ee; font-size: 22px; cursor: pointer; }
.allo-bandeau[hidden] { display: none; }

/* En-tête : logo et menu à gauche, recherche à droite */
.site-header .header-container { justify-content: flex-start !important; gap: 32px !important; padding-top: 10px; padding-bottom: 10px; max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.site-header .brand { display: inline-flex; align-items: center; min-height: 44px; flex: 0 0 auto; }
.allo-logo { height: 48px; width: auto; display: block; }
.site-header .nav-menu { flex: 1 1 auto !important; justify-content: flex-start !important; }
.site-header .nav-link { white-space: nowrap; min-height: 44px; font-weight: 600; color: var(--color-text); }
.site-header .search-toggle { margin-left: auto; }
@media (max-width: 1100px) { .site-header .nav-link { padding-left: 10px; padding-right: 10px; font-size: 15px; } .site-header .header-container { gap: 24px !important; } }
@media (max-width: 768px) {
  .allo-logo { height: 35px; }
  .site-header .header-container { padding-left: 14px; padding-right: 14px; }
  .site-header .nav-menu { top: 100%; }
  .allo-bandeau { font-size: 13px; }
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 999; background: #fff; padding: 8px 12px; }

/* Pied de page */
.footer-logo img { height: 48px; width: auto; display: block; }
.site-footer .footer-container { max-width: 1200px; }

/* Pages internes */
.allo-page { max-width: 1160px; margin: 0 auto; padding: 32px 20px 48px; box-sizing: border-box; width: 100%; }
.allo-page .allo-texte { max-width: 65ch; }
.allo-page h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); line-height: 1.1; margin: 8px 0 16px; }
.allo-page h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin: 32px 0 12px; }
.allo-page p, .allo-page li { line-height: 1.7; font-size: 1.05rem; }
.allo-ariane { font-size: 14px; color: var(--color-text-muted); margin: 0 0 8px; }
.allo-ariane a { color: var(--color-accent-text); }
.allo-kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent-text); text-decoration: none; }
.allo-chapo { font-size: 1.2rem; line-height: 1.6; color: var(--color-text-muted); max-width: 70ch; }

/* Article : enveloppe large, sans cadre */
.allo-article { max-width: 1200px; margin: 0 auto; padding: 24px 20px 48px; box-sizing: border-box; width: 100%; }
.allo-tete { width: 100%; }
.allo-tete h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem); line-height: 1.1; margin: 10px 0 14px; width: 100%; }
.allo-tete .allo-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; color: var(--color-text-muted); margin: 14px 0 20px; }
.allo-tete .allo-meta a { color: var(--color-accent-text); }
.allo-tete .allo-tete-img, .allo-tete picture, .allo-tete img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: 14px; }
.allo-article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1200px; margin: 0 auto 40px; padding: 0 20px; box-sizing: border-box; }
.allo-article-nav a { display: block; padding: 18px 20px; border: 1px solid rgba(47,40,35,.12); border-radius: 14px; text-decoration: none; color: var(--color-text); background: #fff; }
.allo-article-nav small { display: block; color: var(--color-text-muted); font-size: 13px; margin-bottom: 4px; }
@media (max-width: 640px) { .allo-article-nav { grid-template-columns: 1fr; } .allo-article { padding: 16px 14px 32px; } }

/* Listes d’articles des pages internes */
.allo-liste { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; padding: 0; margin: 24px 0; }
.allo-liste--2 { grid-template-columns: repeat(2, 1fr); }
.allo-carte { display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(47,40,35,.12); border-radius: 14px; overflow: hidden; height: 100%; }
.allo-carte img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; display: block; }
.allo-carte__corps { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.allo-carte h2, .allo-carte h3 { font-size: 1.45rem; line-height: 1.2; margin: 0; }
.allo-carte h2 a, .allo-carte h3 a { color: var(--color-text); text-decoration: none; }
.allo-carte h2 a::after, .allo-carte h3 a::after { content: ''; position: absolute; inset: 0; }
.allo-carte { position: relative; }
.allo-carte p { margin: 0; color: var(--color-text-muted); font-size: 15px; line-height: 1.55; }
.allo-carte__meta { font-size: 13px; color: var(--color-text-muted); }
.allo-carte--large { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.allo-carte--large img { height: 100%; aspect-ratio: auto; max-height: 420px; }
@media (max-width: 1024px) { .allo-liste { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .allo-liste, .allo-liste--2 { grid-template-columns: 1fr; } .allo-carte--large { grid-template-columns: 1fr; } }
.allo-pilules { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 16px 0; }
.allo-pilules a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(47,40,35,.18); text-decoration: none; color: var(--color-text); background: #fff; white-space: nowrap; }
.allo-pilules a[aria-current] { background: #2f2823; color: #f6f3ee; }

/* Formulaire de contact */
.allo-form { display: grid; gap: 16px; max-width: 680px; background: rgba(255,255,255,.62); border: 1px solid rgba(47,40,35,.12); border-radius: 18px; padding: 24px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(47,40,35,.06); }
.allo-form label { display: grid; gap: 6px; font-weight: 600; }
.allo-form input, .allo-form select, .allo-form textarea { font: inherit; padding: 12px 14px; border: 1px solid rgba(47,40,35,.25); border-radius: 10px; background: #fff; min-height: 44px; }
.allo-form .allo-consent { display: block; font-weight: 400; }
.allo-form .allo-consent input { display: inline; width: auto; margin: 0 8px 0 0; vertical-align: middle; }
.allo-form .allo-consent input { min-height: auto; margin-top: 5px; }
.allo-form button { justify-self: start; min-height: 48px; padding: 0 28px; border: 0; border-radius: 999px; background: #2f2823; color: #f6f3ee; font: inherit; font-weight: 700; cursor: pointer; }
.allo-hp { position: absolute; left: -9999px; }
.allo-retour { padding: 14px 18px; border-radius: 10px; background: #efe6da; }
.allo-equipe { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.allo-equipe article { display: grid; grid-template-columns: 140px 1fr; gap: 20px; background: #fff; border: 1px solid rgba(47,40,35,.12); border-radius: 14px; padding: 20px; }
.allo-equipe img { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; }
@media (max-width: 900px) { .allo-equipe { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .allo-equipe article { grid-template-columns: 1fr; padding: 16px 0; border: 0; border-bottom: 1px solid rgba(47,40,35,.12); border-radius: 0; background: none; }
  .allo-page { padding-left: 14px; padding-right: 14px; }
}
.allo-page[data-usine-page="interne"] .allo-texte p, .allo-page[data-usine-page="interne"] .allo-texte li { max-width: 62ch; }
.allo-page[data-usine-page="interne"] .allo-texte p, .allo-page[data-usine-page="interne"] .allo-texte li, .allo-page[data-usine-page="interne"] .allo-chapo { max-width: min(60ch, 34em); }

@media (max-width: 640px) {
  .allo-bandeau { padding-right: 52px; }
  .allo-bandeau__txt { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
