/* ======================================================
MODULE CSS 1
PALETTE
====================================================== */

:root{

--bleu:#2563eb;
--bleu-fonce:#1e3a8a;
--bleu-profond:#1e40af;

--vert:#16a34a;

--fond:#eef2f7;
--carte:#ffffff;
--texte:#1f2937;

}


/* ======================================================
MODULE CSS 2
BASE
====================================================== */

body{

margin:0;
padding:30px;

background:linear-gradient(135deg,#eef2f7,#dbeafe);

font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;

color:var(--texte);

}


/* ======================================================
MODULE CSS 3
BANDEAU MODE VÉRIFICATION
====================================================== */

#bandeau-mode-verification{

position:sticky;

top:0;

width:100%;

padding:14px;

font-size:18px;
font-weight:700;

text-align:center;

background:#e5e7eb;
color:#1f2937;

border-bottom:2px solid #d1d5db;

z-index:1000;

}


/* ======================================================
MODULE CSS 4
COULEURS MODE
====================================================== */

.bandeau-interieur{
background:#dbeafe;
color:#1e40af;
}

.bandeau-exterieur{
background:#dcfce7;
color:#166534;
}


/* ======================================================
MODULE CSS 5
ENTÊTE ENTREPRISE
====================================================== */

header{

background:linear-gradient(
135deg,
#1e3a8a,
#2563eb,
#1e40af
);

text-align:center;

border-radius:18px;

padding:45px 25px;

margin-bottom:25px;

box-shadow:
0 25px 60px rgba(0,0,0,0.45);

}


/* ======================================================
MODULE CSS 6
TITRE PRINCIPAL
====================================================== */

header h1{

font-size:36px;
font-weight:900;

color:#ffd700;

text-shadow:
0 1px 0 #b89600,
0 2px 0 #a38300,
0 3px 0 #8c6f00,
0 4px 6px rgba(0,0,0,0.6),
0 8px 20px rgba(0,0,0,0.6);

}


/* ======================================================
MODULE CSS 7
NOM CONSULTANT
====================================================== */

header h2{

font-size:28px;
font-weight:800;

color:#ffdf33;

text-shadow:
0 1px 0 #b89600,
0 2px 0 #8c6f00,
0 4px 10px rgba(0,0,0,0.6);

}


/* ======================================================
MODULE CSS 8
TEXTE ENTÊTE
====================================================== */

header p{

color:#e5e7eb;

font-weight:500;

}


/* ======================================================
MODULE CSS 9
CARTES INTERFACE
====================================================== */

section,
footer{

background:var(--carte);

border-radius:16px;

padding:25px;

margin-bottom:22px;

box-shadow:
0 12px 30px rgba(0,0,0,0.08),
0 40px 80px rgba(0,0,0,0.12);

transition:transform .2s ease, box-shadow .2s ease;

}

section:hover{

transform:translateY(-5px);

box-shadow:
0 20px 50px rgba(0,0,0,0.12),
0 60px 120px rgba(0,0,0,0.15);

}


/* ======================================================
MODULE CSS 10
TITRES SECTIONS
====================================================== */

h2{

margin-top:0;
padding-bottom:8px;

border-bottom:2px solid #e5e7eb;

}


/* ======================================================
MODULE CSS 11
LABELS
====================================================== */

label{

display:block;

margin-top:12px;

font-weight:600;

}


/* ======================================================
MODULE CSS 12
CHAMPS FORMULAIRE
====================================================== */

input,
select,
textarea{

width:100%;
max-width:400px;

padding:10px 12px;

border-radius:10px;

border:2px solid #cbd5e1;

background:#ffffff;

font-size:14px;

box-shadow:
inset 0 2px 4px rgba(0,0,0,0.06);

transition:.2s;

}


/* ======================================================
MODULE CSS 13
EFFETS CHAMPS
====================================================== */

input:hover,
select:hover,
textarea:hover{

border-color:#94a3b8;

}

input:focus,
select:focus,
textarea:focus{

outline:none;

border-color:var(--bleu);

box-shadow:
0 0 0 3px rgba(37,99,235,0.25),
inset 0 2px 4px rgba(0,0,0,0.05);

}


/* ======================================================
MODULE CSS 14
NUMÉRO DOSSIER
====================================================== */

#numeroDossier{

background:#e5e5e5;

color:#444;

border:2px dashed #9ca3af;

cursor:not-allowed;

}


/* ======================================================
MODULE CSS 15
BOUTONS
====================================================== */

button{

background:#2563eb;
color:white;

border:none;

border-radius:10px;

padding:12px 20px;

font-size:14px;
font-weight:700;

cursor:pointer;

box-shadow:
0 8px 0 #1e40af,
0 15px 30px rgba(0,0,0,0.25);

transition:all .15s ease;

}

button:hover{

transform:translateY(-2px);

box-shadow:
0 10px 0 #1e40af,
0 18px 35px rgba(0,0,0,0.3);

}

button:active{

transform:translateY(6px);

box-shadow:
0 2px 0 #1e40af,
0 6px 10px rgba(0,0,0,0.2);

}


/* ======================================================
MODULE CSS 16
BOUTONS TYPE VÉRIFICATION
====================================================== */

#choix-secteur{

display:flex;
gap:20px;

margin-bottom:20px;

}

