/* ============================================================================
   OTODO - feuille de style
   ----------------------------------------------------------------------------
   Direction retenue le 30/11, après comparaison de deux planches sur données
   réelles (_planches/) :
     - les écrans de placement (accueil, optimisation) sont un TABLEAU DE
       SERVICE : une colonne par créneau du portail, une ligne par technicien,
       les trous visibles ;
     - les écrans de déroulé (tournée, journée du technicien) sont une FEUILLE
       DE ROUTE : les arrêts sur une bande horaire, le trajet écrit entre deux.

   Règles tenues : pas de bandeau de KPI, pas de capitales espacées, pas de
   cartes identiques à en-tête gris, pas de chaînes au point médian. La couleur
   ne sert qu'aux états du workflow. Typo Barlow (signalétique, tableaux de
   service), chiffres tabulaires partout. Clair par défaut, sombre avec ses
   propres surfaces.
   ============================================================================ */

:root {
    --papier:     #e9ecef;
    --table:      #ffffff;
    --creux:      #f3f5f7;
    --trait:      #c6ccd3;
    --trait-fort: #8d97a1;
    --encre:      #10161c;
    --encre-2:    #5b656f;
    --encre-3:    #8a939c;

    --planifie: #1d6fa8;
    --encours:  #a35c00;
    --ok:       #1f7a44;
    --ko:       #a3272a;
    --annule:   #767f8a;

    --barre:     #141a20;
    --barre-txt: #f2f4f6;
    --barre-2:   #99a4ae;

    --r: 2px;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --papier:     #0f1317;
        --table:      #171c21;
        --creux:      #1c2228;
        --trait:      #2f363d;
        --trait-fort: #4a535c;
        --encre:      #e8ecef;
        --encre-2:    #9aa4ae;
        --encre-3:    #6f7984;

        --planifie: #5aa9e0;
        --encours:  #d4932f;
        --ok:       #4fb27a;
        --ko:       #df6d6d;
        --annule:   #7f8893;

        --barre:     #0a0d10;
        --barre-txt: #e8ecef;
        --barre-2:   #808b95;
    }
}

:root[data-theme="dark"] {
    --papier:     #0f1317;
    --table:      #171c21;
    --creux:      #1c2228;
    --trait:      #2f363d;
    --trait-fort: #4a535c;
    --encre:      #e8ecef;
    --encre-2:    #9aa4ae;
    --encre-3:    #6f7984;

    --planifie: #5aa9e0;
    --encours:  #d4932f;
    --ok:       #4fb27a;
    --ko:       #df6d6d;
    --annule:   #7f8893;

    --barre:     #0a0d10;
    --barre-txt: #e8ecef;
    --barre-2:   #808b95;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--papier);
    color: var(--encre);
    font-family: Barlow, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
}

a { color: var(--planifie); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, .cond {
    font-family: "Barlow Semi Condensed", Barlow, system-ui, sans-serif;
    letter-spacing: -.005em;
}

h1 { font-size: 30px; font-weight: 600; margin: 0; }
h2 { font-size: 20px; font-weight: 600; margin: 30px 0 8px; }
h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }

p { margin: 0 0 14px; }

/* --- barre haute ---------------------------------------------------------- */

.barre {
    background: var(--barre);
    color: var(--barre-txt);
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 18px;
    min-height: 48px;
    flex-wrap: wrap;
}

.marque {
    font-family: "Barlow Semi Condensed", Barlow, sans-serif;
    font-weight: 600;
    font-size: 21px;
    color: var(--barre-txt);
    text-decoration: none;
}

