@charset "utf-8";
/* ===========================================================================
   ordo.css — feuille unique de l'ordonnancement, ecrite le 15/09/2026
   ===========================================================================
   CE QU'ELLE REMPLACE

     Sept feuilles chargees ensemble, dont deux qui se contredisaient :
       main_big.css   media="screen and (min-width: 1100px)"
       main_small.css media="screen and (max-width: 2099px)"
     Entre 1100 et 2099 px — c'est-a-dire sur la quasi-totalite des ecrans de
     bureau — les DEUX s'appliquaient, et c'est l'ordre de chargement qui
     tranchait. Plus deux feuilles conditionnelles pour IE 6 et IE 7.

     Il n'y avait AUCUN <meta viewport> : sur un telephone, la page etait
     rendue a 980 px puis reduite. L'application est utilisee par des
     valideurs en deplacement ; elle etait illisible chez eux.

   LE PARTI PRIS

     Une seule feuille, ecrite du petit ecran vers le grand. Les tableaux —
     qui sont le coeur de l'application — se replient en fiches sous 760 px :
     chaque cellule reprend son intitule par son attribut data-lib, ce qui
     evite le defilement horizontal sur telephone.

     Les couleurs sont celles de la maison, relevees dans l'ancienne feuille :
     navy, #2b5198, #82a9f9, #124d87.
   =========================================================================== */

:root {
	--bleu:        #2b5198;
	--bleu-fonce:  #124d87;
	--bleu-clair:  #82a9f9;
	--marine:      #001f5b;
	--encre:       #23262d;
	--encre-doux:  #5b6070;
	--fond:        #f4f6fa;
	--carte:       #ffffff;
	--trait:       #d7dce6;
	--rouge:       #b3261e;
	--vert:        #1e7a46;
	--rayure:      #eef2f9;
	--rayon:       6px;
	--ombre:       0 1px 2px rgba(16, 24, 48, .08), 0 4px 12px rgba(16, 24, 48, .06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
	background: var(--fond);
	color: var(--encre);
	font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-text-size-adjust: 100%;
}

img { border: 0; max-width: 100%; height: auto; }
a { color: var(--bleu-fonce); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--bleu-clair); outline-offset: 2px; }

.clearboth { clear: both; height: 0; }
.hidden { display: none !important; }
.inline { display: inline; }

/* --- Ossature ------------------------------------------------------------ */

#global { max-width: 1400px; margin: 0 auto; padding: 0 12px 40px 12px; }
#div_main { }
#div_corps { }

#div_top {
	display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
	padding: 14px 0 12px 0;
}
#div_top img { height: 54px; width: auto; }
#div_top h1, #div_top h2 {
	color: var(--marine); font-style: normal; font-weight: 700;
	font-size: clamp(18px, 4vw, 26px); letter-spacing: -.01em;
}
#div_top h2 { font-size: clamp(16px, 3.4vw, 20px); color: var(--bleu-fonce); }

.identite {
	margin-left: auto; display: flex; align-items: center; gap: 12px;
	font-size: 13px; color: var(--encre-doux);
}

.menu {
	display: flex; gap: 8px; flex-wrap: wrap;
	border-bottom: 2px solid var(--bleu); padding-bottom: 10px; margin-bottom: 18px;
}
.menu a, .menu .onglet_actif {
	display: inline-block; padding: 9px 16px; border-radius: var(--rayon) var(--rayon) 0 0;
	text-decoration: none; font-weight: 600; font-size: 14px;
	background: #e3e9f5; color: var(--bleu-fonce);
}
.menu a:hover { background: var(--bleu-clair); color: #fff; }
.menu .onglet_actif { background: var(--bleu); color: #fff; }

#footer {
	margin-top: 28px; padding-top: 10px; border-top: 1px solid var(--trait);
	color: var(--encre-doux); font-size: 12px; text-align: right;
}
#footer p { text-align: right; }

/* --- En-tete d'ecran ----------------------------------------------------- */

#div_topfiche {
	display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px;
	margin-bottom: 16px;
}
#div_titre { flex: 1 1 260px; }
h1 { color: var(--marine); font-size: clamp(18px, 3.6vw, 24px); }
h2 { color: var(--encre); font-size: 18px; }