#choix-verification{

display:flex;
gap:20px;

margin-bottom:20px;

}

.type-btn{

flex:1;

font-size:18px;

padding:18px;

border-radius:12px;

font-weight:700;

cursor:pointer;

border:none;

box-shadow:
0 10px 0 rgba(0,0,0,0.2),
0 20px 40px rgba(0,0,0,0.25);

transition:all .15s ease;

}

.type-btn:active{

transform:translateY(6px);

box-shadow:
0 2px 0 rgba(0,0,0,0.2);

}

.interieur{
background:#dbeafe;
color:#1e40af;
}

.exterieur{
background:#dcfce7;
color:#166534;
}

.type-btn.actif{

transform:scale(1.05);

box-shadow:0 0 0 4px rgba(37,99,235,0.35);

}


/* ======================================================
MODULE CSS 17
INDICATEUR MODE
====================================================== */

#mode-verification-indicateur{

margin-top:12px;

padding:14px;

border-radius:8px;

font-size:16px;

font-weight:700;

text-align:center;

display:none;

}

.mode-interieur{
background:#dbeafe;
color:#1e40af;
}

.mode-exterieur{
background:#dcfce7;
color:#166534;
}


/* ======================================================
MODULE CSS 18
PIÈCES VÉRIFICATION (BOUTONS À GAUCHE)
====================================================== */

.piece-container{

background:#ffffff;

border-radius:12px;

padding:16px;

margin:14px 0;

box-shadow:
0 6px 16px rgba(0,0,0,0.08),
0 12px 30px rgba(0,0,0,0.10);

transition:transform .2s;

}

.piece-container:hover{
transform:translateY(-3px);
}

.piece-header{

display:flex;
align-items:center;
gap:10px;

margin-bottom:10px;

}

.piece-actions{

display:flex;
gap:8px;

margin-left:0;

}


/* ======================================================
MODULE CSS 19
SIGNATURES
====================================================== */

canvas{

border-radius:10px;

border:1px solid #e5e7eb;

background:white;

box-shadow:
0 4px 10px rgba(0,0,0,0.08);

}


/* ======================================================
MODULE CSS 20
MINUTEUR ACTIF
====================================================== */

#section-minuteur{
display:block;
}

#minuteur-container{

margin-top:10px;

padding:15px;

background:#f8fafc;

border-radius:10px;

border:1px solid #e2e8f0;

display:flex;

flex-direction:column;

gap:10px;

max-width:320px;

}

#affichage-minuteur{

font-size:22px;

font-weight:700;

color:#1e40af;

}

#affichage-montant{

font-size:18px;

font-weight:700;

color:#16a34a;

}


/* ======================================================
MODULE CSS 21
RAPPORT IMPRESSION
====================================================== */

#rapport-impression{

display:none;

}


/* ======================================================
MODULE CSS 22
SCEAU
====================================================== */

.sceau-image{

width:120px;

display:block;

margin:20px auto;

opacity:0.9;

}


/* ======================================================
MODULE CSS 23
MODE IMPRESSION
====================================================== */

@media print{

body *{
visibility:hidden;
}

#rapport-impression,
#rapport-impression *{
visibility:visible;
}

#rapport-impression{

display:block;

position:absolute;

top:0;
left:0;

width:100%;

padding:30px;

}

button,
.no-print{
display:none !important;
}

}


/* ======================================================
MODULE CSS 24
RESPONSIVE
====================================================== */

@media (max-width:800px){

header h1{

font-size:28px;

}

header h2{

font-size:22px;

}

}


/* ======================================================
MODULE CSS 25
INDICATEUR CHAMPS
====================================================== */

.etat-champ{

margin-left:10px;

font-size:13px;

display:inline-flex;

align-items:center;

gap:6px;

}


.etape-ok{
background:#16a34a;
}

.etape-ko{
background:#ef4444;
}

.texte-etape{
font-weight:600;
}


/* ======================================================
MODULE CSS 25-BIS
ÉTATS TERMINÉ / NON TERMINÉ (2026-11-10)
Le mot clignote en rouge quand non terminé, vert quand
terminé ; la bordure du champ suit (rouge clignotante /
verte). Le point indicateur-etape est retiré. Le span
« Date automatique » n'a ni etape-ok ni etape-ko : il
n'est pas touché par ces règles.
====================================================== */

@keyframes clignotement-mot-etat{
0%, 100%{opacity:1;}
50%{opacity:0.25;}
}

