/* =====================================================================
   LONACI - Inscription des concessionnaires
   Habillage : orange / vert sur fond blanc, par-dessus ArchitectUI.
   ===================================================================== */

:root {
    --lonaci-orange: #f57c00;
    --lonaci-orange-clair: #ff9d3f;
    --lonaci-orange-pale: #fff4e8;
    --lonaci-vert: #2e9e4f;
    --lonaci-vert-clair: #48bd6b;
    --lonaci-vert-pale: #eef9f1;
    --lonaci-encre: #2b3245;
    --lonaci-gris: #7a7f8c;
    --lonaci-bordure: #e6eaf1;
}

body {
    background: #ffffff;
    color: var(--lonaci-encre);
}

/* ---------------------------------------------------------------- */
/* Couleurs utilitaires                                             */
/* ---------------------------------------------------------------- */
.text-orange   { color: var(--lonaci-orange) !important; }
.text-vert     { color: var(--lonaci-vert) !important; }
.bg-orange     { background-color: var(--lonaci-orange) !important; color: #fff !important; }
.bg-vert       { background-color: var(--lonaci-vert) !important; color: #fff !important; }
.bg-orange-pale{ background-color: var(--lonaci-orange-pale) !important; }
.bg-vert-pale  { background-color: var(--lonaci-vert-pale) !important; }
.bg-lonaci     { background-image: linear-gradient(120deg, var(--lonaci-orange) 0%, var(--lonaci-vert) 100%); }

.btn-orange {
    background-color: var(--lonaci-orange);
    border-color: var(--lonaci-orange);
    color: #fff;
}
.btn-orange:hover, .btn-orange:focus {
    background-color: #e06f00;
    border-color: #e06f00;
    color: #fff;
}
.btn-vert {
    background-color: var(--lonaci-vert);
    border-color: var(--lonaci-vert);
    color: #fff;
}
.btn-vert:hover, .btn-vert:focus {
    background-color: #26833f;
    border-color: #26833f;
    color: #fff;
}
.btn-outline-orange {
    color: var(--lonaci-orange);
    border-color: var(--lonaci-orange);
}
.btn-outline-orange:hover {
    background-color: var(--lonaci-orange);
    color: #fff;
}

.form-control:focus, .form-select:focus {
    border-color: var(--lonaci-orange-clair);
    box-shadow: 0 0 0 .15rem rgba(245, 124, 0, .18);
}
.form-check-input:checked {
    background-color: var(--lonaci-vert);
    border-color: var(--lonaci-vert);
}
a { color: var(--lonaci-orange); }
a:hover { color: #c96500; }

/* ---------------------------------------------------------------- */
/* En-tete public                                                    */
/* ---------------------------------------------------------------- */
.lonaci-navbar {
    background: #fff;
    border-bottom: 3px solid var(--lonaci-orange);
    box-shadow: 0 2px 14px rgba(43, 50, 69, .07);
    padding: .55rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}
.lonaci-brand {
    display: flex;
    align-items: center;
    gap: .8rem;
    text-decoration: none;
}
/* En-tete public : logos institutionnels a intervalles egaux, navigation a droite */
.entete-public {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
}
.entete-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 auto;
    gap: 1.5rem;
    min-width: 0;
}
.entete-logo {
    display: block;
    height: 42px;
    width: auto;
    max-width: 100%;
}
.entete-logo--lonaci { height: 34px; }
.entete-marque { display: block; line-height: 0; }

.entete-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: .9rem;
}
.entete-lien {
    color: var(--lonaci-encre);
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    white-space: nowrap;
}
.entete-lien:hover { color: var(--lonaci-orange); }

@media (max-width: 1199.98px) {
    .entete-logo { height: 36px; }
    .entete-logo--lonaci { height: 30px; }
    .entete-logos { gap: 1rem; }
    .entete-actions { gap: .6rem; }
}
@media (max-width: 767.98px) {
    .entete-public { justify-content: center; gap: .6rem 1rem; }
    .entete-logos { flex: 1 1 100%; justify-content: space-around; gap: .75rem; }
    .entete-actions { flex: 1 1 100%; justify-content: center; }
    .entete-logo { height: 30px; }
    .entete-logo--lonaci { height: 25px; }
}

/* Embleme FNCE (image detourée, fond transparent) */
.lonaci-brand__marque {
    width: 46px; height: 46px;
    flex: 0 0 46px;
    display: block;
    background-image: url("../img/logo-fnce-128.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.lonaci-brand__marque--lg { width: 72px; height: 72px; flex-basis: 72px; }
.lonaci-brand__titre {
    font-weight: 700; font-size: 1.02rem; line-height: 1.15; color: var(--lonaci-encre);
}
.lonaci-brand__sous-titre {
    font-size: .74rem; color: var(--lonaci-gris); text-transform: uppercase; letter-spacing: .6px;
}

/* ---------------------------------------------------------------- */
/* Page d accueil                                                    */
/* ---------------------------------------------------------------- */
.lonaci-hero {
    position: relative;
    color: #fff;
    padding: 5rem 0 5.5rem;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.lonaci-hero::before {
    content: "";
    position: absolute; inset: 0;
   /* background-image: linear-gradient(115deg, rgba(245, 124, 0, .93) 0%, rgba(46, 158, 79, .90) 100%);*/
    background-image: linear-gradient(115deg, rgba(245, 124, 0, .7) 0%, rgba(46, 158, 79, .70) 100%);
}
.lonaci-hero > .container { position: relative; z-index: 2; }
.lonaci-hero h1 { font-weight: 800; font-size: 2.5rem; line-height: 1.15; }
.lonaci-hero .lead { font-size: 1.08rem; opacity: .96; max-width: 640px; }
.lonaci-hero__etiquette {
    display: inline-block;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 40px;
    padding: .32rem 1rem;
    font-size: .78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}
.lonaci-hero__carte {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    backdrop-filter: blur(3px);
}

.lonaci-section { padding: 4rem 0; }
.lonaci-section--pale { background: #fbfcfe; }
.lonaci-titre-section {
    font-weight: 700;
    font-size: 1.7rem;
    margin-bottom: .6rem;
}
.lonaci-titre-section span { color: var(--lonaci-orange); }
.lonaci-chapeau { color: var(--lonaci-gris); max-width: 720px; margin: 0 auto 2.4rem; }

.lonaci-carte {
    background: #fff;
    border: 1px solid var(--lonaci-bordure);
    border-radius: 14px;
    padding: 1.6rem 1.4rem;
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease;
}
.lonaci-carte:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(43, 50, 69, .10);
}
.lonaci-carte__icone {
    width: 54px; height: 54px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #fff;
    margin-bottom: 1rem;
}
.lonaci-carte__icone--orange { background-image: linear-gradient(135deg, var(--lonaci-orange), var(--lonaci-orange-clair)); }
.lonaci-carte__icone--vert   { background-image: linear-gradient(135deg, var(--lonaci-vert), var(--lonaci-vert-clair)); }

.lonaci-etape {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.1rem 0;
    border-bottom: 1px dashed var(--lonaci-bordure);
}
.lonaci-etape:last-child { border-bottom: 0; }
.lonaci-etape__num {
    flex: 0 0 42px; height: 42px; width: 42px;
    border-radius: 50%;
    background: var(--lonaci-orange-pale);
    color: var(--lonaci-orange);
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.lonaci-vignette {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(43, 50, 69, .14);
}
.lonaci-vignette img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lonaci-appel {
    background-image: linear-gradient(120deg, var(--lonaci-orange) 0%, var(--lonaci-vert) 100%);
    color: #fff;
    border-radius: 16px;
    padding: 2.4rem;
}

.lonaci-pied {
    background: var(--lonaci-encre);
    color: #b9bfd0;
    padding: 2.2rem 0 1.4rem;
    font-size: .9rem;
}
.lonaci-pied a { color: #fff; }

/* ---------------------------------------------------------------- */
/* Page de bienvenue : note de mise en conformite reglementaire      */
/* ---------------------------------------------------------------- */
.bienvenue {
    padding: 3rem 0 4rem;
    background:
        radial-gradient(circle at 12% 8%, rgba(245, 124, 0, .08), transparent 45%),
        radial-gradient(circle at 88% 92%, rgba(46, 158, 79, .08), transparent 45%),
        #fff;
}
.bienvenue > .container { max-width: 900px; }

.bienvenue__entete { text-align: center; margin-bottom: 2.6rem; }
.bienvenue__surtitre {
    display: inline-block;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--lonaci-vert);
    background: var(--lonaci-vert-pale);
    border-radius: 999px;
    padding: .3rem 1rem;
    margin-bottom: .9rem;
}
.bienvenue__titre {
    font-weight: 800;
    font-size: 2.1rem;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--lonaci-orange);
    margin-bottom: 1.2rem;
}
.bienvenue__titre::after {
    content: "";
    display: block;
    width: 78px;
    height: 4px;
    border-radius: 3px;
    margin: .9rem auto 0;
    background-image: linear-gradient(90deg, var(--lonaci-orange), var(--lonaci-vert));
}
.bienvenue__intro {
    color: var(--lonaci-encre);
    text-align: justify;
    margin: 0 auto;
    max-width: 780px;
    line-height: 1.65;
}

.bienvenue-bloc {
    background: #fff;
    border: 1px solid var(--lonaci-bordure);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(43, 50, 69, .06);
    padding: 1.5rem 1.6rem;
    margin-bottom: 1.4rem;
}
.bienvenue-bloc__entete {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1rem;
}
.bienvenue-bloc__num {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    background-image: linear-gradient(135deg, var(--lonaci-orange), var(--lonaci-orange-clair));
}
.bienvenue-bloc__titre {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--lonaci-encre);
    background: var(--lonaci-orange-pale);
    border-radius: 7px;
    padding: .35rem .8rem;
    margin: 0;
}
.bienvenue-bloc__corps { color: var(--lonaci-encre); line-height: 1.6; }

.bienvenue-liste { list-style: none; margin: 0; padding: 0; }
.bienvenue-liste li {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .55rem 0;
    border-bottom: 1px dashed var(--lonaci-bordure);
}
.bienvenue-liste li:last-child { border-bottom: 0; padding-bottom: 0; }
.bienvenue-liste li i { color: var(--lonaci-vert); margin-top: .25rem; }

/* Meme presentation que .bienvenue-liste, la lettre a. b. c. tenant lieu de
   puce a la place de la coche verte.                                      */
.bienvenue-liste--lettres { list-style: none; margin: 0; padding: 0; }
.bienvenue-liste--lettres li { padding: .3rem 0; }
.bienvenue-liste--lettres li:first-child { padding-top: 0; }
.bienvenue-liste__lettre {
    flex: 0 0 1.1rem;
    font-weight: 800;
    color: var(--lonaci-orange);
}

.bienvenue-points { list-style: none; margin: 0; padding: 0; counter-reset: bienvenue-point; }
.bienvenue-points li {
    counter-increment: bienvenue-point;
    position: relative;
    padding: 0 0 .9rem 2.1rem;
}
.bienvenue-points li:last-child { padding-bottom: 0; }
.bienvenue-points li::before {
    content: counter(bienvenue-point, lower-alpha) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 800;
    color: var(--lonaci-orange);
}
.bienvenue-points h6 { font-weight: 700; margin-bottom: .25rem; }
.bienvenue-points p { margin-bottom: 0; color: var(--lonaci-gris); }

.bienvenue__actions { text-align: center; margin-top: 2.4rem; }
.btn-continuer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    min-width: 260px;
    padding: .95rem 2.4rem;
    border-radius: 999px;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: .3px;
    color: #fff;
    text-decoration: none;
    background-image: linear-gradient(135deg, var(--lonaci-orange) 0%, var(--lonaci-orange-clair) 100%);
    box-shadow: 0 12px 28px rgba(245, 124, 0, .32);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-continuer:hover,
.btn-continuer:focus {
    color: #fff;
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(245, 124, 0, .38);
}
.btn-continuer:active { transform: translateY(0); box-shadow: 0 8px 20px rgba(245, 124, 0, .3); }
.btn-continuer i { transition: transform .18s ease; }
.btn-continuer:hover i { transform: translateX(4px); }
.bienvenue__mention {
    margin: .9rem 0 0;
    font-size: .85rem;
    color: var(--lonaci-gris);
}

/* Variante presentee seule : ni barre de navigation, ni pied de page.
   Les blocs perdent leur encadre, la feuille porte le relief.            */
.bienvenue--seule {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 2.5rem 0;
}
.bienvenue--seule > .container { max-width: 920px; }
.bienvenue-feuille {
    background: #fff;
    border: 1px solid var(--lonaci-bordure);
    border-top: 5px solid var(--lonaci-orange);
    border-radius: 16px;
    box-shadow: 0 22px 60px rgba(43, 50, 69, .12);
    padding: 2.4rem 2.8rem 2rem;
}
.bienvenue-bloc--nu {
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-bottom: 1.6rem;
    border-top: 1px solid var(--lonaci-bordure);
    padding-top: 1.4rem;
}
.bienvenue__logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    margin-bottom: 1.6rem;
}
.bienvenue__logos img { height: 46px; width: auto; object-fit: contain; }
.bienvenue__logos img.bienvenue__logos--lonaci { height: 38px; }
/* Variante deux colonnes : feuille plus large, blocs a hauteur egale. */
.bienvenue--duo > .container { max-width: 1140px; }
.bienvenue--duo .bienvenue__entete { margin-bottom: 1.8rem; }
.bienvenue--duo .bienvenue-bloc { margin-bottom: 0; }
.bienvenue--duo .bienvenue-bloc__corps { font-size: .94rem; }
.bienvenue--duo .bienvenue__actions { margin-top: 2rem; }
.bienvenue--duo .bienvenue-bloc--bande { background: var(--lonaci-orange-pale); border-color: #f6dcc2; }
/* Le paragraphe d introduction prend toute la largeur de la feuille : ses
   bords tombent sur ceux des blocs 1 et 2 places juste en dessous.        */
.bienvenue--duo .bienvenue__intro { max-width: none; }
/* Bloc 2 : chapeau resserre sur la liste qui le suit. */
.bienvenue--duo .bienvenue-bloc__corps > .text-muted { margin-bottom: .55rem; }

.bienvenue__signature {
    margin: 1.8rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid var(--lonaci-bordure);
    text-align: center;
    font-size: .78rem;
    color: var(--lonaci-gris);
}

@media (max-width: 575.98px) {
    .bienvenue { padding: 2rem 0 3rem; }
    .bienvenue__titre { font-size: 1.55rem; }
    .bienvenue__intro { text-align: left; }
    .bienvenue-bloc { padding: 1.2rem; }
    .bienvenue-bloc__titre { font-size: .98rem; }
    .btn-continuer { min-width: 0; width: 100%; }

    .bienvenue--seule { display: block; padding: 1.2rem 0; }
    .bienvenue-feuille { padding: 1.4rem 1.1rem 1.2rem; border-radius: 12px; }
    .bienvenue-bloc--nu { padding: 1.2rem 0 0; }
    .bienvenue__logos { gap: .6rem; margin-bottom: 1.2rem; }
    .bienvenue__logos img { height: 30px; }
    .bienvenue__logos img.bienvenue__logos--lonaci { height: 25px; }
}

/* ---------------------------------------------------------------- */
/* Page de verification prealable : panneau centre                   */
/* ---------------------------------------------------------------- */
.ecran-verification {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px);   /* hauteur utile sous la barre de navigation */
    padding: 2.5rem 1rem;
    background:
        radial-gradient(circle at 15% 15%, rgba(245, 124, 0, .07), transparent 42%),
        radial-gradient(circle at 85% 85%, rgba(46, 158, 79, .07), transparent 42%),
        #fff;
}
.panneau-verification {
    width: 100%;
    max-width: 520px;
}
/* Pieces a preparer, annoncees avant le formulaire de verification. */
.liste-pieces {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
    font-size: .9rem;
    color: var(--lonaci-encre);
}
.liste-pieces li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    padding: .28rem 0;
}
.liste-pieces li i { color: var(--lonaci-vert); margin-top: .2rem; }
.liste-pieces .liste-pieces__facultatif { color: var(--lonaci-orange); }

.panneau-verification .card {
    border: 1px solid var(--lonaci-bordure);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(43, 50, 69, .07);
}
.panneau-verification .recap-liste dd { margin-bottom: .6rem; }
.panneau-verification .bloc-titre { margin-bottom: .8rem; font-size: .98rem; }
.etape-franchie {
    border-color: var(--lonaci-vert) !important;
    background: var(--lonaci-vert-pale);
}

/* ---------------------------------------------------------------- */
/* Assistant de saisie (wizard)                                      */
/* ---------------------------------------------------------------- */
.wizard-etapes {
    display: flex;
    list-style: none;
    margin: 0 0 1.6rem;
    padding: 0;
    gap: .4rem;
    flex-wrap: wrap;
}
.wizard-etapes li {
    flex: 1 1 150px;
    text-align: center;
    padding: .75rem .4rem;
    border-radius: 10px;
    border: 1px solid var(--lonaci-bordure);
    background: #fff;
    font-size: .84rem;
    color: var(--lonaci-gris);
    position: relative;
    cursor: default;
}
.wizard-etapes li .wizard-etapes__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: #eef1f6; color: var(--lonaci-gris);
    font-weight: 700; font-size: .8rem;
    margin-right: .35rem;
}
.wizard-etapes li.est-active {
    border-color: var(--lonaci-orange);
    background: var(--lonaci-orange-pale);
    color: var(--lonaci-orange);
    font-weight: 600;
}
.wizard-etapes li.est-active .wizard-etapes__num { background: var(--lonaci-orange); color: #fff; }
.wizard-etapes li.est-faite {
    border-color: var(--lonaci-vert);
    background: var(--lonaci-vert-pale);
    color: var(--lonaci-vert);
    cursor: pointer;
}
.wizard-etapes li.est-faite .wizard-etapes__num { background: var(--lonaci-vert); color: #fff; }

.wizard-panneau { display: none; }
.wizard-panneau.est-active { display: block; }

.wizard-progression {
    height: 6px;
    border-radius: 4px;
    background: #eef1f6;
    overflow: hidden;
    margin-bottom: 1.4rem;
}
.wizard-progression__barre {
    height: 100%;
    background-image: linear-gradient(90deg, var(--lonaci-orange), var(--lonaci-vert));
    width: 20%;
    transition: width .3s ease;
}

.bloc-titre {
    display: flex; align-items: center; gap: .6rem;
    font-weight: 700; color: var(--lonaci-encre);
    border-left: 4px solid var(--lonaci-orange);
    padding-left: .7rem;
    margin: 0 0 1.1rem;
}
.bloc-titre--vert { border-left-color: var(--lonaci-vert); }

/* ---------------------------------------------------------------- */
/* Casse des saisies : tout en majuscules et en gras,                */
/* a l exception des adresses de courriel (minuscules).              */
/* ---------------------------------------------------------------- */
#form-inscription input[type="text"],
#form-inscription input[type="number"],
#form-inscription textarea,
#form-inscription select {
    font-weight: 600;
}
#form-inscription input[type="text"],
#form-inscription textarea {
    text-transform: uppercase;
}
#form-inscription input[type="email"] {
    text-transform: lowercase;
    font-weight: 600;
}
/* Les champs masques (dates, telephones) gardent leur mise en forme */
#form-inscription .champ-date,
#form-inscription .champ-tel {
    text-transform: none;
}

