/* [CRÉÉ - 25/11/2026] Modèle Technique — styles propres (préfixe tq-).
   Couleurs et polices : variables --agency-* (ambiance + couleurs de l'agence).
   Propriétés logiques (inline-start/end) : l'hébreu se retourne tout seul. */

body.m-tq { background: var(--agency-bg); color: var(--agency-text); font-family: var(--agency-font-body); -webkit-font-smoothing: antialiased; }
.m-tq h1, .m-tq h2, .m-tq h3 { font-family: var(--agency-font-heading); color: inherit; }
.m-tq a { color: inherit; }
.tq-wrap { max-width: 1240px; margin: 0 auto; padding-inline: 24px; }

/* Boutons */
.tq-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: var(--agency-radius-sm); font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: var(--agency-transition); cursor: pointer; }
.tq-btn-primary { background: var(--agency-primary); color: #fff !important; }
.tq-btn-primary:hover { background: var(--agency-primary-dark); }
.tq-btn-light { background: #fff; color: var(--agency-text) !important; }
.tq-btn-ghost { border-color: rgba(255,255,255,.65); color: #fff !important; }
.tq-btn-ghost:hover { background: rgba(255,255,255,.12); }
.tq-btn-outline { border-color: var(--agency-border); color: var(--agency-text) !important; background: var(--agency-bg); }
.tq-btn-outline:hover { border-color: var(--agency-primary); }
.tq-btn-block { width: 100%; }
.tq-icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--agency-border); border-radius: var(--agency-radius-sm); background: var(--agency-bg); color: var(--agency-text); font-size: 18px; text-decoration: none; }
.tq-link { color: var(--agency-accent) !important; font-weight: 600; text-decoration: none; }
.tq-link:hover { text-decoration: underline; }

/* En-tête */
.tq-header { position: sticky; top: 0; z-index: 1030; background: var(--agency-bg); border-bottom: 1px solid var(--agency-border); }
.tq-header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.tq-brand { display: inline-flex; align-items: center; text-decoration: none; font-weight: 700; font-size: 18px; color: var(--agency-text); }
.tq-brand img { max-height: 46px; max-width: 180px; width: auto; }
.tq-nav { flex: 1; gap: 22px; font-size: 15px; font-weight: 500; }
.tq-nav a { text-decoration: none; color: var(--agency-text); padding: 6px 0; border-bottom: 2px solid transparent; }
.tq-nav a:hover { border-bottom-color: var(--agency-primary); }
.tq-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.tq-header .agency-lang-switcher .nav-link { color: var(--agency-text); }
.tq-offcanvas { background: var(--agency-bg); }
.tq-offcanvas nav a { display: block; padding: 10px 0; font-size: 17px; text-decoration: none; color: var(--agency-text); border-bottom: 1px solid var(--agency-border); }
.tq-offcanvas .agency-lang-switcher-mobile { border-color: var(--agency-border) !important; }
.tq-offcanvas .agency-lang-switcher-mobile .text-white-50 { color: var(--agency-text-light) !important; }
.tq-offcanvas .btn-outline-light { color: var(--agency-text); border-color: var(--agency-border); }
.tq-offcanvas .btn-light { background: var(--agency-primary); color: #fff; border-color: var(--agency-primary); }

/* Accueil : bandeau */
.tq-hero { position: relative; overflow: hidden; background: var(--agency-dark); color: #fff; }
.tq-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.tq-hero-row { position: relative; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; padding-block: 88px 72px; }
.tq-hero-text { flex: 1 1 480px; }
.tq-hero h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.12; font-weight: 700; margin: 0 0 18px; color: #fff; }
.tq-hero-lead { font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.88); max-width: 560px; margin: 0 0 28px; }
.tq-hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.tq-eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--agency-accent); }
.tq-eyebrow-light { color: rgba(255,255,255,.82); }
.tq-pill { display: inline-block; margin: 0 0 22px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 13px; }