@keyframes clignotement-bordure-etat{
0%, 100%{border-color:#ef4444;}
50%{border-color:#fca5a5;}
}

.texte-etape.etape-ko{
background:transparent;
color:#ef4444;
animation:clignotement-mot-etat 1s ease-in-out infinite;
}

.texte-etape.etape-ok{
background:transparent;
color:#16a34a;
}

/* 2026-11-25, VérifiPro : état neutre d'un champ FACULTATIF
   (courriel, adresse, NEQ, TPS, TVQ du dealer) — mot gris
   « Facultatif », sans clignotement et sans bordure. */
.texte-etape.etape-neutre{
background:transparent;
color:#6b7280;
}

/* Bordure du champ selon son etat (MODULE CSS 25-BIS). Le prefixe
   "body input/select" porte la specificite a (0,1,2) pour passer
   devant "input:focus" (0,1,1) de la feuille (bordure #1f3a60 au
   focus, ligne ~1108) : sans lui, la bordure verte ne s'affichait
   qu'une fois le champ defocuse, et la bordure rouge etait ecrasee
   tant que le champ avait le focus. On n'utilise PAS "!important"
   ici : il tuerait l'animation de la bordure rouge (l'animation
   perd contre "!important"). ".champ-manquant" (avec "!important",
   ligne ~2009) garde la priorite au clic Terminer — voulu. */
body input.champ-etat-ko,
body select.champ-etat-ko,
body textarea.champ-etat-ko{
border:2px solid #ef4444;
animation:clignotement-bordure-etat 1s ease-in-out infinite;
}

body input.champ-etat-ok,
body select.champ-etat-ok,
body textarea.champ-etat-ok{
border:2px solid #16a34a;
}

@media (prefers-reduced-motion: reduce){
.texte-etape.etape-ko,
body input.champ-etat-ko,
body select.champ-etat-ko,
body textarea.champ-etat-ko{animation:none;}
}


/* ======================================================
MODULE CSS 26
LÉGENDE INDICATEURS
====================================================== */

#legende-indicateurs{

margin-top:10px;

display:flex;

gap:20px;

font-size:14px;

align-items:center;

}

.legende-item{

display:flex;

align-items:center;

gap:6px;

}


/* ======================================================
MODULE CSS 27
SECTION REPLIABLE
====================================================== */

.section-replie{
display:none;
}

/* ======================================================
MODULE CSS 28
MINUTEUR CACHÉ PAR DÉFAUT
====================================================== */

#section-minuteur{
display:none;
}

.minuteur-visible{
display:block !important;
}

/* 2026-11-09 : le minuteur est caché dans le logiciel de travail —
   il est visible SEULEMENT dans l'interface du logiciel admin.
   Le minuteur continue de tourner en arrière-plan pour la
   facturation (175 $/h) ; seul l'affichage disparaît. Cette règle
   gagne sur .minuteur-visible (sélecteur d'identifiant, plus
   spécifique, et !important) : même quand le code ajoute la classe
   à l'arrivée d'un numéro de dossier, la section reste cachée. */
#section-minuteur{
display:none !important;
}

/* 2026-11-05 : le panneau admin n'est plus dans le logiciel
   de travail (il vit dans le futur logiciel d'administration
   au bureau) : ses règles CSS sont retirées. */

/* ======================================================
MODULE CSS SIGNATURE RAPPORT
====================================================== */

.signature-rapport{

max-width:300px;

border:1px solid #ccc;

margin-top:10px;

}

/* ======================================================
MODULE CSS 30
SECTION LICENCES COMMERCIALES
À AJOUTER À LA FIN DU FICHIER
====================================================== */

#licences-verifipro{

margin-top:40px;

}

.licences-container{

display:flex;

gap:30px;

flex-wrap:wrap;

justify-content:center;

margin-top:30px;

}

.licence{

background:#ffffff;

border:1px solid #e5e7eb;

border-radius:14px;

padding:30px;

width:280px;

text-align:center;

box-shadow:
0 12px 30px rgba(0,0,0,0.08),
0 30px 60px rgba(0,0,0,0.12);

transition:.25s;

}

.licence:hover{

transform:translateY(-6px);

box-shadow:
0 20px 50px rgba(0,0,0,0.12),
0 60px 120px rgba(0,0,0,0.15);

}

.licence h3{

margin-top:0;

font-size:22px;

color:var(--bleu-profond);

}

.prix{

font-size:30px;

font-weight:900;

color:var(--bleu);

margin:20px 0;

}

.licence ul{

list-style:none;

padding:0;

margin:20px 0;

}

.licence li{

padding:6px 0;

font-weight:500;

}

.licence button{

margin-top:10px;

width:100%;

font-size:16px;

padding:14px;

}


/* ======================================================
MODULE CSS 31
SECTION ENGAGEMENT
====================================================== */

#engagement-verifipro{

margin-top:40px;

}

#engagement-verifipro ul{

margin-top:15px;

padding-left:20px;

}

#engagement-verifipro li{

margin-bottom:10px;

font-weight:500;

}


/* ======================================================
MODULE CSS 32
APPEL À L'ACTION
====================================================== */

#appel-action{

text-align:center;

margin-top:50px;

}

#appel-action button{

font-size:18px;

padding:16px 30px;

background:var(--vert);

box-shadow:
0 8px 0 #15803d,
0 15px 30px rgba(0,0,0,0.25);

}

#appel-action button:hover{

background:#22c55e;

}


/* ======================================================
MODULE CSS 33
RESPONSIVE LICENCES
====================================================== */

@media (max-width:900px){

.licences-container{

flex-direction:column;

align-items:center;

}

}

/* ======================================================
RAFRAICHISSEMENT VISUEL PREMIUM — 4 novembre 2026
Surcharges seulement, en fin de fichier : aucune regle
existante n'est effacee, aucun champ, aucun texte, aucun
ordre n'est change. Palette : bleu marine #1f3a60 et dore
deja utilises. Pour revenir a l'allure d'avant, retirer
ce bloc (du marqueur de debut au marqueur de fin).
L'impression n'est pas touchee ici : le bloc @media print
en fin de fichier neutralise seulement ombres et
deplacements, qui ne s'impriment de toute facon pas.
====================================================== */