.champ-obligatoire::after {
    content: " *";
    color: #d92550;
    font-weight: 700;
}

.zone-identification {
    background: var(--lonaci-orange-pale);
    border: 1px dashed var(--lonaci-orange);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.4rem;
}

.photo-apercu {
    width: 130px; height: 160px;
    border: 2px dashed var(--lonaci-bordure);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--lonaci-gris);
    font-size: .78rem;
    text-align: center;
    overflow: hidden;
    background: #fafbfd;
}
.photo-apercu img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- */
/* Bloc inferieur repliable des colonnes de l etape 1                */
/* ---------------------------------------------------------------- */
.bloc-complement .accordion-item {
    border: 1px dashed var(--lonaci-bordure);
    border-radius: 10px;
    overflow: hidden;
}
.bloc-complement .accordion-button {
    background: #fafbfd;
    font-weight: 600;
    font-size: .9rem;
    color: var(--lonaci-gris);
    padding: .7rem 1rem;
}
.bloc-complement .accordion-button:not(.collapsed) {
    background: var(--lonaci-orange-pale);
    color: var(--lonaci-orange);
    box-shadow: none;
}
.bloc-complement .accordion-button:focus { box-shadow: none; }
.bloc-complement .accordion-body { padding: 1rem; }

.recap-sous-titre {
    font-weight: 700;
    color: var(--lonaci-orange);
    text-transform: uppercase;
    font-size: .8rem;
    letter-spacing: .5px;
    border-bottom: 1px solid var(--lonaci-bordure);
    padding-bottom: .35rem;
    margin-bottom: .9rem;
}
.recap-sous-titre + .recap-liste { margin-bottom: 1.2rem; }

