/* WebAssur-PHP — Front-office (portail agence) — thème FO (#2563eb) */
:root {
  --fo-primary: #2563eb;
  --fo-primary-dark: #1d4ed8;
  --fo-accent: #dbeafe;
  --fo-text: #1e293b;
  --fo-muted: #64748b;
  --fo-bg: #f8fafc;
  --fo-card: #ffffff;
  --fo-border: #e2e8f0;
  --fo-header-bg: #ffffff;
  --fo-header-text: #1e293b;
  --radius: 8px;
  /* Tableaux : fond de l'en-tête + lignes alternées (teintes dérivées du thème, cf. @supports plus bas) */
  --fo-table-head-bg: var(--fo-border);
  --fo-row-alt: #eef2f7;
  --fo-row-hover: var(--fo-border);
}

/* Teintes de tableau dérivées de la couleur primaire du thème FO.
   Repli sur des gris clairs si color-mix() indisponible. */
@supports (background: color-mix(in srgb, red 10%, white)) {
  :root {
    --fo-table-head-bg: color-mix(in srgb, var(--fo-primary) 13%, var(--fo-card));
    --fo-row-alt: color-mix(in srgb, var(--fo-primary) 6%, var(--fo-card));
    --fo-row-hover: color-mix(in srgb, var(--fo-primary) 14%, var(--fo-card));
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Taille de police de base (thème FO → --font-size). Repli = 100% = taille de police par
   défaut du navigateur → aucun changement, aucun épinglage, sans thème. Tout le FO étant exprimé en rem, cette seule valeur
   met la typographie à l'échelle du portail. */
html { font-size: var(--font-size, 100%); }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; background: var(--fo-bg); color: var(--fo-text); min-height: 100vh; }

.fo-header {
  background: var(--fo-header-bg); border-bottom: 1px solid var(--fo-border);
  padding: 0 1.25rem; height: 60px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 40;
}
.fo-brand { font-size: 1.15rem; font-weight: 700; color: var(--fo-primary); letter-spacing: 0.03em; }
.fo-nav { display: flex; gap: 0.25rem; align-items: center; flex-wrap: wrap; }
.fo-nav a { color: var(--fo-muted); text-decoration: none; padding: 0.4rem 0.7rem; font-size: 0.88rem; border-radius: 6px; }
.fo-nav a:hover { background: var(--fo-bg); color: var(--fo-text); }
.fo-nav a.active { background: var(--fo-accent); color: var(--fo-primary); font-weight: 600; }
.fo-user { display: flex; align-items: center; gap: 0.6rem; }
.fo-user .chip { display: flex; align-items: center; gap: 0.5rem; }
.fo-user .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--fo-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.8rem; }
.fo-user .name { font-size: 0.85rem; font-weight: 600; }
.fo-user .role { font-size: 0.7rem; color: var(--fo-muted); }
.fo-logout { color: var(--fo-muted); text-decoration: none; font-size: 0.8rem; }
.fo-logout:hover { color: var(--fo-primary); }
.fo-backbo { background: var(--fo-primary, #379DC3); color: #fff; font-size: 0.8rem; font-weight: 600; padding: 0.4rem 0.7rem; border-radius: 6px; text-decoration: none; white-space: nowrap; }
.fo-backbo:hover { filter: brightness(1.08); }

.fo-main { max-width: var(--max-width, 1400px); margin: 0 auto; padding: 1.5rem 1.25rem; }
.fo-main--wide { max-width: 100%; }
.fo-page-title { font-size: var(--font-size-title, 1.4rem); font-weight: 700; margin: 0 0 1.25rem; }

.fo-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.fo-stat-card { background: var(--fo-card); border: 1px solid var(--fo-border); border-radius: var(--radius); padding: 1.1rem; }
.fo-stat-label { font-size: 0.78rem; color: var(--fo-muted); margin-bottom: 0.3rem; }
.fo-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--fo-primary-dark); }