body{
padding:28px 20px;
max-width:1080px;
margin-left:auto;
margin-right:auto;
background:#eef2f7;
line-height:1.55;
font-size:16px;
}

header{
background:linear-gradient(135deg,#1f3a60,#2c4f7c);
padding:36px 24px;
border-radius:20px;
box-shadow:0 10px 28px rgba(31,58,96,.28);
}

header h1{
font-size:34px;
letter-spacing:.2px;
text-shadow:0 2px 8px rgba(0,0,0,.35);
}

header h2{
text-shadow:0 2px 8px rgba(0,0,0,.35);
}

header p{
color:#e8eef6;
font-size:16px;
max-width:720px;
margin-left:auto;
margin-right:auto;
}

header img{
height:76px;
width:auto;
object-fit:contain;
}

section,
footer{
scroll-margin-top:70px;
padding:28px;
margin-bottom:24px;
border:1px solid #d9e2ec;
box-shadow:0 2px 6px rgba(31,58,96,.06),0 12px 28px rgba(31,58,96,.08);
transition:none;
}

section:hover{
transform:none;
box-shadow:0 2px 6px rgba(31,58,96,.06),0 12px 28px rgba(31,58,96,.08);
}

h2{
font-size:23px;
font-weight:800;
color:#1f3a60;
border-bottom:3px solid #e6d391;
padding-bottom:10px;
margin-bottom:18px;
}

h3{
font-size:18px;
color:#1f3a60;
}

label{
margin-top:16px;
margin-bottom:6px;
font-size:15px;
color:#243b53;
}

input,
select,
textarea{
min-height:48px;
max-width:560px;
padding:12px 14px;
font-size:16px;
border:1.5px solid #b9c6d4;
border-radius:12px;
box-shadow:none;
}

input[type="checkbox"],
input[type="radio"]{
width:auto;
min-height:0;
padding:0;
}

input[type="file"]{
padding:10px 12px;
}

textarea{
min-height:88px;
}

input:hover,
select:hover,
textarea:hover{
border-color:#7f93a8;
}

input:focus,
select:focus,
textarea:focus{
border-color:#1f3a60;
box-shadow:0 0 0 3px rgba(201,162,39,.35);
}

button{
background:#1f3a60;
border-radius:12px;
padding:14px 22px;
min-height:52px;
font-size:16px;
letter-spacing:.2px;
box-shadow:0 2px 0 #16294a,0 10px 22px rgba(31,58,96,.22);
transition:background .15s ease,transform .15s ease,box-shadow .15s ease;
}

button:hover{
background:#27496f;
transform:translateY(-1px);
box-shadow:0 3px 0 #16294a,0 12px 24px rgba(31,58,96,.24);
}

/* 2026-11-05, lisibilite au survol : les deux boutons de type
   ont un fond clair et un texte fonce. Le button:hover general
   ci-dessus (fond bleu marine) gagnait contre .interieur et
   .exterieur pour le fond, sans changer le texte : fond marine
   + texte bleu/vert fonce = illisible. Ces regles, plus fortes
   (trois crans de priorite) et placees apres, gardent un fond
   clair au survol, selectionne ou non. */
.type-btn.interieur:hover{
background:#bfdbfe;
color:#1e40af;
}

.type-btn.exterieur:hover{
background:#bbf7d0;
color:#166534;
}

/* 2026-11-05, fin de vérification : les deux boutons ne doivent
   plus se ressembler — en vitesse, on peut cliquer n'importe
   lequel. « Terminer » garde le style général (gros bouton bleu
   marine plein, action principale). « Nouvelle vérification »
   devient un bouton clair, plus petit (fond blanc, texte et
   contour bleu marine, action secondaire qui efface le
   formulaire). */
button.btn-nouvelle{
background:#ffffff;
color:#1f3a60;
border:2px solid #1f3a60;
box-shadow:0 2px 0 #cbd5e1,0 8px 18px rgba(31,58,96,.12);
font-size:15px;
min-height:46px;
}

button.btn-nouvelle:hover{
background:#eef2f7;
box-shadow:0 3px 0 #cbd5e1,0 10px 20px rgba(31,58,96,.14);
}

button.btn-nouvelle:active{
box-shadow:0 0 0 #cbd5e1,0 4px 10px rgba(31,58,96,.12);
}

/* 2026-11-05, étiquette QR NIIMBOT B1 : la ligne d'appairage
   sous la bande de connexion, et le bouton Réimprimer (doré,
   bien visible, mais différent du bleu marine de Terminer et
   du blanc de Nouvelle). */
.ligne-imprimante{
display:flex;
align-items:center;
flex-wrap:wrap;
gap:12px;
padding:10px 14px;
}

button.bouton-imprimante{
background:#ffffff;
color:#1f3a60;
border:2px solid #1f3a60;
box-shadow:0 2px 0 #cbd5e1,0 8px 18px rgba(31,58,96,.12);
font-size:14px;
min-height:44px;
padding:10px 16px;
}

button.bouton-imprimante:hover{
background:#eef2f7;
}

#statut-imprimante{
font-size:14px;
color:#444;
}