.barre_actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }

/* La barre d'actions ne doit pas se replier tant qu'il y a la place : le titre
   prenait toute la largeur et poussait le bouton « Historique » a la ligne,
   ce qui desalignait l'ensemble. */
#div_topfiche .barre_actions { flex: 0 0 auto; margin-left: auto; }
@media (min-width: 761px) { #div_topfiche .barre_actions { flex-wrap: nowrap; } }

/* --- Formulaires --------------------------------------------------------- */

label { display: block; color: var(--bleu-fonce); font-weight: 600; font-size: 13px; margin-bottom: 4px; }
label.inline { display: inline; }

/* input[type=email] MANQUAIT A CETTE LISTE — le champ de l'adresse, sur
   l'ecran de connexion, n'etait donc PAS style du tout : ni largeur, ni
   bordure, ni police heritee. Il portait l'apparence par defaut du navigateur,
   d'ou un champ etroit et depareille. Mesure du 16/09/2026. */
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number],
input[type=file], select, textarea {
	width: 100%; max-width: 100%;
	padding: 9px 10px; border: 1px solid var(--trait); border-radius: var(--rayon);
	background: #fff; color: var(--encre); font: inherit;
}
textarea { min-height: 140px; resize: vertical; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--bleu); }

.champ { flex: 0 1 220px; }
.champ_court input { max-width: 140px; }

.champ_err input, .champ_err textarea, .champ_err select { border-color: var(--rouge); }
.champ_err label { color: var(--rouge); }

/* --- Boutons ------------------------------------------------------------- */

.bouton, #c_valide {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 42px; padding: 0 18px;
	border: 1px solid var(--bleu); border-radius: var(--rayon);
	background: var(--bleu); color: #fff;
	font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.bouton:hover, #c_valide:hover { background: var(--bleu-fonce); border-color: var(--bleu-fonce); }