/* Recherche */
.tq-search { flex: 1 1 340px; max-width: 420px; background: var(--agency-bg); color: var(--agency-text); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.tq-search-title { font-size: 17px; }
.tq-seg { display: flex; gap: 4px; background: var(--agency-bg-light); padding: 4px; border-radius: 10px; border: 0; margin: 0; }
.tq-seg label { flex: 1; margin: 0; }
.tq-seg input { position: absolute; opacity: 0; pointer-events: none; }
.tq-seg span { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 8px; font-size: 14px; cursor: pointer; color: var(--agency-text-light); }
.tq-seg input:checked + span { background: var(--agency-bg); color: var(--agency-text); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tq-seg input:focus-visible + span { outline: 2px solid var(--agency-primary); }
.tq-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--agency-text-light); flex: 1; }
.tq-field select, .tq-field input { height: 44px; border: 1px solid var(--agency-border); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 15px; font-weight: 400; color: var(--agency-text); background: var(--agency-bg); }
.tq-field-row { display: flex; gap: 10px; }

/* Sections */
.tq-section { padding-block: 64px 8px; }
.tq-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; }
.tq-section h2 { font-size: clamp(26px, 3vw, 32px); font-weight: 700; margin: 0; }
.tq-subtitle { font-size: 21px; font-weight: 700; margin: 44px 0 14px; }
.tq-grid { display: grid; gap: 22px; }
.tq-grid-3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.tq-grid-4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tq-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--agency-border); text-decoration: none; font-size: 14px; color: var(--agency-text) !important; background: var(--agency-bg); }
.tq-chip.is-on, .tq-chip:hover { background: var(--agency-text); border-color: var(--agency-text); color: var(--agency-bg) !important; }

/* Carte d'annonce */
.tq-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--agency-border); border-radius: var(--agency-radius); overflow: hidden; background: var(--agency-bg); text-decoration: none; color: var(--agency-text) !important; transition: var(--agency-transition); }
.tq-card:hover { box-shadow: var(--agency-shadow-md); transform: translateY(-2px); }
.tq-card-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--agency-bg-alt); }
.tq-card-large .tq-card-img { aspect-ratio: 16 / 10; }
.tq-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tq-badge { position: absolute; top: 12px; inset-inline-start: 12px; padding: 4px 10px; border-radius: 6px; background: var(--agency-primary); color: #fff; font-size: 12px; font-weight: 600; }
.tq-badge-dark { background: rgba(14,27,44,.85); border-radius: 999px; }
.tq-photos { position: absolute; bottom: 10px; inset-inline-start: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; }
.tq-card .tq-fav { position: absolute; top: 8px; left: auto; right: auto; inset-inline-end: 8px; width: 40px; height: 40px; border: 0; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--agency-text); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.tq-card .tq-fav.is-favorite { color: #C0392B; }
.tq-card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.tq-card-price { font-size: 20px; font-weight: 700; }
.tq-card-conv { font-size: 12px; color: var(--agency-text-light); }
.tq-card-title { font-size: 15px; font-weight: 600; }
.tq-card-loc { font-size: 13px; color: var(--agency-text-light); }
.tq-card-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tq-card-chips span { padding: 3px 8px; border-radius: 6px; background: var(--agency-bg-light); font-size: 13px; }
.tq-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--agency-border); text-align: center; }
.tq-specs > span { display: flex; flex-direction: column; }
.tq-specs > span + span { border-inline-start: 1px solid var(--agency-border); }
.tq-specs small { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--agency-text-light); }
.tq-specs b { font-size: 16px; }