button.btn-reimprimer{
background:#c9a227;
color:#1f3a60;
border:2px solid #a88420;
box-shadow:0 2px 0 #a88420,0 8px 18px rgba(31,58,96,.18);
font-size:15px;
min-height:48px;
margin-top:12px;
}

button.btn-reimprimer:hover{
background:#d9b23a;
}

.message-etiquette{
font-size:14px;
color:#7c2d12;
margin-top:8px;
}

button:active{
transform:translateY(2px);
box-shadow:0 0 0 #16294a,0 4px 10px rgba(31,58,96,.20);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible{
outline:3px solid #c9a227;
outline-offset:2px;
}

#choix-verification{
gap:14px;
}

.type-btn{
min-height:68px;
font-size:19px;
border-radius:14px;
box-shadow:0 4px 0 rgba(0,0,0,.12),0 10px 22px rgba(31,58,96,.14);
}

.type-btn.actif{
transform:scale(1.02);
box-shadow:0 0 0 3px #c9a227,0 10px 22px rgba(31,58,96,.14);
}

#bandeau-mode-verification{
padding:12px;
font-size:17px;
border-bottom:3px solid #c9a227;
}

.piece-container{
padding:22px;
border:1px solid #d9e2ec;
border-radius:16px;
box-shadow:0 2px 6px rgba(31,58,96,.06),0 10px 24px rgba(31,58,96,.07);
transition:none;
}

.piece-container:hover{
transform:none;
border-color:#b9c6d4;
}

.piece-header{
gap:12px;
margin-bottom:14px;
}

.piece-titre{
font-size:19px;
font-weight:800;
color:#1f3a60;
}

.piece-actions button{
min-height:44px;
padding:10px 16px;
font-size:14px;
}

.bloc-equipement{
border-left:3px solid #c9a227;
padding-left:14px;
margin:14px 0;
}

#numeroDossier{
background:#f1f5f9;
color:#334155;
border:2px dashed #94a3b8;
font-weight:700;
font-size:15px;
}

#minuteur-container{
max-width:380px;
padding:20px;
border:1px solid #d9e2ec;
}

#affichage-minuteur{
font-size:30px;
color:#1f3a60;
}

#affichage-montant{
font-size:20px;
color:#1e7a34;
}

canvas{
border:1.5px solid #b9c6d4;
border-radius:12px;
box-shadow:none;
max-width:100%;
height:auto;
}


.etat-champ{
font-size:14px;
}

#legende-indicateurs{
font-size:15px;
}

@media (max-width:800px){
body{
padding:16px 12px;
}
section,
footer{
padding:22px 18px;
}
header{
padding:30px 18px;
}
header h1{
font-size:30px;
}
}

@media (max-width:640px){
/* 2026-11-26, lot correctifs (agent E) : sur telephone, le bouton
   de la bande de connexion passe sous le texte, en pleine largeur
   — il reste bien visible, jamais serre ni coupe. */
#bande-connexion{
gap:8px;
}
.bouton-bande-connexion{
width:100%;
justify-content:center;
}
#choix-verification,
#choix-secteur{
flex-direction:column;
}
.type-btn{
width:100%;
}
input,
select,
textarea{
max-width:100%;
}
}

@media (prefers-reduced-motion:reduce){
section,
footer,
.piece-container,
button,
.type-btn,
input,
select,
textarea{
transition:none;
transform:none;
}
}

@media print{
section,
footer,
.piece-container,
header,
button{
box-shadow:none !important;
transform:none !important;
}
/* 2026-11-04, demande de Jean-Louis : l'impression ne doit pas couper
   les sections en plein milieu. Les separateurs .page-break (deja
   presents dans le rapport) deviennent de vrais sauts de page, et les
   courtes sections (facturation, signatures, attestation, avis legal)
   restent entieres sur une meme page. Les longues listes (defauts,
   conformes) peuvent toujours se poursuivre sur la page suivante,
   sans couper un titre de son contenu. */
#rapport-impression .page-break{
display:block !important;
height:0 !important;
margin:0 !important;
padding:0 !important;
break-before:page;
page-break-before:always;
}
#rapport-impression #section-facturation,
#rapport-impression #rapport-signatures,
#rapport-impression #sceau-conformite,
#rapport-impression #avis-legal-rapport,
#rapport-impression #rapport-defauts,
#rapport-impression #rapport-conformes{
break-inside:avoid;
page-break-inside:avoid;
}
/* 2026-11-04, demande de Jean-Louis : l'attestation et l'avis legal
   doivent etre ENSEMBLE sur la derniere page, jamais separes. Le
   separateur entre les deux ne coupe donc pas la page, et
   l'attestation ne se termine jamais en fin de page sans l'avis. */
#rapport-impression #sceau-conformite + .page-break{
display:none !important;
}
#rapport-impression #sceau-conformite{
break-after:avoid;
page-break-after:avoid;
}
#rapport-impression h2{
break-after:avoid;
page-break-after:avoid;
}
/* 2026-11-04, demande de Jean-Louis : les signatures aussi sur une
   seule page — une etiquette ne se separe jamais de son image. */
#rapport-impression #rapport-signatures p{
break-after:avoid;
page-break-after:avoid;
}
/* 2026-11-04 : le nom sous une signature reste avec son image. */
#rapport-impression #rapport-nom-client,
#rapport-impression #rapport-nom-verificateur{
break-before:avoid;
page-break-before:avoid;
}
/* 2026-11-04, demande de Jean-Louis : la facturation aussi sur une
   seule page, entiere, avec son total. */