.marque:hover { text-decoration: none; color: #fff; }
.marque:hover small { color: #c9d2dc; }
.marque:focus-visible { outline: 2px solid var(--planifie); outline-offset: 3px; }

.marque small { font-weight: 400; font-size: 14px; color: var(--barre-2); margin-left: 7px; }

.barre nav { display: flex; gap: 2px; margin-left: 10px; flex-wrap: wrap; }

.barre nav a {
    font-family: "Barlow Semi Condensed", Barlow, sans-serif;
    font-size: 16px;
    color: var(--barre-2);
    padding: 13px 12px 11px;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.barre nav a:hover { color: #fff; text-decoration: none; }
.barre nav a.actif { color: #fff; border-bottom-color: var(--planifie); font-weight: 600; }

.barre .droite { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; }
.barre .qui { color: var(--barre-2); }
.barre .qui b { color: var(--barre-txt); font-weight: 600; }
.barre .droite a { color: var(--barre-2); }
.barre .droite a:hover { color: #fff; }

.bascule {
    background: none;
    border: 1px solid #343c44;
    color: var(--barre-2);
    border-radius: var(--r);
    padding: 3px 9px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.bascule:hover { color: #fff; border-color: #6b7580; }

/* --- structure ------------------------------------------------------------ */

.ecran { max-width: 1180px; margin: 0 auto; padding: 26px 20px 60px; }
.ecran--large { max-width: 1440px; }
.ecran--etroit { max-width: 620px; }

.entete { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.entete .compte { color: var(--encre-2); font-size: 15px; }
.chapeau { color: var(--encre-2); max-width: 70ch; margin: 0 0 24px; }

.outils { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; }
.outils > div { flex: 0 1 auto; }
.outils .large { flex: 1 1 320px; }

label { display: block; font-size: 14px; color: var(--encre-2); margin-bottom: 3px; }

input[type=text], input[type=password], input[type=date], input[type=search], select, textarea {
    width: 100%;
    padding: 7px 9px;
    font: inherit;
    font-variant-numeric: tabular-nums;
    color: var(--encre);
    background: var(--table);
    border: 1px solid var(--trait-fort);
    border-radius: var(--r);
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--planifie);
    outline-offset: -1px;
    border-color: var(--planifie);
}

textarea { min-height: 80px; resize: vertical; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: "Barlow Semi Condensed", Barlow, sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid var(--planifie);
    border-radius: var(--r);
    background: var(--planifie);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.3;
}

.btn:hover { filter: brightness(.92); text-decoration: none; color: #fff; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn--creux { background: transparent; color: var(--planifie); }
.btn--creux:hover { background: var(--creux); color: var(--planifie); filter: none; }
.btn--neutre { background: transparent; color: var(--encre-2); border-color: var(--trait-fort); }
.btn--neutre:hover { background: var(--creux); color: var(--encre); filter: none; }
.btn--ko { background: transparent; color: var(--ko); border-color: var(--ko); }
.btn--ko:hover { background: color-mix(in srgb, var(--ko) 10%, transparent); color: var(--ko); filter: none; }
.btn--large { width: 100%; justify-content: center; padding: 14px 16px; font-size: 18px; }

/* --- états du workflow ---------------------------------------------------- */

.etat {
    display: inline-block;
    font-family: "Barlow Semi Condensed", Barlow, sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 1px 7px;
    border: 1px solid currentColor;
    border-radius: var(--r);
    white-space: nowrap;
    line-height: 1.35;
}

.etat-100 { color: var(--planifie); }
.etat-150 { color: var(--encours); background: color-mix(in srgb, var(--encours) 10%, transparent); }
.etat-200 { color: var(--ok); }
.etat-300 { color: var(--ko); }
.etat-400 { color: var(--annule); }

.sav { color: var(--encours); border: 1px solid currentColor; border-radius: var(--r); padding: 0 5px; font-size: 13px; }

/* --- tableau de service (accueil, optimisation) --------------------------- */

.service { margin-bottom: 32px; }

.service > header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.service > header h2 { margin: 0; }
.service > header .note { color: var(--encre-2); font-size: 14px; }

table.board {
    width: 100%;
    border-collapse: collapse;
    background: var(--table);
    border: 1px solid var(--trait);
    border-left: 3px solid var(--trait-fort);
}

table.board th {
    font-family: "Barlow Semi Condensed", Barlow, sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: var(--encre-2);
    text-align: left;
    padding: 7px 10px;
    border-bottom: 1px solid var(--trait-fort);
    background: var(--creux);
    white-space: nowrap;
}

table.board th.tech, table.board td.tech { width: 160px; }
table.board td { border: 1px solid var(--trait); border-top: 0; padding: 0; vertical-align: top; width: 14%; }
table.board td.tech { background: var(--creux); padding: 9px 10px; border-left: 0; }

.tech-nom { font-family: "Barlow Semi Condensed", Barlow, sans-serif; font-weight: 600; font-size: 17px; line-height: 1.2; }
.tech-base { color: var(--encre-3); font-size: 13.5px; }
.tech-base a { color: var(--encre-2); }

a.case {
    display: block;
    padding: 8px 10px;
    min-height: 68px;
    text-decoration: none;
    color: inherit;
    border-left: 3px solid var(--planifie);
}

a.case:hover { background: var(--creux); text-decoration: none; }
a.case:focus-visible { outline: 2px solid var(--planifie); outline-offset: -2px; }
a.case.encours { border-left-color: var(--encours); background: color-mix(in srgb, var(--encours) 7%, transparent); }
a.case.termine { border-left-color: var(--ok); }
a.case.echec { border-left-color: var(--ko); }

.case-creneau { display: none; }
.case-commune { display: block; font-family: "Barlow Semi Condensed", Barlow, sans-serif; font-weight: 600; font-size: 16px; line-height: 1.15; }
.case-client { display: block; color: var(--encre-2); font-size: 14px; line-height: 1.25; }
.case-ref { display: block; color: var(--encre-3); font-size: 13px; }
.case-route { display: block; margin-top: 6px; color: var(--encre-3); font-size: 13px; line-height: 1.3; }
.case-route b { font-weight: 600; color: var(--encre-2); }

.libre { display: block; padding: 8px 10px; min-height: 68px; color: var(--encre-3); font-size: 14px; }

/* --- feuille de route (tournée, journée du technicien) -------------------- */

.feuille { background: var(--table); border: 1px solid var(--trait); margin-bottom: 22px; }

.feuille > header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--trait-fort);
    background: var(--creux);
    flex-wrap: wrap;
}

.feuille > header h2 { margin: 0; font-size: 20px; }
.feuille > header .note { color: var(--encre-2); font-size: 14px; }

.rail { position: relative; padding: 4px 16px 14px 92px; }
.rail:before { content: ""; position: absolute; left: 78px; top: 18px; bottom: 18px; width: 2px; background: var(--trait); }

.arret { position: relative; padding: 12px 0; border-bottom: 1px solid var(--trait); }
.arret:last-child { border-bottom: 0; }

.arret .heure {
    position: absolute;
    /* Décalée vers la gauche plutôt que rétrécie : à 56 px, « jusqu'à 13 h »
       passait sur deux lignes. Bord droit à 68, soit 6 px avant la pastille. */
    left: -88px;
    top: 12px;
    width: 64px;
    text-align: right;
    font-family: "Barlow Semi Condensed", Barlow, sans-serif;
    font-weight: 600;
    font-size: 16px;
}

.arret .heure small { display: block; font-weight: 400; color: var(--encre-3); font-size: 12px; white-space: nowrap; }
/* La pastille est centrée sur le trait du rail : le trait occupe 78 à 80 px
   depuis le bord du rail, soit un centre à 79 ; l'arrêt commence à 92, d'où
   -18 px pour une pastille de 10. Elle était décalée de 2,5 px et mordait
   sur l'heure. */
.arret:after { content: ""; position: absolute; left: -18px; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: var(--planifie); }
.arret.encours:after { background: var(--encours); }
.arret.termine:after { background: var(--ok); }
.arret.echec:after { background: var(--ko); }

a.arret-lien { display: block; text-decoration: none; color: inherit; padding: 2px 8px; margin-left: -8px; }
a.arret-lien:hover { background: var(--creux); text-decoration: none; }
a.arret-lien:focus-visible { outline: 2px solid var(--planifie); }

.arret-titre { font-family: "Barlow Semi Condensed", Barlow, sans-serif; font-weight: 600; font-size: 17px; line-height: 1.2; }
.arret-adresse { color: var(--encre-2); font-size: 14px; }
.arret-pied { color: var(--encre-3); font-size: 13.5px; }

.trajet { display: flex; align-items: center; gap: 8px; padding: 7px 0; color: var(--encre-2); font-size: 14px; }
.trajet b { font-weight: 600; color: var(--encre); }
.trajet.longue { color: var(--encours); }
.trajet.longue b { color: var(--encours); }

/* --- fiche d'intervention -------------------------------------------------- */

.fiche { background: var(--table); border: 1px solid var(--trait); border-left: 3px solid var(--planifie); margin-bottom: 20px; }
.fiche.encours { border-left-color: var(--encours); }
.fiche.termine { border-left-color: var(--ok); }
.fiche.echec { border-left-color: var(--ko); }
.fiche.annule { border-left-color: var(--annule); }

.fiche > header { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--trait); background: var(--creux); flex-wrap: wrap; }
.fiche > header .creneau { font-family: "Barlow Semi Condensed", Barlow, sans-serif; font-weight: 600; font-size: 19px; }
.fiche > header .ref { margin-left: auto; color: var(--encre-2); font-size: 14px; }

.fiche .corps { padding: 14px 16px; }
.fiche .actions { padding: 14px 16px; border-top: 1px solid var(--trait); display: flex; gap: 12px; flex-wrap: wrap; }

dl.champs { margin: 0; display: grid; grid-template-columns: 200px 1fr; gap: 6px 16px; }
dl.champs dt { color: var(--encre-2); font-size: 14px; }
dl.champs dd { margin: 0; }
dl.champs dd b { font-weight: 600; }

.code-install {
    display: inline-block;
    font-family: "Barlow Semi Condensed", Barlow, sans-serif;
    font-size: 34px;
    font-weight: 600;
    letter-spacing: .12em;
    padding: 6px 16px;
    border: 2px solid var(--planifie);
    color: var(--planifie);
    border-radius: var(--r);
}

/* --- listes simples -------------------------------------------------------- */

table.liste { width: 100%; border-collapse: collapse; background: var(--table); border: 1px solid var(--trait); }
table.liste th {
    font-family: "Barlow Semi Condensed", Barlow, sans-serif;
    font-weight: 500; font-size: 15px; color: var(--encre-2); text-align: left;
    padding: 7px 10px; border-bottom: 1px solid var(--trait-fort); background: var(--creux); white-space: nowrap;
}
table.liste td { padding: 7px 10px; border-bottom: 1px solid var(--trait); vertical-align: top; }
table.liste tbody tr:last-child td { border-bottom: 0; }
table.liste tbody tr:hover td { background: var(--creux); }
table.liste .discret { color: var(--encre-2); }
table.liste tr.cliquable { cursor: pointer; }

/* --- messages -------------------------------------------------------------- */

.msg { padding: 10px 14px; border: 1px solid var(--trait-fort); border-left-width: 3px; border-radius: var(--r); margin-bottom: 16px; }
.msg--ok { border-color: var(--ok); color: var(--ok); }
.msg--err { border-color: var(--ko); color: var(--ko); }
.msg--info { border-color: var(--planifie); }
.msg--attention { border-color: var(--encours); color: var(--encours); }

.vide { padding: 28px 16px; text-align: center; color: var(--encre-2); background: var(--table); border: 1px solid var(--trait); }

.attente { display: none; color: var(--encre-2); font-size: 14px; }
.attente.visible { display: inline; }

/* --- propositions de créneaux ---------------------------------------------- */

.score { font-weight: 600; font-size: 15px; }
.score--haut { color: var(--ok); }
.score--moyen { color: var(--planifie); }
.score--bas { color: var(--encre-2); }
.jauge { display: block; width: 72px; height: 3px; background: var(--trait); margin-top: 3px; }
.jauge i { display: block; height: 3px; background: currentColor; }

/* --- champ mot de passe avec oeil ------------------------------------------ */

.champ-mdp { position: relative; display: flex; align-items: center; }
.champ-mdp input { padding-right: 40px; }

.oeil {
    position: absolute; right: 1px; top: 1px; bottom: 1px; width: 36px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: 0; border-left: 1px solid var(--trait);
    color: var(--encre-2); cursor: pointer; border-radius: 0 var(--r) var(--r) 0;
}

.oeil:hover { color: var(--planifie); background: var(--creux); }
.oeil:focus-visible { outline: 2px solid var(--planifie); outline-offset: -2px; }
.oeil svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.oeil[aria-pressed="true"] { color: var(--planifie); }

/* --- pied ------------------------------------------------------------------ */

.pied { color: var(--encre-3); font-size: 13px; padding: 18px 20px 36px; max-width: 760px; margin: 0 auto; text-align: center; }
.pied a { color: var(--encre-2); }
.pied p { margin: 0 0 8px; }
.pied-synchro { line-height: 1.5; }
.pied-marque {
    font-family: "Barlow Semi Condensed", Barlow, sans-serif;
    font-size: 14px;
    color: var(--encre-2);
    padding-top: 10px;
    border-top: 1px solid var(--trait);
    display: inline-block;
    margin: 4px auto 0;
}
.pied-marque a { color: var(--encre); font-weight: 600; }

/* --- adaptation téléphone --------------------------------------------------- */

@media (max-width: 820px) {
    .ecran { padding: 16px 12px 44px; }
    h1 { font-size: 25px; }
    .barre { gap: 10px; padding: 0 12px; }
    .barre nav { margin-left: 0; width: 100%; overflow-x: auto; }
    .barre .droite { font-size: 13px; }

    /* Le tableau de service devient une suite de journées empilées. */
    table.board, table.board tbody, table.board tr, table.board td { display: block; width: auto; }
    table.board thead { display: none; }
    table.board td.tech { border: 0; border-bottom: 1px solid var(--trait-fort); }
    table.board td { border: 0; border-bottom: 1px solid var(--trait); }
    table.board td:has(.libre) { display: none; }
    a.case { min-height: 0; }
    .case-creneau { display: block; font-weight: 600; color: var(--encre-2); font-size: 14px; }

    /* La gouttière des heures ne tient pas sur un téléphone : l'heure passe
       au-dessus de l'arrêt, et c'est le bord coloré qui porte l'état. */
    .rail { padding: 0 12px 10px; }
    .rail:before { display: none; }
    .arret { padding: 12px 0 12px 11px; border-left: 3px solid var(--planifie); }
    .arret:after { display: none; }
    .arret.encours { border-left-color: var(--encours); }
    .arret.termine { border-left-color: var(--ok); }
    .arret.echec { border-left-color: var(--ko); }
    .arret .heure { position: static; width: auto; text-align: left; font-size: 18px; margin-bottom: 2px; }
    .arret .heure small { display: inline; margin-left: 6px; }
    .trajet { padding-left: 11px; }
    .arret .actions { flex-direction: column; align-items: stretch; }
    .arret .actions .btn { justify-content: center; padding: 12px 16px; }
    dl.champs { grid-template-columns: 1fr; gap: 2px; }
    dl.champs dt { margin-top: 8px; }
}

@media print {
    .barre, .actions, .outils, .pied { display: none; }
    body { background: #fff; }
    .feuille, .fiche, table.board, table.liste { border-color: #999; }
}

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

/* Case barrée : le technicien est déclaré indisponible sur ce créneau. */
.libre.indispo {
    color: var(--annule);
    background: repeating-linear-gradient(135deg, transparent, transparent 7px,
                color-mix(in srgb, var(--annule) 11%, transparent) 7px,
                color-mix(in srgb, var(--annule) 11%, transparent) 14px);
}

/* Relais vers VAV Connect : ce que le technicien fait entre le démarrage et la clôture. */
.relais { margin-top: 8px; color: var(--encre-2); max-width: 46ch; }

/* --- glisser-déposer sur le tableau de service ----------------------------- */

a.case[draggable="true"] { cursor: grab; }
a.case.deplace { opacity: .4; cursor: grabbing; }

/* Cible possible : seulement les créneaux libres, pendant le glissement. */
.board.glisse td[data-libre] { outline: 1px dashed var(--trait-fort); outline-offset: -3px; }
.board td.cible { background: color-mix(in srgb, var(--planifie) 14%, transparent); }
.board td.cible .libre { color: var(--planifie); font-weight: 600; }

.aide-glisser { color: var(--encre-3); font-size: 13px; margin: -14px 0 18px; }

/* Code postal sous la commune, dans les cases du tableau de service. */
.case-cp { display: block; color: var(--encre-3); font-size: 13px; line-height: 1.2; }

/* Cases à cocher alignées, pour choisir les techniciens d'un export. */
.cases { display: flex; gap: 14px; flex-wrap: wrap; padding: 7px 0 0; }
.case-coche { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 15px; color: var(--encre); text-transform: none; letter-spacing: 0; }
.case-coche input { width: auto; accent-color: var(--planifie); }

/* --- liste déroulante avec recherche -------------------------------------- */

.choix { position: relative; }
.choix .choix-natif { position: absolute; opacity: 0; pointer-events: none; height: 0; width: 0; }

.choix-champ { width: 100%; cursor: text; }
.choix-champ::placeholder { color: var(--encre-3); }

.choix-liste {
    position: absolute;
    z-index: 30;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    max-height: 290px;
    overflow-y: auto;
    background: var(--table);
    border: 1px solid var(--trait-fort);
    border-radius: var(--r);
    box-shadow: 0 6px 18px rgba(16, 22, 28, .14);
}

:root[data-theme="dark"] .choix-liste,
:root:not([data-theme="light"]) .choix-liste { box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }

.choix-option { padding: 7px 10px; cursor: pointer; line-height: 1.35; border-bottom: 1px solid var(--trait); }
.choix-option:last-child { border-bottom: 0; }
.choix-option.active { background: var(--creux); }
.choix-option.choisie { font-weight: 600; }
.choix-option.choisie:before { content: "› "; color: var(--planifie); }
.choix-vide { padding: 10px; color: var(--encre-2); }

/* Le créneau conseillé, sorti de la liste pour être lu en premier. */
.conseille {
    border: 1px solid var(--planifie);
    border-left-width: 3px;
    border-radius: var(--r);
    background: color-mix(in srgb, var(--planifie) 7%, transparent);
    padding: 12px 14px;
    margin-bottom: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.conseille .btn { margin-left: auto; }
table.liste tr.conseillee td { background: color-mix(in srgb, var(--planifie) 7%, transparent); }

.bloc-reglages { padding: 14px 16px 16px; background: var(--table); border: 1px solid var(--trait); border-top: 0; }

/* Les boutons d'une section ne collent pas au bloc qui les précède :
   une barre d'actions, détachée, avec de l'air autour. */
.service > .actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin: 16px 0 0;
    padding: 0;
    border: 0;
}
.service + .service,
form + form .service { margin-top: 30px; }

/* --- photos d'intervention ------------------------------------------------ */

.photos { border-top: 1px solid var(--trait); padding: 14px 16px; }
.photos h3 { font-size: 16px; margin: 0 0 4px; }
.photos p { color: var(--encre-2); font-size: 14px; margin: 0 0 10px; }
.photos input[type=file] { padding: 9px; background: var(--creux); }
.photos .ligne-photos { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.photos-etat { font-size: 14px; color: var(--encre-2); }
.photos-etat.ok { color: var(--ok); }
.photos-etat.err { color: var(--ko); }