/* ---------------------------------------------------------------- */
/* Consentements : bloc mis en evidence                              */
/* ---------------------------------------------------------------- */
.carte-consentements {
    border: 2px solid var(--lonaci-orange) !important;
    box-shadow: 0 8px 24px rgba(245, 124, 0, .12);
}
.carte-consentements__titre {
    border-left-color: var(--lonaci-orange);
    color: var(--lonaci-orange);
    font-size: 1.05rem;
}
.carte-consentements__intro {
    background: var(--lonaci-orange-pale);
    border-radius: 8px;
    padding: .7rem .9rem;
    font-size: .88rem;
    color: var(--lonaci-encre);
    margin-bottom: 1rem;
}
.consentement {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    border: 1px solid var(--lonaci-bordure);
    border-radius: 10px;
    padding: .9rem 1rem;
    margin-bottom: .8rem;
    background: #fff;
    transition: background .15s ease, border-color .15s ease;
}
.consentement:last-child { margin-bottom: 0; }
.consentement .form-check-input {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin: 0;
    cursor: pointer;
}
.consentement .form-check-label { cursor: pointer; line-height: 1.4; }
.consentement.est-coche {
    border-color: var(--lonaci-vert);
    background: var(--lonaci-vert-pale);
}

/* Depot de fichier */
.depot-fichier {
    border: 1px solid var(--lonaci-bordure);
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
    height: 100%;
}
.depot-fichier.est-rempli { border-color: var(--lonaci-vert); background: var(--lonaci-vert-pale); }
.depot-fichier__etat { font-size: .82rem; color: var(--lonaci-gris); }
.apercu-photo {
    display: block;
    margin-top: .6rem;
    max-height: 120px;
    border-radius: 6px;
    border: 1px solid var(--lonaci-bordure);
    background: #fff;
}

