:root {
  color-scheme: light;
  --marque: #16224a;
  --fond: #f4f5f7;
  --carte: #ffffff;
  --texte: #1f2430;
  --discret: #6b7280;
  --trait: #e3e6eb;
  --ok: #2f7d32;
  --ok-fond: #e8f4e9;
  --attente: #8a5a00;
  --attente-fond: #fdf3dc;
  --alerte: #b42318;
  --alerte-fond: #fdecea;
  --rayon: 10px;
  /* charte : surchargée par société plus bas */
  --accent: var(--marque);
  --accent-texte: #fff;
  --bandeau-fond: var(--marque);
  --bandeau-texte: #fff;
  --filet: transparent;
  --police-titres: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --police-texte: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --titres-poids: 700;
  --titres-echelle: 1;
  --rayon-bouton: 8px;
  --casse-bouton: none;
  --espacement-bouton: 0;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font: 16px/1.5 var(--police-texte);
}
a { color: var(--marque); }
.interieur { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.interieur.large { max-width: 1100px; }

.bandeau { background: var(--bandeau-fond); color: var(--bandeau-texte); border-bottom: 3px solid var(--filet); }
.bandeau .interieur { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.marque { color: var(--bandeau-texte); text-decoration: none; display: flex; align-items: center; }
.marque .nom { font-weight: 700; font-size: 18px; letter-spacing: .2px; }
.marque .logo { height: 48px; width: auto; display: block; }
.soustitre { opacity: .8; font-size: 14px; }
.sortie { color: var(--bandeau-texte); font-size: 14px; opacity: .9; white-space: nowrap; }

main.interieur { padding-top: 28px; padding-bottom: 32px; }
.titre { font-size: calc(26px * var(--titres-echelle)); margin: 0 0 4px; }
h1 { font-size: calc(22px * var(--titres-echelle)); margin: 0 0 12px; line-height: 1.25; }
h2 { font-size: calc(18px * var(--titres-echelle)); margin: 0; }
h1, h2, .titre { font-family: var(--police-titres); font-weight: var(--titres-poids); color: var(--marque); }
.discret { color: var(--discret); font-size: 14px; }
.petit { font-size: 13px; }
.fil { margin: 0 0 12px; font-size: 14px; }
.fil a { text-decoration: none; }

.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 22px; margin: 16px 0; }
.carte.etroite { max-width: 460px; margin: 24px auto; }

label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
input[type=email], input[type=text], input[type=password], input[type=number], input[type=search], input[type=date], input[type=tel], input[type=url], input:not([type]), select, textarea {
  width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #c9ced6; border-radius: 8px;
  background: #fff; color: var(--texte); -webkit-text-fill-color: var(--texte);
}
input::placeholder, textarea::placeholder { color: #8a909c; -webkit-text-fill-color: #8a909c; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--marque); outline-offset: 1px; border-color: var(--marque); }
input.code { font-size: 26px; letter-spacing: 8px; text-align: center; font-variant-numeric: tabular-nums; }
.case { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 15px; background: var(--fond); padding: 14px; border-radius: 8px; }
.case input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--marque); }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  padding: 10px 18px; border-radius: var(--rayon-bouton); border: 1px solid var(--marque); background: #fff; color: var(--marque);
  text-transform: var(--casse-bouton); letter-spacing: var(--espacement-bouton);
}
.bouton.plein { background: var(--accent); border-color: var(--accent); color: var(--accent-texte); }
form > .bouton.plein { width: 100%; margin-top: 18px; padding: 13px; }
.bouton:hover { filter: brightness(1.08); }
.lien { background: none; border: 0; padding: 0; color: var(--marque); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }

.flash { padding: 12px 14px; border-radius: 8px; margin-bottom: 12px; font-size: 15px; }
.flash.ok { background: var(--ok-fond); color: var(--ok); }
.flash.erreur { background: var(--alerte-fond); color: var(--alerte); }
.flash.info { background: #eef2f8; color: var(--marque); }

.badge { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge.ok { background: var(--ok-fond); color: var(--ok); }
.badge.attente { background: var(--attente-fond); color: var(--attente); }
.badge.alerte { background: var(--alerte-fond); color: var(--alerte); }

.entete-dossier { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.etiquette { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--discret); }
.devis {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 18px; padding: 16px; border-radius: 8px; background: var(--fond); border-left: 4px solid var(--accent);
}
.devis > div:first-child { display: flex; flex-direction: column; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.documents { list-style: none; padding: 0; margin: 16px 0 0; }
.documents li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--trait); flex-wrap: wrap; }
.documents a { text-decoration: none; display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.documents .doc-texte { display: flex; flex-direction: column; min-width: 0; }
.documents .type { font-weight: 600; }
.documents .nomfichier { font-size: 13px; color: var(--discret); overflow-wrap: anywhere; }
.documents .doc-note { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--attente); }
.documents .meta { font-size: 13px; color: var(--discret); }

.onglets { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--trait); }
.onglets a { padding: 8px 12px; text-decoration: none; color: var(--discret); border-bottom: 2px solid transparent; font-size: 15px; }
.onglets a.actif { color: var(--marque); border-color: var(--marque); font-weight: 600; }
.tableau { width: 100%; border-collapse: collapse; font-size: 14px; }
.tableau th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--discret); padding: 6px 8px; }
.tableau td { border-top: 1px solid var(--trait); padding: 9px 8px; vertical-align: top; overflow-wrap: anywhere; }
.tableau tr.inactif td { opacity: .5; }
.carte:has(> .tableau) { overflow-x: auto; }
.ligne-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.ligne-form label { flex: 1 1 200px; margin: 0; }
.ligne-form .bouton { width: auto; margin: 0; }
.recherche { display: flex; gap: 8px; margin: 12px 0; }
.recherche input { flex: 1; }

.pied { color: var(--discret); font-size: 13px; padding-bottom: 32px; text-align: center; }
.pied a { color: var(--discret); }

@media (max-width: 520px) {
  .carte { padding: 16px; }
  .titre { font-size: 22px; }
  .marque .nom { font-size: 16px; }
  main.interieur { padding-top: 20px; }
  .devis .actions { width: 100%; }
  .devis .actions .bouton { flex: 1; text-align: center; }
}

