/* =====================================================================
   Suivi Cabinet — identité visuelle
   Encre de greffe + papier froid + violet « tampon » de l'administration.
   Titres : Amiri (naskh classique, la voix des jugements). Interface : IBM Plex Sans Arabic.
   ===================================================================== */

@font-face { font-family: "Amiri"; font-weight: 400; font-display: swap;
  src: url("../vendor/polices/amiri-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Amiri"; font-weight: 700; font-display: swap;
  src: url("../vendor/polices/amiri-arabic-700-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Amiri"; font-weight: 400; font-display: swap;
  src: url("../vendor/polices/amiri-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Amiri"; font-weight: 700; font-display: swap;
  src: url("../vendor/polices/amiri-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Plex"; font-weight: 400; font-display: swap;
  src: url("../vendor/polices/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex"; font-weight: 500; font-display: swap;
  src: url("../vendor/polices/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap;
  src: url("../vendor/polices/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap;
  src: url("../vendor/polices/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-weight: 500; font-display: swap;
  src: url("../vendor/polices/ibm-plex-sans-arabic-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap;
  src: url("../vendor/polices/ibm-plex-sans-arabic-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --encre: #15324d;
  --encre-claire: #2b5a85;
  --encre-pale: #e8eef5;
  --papier: #f6f7f9;
  --surface: #ffffff;
  --filet: #dde2ea;
  --texte: #1c2430;
  --texte-doux: #5b6573;
  --tampon: #6d3a8e;
  --tampon-pale: #f3edf7;
  --wa-fond: #ece5dd;
  --wa-sortant: #d9fdd3;
  --succes: #1e7b4f;
  --alerte: #a8670f;
  --danger: #b42318;
  --rayon: 10px;
  --police-texte: "Plex", "Segoe UI", Tahoma, sans-serif;
  --police-titre: "Amiri", "Times New Roman", serif;
  --bs-body-font-family: var(--police-texte);
  --bs-body-color: var(--texte);
  --bs-body-bg: var(--papier);
  --bs-link-color: var(--encre-claire);
  --bs-link-color-rgb: 43, 90, 133;
  --bs-link-hover-color: var(--encre);
  --bs-border-color: var(--filet);
  --bs-primary-rgb: 21, 50, 77;
  --bs-focus-ring-color: rgba(109, 58, 142, .35);
}

body { font-family: var(--police-texte); font-size: 1rem; line-height: 1.6; background: var(--papier); color: var(--texte); }
[dir="rtl"] body { line-height: 1.8; }
h1, h2, h3, h4 { color: var(--encre); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--tampon); outline-offset: 2px; border-radius: 3px; }
.text-doux { color: var(--texte-doux) !important; }
.chiffres { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Boutons */
.btn { font-weight: 500; border-radius: 8px; }
.btn-primary { --bs-btn-bg: var(--encre); --bs-btn-border-color: var(--encre); --bs-btn-hover-bg: var(--encre-claire);
  --bs-btn-hover-border-color: var(--encre-claire); --bs-btn-active-bg: #0e2236; --bs-btn-active-border-color: #0e2236;
  --bs-btn-disabled-bg: #7c8c9c; --bs-btn-disabled-border-color: #7c8c9c; }
.btn-outline-primary { --bs-btn-color: var(--encre); --bs-btn-border-color: var(--encre); --bs-btn-hover-bg: var(--encre);
  --bs-btn-hover-border-color: var(--encre); --bs-btn-active-bg: var(--encre); }
.btn-tampon { --bs-btn-color: #fff; --bs-btn-bg: var(--tampon); --bs-btn-border-color: var(--tampon); --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #57286f; --bs-btn-hover-border-color: #57286f; --bs-btn-active-bg: #4a2160; }
.form-control, .form-select { border-radius: 8px; border-color: #cfd6df; }
.form-control:focus, .form-select:focus { border-color: var(--tampon); box-shadow: 0 0 0 .2rem rgba(109, 58, 142, .18); }
.form-label { font-weight: 500; margin-bottom: .3rem; }
.form-text { color: var(--texte-doux); }
.champ-piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Le « tampon » : numéro de dossier façon cachet violet */
.tampon { display: inline-block; border: 2px solid var(--tampon); color: var(--tampon); border-radius: 4px; padding: .05rem .5rem;
  font-weight: 600; letter-spacing: .04em; transform: rotate(-2deg); direction: ltr; unicode-bidi: isolate; background: rgba(255,255,255,.6); }
.tampon-petit { font-size: .85rem; border-width: 1.5px; transform: none; }

/* ---------------------------------------------------------------- Vitrine */
.entete-vitrine { background: var(--surface); border-bottom: 1px solid var(--filet); }
.entete-vitrine .navbar-brand { color: var(--encre); font-weight: 600; display: flex; align-items: center; gap: .55rem; }
.entete-vitrine .nav-link { color: var(--texte); }
.entete-vitrine .nav-link:hover { color: var(--encre-claire); }
.marque-logo { width: 30px; height: 30px; flex: none; }

.heros { padding: 4.5rem 0 4rem; }
.heros h1 { font-family: var(--police-titre); font-weight: 700; font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.15;
  letter-spacing: -0.015em; max-width: 15ch; }
[dir="rtl"] .heros h1 { line-height: 1.45; max-width: 16ch; }
.heros .chapeau { font-size: 1.15rem; color: var(--texte-doux); max-width: 34rem; margin: 1.25rem 0 2rem; }
.heros .garanties { list-style: none; padding: 0; margin: 2rem 0 0; color: var(--texte-doux); font-size: .95rem; }
.heros .garanties li { display: flex; gap: .5rem; align-items: baseline; margin-bottom: .35rem; }
.heros .garanties i { color: var(--succes); }

/* Conversation WhatsApp (élément signature de la page) */
.conversation { background: var(--wa-fond); border-radius: 22px; padding: 0 0 1.25rem; max-width: 430px; margin-inline: auto;
  box-shadow: 0 30px 60px -30px rgba(21, 50, 77, .45); overflow: hidden; border: 1px solid #d8cfc4; }
.conversation-entete { background: #075e54; color: #fff; padding: .8rem 1.1rem; display: flex; align-items: center; gap: .7rem; }
.conversation-entete .avatar { width: 36px; height: 36px; border-radius: 50%; background: #dfe9e7; color: #075e54; display: grid;
  place-items: center; font-family: var(--police-titre); font-weight: 700; }
.conversation-entete small { display: block; opacity: .8; font-size: .78rem; }
.fil { padding: 1rem 1rem 0; display: flex; flex-direction: column; gap: .55rem; }
.bulle { max-width: 86%; padding: .5rem .75rem .35rem; border-radius: 10px; font-size: .9rem; line-height: 1.5;
  box-shadow: 0 1px .5px rgba(0,0,0,.13); white-space: pre-line; unicode-bidi: plaintext; text-align: start; }
.bulle .heure { display: block; text-align: end; font-size: .7rem; color: #667781; margin-top: .15rem; }
.bulle-client { align-self: flex-end; background: var(--wa-sortant); border-end-end-radius: 3px; }
.bulle-cabinet { align-self: flex-start; background: #fff; border-end-start-radius: 3px; }
.bulle-cabinet strong { color: #075e54; }
.bulle-cabinet .statut-ligne { display: block; font-weight: 600; color: var(--texte); }
.saisie-en-cours { align-self: flex-start; background: #fff; border-radius: 10px; padding: .55rem .8rem; display: inline-flex; gap: 4px; }
.saisie-en-cours span { width: 6px; height: 6px; background: #9aa7ad; border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) {
  .conversation .apparait { opacity: 0; animation: apparition .45s ease-out forwards; }
  .conversation .apres-1 { animation-delay: .5s; }
  .conversation .saisie-en-cours { animation: apparition .3s ease-out 1s forwards, disparition .2s ease-in 2.1s forwards; opacity: 0; }
  .conversation .apres-2 { animation-delay: 2.3s; }
}
@media (prefers-reduced-motion: reduce) { .conversation .saisie-en-cours { display: none; } }
@keyframes apparition { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes disparition { to { opacity: 0; height: 0; padding: 0; margin: 0; } }

.section { padding: 4.5rem 0; }
.section-claire { background: var(--surface); border-block: 1px solid var(--filet); }
.section h2 { font-family: var(--police-titre); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.25rem); margin-bottom: .75rem; }
.section .intro { color: var(--texte-doux); max-width: 40rem; margin-bottom: 2.5rem; font-size: 1.05rem; }

.etapes { list-style: none; padding: 0; margin: 0; counter-reset: etape; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.etapes li { counter-increment: etape; position: relative; padding-top: 3.2rem; }
.etapes li::before { content: counter(etape); position: absolute; top: 0; inset-inline-start: 0; font-family: var(--police-titre);
  font-size: 2.6rem; line-height: 1; color: var(--tampon); }
.etapes h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.etapes p { color: var(--texte-doux); margin: 0; }

.partage { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; border: 1px solid var(--filet); border-radius: 14px; overflow: hidden; background: var(--surface); }
.partage > div { padding: 1.75rem 2rem; }
.partage .cote-cabinet { background: var(--encre); color: #e6edf5; }
.partage .cote-cabinet h3 { color: #fff; }
.partage ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.partage li { display: flex; gap: .6rem; align-items: baseline; padding: .3rem 0; }
.partage .cote-cabinet i { color: #c9b6d8; }
.partage .cote-ligne i { color: var(--succes); }
.partage .note { font-size: .88rem; color: var(--texte-doux); margin-top: 1rem; }
@media (max-width: 767.98px) { .partage { grid-template-columns: 1fr; } }

.calculateur { background: var(--surface); border: 1px solid var(--filet); border-radius: 14px; padding: 2rem; }
.calculateur .resultat { font-family: var(--police-titre); font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--tampon); line-height: 1; }
.calculateur .resultat-libelle { color: var(--texte-doux); }

.carte-plan { position: relative; background: var(--surface); border: 1px solid var(--filet); border-radius: 14px; padding: 1.6rem; height: 100%; display: flex; flex-direction: column; }
.carte-plan.conseille { border: 2px solid var(--tampon); }
.carte-plan .prix { font-family: var(--police-titre); font-size: 2.4rem; color: var(--encre); line-height: 1.1; }
.carte-plan .prix small { font-family: var(--police-texte); font-size: .9rem; color: var(--texte-doux); }
.carte-plan ul { list-style: none; padding: 0; margin: 1.1rem 0 1.5rem; flex: 1; }
.carte-plan li { padding: .25rem 0; display: flex; gap: .5rem; }
.carte-plan li i { color: var(--succes); }
.etiquette-conseil { position: absolute; top: -.8rem; inset-inline-start: 1.25rem; background: var(--tampon); color: #fff; border-radius: 999px;
  padding: .12rem .75rem; font-size: .8rem; font-weight: 600; }

.pied { background: var(--encre); color: #b9c6d3; padding: 3rem 0 2rem; font-size: .92rem; }
.pied a { color: #e6edf5; }
.pied h3 { color: #fff; font-size: 1rem; }

/* Pages de texte (protection des données, mentions) */
.texte-long { max-width: 46rem; }
.texte-long h2 { font-family: var(--police-titre); margin-top: 2rem; }
.texte-long p, .texte-long li { color: #2f3a48; }

/* ---------------------------------------------------------------- Authentification */
.page-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.page-auth .volet { background: var(--encre); color: #dbe4ee; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.page-auth .volet h2 { color: #fff; font-family: var(--police-titre); font-size: 2rem; max-width: 18ch; }
.page-auth .formulaire { display: grid; place-items: center; padding: 3rem 1.5rem; }
.page-auth .formulaire > div { width: 100%; max-width: 420px; }
@media (max-width: 991.98px) { .page-auth { grid-template-columns: 1fr; } .page-auth .volet { display: none; } }

/* ---------------------------------------------------------------- Espace cabinet et administration */
.espace { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(to right, var(--encre) 250px, var(--papier) 250px); }
[dir="rtl"] .espace { background: linear-gradient(to left, var(--encre) 250px, var(--papier) 250px); }
.barre-laterale { background: var(--encre); color: #c8d4e0; padding: 1.25rem 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.barre-laterale .marque { color: #fff; font-weight: 600; display: flex; align-items: center; gap: .55rem; padding: 0 1.25rem 1rem; text-decoration: none; }
.barre-laterale .cabinet-nom { padding: 0 1.25rem 1rem; font-size: .85rem; color: #9fb2c4; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: .75rem; }
.barre-laterale .groupe { font-size: .78rem; color: #8ea3b8; padding: .9rem 1.25rem .3rem; }
.barre-laterale a.lien { display: flex; align-items: center; gap: .65rem; color: #d7e1ea; text-decoration: none; padding: .45rem 1.25rem;
  border-inline-start: 3px solid transparent; font-size: .95rem; }
.barre-laterale a.lien:hover { background: rgba(255,255,255,.06); color: #fff; }
.barre-laterale a.lien.active { background: rgba(255,255,255,.09); color: #fff; border-inline-start-color: #b993d4; }
.barre-laterale a.lien i { width: 1.1rem; opacity: .85; }
.principal { padding: 1.75rem 2.25rem 3rem; min-width: 0; }
.barre-haute { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.barre-haute h1 { margin: 0; font-size: 1.55rem; }
.barre-haute .sous-titre { color: var(--texte-doux); margin: .15rem 0 0; }
.bouton-menu { display: none; }
@media (max-width: 991.98px) {
  .espace, [dir="rtl"] .espace { grid-template-columns: 1fr; background: var(--papier); }
  .barre-laterale { position: fixed; inset-block: 0; inset-inline-start: 0; width: 270px; z-index: 1040; transform: translateX(-100%); transition: transform .2s; }
  [dir="rtl"] .barre-laterale { transform: translateX(100%); }
  .barre-laterale.ouverte { transform: none !important; }
  .principal { padding: 1.25rem 1rem 2.5rem; }
  .bouton-menu { display: inline-flex; }
}

.panneau { background: var(--surface); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 1.35rem 1.5rem; margin-bottom: 1.5rem; }
.panneau > h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.panneau-titre { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.panneau-titre h2 { margin: 0; font-size: 1.1rem; }

/* Bandeau « temps économisé » : l'indicateur principal du tableau de bord */
.bandeau-gain { background: var(--encre); color: #dfe7ef; border-radius: var(--rayon); padding: 1.6rem 1.8rem; margin-bottom: 1.5rem;
  display: grid; grid-template-columns: auto 1fr; gap: .4rem 2rem; align-items: center; }
.bandeau-gain .valeur { font-family: var(--police-titre); font-size: 3.2rem; line-height: 1; color: #fff; grid-row: span 2; }
.bandeau-gain .libelle { color: #fff; font-weight: 600; font-size: 1.05rem; }
.bandeau-gain .detail { color: #b7c6d6; font-size: .92rem; }
@media (max-width: 575.98px) { .bandeau-gain { grid-template-columns: 1fr; } .bandeau-gain .valeur { grid-row: auto; } }

.indicateurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.indicateur { background: var(--surface); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 1rem 1.15rem; }
.indicateur .nombre { font-size: 1.7rem; font-weight: 600; color: var(--encre); font-variant-numeric: tabular-nums; line-height: 1.2; }
.indicateur .nom { color: var(--texte-doux); font-size: .9rem; }
.jauge { height: 6px; background: var(--encre-pale); border-radius: 3px; margin-top: .6rem; overflow: hidden; }
.jauge > span { display: block; height: 100%; background: var(--encre-claire); border-radius: 3px; }
.jauge.haute > span { background: var(--alerte); }
.jauge.pleine > span { background: var(--danger); }

.graphique { width: 100%; height: auto; display: block; direction: ltr; }
.graphique rect { fill: var(--encre-claire); }
.graphique rect.vide { fill: var(--encre-pale); }
.graphique text { font-size: 10px; fill: var(--texte-doux); }

.table { --bs-table-bg: transparent; font-size: .93rem; margin-bottom: 0; }
.table thead th { color: var(--texte-doux); font-weight: 500; font-size: .85rem; border-bottom-width: 1px; white-space: nowrap; }
.table td { vertical-align: middle; }
.vide { text-align: center; color: var(--texte-doux); padding: 2.5rem 1rem; }
.vide i { font-size: 1.8rem; display: block; margin-bottom: .5rem; color: #9aa6b4; }

.pastille { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 500; padding: .12rem .55rem; border-radius: 999px;
  background: var(--encre-pale); color: var(--encre); white-space: nowrap; }
.pastille::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pastille-succes { background: #e3f3ea; color: var(--succes); }
.pastille-alerte { background: #fbf0dc; color: var(--alerte); }
.pastille-danger { background: #fbe7e5; color: var(--danger); }
.pastille-neutre { background: #eceff3; color: #586474; }
.pastille-tampon { background: var(--tampon-pale); color: var(--tampon); }

.secret { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; direction: ltr; text-align: left; }
.cle-unique { background: #fff8e6; border: 1px solid #f0d58c; border-radius: var(--rayon); padding: 1rem 1.2rem; }
.apercu-message { background: var(--wa-fond); border-radius: 12px; padding: 1rem; }
.apercu-message .bulle { max-width: 100%; }
.trace { font-size: .85rem; color: var(--texte-doux); }
.qr svg { width: 180px; height: 180px; }

.alerte-demo { background: var(--tampon-pale); border: 1px solid #dccbe8; color: #4a2160; border-radius: var(--rayon); padding: .7rem 1rem; margin-bottom: 1.25rem; }

/* ---------------------------------------------------------------- Page publique de suivi */
.page-suivi { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.carte-suivi { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--filet); border-radius: 16px; overflow: hidden; }
.carte-suivi .tete { background: var(--encre); color: #fff; padding: 1.4rem 1.5rem; }
.carte-suivi .tete img { max-height: 48px; max-width: 160px; background: #fff; border-radius: 6px; padding: 4px; margin-bottom: .6rem; }
.carte-suivi .corps { padding: 1.5rem; }
.carte-suivi .statut { font-family: var(--police-titre); font-size: 1.7rem; color: var(--encre); line-height: 1.3; margin: .8rem 0 1.2rem; }
.carte-suivi dl { margin: 0; }
.carte-suivi dt { color: var(--texte-doux); font-weight: 400; font-size: .88rem; }
.carte-suivi dd { margin: 0 0 .9rem; font-weight: 500; }
.carte-suivi .pied-carte { border-top: 1px solid var(--filet); padding: 1rem 1.5rem; font-size: .8rem; color: var(--texte-doux); }

@media print { .barre-laterale, .barre-haute .btn, .pied { display: none !important; } .espace { display: block; } }

/* ---------------------------------------------------------------- Pages intérieures de la vitrine */
.page-titre { padding: 3.5rem 0 1.25rem; }
.page-titre h1 { font-family: var(--police-titre); font-weight: 700; font-size: clamp(2.1rem, 4vw, 2.9rem); line-height: 1.2; margin-bottom: .75rem; }
.page-titre p { color: var(--texte-doux); max-width: 42rem; font-size: 1.08rem; margin: 0; }
.encadre { display: flex; gap: 1rem; align-items: flex-start; background: var(--tampon-pale); border: 1px solid #dccbe8; border-radius: var(--rayon);
  padding: 1rem 1.25rem; color: #3d2350; }
.encadre > i { font-size: 1.35rem; color: var(--tampon); line-height: 1.3; }
.encadre-vertical { display: block; background: var(--surface); border-color: var(--filet); color: var(--texte); padding: 1.5rem; }
.tableau-comparaison th[scope="row"] { font-weight: 400; color: var(--texte); }
.tableau-comparaison thead th { font-family: var(--police-titre); font-size: 1.15rem; color: var(--encre); }
.tableau-comparaison td, .tableau-comparaison thead th:not(:first-child) { text-align: center; }
.faq { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--filet); padding: .9rem 0; }
.faq summary { font-weight: 600; color: var(--encre); cursor: pointer; }
.faq details p { margin: .6rem 0 0; color: #2f3a48; }
.sommaire { position: sticky; top: 1.5rem; display: flex; flex-direction: column; gap: .15rem; border-inline-start: 2px solid var(--filet); }
.sommaire a { padding: .25rem 1rem; color: var(--texte-doux); text-decoration: none; font-size: .92rem; margin-inline-start: -2px;
  border-inline-start: 2px solid transparent; }
.sommaire a:hover { color: var(--encre); border-inline-start-color: var(--tampon); }
.texte-long h3 { font-size: 1.02rem; margin-top: 1.4rem; }
.modele-mention { background: var(--surface); border: 1px solid var(--filet); border-inline-start: 4px solid var(--tampon); border-radius: 8px;
  padding: 1rem 1.25rem; font-size: .95rem; }
.fiche { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: .45rem 1.25rem; margin-bottom: 0; }
.fiche dt { color: var(--texte-doux); font-weight: 400; }
.fiche dd { margin: 0; min-width: 0; }
.fiche-compacte { font-size: .93rem; gap: .3rem 1rem; }
@media (max-width: 575.98px) { .fiche { grid-template-columns: 1fr; gap: .1rem; } .fiche dd { margin-bottom: .5rem; } }
.page-erreur { max-width: 34rem; margin: 2rem auto; text-align: center; }
.page-erreur .code-erreur { font-size: 1.6rem; margin-bottom: 1.25rem; }
.page-erreur h1 { font-family: var(--police-titre); font-size: 1.9rem; }
.icone-grande { font-size: 2.8rem; color: var(--encre-claire); }

/* ---------------------------------------------------------------- Espace : formulaires, listes */
.filtres { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.filtres .form-control { flex: 1 1 16rem; max-width: 26rem; }
.filtres .form-select { flex: 0 1 15rem; }
.panneau.p-0 .table th:first-child, .panneau.p-0 .table td:first-child { padding-inline-start: 1.25rem; }
.panneau.p-0 .table th:last-child, .panneau.p-0 .table td:last-child { padding-inline-end: 1.25rem; }
.panneau.p-0 .vide { padding: 3rem 1.5rem; }
.table-lignes tbody tr:last-child td { border-bottom: 0; }
.table-formulaire td { vertical-align: middle; }
.table-formulaire .ligne-nouvelle td { background: #fbfcfd; }
.mise-en-route { border-color: #dccbe8; }
.liste-etapes { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.liste-etapes li { display: flex; gap: .75rem; align-items: flex-start; }
.liste-etapes li > i { color: #9aa6b4; font-size: 1.15rem; line-height: 1.4; }
.liste-etapes li.faite > i { color: var(--succes); }
.liste-etapes li.faite a { color: var(--texte-doux); text-decoration: line-through; }
.liste-modeles { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--filet); border-radius: var(--rayon); overflow: hidden; }
.liste-modeles a { padding: .6rem 1rem; color: var(--texte); text-decoration: none; border-bottom: 1px solid var(--filet); font-size: .93rem; }
.liste-modeles a:last-child { border-bottom: 0; }
.liste-modeles a:hover { background: var(--papier); }
.liste-modeles a.active { background: var(--encre); color: #fff; }
.variables { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; font-size: .92rem; }
.variables dt code { color: var(--tampon); direction: ltr; unicode-bidi: isolate; }
.variables dd { margin: 0; color: var(--texte-doux); }
.etapes-config { padding-inline-start: 1.2rem; display: grid; gap: 1.1rem; margin-bottom: 0; }
.etapes-config li::marker { color: var(--tampon); font-weight: 600; }
.fil-test { display: flex; flex-direction: column; gap: .6rem; }
.fil-test .bulle { max-width: 88%; }
.fil-test .bulle-client { align-self: flex-end; }
.trace { padding-inline-start: 1.1rem; margin: 0; display: grid; gap: .3rem; }
.contenu-message summary { font-size: .82rem; color: var(--encre-claire); cursor: pointer; }
.contenu-message .bulle { margin-top: .4rem; max-width: 26rem; font-size: .85rem; background: var(--wa-fond); }
.quotas { display: grid; gap: .9rem; }
.quotas > div { display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; font-size: .93rem; }
.quotas > div .jauge, .quotas > div .small { grid-column: 1 / -1; }
.logo-cabinet { max-height: 72px; max-width: 200px; border: 1px solid var(--filet); border-radius: 8px; padding: 6px; background: #fff; }
.zone-danger { border-color: #efc4bf; }
.zone-danger > h2 { color: var(--danger); }
.code-otp { letter-spacing: .3em; font-size: 1.4rem; }
.simulateur .pastille { margin-bottom: 1rem; }
.prospect { padding: 1.1rem 1.25rem; }
.texte-prospect { white-space: pre-line; background: var(--papier); border-radius: 8px; padding: .6rem .8rem; }
.carte-suivi .langue-suivi + .langue-suivi { border-top: 1px dashed var(--filet); margin-top: 1rem; padding-top: .25rem; }
.carte-suivi .corps .tampon { font-size: 1.15rem; }

/* Cases à cocher et interrupteurs aux couleurs de l'interface */
.form-check-input:checked { background-color: var(--encre); border-color: var(--encre); }
.form-check-input:focus { border-color: var(--tampon); box-shadow: 0 0 0 .2rem rgba(109, 58, 142, .18); }
.form-switch .form-check-input:focus:not(:checked) { --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%236d3a8e'/%3e%3c/svg%3e"); }
.bandeau-gain a { color: #d9c6e6; }
.ref { direction: ltr; unicode-bidi: isolate; display: inline-block; white-space: nowrap; }
[dir="rtl"] td.chiffres { direction: ltr; text-align: right; }