/* ---------------------------------------------------------------- */
/* Grille de saisie : les agences en lignes, les produits en colonnes */
/* ---------------------------------------------------------------- */
.tableau-grille .colonne-agence {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    min-width: 148px;
    box-shadow: 1px 0 0 var(--lonaci-bordure);
}
.tableau-grille thead th.colonne-agence { z-index: 4; background: var(--lonaci-encre); }
.tableau-grille tfoot td.colonne-agence { z-index: 4; background: var(--lonaci-vert-pale); }

.tableau-grille td.colonne-produit { padding: .2rem; width: 54px; min-width: 54px; }
.tableau-grille .champ-quantite {
    height: 30px;
    padding: .15rem .2rem;
    text-align: center;
    font-weight: 600;
}
/* Les fleches natives volent la largeur utile de la cellule */
.tableau-grille .champ-quantite::-webkit-outer-spin-button,
.tableau-grille .champ-quantite::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.tableau-grille .champ-quantite { -moz-appearance: textfield; }
.tableau-grille .champ-quantite:focus {
    border-color: var(--lonaci-orange);
    box-shadow: 0 0 0 .18rem rgba(245, 124, 0, .18);
}
/* Agence effectivement servie : reperage visuel de la ligne */
.tableau-grille tbody tr.est-remplie td.colonne-agence {
    color: var(--lonaci-vert);
    box-shadow: inset 3px 0 0 var(--lonaci-vert), 1px 0 0 var(--lonaci-bordure);
}