/* bibliothèque et fiche dossier */
.cases { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.case-inline { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; font-size: 14px; margin: 0; }
.case-inline input { accent-color: var(--marque); }
.badge.gris { background: #eef1f5; color: #475569; }
details summary { cursor: pointer; color: var(--marque); margin-top: 6px; }
details form { background: var(--fond); padding: 10px 12px; border-radius: 8px; margin-top: 6px; }
details form p { margin: 8px 0 4px; }
label.lien { display: inline; font-weight: 400; margin: 0; }

/* Chartes des sociétés : variables écrites par page() d'après la fiche société saisie dans l'administration */
@media (max-width: 520px) { .marque .logo { height: 40px; } }

/* Zone de signature du devis */
.pad-signature { position: relative; border: 2px dashed #c9ced6; border-radius: 8px; background: #fff; touch-action: none; }
.pad-signature canvas { display: block; width: 100%; height: 160px; cursor: crosshair; touch-action: none; }
.pad-signature .pad-ligne { position: absolute; left: 16px; right: 16px; bottom: 34px; border-top: 1px solid #d5d9e0; color: #9aa1ad; font-size: 12px; padding-top: 4px; pointer-events: none; }
.pad-signature.signe { border-style: solid; border-color: var(--accent); }
.pad-signature.signe .pad-ligne { color: transparent; }

/* Devis affiché dans la page de signature */
.visionneuse { background: #525659; padding: 14px 12px; border-radius: 8px; margin-bottom: 18px; }
.visionneuse .outils { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #fff; font-size: 13px; margin-bottom: 10px; }
.visionneuse .outils a { color: #fff; }
iframe.pdf { display: block; width: 100%; height: 78vh; border: 0; background: #fff; }

/* Déclaration de valeur et arrhes (v1.1) */
.devis.ok { border-left-color: var(--ok); }
.devis.attente { border-left-color: var(--attente); }
.devis + .devis, .devis + form.coordonnees { margin-top: 12px; }
.montant { font-size: 22px; font-weight: 700; color: var(--marque); white-space: nowrap; }
.devis.total { background: #fff; border: 1px solid var(--trait); border-left: 4px solid var(--accent); margin-top: 14px; }
.defile { overflow-x: auto; }
table.dv { min-width: 560px; }
table.dv td { padding: 6px 6px; }
table.dv input, table.dv select { margin: 0; width: 100%; }
table.dv td:nth-child(3) { width: 120px; }
.droite { text-align: right; }
form.coordonnees { background: var(--fond); padding: 14px; border-radius: 8px; }
form#form-dv .actions { margin-top: 18px; justify-content: flex-end; }

/* Administration (v1.1) : aperçu de charte, tableau de bord, mise en route */
.apercu { border: 1px solid var(--trait); border-radius: 8px; overflow: hidden; margin-bottom: 8px; max-width: 520px; }
.ap-bandeau { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; color: #fff; min-height: 52px; }
.ap-marque img { height: 32px; display: block; }
.ap-marque { font-weight: 700; } .ap-sous { font-size: 12px; opacity: .8; }
.ap-corps { padding: 14px; }
.ap-carte { background: #fff; border: 1px solid var(--trait); border-radius: 8px; padding: 14px; }
.ap-titre { font-size: 18px; font-weight: 700; margin-bottom: 4px; } .ap-texte { font-size: 13px; color: #555; margin-bottom: 10px; }
.ap-bouton { display: inline-block; padding: 9px 14px; font-weight: 600; font-size: 13px; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 18px; }
.tuile { background: var(--carte); border: 1px solid var(--trait); border-radius: 8px; padding: 12px; text-decoration: none; color: var(--texte); display: flex; flex-direction: column; gap: 2px; }
.tuile-n { font-size: 24px; font-weight: 700; } .tuile-l { font-size: 13px; color: var(--discret); }
.tuile.attente .tuile-n { color: var(--attente); } .tuile.ok .tuile-n { color: var(--ok); } .tuile.alerte { border-color: var(--alerte); } .tuile.alerte .tuile-n { color: var(--alerte); }
.mise-en-route ol { margin: 0; padding-left: 20px; } .mise-en-route li { margin: 6px 0; } .mise-en-route li.fait { color: var(--discret); }

/* Espace client (v1.1) : étapes, contact, accessibilité */
.etapes { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 14px 0 4px; font-size: 14px; }
.etapes li { display: flex; align-items: center; gap: 8px; color: var(--discret); }
.etapes .puce { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--trait); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; background: #fff; }
.etapes li.fait { color: var(--texte); } .etapes li.fait .puce { background: var(--ok); border-color: var(--ok); color: #fff; }
.etapes li.encours { color: var(--texte); font-weight: 600; } .etapes li.encours .puce { border-color: var(--accent); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 11px var(--accent); }
.contact p { margin: 4px 0; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: -9999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 10; border-radius: 6px; }
.evitement:focus { left: 16px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .bouton:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 520px) {
  .devis { flex-direction: column; align-items: stretch; } .devis .actions { width: 100%; } .devis .actions .bouton { flex: 1; text-align: center; }
  .montant { font-size: 20px; }
}
@media (max-width: 600px) {
  table.dv { min-width: 0; } table.dv thead { display: none; }
  table.dv tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; padding: 12px 0; border-top: 1px solid var(--trait); }
  table.dv td { display: block; border: 0; padding: 0; width: auto !important; }
  table.dv td:first-child { grid-column: 1 / -1; }
  table.dv td::before { content: attr(data-label); display: block; font-size: 12px; color: var(--discret); margin-bottom: 2px; }
}

/* Un seul aspect, clair : les contrôles natifs ne prennent jamais les couleurs d'un thème sombre (texte blanc sur blanc) */
:root, :root[data-theme="dark"], :root[data-theme="light"] { color-scheme: light !important; }
button, input, select, textarea { color: var(--texte); }
.bouton { color: var(--marque); } .bouton.plein { color: var(--accent-texte); } .lien { color: var(--marque); }
.pad-signature .pad-ligne { color: #6b7280; }

/* v1.2 : dates souhaitées, raccourci vers la signature, confirmation */
fieldset.dates-souhaitees { border: 1px solid var(--trait); border-radius: 8px; padding: 14px; margin: 16px 0; }
fieldset.dates-souhaitees legend { font-weight: 700; padding: 0 6px; }
.avertissement { background: var(--attente-fond); color: var(--attente); border-left: 4px solid var(--attente); padding: 10px 12px; border-radius: 6px; margin: 0 0 12px; font-size: 14px; }
.ascenseur { position: fixed; right: max(12px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); z-index: 20;
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; border-radius: 999px;
  background: var(--accent); color: var(--accent-texte); text-decoration: none; font-weight: 700; font-size: 13px; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: opacity .2s, transform .2s; }
.ascenseur span[aria-hidden] { font-size: 20px; line-height: 1; }
.ascenseur-texte { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: 1px; text-transform: uppercase; }
.ascenseur.cache { opacity: 0; pointer-events: none; transform: translateY(-50%) translateX(12px); }
@media (prefers-reduced-motion: reduce) { .ascenseur { transition: none; } }
.devis.inactif { border-left-color: var(--trait); opacity: .75; }
.devis.confirme { background: var(--ok-fond); }
/* Fenêtre « date pas encore réservée » (couleurs explicites : lisible même sous un hôte en thème sombre) */
.fenetre-ouverte, .fenetre-ouverte body { overflow: hidden; }
.fenetre-dates { position: fixed; inset: 0; z-index: 50; background: rgba(15, 20, 30, .62); display: flex; align-items: center; justify-content: center; padding: 16px; }
.boite-dates { background: #fff; color: #1f2430; border-radius: 14px; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  padding: 24px 22px 20px; box-shadow: 0 24px 70px rgba(0,0,0,.4); border-top: 6px solid #b7791f; text-align: center; }
.boite-dates .fd-icone { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 10px; background: #fdf3dc; color: #8a5a00; font: 700 26px/46px Arial, sans-serif; }
.boite-dates h2 { margin: 0 0 12px; font-size: 20px; color: #1f2430; }
.boite-dates p { margin: 0 0 10px; font-size: 15px; line-height: 1.5; color: #1f2430; }
.boite-dates .fd-date { background: #fdf3dc; color: #5c3d00; border-radius: 8px; padding: 10px; }
.boite-dates .fd-boutons { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.boite-dates .fd-boutons .bouton { width: 100%; justify-content: center; }
.boite-dates .fd-modifier { background: #fff; color: #1f2430; border: 1px solid #c9ced6; }
.dates-souhaitees .ligne-form label { flex: 1 1 130px; }
/* Bibliothèque en cartes, avec miniature du fichier (v1.4) */
.grille-biblio { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 16px 0; }
.fiche-doc { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(20,30,50,.05); transition: box-shadow .15s, transform .15s; }
.fiche-doc:hover { box-shadow: 0 8px 24px rgba(20,30,50,.12); transform: translateY(-2px); }
.fiche-doc.inactif { opacity: .62; }
.fd-apercu { position: relative; display: block; text-decoration: none; color: inherit; aspect-ratio: 4 / 3; background: #eef0f4; overflow: hidden; border-bottom: 1px solid var(--trait); }
.fd-apercu img { width: 78%; margin: 14px auto 0; display: block; background: #fff; box-shadow: 0 4px 14px rgba(20,30,50,.18); border-radius: 2px; }
.fd-nature { position: absolute; left: 10px; bottom: 10px; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; background: #fff; color: #1f2430; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.fd-etat { position: absolute; right: 10px; top: 10px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #5a5f6e; color: #fff; }
.fd-corps { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.fd-corps h2 { font-size: 16px; margin: 0; line-height: 1.3; }
.fd-corps p { margin: 0; }
.fd-corps details { margin-top: 6px; }
.fd-actions { display: flex; gap: 14px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--trait); }
.fd-actions form { margin: 0; }
/* vignette de repli : page stylisée, type de fichier en grand */
.vignette { width: 78%; height: 100%; margin: 14px auto 0; background: #fff; box-shadow: 0 4px 14px rgba(20,30,50,.18); border-radius: 2px;
  border-top: 10px solid var(--nat, #5a5f6e); display: flex; flex-direction: column; align-items: flex-start; padding: 12px 14px; gap: 8px; }
.vignette .v-ext { font: 800 22px/1 Arial, sans-serif; color: var(--nat, #5a5f6e); letter-spacing: 1px; }
.vignette .v-titre { font-size: 11px; color: #5a5f6e; line-height: 1.3; order: -1; }
.vignette .v-lignes { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.vignette .v-lignes i { display: block; height: 5px; border-radius: 3px; background: #e3e6eb; }
.vignette .v-lignes i:nth-child(2) { width: 82%; } .vignette .v-lignes i:nth-child(4) { width: 64%; }
.nature-cgv { --nat: #1f3a68; } .nature-inventaire { --nat: #0f766e; } .nature-declaration_valeur { --nat: #6d28d9; }
.nature-guide { --nat: #15803d; } .nature-assurance { --nat: #1d4ed8; } .nature-reglement { --nat: #b45309; } .nature-autre { --nat: #5a5f6e; }
.fd-nature::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--nat, #5a5f6e); margin-right: 6px; vertical-align: 1px; }
.fd-corps .badge { white-space: normal; line-height: 1.35; }
.vignette .v-ext, .vignette .v-titre { text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .fiche-doc { transition: none; } .fiche-doc:hover { transform: none; } }
/* Bibliothèque : filtre et sections par société */
.filtres-soc { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.filtres-soc a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--trait); background: var(--carte);
  color: var(--texte, #1f2430); text-decoration: none; font-weight: 600; font-size: 14px; }
.filtres-soc a span { font-weight: 600; font-size: 12px; color: #5a5f6e; background: #eef0f4; border-radius: 999px; padding: 1px 7px; }
.filtres-soc a i, .titre-section i { width: 10px; height: 10px; border-radius: 50%; background: var(--soc, #5a5f6e); display: inline-block; }
.filtres-soc a[aria-current] { background: #1f2430; border-color: #1f2430; color: #fff; }
.filtres-soc a[aria-current] span { background: rgba(255,255,255,.18); color: #fff; }
.filtres-soc a[aria-current] i { box-shadow: 0 0 0 2px #fff; }
.section-biblio { margin: 22px 0 8px; }
.titre-section { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 18px; margin: 0; padding-bottom: 8px; border-bottom: 2px solid var(--soc, var(--trait)); }
.titre-section .petit { font-weight: 400; }
form.evenements .cases { margin: 0 0 4px; } form.evenements .case-inline { display: block; margin: 2px 0; }

/* Icône de fichier à gauche de chaque document (espace client, fiche dossier) : type du document + format */
.doc-icone { flex: none; position: relative; width: 46px; height: 58px; text-decoration: none; display: flex; flex-direction: column; align-items: center;
  background: #fff; border: 1px solid #d5d9e0; border-radius: 3px 12px 3px 3px; box-shadow: 0 2px 5px rgba(20,30,50,.10); overflow: hidden; }
.doc-icone::after { content: ""; position: absolute; top: -1px; right: -1px; width: 12px; height: 12px; background: linear-gradient(225deg, #f4f5f7 50%, #d5d9e0 50%); }
.doc-icone .di-type { box-sizing: border-box; width: 100%; background: var(--nat, #5a5f6e); color: #fff; font: 800 8.5px/1 Arial, sans-serif; letter-spacing: .3px;
  text-align: center; padding: 5px 11px 4px 2px; white-space: nowrap; text-decoration: none; }
.doc-icone .di-lignes { display: flex; flex-direction: column; gap: 3px; width: 70%; margin-top: 6px; }
.doc-icone .di-lignes i { display: block; height: 2.5px; border-radius: 2px; background: #e3e6eb; } .doc-icone .di-lignes i + i { width: 70%; }
.doc-icone .di-ext { text-decoration: none; margin-top: auto; margin-bottom: 4px; font: 700 8px/1 Arial, sans-serif; color: #5a5f6e; letter-spacing: .4px; }
.doc-icone .di-signe { position: absolute; right: 3px; bottom: 13px; width: 13px; height: 13px; border-radius: 50%; background: #15803d; color: #fff;
  font: 700 9px/13px Arial, sans-serif; text-align: center; }
.documents a .doc-icone *, .doc-ligne a .doc-icone * { text-decoration: none; }
.documents a:hover .doc-icone, .doc-ligne a:hover .doc-icone { box-shadow: 0 4px 12px rgba(20,30,50,.2); }
.doc-ligne { display: flex; align-items: center; gap: 12px; }
.nature-devis, .nature-devis_signe { --nat: #1f3a68; } .nature-lettre_voiture { --nat: #0e7490; } .nature-facture { --nat: #a16207; }
.nature-confirmation { --nat: #15803d; } .nature-facture_arrhes, .nature-recu_arrhes { --nat: #a16207; }
.doc-ligne > a { text-decoration: none; display: block; }
/* Frais d'annulation : encadré du formulaire de signature et alerte au moment de signer (v1.6) */
.alerte-annulation { background: #fdecea; color: #8a1c12; border-left: 4px solid #b42318; padding: 10px 12px; border-radius: 6px; margin: 4px 0 14px; font-size: 14px; line-height: 1.45; }
.boite-dates .fd-annulation { text-align: left; background: #fdecea; color: #7a180f; border-left: 4px solid #b42318; border-radius: 6px; padding: 10px 12px; margin: 12px 0 2px; font-size: 14px; line-height: 1.45; }
.boite-dates .fd-annulation strong { display: block; margin-bottom: 3px; }
/* L'organisation du déménagement : la grille de pré-planification d'Ulyss, sans les moyens (v1.7) */
.organisation { margin: 14px 0 6px; padding: 14px 16px; border: 1px solid var(--trait); border-radius: 8px; background: #fff; color: #1f2430; }
.organisation h3 { margin: 0 0 12px; font-size: 16px; }
.organisation p { margin: 10px 0 0; }
.pp-defile { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pp-grille { display: grid; grid-template-columns: 52px repeat(var(--pp-jours), minmax(170px, 1fr)); min-width: calc(52px + var(--pp-jours) * 170px); }
.pp-coin { border-bottom: 1px solid #e3e6ef; }
.pp-tete { text-align: center; font: 700 11px/1 Arial, sans-serif; letter-spacing: .3px; color: #1f2430; padding: 16px 4px; background: #f3f4fa;
  border: 1px solid #e3e6ef; border-left: 0; }
.pp-tete:nth-child(2) { border-left: 1px solid #e3e6ef; border-top-left-radius: 8px; }
.pp-tete:last-of-type { border-top-right-radius: 8px; }
.pp-heures { position: relative; }
.pp-heures span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11px; color: #2563a8; }
.pp-heures span:first-child { transform: none; }
.organisation { --pp-h: 58px; }
.pp-op { min-height: 26px; }
.pp-jour { --pp-pas: var(--pp-h); position: relative; border-right: 1px solid #e3e6ef; border-left: 1px solid #e3e6ef; margin-left: -1px;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--pp-pas) - 1px), #eceef4 calc(var(--pp-pas) - 1px), #eceef4 var(--pp-pas)); }
.pp-op { position: absolute; box-sizing: border-box; padding: 6px 7px; border-radius: 2px; overflow: hidden; font-size: 12px; line-height: 1.35; display: flex; flex-direction: column; gap: 1px; }
.pp-op strong { font-size: 12.5px; }
.pp-op .pp-h { font-size: 11.5px; }
.pp-op .pp-lieu { font-size: 11.5px; padding-left: 14px; position: relative; }
.pp-op .pp-lieu::before { content: ""; position: absolute; left: 1px; top: 2px; width: 7px; height: 7px; border: 1.5px solid currentColor; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.pp-chargement { background: #fdf2e7; color: #8a5a2b; } .pp-chargement strong { color: #b06a28; }
.pp-livraison { background: #f8e7ea; color: #7f3946; } .pp-livraison strong { color: #a03a4d; }
.pp-pause { background: #e8f5ec; color: #2f7a4a; } .pp-pause strong { color: #2f8a4f; } .pp-pause .pp-h { color: #2563a8; }
.pp-trajet { background: #e8eefb; color: #2d4a7a; } .pp-trajet strong { color: #2d4a7a; }
.pp-autre { background: #eef0f4; color: #3a4256; }
.pp-defile { padding-bottom: 10px; }
@media (max-width: 600px) {
  .pp-grille { grid-template-columns: 42px repeat(var(--pp-jours), minmax(120px, 1fr)); min-width: calc(42px + var(--pp-jours) * 120px); }
  .organisation { padding: 12px 10px; }
  .pp-op { padding: 5px 5px; } .pp-op strong { font-size: 12px; } .pp-op .pp-h, .pp-op .pp-lieu { font-size: 11px; }
  .pp-heures span { right: 5px; font-size: 10px; }
}

/* ═══ Back-office (Guillaume, 06/11/2026 : « beaucoup plus design et ergonomique, élégant, efficace et très moderne ») ═══
   Barre latérale bleu nuit, actions indigo, statuts vert / ambre / rouge doux. Limité à .bo : l'espace client garde sa charte. */
.bo {
  --bo-nuit: #0c1a33; --bo-nuit-2: #142a4f; --bo-nuit-texte: #c7d2e6; --bo-nuit-discret: #8495b4;
  --bo-indigo: #0d9488; --bo-indigo-fonce: #0f766e; --bo-indigo-clair: #f0fdfa; --bo-indigo-trait: #99e6da;   /* teal (Guillaume, 08/11/2026) — le nom des variables est resté */
  --bo-fond: #f4f6fb; --bo-texte: #0f172a; --bo-discret: #5b6478; --bo-trait: #e4e8f1; --bo-trait-2: #eef1f7;
  --bo-ombre: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .05);
  --marque: var(--bo-nuit); --accent: var(--bo-indigo); --accent-texte: #fff; --texte: var(--bo-texte); --discret: var(--bo-discret); --trait: var(--bo-trait);
  --police-titres: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --police-texte: var(--police-titres);
  --titres-poids: 700; --titres-echelle: 1; --rayon: 14px; --rayon-bouton: 10px; --casse-bouton: none; --espacement-bouton: 0;
  display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; background: var(--bo-fond); color: var(--bo-texte);
  font: 15px/1.55 var(--police-texte); font-feature-settings: "cv11", "ss01";
}
body:has(> .bo), #portail:has(> .bo) { background: var(--bo-fond, #f4f6fb); }
.bo a { color: var(--bo-indigo-fonce); }

/* barre latérale */
.bo-nav { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px;
  background-color: var(--bo-nuit); background-image: linear-gradient(180deg, var(--bo-nuit) 0%, #0a1529 100%); color: var(--bo-nuit-texte); padding: 18px 14px; }
.bo-marque { display: flex; align-items: center; gap: 11px; padding: 6px 8px 18px; text-decoration: none; color: #fff !important; border-bottom: 1px solid rgba(255, 255, 255, .07); margin-bottom: 8px; }
.bo-logo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 17px; color: #fff; background-color: #4338ca;
  background-image: linear-gradient(135deg, #6366f1 0%, #4338ca 55%, #312e81 100%); box-shadow: 0 6px 16px rgba(79, 70, 229, .35), inset 0 1px 0 rgba(255, 255, 255, .25); }
.bo-marque strong { display: block; font-size: 15px; letter-spacing: -.01em; line-height: 1.2; }
.bo-marque small { display: block; font-size: 11.5px; color: var(--bo-nuit-discret); font-weight: 500; }
.bo-groupe { margin: 14px 10px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #8b9bb9; }
.bo-nav nav { display: flex; flex-direction: column; gap: 2px; }
.bo-nav nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: var(--bo-nuit-texte); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: background .15s, color .15s; position: relative; }
.bo-nav nav a svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.bo-nav nav a:hover { background: #17253f; color: #fff; }
.bo-nav nav a.actif { background: #1f2a5c; color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(129, 140, 248, .25); }
.bo-nav nav a.actif::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: #818cf8; }
.bo-nav nav a.actif svg { opacity: 1; color: #a5b4fc; }
.bo-compte { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #f59e0b; color: #1c1206; font-size: 11.5px; font-weight: 700;
  display: inline-grid; place-items: center; }
.bo-pied { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; border-top: 1px solid rgba(255, 255, 255, .07); }
.bo-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #1e3a6e; color: #dbe4ff; font-size: 12px; font-weight: 700; }
.bo-qui { min-width: 0; flex: 1; font-size: 12.5px; color: #e2e8f5; line-height: 1.3; }
.bo-qui span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-qui small { color: var(--bo-nuit-discret); }
.bo-sortie { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--bo-nuit-texte) !important; flex: none; }
.bo-sortie:hover { background: #1a2843; color: #fff !important; }
.bo-sortie svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* zone de travail */
.bo-main { min-width: 0; }
.bo-contenu { max-width: 1180px; margin: 0 auto; padding: 30px 36px 48px; }
.bo .titre, .bo h1 { color: var(--bo-texte); letter-spacing: -.022em; }
.bo .titre { font-size: 27px; font-weight: 750; margin: 2px 0 6px; }
.bo h1 { font-size: 23px; }
.bo h2 { color: var(--bo-texte); font-size: 16.5px; font-weight: 650; letter-spacing: -.01em; }
.bo h3 { color: var(--bo-texte); font-size: 14px; font-weight: 650; margin: 22px 0 6px; padding-top: 18px; border-top: 1px solid var(--bo-trait-2); }
.bo .carte > h3:first-child, .bo form > h3:first-child { border-top: 0; padding-top: 0; }
.bo .discret { color: var(--bo-discret); }
.bo .fil { font-size: 13px; margin-bottom: 8px; }
.bo .fil a { color: var(--bo-discret); font-weight: 500; }
.bo .fil a:hover { color: var(--bo-indigo-fonce); }

.bo .carte { background: #fff; border: 1px solid var(--bo-trait); border-radius: 16px; box-shadow: var(--bo-ombre); padding: 24px 26px; margin: 18px 0; }
.bo .carte > h2:first-child { margin-bottom: 4px; }

/* tuiles de chiffres */
.bo .tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 18px 0 26px; }
.bo .tuile { position: relative; background: #fff; border: 1px solid var(--bo-trait); border-radius: 16px; box-shadow: var(--bo-ombre); padding: 18px 20px 16px; overflow: hidden; min-height: 0; }
.bo .tuile::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #cbd5e1; }
.bo .tuile.attente::after { background: #f59e0b; } .bo .tuile.ok::after { background: #10b981; } .bo .tuile.alerte::after { background: #ef4444; }
.bo .tuile-n { display: block; font-size: 30px; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; color: var(--bo-texte); font-variant-numeric: tabular-nums; }
.bo .tuile.attente .tuile-n { color: #b45309; } .bo .tuile.ok .tuile-n { color: #047857; } .bo .tuile.alerte .tuile-n { color: #b91c1c; }
.bo .tuile-l { display: block; margin-top: 6px; font-size: 13px; color: var(--bo-discret); font-weight: 500; }

/* tableaux */
.bo .tableau { font-size: 14px; border-collapse: separate; border-spacing: 0; }
.bo .tableau th { font-size: 11px; font-weight: 650; letter-spacing: .07em; color: #6b7590; background: #f8fafd; padding: 10px 12px; border-bottom: 1px solid var(--bo-trait); }
.bo .tableau th:first-child { border-top-left-radius: 10px; } .bo .tableau th:last-child { border-top-right-radius: 10px; }
.bo .tableau td { border-top: 0; border-bottom: 1px solid var(--bo-trait-2); padding: 12px; vertical-align: middle; }
.bo .tableau tbody tr { transition: background .12s; }
.bo .tableau tbody tr:hover td { background: #fafbff; }
.bo .tableau tr:last-child td { border-bottom: 0; }
.bo .tableau td a { font-weight: 600; text-decoration: none; }
.bo .tableau td a:hover { text-decoration: underline; }

/* badges : pastille + point */
.bo .badge { font-size: 12px; font-weight: 600; padding: 4px 10px 4px 9px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; }
.bo .badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.bo .badge.ok { background: #ecfdf5; color: #047857; border-color: #c9f0dd; }
.bo .badge.attente { background: #fffbeb; color: #a14d06; border-color: #fbe3b0; }
.bo .badge.alerte { background: #fef2f2; color: #b91c1c; border-color: #fbd0d0; }
.bo .badge.gris { background: #f1f4f9; color: #475569; border-color: #e2e7f0; }

/* boutons */
.bo .bouton { border-radius: 10px; font-weight: 600; font-size: 14px; padding: 9px 16px; border: 1px solid #d5dbe8; background: #fff; color: var(--bo-texte);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05); transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; filter: none; }
.bo .bouton:hover { background: #f7f8fc; border-color: #c3cadb; filter: none; }
.bo .bouton:active { transform: translateY(1px); }
.bo .bouton.plein { background-color: var(--bo-indigo); background-image: linear-gradient(180deg, #14a99b 0%, var(--bo-indigo) 100%); border-color: var(--bo-indigo-fonce); color: #fff;
  box-shadow: 0 1px 2px rgba(15, 118, 110, .25), 0 4px 12px rgba(13, 148, 136, .22), inset 0 1px 0 rgba(255, 255, 255, .18); }
.bo .bouton.plein:hover { background-color: var(--bo-indigo-fonce); background-image: none; }
.bo .bouton:disabled { opacity: .5; cursor: not-allowed; }
.bo .bouton:focus-visible, .bo .bo-nav a:focus-visible, .bo a:focus-visible { outline: 3px solid rgba(13, 148, 136, .45); outline-offset: 2px; }
.bo .lien { color: var(--bo-indigo-fonce); font-weight: 500; }

/* formulaires */
.bo label { font-size: 13px; font-weight: 600; color: #2b3447; }
.bo input[type=email], .bo input[type=text], .bo input[type=password], .bo input[type=number], .bo input[type=search], .bo input[type=date], .bo input[type=tel],
.bo input[type=url], .bo input:not([type]), .bo select, .bo textarea {
  border: 1px solid #d5dbe8; border-radius: 10px; background: #fff; font-size: 14.5px; padding: 9px 12px; min-height: 40px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: border-color .15s, box-shadow .15s; }
.bo input:hover, .bo select:hover, .bo textarea:hover { border-color: #b9c2d6; }
.bo input:focus, .bo select:focus, .bo textarea:focus { outline: none; border-color: var(--bo-indigo); box-shadow: 0 0 0 4px rgba(13, 148, 136, .16); }
.bo input[type=checkbox], .bo input[type=radio] { accent-color: var(--bo-indigo); width: 16px; height: 16px; }
.bo .ligne-form { gap: 14px; }

/* messages */
.bo .flash { border-radius: 12px; padding: 12px 16px 12px 44px; position: relative; font-size: 14px; font-weight: 500; border: 1px solid transparent; box-shadow: var(--bo-ombre); }
.bo .flash::before { position: absolute; left: 14px; top: 11px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; }
.bo .flash.ok { background: #ecfdf5; color: #065f46; border-color: #c9f0dd; } .bo .flash.ok::before { content: "✓"; background: #10b981; }
.bo .flash.erreur { background: #fef2f2; color: #991b1b; border-color: #fbd0d0; } .bo .flash.erreur::before { content: "!"; background: #ef4444; }
.bo .flash.info { background: var(--bo-indigo-clair); color: #115e59; border-color: var(--bo-indigo-trait); } .bo .flash.info::before { content: "i"; background: var(--bo-indigo); }
.bo .avertissement { border-radius: 12px; }

/* navigation secondaire restée dans le contenu (filtres, sous-onglets) */
.bo .onglets { border-bottom: 0; gap: 6px; background: #eef1f8; padding: 4px; border-radius: 12px; display: inline-flex; }
.bo .onglets a { border: 0; border-radius: 9px; padding: 7px 14px; font-size: 13.5px; font-weight: 500; color: var(--bo-discret); }
.bo .onglets a.actif { background: #fff; color: var(--bo-texte); box-shadow: 0 1px 3px rgba(15, 23, 42, .1); }

/* téléphone / tablette : la barre latérale devient une barre du haut qui défile */
@media (max-width: 960px) {
  .bo { grid-template-columns: minmax(0, 1fr); }
  .bo-nav { position: sticky; z-index: 20; height: auto; flex-direction: row; align-items: center; gap: 6px; padding: 10px 12px; overflow: hidden; min-width: 0; }
  .bo-nav nav { min-width: 0; }
  .bo .tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bo .tuile { padding: 14px 14px 12px; }
  .bo .tuile-n { font-size: 24px; }
  .bo-marque { padding: 0; border: 0; margin: 0; }
  .bo-marque span:last-child, .bo-groupe, .bo-qui, .bo-avatar { display: none; }
  .bo-nav nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; flex: 1; gap: 4px; }
  .bo-nav nav::-webkit-scrollbar { display: none; }
  .bo-nav nav a { white-space: nowrap; padding: 8px 10px; font-size: 13px; }
  .bo-nav nav a.actif::before { display: none; }
  .bo-pied { margin: 0; padding: 0; border: 0; }
  .bo-contenu { padding: 20px 16px 36px; }
  .bo .carte { padding: 18px 16px; border-radius: 14px; }
  .bo .titre { font-size: 23px; }
}
.bo .ligne-form > .bouton, .bo .ligne-form > button { width: auto; flex: 0 0 auto; align-self: flex-end; }
.bo form > .bouton.plein { width: auto; min-width: 200px; margin-top: 18px; padding: 11px 22px; }
.bo input[type=file] { font-size: 13.5px; color: var(--bo-discret); }
.bo input[type=file]::file-selector-button { font: inherit; font-weight: 600; margin-right: 12px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--bo-indigo-trait);
  background: var(--bo-indigo-clair); color: #115e59; cursor: pointer; transition: background .15s; }
.bo input[type=file]::file-selector-button:hover { background: #e0e4ff; }
.bo .ligne-form { align-items: flex-start; }
.bo .ligne-form > .case-inline { align-self: flex-end; padding-bottom: 10px; }

/* Accueil du portail : choix de la société quand plusieurs espaces correspondent (v1.9) */
.choix-espaces { display: grid; gap: 10px; margin: 16px 0; }
.choix-espaces form { margin: 0; }
.choix-espace { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--trait); border-radius: 12px; background: #fff;
  font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.choix-espace:hover, .choix-espace:focus-visible { border-color: var(--marque); box-shadow: 0 0 0 3px rgba(31, 58, 95, .12); outline: none; }
.choix-espace img { height: 40px; width: auto; max-width: 110px; object-fit: contain; }
.choix-pastille { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; }
.choix-espace strong { display: block; color: var(--texte); }
.choix-espace small { display: block; color: var(--discret); font-size: 13px; }
.option-adresse { margin: 12px 0 4px; } .option-adresse summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--discret); }

/* « À faire maintenant » en tête de chaque dossier (Guillaume, 07/11/2026 : que le client sache ce qu'il a à faire) */
.a-faire { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 14px 0 16px; padding: 16px 18px;
  border-radius: 12px; border: 1px solid var(--trait); background: #f7f8fa; }
.a-faire .af-texte { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 260px; }
.a-faire .af-surtitre { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--discret); }
.a-faire strong { font-size: 18px; line-height: 1.3; color: var(--texte); }
.a-faire .af-texte > span:not(.af-surtitre):not(.af-etape) { color: var(--discret); font-size: 15px; }
.a-faire .af-etape { font-size: 13px; color: var(--discret); margin-top: 2px; }
.a-faire .bouton { flex: 0 0 auto; margin: 0; }
.a-faire.action { background: var(--attente-fond); border-color: #f0d9a4; box-shadow: inset 4px 0 0 var(--accent); }
.a-faire.action .af-surtitre { color: var(--attente); }
.a-faire.ok { background: var(--ok-fond); border-color: #cfe7d1; }
.a-faire.ok .af-surtitre { color: var(--ok); }
.a-faire.fini { background: #f4f5f7; }
@media (max-width: 560px) { .a-faire { padding: 14px; } .a-faire .bouton { width: 100%; justify-content: center; } }
/* dossier terminé : replié en une ligne */
.dossier.termine { padding-top: 14px; padding-bottom: 14px; }
.dossier.termine summary { cursor: pointer; list-style: none; }
.dossier.termine summary::-webkit-details-marker { display: none; }
.dossier.termine summary .badge::after { content: " ▾"; }
.dossier.termine details[open] summary .badge::after { content: " ▴"; }

/* barre d'avancement de l'encadré « À faire maintenant » : sur téléphone, elle remplace la liste des étapes */
.af-barre { display: none; gap: 4px; margin-top: 8px; }
.af-barre i { flex: 1; height: 5px; border-radius: 3px; background: rgba(0, 0, 0, .1); }
.af-barre i.fait { background: var(--ok); }
.af-barre i.encours { background: var(--accent); }

/* ═══ Espace client sur téléphone (Guillaume, 07/11/2026 : « trop brouillon, optimise tout ça ») ═══
   Moins d'encadrés emboîtés, une seule colonne nette, boutons sur une ligne, étapes en barre, documents sans colonne de droite. */
@media (max-width: 560px) {
  main.interieur { padding-left: 12px; padding-right: 12px; padding-top: 16px; }
  .titre { font-size: 22px; margin-bottom: 2px; }
  main.interieur > .discret:first-of-type { font-size: 13px; }
  .carte { padding: 16px 14px; margin: 12px 0; border-radius: 14px; }
  /* boutons : les majuscules espacées d'une charte passent sur une ligne */
  .bouton { font-size: 14px; letter-spacing: calc(var(--espacement-bouton) * .35); padding: 11px 14px; line-height: 1.25; }
  .entete-dossier { align-items: flex-start; }
  .entete-dossier h2 { font-size: 17px; }
  .entete-dossier .badge { font-size: 12px; padding: 3px 9px; }
  /* « À faire maintenant » */
  .a-faire { margin: 12px 0 10px; padding: 14px; gap: 12px; border-radius: 12px; }
  .a-faire strong { font-size: 17px; }
  .a-faire .af-texte > span:not(.af-surtitre):not(.af-etape):not(.af-barre) { font-size: 14px; }
  .a-faire .af-barre { display: flex; }
  .a-faire .bouton { width: 100%; }
  .dossier > .etapes { display: none; }
  /* blocs (devis, arrhes, déclaration, confirmation) : une ligne, bouton compact à droite */
  .devis { flex-direction: row; align-items: center; flex-wrap: wrap; margin-top: 10px; padding: 12px 12px 12px 14px; gap: 10px; }
  .devis > div:first-child { flex: 1 1 150px; min-width: 0; }
  .devis > div:first-child strong { font-size: 15px; }
  .devis > div:first-child .discret { font-size: 13px; }
  .devis .actions { width: auto; flex: 0 0 auto; }
  .devis .actions .bouton { flex: 0 0 auto; padding: 9px 12px; font-size: 13px; }
  /* organisation : grille resserrée */
  .organisation { --pp-h: 40px; padding: 12px 8px 8px; margin-top: 12px; }
  .organisation h3 { font-size: 15px; margin: 0 4px 10px; }
  .organisation .petit { margin: 6px 4px 0; }
  .pp-op .pp-lieu { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  /* documents : titre en pleine largeur, date et taille dessous */
  .documents { margin-top: 10px; }
  .documents li { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .documents a { gap: 10px; align-items: flex-start; }
  .documents .type { font-size: 15px; line-height: 1.3; }
  .documents .meta { padding-left: 49px; font-size: 12px; }
  .documents .doc-icone { transform: scale(.85); transform-origin: top left; margin: 0 -7px -9px 0; }
  /* dossier terminé et bloc contact */
  .dossier.termine { padding: 12px 14px; }
  .contact p { font-size: 14px; }
}

/* Le devis : aperçu cliquable (miniature de la 1re page), sans bouton — la signature passe par « À faire maintenant » (07/11/2026) */
.devis.devis-apercu { justify-content: flex-start; align-items: center; gap: 16px; flex-wrap: nowrap; }
.devis-vignette { position: relative; flex: none; display: block; width: 76px; border-radius: 6px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 2px rgba(20, 30, 50, .12), 0 4px 12px rgba(20, 30, 50, .10); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.devis-vignette img { display: block; width: 100%; height: auto; aspect-ratio: 210 / 297; object-fit: cover; object-position: top; }
.devis-vignette .doc-icone { margin: 10px auto; }
.devis-vignette .dv-loupe { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 0; font-size: 11px; font-weight: 600; text-align: center;
  background: rgba(20, 30, 50, .72); color: #fff; }
.devis-vignette:hover, .devis-vignette:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(20, 30, 50, .2); }
.devis-apercu > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
@media (max-width: 560px) { .devis.devis-apercu { flex-direction: row; } .devis-vignette { width: 64px; } }
@media (prefers-reduced-motion: reduce) { .devis-vignette { transition: none; } .devis-vignette:hover { transform: none; } }

/* Lecteur de PDF (PDF.js) : pages nettes à la largeur de l'écran, toucher pour agrandir (Guillaume, 07/11/2026) */
.lecteur-pages { display: flex; flex-direction: column; gap: 12px; }
.lecteur-page { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #fff; cursor: zoom-in; border-radius: 2px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35); font: inherit; }
.lecteur-page canvas { display: block; width: 100%; height: auto; }
.lecteur-num, .lecteur-zoom { position: absolute; bottom: 8px; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(20, 30, 50, .72); color: #fff; pointer-events: none; }
.lecteur-num { left: 8px; } .lecteur-zoom { right: 8px; }
.lecteur-plein { position: fixed; inset: 0; z-index: 1000; background: #2b2d31; display: flex; flex-direction: column; }
.lp-barre { display: flex; align-items: center; gap: 6px; padding: 8px 10px; padding-top: max(8px, env(safe-area-inset-top)); background: #1d1f23; color: #fff; }
.lp-page { font-size: 14px; font-weight: 600; min-width: 92px; text-align: center; }
.lp-sep { flex: 1; }
.lp-btn { width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff;
  font: 600 22px/1 system-ui, sans-serif; cursor: pointer; display: inline-grid; place-items: center; }
.lp-btn:disabled { opacity: .35; cursor: default; }
.lp-btn:focus-visible { outline: 3px solid #fff; outline-offset: 1px; }
.lp-fermer { margin-left: 6px; font-size: 18px; }
.lp-zone { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: 8px; touch-action: pan-x pan-y pinch-zoom; }
.lp-zone canvas { display: block; margin: 0 auto; background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .5); max-width: none; }
html.lecteur-ouvert, html.lecteur-ouvert body { overflow: hidden; }
@media (max-width: 560px) {
  .visionneuse { padding: 10px 6px; border-radius: 10px; }
  .visionneuse .outils { padding: 0 4px; }
}

/* ─── Devis : lecture facile sur téléphone (v1.10, Guillaume 07/11/2026) ─── */
.dv-choix { display: flex; gap: 4px; background: rgba(255,255,255,.12); padding: 4px; border-radius: 999px; margin: 0 0 12px; }
.dv-choix[hidden], .dv-vue[hidden], .dl[hidden] { display: none; }
.dv-choix button { flex: 1; border: 0; border-radius: 999px; padding: 9px 12px; font: 600 14px/1.2 var(--police-texte); color: #fff; background: transparent; cursor: pointer; }
.dv-choix button[aria-selected="true"] { background: #fff; color: var(--marque); }
.dv-pdf.dv-cache { height: 0; overflow: hidden; visibility: hidden; }
.dl { background: var(--carte); color: var(--texte); border-radius: var(--rayon); padding: 18px 16px 14px; font-size: 15px; line-height: 1.45; }
.dl-avert { margin: 0 0 14px; padding: 8px 10px; border-radius: 8px; background: var(--attente-fond); color: var(--attente); font-size: 13px; }
.dl-prix { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--rayon); background: var(--marque); color: #fff; margin-bottom: 14px; }
.dl-prix-l { font-size: 13px; opacity: .85; text-transform: uppercase; letter-spacing: .04em; }
.dl-prix strong { font-size: 30px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.dl-prix-ht { font-size: 13px; opacity: .85; }
.dl-prix-ar { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.25); font-size: 14px; }
.dl-puces { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 0 0 6px; }
.dl-puces div { background: var(--fond); border-radius: 8px; padding: 8px 10px; }
.dl-puces dt { font-size: 12px; color: var(--discret); }
.dl-puces dd { margin: 0; font-weight: 700; }
.dl-h { font-size: 16px; margin: 20px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--trait); }
.dl-adresses { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dl-adr { display: grid; gap: 3px; padding: 10px 12px 10px 14px; border-radius: 8px; background: var(--fond); border-left: 4px solid #2e7d9a; }
.dl-adr.dl-livraison { border-left-color: #2f7d32; }
.dl-adr-t { font-weight: 700; }
.dl-adr-q { font-size: 14px; font-weight: 600; color: var(--marque); }
.dl-ref { margin: -6px 0 12px; font-size: 13px; color: var(--discret); }
.dl-adr-d { font-size: 14px; color: var(--discret); }
.dl-adr-o { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.dl-adr-o span { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--carte); border: 1px solid var(--trait); }
.dl-qui { display: grid; gap: 10px; }
.dl-qui > div { border-radius: 8px; padding: 10px 12px; background: var(--fond); }
.dl-qui .dl-vous { background: var(--attente-fond); }
.dl-qui-t { display: block; font-weight: 700; margin-bottom: 4px; }
.dl-qui ul { margin: 0; padding-left: 18px; }
.dl-qui li { margin: 2px 0; }
.dl-texte { margin: 0; white-space: normal; }
.dl-tarif { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.dl-tarif td { padding: 7px 0; border-bottom: 1px solid var(--trait); vertical-align: top; }
.dl-tarif td + td { text-align: right; white-space: nowrap; padding-left: 12px; }
.dl-tarif .dl-moins td { color: var(--ok); }
.dl-tarif .dl-st td { color: var(--discret); font-size: 14px; }
.dl-tarif .dl-ttc td { font-weight: 800; font-size: 17px; border-bottom: 0; }
@media (min-width: 700px) { .dl-qui { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .visionneuse.dv-onglets { padding: 10px 8px; }
  .dl { padding: 14px 12px 12px; }
  .dl-prix strong { font-size: 27px; }
}

/* « À faire maintenant » avec la miniature du devis (Guillaume, 07/11/2026 : la miniature rassemblée dans l'étape du parcours) */
.a-faire.avec-apercu { flex-wrap: wrap; }
.a-faire .af-apercu { flex: none; width: 76px; align-self: flex-start; }
.a-faire.avec-apercu .af-texte { flex: 1 1 200px; }
@media (max-width: 560px) {
  .a-faire.avec-apercu { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: start; column-gap: 12px; }
  .a-faire .af-apercu { width: 64px; }
  .a-faire.avec-apercu .bouton { grid-column: 1 / -1; }
}
/* organisation : une opération courte (moins de 45 min) tient sur une ligne, sans adresse */
.pp-op.pp-court { flex-direction: row; align-items: center; gap: 6px; padding-top: 0; padding-bottom: 0; white-space: nowrap; }
.pp-op.pp-court strong, .pp-op.pp-court .pp-h { font-size: 11px; line-height: 1.1; }
.pp-op.pp-court .pp-lieu { display: none; }
.pp-op.pp-court strong { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
.pp-op.pp-court .pp-h { flex: none; }

/* Le prix dans l'étape « Lire et signer votre devis » (Guillaume, 07/11/2026) */
.a-faire .af-prix { flex: 1 1 100%; width: 100%; }
.a-faire .af-prix[hidden] { display: none; }
.a-faire .af-prix .dl-prix { margin: 4px 0 0; }
@media (max-width: 560px) { .a-faire.avec-apercu .af-prix { grid-column: 1 / -1; } }
.a-faire .af-prix .dl-prix strong { color: #fff; font-size: 30px; line-height: 1.15; }
@media (max-width: 560px) { .a-faire .af-prix .dl-prix strong { font-size: 27px; } }

/* Prestations de la lecture facile : deux blocs illustrés (Guillaume, 07/11/2026 : « mieux mises en avant, plus design ») */
.dl .dl-qui { display: grid; gap: 12px; }
.dl-bloc { border-radius: 12px; padding: 14px 14px 6px; background: #eef2f8; border: 1px solid #dfe5ef; }
.dl-bloc.dl-vous { background: #fdf6e7; border-color: #f0dfb5; }
.dl-bloc-t { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 15.5px; color: var(--marque); }
.dl-vous .dl-bloc-t { color: #7a4d00; }
.dl-n { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 13px; background: var(--marque); color: #fff; }
.dl-vous .dl-n { background: #b7791f; }
.dl-bloc-s { margin: 2px 0 6px; font-size: 13px; color: var(--discret); }
.dl-presta { list-style: none; margin: 0; padding: 0; }
.dl-presta li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(20, 30, 50, .07); }
.dl-presta li:first-child { border-top: 0; }
.dl-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--marque);
  box-shadow: 0 1px 2px rgba(20, 30, 50, .08); }
.dl-vous .dl-ico { color: #8a5a00; }
.dl-lib { font-size: 14.5px; line-height: 1.35; }
.dl-offert { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--ok-fond); color: var(--ok); vertical-align: 1px; }
@media (min-width: 700px) { .dl .dl-qui { grid-template-columns: 1fr 1fr; align-items: start; } }

/* Zone de signature : pas sur toute la largeur, pour pouvoir faire défiler la page à côté sans commencer à signer (07/11/2026) */
.pad-signature { max-width: 520px; }
@media (max-width: 560px) {
  .pad-signature { width: calc(100% - 64px); }
  .pad-signature canvas { height: 150px; }
}
.pad-defile { display: none; }
@media (max-width: 560px) { .pad-zone { position: relative; } .pad-defile { display: block; position: absolute; right: 0; top: 0; bottom: 0; width: 56px;
  border-radius: 8px; background: repeating-linear-gradient(180deg, transparent 0 10px, rgba(20, 30, 50, .04) 10px 20px); color: #8a909c; font-size: 11px;
  writing-mode: vertical-rl; text-align: center; letter-spacing: .5px; } }
.dl-qui .dl-presta { padding: 0; margin: 0; }

/* Devis : bouton « Plein écran » au-dessus des pages du PDF (Guillaume, 07/11/2026 : une icône facile à comprendre) */
.dv-pdf-barre { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.dv-plein { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: #fff; color: #1f2430;
  font: 600 14px/1 var(--police-texte); text-decoration: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.dv-plein:hover { background: #f3f4f6; }
.dv-plein svg { flex: none; }
.dv-onglets .dv-choix { margin-top: 0; }

/* Chargement et livraison : deux groupes distincts reliés par la distance (Guillaume, 07/11/2026) */
.dl-trajet { display: grid; gap: 0; }
.dl-groupe { border-radius: 12px; padding: 12px; }
.dl-g-chargement { background: #e9f3f7; border: 1px solid #cfe3ec; }
.dl-g-livraison { background: #eaf5ec; border: 1px solid #cde6d2; }
.dl-groupe-t { display: flex; align-items: center; gap: 10px; margin: 0 2px 10px; font-weight: 800; font-size: 16px; letter-spacing: .02em; text-transform: uppercase; }
.dl-groupe-t small { font-weight: 600; font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--discret); margin-left: 4px; }
.dl-g-chargement .dl-groupe-t { color: #1f6680; }
.dl-g-livraison .dl-groupe-t { color: #2f7d32; }
.dl-groupe-i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.dl-g-chargement .dl-groupe-i { background: #2e7d9a; }
.dl-g-livraison .dl-groupe-i { background: #2f7d32; }
.dl-groupe .dl-adr { background: #fff; }
.dl-liaison { position: relative; height: 44px; display: grid; place-items: center; }
.dl-liaison::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px dashed #9aa6b2; }
.dl-liaison::after { content: ""; position: absolute; bottom: 2px; left: calc(50% - 5px); border: 5px solid transparent; border-top: 7px solid #9aa6b2; border-bottom: 0; }
.dl-liaison span { position: relative; background: var(--carte); padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #4b5563; border: 1px solid var(--trait); }
.dl-liaison span:empty { display: none; }
.dl-liaison { height: 32px; }

/* ═══ Déclaration de valeur, refonte (Guillaume, 07/11/2026 : « beaucoup plus sexy et design, c'est triste en l'état ») ═══ */
.dvx h1 { margin-bottom: 4px; }
.dvx-hero { display: flex; gap: 14px; align-items: flex-start; margin: 16px 0 12px; padding: 18px; border-radius: 16px; color: #fff;
  background-color: var(--marque); background-image: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,0) 60%); box-shadow: 0 8px 24px rgba(20, 30, 50, .18); }
.dvx-hero-i { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.14); color: var(--accent); }
.dvx-hero-c { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dvx-hero-l { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.dvx-hero strong { font-size: 32px; line-height: 1.1; font-variant-numeric: tabular-nums; color: #fff; }
.dvx-hero-s { font-size: 13.5px; opacity: .85; }
.dvx-pastille { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.14); color: #fff; font-size: 13px; font-weight: 600; }
.dvx-regle { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #eef2f8; color: var(--texte); margin-bottom: 16px; }
.dvx-regle-i { flex: none; color: var(--marque); margin-top: 1px; }
.dvx-regle strong { display: block; margin-bottom: 3px; }
.dvx-regle span { font-size: 14px; color: var(--discret); }
.dvx-choix { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.dvx-opt { position: relative; display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 12px; border: 2px solid var(--trait); border-radius: 14px;
  background: #fff; cursor: pointer; font-weight: 400; transition: border-color .15s, box-shadow .15s, background .15s; }
.dvx-opt input { position: absolute; opacity: 0; pointer-events: none; }
.dvx-opt-i { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--fond); color: var(--discret); }
.dvx-opt strong { display: block; font-size: 14.5px; line-height: 1.25; }
.dvx-opt small { display: block; font-size: 12.5px; color: var(--discret); margin-top: 2px; }
.dvx-opt:has(input:checked) { border-color: var(--marque); background: #f5f8fd; box-shadow: 0 0 0 3px rgba(31, 58, 95, .10); }
.dvx-opt:has(input:checked) .dvx-opt-i { background: var(--marque); color: #fff; }
.dvx-opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.dvx-liste { transition: opacity .2s; }
.dvx-liste.dvx-off { opacity: .35; pointer-events: none; filter: grayscale(.6); }
.dvx-objets { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dvx-objet { padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--trait); box-shadow: 0 1px 2px rgba(20, 30, 50, .05), 0 6px 16px rgba(20, 30, 50, .05); }
.dvx-objet-t { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-weight: 700; color: var(--marque); }
.dvx-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-texte); font-size: 13px; font-weight: 800; }
.dvx-retirer { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: #9aa1ad; cursor: pointer; display: grid; place-items: center; }
.dvx-retirer:hover { background: var(--alerte-fond); color: var(--alerte); }
.dvx-champ { display: block; margin: 10px 0 0; font-weight: 400; }
.dvx-champ > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--discret); margin-bottom: 4px; }
.dvx-2 { display: grid; grid-template-columns: 1fr 140px; gap: 10px; }
.dvx-euro { position: relative; display: block; }
.dvx-euro input { padding-right: 34px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.dvx-euro b { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--discret); font-weight: 600; }
.dvx-photo { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 8px 12px; border: 1px dashed #c9ced6; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--marque); cursor: pointer; }
.dvx-photo.a-photo { border-style: solid; border-color: #cfe7d1; background: var(--ok-fond); color: var(--ok); }
.dvx-voir { display: inline-block; margin-left: 10px; font-size: 13px; }
.dvx-note { margin: 8px 0 0; font-size: 13px; color: var(--attente); }
.dvx-note:empty { display: none; }
.dvx-ajouter { width: 100%; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 14px;
  border: 2px dashed var(--accent); background: transparent; color: var(--marque); font: 700 15px/1 var(--police-texte); cursor: pointer; }
.dvx-ajouter:hover { background: #f7f8fa; }
.dvx-total { margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--fond); }
.dvx-total-l { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dvx-total-l span { font-weight: 600; }
.dvx-total-l strong { font-size: 24px; color: var(--marque); font-variant-numeric: tabular-nums; }
.dvx-jauge { height: 8px; border-radius: 999px; background: #dfe3ea; overflow: hidden; margin: 10px 0 6px; }
.dvx-jauge i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--ok); transition: width .25s; }
.dvx-jauge.depasse i { background: var(--alerte); }
.dvx-total-s { font-size: 12.5px; color: var(--discret); }
.dvx-actions { margin-top: 18px; }
@media (max-width: 560px) {
  .dvx-hero { padding: 16px; } .dvx-hero strong { font-size: 28px; }
  .dvx-choix { grid-template-columns: 1fr; }
  .dvx-2 { grid-template-columns: 1fr 120px; }
  .dvx-actions { flex-direction: column-reverse; } .dvx-actions .bouton { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .dvx-jauge i, .dvx-liste, .dvx-opt { transition: none; } }
.bouton:disabled, .bouton.plein:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.3); }

/* ═══ Back-office : sociétés en cartes d'identité, à la charte de chacune (Guillaume, 08/11/2026) ═══ */
.soc-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; margin: 18px 0; }
.soc-carte { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bo-trait, #e4e8f1); border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06); transition: transform .15s, box-shadow .15s; }
.soc-carte:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(15, 23, 42, .05), 0 14px 32px rgba(15, 23, 42, .10); }
.soc-carte.inactive { opacity: .72; }
.soc-bandeau { position: relative; height: 104px; display: flex; align-items: center; justify-content: center; padding: 16px 20px;
  background-color: var(--sf); background-image: radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.14), rgba(255,255,255,0) 55%); border-bottom: 4px solid var(--sa); }
.soc-bandeau img { max-height: 58px; max-width: 78%; object-fit: contain; display: block; }
.soc-statut { position: absolute; top: 12px; right: 12px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  background: rgba(255,255,255,.92); color: #047857; }
.soc-carte.inactive .soc-statut { color: #475569; }
.soc-corps { padding: 16px 18px 6px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.soc-ident { display: flex; align-items: center; gap: 10px; }
.soc-ident h2 { margin: 0; font-size: 19px !important; line-height: 1.2; color: var(--sf) !important; letter-spacing: 0 !important; }
.soc-code { flex: none; padding: 4px 9px; border-radius: 8px; font: 800 12px/1 var(--police-texte); letter-spacing: .06em; background: var(--sa); color: var(--st); }
.soc-charte { display: flex; align-items: center; gap: 6px; }
.soc-nuance { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7), 0 0 0 1px rgba(15,23,42,.12); }
.soc-police { margin-left: 6px; font-size: 12.5px; color: var(--bo-discret, #5b6478); }
.soc-infos { margin: 0; display: grid; gap: 8px; }
.soc-infos div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.soc-infos dt { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #8a93a6; }
.soc-infos dd { margin: 0; font-size: 14px; color: var(--bo-texte, #0f172a); overflow-wrap: anywhere; }
.soc-infos dd small { display: block; font-size: 12.5px; color: var(--bo-discret, #5b6478); }
.soc-adresse { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px !important; }
.soc-etat { padding: 9px 12px; border-radius: 10px; font-size: 13px; }
.soc-etat b { margin-right: 4px; }
.soc-etat.ok { background: #ecfdf5; color: #047857; }
.soc-etat.attente { background: #fffbeb; color: #a14d06; }
.soc-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 18px 16px; border-top: 1px solid var(--bo-trait-2, #eef1f7); margin-top: 10px; }
.soc-actions .bouton { margin: 0; }
.soc-actions a:not(.bouton) { font-size: 13.5px; font-weight: 600; text-decoration: none; }
.soc-nouvelle { border: 2px dashed var(--bo-indigo-trait); background: #f7fdfc; box-shadow: none; padding: 18px; gap: 10px; }
.soc-nouvelle:hover { transform: none; box-shadow: none; }
.soc-nouvelle-t span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--bo-indigo-clair); color: var(--bo-indigo-fonce); font-size: 24px; font-weight: 700; }
.soc-nouvelle-t h2 { margin: 10px 0 2px; }
.soc-nouvelle form label { margin-top: 10px; }
.soc-nouvelle form .bouton { width: 100%; margin-top: 14px; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .soc-carte { transition: none; } .soc-carte:hover { transform: none; } }
.soc-actions .bouton { flex: 1 1 100%; justify-content: center; }
.soc-actions a:not(.bouton) { flex: 1 1 0; text-align: center; }
.soc-nom-logo { color: #fff; font-weight: 800; font-size: 18px; text-align: center; letter-spacing: .01em; }

/* Cartes sociétés alignées d'une carte à l'autre (Guillaume, 08/11/2026 : « fais en sorte que les textes soient alignés ») :
   chaque carte occupe 8 rangées de la grille commune (sous-grille) — bandeau, nom, charte, numéros, espace client, contact,
   état, boutons — si bien qu'un nom sur deux lignes décale toute la rangée, pas une seule carte. */
@supports (grid-template-rows: subgrid) {
  .soc-grille { grid-auto-rows: auto; row-gap: 0; }
  .soc-carte { display: grid; grid-row: span 8; grid-template-rows: subgrid; row-gap: 0; margin-bottom: 18px; }
  .soc-corps, .soc-infos { display: contents; }
  .soc-ident, .soc-charte, .soc-infos > div, .soc-etat { margin-left: 18px; margin-right: 18px; }
  .soc-ident { padding-top: 16px; align-self: center; }
  .soc-charte { padding-top: 12px; align-self: start; }
  .soc-infos > div { padding-top: 12px; align-self: start; }
  .soc-etat { margin-top: 14px; align-self: start; }
  .soc-actions { align-self: end; margin-top: 14px; }
  .soc-nouvelle { display: flex; grid-row: span 8; margin-bottom: 18px; }
}

/* Prix + bouton carré dans le même cadre bleu (Guillaume, 08/11/2026). Sans prix vérifié, .af-offre ne se voit pas : le bouton
   reprend sa forme ordinaire. */
.a-faire .af-offre { flex: 1 1 100%; width: 100%; display: flex; flex-direction: column; gap: 12px; }
.a-faire .af-offre:has(> .af-prix:not([hidden])) { flex-direction: row; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--rayon);
  background: var(--marque); color: #fff; margin-top: 4px; }
.a-faire .af-offre:has(> .af-prix:not([hidden])) .af-prix { flex: 1 1 auto; min-width: 0; width: auto; }
.a-faire .af-offre:has(> .af-prix:not([hidden])) .dl-prix { background: none; padding: 0; margin: 0; border-radius: 0; }
.a-faire .af-offre .af-carre-ico { display: none; }
.a-faire .af-offre:has(> .af-prix:not([hidden])) .af-carre { flex: none; width: 132px; height: 132px; aspect-ratio: 1; padding: 12px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; text-align: center; white-space: normal; line-height: 1.25; letter-spacing: .04em; font-size: 13px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: transform .15s, box-shadow .15s; }
.a-faire .af-offre:has(> .af-prix:not([hidden])) .af-carre:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
.a-faire .af-offre:has(> .af-prix:not([hidden])) .af-carre-ico { display: block; }
@media (max-width: 560px) {
  .a-faire.avec-apercu .af-offre { grid-column: 1 / -1; }
  .a-faire .af-offre:has(> .af-prix:not([hidden])) { gap: 12px; padding: 14px; align-items: center; }
  .a-faire .af-offre:has(> .af-prix:not([hidden])) .af-carre { width: 104px; height: 104px; padding: 10px 8px; font-size: 11.5px; letter-spacing: .02em; }
  .a-faire .af-offre:has(> .af-prix:not([hidden])) .dl-prix strong { font-size: 24px; }
  .a-faire .af-offre:has(> .af-prix:not([hidden])) .dl-prix-ar { font-size: 13px; }
}

/* Parcours sous l'encadré (Guillaume, 08/11/2026 : « je ne vois plus l'idée d'étape et de progression ») : frise numérotée reliée
   par un trait, étapes faites en vert, étape en cours à la couleur de la société — sur ordinateur comme sur téléphone. */
.etapes { counter-reset: etape; display: flex; flex-wrap: nowrap; gap: 0; margin: 4px 0 18px; padding: 14px 4px 4px; font-size: 13px; }
.etapes li { counter-increment: etape; position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 7px;
  text-align: center; line-height: 1.3; color: var(--discret); padding: 0 4px; }
.etapes li:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 3px; border-radius: 2px; background: var(--trait); }
.etapes li.fait:not(:last-child)::after { background: var(--ok); }
.etapes .puce { width: 30px; height: 30px; font-size: 13px; border-width: 2px; position: relative; z-index: 1; }
.etapes li:not(.fait) .puce::before { content: counter(etape); }
.etapes li.encours .puce { background: var(--accent); border-color: var(--accent); color: var(--accent-texte); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent); }
.etapes li.encours { color: var(--texte); font-weight: 700; }
.etapes li.avenir .puce { color: var(--discret); }
.a-faire .af-barre { display: none !important; }
@media (max-width: 560px) {
  .dossier > .etapes { display: flex; }
  .etapes { font-size: 10.5px; padding-top: 10px; margin-bottom: 14px; }
  .etapes li { padding: 0 1px; gap: 6px; overflow-wrap: normal; word-break: normal; }
  .etapes .puce { width: 26px; height: 26px; font-size: 12px; }
  .etapes li:not(:last-child)::after { top: 12px; left: calc(50% + 15px); right: calc(-50% + 15px); }
}
.etapes .et-court { display: none; }
@media (max-width: 560px) { .etapes .et-long { display: none; } .etapes .et-court { display: inline; } .etapes { font-size: 10.5px; } }