/* Tableau comparatif */
.tq-table-box { overflow-x: auto; border: 1px solid var(--agency-border); border-radius: var(--agency-radius); }
.tq-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.tq-table thead th { background: var(--agency-bg-light); padding: 12px 16px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--agency-text-light); text-align: start; }
.tq-table td, .tq-table tbody th { padding: 14px 16px; border-top: 1px solid var(--agency-border); text-align: start; }
.tq-table .text-end { text-align: end; }
.tq-table tbody th a { font-weight: 600; text-decoration: none; color: var(--agency-text); }
.tq-table tbody th a:hover { color: var(--agency-primary); }
.tq-table tbody th span { display: block; font-size: 13px; font-weight: 400; color: var(--agency-text-light); }
.tq-strong { font-weight: 700; }
.tq-muted { color: var(--agency-text-light); font-size: 13px; }

/* Portes d'entrée */
.tq-doors { background: var(--agency-bg-light); margin-top: 64px; padding-block: 64px; }
.tq-doors h2 { font-size: clamp(26px, 3vw, 30px); font-weight: 700; margin: 0 0 8px; }
.tq-doors-lead { max-width: 620px; margin: 0 auto 32px; text-align: center; color: var(--agency-text-light); }
.tq-door { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 14px; background: var(--agency-bg); border: 1px solid var(--agency-border); text-decoration: none; color: var(--agency-text) !important; }
.tq-door:hover { border-color: var(--agency-primary); }
.tq-door strong { font-size: 20px; }
.tq-door > span:not(.tq-eyebrow):not(.tq-link) { color: var(--agency-text-light); line-height: 1.5; }

/* Pied de page */
.tq-footer { background: var(--agency-dark); color: rgba(255,255,255,.78); margin-top: 0; }
.tq-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-block: 56px 28px; }
.tq-footer-grid nav, .tq-footer-grid > div { display: flex; flex-direction: column; gap: 9px; }
.tq-footer-grid strong { color: #fff; font-size: 15px; margin-bottom: 4px; }
.tq-footer-grid p { margin: 0; }
.tq-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.tq-footer a:hover { color: #fff; text-decoration: underline; }
.tq-footer-name { font-size: 18px !important; }
.tq-footer-strong { color: #fff !important; font-weight: 600; }
.tq-footer-bottom { margin: 0; padding: 16px 24px 28px; text-align: center; font-size: 13px; color: rgba(255,255,255,.6); border-top: 1px solid rgba(255,255,255,.12); }

@media (max-width: 575px) {
  .tq-hero-row { padding-block: 56px 40px; }
  .tq-field-row { flex-direction: column; }
}

/* [AJOUT - 25/11/2026] Flèches retournées en hébreu */
[dir="rtl"] .mdl-arrow { display: inline-block; transform: scaleX(-1); }

/* [AJOUT - 25/11/2026] Bandeau Guide ultime (accueil) */
.tq-guide { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; padding: 24px; border: 1px solid var(--agency-border); border-radius: 14px; background: var(--agency-bg-light); text-decoration: none; color: var(--agency-text) !important; }
.tq-guide img { flex: 1 1 280px; max-width: 420px; width: 100%; height: auto; border-radius: 10px; background: #fff; }
.tq-guide-text { flex: 999 1 360px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.tq-guide-text strong { font-family: var(--agency-font-heading); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.3; }
.tq-guide-excerpt { color: var(--agency-text-light); line-height: 1.6; }

/* [MODIF - 26/11/2026] Téléphone : en-tête sur une seule ligne (nom de l'agence coupé proprement,
   langue réduite au drapeau — la liste complète reste dans le menu) */
@media (max-width: 575.98px) {
  .tq-header-row { gap: 10px; min-height: 60px; }
  .tq-brand { min-width: 0; flex: 0 1 auto; overflow: hidden; font-size: 16px; }
  .tq-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .tq-brand img { max-height: 38px; max-width: 140px; }
  .tq-actions { flex-shrink: 0; gap: 6px; }
  .tq-header .agency-lang-switcher .text-uppercase { display: none; }
  .tq-header .agency-lang-switcher .nav-link { padding-inline: 4px !important; }
}