/* Frais de mise en conformite, sous les consentements */
.carte-montant {
    /* Bloc en tete des consentements : le montant doit se voir avant les
       cases a cocher. Fond vert soutenu (#17724a) plutot que le vert de la
       charte (#2e9e4f) : le texte blanc y passe le contraste AA (6,0:1
       contre 3,4:1), y compris pour la ligne de detail en petits caracteres. */
    margin: 0 0 1.1rem;
    padding: 1.1rem 1.3rem;
    border-radius: 12px;
    background: #17724a;
    color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .7rem 1.5rem;
    box-shadow: 0 6px 18px rgba(23, 114, 74, .25);
}
.carte-montant__libelle {
    display: block;
    margin-bottom: .25rem;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #cdeadb;
}
.carte-montant__detail {
    font-size: .85rem;
    line-height: 1.45;
    color: #e8f4ee;
    max-width: 520px;
}
.carte-montant__detail strong { color: #ffffff; }
.carte-montant__valeur {
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    color: #ffffff;
}
.carte-montant__devise { font-size: 1rem; font-weight: 600; color: #cdeadb; }

/* ---------------------------------------------------------------- */
/* Tableau recapitulatif des points de vente                         */
/* ---------------------------------------------------------------- */
.tableau-pdv-conteneur {
    max-height: 430px;              /* environ 10 lignes + en-tete */
    overflow: auto;
    border: 1px solid var(--lonaci-bordure);
    border-radius: 10px;
}
.tableau-pdv {
    margin-bottom: 0;
    white-space: nowrap;
    font-size: .87rem;
}
.tableau-pdv thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--lonaci-encre);
    color: #fff;
    border-color: #3a4258;
    font-weight: 600;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .3px;
    vertical-align: middle;
}
.tableau-pdv tfoot td {
    position: sticky;
    bottom: 0;
    z-index: 3;
    background: var(--lonaci-vert-pale);
    font-weight: 700;
    border-top: 2px solid var(--lonaci-vert);
}
.tableau-pdv td, .tableau-pdv th { vertical-align: middle; }
.tableau-pdv .colonne-produit { text-align: center; width: 38px; min-width: 38px; }

