/* =========================================================
   SIZ.IMMO — Socle commun (14/11/2026)
   Après l'audit de toutes les pages (audit/AUDIT-PAGES-2026-11-14.md) et la
   maquette validée (maquettes/accueil-socle.html). Chargée EN DERNIER sur
   toutes les pages : elle prime sur siz.css, ds.css, cartes.css et clair.css.
   1. Angles droits partout (décision du client, 14/11/2026)
   2. Pas de capitales décoratives
   3. Pas de numéros décoratifs (01–07, « Module », « Étape », filigranes)
   4. En-tête : deux actions ; offres vides masquées
   5. Appel final selon le public
   6. Pied de page compact
   7. Téléphone : calque du site + barre d'onglets
   ========================================================= */

/* ---------- 1. Angles droits ---------- */
body.ds *, body.ds *::before, body.ds *::after { border-radius: 0 !important; }

/* ---------- 2. Pas de capitales décoratives ----------
   Tous les libellés que les feuilles du site passaient en capitales
   (surtitres, étiquettes, en-têtes de tableaux…), sauf le champ du code de
   vérification des documents, dont les capitales sont utiles. */
.card-type,
.ds .page-head .kicker, .ds .page-head .label,
.ds .kicker, .ds .label,
.ds-surtitre,
.ds-pastille,
.ds-mesures span,
.hz-champs label span,
.hz-legende > small,
.ag-regle-n,
.ag-cartouche dt,
.ag-venir-infos b,
.ds .fact .label,
.entree-cols,
.ds .entree .total span:first-child,
.ds .bien-releve .fact .label,
.ds .bien-title .price-big .label,
.cat-champ > span,
.lc-prix small,
.cat-plus .cat-equip > span,
body.ds :is(.ds-doc .piece, .pr-taches em, .sv-docs > div > span, .vf-docs span, .ag-puces li),
body.ds .ds-doc h3::before,
body.ds .ag-fiche-tete b,
html body.ds.ds :is(.ds-mesures span, .bien-releve .fact-off .label),
body.ds.ds .bp-frise .bp-moment,
.bp-tampon,
html body.ds.ds .ag-piliers > div span,
.ct-ligne small, .ct-mail a small,
.ct-acces b,
.ct-bloc-titre,
.ct-fiche-tete b,
.ct-rang small,
.es-tableau th,
.es-avis-infos b,
.as-recap-tete b,
.as-recap dt,
.as-famille h4,
.pr-releve-meta dt,
.sv-metier,
.sv-docs span,
.ds .vf-grille dt { text-transform: none !important; letter-spacing: 0 !important; }
body.ds .ds-surtitre { font-size: .875rem; font-weight: 600; }

/* ---------- 3. Pas de numéros décoratifs ---------- */
/* chiffres en filigrane des cartes (métiers, pièces, règles, articles de loi) */
body.ds :is(.sv-carte, .sv-docs > div, .ag-regles article, .vf-docs > div, .es-regles > div)::before { content: none !important; }
/* « Étape 01 », « Module 1 », numéros des questions et des étapes de la diaspora */
body.ds .ds-doc h3::before, html body.ds.ds .ag-piliers > div span::before,
.ds .fq-corps .faq summary::before, .ds-etapes-d li::before { content: none !important; display: none !important; }
html body.ds.ds .ag-piliers > div span { display: none !important; }
/* étapes qui se suivent : un repère carré à la place du numéro */
body.ds :is(.pr-etapes, .sv-etapes, .sv-flux, .vf-regles) li::before,
html body.ds.ds .ag-honoraires li::before {
  content: "" !important; width: 10px !important; height: 10px !important; min-width: 0 !important; padding: 0 !important;
  background: var(--orange-ds) !important; color: transparent !important; font-size: 0 !important; box-shadow: none !important;
}
body.ds .pr-etapes li::before { left: 24px !important; top: 27px !important; }
body.ds .pr-etapes li { padding-left: 52px !important; }
body.ds :is(.sv-etapes, .sv-flux, .vf-regles) li::before { margin-top: 7px; justify-self: center; }
html body.ds.ds .ag-honoraires li::before { left: 22px !important; top: 21px !important; }
html body.ds.ds .ag-honoraires li { padding-left: 46px !important; }
/* L'agence : le sommaire des métiers perd sa colonne de numéros */
body.ds .ag-sommaire a { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) 44px; }
@media (max-width: 760px) {
  body.ds .ag-sommaire a { grid-template-columns: minmax(0, 1fr) 36px; }
  body.ds .ag-sommaire p { grid-column: 1 / 2; }
  body.ds .ag-sommaire .fleche { grid-column: 2; grid-row: 1; }
}