#rapport-impression #section-facturation h3{
break-before:avoid;
page-break-before:avoid;
}
#rapport-impression p{
orphans:3;
widows:3;
}
#rapport-impression img{
break-inside:avoid;
page-break-inside:avoid;
}
}

/* FIN DU RAFRAICHISSEMENT VISUEL PREMIUM */

/* ======================================================
2026-11-05, demande de Jean-Louis : petite lumière devant
le statut de synchro — vert = connecté et à jour, orange =
en attente / hors ligne, rouge = pas connecté, gris =
inconnu ou indisponible. Teintes franches, bien visibles
sur fond clair.
====================================================== */
#lumiere-synchro{
display:inline-block;
box-sizing:border-box;
width:14px;
height:14px;
border-radius:50%;
margin-right:8px;
vertical-align:-1px;
background:#9ca3af;
border:1px solid rgba(0,0,0,.25);
}
#lumiere-synchro.vert{
background:#16a34a;
}
#lumiere-synchro.orange{
background:#ea8a00;
}
#lumiere-synchro.rouge{
background:#dc2626;
}
#lumiere-synchro.gris{
background:#9ca3af;
}

/* ======================================================
2026-11-05, demande de Jean-Louis : bande mince de connexion
sous l'en-tête — verte quand on est connecté au serveur,
rouge quand on ne l'est pas, orange quand la synchro attend,
grise quand l'état est inconnu. Teintes foncées pour que le
texte blanc reste bien lisible d'un coup d'œil.
2026-11-05 à 08 h 20, Jean-Louis : « met la bande plus large
car c'est a peine visible » — bande rendue bien plus visible :
remplissage doublé (16 px en haut et en bas) et texte plus gros
(18 px). Elle reste une bande (environ 57 px de haut), pas un
gros bloc, et ne pousse pas le formulaire bien loin vers le bas.
====================================================== */
/* 2026-11-26, lot correctifs (agent E) : la bande DOIT afficher
   sa phrase en entier, meme sur un petit ecran — flex-wrap:wrap
   (avant : nowrap, le texte etait serre contre le bouton et
   paraissait coupe) et retour a la ligne autorise dans le texte.
   Sur telephone, le bouton passe sous le texte, en pleine
   largeur (voir le bloc @media max-width:640px plus bas). */
#bande-connexion{
display:flex;
align-items:center;
justify-content:space-between;
gap:12px;
flex-wrap:wrap;
margin:10px 0 0;
padding:16px 14px;
border-radius:8px;
text-align:left;
font-size:18px;
font-weight:700;
line-height:1.4;
}
#texte-bande-connexion{
flex:1 1 auto;
min-width:0;
overflow-wrap:break-word;
}
/* 2026-11-05, demande de Jean-Louis : bouton de connexion dans
   la bande, en haut — fond blanc pour bien se détacher de la
   bande, texte bleu marine, point de couleur dedans (mêmes
   teintes que la lumière du statut, pour qu'il reste lisible
   sur fond blanc dans les 4 états). */
.bouton-bande-connexion{
flex:0 0 auto;
display:inline-flex;
align-items:center;
gap:8px;
background:#ffffff;
color:#1f3a60;
font-size:16px;
font-weight:700;
padding:8px 14px;
border:2px solid #ffffff;
border-radius:8px;
cursor:pointer;
}
.bouton-bande-connexion:hover{
background:#e8eef7;
}
.point-bouton{
display:inline-block;
box-sizing:border-box;
width:14px;
height:14px;
border-radius:50%;
background:#9ca3af;
border:1px solid rgba(0,0,0,.25);
}
.point-bouton.vert{
background:#16a34a;
}
.point-bouton.orange{
background:#ea8a00;
}
.point-bouton.rouge{
background:#dc2626;
}
.point-bouton.gris{
background:#9ca3af;
}
#bande-connexion.vert{
background:#15803d;
color:#ffffff;
}
#bande-connexion.orange{
background:#b45309;
color:#ffffff;
}
#bande-connexion.rouge{
background:#b91c1c;
color:#ffffff;
}
#bande-connexion.gris{
background:#6b7280;
color:#ffffff;
}

/* 2026-11-05, mode formation par personne : bandeau FORMATION
   en haut du logiciel, seulement pour un compte en formation.
   GROS et tres contraste (jaune vif sur noir, texte enorme et
   gras) : la formation est projetee sur un mur avec un
   projecteur, a partir d'un portable — le bandeau doit se
   lire du fond de la salle. Il reste colle en haut quand on
   fait defiler le formulaire. Ne s'imprime jamais (la zone
   d'impression ne l'inclut pas, et il porte no-print). */
#bandeau-formation{
position:sticky;
top:0;
z-index:10000;
background:#ffd400;
color:#111111;
border-bottom:5px solid #111111;
font-size:34px;
font-weight:900;
line-height:1.25;
letter-spacing:1px;
text-align:center;
padding:18px 12px;
}

/* 2026-11-05, logo animé + avis légal à l'ouverture (demande de
   Jean-Louis) : l'écran de connexion montre d'abord le logo
   VérifiPro en fondu + léger zoom au centre de l'écran bleu marine,
   puis la boîte blanche apparaît en fondu. Animation CSS seulement. */
