/* Landing MarinAa — bulles de contact (Nous écrire, Appeler, WhatsApp) et fenêtre « Écrivez-nous » (landing/contact.js).
   Charte : marine #204057, or #e8b04a, sable #cdcdc3 ; cibles tactiles de 48 px au moins (WCAG 2.5.8) ; mouvement réduit
   respecté. Sur téléphone, les bulles montent au-dessus de la barre d'actions et de la barre du simulateur
   (--lm-bulles-haut, mesurée par contact.js). */
.lm-bulles {
  --lm-bulle: 56px;
  position: fixed; z-index: 52; right: calc(20px + env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  font-family: Poppins, system-ui, -apple-system, 'Segoe UI', sans-serif;
  transition: transform .32s cubic-bezier(.16, 1, .3, 1);
}
.lm-bulles.is-haut { transform: translateY(calc(-1 * var(--lm-bulles-haut, 0px))); }
.lm-bulle {
  position: relative; display: grid; place-items: center; flex: none; width: var(--lm-bulle); height: var(--lm-bulle); margin: 0; padding: 0;
  border: 2px solid rgba(255, 255, 255, .92); border-radius: 50%; background: #204057; color: #ffffff; cursor: pointer; text-decoration: none;
  box-shadow: 0 10px 26px -10px rgba(20, 40, 56, .62), 0 2px 6px rgba(20, 40, 56, .18);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; -webkit-tap-highlight-color: transparent;
}
.lm-bulle svg { width: 24px; height: 24px; display: block; }
.lm-bulle--mail { background: #e8b04a; color: #204057; }
.lm-bulle:focus-visible { outline: 3px solid #e8b04a; outline-offset: 3px; }
.lm-bulle--mail:focus-visible { outline-color: #204057; }
/* Nom de chaque bulle : toujours lu par les lecteurs d'écran ; affiché en étiquette à gauche au survol et au clavier. */
.lm-bulle__nom {
  position: absolute; right: calc(100% + 12px); top: 50%; padding: 8px 14px; border-radius: 999px; background: #204057; color: #ffffff;
  font-size: 13px; font-weight: 600; letter-spacing: .02em; line-height: 1.2; white-space: nowrap; pointer-events: none;
  box-shadow: 0 8px 22px -12px rgba(20, 40, 56, .7); opacity: 0; transform: translate(6px, -50%); transition: opacity .18s ease, transform .18s ease;
}
@media (hover: hover) and (pointer: fine) {
  .lm-bulle:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 30px -12px rgba(20, 40, 56, .7), 0 2px 6px rgba(20, 40, 56, .2); }
  .lm-bulle--mail:hover { background: #f0c063; }
  .lm-bulle--tel:hover { background: #1a3448; }
  .lm-bulle--wa:hover { background: #25d366; }
  .lm-bulle:hover .lm-bulle__nom { opacity: 1; transform: translate(0, -50%); }
}
.lm-bulle:focus-visible .lm-bulle__nom { opacity: 1; transform: translate(0, -50%); }
.lm-bulles.is-appel .lm-bulle--tel { background: #1a3448; }
.lm-bulles.is-appel .lm-bulle__nom { opacity: 0 !important; }

/* Carte « Appelez votre conseiller » : à gauche de la bulle du téléphone. */
.lm-appel {
  position: absolute; right: calc(var(--lm-bulle) + 14px); bottom: calc(var(--lm-bulle) + 12px); width: min(300px, calc(100vw - var(--lm-bulle) - 48px));
  padding: 18px 18px 16px; border-radius: 16px; background: #ffffff; color: #204057; border-top: 3px solid #e8b04a;
  box-shadow: 0 22px 48px -18px rgba(20, 40, 56, .55), 0 2px 8px rgba(20, 40, 56, .12);
  animation: lm-bulles-entree .22s cubic-bezier(.16, 1, .3, 1);
}
.lm-appel[hidden] { display: none; }
.lm-appel__titre { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #4d6679; }
.lm-appel__numero {
  display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 16px; border-radius: 999px; background: #204057; color: #ffffff;
  text-decoration: none; font-family: 'Lemon Milk', Poppins, sans-serif; font-weight: 600; font-size: 19px; letter-spacing: .02em; white-space: nowrap;
}
.lm-appel__numero svg { width: 20px; height: 20px; flex: none; color: #e8b04a; }
.lm-appel__numero:hover { background: #1a3448; }
.lm-appel__numero:focus-visible { outline: 3px solid #e8b04a; outline-offset: 3px; }
.lm-appel__note { margin: 10px 2px 0; font-size: 13px; line-height: 1.45; color: #4d6679; }

/* ——— Fenêtre « Écrivez-nous » (dialog natif : focus gardé, Échap ferme) ——— */
.lm-ecrire {
  width: min(540px, calc(100vw - 32px)); max-height: min(92vh, 860px); margin: auto; padding: 0; border: 0; border-radius: 22px; overflow: auto;
  background: #ffffff; color: #204057; font-family: Poppins, system-ui, -apple-system, 'Segoe UI', sans-serif; overscroll-behavior: contain;
  box-shadow: 0 40px 90px -30px rgba(10, 24, 36, .65);
}
.lm-ecrire[open] { animation: lm-ecrire-entree .32s cubic-bezier(.16, 1, .3, 1); }
.lm-ecrire::backdrop { background: rgba(16, 32, 46, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
html.lm-ecrire-ouvert, html.lm-ecrire-ouvert body { overflow: hidden; }
.lm-ecrire__tete { position: relative; padding: 28px 64px 22px 30px; background: #204057; color: #ffffff; border-bottom: 3px solid #e8b04a; }
.lm-ecrire__sur { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #e8b04a; }
.lm-ecrire__titre { margin: 6px 0 0; font-family: 'Lemon Milk', Poppins, sans-serif; font-weight: 600; font-size: 26px; line-height: 1.1; text-transform: uppercase; }
.lm-ecrire__intro { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: #cdcdc3; text-wrap: pretty; }
.lm-ecrire__fermer {
  position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #ffffff; cursor: pointer; transition: background-color .2s;
}
.lm-ecrire__fermer svg { width: 20px; height: 20px; }
.lm-ecrire__fermer:hover { background: rgba(255, 255, 255, .2); }
.lm-ecrire__fermer:focus-visible { outline: 3px solid #e8b04a; outline-offset: 2px; }
.lm-ecrire__corps { display: flex; flex-direction: column; gap: 14px; padding: 24px 30px 26px; }
.lm-ecrire__ligne { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lm-ecrire__champ { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; }
.lm-ecrire__facultatif { font-weight: 400; color: #4d6679; }
/* Le grand formulaire (gabarit) : champ refusé par le serveur, en rouge jusqu'à sa correction. */
#contact form [aria-invalid="true"] { border-color: #b3261e !important; }
.lm-ecrire__champ input, .lm-ecrire__champ textarea {
  width: 100%; box-sizing: border-box; border: 1.5px solid #cdcdc3; border-radius: 12px; padding: 12px 14px; background: #ffffff; color: #204057;
  font: 400 15px/1.45 Poppins, system-ui, sans-serif; transition: border-color .15s, box-shadow .15s;
}
.lm-ecrire__champ textarea { resize: vertical; min-height: 104px; }
.lm-ecrire__champ input:focus, .lm-ecrire__champ textarea:focus { outline: none; border-color: #204057; box-shadow: 0 0 0 3px rgba(232, 176, 74, .45); }
.lm-ecrire [aria-invalid="true"] { border-color: #b3261e !important; }
.lm-ecrire__case { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 12.5px; line-height: 1.5; cursor: pointer; }
.lm-ecrire__case input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: #204057; }
.lm-ecrire a { color: #204057; }
.lm-ecrire__envoyer {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 52px; border: 0; border-radius: 999px;
  padding: 14px 26px; background: #204057; color: #ffffff; cursor: pointer; font: 600 14px/1.2 Poppins, system-ui, sans-serif;
  letter-spacing: .05em; text-transform: uppercase; transition: background-color .2s;
}
.lm-ecrire__envoyer:hover { background: #1a3448; }
.lm-ecrire__envoyer:focus-visible { outline: 3px solid #e8b04a; outline-offset: 3px; }
.lm-ecrire__envoyer:disabled { cursor: progress; opacity: .85; }
.lm-ecrire__rgpd { margin: 0; font-size: 11px; line-height: 1.5; color: #4d6679; text-wrap: pretty; }
.lm-ecrire__merci { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 40px 30px 30px; }
.lm-ecrire__merci[hidden], .lm-ecrire__form[hidden] { display: none; }
.lm-ecrire__merci .lm-ecrire__titre { color: #204057; outline: none; margin-top: 14px; }
.lm-ecrire__merci .lm-ecrire__intro { color: #4d6679; margin-bottom: 22px; }
.lm-ecrire__coche { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #e8b04a; color: #204057; }
.lm-ecrire__coche svg { width: 28px; height: 28px; }

/* Erreur d'envoi (fenêtre et grand formulaire) : annoncée, en clair au-dessus du bouton. */
.lm-form-erreur { margin: 0; padding: 10px 14px; border-radius: 10px; background: #fbeceb; color: #8c1d18; font-size: 13.5px; line-height: 1.45; border-left: 3px solid #b3261e; }
.lm-form-erreur[hidden] { display: none; }
/* Bouton en cours d'envoi (grand formulaire : son libellé appartient au gabarit, on n'y touche pas). */
button.is-envoi { cursor: progress; opacity: .8; }
/* Pot de miel : hors de l'écran et de l'arbre d'accessibilité, jamais rempli par un humain. */
.lm-piege { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

@keyframes lm-bulles-entree { from { opacity: 0; transform: translateX(8px); } }
@keyframes lm-ecrire-entree { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ——— Téléphone ——— */
@media (max-width: 699px) {
  .lm-bulles { --lm-bulle: 50px; right: calc(12px + env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); gap: 10px; }
  .lm-bulle svg { width: 22px; height: 22px; }
  html.lm-menu-ouvert .lm-bulles { visibility: hidden; }
  /* Héros : au premier écran, les bulles ne recouvrent ni le titre ni l'accroche (marge de leur largeur à droite, prioritaire sur les styles en ligne du gabarit ;
     mesuré par controles/banc-contact.cjs, de 320 × 568 à 414 × 896). */
  #dc-root .lm-hero-inner > div:first-child > :not(.lm-hero-ctas) { margin-right: 56px !important; }
  /* La fenêtre devient une feuille qui monte du bas de l'écran. */
  .lm-ecrire { width: 100%; max-width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .lm-ecrire[open] { animation-name: lm-ecrire-feuille; }
  .lm-ecrire__tete { padding: 22px 60px 18px 20px; }
  .lm-ecrire__titre { font-size: 22px; }
  .lm-ecrire__corps { padding: 18px 20px calc(22px + env(safe-area-inset-bottom)); }
  .lm-ecrire__ligne { grid-template-columns: minmax(0, 1fr); }
  .lm-ecrire__merci { padding: 32px 20px calc(26px + env(safe-area-inset-bottom)); }
  @keyframes lm-ecrire-feuille { from { transform: translateY(40px); opacity: .4; } }
}
/* ——— Tablette et ordinateur : le bandeau de chiffres du héros s'arrête avant les bulles ———
   Les bulles (56 px, à 20 px du bord) occupent les 76 px de droite ; le bandeau allait jusqu'à 28-32 px du bord et, de
   720 à 1 380 px, « Lancement des travaux » passait dessous (98 vues sur 304, balayage du 03/12/2026). Il garde donc
   64 px de plus à droite, moins ce que la colonne de 1 280 px laisse déjà de marge sur grand écran (nul dès 1 408 px).
   Trop étroit pour trois colonnes d'une ligne chacune (moins de 560 px : héros en deux colonnes, de 936 à 1 343 px ;
   « jusqu'à 5,1 % » se coupait à 1 280 px), il passe en lignes, intitulé à gauche et chiffre à droite, comme sur
   téléphone. Garde : controles/banc-contact.cjs (balayage du héros). */
@media (min-width: 700px) {
  #dc-root .lm-kpis { margin-right: max(0px, calc(64px - max(0px, (100vw - 1280px) / 2))); container-type: inline-size; }
  @container (max-width: 559px) {
    #dc-root .lm-kpis > div { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
      padding: 13px 20px !important; border-bottom: 1px solid #4d6679; }
    #dc-root .lm-kpis > div:last-child { border-bottom: 0; }
    #dc-root .lm-kpis > div > div + div { margin-top: 0 !important; font-size: 20px !important; white-space: nowrap; text-align: right; }
    #dc-root .lm-kpis .lm-kpi__sub { font-size: 12px; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .lm-bulles, .lm-bulle, .lm-bulle__nom { transition: none; }
  .lm-appel, .lm-ecrire[open] { animation: none; }
}
@media print { .lm-bulles, .lm-ecrire { display: none !important; } }

/* Indicatif téléphonique devant le numéro (pages traduites : landing/contact.js, poserIndicatif ; landing/traduction.py,
   gabarit_langue). Le libellé du champ reste celui du numéro ; le menu porte le sien. */
.lm-tel { display: flex; gap: 8px; min-width: 0; }
.lm-tel > input { flex: 1 1 auto; min-width: 0; width: auto; }
.lm-indicatif { flex: 0 1 auto; max-width: 42%; min-width: 0; border: 1.5px solid #cdcdc3; border-radius: 10px; padding: 10px 8px;
  font: inherit; font-size: 15px; font-weight: 400; color: #204057; background: #fff; text-overflow: ellipsis; }
.lm-indicatif:focus { outline: none; border-color: #204057; box-shadow: 0 0 0 3px rgba(232, 176, 74, .45); }

/* Pages traduites : les longs mots composés du néerlandais se coupent à la syllabe dans les titres, et tout mot trop long pour sa colonne
   passe à la ligne au lieu d'élargir la page (banc des langues, 05/12/2026 : « nieuwbouwappartementen » en titre de 30 px
   portait la page à 474 px sur un téléphone de 390). Les chiffres de BECI (« 50 years », « 4.000+ », 40 px dans une case de
   132 px à 320) suivent la largeur de l'écran. */
/* La coupure à la syllabe est réservée aux titres et aux chiffres, et aux mots de 12 lettres au moins : coupée dans le texte
   courant, elle tranchait la marque (« Mari-nAa ») et les boutons (WebKit, 05/12/2026). */
html[lang|="nl"] :is(h1, h2, h3, .lm-titre-visuel, .lm-typo__id, .lm-beci-stats) {
  -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 12 6 6; -webkit-hyphenate-limit-before: 6; -webkit-hyphenate-limit-after: 6;
}
html[lang|="nl"] body, html[lang|="en"] body { overflow-wrap: break-word; }
/* Lignes chiffrées du simulateur : un libellé traduit plus long (« ten laste van BECI (€ 4.016) ») passe sur deux lignes
   au lieu de pousser tous les montants hors de la carte ; un montant court reste sur une ligne. */
html[lang|="nl"] .sim-rows dd, html[lang|="en"] .sim-rows dd { max-width: 58%; white-space: normal; text-align: right; }
/* « Meerwaardebelasting » (un seul mot) fixait à lui seul la largeur des lignes à 219 px dans une carte de 212 : coupé à la syllabe. */
html[lang|="nl"] .sim-rows dt { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 12 6 6; overflow-wrap: anywhere; }
/* En-tête à 320 px : « Wonen | Investeren » repoussait le menu de 2 px hors de l'écran. */
@media (max-width: 359px) {
  html[lang|="nl"] .lm-switch button { padding: 8px 8px !important; }
}
@media (max-width: 699px) {
  html[lang|="nl"] .lm-beci-stats > div > div:first-child, html[lang|="en"] .lm-beci-stats > div > div:first-child { font-size: clamp(28px, 9vw, 40px) !important; }
}