/* En-tetes des colonnes produits ecrits a la verticale (de bas en haut) :
   les 7 colonnes tiennent ainsi sans defilement horizontal. */
.tableau-pdv thead th.colonne-produit {
    padding: .5rem .15rem;
    vertical-align: bottom;
    text-transform: none;
    letter-spacing: 0;
}
.libelle-vertical {
    display: inline-block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    line-height: 1;
    font-size: .72rem;
    letter-spacing: .3px;
    text-transform: uppercase;
}

/* Grille de saisie : en-tetes produits a l horizontale, retour a la ligne
   autorise (les libelles en deux mots tiennent sur deux lignes). */
/* La grille tient toujours dans la largeur disponible : disposition fixe,
   colonnes en pourcentage, ni defilement horizontal ni vertical. */
.tableau-pdv-conteneur--fixe {
    max-height: none;
    overflow: hidden;   /* rien a faire defiler, mais les angles restent arrondis */
}
.tableau-grille--saisie { table-layout: fixed; width: 100%; }
.tableau-grille--saisie thead th { position: static; }
.tableau-grille--saisie tfoot td { position: static; }
.tableau-grille--saisie .colonne-agence {
    position: static;
    width: 20%;
    min-width: 0;
    box-shadow: none;
    white-space: normal;
}
.tableau-grille--saisie thead th.colonne-produit {
    vertical-align: middle;
    padding: .45rem .2rem;
    width: 10%;
    min-width: 0;
}
.tableau-grille--saisie td.colonne-produit { width: 10%; min-width: 0; }
.tableau-grille--saisie .colonne-total { width: 10%; }
.libelle-horizontal {
    display: block;
    white-space: normal;
    line-height: 1.12;
    font-size: .68rem;
    letter-spacing: .2px;
    text-transform: uppercase;
}
.tableau-pdv .colonne-total   { text-align: center; font-weight: 700; color: var(--lonaci-vert); }
.tableau-pdv tbody tr.est-en-edition { background: var(--lonaci-orange-pale) !important; }