.vpi-logo-ouverture{
display:block;
width:150px;
height:150px;
margin:5vh auto 22px;
border-radius:50%;
object-fit:cover;
box-shadow:0 4px 18px rgba(0,0,0,.35);
animation:vpi-logo-entree 1s ease-out both;
}
/* VérifiPro (2026-11-25) : logo complet sur l'écran de connexion.
   Le logo est rectangulaire (1920×1280, fond blanc) : on ne reprend
   PAS le cercle de .vpi-logo-ouverture, seulement son animation
   d'entrée et son ombre. */
.logo-verifipro-ouverture{
display:block;
max-width:340px;
width:88%;
height:auto;
margin:5vh auto 22px;
border-radius:12px;
background:#fff;
padding:10px;
box-shadow:0 4px 18px rgba(0,0,0,.35);
animation:vpi-logo-entree 1s ease-out both;
}
@keyframes vpi-logo-entree{
from{opacity:0;transform:scale(.7);}
to{opacity:1;transform:scale(1);}
}
.vpi-boite-connexion{
animation:vpi-boite-entree .7s ease .8s both;
}
@keyframes vpi-boite-entree{
from{opacity:0;transform:translateY(14px);}
to{opacity:1;transform:translateY(0);}
}
.vpi-avis-legal{
font-size:11px;
line-height:1.45;
color:#666;
text-align:center;
margin:16px 0 0;
padding-top:12px;
border-top:1px solid #e5e5e5;
}
@media (prefers-reduced-motion:reduce){
.vpi-logo-ouverture,.vpi-boite-connexion{animation:none;}
}

/* ======================================================
MODULE CSS QR DOSSIER À L'ÉCRAN (2026-11-09)
Code QR juste à côté du numéro de dossier : il encode
l'adresse de lecture (lecture.html?dossier=<numéro>).
====================================================== */

.ligne-numero-qr{
display:flex;
gap:16px;
align-items:flex-start;
flex-wrap:wrap;
}

.ligne-numero-qr label{
flex:1 1 260px;
}

#bloc-qr-dossier{
flex:0 0 auto;
border:1px solid #1f3a60;
border-radius:8px;
padding:8px 12px;
text-align:center;
background:#ffffff;
}

#bloc-qr-dossier .titre-qr-dossier{
font-weight:bold;
margin:0 0 6px;
color:#1f3a60;
}

#qr-dossier-image svg{
display:block;
width:148px;
height:auto;
margin:0 auto;
}

#bloc-qr-dossier .aide-qr-dossier{
font-size:12px;
margin:6px 0 0;
color:#243b53;
}

/* ======================================================
MODULE CSS PAGE LECTURE SEULE (2026-11-09)
lecture.html : affiche un dossier en entier, sans aucun
moyen de le modifier.
====================================================== */

.lecture-entete{
max-width:900px;
margin:0 auto;
padding:16px 12px 0;
text-align:center;
}

.lecture-logo{
width:96px;
height:96px;
border-radius:50%;
object-fit:cover;
}

.lecture-entete h1{
color:#ffffff;
margin:8px 0 4px;
}

.lecture-note{
color:#e8eef6;
margin:0 0 8px;
}

/* Note de transparence (mode public, v1.5.10) : elle dit en
   clair que n'importe qui peut lire le dossier par le code
   QR, et que seuls le numero de telephone du client et la
   facturation ne sont pas affichés. */
.lecture-transparence{
background:#fff8e6;
border:1px solid #e8a81c;
border-radius:8px;
padding:10px 12px;
text-align:left;
font-weight:600;
}

.lecture-statut{
max-width:900px;
margin:8px auto;
padding:0 12px;
font-weight:bold;
color:#1f3a60;
}

.lecture-contenu{
max-width:900px;
margin:0 auto;
padding:0 12px 24px;
}

.lecture-section{
border:1px solid #d8dee6;
border-radius:8px;
padding:12px 14px;
margin:12px 0;
background:#ffffff;
}

.lecture-section h2{
color:#1f3a60;
margin:0 0 8px;
}

.lecture-numero{
overflow-wrap:break-word;
}

.lecture-ligne{
margin:4px 0;
}

.lecture-libelle{
font-weight:bold;
}

.lecture-piece{
border-top:1px solid #e5e5e5;
padding:8px 0;
}

.lecture-piece h3{
color:#1f3a60;
margin:4px 0 6px;
}

.lecture-equipement{
margin:6px 0 6px 12px;
}

.lecture-equipement h4{
margin:4px 0;
color:#243b53;
}

.lecture-photo{
margin:8px 0;
}

.lecture-photo img{
max-width:100%;
height:auto;
border:1px solid #d8dee6;
border-radius:6px;
}

.lecture-photo figcaption{
font-size:13px;
color:#243b53;
}

.lecture-signature img{
max-width:320px;
width:100%;
height:auto;
border:1px solid #d8dee6;
border-radius:6px;
background:#ffffff;
}

.lecture-rapport{
white-space:pre-wrap;
overflow-wrap:break-word;
font-size:14px;
background:#fafafa;
border:1px solid #e5e5e5;
border-radius:6px;
padding:10px;
}