.bouton_doux { background: #fff; color: var(--bleu-fonce); }
.bouton_doux:hover { background: #e3e9f5; color: var(--bleu-fonce); }
.bouton_rouge { background: var(--rouge); border-color: var(--rouge); }
.bouton_rouge:hover { background: #8e1d17; border-color: #8e1d17; }

.bouton_icone {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; padding: 0;
	border: 1px solid var(--trait); border-radius: var(--rayon);
	background: #fff; cursor: pointer;
}
.bouton_icone:hover { border-color: var(--bleu); background: #eef2f9; }
.bouton_icone img { width: 18px; height: auto; }

/* --- Messages ------------------------------------------------------------ */

.message { border-radius: var(--rayon); padding: 12px 14px; margin: 0 0 16px 0; font-size: 14px; }
.message_err { background: #fdecea; border: 1px solid #f3c2bd; color: var(--rouge); }
.message_ok  { background: #e8f5ee; border: 1px solid #b7dfc8; color: var(--vert); }
.message_inf { background: #eaf1fb; border: 1px solid #c3d6f2; color: var(--bleu-fonce); }

/* --- Tableaux ------------------------------------------------------------ */

#contenu_libre { }

.tableau_cadre {
	background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon);
	box-shadow: var(--ombre); overflow: hidden;
}

table { width: 100%; border-collapse: collapse; }
th {
	background: var(--bleu); color: #fff; text-align: left; font-size: 12px;
	text-transform: uppercase; letter-spacing: .04em; font-weight: 600;
	padding: 10px 12px; white-space: nowrap;
}
td { padding: 10px 12px; border-top: 1px solid var(--trait); vertical-align: middle; }
tbody tr:nth-child(even), .tr_back2 { background: var(--rayure); }
.tr_back1 { background: #fff; }
tbody tr:hover { background: #e8eefb; }

.col_mtt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.col_date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.col_act { width: 1%; white-space: nowrap; }
.non_conforme { color: var(--rouge); font-weight: 700; display: block; margin-top: 4px; }
.vide { padding: 28px 14px; text-align: center; color: var(--encre-doux); }

/* Les tableaux se replient en fiches sur telephone. Chaque cellule reprend
   son intitule par data-lib : la colonne disparait, l'information reste. */
@media (max-width: 760px) {
	.tableau_cadre { border: 0; background: none; box-shadow: none; }
	table, tbody, tr, td { display: block; width: 100%; }
	thead { position: absolute; left: -9999px; }
	tbody tr {
		background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon);
		box-shadow: var(--ombre); margin-bottom: 12px; padding: 4px 2px;
	}
	tbody tr:nth-child(even) { background: var(--carte); }
	tbody tr:hover { background: var(--carte); }
	td { border: 0; display: flex; gap: 12px; align-items: baseline; padding: 7px 12px; }
	td:before {
		content: attr(data-lib); flex: 0 0 38%;
		color: var(--encre-doux); font-size: 12px; text-transform: uppercase; letter-spacing: .03em;
	}
	td[data-lib=""]:before, td:not([data-lib]):before { content: ""; flex: 0; }

	/* LES BOUTONS EN UNE SEULE LIGNE, EN TETE DE FICHE.
	   Une par ligne, avec son intitule, donnait neuf lignes par fiche :
	   la case a cocher, la loupe et la croix occupaient a elles seules le tiers
	   de la hauteur. Elles se rangent cote a cote, sans intitule — l'icone
	   porte deja son aria-label. */
	td.col_act { display: inline-flex; width: auto; padding: 10px 4px 10px 12px; }
	td.col_act:before { display: none; }
	td:not(.col_act) + td:not(.col_act) { border-top: 1px dashed var(--trait); }
	td.col_act + td:not(.col_act) { border-top: 1px solid var(--trait); margin-top: 4px; }

	/* Une cellule sans contenu — une piece jointe absente, par exemple — ne
	   merite pas une ligne vide dans la fiche. */
	td:empty { display: none; }
	.col_mtt { text-align: left; font-size: 17px; }
}

/* --- Connexion ----------------------------------------------------------- */

.bloc_login {
	max-width: 420px; margin: 6vh auto 0 auto;
	background: var(--carte); border: 1px solid var(--trait); border-radius: 10px;
	box-shadow: var(--ombre); padding: 26px 24px 28px 24px;
}
.bloc_login h1 { text-align: center; margin-bottom: 6px; }
.bloc_login .aide { color: var(--encre-doux); font-size: 14px; text-align: center; margin-bottom: 20px; }

/* LE CHAMP DE CONNEXION PREND TOUTE LA CARTE. « .champ » vaut « flex: 0 1
   220px » dans les barres d'actions, ou plusieurs champs se partagent la
   ligne ; ici il n'y en a qu'un, et il n'y a aucune raison de le retrecir.
   Le libelle a ete retire : la carte dit deja ce qu'elle demande. */
.bloc_login .champ { flex: 1 1 100%; }
.bloc_login input[type=email], .bloc_login input[type=text] {
	padding: 13px 14px; font-size: 17px;
}
.bloc_login .bouton { width: 100%; }
.bloc_login .lien_retour { display: block; text-align: center; margin-top: 16px; font-size: 13px; }

.code_otp {
	letter-spacing: .5em; text-align: center; font-size: 26px; font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* LE LOGO DANS LA CARTE DE CONNEXION. Il n'y a plus de bandeau au-dessus : la
   carte se suffit, et le nom de l'application n'a pas a etre repete trois fois
   sur un ecran qui n'en montre qu'une. */
/* LE VERROU VERTICAL SE DIMENSIONNE EN LARGEUR, et non en hauteur : contraint
   a 58 px de haut, le mot-symbole tombait a 10 px et devenait illisible. */
.bloc_login .logo_carte { display: block; margin: 0 auto 18px auto; width: 210px; height: auto; max-width: 70%; }

/* LE PAVE DU CODE DE SIGNATURE — meme presentation que le code de connexion :
   c'est le meme geste, il doit se reconnaitre au premier coup d'oeil. */
.carte_code {
	max-width: 420px; margin: 4vh auto 0 auto;
	background: var(--carte); border: 1px solid var(--trait); border-radius: 10px;
	box-shadow: var(--ombre); padding: 26px 24px 28px 24px; text-align: center;
}
.carte_code h2 { color: var(--marine); margin-bottom: 6px; }
.carte_code .aide { color: var(--encre-doux); font-size: 14px; margin-bottom: 20px; }
.carte_code .champ { flex: 1 1 100%; text-align: left; }
.carte_code .barre_actions { margin-top: 18px; justify-content: center; }

/* LES DECISIONS PRISES, PAS ENCORE SIGNEES. */
.etat_valide  { color: var(--vert);  font-weight: 700; white-space: nowrap; }
.etat_refuse  { color: var(--rouge); font-weight: 700; white-space: nowrap; }
.etat_attente { color: var(--encre-doux); white-space: nowrap; }

/* La ligne deja decidee se distingue sans crier : un filet de couleur a
   gauche, pas un fond qui rendrait le tableau illisible. */
tr.ligne_valide td:first-child { box-shadow: inset 3px 0 0 var(--vert); }
tr.ligne_refuse td:first-child { box-shadow: inset 3px 0 0 var(--rouge); }

/* Les boutons de decision : un signe, une couleur, une cible assez grande pour
   un doigt. */
.bouton_ok, .bouton_annule {
	font-size: 18px; font-weight: 700; line-height: 1;
	min-width: 34px; min-height: 34px;
}
.bouton_ok { color: var(--vert); }
.bouton_annule { color: var(--encre-doux); }

/* L'ECART ENTRE LA PIECE ET SON MOTIF. Le libelle « Motif du refus » collait au
   tableau : on lisait une seule masse. */
.champ_motif { margin-top: 22px; }

#contenu_libre h2 { margin: 22px 0 6px 0; font-size: 16px; color: var(--bleu-fonce); }
#contenu_libre ul { margin: 0 0 4px 0; padding-left: 22px; }
#contenu_libre li { margin: 3px 0; }

/* --- Sur-division (ajax) -------------------------------------------------- */

.wait_hide { display: none; }
.class_noir {
	display: block; position: fixed; inset: 0; z-index: 900;
	background: rgba(12, 18, 36, .55);
}
.div_reponse, .div_stepc {
	display: block; position: fixed; z-index: 910;
	left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: min(560px, calc(100% - 24px)); max-height: 86vh; overflow: auto;
	background: var(--carte); border-radius: 10px; box-shadow: 0 18px 50px rgba(8, 14, 30, .35);
	padding: 22px;
}
.div_reponse .barre_actions, .div_stepc .barre_actions { margin-top: 18px; justify-content: flex-end; }
.wait_data {
	display: block; position: fixed; z-index: 920; left: 50%; top: 24px; transform: translateX(-50%);
	background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre);
	padding: 8px 16px; font-size: 13px; color: var(--encre-doux);
}
.wait_data:after { content: "Traitement en cours…"; }

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
}

/* --- La fiche d'un compte (pag=501) --------------------------------------- */
/* Un formulaire de saisie, pas une barre d'actions : les champs se suivent en
   colonne et prennent la largeur de la carte, au lieu de se serrer a 220 px
   comme dans les filtres. */

.carte_fiche {
	background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre);
	padding: 22px; max-width: 560px;
}
.carte_fiche .champ { flex: 1 1 100%; display: block; margin-bottom: 4px; }
.carte_fiche .champ input { width: 100%; }
.carte_fiche .aide { margin: 0 0 18px 0; font-size: 12px; color: var(--encre-doux); }

/* La case a cocher tient sur une ligne avec son libelle, qui se clique aussi. */
.champ_case { display: flex; align-items: center; gap: 10px; }
.champ_case input[type=checkbox] { width: auto; min-height: 0; margin: 0; }
.champ_case label { margin: 0; cursor: pointer; }

.col_action { text-align: right; white-space: nowrap; }
