/* ================================================================
   MOTRO CRM — refonte.css
   Chargee APRES les styles inline de index.html.

   Le CRM avait deja sa couche « verre » (Linear/Stripe). Cette
   passe ne la remplace pas : elle la met au niveau du reste du
   site, sur quatre points precis.

   1. LA COURBE. --transition-fine utilisait cubic-bezier(.4,0,.2,1)
      — la courbe Material que la doctrine proscrit nommement (elle
      demarre lentement, donc elle retarde l'instant exact ou l'oeil
      regarde). Toutes les transitions du CRM heritent de ce token :
      une ligne corrige tout.

   2. LE NOIR. rgba(17,19,24) vivait dans son coin ; il rejoint la
      rampe unifiee de l'app (#0A0A0C et ses declinaisons).

   3. LE FOCUS. Aucun anneau clavier ; le meme anneau jaune que
      connexion/admin/finder.

   4. LA PRESSION. Aucun bouton du CRM ne repondait au clic ;
      scale(0.97) en 140ms, partout, sauf desactive.
   ================================================================ */

:root {
    /* 1 — courbes fortes, memes valeurs que le reste du site */
    --transition-fine: .18s cubic-bezier(0.23, 1, 0.32, 1);

    /* 2 — le verre rejoint la rampe commune */
    --verre-sombre:      rgba(12, 12, 15, 0.92);
    --verre-sombre-haut: rgba(26, 26, 31, 0.94);
    --bord-fin:          rgba(255, 255, 255, 0.08);

    /* l'ombre profonde devient contact + diffusion, comme ailleurs */
    --ombre-profonde: 0 4px 8px rgba(0,0,0,0.30),
                      0 28px 64px -18px rgba(0,0,0,0.50);
}

/* 3 — Focus : l'anneau unifie, au clavier et dans les champs. */
:focus-visible {
    outline: 2px solid #FFCC00;
    outline-offset: 2px;
    border-radius: 8px;
}

#app input:focus,
#app select:focus,
#app textarea:focus {
    outline: none;
    border-color: rgba(255, 204, 0, 0.65) !important;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.25) !important;
}

/* 4 — La pression. Un CRM se clique des centaines de fois par
   jour : le retour doit etre bref (140ms) et subtil (0.97), jamais
   spectaculaire. Les elements desactives ne repondent pas — un
   retour tactile y promettrait une action qui n'arrivera pas. */
#app button:not(:disabled):active,
#app [role="button"]:not([aria-disabled="true"]):active {
    transform: scale(0.97);
    transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1);
}

/* Le verre du panneau client et de la messagerie gagne la
   saturation qui fait la difference entre « flou » et « materiau »
   — les couleurs qui traversent restent vivantes. */
#client-panel,
#compose-fenetre {
    -webkit-backdrop-filter: blur(14px) saturate(170%) !important;
    backdrop-filter: blur(14px) saturate(170%) !important;
}