.lecture-pied{
max-width:900px;
margin:0 auto;
padding:0 12px 24px;
}

/* ======================================================
MODULE CSS — DÉPLACEMENT (2026-11-09)
Frais de déplacement : 25 premiers km gratuits,
au-delà 0,73 $/km. Bloc dans le formulaire client.
====================================================== */

#bloc-deplacement{
margin-top:12px;
padding:12px;
border:1px solid #d8dee9;
border-radius:8px;
background:#f8fafc;
}

#bloc-deplacement label{
margin-top:8px;
}

.aide-deplacement{
font-size:0.9em;
color:#475569;
margin:4px 0 8px 0;
}

.resume-deplacement{
font-weight:600;
color:#1f3a60;
margin:8px 0 0 0;
}

/* ======================================================
MODULE CSS PAIEMENT PAR CARTE (Stripe) — 2026-11-09
Bleu officiel #1B61AE, or #E28F0F. Lisible sur tablette,
grandes zones tactiles, rien de décoratif.
====================================================== */

#section-paiement{

background:#f4f8fc;

border:2px solid #1B61AE;

border-radius:12px;

padding:20px;

margin:20px 0;

}

#section-paiement h2{

color:#1B61AE;

margin-top:0;

}

#section-paiement .message-paiement{

background:#fff8e6;

border:1px solid #E28F0F;

border-radius:8px;

padding:12px;

font-size:16px;

}

#section-paiement .message-paiement.erreur{

background:#fdecea;

border-color:#b00020;

}

#section-paiement .message-paiement.ok{

background:#e8f5e9;

border-color:#2e7d32;

}

button.btn-payer{

background:#1B61AE;

box-shadow:
0 8px 0 #12467e,
0 15px 30px rgba(0,0,0,0.25);

font-size:18px;

padding:16px 28px;

width:100%;

margin-top:12px;

}

button.btn-payer:hover{

box-shadow:
0 10px 0 #12467e,
0 18px 35px rgba(0,0,0,0.3);

}

button.btn-payer:active{

box-shadow:
0 2px 0 #12467e,
0 6px 10px rgba(0,0,0,0.2);

}

button.btn-payer:disabled{

background:#8aa8c4;

box-shadow:
0 8px 0 #6b8296,
0 15px 30px rgba(0,0,0,0.15);

cursor:wait;

}

button.btn-paiement-secondaire{

background:#ffffff;

color:#1B61AE;

border:2px solid #1B61AE;

box-shadow:none;

width:100%;

margin-top:12px;

}

#element-paiement{

background:#ffffff;

border:1px solid #c9d8e8;

border-radius:8px;

padding:16px;

margin-top:16px;

}

#confirmation-paiement .paiement-accepte{

color:#2e7d32;

font-size:20px;

font-weight:700;

}

/* ======================================================
2026-11-10, Terminer : case obligatoire vide du formulaire
client — bloque l'envoi tant qu'elle n'est pas remplie.
La classe est retirée dès que la case est remplie.
Rouge #dc2626 : la même teinte que les indicateurs
« pas connecté » du logiciel.
====================================================== */
.champ-manquant{

border:2px solid #dc2626 !important;

background-color:#fdecea !important;

}

/* ======================================================
MODULE — CASES À COCHER (2026-11-25, lot -4)
Plus aucun menu déroulant dans les pièces : chaque élément
affiche ses options en cases à cocher, une rangée par
groupe (Type, État, ...), les deux visibles en même temps.
Choix multiple par groupe. Case cochée = vert de la marque
(#2e7d32, bordure + fond clair) via la classe
vpi-case-choisi posée par app.js. GROSSES cibles tactiles
(min-height 48px), rangées qui passent à la ligne
(flex-wrap). Le style est ici, une seule fois — pas injecté
par pièce (app.js ne l'injecte plus).
====================================================== */
.vpi-cases { display:block; margin-top:6px; }
.vpi-cases-rang { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:8px 0; }
.vpi-cases-etiquette { font-weight:700; font-size:14px; min-width:56px; }
.vpi-case { display:inline-flex; align-items:center; gap:10px; min-height:48px; padding:10px 14px; font-size:15px; font-weight:600; line-height:1.2; border-radius:12px; border:2px solid #cbd5e1; background:#ffffff; color:#1f2937; cursor:pointer; }
.vpi-case:hover { border-color:#2e7d32; }
.vpi-case input[type="checkbox"] { width:24px; height:24px; min-width:24px; min-height:24px; accent-color:#2e7d32; cursor:pointer; margin:0; }
.vpi-case-choisi { background:#e8f5e9; border-color:#2e7d32; color:#1b5e20; }
.vpi-case:focus-within { outline:3px solid rgba(46,125,50,.45); outline-offset:2px; }
.vpi-case-sans-objet { border-style:dashed; }
.vpi-numerique, .vpi-numerique-seul { min-height:48px; font-size:16px; padding:8px 12px; border:2px solid #cbd5e1; border-radius:12px; width:130px; background:#ffffff; color:#1f2937; }
.vpi-numerique:focus, .vpi-numerique-seul:focus { border-color:#2e7d32; outline:3px solid rgba(46,125,50,.45); outline-offset:2px; }
.vpi-numerique-unite { font-weight:700; font-size:15px; }