.compteurs-pdv { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.compteur {
    flex: 1 1 170px;
    border-radius: 12px;
    padding: .9rem 1.1rem;
    background: #fff;
    border: 1px solid var(--lonaci-bordure);
}
.compteur__valeur { font-size: 1.55rem; font-weight: 700; line-height: 1; }
.compteur__libelle { font-size: .78rem; color: var(--lonaci-gris); text-transform: uppercase; letter-spacing: .4px; }
.compteur--orange { background: var(--lonaci-orange-pale); border-color: var(--lonaci-orange); }
.compteur--orange .compteur__valeur { color: var(--lonaci-orange); }
.compteur--vert { background: var(--lonaci-vert-pale); border-color: var(--lonaci-vert); }
.compteur--vert .compteur__valeur { color: var(--lonaci-vert); }

/* Compteurs places en vis-a-vis de la grille : un par ligne, chiffre au
   dessus du libelle, le tout centre. */
.compteurs-pdv--colonne {
    flex-direction: column;
    gap: .7rem;
    margin-bottom: 0;
}
.compteurs-pdv--colonne .compteur {
    flex: 0 0 auto;
    display: block;
    text-align: center;
    padding: .95rem .7rem;
}
.compteurs-pdv--colonne .compteur__valeur { font-size: 2.1rem; margin-bottom: .25rem; }
.compteurs-pdv--colonne .compteur__libelle {
    font-size: .72rem;      /* colonne etroite : le libelle tient sur une ligne */
    letter-spacing: .2px;
    line-height: 1.2;
}

/* ---------------------------------------------------------------- */
/* Recapitulatif (accordeon)                                         */
/* ---------------------------------------------------------------- */
.recap-accordeon .accordion-button:not(.collapsed) {
    background: var(--lonaci-orange-pale);
    color: var(--lonaci-orange);
    box-shadow: none;
}
.recap-accordeon .accordion-button:focus { box-shadow: none; border-color: var(--lonaci-bordure); }
.recap-liste { margin: 0; }
.recap-liste dt { font-size: .76rem; color: var(--lonaci-gris); text-transform: uppercase; letter-spacing: .4px; }
.recap-liste dd { margin-bottom: .85rem; font-weight: 600; }

/* ---------------------------------------------------------------- */
/* Tableau de bord                                                   */
/* ---------------------------------------------------------------- */
.app-sidebar .app-sidebar__inner .vertical-nav-menu li a.mm-active,
.app-sidebar .app-sidebar__inner .vertical-nav-menu li a:hover {
    color: var(--lonaci-orange);
}
.carte-stat {
    border-radius: 12px;
    border: 1px solid var(--lonaci-bordure);
    background: #fff;
    padding: 1.2rem;
    height: 100%;
}
.carte-stat__valeur { font-size: 1.9rem; font-weight: 700; line-height: 1; }
.carte-stat__libelle { font-size: .78rem; color: var(--lonaci-gris); text-transform: uppercase; letter-spacing: .5px; }


@media (max-width: 767.98px) {
    .lonaci-hero h1 { font-size: 1.9rem; }
    .tableau-pdv-conteneur:not(.tableau-pdv-conteneur--fixe) { max-height: 360px; }
}

@media print {
    .no-print, .app-sidebar, .app-header, .lonaci-navbar { display: none !important; }
    .app-main__outer { padding-left: 0 !important; }
}

/* -------------------------------------------------------------------
   Tableau de bord : blocs d une meme ligne a la meme hauteur.
   La colonne (.d-flex) etire la carte (.flex-fill) a la hauteur de la
   ligne, fixee par le bloc le plus haut. On evite height:100% : dans
   ce theme .app-main__inner porte flex:1, et un pourcentage de hauteur
   sur .card s y resout sur toute la zone de contenu, ce qui etirait la
   carte bien au-dela de sa ligne.
   Le graphique est alors centre dans la hauteur restante.
   ------------------------------------------------------------------- */
.corps-graphe {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* -------------------------------------------------------------------
   Verification prealable : mention de controle par la LONACI.
   Bandeau orange en tete du formulaire, avant toute saisie.
   ------------------------------------------------------------------- */
.mention-controle {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin-bottom: 1.4rem;
    padding: .95rem 1.1rem;
    border: 1px solid var(--lonaci-orange);
    border-left: 5px solid var(--lonaci-orange);
    border-radius: 10px;
    background: var(--lonaci-orange-pale);
    font-size: .87rem;
    line-height: 1.45;
    color: var(--lonaci-encre);
}
.mention-controle__icone {
    flex: 0 0 auto;
    margin-top: .15rem;
    font-size: 1.35rem;
    color: var(--lonaci-orange);
}
.mention-controle__titre {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    font-size: .76rem;
    color: var(--lonaci-orange);
    margin-bottom: .2rem;
}

/* Saisies de la verification en gras : les informations saisies doivent
   ressortir, l invite restant en graisse normale pour rester distinguable
   d une valeur reellement saisie. */
#form-verification .form-control,
#form-verification .form-select {
    font-weight: 700;
}
#form-verification .form-control::placeholder {
    font-weight: 400;
}
#form-verification .form-select:invalid,
#form-verification .form-select option[value=""] {
    font-weight: 400;
}
/* Indication discrete : elle accompagne le champ sans concurrencer la saisie. */
#form-verification .form-text {
    font-size: .74rem;
    line-height: 1.3;
    margin-top: .2rem;
}