.fo-card { background: var(--fo-card); border: 1px solid var(--fo-border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; }
.fo-card h2 { font-size: 1.05rem; margin: 0 0 1rem; }

.fo-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.fo-table th, .fo-table td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid var(--fo-border); }
.fo-table th { color: var(--fo-muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; }
/* En-tête : fond de cellule contrasté (teinte du thème) + libellé sur une seule ligne */
.fo-table thead th { background: var(--fo-table-head-bg); color: var(--fo-text); font-weight: 700; white-space: nowrap; border-bottom: 2px solid var(--fo-border); }
.fo-table tbody tr:hover { background: #f8fafc; }
.fo-table-wrap { overflow-x: auto; }

/* Lignes alternées (« zébrage ») — à poser sur le <table> : class="fo-table table-zebra" */
.table-zebra tbody tr:nth-child(even) { background: var(--fo-row-alt); }
.table-zebra tbody tr:hover { background: var(--fo-row-hover); }

/* ─── Liste des contrats : largeurs de colonnes + poignées de redimensionnement ─── */
/* Cellules toujours sur une ligne (le € reste collé au montant, le n° ne se coupe pas) */
#fo-contrats-table :is(th,td)[data-col="numero"],
#fo-contrats-table :is(th,td)[data-col="prix_voyage"],
#fo-contrats-table :is(th,td)[data-col="prime"],
#fo-contrats-table :is(th,td)[data-col="prime_net"],
#fo-contrats-table :is(th,td)[data-col="incentive"] { white-space: nowrap; }
/* Colonnes élargies : n° de contrat, garantie (nom du produit), souscripteur */
#fo-contrats-table :is(th,td)[data-col="numero"] { min-width: 10rem; }
#fo-contrats-table :is(th,td)[data-col="garantie"] { min-width: 16rem; }
#fo-contrats-table :is(th,td)[data-col="souscripteur"] { min-width: 12rem; }
#fo-contrats-table :is(th,td)[data-col="prix_voyage"] { min-width: 8.5rem; }
#fo-contrats-table :is(th,td)[data-col="prime"],
#fo-contrats-table :is(th,td)[data-col="prime_net"],
#fo-contrats-table :is(th,td)[data-col="incentive"] { min-width: 6.5rem; }

/* Liste des factures FO — mêmes règles par colonne que les contrats */
#fo-factures-table :is(th,td)[data-col="numero"],
#fo-factures-table :is(th,td)[data-col="date_facture"],
#fo-factures-table :is(th,td)[data-col="emission"],
#fo-factures-table :is(th,td)[data-col="date_echeance"],
#fo-factures-table :is(th,td)[data-col="nb_contrats"],
#fo-factures-table :is(th,td)[data-col="montant"],
#fo-factures-table :is(th,td)[data-col="montant_net"] { white-space: nowrap; }
#fo-factures-table :is(th,td)[data-col="numero"] { min-width: 10rem; }
#fo-factures-table :is(th,td)[data-col="montant"],
#fo-factures-table :is(th,td)[data-col="montant_net"] { min-width: 6.5rem; }

/* Poignées de redimensionnement des colonnes (bord droit des en-têtes) — composant partagé
   BO/FO (assets/js/colonnes-tableau.js). La classe .table-cols se pose sur la balise <table>. */
.table-cols thead th { position: relative; }
.table-cols thead th .col-resizer {
  position: absolute; top: 0; right: 0; width: 11px; height: 100%;
  cursor: col-resize; touch-action: none; user-select: none;
  display: flex; align-items: center; justify-content: center;
}
.table-cols thead th .col-resizer::after {
  content: ''; width: 2px; height: 55%; border-radius: 1px;
  background: var(--fo-border); transition: background 0.15s;
}
.table-cols thead th .col-resizer:hover::after,
.table-cols thead th .col-resizer:focus-visible::after,
.table-cols thead th .col-resizer.dragging::after { background: var(--fo-primary); }
.table-cols thead th .col-resizer:focus-visible { outline: none; }
body.col-resizing, body.col-resizing * { cursor: col-resize !important; user-select: none !important; }
/* ─── Vue cartes (liste des contrats) + bascule tableau/cartes ─── */
.seg-ctrl { display: inline-flex; border: 1px solid var(--fo-border); border-radius: 8px; overflow: hidden; }
.seg-ctrl button { border: none; background: var(--fo-card); color: var(--fo-muted); padding: 7px 13px; font-size: 0.83rem; cursor: pointer; font-weight: 600; }
.seg-ctrl button.on { background: var(--fo-primary); color: #fff; }
.seg-ctrl button + button { border-left: 1px solid var(--fo-border); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.c-card { background: var(--fo-card); border: 1px solid var(--fo-border); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; }
.c-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 8px; }
.c-num { font-weight: 700; font-size: 0.95rem; }
.c-num a { color: var(--fo-primary); text-decoration: none; }
.c-agence { font-size: 0.72rem; color: var(--fo-muted); padding: 0 14px; }
.c-body { padding: 8px 14px; flex: 1; }
.c-sub { font-weight: 600; font-size: 1.02rem; }
.c-dest { color: var(--fo-muted); font-size: 0.88rem; margin-top: 2px; }
.c-meta { margin-top: 10px; font-size: 0.82rem; color: var(--fo-muted); line-height: 1.7; }
.c-meta b { color: var(--fo-text); font-weight: 600; }
.c-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--fo-border); padding: 10px 14px; background: var(--fo-bg); }
.c-prime { font-size: 1.05rem; font-weight: 700; color: var(--fo-primary-dark); }
.c-prime small { font-size: 0.7rem; color: var(--fo-muted); font-weight: 500; display: block; margin-top: 2px; }
.c-actions { display: flex; gap: 6px; align-items: center; }
.c-actions .fo-btn { font-size: 0.78rem; padding: 4px 10px; }
/* Slider horizontal sous les tableaux larges (injecté par le footer FO).
   Quand actif, il remplace la scrollbar native du conteneur. */
.fo-table-wrap.fo-hscroll-active { scrollbar-width: none; }
.fo-table-wrap.fo-hscroll-active::-webkit-scrollbar { display: none; }
.fo-hscroll { display: none; }
.fo-hscroll.fo-hscroll-active {
  display: block; position: relative; height: 14px; margin: 0.7rem auto 0.25rem;
  background: var(--fo-border, #e2e8f0); border-radius: 999px;
  cursor: pointer; touch-action: none; user-select: none;
}
.fo-hscroll:focus-visible { outline: 2px solid var(--fo-primary, #2563eb); outline-offset: 2px; }
.fo-hscroll-thumb {
  position: absolute; top: 2px; bottom: 2px; left: 0; min-width: 28px;
  background: var(--fo-primary, #2563eb); border-radius: 999px; opacity: 0.7;
}
.fo-hscroll:hover .fo-hscroll-thumb, .fo-hscroll-thumb:hover { opacity: 1; }

.fo-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.9rem; border: 1px solid var(--fo-border); border-radius: var(--radius); background: #fff; color: var(--fo-text); text-decoration: none; font-size: 0.85rem; cursor: pointer; }
.fo-btn-primary { background: var(--fo-primary); border-color: var(--fo-primary); color: #fff; }
.fo-btn-primary:hover { background: var(--fo-primary-dark); }
.fo-btn-success { background: #16a34a; border-color: #16a34a; color: #fff; }
.fo-btn-secondary { background: #fff; }
.fo-btn-secondary:hover { background: #f1f5f9; }
.fo-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── Boutons icône FO — équivalent de .icon-btn du BO
   (le FO ne charge QUE fo.css : une classe .icon-btn du BO n'a aucun effet ici) ─── */
.fo-icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--fo-border); background: #fff;
  color: var(--fo-text); line-height: 1; cursor: pointer; text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.fo-icon-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.fo-icon-btn:hover { transform: translateY(-2px); background: #f1f5f9; border-color: #cbd5e1;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.12); text-decoration: none; }
.fo-icon-btn:active { transform: translateY(0); }
.fo-icon-btn:focus-visible { outline: 2px solid var(--fo-primary); outline-offset: 2px; }
.fo-icon-btn-accent { color: var(--fo-primary); }
.fo-icon-btn-accent:hover { background: #f0f9ff; border-color: #bae6fd; }
.fo-icon-btn-danger { color: #dc2626; }
.fo-icon-btn-danger:hover { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }

/* Icône dans un LIEN TEXTE (colonnes d'actions sans classe bouton) :
   🔴 sans contrainte de taille, un SVG inline prend 100 % de la cellule (~180 px vécu).
   Toute nouvelle icône posée dans un lien nu doit porter cette classe. */
.fo-lien-icone { display: inline-flex; align-items: center; gap: 0.3rem; }
.fo-lien-icone svg { width: 15px; height: 15px; flex-shrink: 0; }

.fo-form-group { margin-bottom: 0.9rem; }
.fo-form-group label { display: block; font-size: 0.82rem; color: var(--fo-muted); margin-bottom: 0.3rem; }
.fo-form-control { width: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--fo-border); border-radius: var(--radius); font-size: 0.92rem; }
.fo-form-control:focus { outline: 2px solid var(--fo-primary); border-color: var(--fo-primary); }
.fo-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
.fo-form-grid > .fo-full { grid-column: 1 / -1; }
/* Barre d'actions FO : alignée à droite, comme le BO. */
.fo-form-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; justify-content: flex-end; }

/* Ligne de participant du wizard (grille responsive) */
.part-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.5rem; margin-bottom: 0.5rem; align-items: end; }
.part-row .fo-form-group { min-width: 0; }
.part-row .fo-btn { align-self: end; justify-self: end; white-space: nowrap; }
/* Inputs compacts pour les petits champs (naissance, prix voyage) : la ligne ne déborde pas */
.part-row input[type="date"],
.part-row .p-prix { min-width: 0; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .fo-header { height: auto; min-height: 56px; flex-wrap: wrap; padding: 0.5rem 0.75rem; }
  .fo-brand { font-size: 1rem; }
  .fo-nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding: 0.25rem 0 0.5rem; }
  .fo-nav a { white-space: nowrap; flex-shrink: 0; }
  .fo-main { padding: 1rem 0.75rem; }
  .steps { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .step { flex-shrink: 0; }
  .part-row { grid-template-columns: 1fr 1fr; }
  .fo-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .fo-user .name, .fo-user .role { display: none; }
  .part-row { grid-template-columns: 1fr; }
  .fo-form-control { font-size: 16px; }
  .fo-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .fo-page-title { font-size: 1.2rem; }
  .fo-card, .step-content { padding: 1rem; }
  .fo-form-actions { flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; }
  .fo-form-actions .fo-btn, .fo-form-actions .btn { width: 100%; justify-content: center; }
  .step-nav { flex-wrap: wrap; gap: 0.5rem; }
  .step-nav .fo-btn { flex: 1; justify-content: center; }
}

.fo-alert { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.88rem; }
.fo-alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.fo-alert-ok { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }

.badge { display: inline-block; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-gray { background: #f1f5f9; color: #475569; }
.badge-violet { background: #ede9fe; color: #5b21b6; }

/* Signalements — fil d'actions côté agence (21/10/2026) */
.fo-sig-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: baseline; margin-bottom: 0.6rem; }
.fo-sig-head h2 { margin: 0; font-size: 1rem; }
.fo-sig-meta { color: var(--fo-muted); font-size: 0.8rem; }
.fo-sig-fil { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.6rem; }
.fo-sig-item { border: 1px solid var(--fo-border); border-left: 3px solid var(--fo-primary); border-radius: 6px; padding: 0.55rem 0.8rem; background: var(--fo-card); }
.fo-sig-item-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: baseline; font-size: 0.86rem; }
.fo-sig-date { color: var(--fo-muted); font-size: 0.76rem; }
.fo-sig-statut { margin: 0.3rem 0 0.15rem; font-size: 0.82rem; }
.fo-sig-msg { margin-top: 0.3rem; line-height: 1.5; font-size: 0.9rem; }
.fo-sig-note { margin: 0.2rem 0 0; font-size: 0.76rem; color: var(--fo-muted); }

/* ── Wizard ── */
.steps { display: flex; gap: 0; margin-bottom: 1.5rem; border-bottom: 2px solid var(--fo-border); flex-wrap: wrap; }
.step { padding: 0.6rem 0.9rem; font-size: 0.8rem; color: var(--fo-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.step.active { color: var(--fo-primary); border-bottom-color: var(--fo-primary); font-weight: 600; }
.step.done { color: #16a34a; }
.step-content { background: var(--fo-card); border: 1px solid var(--fo-border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; }
.step-nav { display: flex; justify-content: space-between; margin-top: 1rem; }

.login-wrap-fo { display: flex; min-height: 100vh; align-items: center; justify-content: center; background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #2563eb 100%); padding: 1rem; }
.login-card-fo { background: #fff; border-radius: 12px; padding: 2.25rem; width: 100%; max-width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }

/* Champ obligatoire : astérisque rouge (rendu homogène BO/FO) */
.ast-requis { color: #dc2626; font-weight: 600; }

/* Toggle (règle Darek : jamais de case à cocher — toujours un toggle) */
.switch { position: relative; display: inline-block; width: 40px; height: 22px; vertical-align: middle; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider { position: absolute; cursor: pointer; inset: 0; background: #cbd5e1; border-radius: 22px; transition: .2s; }
.switch-slider:before { content: ""; position: absolute; height: 16px; width: 16px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .switch-slider { background: var(--primary, #2563eb); }
.switch input:checked + .switch-slider:before { transform: translateX(18px); }

/* ─── Vignettes de tableau de bord : personnalisation (FO) ─── */
.dash-perso { margin: 0 0 1.25rem; border: 1px solid var(--border, var(--fo-border, #e5e7eb)); border-radius: var(--radius, 10px); background: var(--bg, var(--fo-card, #fff)); }
.dash-perso > summary { cursor: pointer; padding: .65rem .9rem; font-size: .88rem; font-weight: 600; color: var(--text, var(--fo-text, #1a1a1a)); list-style: none; display: flex; align-items: center; gap: .4rem; }
.dash-perso > summary::-webkit-details-marker { display: none; }
.dash-perso > summary::after { content: '▾'; margin-left: auto; opacity: .6; }
.dash-perso[open] > summary::after { content: '▴'; }
.dash-perso-form { padding: 0 .9rem .9rem; }
.dash-perso-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.dash-perso-item { display: flex; align-items: center; gap: .5rem; padding: .35rem .45rem; border: 1px solid var(--fo-border, #e5e7eb); border-radius: 8px; }
.dash-perso-label { display: flex; align-items: center; gap: .55rem; flex: 1; cursor: pointer; font-size: .88rem; color: var(--fo-text, #1a1a1a); }
.dash-perso-label small { display: block; font-weight: 400; font-size: .75rem; color: var(--fo-muted, #6b7280); }
.dash-perso-label input { flex-shrink: 0; }
.dash-perso-move { display: flex; gap: .2rem; }
.dash-perso-move button { border: 1px solid var(--fo-border, #e5e7eb); background: transparent; border-radius: 6px; width: 27px; height: 27px; cursor: pointer; color: inherit; line-height: 1; font-size: .85rem; }
.dash-perso-move button:hover { background: rgba(127, 127, 127, .12); }
.dash-perso-actions { display: flex; align-items: center; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.dash-perso-btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--fo-border, #e5e7eb); background: transparent; color: var(--fo-text, #1a1a1a); border-radius: 8px; padding: .45rem .9rem; font-size: .85rem; cursor: pointer; font-family: inherit; }
.dash-perso-btn-primary { background: var(--fo-primary, #2563eb); border-color: var(--fo-primary, #2563eb); color: #fff; }
.dash-perso-note { font-size: .75rem; color: var(--fo-muted, #6b7280); }
.dash-vignette-suffix { font-size: .75em; font-weight: 500; color: var(--fo-muted, #6b7280); }

/* ─── Panneau « Configuration du produit » (FO, lecture seule) ───
   Ouvert depuis l'étape 1 du wizard et la fiche contrat. Le bouton et la fenêtre
   sont fournis par fo/includes/produit_config.php ; aucune donnée interne BO
   (commission compagnie) n'est affichée. */
.fo-cfg-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 9700; display: none; align-items: center; justify-content: center; padding: 1rem; }
.fo-cfg-backdrop.open { display: flex; }
.fo-cfg { background: var(--fo-card); border: 1px solid var(--fo-border); border-radius: var(--radius); width: 100%; max-width: 780px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 18px 50px rgba(15,23,42,.25); }
.fo-cfg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.1rem 1.35rem; border-bottom: 1px solid var(--fo-border); background: var(--fo-bg); }
.fo-cfg-eyebrow { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fo-muted); font-weight: 700; }
.fo-cfg-head h2 { margin: .2rem 0 .15rem; font-size: 1.1rem; }
.fo-cfg-sub { font-size: .82rem; color: var(--fo-muted); }
.fo-cfg-head-actions { display: flex; gap: .5rem; align-items: center; flex-shrink: 0; }
.fo-cfg-close { border: 0; background: transparent; color: var(--fo-text); font-size: 1rem; line-height: 1; cursor: pointer; padding: .35rem .45rem; border-radius: 4px; }
.fo-cfg-close:hover { background: var(--fo-border); }
.fo-cfg-body { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; padding: 1.25rem 1.35rem; overflow-y: auto; }
.fo-cfg-bloc h3 { margin: 0 0 .55rem; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--fo-muted); }
.fo-cfg-dl { margin: 0; display: grid; gap: .3rem; }
.fo-cfg-dl > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .86rem; padding: .18rem 0; border-bottom: 1px dashed var(--fo-border); }
.fo-cfg-dl > div:last-child { border-bottom: 0; }
.fo-cfg-dl dt { color: var(--fo-muted); margin: 0; }
.fo-cfg-dl dd { margin: 0; text-align: right; font-weight: 500; }
.fo-cfg-badge { display: inline-block; padding: .18rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.fo-cfg-badge-green { background: #dcfce7; color: #166534; }
.fo-cfg-badge-grey { background: var(--fo-border); color: var(--fo-text); }
.fo-cfg-badge-amber { background: #fef3c7; color: #92400e; }
.fo-cfg-callout { margin-top: .6rem; padding: .6rem .75rem; border-radius: 6px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: .8rem; line-height: 1.35; }
.fo-cfg-tarifs { width: 100%; border-collapse: collapse; margin-top: .6rem; font-size: .8rem; }
.fo-cfg-tarifs th, .fo-cfg-tarifs td { padding: .4rem .5rem; border-bottom: 1px solid var(--fo-border); text-align: right; }
.fo-cfg-tarifs th:first-child, .fo-cfg-tarifs td:first-child { text-align: left; }
.fo-cfg-tarifs thead th { font-size: .68rem; text-transform: uppercase; letter-spacing: .03em; color: var(--fo-muted); background: var(--fo-table-head-bg); }
.fo-cfg-ext { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.fo-cfg-ext li { display: flex; justify-content: space-between; gap: 1rem; font-size: .84rem; padding: .2rem 0; border-bottom: 1px dashed var(--fo-border); }
.fo-cfg-ext-prix { color: var(--fo-muted); white-space: nowrap; }
.fo-cfg-empty { font-size: .84rem; color: var(--fo-muted); font-style: italic; margin: 0; }
.fo-cfg-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.35rem; border-top: 1px solid var(--fo-border); background: var(--fo-bg); }
.fo-cfg-hint { font-size: .76rem; color: var(--fo-muted); }
.fo-cfg-trigger { padding: .25rem .6rem; font-size: .78rem; }
@media (max-width: 720px) {
  .fo-cfg-body { grid-template-columns: 1fr; }
  .fo-cfg-foot { flex-wrap: wrap; }
}

/* En-tête « Info produit » : statut + assureur en évidence, bouton d'info discret */
.fo-cfg-id { display: flex; align-items: center; gap: .45rem; margin-top: .3rem; font-size: .9rem; flex-wrap: wrap; }
.fo-cfg-id-sep { color: var(--fo-muted); }
.fo-cfg-assureur { font-weight: 600; color: var(--fo-text); }
.fo-cfg-info { display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--fo-primary); cursor: pointer; padding: 0 .15rem; margin-left: .35rem; vertical-align: middle; }
.fo-cfg-info svg { width: 15px; height: 15px; }
.fo-cfg-info:hover { opacity: .7; }

/* Fil des signalements (FO) : images collées dans une réponse */
.fo-sig-msg img { max-width: 100%; height: auto; border: 1px solid var(--fo-border); border-radius: 6px; margin: .4rem 0; display: block; }
.fo-sig-msg p { margin: 0 0 .4rem; }

/* Lignes PAX « en attente » (nom/prénom X) — repérage avant correction (demande Darek 11/11/2026) */
.part-row.pax-attente { background: #fffbeb; box-shadow: inset 3px 0 0 #f59e0b; }