/* La selection porte la marque, comme partout ailleurs. */
::selection { background: rgba(255, 204, 0, 0.32); color: #111; }

/* ── Replis ────────────────────────────────────────────────────── */

@media (prefers-reduced-transparency: reduce) {
    #client-panel  { background: #F8FAFC !important;
                     -webkit-backdrop-filter: none !important;
                     backdrop-filter: none !important; }
    #compose-fenetre { background: #FFFFFF !important;
                     -webkit-backdrop-filter: none !important;
                     backdrop-filter: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    #app button:not(:disabled):active,
    #app [role="button"]:not([aria-disabled="true"]):active {
        transform: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   APERÇU DU DOCUMENT — réglages « Entreprise & Légal »
   ───────────────────────────────────────────────────────────────────────────
   L'aperçu rend le PDF RÉEL dans un cadre. Ces styles vivent ici, hors du bloc
   Tailwind chargé depuis un CDN : l'écran de réglages doit rester lisible même
   si le CDN ne répond pas — c'est déjà le parti retenu pour les notifications.
   ═════════════════════════════════════════════════════════════════════════ */

.apercu-entete {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}
.apercu-titre h3 {
    margin: 0;
    font-size: .9375rem;
    font-weight: 700;
    color: #1E293B;
    letter-spacing: -.01em;
}
.apercu-titre p {
    margin: .15rem 0 0;
    font-size: .75rem;
    line-height: 1.45;
    color: #5A6879;
}

/* Bascule Devis / Facture : un seul groupe, pas deux boutons indépendants —
   l'état sélectionné doit se lire d'un coup d'œil. */
.apercu-bascule {
    display: inline-flex;
    flex-shrink: 0;
    padding: 3px;
    border-radius: .65rem;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
}
.apercu-bascule button {
    padding: .35rem .8rem;
    border: 0;
    border-radius: .5rem;
    background: transparent;
    color: #5A6879;
    font: inherit;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .16s ease, color .16s ease;
}
.apercu-bascule button:hover { color: #1E293B; }
.apercu-bascule button.actif {
    background: #FFFFFF;
    color: #111111;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .10), 0 0 0 1px rgba(15, 23, 42, .04);
}
.apercu-bascule button:focus-visible {
    outline: 2px solid #FFCC00;
    outline-offset: 1px;
}

/* Le cadre garde le rapport d'une page A4 : l'aperçu doit ressembler à une
   feuille, pas à une zone de contenu. */
.apercu-cadre {
    position: relative;
    aspect-ratio: 210 / 297;
    width: 100%;
    border-radius: .9rem;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 28px -18px rgba(15, 23, 42, .35);
}
.apercu-cadre iframe.apercu-pdf {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #fff;
}

/* Rendu en cours : un voile discret plutôt qu'un vide. Le document précédent
   reste visible dessous, ce qui évite le clignotement à chaque frappe. */
.apercu-cadre[aria-busy="true"]::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(248, 250, 252, .55);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}
.apercu-cadre[aria-busy="true"]::before {
    content: "Mise à jour…";
    position: absolute;
    z-index: 2;
    top: .6rem;
    left: 50%;
    transform: translateX(-50%);
    padding: .25rem .7rem;
    border-radius: 999px;
    background: #111111;
    color: #fff;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .01em;
}

.apercu-panne {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 2rem 1.5rem;
    text-align: center;
    color: #5A6879;
    font-size: .8125rem;
    line-height: 1.5;
}
.apercu-panne strong { color: #B42318; font-size: .875rem; }
.apercu-panne-note { color: #94A3B8; font-size: .75rem; }

.apercu-telecharger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    width: 100%;
    margin-top: .6rem;
    min-height: 44px;
    padding: .6rem 1rem;
    border: 1px solid #E2E8F0;
    border-radius: .7rem;
    background: #fff;
    color: #334155;
    font: inherit;
    font-size: .8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.apercu-telecharger svg { width: 15px; height: 15px; }
.apercu-telecharger:hover { background: #F8FAFC; border-color: #CBD5E1; color: #111; }
.apercu-telecharger:active { transform: translateY(1px); }
.apercu-telecharger:focus-visible { outline: 2px solid #FFCC00; outline-offset: 2px; }

/* Sur téléphone, l'aperçu passe sous le formulaire : il n'a plus à coller au
   défilement, et une page A4 entière y serait illisible. */
@media (max-width: 1023px) {
    .apercu-cadre { aspect-ratio: 210 / 210; }
    .apercu-entete { flex-direction: column; gap: .5rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGES DE RÉGLAGES — passe de cohérence
   ───────────────────────────────────────────────────────────────────────────
   Surface « Operate » : on lit et on saisit, on ne contemple pas. La
   scanabilité et la constance priment sur l'expression ; la marque vit dans la
   précision des détails, pas dans des ornements.
   ═════════════════════════════════════════════════════════════════════════ */

/* Gris secondaire : #5A6879 et non le slate-500 (#64748B) du reste de l'app.
   Sur les fonds gris clairs employes ici (#EEF2F7, #F1F5F9), slate-500 tombe a
   4,2:1 — sous le seuil AA de 4,5:1 pour du texte courant. #5A6879 tient
   5,1:1 sur ces memes fonds et 5,7:1 sur blanc. Verifie au calcul, pas a l'oeil. */

/* ── Rythme vertical ──────────────────────────────────────────────────────
   Plus d'espace AU-DESSUS d'un titre qu'en dessous : le titre appartient au
   bloc qu'il introduit, pas à celui qu'il termine. Les cartes de réglages
   l'ignoraient, d'où des sections qui se lisaient collées à la précédente. */
.crm-view[data-vue="modele-document"] h3,
.crm-view[data-vue="email-config"] h3,
.crm-view[data-vue="paiement"] h3 {
    font-size: .9375rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #0F172A;
    margin: 0 0 .25rem;
}
/* La phrase d'intention sous un titre de section : elle explique le POURQUOI,
   le champ dit le QUOI. */
.crm-view[data-vue="modele-document"] h3 + p,
.crm-view[data-vue="email-config"] h3 + p,
.crm-view[data-vue="paiement"] h3 + p {
    margin: 0 0 1.1rem;
    font-size: .75rem;
    line-height: 1.5;
    color: #5A6879;
    max-width: 62ch;                 /* mesure de lecture, pas la largeur du bloc */
}

/* ── Champs ───────────────────────────────────────────────────────────────
   Les libellés étaient au même gris que les aides : deux rôles, une seule
   voix. Le libellé remonte, l'aide reste en retrait. */
.crm-view[data-vue] .lbl {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .005em;
    color: #475569;
}

/* Les données de référence — IBAN, BIC, SIRET, TVA, montants — en chiffres à
   chasse fixe. On les compare et on les recopie : l'alignement des colonnes
   est ce qui rend une erreur de saisie visible. */
.crm-view[data-vue="modele-document"] input[name="iban"],
.crm-view[data-vue="modele-document"] input[name="bic"],
.crm-view[data-vue="modele-document"] input[name="socSiret"],
.crm-view[data-vue="modele-document"] input[name="socTvaIntra"],
.crm-view[data-vue="modele-document"] input[name="socRcs"],
.crm-view[data-vue="modele-document"] input[name="socCapital"] {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    letter-spacing: .01em;
}

/* Sélecteur de couleur : la pastille et son explication étaient alignées au
   petit bonheur. Une rangée, une hauteur, un alignement optique. */
.champ-couleur {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: .35rem;
}
.champ-couleur input[type="color"] {
    inline-size: 44px;
    block-size: 36px;
    padding: 2px;
    border: 1px solid #E2E8F0;
    border-radius: .5rem;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
}
.champ-couleur span {
    font-size: .75rem;
    color: #5A6879;
    line-height: 1.35;
}

/* ── Surfaces dessinées par le navigateur ─────────────────────────────────
   Anneau de focus, sélection de texte, curseur et ascenseurs arrivent avec les
   défauts du navigateur, qui n'appartiennent à aucune charte. Les teinter est
   le signal le moins cher qu'une interface a été construite, pas assemblée. */
.crm-view[data-vue] input:focus-visible,
.crm-view[data-vue] select:focus-visible,
.crm-view[data-vue] textarea:focus-visible,
.crm-view[data-vue] button:focus-visible {
    outline: 2px solid #FFCC00;
    outline-offset: 2px;
    border-radius: .5rem;
}
.crm-view[data-vue] ::selection { background: rgba(255, 204, 0, .32); color: #111; }
.crm-view[data-vue] input, .crm-view[data-vue] textarea { caret-color: #111; }

/* Barre d'onglets des réglages : l'onglet actif portait une ombre portée
   colorée sans décalage — une décoration, pas une profondeur. Un aplat franc
   suffit à dire « ici ». */
.param-tab.actif { box-shadow: 0 1px 2px rgba(15, 23, 42, .18); }
.param-tab:focus-visible { outline: 2px solid #FFCC00; outline-offset: 2px; }

/* ── Téléphone ────────────────────────────────────────────────────────────
   Les réglages se consultent aussi entre deux rendez-vous. Cibles à 44 px et
   champs à 16 px : sous 16 px, iOS zoome tout seul au focus et l'utilisateur
   perd la page. */
@media (max-width: 767px) {
    .crm-view[data-vue="modele-document"] .grid,
    .crm-view[data-vue="email-config"] .grid {
        grid-template-columns: 1fr !important;
    }
    .crm-view[data-vue] input,
    .crm-view[data-vue] select,
    .crm-view[data-vue] textarea {
        font-size: 16px !important;
        min-height: 44px;
    }
    .param-tab { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Suppression d'une ligne de devis.
   L'icône faisait 15 px dans un bouton sans dimensions, en slate-300 : une
   cible qu'on rate et qu'on distingue mal du fond. Elle passe à 18 px dans une
   zone de 40 px — le geste est destructif, il doit être atteignable du premier
   coup, mais rester discret tant qu'on ne le vise pas. */
.btn-suppr-ligne {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: .6rem;
    background: transparent;
    /* #94A3B8 ne donnait que 2,56:1 sur blanc — sous le seuil de 3:1 exige des
       composants d'interface (WCAG 1.4.11). #7B8A9E tient 3,52:1 et reste
       discret. */
    color: #7B8A9E;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.btn-suppr-ligne svg { width: 18px; height: 18px; }
.btn-suppr-ligne:hover { background: rgba(214, 69, 69, .10); color: #D64545; }
.btn-suppr-ligne:active { transform: scale(.92); }
.btn-suppr-ligne:focus-visible { outline: 2px solid #FFCC00; outline-offset: 2px; }

@media (max-width: 767px) {
    /* Au doigt, 40 px ne suffit pas pour une action destructive. */
    .btn-suppr-ligne { width: 44px; height: 44px; }
    .btn-suppr-ligne svg { width: 20px; height: 20px; }
}

/* ── Extension de garantie dans le récapitulatif d'articles ─────────────────
   Même intention que sur le PDF et sur la page publique motro.fr/devis : la
   ligne se REMARQUE sans se détacher de la lecture. Le corps de texte reste
   celui des autres articles ; seuls le fond, les filets et la pastille
   distinguent l'option souscrite.
   Teinte SÉMANTIQUE (rassurance) et non couleur de marque : elle reste juste
   quelle que soit l'entreprise qui exploite le CRM, comme le rouge d'une
   remise. Contraste #067647 sur #DCFAE6 = 5,1:1. */
.ligne-serenite td {
  background: #ECFAF1 !important;   /* doit l'emporter sur le zébrage des lignes */
  border-top: 1px solid #7FD8A6;
  border-bottom: 1px solid #7FD8A6;
}
.tag-serenite {
  display: inline-block;
  margin-bottom: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #DCFAE6;
  color: #067647;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FICHE CLIENT — mise en page « dossier »
   ───────────────────────────────────────────────────────────────────────────
   En-tête pleine largeur, puis deux colonnes : les sections de la fiche à
   gauche, les actions rapides et le contenu à droite. Surface « Operate » : on
   scanne, on note, on relance. La marque tient dans l'encre (#111), l'or de la
   sélection et du focus ; la couleur franche est réservée aux GENRES d'activité,
   pour qu'un e-mail et un appel se distinguent avant d'être lus.

   CSS natif, hors du bloc Tailwind : tout ce contenu est injecté en JS et doit
   rester stylé même si le CDN tarde. Une seule surface, le panneau : jamais de
   panneau dans un panneau — à l'intérieur, on sépare par des filets.
   Contrastes vérifiés au calcul : #5A6879 = 5,7:1 sur blanc, 5,1:1 sur #F1F5F9.
   ═════════════════════════════════════════════════════════════════════════ */

/* Jetons partagés : la fiche client et le tableau de bord parlent la même langue. */
.fc,
.tb {
    --fc-encre: #0F172A;
    --fc-texte: #334155;
    --fc-texte-2: #5A6879;
    --fc-bord: rgba(15, 23, 42, .08);
    --fc-bord-fort: rgba(15, 23, 42, .16);
    --fc-fond-doux: #F6F8FA;
    --fc-noir: #111111;
    --fc-or: #FFCC00;
    --fc-rayon: 14px;
    --fc-ease: cubic-bezier(0.23, 1, 0.32, 1);
}
.fc {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    color: var(--fc-texte);
    font-size: .875rem;
}
.fc button, .fc input, .fc select, .fc textarea { font: inherit; }

.fc-panneau {
    background: #fff;
    border: 1px solid var(--fc-bord);
    border-radius: var(--fc-rayon);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -16px rgba(15, 23, 42, .14);
}

/* ── En-tête ─────────────────────────────────────────────────────────────── */
.fc-entete { padding: .875rem 1.5rem 1.25rem; }
.fc-retour {
    display: inline-flex; align-items: center; gap: .375rem;
    min-height: 32px; margin: 0 0 .625rem -.5rem; padding: 0 .625rem 0 .5rem;
    border: 0; border-radius: 8px; background: transparent;
    color: var(--fc-texte-2); font-size: .8125rem; font-weight: 600; cursor: pointer;
    transition: background .15s var(--fc-ease), color .15s var(--fc-ease);
}
.fc-retour:hover { background: rgba(15, 23, 42, .05); color: var(--fc-encre); }
.fc-retour-ico { width: 16px; height: 16px; }
.fc-identite { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.fc-identite-gauche { display: flex; align-items: flex-start; gap: 1rem; min-width: 0; flex: 1 1 22rem; }
.fc-identite-texte { min-width: 0; }
.fc-monogramme {
    flex: none; display: grid; place-items: center;
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--fc-noir); color: var(--fc-or);
    font-size: 1.125rem; font-weight: 700; letter-spacing: .02em;
}
.fc-nom {
    margin: 0; font-size: 1.625rem; line-height: 1.2; font-weight: 700;
    letter-spacing: -.02em; color: var(--fc-encre); text-wrap: balance; overflow-wrap: anywhere;
}
.fc-badges { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .5rem; }
.fc-badge {
    display: inline-flex; align-items: center; gap: .3rem;
    height: 24px; padding: 0 .6rem; border: 0; border-radius: 999px;
    background: #EEF2F6; color: #334155;
    font-size: .75rem; font-weight: 600; line-height: 1; white-space: nowrap;
}
.fc-badge-ico { width: 13px; height: 13px; vertical-align: 0 !important; }
.fc-badge--prospect   { background: #FEF3C7; color: #92400E; }
.fc-badge--client     { background: #DCFCE7; color: #166534; }
.fc-badge--partenaire { background: #E0F2FE; color: #075985; }
.fc-badge--inactif    { background: #F1F5F9; color: #475569; }
.fc-badge--alerte     { background: #FFEDD5; color: #9A3412; cursor: pointer; }
.fc-badge--alerte:hover { text-decoration: underline; text-underline-offset: 2px; }
.fc-coord { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-top: .75rem; color: var(--fc-texte-2); font-size: .8125rem; }
.fc-coord-el { display: inline-flex; align-items: center; gap: .375rem; min-width: 0; overflow-wrap: anywhere; }
.fc-coord-ico { width: 14px; height: 14px; flex: none; vertical-align: 0 !important; }
.fc-coord-lien { color: inherit; text-decoration: none; }
.fc-coord-lien:hover { color: var(--fc-encre); text-decoration: underline; text-underline-offset: 2px; }
.fc-chiffres { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin: 0; padding-top: .25rem; }
.fc-chiffres dt { font-size: .75rem; color: var(--fc-texte-2); }
.fc-chiffres dd { margin: .125rem 0 0; font-size: 1.0625rem; font-weight: 700; color: var(--fc-encre); font-variant-numeric: tabular-nums; }

/* ── Corps : sections + contenu ──────────────────────────────────────────── */
/* minmax(0, 1fr) partout : sans lui, une piste de grille prend la largeur
   MINIMALE de son contenu — le menu des sections, qui ne passe pas à la ligne
   sur téléphone, élargissait toute la fiche au-delà de l'écran. */
.fc-corps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
.fc-nav-zone { min-width: 0; }
.fc-principal, .fc-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; min-width: 0; }
/* Libellés courts quand la COLONNE est étroite (portable 13 pouces, tablette,
   téléphone) : requête de conteneur, car c'est la place laissée par le menu
   latéral qui compte, pas la largeur de l'écran. */
.fc-principal { container-type: inline-size; }
.fc-lib-c { display: none; }
@container (max-width: 760px) {
    .fc-actions .fc-lib-l { display: none; }
    .fc-actions .fc-lib-c { display: inline; }
}

.fc-nav { display: flex; gap: .25rem; }
.fc-nav-btn {
    display: flex; align-items: center; gap: .625rem;
    min-height: 40px; padding: 0 .75rem; border: 0; border-radius: 10px;
    background: transparent; color: #475569; font-size: .8125rem; font-weight: 500;
    text-align: left; white-space: nowrap; cursor: pointer;
    transition: background .15s var(--fc-ease), color .15s var(--fc-ease);
}
.fc-nav-btn:hover { background: rgba(15, 23, 42, .05); color: var(--fc-encre); }
.fc-nav-btn.actif { background: var(--fc-noir); color: #fff; font-weight: 600; }
.fc-nav-ico { width: 16px; height: 16px; flex: none; vertical-align: 0 !important; }
.fc-nav-btn.actif .fc-nav-ico { color: var(--fc-or); }
.fc-nav-lib { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fc-nav-compte { font-size: .6875rem; font-weight: 600; color: var(--fc-texte-2); font-variant-numeric: tabular-nums; }
.fc-nav-btn.actif .fc-nav-compte { color: rgba(255, 255, 255, .72); }
.fc-nav-point { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #EA580C; }

@media (min-width: 1024px) {
    .fc-corps { grid-template-columns: 248px minmax(0, 1fr); gap: 1.25rem; }
    .fc-nav-btn { padding-block: .5rem; white-space: normal; line-height: 1.25; }
    .fc-nav-zone { position: sticky; top: calc(var(--h-topbar, 62px) + 1rem); }
    .fc-nav {
        flex-direction: column; padding: .5rem;
        background: #fff; border: 1px solid var(--fc-bord); border-radius: var(--fc-rayon);
    }
}
@media (max-width: 1023px) {
    .fc-nav { overflow-x: auto; margin-inline: -.25rem; padding: .125rem .25rem; scrollbar-width: none; scroll-snap-type: x proximity; }
    .fc-nav::-webkit-scrollbar { display: none; }
    .fc-nav-btn { flex: none; scroll-snap-align: start; min-height: 38px; background: #fff; border: 1px solid var(--fc-bord); border-radius: 999px; }
    .fc-nav-btn.actif { border-color: var(--fc-noir); }
}

/* ── Boutons et actions rapides ─────────────────────────────────────────── */
.fc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.fc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    min-height: 38px; padding: 0 .875rem;
    border: 1px solid var(--fc-bord-fort); border-radius: 10px;
    background: #fff; color: var(--fc-encre);
    font-size: .8125rem; font-weight: 600; white-space: nowrap; cursor: pointer;
    transition: background .15s var(--fc-ease), border-color .15s var(--fc-ease), color .15s var(--fc-ease);
}
.fc-btn:hover { background: var(--fc-fond-doux); border-color: rgba(15, 23, 42, .26); }
.fc-btn-ico { width: 16px; height: 16px; flex: none; vertical-align: 0 !important; }
.fc-btn--primaire { background: var(--fc-noir); border-color: var(--fc-noir); color: #fff; }
.fc-btn--primaire:hover { background: #2A2A2A; border-color: #2A2A2A; }
.fc-btn--discret { background: transparent; border-color: transparent; color: #475569; }
.fc-btn--discret:hover { background: rgba(15, 23, 42, .05); border-color: transparent; color: var(--fc-encre); }
.fc-btn--icone { width: 38px; padding: 0; }
.fc-btn[aria-disabled="true"] { opacity: .55; }
.fc-btn:disabled { opacity: .55; cursor: not-allowed; }
.fc-btn:disabled:hover { background: #fff; border-color: var(--fc-bord-fort); }
.fc-btn--primaire:disabled:hover { background: var(--fc-noir); }
.fc-btn[aria-busy="true"] { cursor: progress; }
.fc-plus { position: relative; }
.fc-plus-lib { display: none; }
.fc-menu {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 40;
    min-width: 230px; padding: .375rem;
    background: #fff; border: 1px solid var(--fc-bord); border-radius: 12px;
    box-shadow: 0 4px 8px rgba(15, 23, 42, .06), 0 18px 40px -12px rgba(15, 23, 42, .24);
}
.fc-menu-el {
    display: flex; align-items: center; gap: .625rem; width: 100%;
    min-height: 38px; padding: 0 .625rem; border: 0; border-radius: 8px;
    background: transparent; color: var(--fc-encre); font-size: .8125rem; text-align: left; cursor: pointer;
}
.fc-menu-el:hover { background: var(--fc-fond-doux); }
.fc-menu-ico { width: 16px; height: 16px; color: var(--fc-texte-2); vertical-align: 0 !important; }

/* ── Éditeur : note, appel, tâche ────────────────────────────────────────── */
.fc-composer { padding-bottom: .875rem; }
.fc-cp-modes { display: flex; gap: .25rem; padding: .25rem .75rem 0; border-bottom: 1px solid var(--fc-bord); }
.fc-cp-mode {
    display: inline-flex; align-items: center; gap: .4rem;
    min-height: 42px; margin-bottom: -1px; padding: 0 .75rem;
    border: 0; border-bottom: 2px solid transparent; background: transparent;
    color: var(--fc-texte-2); font-size: .8125rem; font-weight: 600; cursor: pointer;
    transition: color .15s var(--fc-ease), border-color .15s var(--fc-ease);
}
.fc-cp-mode:hover { color: var(--fc-encre); }
.fc-cp-mode.actif { color: var(--fc-encre); border-bottom-color: var(--fc-noir); }
.fc-cp-mode-ico { width: 15px; height: 15px; vertical-align: 0 !important; }
.fc-cp-champs { display: grid; gap: .875rem; padding: 1rem 1rem 0; }
.fc-bascule { justify-self: start; display: inline-flex; padding: 3px; border-radius: 10px; background: #EEF2F6; }
.fc-bascule-opt { position: relative; }
.fc-bascule-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fc-bascule-opt span {
    display: inline-flex; align-items: center; min-height: 32px; padding: 0 .75rem; border-radius: 8px;
    color: var(--fc-texte-2); font-size: .8125rem; font-weight: 600;
    transition: background .15s var(--fc-ease), color .15s var(--fc-ease);
}
.fc-bascule-opt input:checked + span { background: #fff; color: var(--fc-encre); box-shadow: 0 1px 2px rgba(15, 23, 42, .14); }
.fc-bascule-opt input:focus-visible + span { outline: 2px solid var(--fc-or); outline-offset: 1px; }

.fc-editeur-cadre {
    margin: 1rem 1rem 0; border: 1px solid var(--fc-bord-fort); border-radius: 12px; background: #fff;
    transition: border-color .15s var(--fc-ease), box-shadow .15s var(--fc-ease);
}
.fc-editeur-cadre:focus-within { border-color: rgba(255, 204, 0, .8); box-shadow: 0 0 0 3px rgba(255, 204, 0, .24); }
.fc-outils { display: flex; align-items: center; gap: .125rem; padding: .25rem .375rem; border-bottom: 1px solid var(--fc-bord); }
.fc-outil {
    display: grid; place-items: center; width: 32px; height: 32px;
    border: 0; border-radius: 8px; background: transparent; color: #475569; cursor: pointer;
    transition: background .15s var(--fc-ease), color .15s var(--fc-ease);
}
.fc-outil:hover { background: rgba(15, 23, 42, .06); color: var(--fc-encre); }
.fc-outil[aria-pressed="true"] { background: #E3E8EE; color: var(--fc-encre); }
.fc-outil:disabled { opacity: .4; cursor: not-allowed; background: transparent; }
.fc-outil-ico { width: 16px; height: 16px; vertical-align: 0 !important; }
.fc-outils-sep { width: 1px; height: 18px; margin: 0 .25rem; background: var(--fc-bord-fort); }
.fc-editeur {
    min-height: 92px; max-height: 320px; overflow-y: auto; padding: .75rem .875rem;
    color: var(--fc-encre); font-size: .875rem; line-height: 1.55; overflow-wrap: anywhere; caret-color: #111;
}
.fc .fc-editeur:focus, .fc .fc-editeur:focus-visible { outline: none; }
.fc-editeur.vide::before { content: attr(data-invite); color: #64748B; pointer-events: none; }
.fc-editeur--depot { background: #FFFBEB; }
.fc-editeur ul, .fc-note ul { list-style: disc; margin: .25rem 0; padding-left: 1.25rem; }
.fc-editeur li, .fc-note li { margin: .125rem 0; }
.fc-editeur b, .fc-editeur strong, .fc-note strong { font-weight: 700; color: var(--fc-encre); }
.fc-pj-liste { display: flex; flex-wrap: wrap; gap: .375rem; padding: 0 .75rem .75rem; }
.fc-pj {
    display: inline-flex; align-items: center; gap: .375rem; max-width: 100%; height: 30px;
    padding: 0 .25rem 0 .5rem; border: 1px solid var(--fc-bord); border-radius: 8px;
    background: var(--fc-fond-doux); color: var(--fc-encre); font-size: .75rem;
}
.fc-pj-ico { width: 14px; height: 14px; flex: none; vertical-align: 0 !important; }
.fc-pj-nom { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-pj-poids { color: var(--fc-texte-2); font-variant-numeric: tabular-nums; }
.fc-pj-retirer { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: var(--fc-texte-2); cursor: pointer; }
.fc-pj-retirer:hover { background: rgba(214, 69, 69, .1); color: #B42318; }
.fc-cp-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .875rem 1rem 0; }
.fc-cp-aide { color: var(--fc-texte-2); font-size: .75rem; }
.fc-cp-aide kbd {
    padding: .05rem .35rem; border: 1px solid var(--fc-bord-fort); border-bottom-width: 2px; border-radius: 5px;
    background: #fff; color: var(--fc-encre); font: inherit; font-size: .6875rem; font-weight: 600;
}
.fc-cp-boutons { display: flex; gap: .5rem; margin-left: auto; }

/* ── Champs de formulaire ────────────────────────────────────────────────── */
.fc-grille { display: grid; gap: .875rem 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr)); }
.fc-champ { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.fc-champ--large { grid-column: 1 / -1; }
.fc-champ > span { color: #475569; font-size: .75rem; font-weight: 600; }
.fc-champ input, .fc-champ select, .fc-champ textarea, .fc-select-compact {
    width: 100%; min-height: 38px; padding: 0 .7rem;
    border: 1px solid var(--fc-bord-fort); border-radius: 9px; background: #fff;
    color: var(--fc-encre); font-size: .875rem;
    transition: border-color .15s var(--fc-ease), box-shadow .15s var(--fc-ease);
}
.fc-champ textarea { padding: .55rem .7rem; line-height: 1.5; resize: vertical; }
.fc-champ input:disabled, .fc-champ select:disabled, .fc-champ textarea:disabled, .fc-select-compact:disabled {
    background: var(--fc-fond-doux); color: var(--fc-texte-2); cursor: not-allowed;
}
.fc-select-compact { width: auto; min-width: 11rem; }

/* ── Panneaux de section ─────────────────────────────────────────────────── */
.fc-panneau-tete { padding: 1rem 1.25rem .875rem; border-bottom: 1px solid var(--fc-bord); }
.fc-panneau-tete--actions { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem 1rem; }
.fc-titre-section { margin: 0; color: var(--fc-encre); font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.fc-intro { max-width: 62ch; margin: .2rem 0 0; color: var(--fc-texte-2); font-size: .8125rem; line-height: 1.5; }
.fc-fieldset { display: grid; gap: 1.25rem; min-width: 0; margin: 0; padding: 1rem 1.25rem 1.25rem; border: 0; }
.fc-form-groupe { display: grid; gap: .75rem; }
.fc-form-groupe + .fc-form-groupe { padding-top: 1.25rem; border-top: 1px solid var(--fc-bord); }
.fc-form-groupe-titre { margin: 0; color: var(--fc-encre); font-size: .8125rem; font-weight: 700; }
.fc-form-pied {
    display: flex; align-items: center; justify-content: flex-end; gap: .75rem;
    padding: .75rem 1.25rem; border-top: 1px solid var(--fc-bord);
    background: #FBFCFD; border-radius: 0 0 var(--fc-rayon) var(--fc-rayon);
}
.fc-enregistre { color: #166534; font-size: .8125rem; font-weight: 600; }
.fc-alerte { padding: .75rem .875rem; border-radius: 10px; background: #FFF8E1; color: #6B4E00; font-size: .8125rem; line-height: 1.5; }
.fc-alerte strong { color: #4A3600; }

.fc-liste > .fc-ligne + .fc-ligne { border-top: 1px solid var(--fc-bord); }
.fc-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: .75rem 1.25rem; }
.fc-ligne-ident { display: flex; align-items: center; gap: .75rem; flex: 1 1 16rem; min-width: 0; }
.fc-ligne-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; }
.fc-montant { color: var(--fc-encre); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fc-sep { margin: 0 .375rem; color: #94A3B8; }
.fc-code {
    padding: .05rem .4rem; border-radius: 6px; background: #EEF2F6; color: var(--fc-encre);
    font-size: .75rem; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums;
}
.fc-piece { align-items: flex-start; }
.fc-piece-photo { width: 56px; height: 56px; flex: none; border-radius: 10px; background: #EEF2F6; object-fit: cover; }
.fc-piece-photo--vide { display: grid; place-items: center; color: #7B8A9E; }
.fc-piece-corps, .fc-opp-corps, .fc-doc-corps { display: grid; gap: .2rem; flex: 1 1 14rem; min-width: 0; }
.fc-piece-titre { margin: 0; color: var(--fc-encre); font-weight: 600; overflow-wrap: anywhere; }
.fc-piece-meta { display: flex; flex-wrap: wrap; align-items: center; row-gap: .25rem; margin: 0; color: var(--fc-texte-2); font-size: .8125rem; }
.fc-piece-devis-liste { display: flex; flex-wrap: wrap; gap: .375rem 1rem; margin-top: .25rem; font-size: .8125rem; }
.fc-piece-devis { display: inline-flex; align-items: center; gap: .5rem; }
.fc-etat { font-weight: 600; }
.fc-etat--dispo { color: #166534; }
.fc-etat--vendu { color: #9A3412; }
.fc-doc-ico { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: #EEF2F6; color: #475569; }
.fc-doc-lien {
    padding: 0; border: 0; background: none; color: #075985; font-weight: 600; text-align: left; cursor: pointer;
    text-decoration: underline; text-decoration-color: rgba(7, 89, 133, .35); text-underline-offset: 3px; overflow-wrap: anywhere;
}
.fc-doc-lien:hover { color: #0C4A6E; text-decoration-color: currentColor; }
.fc-doc-nom { color: var(--fc-encre); font-weight: 600; overflow-wrap: anywhere; }
.fc-ajout {
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: .75rem;
    padding: 1rem 1.25rem; border-top: 1px solid var(--fc-bord);
    background: #FBFCFD; border-radius: 0 0 var(--fc-rayon) var(--fc-rayon);
}
.fc-fil {
    display: grid; gap: .75rem; max-height: 480px; overflow-y: auto; padding: 1rem 1.25rem;
    background: var(--fc-fond-doux); border-radius: 0 0 var(--fc-rayon) var(--fc-rayon);
}
.fc-journal { margin: 0; padding: .25rem 0; list-style: none; }
.fc-journal-el { display: grid; grid-template-columns: 7.5rem 6.5rem minmax(0, 1fr) auto; align-items: baseline; gap: .75rem; padding: .5rem 1.25rem; font-size: .8125rem; }
.fc-journal-el + .fc-journal-el { border-top: 1px solid var(--fc-bord); }
.fc-journal-date { color: var(--fc-texte-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fc-journal-type { color: var(--fc-encre); font-weight: 600; }
.fc-journal-texte { color: var(--fc-texte); overflow-wrap: anywhere; }
.fc-journal-pj { display: inline-flex; align-items: center; gap: .2rem; color: var(--fc-texte-2); }

/* ── Chronologie ─────────────────────────────────────────────────────────── */
.fc-flux-tete { padding: 1rem 1.25rem 0; }
.fc-filtres {
    display: flex; gap: .125rem; margin-top: .375rem; padding: 0 .75rem;
    border-bottom: 1px solid var(--fc-bord); overflow-x: auto; scrollbar-width: none;
}
.fc-filtres::-webkit-scrollbar { display: none; }
.fc-filtre {
    display: inline-flex; flex: none; align-items: center; gap: .4rem;
    min-height: 42px; margin-bottom: -1px; padding: 0 .625rem;
    border: 0; border-bottom: 2px solid transparent; background: transparent;
    color: var(--fc-texte-2); font-size: .8125rem; font-weight: 600; cursor: pointer;
    transition: color .15s var(--fc-ease), border-color .15s var(--fc-ease);
}
.fc-filtre:hover { color: var(--fc-encre); }
.fc-filtre.actif { color: var(--fc-encre); border-bottom-color: var(--fc-noir); }
.fc-filtre-compte {
    min-width: 1.35rem; padding: 0 .35rem; border-radius: 999px; background: #EEF2F6; color: #475569;
    font-size: .6875rem; line-height: 1.25rem; text-align: center; font-variant-numeric: tabular-nums;
}
.fc-filtre.actif .fc-filtre-compte { background: var(--fc-noir); color: #fff; }
.fc-flux-corps { padding: 0 1.25rem 1.25rem; }
.fc-groupe-titre { margin: 1.125rem 0 .25rem; color: var(--fc-texte-2); font-size: .75rem; font-weight: 600; }

.fc-ev-liste, .fc-av-liste { margin: 0; padding: 0; list-style: none; }
.fc-ev { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: .75rem; padding: .625rem 0; }
.fc-ev::before {                       /* rail qui relie les pastilles d'un même mois */
    content: ""; position: absolute; left: 15.5px; top: 2.875rem; bottom: -.625rem;
    width: 1px; background: var(--fc-bord-fort);
}
.fc-ev:last-child::before { display: none; }
.fc-ev-ico, .fc-av-ico { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; }
.fc-ev-svg { width: 15px; height: 15px; vertical-align: 0 !important; }
.fc-ev--commentaire .fc-ev-ico { background: #FEF3C7; color: #78350F; }
.fc-ev--email .fc-ev-ico       { background: #E0F2FE; color: #075985; }
.fc-ev--tache .fc-ev-ico, .fc-av--tache .fc-av-ico { background: #EDE9FE; color: #5B21B6; }
.fc-ev--appel .fc-ev-ico, .fc-av--appel .fc-av-ico { background: #DCFCE7; color: #166534; }
.fc-ev--devis .fc-ev-ico       { background: #E7EBF0; color: #111111; }
.fc-ev--opportunite .fc-ev-ico { background: #FFEDD5; color: #9A3412; }
.fc-ev-corps { min-width: 0; padding-top: .3rem; }
.fc-ev-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.fc-ev-titre { min-width: 0; margin: 0; color: var(--fc-encre); font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.fc-ev-droite { display: flex; flex: none; align-items: center; gap: .25rem; }
.fc-ev-date { color: var(--fc-texte-2); font-size: .75rem; line-height: 1.6; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fc-ev-meta { display: flex; flex-wrap: wrap; align-items: center; row-gap: .25rem; margin: .125rem 0 0; color: var(--fc-texte-2); font-size: .8125rem; overflow-wrap: anywhere; }
.fc-ev-contenu { margin-top: .5rem; }
.fc-ev-texte { max-width: 72ch; color: var(--fc-texte); font-size: .875rem; line-height: 1.55; overflow-wrap: anywhere; }
.fc-ev-texte--brut { white-space: pre-line; }
.fc-replie {
    max-height: 4.8em; overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent);
    mask-image: linear-gradient(180deg, #000 50%, transparent);
}
.fc-ev-plus { margin-top: .25rem; padding: 0; border: 0; background: none; color: #075985; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.fc-ev-plus:hover { text-decoration: underline; text-underline-offset: 2px; }
.fc-ev-pj { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .5rem; }
.fc-ev-action {
    display: grid; place-items: center; width: 30px; height: 30px;
    border: 0; border-radius: 8px; background: transparent; color: #7B8A9E; cursor: pointer;
    transition: background .15s var(--fc-ease), color .15s var(--fc-ease);
}
.fc-ev-action:hover { background: rgba(214, 69, 69, .1); color: #B42318; }
.fc-ev-action--texte { width: auto; padding: 0 .5rem; color: #475569; font-size: .75rem; font-weight: 600; }
.fc-ev-action--texte:hover { background: rgba(15, 23, 42, .06); color: var(--fc-encre); }
.fc-ev-action-ico { width: 15px; height: 15px; vertical-align: 0 !important; }

.fc-av {
    display: grid; grid-template-columns: auto 32px minmax(0, 1fr) auto auto; align-items: center; gap: .625rem;
    margin: 0 -.625rem; padding: .5rem .625rem; border-radius: 10px;
    transition: background .15s var(--fc-ease);
}
.fc-av:hover { background: var(--fc-fond-doux); }
.crm-view .fc .fc-av-case { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: #111; cursor: pointer; }
.fc-av-corps { display: grid; gap: .1rem; min-width: 0; cursor: pointer; }
.fc-av-titre { color: var(--fc-encre); font-weight: 600; overflow-wrap: anywhere; }
.fc-av-meta { color: var(--fc-texte-2); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.fc-av-extrait { overflow: hidden; color: var(--fc-texte); font-size: .8125rem; text-overflow: ellipsis; white-space: nowrap; }
.fc-av--retard .fc-av-meta { color: #B42318; font-weight: 600; }
.fc-av-retard { padding: .15rem .5rem; border-radius: 999px; background: #FEE4E2; color: #B42318; font-size: .6875rem; font-weight: 700; white-space: nowrap; }

.fc-vide { display: grid; justify-items: start; gap: .375rem; max-width: 60ch; padding: 1.5rem 1.25rem; color: var(--fc-texte-2); font-size: .8125rem; line-height: 1.55; }
.fc-vide p { margin: 0; }
.fc-vide-titre { color: var(--fc-encre); font-size: .875rem; font-weight: 600; }
.fc-vide .fc-btn { margin-top: .5rem; }
.fc-flux-corps > .fc-vide { padding-inline: 0; }
.fc-voir-plus { display: flex; margin: .75rem auto 0; }
.fc-voir-plus-reste { color: var(--fc-texte-2); font-weight: 500; }

/* Retour visuel d'un ajout : bref, là où l'œil se trouve déjà. */
@keyframes fcNouveau { from { background-color: rgba(255, 204, 0, .24); } to { background-color: rgba(255, 204, 0, 0); } }
.fc-nouveau { border-radius: 10px; animation: fcNouveau 1.4s cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes fcRepere { 0%, 55% { box-shadow: 0 0 0 3px rgba(255, 204, 0, .65); } 100% { box-shadow: 0 0 0 3px rgba(255, 204, 0, 0); } }
.fc-repere { animation: fcRepere 1.7s cubic-bezier(0.23, 1, 0.32, 1) both; }

/* ── Téléphone ───────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .fc-entete { padding: .625rem 1rem 1rem; }
    .fc-nom { font-size: 1.3125rem; }
    .fc-monogramme { width: 44px; height: 44px; border-radius: 12px; font-size: 1rem; }
    .fc-chiffres { width: 100%; gap: .5rem 1.5rem; padding-top: .75rem; border-top: 1px solid var(--fc-bord); }
    .fc-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .fc-actions .fc-btn { width: 100%; min-height: 44px; padding: 0 .625rem; white-space: normal; text-align: center; line-height: 1.2; }
    .fc-actions > .fc-btn--primaire { grid-column: 1 / -1; order: -1; }
    .fc-plus-lib { display: inline; }
    .fc-menu { left: 0; right: auto; }
    .fc-panneau-tete, .fc-flux-corps, .fc-ligne, .fc-fieldset, .fc-form-pied, .fc-ajout, .fc-fil { padding-left: 1rem; padding-right: 1rem; }
    .fc-flux-tete { padding-inline: 1rem; }
    .fc-cp-champs { padding-inline: .75rem; }
    .fc-editeur-cadre { margin-inline: .75rem; }
    .fc-editeur { font-size: 16px; }
    .fc-outil { width: 40px; height: 40px; }
    .fc-cp-aide { display: none; }
    .fc-cp-pied { padding-inline: .75rem; }
    .fc-cp-boutons { width: 100%; }
    .fc-cp-boutons .fc-btn { flex: 1; min-height: 44px; }
    .fc-ajout { grid-template-columns: 1fr; }
    .fc-select-compact { width: 100%; }
    .fc-journal-el { grid-template-columns: auto minmax(0, 1fr) auto; }
    .fc-journal-texte { grid-column: 1 / -1; }
    .fc-av { grid-template-columns: auto 32px minmax(0, 1fr) auto; }
    .fc-av-retard { grid-column: 3; justify-self: start; }
    .fc-ev-action { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    .fc-nouveau, .fc-repere { animation: none; }
    .fc *, .fc *::before { transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TABLEAU DE BORD — blocs opérationnels
   ───────────────────────────────────────────────────────────────────────────
   Même vocabulaire que la fiche client : onglets soulignés, pastilles de genre
   (violet tâche, vert appel, bleu e-mail), filets plutôt que cartes imbriquées.
   Les conteneurs gardent les cartes du tableau de bord ; seul l'intérieur est
   stylé ici, en CSS natif, pour la même raison que la fiche : contenu injecté.
   ═════════════════════════════════════════════════════════════════════════ */
.tb { color: var(--fc-texte); font-size: .875rem; scroll-margin-top: calc(var(--h-topbar, 62px) + 1rem); }
.tb-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: 1rem 1.25rem .625rem; }
.crm-view .tb h3.tb-bloc-titre {
    display: inline-flex; align-items: center; gap: .5rem; margin: 0;
    color: var(--fc-encre); font-size: .9375rem; font-weight: 700; letter-spacing: -.01em;
}
.tb-tete-liens { display: flex; flex-wrap: wrap; gap: .125rem; }
.tb-lien-tete {
    min-height: 32px; padding: 0 .5rem; border: 0; border-radius: 8px; background: transparent;
    color: #475569; font-size: .8125rem; font-weight: 600; cursor: pointer;
    transition: background .15s var(--fc-ease), color .15s var(--fc-ease);
}
.tb-lien-tete:hover { background: rgba(15, 23, 42, .05); color: var(--fc-encre); }
.tb-pastille {
    min-width: 1.35rem; padding: 0 .4rem; border-radius: 999px; background: #0369A1; color: #fff;
    font-size: .6875rem; font-weight: 700; line-height: 1.25rem; text-align: center; font-variant-numeric: tabular-nums;
}

.tb-onglets { display: flex; gap: .125rem; padding: 0 .75rem; border-bottom: 1px solid var(--fc-bord); overflow-x: auto; scrollbar-width: none; }
.tb-onglets::-webkit-scrollbar { display: none; }
.tb-onglet {
    display: inline-flex; flex: none; align-items: center; gap: .4rem;
    min-height: 42px; margin-bottom: -1px; padding: 0 .625rem;
    border: 0; border-bottom: 2px solid transparent; background: transparent;
    color: var(--fc-texte-2); font-size: .8125rem; font-weight: 600; cursor: pointer;
    transition: color .15s var(--fc-ease), border-color .15s var(--fc-ease);
}
.tb-onglet:hover { color: var(--fc-encre); }
.tb-onglet.actif { color: var(--fc-encre); border-bottom-color: var(--fc-noir); }
.tb-compte {
    min-width: 1.35rem; padding: 0 .35rem; border-radius: 999px; background: #EEF2F6; color: #475569;
    font-size: .6875rem; font-weight: 600; line-height: 1.25rem; text-align: center; font-variant-numeric: tabular-nums;
}
.tb-onglet--alerte .tb-compte { background: #FEE4E2; color: #B42318; }
.tb-onglet.actif .tb-compte { background: var(--fc-noir); color: #fff; }

.tb-liste, .tb-demandes, .tb-pieces { margin: 0; padding: 0; list-style: none; }
.tb-liste { padding: .375rem .5rem .5rem; }
.tb-ligne {
    display: grid; grid-template-columns: 18px 32px minmax(0, 1fr) auto; align-items: center; gap: .625rem;
    padding: .5rem .75rem; border-radius: 10px;
    transition: background .15s var(--fc-ease), opacity .3s var(--fc-ease);
}
.tb-ligne:hover { background: var(--fc-fond-doux); }
.tb-ligne--faite { opacity: .45; }
.tb-ligne--faite .tb-titre { text-decoration: line-through; }
.crm-view .tb .tb-case { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: #111; cursor: pointer; }
.tb-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; }
.tb-svg { width: 15px; height: 15px; flex: none; vertical-align: 0 !important; }
.tb-ico--tache   { background: #EDE9FE; color: #5B21B6; }
.tb-ico--appel   { background: #DCFCE7; color: #166534; }
.tb-ico--relance { background: #E0F2FE; color: #075985; }
.tb-corps { display: grid; gap: .1rem; min-width: 0; }
.tb-titre { margin: 0; color: var(--fc-encre); font-weight: 600; overflow-wrap: anywhere; }
label.tb-titre { cursor: pointer; }
.tb-meta { display: flex; flex-wrap: wrap; align-items: center; row-gap: .2rem; margin: 0; color: var(--fc-texte-2); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.tb-ligne--retard .tb-quand { color: #B42318; font-weight: 600; }
.tb-montant { color: var(--fc-encre); font-weight: 600; white-space: nowrap; }
.tb-code { color: var(--fc-encre); font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.tb-lien {
    padding: 0; border: 0; background: none; color: #075985; font: inherit; font-weight: 600; text-align: left; cursor: pointer;
    text-decoration: underline; text-decoration-color: rgba(7, 89, 133, .3); text-underline-offset: 2px;
}
.tb-lien:hover { color: #0C4A6E; text-decoration-color: currentColor; }
.tb-action {
    display: inline-flex; align-items: center; justify-content: center; gap: .375rem;
    min-height: 32px; padding: 0 .625rem; border: 1px solid var(--fc-bord-fort); border-radius: 8px;
    background: #fff; color: var(--fc-encre); font-size: .75rem; font-weight: 600; white-space: nowrap; cursor: pointer;
    transition: background .15s var(--fc-ease), border-color .15s var(--fc-ease);
}
.tb-action:hover { background: var(--fc-fond-doux); border-color: rgba(15, 23, 42, .26); }
.tb-action--primaire { background: var(--fc-noir); border-color: var(--fc-noir); color: #fff; }
.tb-action--primaire:hover { background: #2A2A2A; border-color: #2A2A2A; }
.tb-pied { margin: 0; padding: .25rem 1.25rem 1rem; color: var(--fc-texte-2); font-size: .8125rem; }
.tb-vide { display: grid; gap: .2rem; max-width: 60ch; padding: 1.25rem 1.25rem 1.5rem; color: var(--fc-texte-2); font-size: .8125rem; line-height: 1.55; }
.tb-vide strong { color: var(--fc-encre); font-size: .875rem; font-weight: 600; }
.tb-erreur { margin: 0 1.25rem .75rem; padding: .5rem .75rem; border-radius: 8px; background: #FEF3F2; color: #B42318; font-size: .75rem; }

.tb-demandes { border-top: 1px solid var(--fc-bord); }
.tb-demande { display: grid; gap: .3rem; padding: .75rem 1.25rem .875rem; }
.tb-demande + .tb-demande { border-top: 1px solid var(--fc-bord); }
.tb-demande-tete { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.tb-date { flex: none; color: var(--fc-texte-2); font-size: .75rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tb-extrait {
    display: -webkit-box; margin: 0; overflow: hidden; color: var(--fc-texte); font-size: .8125rem; line-height: 1.5;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.tb-demande-actions { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .25rem; }

.tb-colonnes { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--fc-bord); }
.tb-colonne { min-width: 0; padding: .875rem 1.25rem 1.125rem; }
@media (min-width: 640px) {
    .tb-colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tb-colonne + .tb-colonne { border-left: 1px solid var(--fc-bord); }
}
@media (max-width: 639px) {
    .tb-colonne + .tb-colonne { border-top: 1px solid var(--fc-bord); }
}
.crm-view .tb h4.tb-colonne-titre { display: flex; align-items: center; gap: .5rem; margin: 0; color: var(--fc-encre); font-size: .8125rem; font-weight: 700; }
.tb-aide { margin: .15rem 0 .375rem; color: var(--fc-texte-2); font-size: .75rem; line-height: 1.45; }
.tb-piece { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .25rem .75rem; padding: .5rem 0; }
.tb-piece + .tb-piece { border-top: 1px solid var(--fc-bord); }
.tb-piece-lien { display: flex; align-items: baseline; gap: .5rem; min-width: 0; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.tb-piece-lien .tb-titre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-piece-lien:hover .tb-titre { text-decoration: underline; text-underline-offset: 2px; }
.tb-piece .tb-meta { justify-content: flex-end; text-align: right; }
.tb-etapes { grid-column: 1 / -1; display: flex; gap: 3px; margin-top: .125rem; }
.tb-etape { flex: 1; height: 4px; border-radius: 2px; background: #E2E8F0; }
.tb-etape.fait { background: var(--fc-noir); }
.tb-etape-lib { grid-column: 1 / -1; color: var(--fc-texte-2); font-size: .75rem; }
.tb-plus, .tb-vide-court { margin: .375rem 0 0; color: var(--fc-texte-2); font-size: .75rem; }

/* Indicateurs cliquables : même carte, un curseur et un bord qui répondent. */
.tb-kpi { width: 100%; cursor: pointer; transition: border-color .15s cubic-bezier(0.23, 1, 0.32, 1); }
.tb-kpi:hover { border-color: rgba(15, 23, 42, .2) !important; }

@media (max-width: 767px) {
    .tb-tete, .tb-demande, .tb-colonne { padding-left: 1rem; padding-right: 1rem; }
    .tb-ligne { grid-template-columns: 18px 32px minmax(0, 1fr); padding-inline: .5rem; }
    .tb-ligne .tb-action { grid-column: 3; justify-self: start; }
    .tb-action { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    .tb *, .tb-kpi { transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SOURCING & MOTEURS — LOT DU 15/09/2026
   Même langue que la fiche client et le tableau de bord (jetons .fc) : un
   panneau, des filets, le noir pour l'action, le jaune en accent seulement.
   Contrastes : #5A6879 sur blanc 5,7:1 ; textes d'alerte ≥ 7:1 sur leur fond.
   ═════════════════════════════════════════════════════════════════════════ */

/* Un élément masqué reste masqué, même porteur d'une classe qui fixe `display`. */
.fc[hidden], .fc [hidden], .neg[hidden] { display: none !important; }

.src { gap: 1.25rem; }
.src-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 1rem; }
.src-titre { margin: 0; color: var(--fc-encre); font-size: 1.5rem; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.src-intro { max-width: 66ch; margin: .25rem 0 0; color: var(--fc-texte-2); font-size: .875rem; line-height: 1.5; }
.src-duree { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem; gap: .5rem; }
.src-recherche input {
    width: min(18rem, 100%); min-height: 38px; padding: 0 .7rem;
    border: 1px solid var(--fc-bord-fort); border-radius: 9px; background: #fff;
    color: var(--fc-encre); font-size: .875rem;
}
.src-onglets { padding-inline: 1rem; }
.src-liste { display: grid; }

.src-carte { display: grid; gap: .875rem; padding: 1rem 1.25rem 1.125rem; scroll-margin-top: calc(var(--h-topbar, 62px) + 1rem); }
.src-carte + .src-carte { border-top: 1px solid var(--fc-bord); }
.src-carte-tete { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: .75rem 1rem; align-items: start; }
.src-photo { width: 64px; height: 64px; border-radius: 12px; background: #EEF2F6; object-fit: cover; }
.src-photo--vide { display: grid; place-items: center; color: #7B8A9E; }
.src-ident { display: grid; gap: .25rem; min-width: 0; }
.crm-view .src h4.src-nom { margin: 0; color: var(--fc-encre); font-size: .9375rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.src-desc {
    margin: .125rem 0 0; color: var(--fc-texte); font-size: .8125rem; line-height: 1.5; white-space: pre-line;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.src-dispo { font-weight: 600; }
.src-dispo--ok { color: #166534; }
.src-dispo--reserve { color: #92400E; }
.src-dispo--vendu { color: #9A3412; }
.src-attente { color: #92400E; }
.src-prix { display: grid; justify-items: end; gap: .1rem; text-align: right; }
.src-prix-lib { color: var(--fc-texte-2); font-size: .75rem; }
.src-prix-val { color: var(--fc-encre); font-size: 1.0625rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.src-prix-bornes { color: var(--fc-texte-2); font-size: .75rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.src-prix--absent .src-prix-val { color: #92400E; font-size: .875rem; }

.src-devis { padding-top: .75rem; border-top: 1px solid var(--fc-bord); }
.src-sous-titre { margin: 0 0 .25rem; color: var(--fc-texte-2); font-size: .75rem; font-weight: 600; }
.src-devis-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .375rem 1rem; padding: .375rem 0; }
.src-devis-ident { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .375rem; min-width: 0; font-size: .8125rem; }
.src-devis-actions { display: flex; align-items: center; gap: .375rem; }
.src-devis-ligne .al-vente { flex-basis: 100%; }
.src-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.src-suppr:hover { color: #B42318; }

.src-bandeau {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem;
    padding: .875rem 1.125rem; border: 1px solid var(--fc-bord-fort); border-radius: var(--fc-rayon);
    background: #fff; color: var(--fc-texte); font-size: .8125rem; line-height: 1.5;
}
.src-bandeau + .src-bandeau { margin-top: .75rem; }
.src-bandeau > div { flex: 1 1 28rem; min-width: 0; }
.src-bandeau p { margin: 0; }
.src-bandeau-titre { display: flex; align-items: center; gap: .4rem; color: var(--fc-encre); font-weight: 700; }
.src-bandeau--securite { border-color: var(--fc-noir); box-shadow: inset 4px 0 0 var(--fc-or); }

/* ── Suivi logistique en 4 étapes ────────────────────────────────────────── */
.lg { display: grid; gap: .625rem; padding: .875rem 1rem; border-radius: 12px; background: var(--fc-fond-doux); }
.lg-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; }
.lg-titre { color: var(--fc-encre); font-size: .8125rem; font-weight: 700; }
.lg-client { color: var(--fc-texte-2); font-size: .8125rem; }
.lg-etapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin: 0; padding: 0; list-style: none; }
.lg-etape { display: grid; align-content: start; gap: .2rem; min-width: 0; padding-top: .625rem; border-top: 3px solid #E2E8F0; }
.lg-etape--fait { border-top-color: var(--fc-noir); }
.lg-etape--actuelle { border-top-color: var(--fc-or); }
.lg-puce {
    display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
    background: #E2E8F0; color: #475569; font-size: .6875rem; font-weight: 700;
}
.lg-etape--fait .lg-puce { background: var(--fc-noir); color: #fff; }
.lg-etape--actuelle .lg-puce { background: var(--fc-or); color: var(--fc-noir); }
.lg-lib { color: var(--fc-encre); font-size: .75rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.lg-etape--avenir .lg-lib { color: var(--fc-texte-2); font-weight: 500; }
.lg-date { color: var(--fc-texte-2); font-size: .6875rem; font-variant-numeric: tabular-nums; }
.lg-garantie { margin: 0; color: var(--fc-texte); font-size: .8125rem; }
.lg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.lg-suivi {
    display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; padding: 0 .75rem;
    border-radius: 10px; background: var(--fc-noir); color: #fff; font-size: .8125rem; font-weight: 600; text-decoration: none;
}
.lg-suivi:hover { background: #2A2A2A; }
.lg-form { display: flex; flex-wrap: wrap; gap: .5rem; flex: 1 1 26rem; min-width: 0; }
.lg-form input {
    flex: 1 1 10rem; min-width: 0; min-height: 38px; padding: 0 .7rem;
    border: 1px solid var(--fc-bord-fort); border-radius: 9px; background: #fff; color: var(--fc-encre); font-size: .8125rem;
}
.lg-form input[name="transporteur"] { flex: 0 1 9rem; }
.lg-correction { display: inline-flex; align-items: center; gap: .4rem; color: var(--fc-texte-2); font-size: .75rem; }
.lg-correction select { min-height: 32px; padding: 0 .5rem; border: 1px solid var(--fc-bord-fort); border-radius: 8px; background: #fff; font-size: .75rem; }

/* ── Alerte anti-double vente ────────────────────────────────────────────── */
.al-vente {
    display: grid; gap: .25rem; padding: .625rem .875rem; border-radius: 10px;
    background: #FFF4E5; box-shadow: inset 3px 0 0 #EA580C; color: #7C2D12; font-size: .8125rem; line-height: 1.45;
}
.al-vente--bloquant { background: #FEF3F2; box-shadow: inset 3px 0 0 #B42318; color: #7A271A; }
.al-vente p { margin: 0; }
.al-texte { font-weight: 600; }
.al-detail { font-size: .75rem; }
.al-action {
    justify-self: start; margin-top: .25rem; min-height: 32px; padding: 0 .75rem;
    border: 1px solid currentColor; border-radius: 8px; background: #fff; color: inherit; font-size: .75rem; font-weight: 600; cursor: pointer;
}

/* ── Bloc confidentiel : administration et cadres ────────────────────────── */
.cf-bloc {
    display: grid; gap: .5rem; min-width: 0; margin: 0; padding: .75rem .875rem;
    border: 1px dashed var(--fc-bord-fort); border-radius: 12px; background: #FBFBF8; font-size: .8125rem;
}
.cf-bloc--form { padding: .875rem 1rem 1rem; }
.cf-tete {
    display: inline-flex; align-items: center; gap: .375rem; margin: 0; padding: 0;
    color: var(--fc-encre); font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.cf-ico { width: 13px; height: 13px; color: var(--fc-noir); vertical-align: 0 !important; }
.cf-chiffres { display: flex; flex-wrap: wrap; gap: .375rem 1.5rem; margin: 0; }
.cf-chiffres dt { color: var(--fc-texte-2); font-size: .6875rem; }
.cf-chiffres dd { margin: 0; color: var(--fc-encre); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cf-marge { color: #166534; }
.cf-marge--neg { color: #B42318; }
.cf-taux { color: var(--fc-texte-2); font-weight: 500; }
.cf-fournisseur, .cf-pied { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; margin: 0; color: var(--fc-texte-2); font-size: .75rem; }
.cf-pied { justify-content: space-between; }
.cf-fourn { color: var(--fc-encre); font-weight: 600; }
.cf-vide { font-style: italic; }
.cf-lien { color: #075985; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(7, 89, 133, .35); text-underline-offset: 2px; }
.cf-lien:hover { text-decoration-color: currentColor; }
.cf-lien--wa { color: #166534; text-decoration-color: rgba(22, 101, 52, .35); }
.cf-marges { display: grid; gap: .25rem; margin: 0; padding: .5rem 0 0; list-style: none; border-top: 1px solid var(--fc-bord); }
.cf-marges li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; font-size: .75rem; font-variant-numeric: tabular-nums; }
.cf-marges li > span:first-child { min-width: 7.5rem; color: var(--fc-encre); font-weight: 600; }
.cf-etat { color: var(--fc-texte-2); }

/* Fiche client : marge nette, lignes pleine largeur, fusion. */
.fc-ligne-large { flex-basis: 100%; min-width: 0; }
.fc-marge { color: #166534; }
.fc-marge--neg { color: #B42318; }
.fc-marge-taux { margin-left: .375rem; color: var(--fc-texte-2); font-size: .8125rem; font-weight: 500; }
.fc-conf { display: inline-flex; margin-left: .375rem; color: var(--fc-texte-2); vertical-align: middle; }
.fc-conf-ico { width: 12px; height: 12px; vertical-align: 0 !important; }
.fc-menu-el--danger { color: #B42318; }
.fc-fusion { margin-bottom: .25rem; }

/* Aperçu du document : informations internes au-dessus de la feuille. */
.apercu-interne { display: grid; gap: .75rem; margin: 1rem 1rem 0; }

/* Factures & encaissements : registre des numéros scellés. */
.scel { display: block; margin-top: 1rem; padding: .875rem 1.125rem; border: 1px solid var(--fc-bord); border-radius: var(--fc-rayon); background: #fff; }
.scel summary { color: var(--fc-encre); font-size: .875rem; font-weight: 600; cursor: pointer; }
.scel[open] summary { margin-bottom: .5rem; }

/* Assistant : négociation encadrée. */
.neg {
    display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: 1rem; padding: .5rem .75rem; border-radius: 8px;
    background: #F1F5F9; color: #334155; font-size: .75rem; font-variant-numeric: tabular-nums;
}
.neg--ko { background: #FEF3F2; color: #7A271A; box-shadow: inset 3px 0 0 #B42318; }
.neg-msg { flex-basis: 100%; font-weight: 600; }

@media (max-width: 639px) {
    .src-carte { padding-inline: 1rem; }
    .src-carte-tete { grid-template-columns: 52px minmax(0, 1fr); }
    .src-photo { width: 52px; height: 52px; }
    .src-prix { grid-column: 1 / -1; justify-items: start; text-align: left; }
    .lg-etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: .75rem; }
    .src-recherche, .src-recherche input { width: 100%; }
    .lg-form input[name="transporteur"] { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .src *, .lg *, .cf-bloc * { transition: none !important; }
}