/* =================================================================== */
/* Listes deroulantes                                                  */
/* ------------------------------------------------------------------- */
/* Deux implementations coexistent : le <select> natif (.form-select) et */
/* select2 (ville du siege, filtres du back-office). Elles recoivent la  */
/* meme silhouette pour que le formulaire reste homogene.               */
/* =================================================================== */

/* --------------------------------------------------- <select> natif */
.form-select {
    /* Chevron aux couleurs de la charte, a la place de celui de Bootstrap */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f57c00' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-position: right .85rem center;
    background-size: 14px 11px;
    border-radius: 10px;
    border-color: var(--lonaci-bordure);
    padding: .375rem 2.4rem .375rem .75rem;   /* identique a .form-control */
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.form-select:hover:not(:disabled) {
    border-color: var(--lonaci-orange-clair);
    background-color: var(--lonaci-orange-pale);
}
.form-select:disabled {
    background-color: #f6f7fa;
    color: var(--lonaci-gris);
    cursor: not-allowed;
    opacity: 1;
}
/* Invite (« - Choisir - ») en gris : elle ne doit pas passer pour une valeur */
.form-select option[value=""] { color: var(--lonaci-gris); }
.form-select option {
    color: var(--lonaci-encre);
    background: #fff;
    padding: .35rem .5rem;
}
.form-select option:checked {
    background: var(--lonaci-orange-pale);
    color: var(--lonaci-orange);
    font-weight: 600;
}

/* ------------------------------------------------------------ select2 */
/* On aligne le composant sur le <select> natif : meme hauteur, meme    */
/* rayon, meme chevron, memes couleurs d etat.                          */
/* select2 fixe sa propre taille de police ; on la fait heriter du       */
/* contexte, sans quoi les hauteurs calculees en em divergent de celle   */
/* du select natif (42 px contre 39 px).                                */
.select2-container { font-size: inherit; }
.select2-container--bootstrap4 .select2-selection,
.select2-container--default .select2-selection--single {
    /* Le theme bootstrap4 impose font-size: 1rem ; on herite du contexte
       pour que le calcul en em donne exactement la hauteur du select natif. */
    font-size: inherit;
    padding: 0;
    height: calc(1.5em + .75rem + 2px);   /* identique a .form-control */
    border: 1px solid var(--lonaci-bordure);
    border-radius: 10px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.select2-container--bootstrap4 .select2-selection:hover,
.select2-container--default .select2-selection--single:hover {
    border-color: var(--lonaci-orange-clair);
}
.select2-container--bootstrap4.select2-container--focus .select2-selection,
.select2-container--bootstrap4.select2-container--open .select2-selection,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--lonaci-orange-clair);
    box-shadow: 0 0 0 .15rem rgba(245, 124, 0, .18);
}
.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: inherit;
    line-height: calc(1.5em + .75rem);
    padding-left: .75rem;
    padding-right: 2.4rem;
    color: var(--lonaci-encre);
}
.select2-container--bootstrap4 .select2-selection__placeholder,
.select2-container--default .select2-selection__placeholder {
    color: var(--lonaci-gris);
}
/* Chevron : la fleche par defaut est remplacee par celle de la charte */
.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow,
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: calc(1.5em + .75rem);
    width: 2.4rem;
    right: 0;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f57c00' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") no-repeat center;
    background-size: 14px 11px;
}
.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow b,
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none;   /* le triangle d origine ferait doublon */
}

/* Panneau deroulant */
.select2-container--bootstrap4 .select2-dropdown,
.select2-container--default .select2-dropdown {
    border: 1px solid var(--lonaci-bordure);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(43, 50, 69, .12);
    overflow: hidden;
}
.select2-container--bootstrap4 .select2-search--dropdown .select2-search__field,
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--lonaci-bordure);
    border-radius: 8px;
    padding: .4rem .6rem;
}
.select2-container--bootstrap4 .select2-search--dropdown .select2-search__field:focus,
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    outline: none;
    border-color: var(--lonaci-orange-clair);
    box-shadow: 0 0 0 .15rem rgba(245, 124, 0, .18);
}
.select2-container--bootstrap4 .select2-results__option,
.select2-container--default .select2-results__option {
    padding: .45rem .85rem;
    font-size: .92rem;
}
.select2-container--bootstrap4 .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--lonaci-orange-pale);
    color: var(--lonaci-orange);
}
.select2-container--bootstrap4 .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option[aria-selected="true"] {
    background: var(--lonaci-vert-pale);
    color: var(--lonaci-vert);
    font-weight: 600;
}