/* ---------- 4. En-tête ---------- */
body.ds .top .top-right { gap: 10px; }
body.ds .top .btn { white-space: nowrap; }
body.ds .top .btn-navy { box-shadow: none; }
/* éléments masqués par le script (offres sans bien publié) */
body.ds [data-offre][hidden], body.ds #f-offre [hidden], body.ds .drawer a[hidden] { display: none !important; }

/* ---------- 5. Appel final ---------- */
/* de l'air autour de l'appel final, et entre la dernière section et le pied
   de page (le client, 14/11/2026 : « le pied de page est collé ») */
body.ds .call { padding-block: var(--sec) 0; margin-top: 0 !important; background: transparent !important; }
body.ds main { padding-bottom: var(--sec); }
body.ds main > .call:last-child { padding-bottom: var(--sec); }
body.ds .call-in { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 0; background: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.ds .call-deux .call-in { grid-template-columns: 1fr 1fr; }
body.ds .call-choix { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 3vw, 36px); background: #fff; box-shadow: var(--ombre-flottante); }
body.ds .call-choix.call-proprio { background: #FFF6F0; }
body.ds :is(.call-locataire, .call-proprietaire) .call-choix { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 32px; }
body.ds :is(.call-locataire, .call-proprietaire) .call-choix .call-actions { grid-column: 2; grid-row: 1 / span 2; }
body.ds .call h2 { margin: 0; font: 700 clamp(1.4rem, 2.2vw, 1.75rem)/1.2 var(--f-titre); color: var(--navy); }
body.ds .call p { margin: 8px 0 0; }
body.ds .call-deux .call-choix .call-actions { margin-top: 20px; }
body.ds .call .call-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- 6. Pied de page compact ---------- */
body.ds .sf-foot { background: #fff; border-top: 1px solid var(--filet); padding: 40px 0 0; font-size: .9rem; color: var(--sur-variante); }
body.ds .sf-foot-haut { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 28px; }
body.ds .sf-foot-marque img { width: 104px; height: auto; display: block; }
body.ds .sf-foot-marque p { margin: 12px 0 0; max-width: 300px; line-height: 1.55; text-align: left; }
body.ds .sf-foot h2 { margin: 0 0 10px; font: 700 .95rem var(--f-titre); color: var(--navy); }
body.ds .sf-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
body.ds .sf-foot a { color: var(--sur-variante); text-decoration: none; }
body.ds .sf-foot a:hover { color: var(--orange-texte); }
body.ds .sf-foot-contact { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; padding: 16px 0; border-top: 1px solid var(--filet); }
body.ds .sf-foot-contact :is(a, span) { display: inline-flex; align-items: center; gap: 8px; }
body.ds .sf-foot-contact svg { color: var(--navy); flex: none; }
body.ds .sf-foot-contact .open-state { font-weight: 600; color: var(--pale); }
body.ds .sf-foot-contact .open-state.is-open { color: var(--navy); }   /* pas de vert hors WhatsApp (19/11/2026) */
body.ds .sf-foot-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 14px 0 18px; border-top: 1px solid var(--filet); font-size: .8rem; color: var(--pale); }
body.ds .sf-foot-bas a { color: var(--pale); margin-left: 18px; }

/* La barre d'onglets et son menu n'existent que sur téléphone */
.app-tabs, .app-sheet { display: none; }

@media (max-width: 1000px) {
  body.ds .sf-foot-haut { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.ds .sf-foot-marque { grid-column: 1 / -1; }
  body.ds .call-deux .call-in { grid-template-columns: 1fr; }
}

/* ---------- 7. Téléphone : calque du site + barre d'onglets ----------
   Mêmes blocs, même ordre que l'ordinateur ; tailles pensées pour le pouce. */
@media (max-width: 768px) {
  :root { --app-tabs: 64px; }
  body.ds.has-app-tabs { padding-bottom: calc(var(--app-tabs) + env(safe-area-inset-bottom, 0px)); }
  body.ds.has-app-tabs.has-mbar { padding-bottom: calc(var(--app-tabs) + 72px + env(safe-area-inset-bottom, 0px)); }

  /* Barre du haut compacte : logo, « Confier un bien », favoris */
  body.ds.has-app-tabs :is(.burger, .drawer, .wa-float, .top .btn-estimer) { display: none !important; }
  body.ds.has-app-tabs .top .btn-rdv { display: inline-flex !important; min-height: 40px; padding: 0 14px; font-size: .875rem; }
  body.ds.has-app-tabs .top .top-fav { width: 40px; height: 40px; }

  /* Barre d'onglets */
  body.ds .app-tabs {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 980;
    height: calc(var(--app-tabs) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--filet);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 -10px 30px -22px rgba(11, 37, 69, .55);
  }
  body.ds .app-tab {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-width: 0; padding: 0 2px; border: 0; background: transparent; cursor: pointer;
    color: #5B6B82; font: 700 .7rem/1 var(--f-texte); text-decoration: none; -webkit-tap-highlight-color: transparent;
  }
  body.ds .app-tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  body.ds .app-tab.is-actif { color: var(--navy); }
  body.ds .app-tab.is-actif svg { color: var(--orange-ds); }
  body.ds .app-tab.is-actif { background: rgba(255, 107, 53, .08); }   /* fond teinté, pas de barre orange (19/11/2026) */
  body.ds .app-tab:active { background: rgba(11, 37, 69, .05); }

  /* Barre d'action de la fiche d'un bien : au-dessus des onglets */
  body.ds.has-app-tabs .m-bar { bottom: calc(var(--app-tabs) + env(safe-area-inset-bottom, 0px)); padding-bottom: 10px; z-index: 970; grid-template-columns: 1fr 1.3fr; }
  /* WhatsApp est déjà dans la barre d'onglets : pas de second bouton juste au-dessus */
  body.ds.has-app-tabs .m-bar .wa-btn { display: none; }

  /* Panneau « Menu » qui monte du bas */
  body.ds .app-sheet { display: block; position: fixed; inset: 0; z-index: 1300; }
  body.ds .app-sheet[hidden] { display: none; }
  body.ds .app-sheet-fond { position: absolute; inset: 0; background: rgba(6, 22, 44, .45); }
  body.ds .app-sheet-panneau { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; overscroll-behavior: contain; background: #F2F6FB; padding: 18px 16px calc(22px + env(safe-area-inset-bottom, 0px)); }
  body.ds .app-sheet-tete { display: flex; justify-content: space-between; align-items: center; }
  body.ds .app-sheet-tete h2 { margin: 0; font: 800 1.5rem var(--f-titre); color: var(--navy); }
  body.ds .app-sheet-tete button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--navy); font-size: 1.6rem; cursor: pointer; }
  body.ds .app-groupe h3 { margin: 16px 4px 8px; font: 700 .8rem var(--f-texte); color: #5B6B82; }
  body.ds .app-cels { background: #fff; border: 1px solid var(--filet); }
  body.ds .app-cel { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 14px 0 16px; color: var(--navy); font-weight: 600; text-decoration: none; }
  body.ds .app-cel[hidden] { display: none; }
  body.ds .app-cel + .app-cel { border-top: 1px solid var(--filet); }
  body.ds .app-cel svg { color: #9AA8BC; flex: none; }
  body.ds .app-sheet-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
  body.ds .app-sheet-contact .btn { min-height: 50px; padding: 0 8px; justify-content: center; }
  html.app-sheet-ouvert, html.app-sheet-ouvert body { overflow: hidden; }

  /* Échelle « application » */
  body.ds { font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body.ds main :is(p, li, dd) { text-align: left !important; -webkit-hyphens: manual !important; hyphens: manual !important; }
  body.ds main h1 { font-size: 2rem !important; line-height: 1.06 !important; }
  body.ds :is(.ds-h2, .call h2) { font-size: 1.5rem !important; line-height: 1.15 !important; }
  body.ds main .btn { min-height: 50px; }
  body.ds .crumbs a, body.ds .crumbs span { display: inline-block; padding: 6px 0; }

  /* Appel final : un bloc sous l'autre */
  body.ds :is(.call-locataire, .call-proprietaire) .call-choix { grid-template-columns: 1fr; }
  body.ds :is(.call-locataire, .call-proprietaire) .call-choix .call-actions { grid-column: 1; grid-row: auto; margin-top: 12px; }
  body.ds .call-choix { padding: 22px 18px; }

  /* Pied de page : trois colonnes de liens, une ligne de contact */
  body.ds .sf-foot { padding-top: 28px; font-size: .86rem; }
  body.ds .sf-foot-haut { gap: 18px 14px; padding-bottom: 20px; }
  body.ds .sf-foot-marque { display: flex; gap: 14px; align-items: center; }
  body.ds .sf-foot-marque img { width: 72px; }
  body.ds .sf-foot-marque p { margin: 0; font-size: .82rem; }
  body.ds .sf-foot ul { gap: 2px; }
  body.ds .sf-foot ul a { display: inline-block; padding: 7px 0; }
  body.ds .sf-foot-contact { gap: 2px 18px; }
  body.ds .sf-foot-contact :is(a, span) { min-height: 40px; }
  body.ds .sf-foot-bas { font-size: .75rem; }
  body.ds .sf-foot-bas a { margin: 0 14px 0 0; display: inline-block; padding: 6px 0; }
}
