/* ==========================================================================
   SONEB — Demande de branchement & suivi
   ========================================================================== */

:root {
    --bleu: #0b6ef6;
    --bleu-fonce: #0a58c8;
    --bleu-nuit: #0f1f6b;
    --bleu-marine: #0b4aa2;
    --bleu-pale: #eaf3ff;
    --bleu-pale-2: #f4f8fe;
    --bleu-bord: #d6e5fa;
    --texte: #1f2a3d;
    --texte-doux: #5c6b80;
    --gris-bord: #d9e1ec;
    --gris-fond: #f2f4f7;
    --gris-bouton: #e6e9ee;
    --vert: #1f9d55;
    --vert-pale: #e7f6ec;
    --orange: #f08c00;
    --jaune-pale: #fff8e1;
    --rouge: #d93025;
    --rouge-pale: #fdecea;
    --footer: #5c6a78;
    --footer-bas: #46535f;
    --rayon: 10px;
    --ombre: 0 2px 10px rgba(16, 38, 84, .06);
    --ombre-forte: 0 8px 24px rgba(16, 38, 84, .12);
    --police-titre: "Montserrat", system-ui, sans-serif;
    --police: "Open Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--police);
    font-size: 15px;
    line-height: 1.5;
    color: var(--texte);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--bleu); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--police-titre); margin: 0; color: var(--bleu-nuit); }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- En-tête ---------- */
.site-header { background: #fff; border-bottom: 1px solid #edf0f4; position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--bleu-nuit); text-decoration: none !important; flex-shrink: 0; }
.logo svg { width: 42px; height: 48px; }
.logo strong { display: block; font-family: var(--police-titre); font-size: 22px; font-weight: 800; letter-spacing: .5px; line-height: 1.05; }
.logo small { display: block; font-size: 12px; color: var(--texte-doux); }
.nav-principale { display: flex; gap: 22px; flex: 1; }
.nav-principale a { color: var(--texte); font-family: var(--police-titre); font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-principale a:hover { color: var(--bleu); text-decoration: none; }
.nav-principale a.actif { color: var(--bleu); border-bottom-color: var(--bleu); }
.recherche { display: flex; gap: 8px; }
.recherche input { width: 180px; height: 40px; border: 1px solid var(--gris-bord); border-radius: 4px; padding: 0 12px; font: inherit; }
.recherche button { height: 40px; padding: 0 22px; background: var(--bleu-marine); color: #fff; border: 0; border-radius: 4px; font: 600 14px var(--police-titre); cursor: pointer; }
.recherche button:hover { background: var(--bleu-nuit); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 22px; color: var(--bleu-nuit); cursor: pointer; }

/* ---------- Fil d'Ariane ---------- */
.fil-ariane { background: #e8ecf1; font-size: 14px; }
.fil-ariane ol { list-style: none; margin: 0; padding: 9px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fil-ariane li { display: flex; align-items: center; gap: 6px; color: var(--texte-doux); }
.fil-ariane li + li::before { content: "›"; color: #8a96a8; }
.fil-ariane a { color: var(--texte); }

/* ---------- Mise en page avec colonne latérale ---------- */
.page { padding: 26px 0 40px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 36px; align-items: start; }
.page-titre { font-size: 32px; font-weight: 800; margin-bottom: 18px; }
.lateral { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 96px; }
.lateral .connexion { font-weight: 600; font-size: 14px; }

/* Charte des valeurs (reconstituée en CSS si l'image n'est pas fournie) */
.charte { border-radius: 4px; overflow: hidden; background: linear-gradient(180deg, #0a7fd6 0%, #1a9bf0 45%, #0b6fc5 100%); color: #fff; text-align: center; font-family: var(--police-titre); padding-bottom: 14px; }
.charte-entete { padding: 14px 10px 26px; background: radial-gradient(120% 70% at 50% 0%, #0b5fb0 0%, #0a7fd6 70%); border-bottom-left-radius: 50% 16px; border-bottom-right-radius: 50% 16px; }
.charte-entete h3 { color: #ffb020; font-size: 15px; font-weight: 800; line-height: 1.15; text-transform: uppercase; }
.charte-entete p { margin: 8px 0 0; font-size: 10px; font-weight: 700; text-transform: uppercase; line-height: 1.2; }
.charte-entete p b { display: block; font-size: 17px; font-style: italic; }
.charte-valeurs { list-style: none; margin: 10px 0 0; padding: 0 8px; }
.charte-valeurs li { width: 112px; height: 112px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #1d8fe0, #0b4f9c 75%); border: 2px solid rgba(255,255,255,.35); display: flex; flex-direction: column; justify-content: center; align-items: center; font-size: 12.5px; font-weight: 700; line-height: 1.15; padding: 8px; box-shadow: 0 4px 10px rgba(0,0,0,.18); }
.charte-valeurs li:nth-child(odd) { margin-left: auto; }
.charte-valeurs li + li { margin-top: -22px; }
.charte-valeurs span { font-size: 22px; font-weight: 800; line-height: 1; margin-bottom: 2px; }
.charte-valeurs li:nth-child(1) span, .charte-valeurs li:nth-child(3) span, .charte-valeurs li:nth-child(4) span { color: #7ed957; }
.charte-valeurs li:nth-child(2) span { color: #ff8a1f; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 6px; border: 1.5px solid transparent; font: 700 16px var(--police-titre); cursor: pointer; text-decoration: none !important; transition: background .15s, box-shadow .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primaire { background: var(--bleu); color: #fff; box-shadow: 0 4px 12px rgba(11,110,246,.25); }
.btn-primaire:hover { background: var(--bleu-fonce); }
.btn-contour { background: #fff; color: var(--bleu); border-color: var(--bleu); }
.btn-contour:hover { background: var(--bleu-pale); }
.btn-gris { background: var(--gris-bouton); color: var(--texte); }
.btn-gris:hover { background: #d9dee6; }
.btn-petit { min-height: 36px; padding: 0 14px; font-size: 13.5px; font-weight: 600; border-radius: 6px; }
.btn-leger { background: var(--bleu-pale); color: var(--bleu-fonce); }
.btn-leger:hover { background: #dcebff; }
.btn-bloc { width: 100%; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }

/* ---------- Accueil ---------- */
.hero { position: relative; height: 380px; overflow: hidden; background: #0d3a6b; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .9s ease; display: flex; align-items: center; }
.hero-slide.actif { opacity: 1; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,25,60,.55) 0%, rgba(5,25,60,.15) 60%, transparent 100%); }
.hero-slide .container { position: relative; color: #fff; }
.hero h1 { color: #fff; font-size: 52px; font-weight: 800; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero p { font: 600 19px/1.45 var(--police-titre); max-width: 440px; margin: 12px 0 0; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero-points { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.hero-points button { width: 20px; height: 4px; border-radius: 2px; border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; }
.hero-points button.actif { background: #fff; width: 28px; }
.hero-defaut-1 { background-image: linear-gradient(180deg, #7fb3e6 0%, #b8d6f2 48%, #6c8f3f 49%, #4f7a2c 100%); }
.hero-defaut-2 { background-image: linear-gradient(160deg, #0b4aa2 0%, #1a9bf0 100%); }
.hero-defaut-3 { background-image: linear-gradient(160deg, #0f1f6b 0%, #0b6ef6 100%); }
.hero-defaut-4 { background-image: linear-gradient(160deg, #0a7fd6 0%, #36b37e 100%); }

.raccourcis { background: var(--gris-fond); padding: 22px 0 28px; }
.raccourcis .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.raccourci { background: #fff; border-radius: 8px; box-shadow: var(--ombre); padding: 22px 16px; text-align: center; color: var(--bleu-fonce); font: 500 16px/1.3 var(--police-titre); display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none !important; transition: transform .15s, box-shadow .15s; min-height: 130px; justify-content: center; }
.raccourci:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); }
.raccourci .pastille { width: 50px; height: 50px; border-radius: 50%; background: #e9eef5; display: grid; place-items: center; font-size: 24px; color: var(--bleu); }
.raccourci .pastille.fb { background: var(--bleu); color: #fff; }

/* ---------- Page « Demander un compteur » ---------- */
.intro { font-size: 17px; max-width: 640px; }
.liste-pieces { font-size: 17px; margin: 18px 0 26px; padding-left: 0; list-style: none; max-width: 680px; }
.liste-pieces li { display: flex; gap: 14px; padding: 6px 0; }
.liste-pieces li::before { content: "•"; font-size: 20px; line-height: 1.2; padding: 0 20px; }
.cartes-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 600px; }
.cartes-actions .btn { min-height: 52px; justify-content: flex-start; padding: 0 26px; font-size: 16px; }
.cartes-actions .btn .fa-arrow-right { margin-left: auto; }
.encart { display: flex; gap: 14px; align-items: flex-start; background: var(--bleu-pale-2); border: 1px solid var(--bleu-bord); border-radius: var(--rayon); padding: 16px 18px; margin-top: 28px; max-width: 680px; font-size: 14px; color: var(--texte-doux); }
.encart i { color: var(--bleu); font-size: 18px; margin-top: 2px; }
.encart strong { color: var(--texte); }

/* ---------- Stepper ---------- */
.stepper { list-style: none; margin: 0 0 18px; padding: 0 10px; display: grid; grid-template-columns: repeat(5, 1fr); }
.stepper li { position: relative; text-align: center; font-size: 13px; color: var(--texte-doux); line-height: 1.25; }
.stepper li::before { content: ""; position: absolute; top: 15px; left: calc(-50% + 22px); right: calc(50% + 22px); height: 2px; background: var(--gris-bord); }
.stepper li:first-child::before { display: none; }
.stepper li.fait::before, .stepper li.actif::before { background: var(--bleu); }
.stepper button { all: unset; cursor: default; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.stepper .num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #e8ecf2; color: var(--texte); font: 700 13px var(--police-titre); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--gris-bord); transition: all .2s; }
.stepper li.actif .num { background: var(--bleu); color: #fff; box-shadow: 0 0 0 4px rgba(11,110,246,.18); }
.stepper li.actif { color: var(--bleu-fonce); font-weight: 700; }
.stepper li.fait .num { background: var(--bleu-pale); color: var(--bleu); box-shadow: 0 0 0 1px var(--bleu-bord); }
.stepper li.fait button { cursor: pointer; }
.stepper li.fait button:hover .num { background: var(--bleu); color: #fff; }

/* ---------- Carte formulaire ---------- */
.carte { background: #fff; border: 1px solid #e6edf6; border-radius: 12px; box-shadow: var(--ombre); padding: 22px 26px 24px; }
.carte-teinte { background: linear-gradient(180deg, var(--bleu-pale-2) 0%, #fff 120px); }
.carte-entete { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; position: relative; }
.carte-entete h2 { font-size: 21px; font-weight: 700; }
.carte-entete p { margin: 2px 0 0; color: var(--texte-doux); font-size: 14px; }
.icone-ronde { width: 52px; height: 52px; border-radius: 50%; background: #dcebfc; color: var(--bleu-marine); display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.icone-ronde.petite { width: 40px; height: 40px; font-size: 17px; }
.icone-ronde.verte { background: var(--vert-pale); color: var(--vert); }
.icone-ronde.orange { background: #fff1dc; color: var(--orange); }
.icone-ronde.violette { background: #ece9fb; color: #5a43c8; }
.obligatoires { margin-left: auto; align-self: flex-end; font-size: 12.5px; color: var(--texte-doux); white-space: nowrap; }
.req { color: var(--rouge); }

/* ---------- Champs ---------- */
.grille { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.grille-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px 22px; }
.pleine { grid-column: 1 / -1; }
.champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.champ > label, .champ > .label { font: 700 14px var(--police-titre); color: var(--texte); }
.controle { position: relative; display: flex; align-items: center; }
.controle > i:first-child { position: absolute; left: 14px; color: var(--bleu-nuit); font-size: 16px; width: 20px; text-align: center; pointer-events: none; }
.controle input, .controle select, .controle textarea {
    width: 100%; height: 46px; border: 1px solid var(--gris-bord); border-radius: 6px; background: #fff;
    padding: 0 14px 0 46px; font: 15px var(--police); color: var(--texte); transition: border-color .15s, box-shadow .15s;
}
.controle textarea { height: auto; min-height: 80px; padding-top: 12px; resize: vertical; }
.controle select { appearance: none; padding-right: 38px; cursor: pointer;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230f1f6b' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.controle select:invalid, .controle select option[value=""] { color: #8a96a8; }
.controle input::placeholder, .controle textarea::placeholder { color: #8a96a8; }
.controle input:focus, .controle select:focus, .controle textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(11,110,246,.15); }
.controle select:disabled { background-color: #f6f8fb; cursor: not-allowed; }
.champ.erreur .controle input, .champ.erreur .controle select, .champ.erreur .controle textarea { border-color: var(--rouge); }
.erreur-msg { color: var(--rouge); font-size: 13px; display: none; }
.champ.erreur .erreur-msg, .erreur-msg.visible { display: block; }
.aide { font-size: 12.5px; color: var(--texte-doux); }

.radios { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; min-height: 32px; }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14.5px; }
.radio input { appearance: none; width: 20px; height: 20px; border: 2px solid #9aa7b8; border-radius: 50%; margin: 0; cursor: pointer; display: grid; place-items: center; }
.radio input:checked { border-color: var(--bleu); }
.radio input:checked::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--bleu); }
.radio input:focus-visible { box-shadow: 0 0 0 3px rgba(11,110,246,.2); }

.info { display: flex; gap: 14px; background: #e3f0fd; border-radius: 8px; padding: 14px 18px; margin-top: 18px; font-size: 13.5px; color: var(--texte-doux); }
.info > i { color: var(--bleu); font-size: 26px; }
.info strong { display: block; color: var(--bleu-fonce); font: 700 16px var(--police-titre); }

.alerte { display: flex; gap: 14px; align-items: flex-start; border-radius: 10px; padding: 14px 18px; margin-bottom: 16px; font-size: 14px; }
.alerte i { font-size: 20px; margin-top: 1px; }
.alerte-erreur { background: var(--rouge-pale); color: #8c1d16; border: 1px solid #f6c6c1; }
.alerte-succes { background: var(--vert-pale); border: 1px solid #bfe5cc; color: #1c6b3c; }

/* ---------- Étape 3 : sous-sections numérotées ---------- */
.section { border: 1px solid #e3ebf5; border-radius: 10px; padding: 14px 18px 16px; background: #fff; }
.section + .section { margin-top: 12px; }
.section-entete { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.section-entete .rang { width: 30px; height: 30px; border-radius: 50%; background: var(--bleu); color: #fff; display: grid; place-items: center; font: 700 14px var(--police-titre); flex-shrink: 0; }
.section-entete h3 { font-size: 16.5px; font-weight: 700; }
.section-entete p { margin: 0; font-size: 12.5px; color: var(--texte-doux); }
.section-entete > i { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; background: var(--bleu-pale); color: var(--bleu-marine); display: grid; place-items: center; font-size: 17px; }
.outils-emplacement { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.outil { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; border-radius: 6px; background: var(--bleu-pale); color: var(--bleu-fonce); border: 1px dashed transparent; font: 600 14px var(--police-titre); cursor: pointer; padding: 6px 12px; text-align: center; }
.outil:hover { border-color: var(--bleu); }
.outil.ok { background: var(--vert-pale); color: var(--vert); }
.outil small { font-weight: 400; color: var(--texte-doux); }

/* ---------- Étape 4 : pièces jointes ---------- */
.docs-entete { display: flex; align-items: center; gap: 12px; margin: 20px 0 12px; }
.docs-entete h3 { font-size: 18px; font-weight: 700; }
.docs-entete i.fa-user { color: var(--bleu-marine); font-size: 22px; }
.docs-entete select { margin-left: auto; border: 0; background: var(--bleu-pale); color: var(--bleu-fonce); font: 600 13.5px var(--police-titre); padding: 8px 32px 8px 14px; border-radius: 6px; appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230a58c8' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.doc { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; border: 1px solid #e3ebf5; border-radius: 10px; padding: 12px 16px; background: #fff; }
.doc + .doc { margin-top: 10px; }
.doc > i { font-size: 26px; color: var(--bleu-marine); text-align: center; }
.doc h4 { font-size: 15px; font-weight: 700; color: var(--bleu-nuit); }
.doc p { margin: 2px 0 0; font-size: 12.5px; color: var(--texte-doux); }
.doc-boutons { display: flex; gap: 10px; }
.doc-boutons .btn { min-height: 38px; font-size: 13.5px; font-weight: 500; padding: 0 14px; border-width: 1px; }
.doc.ok { border-color: #bfe5cc; background: #fbfefc; }
.doc.erreur { border-color: var(--rouge); }
.doc .erreur-msg { grid-column: 2 / -1; }
.fichiers { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.fichiers:empty { display: none; }
.puce-fichier { display: inline-flex; align-items: center; gap: 8px; background: var(--vert-pale); color: #1c6b3c; border-radius: 6px; padding: 5px 6px 5px 10px; font-size: 13px; max-width: 100%; }
.puce-fichier img { width: 28px; height: 28px; object-fit: cover; border-radius: 4px; }
.puce-fichier span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.puce-fichier em { font-style: normal; color: var(--texte-doux); font-size: 12px; }
.puce-fichier button { border: 0; background: transparent; color: #5c6b80; cursor: pointer; width: 24px; height: 24px; border-radius: 4px; }
.puce-fichier button:hover { background: rgba(0,0,0,.06); color: var(--rouge); }

/* ---------- Étape 5 : récapitulatif ---------- */
.recap { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; border: 1px solid #e3ebf5; border-radius: 10px; padding: 12px 16px; background: #fff; }
.recap + .recap { margin-top: 10px; }
.recap > .btn { align-self: start; }
.recap-simple { grid-template-columns: 44px 1fr; }
.recap dl.court { grid-template-columns: 110px 1fr; }
.recap h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.recap dl { display: grid; grid-template-columns: 170px 1fr; gap: 2px 18px; margin: 0; font-size: 14px; }
.recap dt { color: var(--texte-doux); }
.recap dd { margin: 0; font-weight: 600; color: var(--texte); word-break: break-word; }
.recap ul { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.recap ul li { display: flex; gap: 8px; align-items: center; padding: 2px 0; }
.recap ul i { color: var(--vert); }
.cgu-boite { max-height: 130px; overflow-y: auto; border: 1px solid var(--gris-bord); border-radius: 6px; padding: 10px 14px; font-size: 13px; background: #fbfcfe; margin-top: 8px; }
.cgu-boite h4 { font-size: 13.5px; margin: 8px 0 2px; }
.cgu-boite p { margin: 0 0 6px; }
.case { display: flex; gap: 10px; align-items: center; margin-top: 12px; font-size: 14px; font-weight: 600; cursor: pointer; }
.case input { width: 20px; height: 20px; accent-color: var(--bleu); cursor: pointer; }

/* ---------- Ticket ---------- */
.succes-banniere { display: flex; gap: 16px; align-items: center; background: var(--vert-pale); border: 1px solid #bfe5cc; border-radius: 10px; padding: 14px 18px; margin-bottom: 16px; }
.succes-banniere .coche { width: 40px; height: 40px; border-radius: 50%; background: var(--vert); color: #fff; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.succes-banniere strong { display: block; color: #135c33; font: 700 17px var(--police-titre); }
.succes-banniere span { color: var(--texte-doux); font-size: 14px; }
.ticket { position: relative; border: 1px solid var(--bleu-bord); border-radius: 10px; background: #fff; margin: 14px 0; display: grid; grid-template-columns: 1.4fr 1fr; }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 0; bottom: 0; width: 8px; background: radial-gradient(circle at 0 8px, #f6f9fe 5px, transparent 5.5px) 0 0 / 8px 16px repeat-y; }
.ticket::before { left: -1px; }
.ticket::after { right: -1px; transform: scaleX(-1); }
.ticket-bloc { padding: 16px 22px; }
.ticket-bloc + .ticket-bloc { border-left: 1px dashed var(--bleu-bord); }
.ticket-label { font: 700 13.5px var(--police-titre); color: var(--texte); }
.ticket-numero { font: 800 34px/1.1 var(--police-titre); color: var(--bleu); letter-spacing: .5px; word-break: break-all; }
.ticket-montant { font: 800 36px/1.1 var(--police-titre); color: var(--bleu); }
.ticket-montant small { font-size: 15px; }
.ticket-meta { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; background: var(--bleu-pale-2); margin: 0 14px 14px; border-radius: 8px; }
.ticket-meta div { display: flex; gap: 12px; align-items: center; padding: 10px 16px; font-size: 13px; color: var(--texte-doux); }
.ticket-meta i { font-size: 20px; color: var(--bleu-marine); }
.ticket-meta b { display: block; color: var(--texte); font-size: 14.5px; font-weight: 600; }
.lien-paiement { border: 1px solid #e3ebf5; border-radius: 10px; padding: 14px 16px; background: #fff; }
.lien-paiement-entete { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.lien-paiement-entete i { font-size: 20px; color: var(--bleu); }
.lien-paiement-entete strong { display: block; color: var(--bleu-nuit); font: 700 15px var(--police-titre); }
.lien-paiement-entete span { font-size: 13px; color: var(--texte-doux); }
.copie { display: flex; gap: 10px; }
.copie input { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--gris-bord); border-radius: 6px; padding: 0 14px; font: 14px var(--police); color: var(--bleu-fonce); background: #fbfcfe; }
.securite { display: flex; gap: 14px; align-items: center; background: var(--jaune-pale); border: 1px solid #f6e3b0; border-radius: 10px; padding: 12px 16px; margin-top: 14px; font-size: 13px; color: var(--texte-doux); }
.securite .bouclier { width: 40px; height: 40px; border-radius: 50%; background: #f3c86b; color: #7a4b00; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.securite strong { display: block; color: var(--texte); font-size: 14px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font: 700 12.5px var(--police-titre); }
.badge-warning { background: #fff1dc; color: #a35a00; }
.badge-info { background: var(--bleu-pale); color: var(--bleu-fonce); }
.badge-success { background: var(--vert-pale); color: var(--vert); }
.badge-danger { background: var(--rouge-pale); color: var(--rouge); }

/* ---------- Suivi ---------- */
.suivi-entete { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.suivi-entete .ref { font: 800 22px var(--police-titre); color: var(--bleu); }
.frise { list-style: none; margin: 16px 0 0; padding: 0; }
.frise li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding-bottom: 20px; }
.frise li::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--gris-bord); }
.frise li:last-child::before { display: none; }
.frise li.fait::before { background: var(--bleu); }
.frise .point { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #eef1f5; color: #9aa7b8; font-size: 14px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--gris-bord); }
.frise li.fait .point { background: var(--bleu); color: #fff; box-shadow: none; }
.frise li.courant .point { background: #fff; color: var(--bleu); box-shadow: 0 0 0 2px var(--bleu), 0 0 0 6px rgba(11,110,246,.15); }
.frise li.rejet .point { background: var(--rouge); color: #fff; box-shadow: none; }
.frise h4 { font-size: 15px; font-weight: 700; color: var(--texte); margin-top: 6px; }
.frise li:not(.fait):not(.courant):not(.rejet) h4 { color: #8a96a8; font-weight: 600; }
.frise p { margin: 2px 0 0; font-size: 13.5px; color: var(--texte-doux); }
.frise time { font-size: 12.5px; color: var(--bleu-fonce); font-weight: 600; }
.colonnes { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; margin-top: 16px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--footer); color: #e8edf2; font-size: 12.5px; }
.site-footer .colonnes-footer { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; padding: 22px 20px 18px; position: relative; }
.site-footer h5 { margin: 0 0 8px; font: 700 12.5px var(--police-titre); text-transform: uppercase; color: #fff; letter-spacing: .3px; }
.site-footer ul { margin: 0; padding-left: 14px; }
.site-footer li { margin: 2px 0; }
.site-footer a { color: #e8edf2; }
.site-footer .iso { position: absolute; right: 20px; bottom: 18px; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--vert); display: grid; place-items: center; font: 800 9px var(--police-titre); border: 3px solid var(--vert); }
.footer-bas { background: var(--footer-bas); }
.footer-bas .container { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.footer-bas nav a + a::before { content: "|"; margin: 0 10px; color: #9aa7b8; }

/* ---------- Divers ---------- */
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: tourne .7s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.etape { animation: apparait .25s ease; }
@keyframes apparait { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--bleu-nuit); color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; opacity: 0; transition: all .25s; z-index: 100; pointer-events: none; }
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.contenu-texte h2 { font-size: 18px; margin: 20px 0 6px; }
.contenu-texte p, .contenu-texte li { color: var(--texte); font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .nav-principale { gap: 14px; }
    .recherche input { width: 130px; }
    .site-footer .colonnes-footer { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .nav-principale, .recherche { display: none; }
    .site-header.ouvert .container { flex-wrap: wrap; padding-bottom: 14px; }
    .site-header.ouvert .nav-principale { display: flex; flex-direction: column; gap: 4px; width: 100%; order: 3; }
    .site-header.ouvert .recherche { display: flex; width: 100%; order: 4; }
    .site-header.ouvert .recherche input { flex: 1; }
    .page-grid { grid-template-columns: 1fr; }
    .lateral { position: static; flex-direction: row; align-items: center; }
    .lateral .charte { display: none; }
    .raccourcis .container { grid-template-columns: 1fr 1fr; }
    .colonnes { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    body { font-size: 14.5px; }
    .container { padding: 0 16px; }
    .page-titre { font-size: 25px; }
    .hero { height: 300px; }
    .hero h1 { font-size: 34px; }
    .hero p { font-size: 16px; }
    .raccourcis .container { gap: 12px; }
    .raccourci { font-size: 14px; min-height: 112px; padding: 16px 10px; }
    .carte { padding: 18px 16px; }
    .carte-entete { flex-wrap: wrap; }
    .obligatoires { margin-left: 0; }
    .grille, .grille-3, .actions, .cartes-actions, .outils-emplacement { grid-template-columns: 1fr; }
    .stepper { padding: 0; }
    .stepper li span.txt { display: none; }
    .stepper li.actif span.txt { display: block; position: absolute; top: 38px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; }
    .stepper li.actif span.txt br { display: none; }
    .stepper { margin-bottom: 34px; }
    .doc { grid-template-columns: 36px 1fr; }
    .doc-boutons { grid-column: 1 / -1; }
    .doc-boutons .btn { flex: 1; }
    .recap { grid-template-columns: 1fr auto; }
    .recap > .icone-ronde { display: none; }
    .recap-simple { grid-template-columns: 1fr; }
    .recap dl, .recap dl.court { grid-template-columns: 1fr; }
    .recap dd { margin-bottom: 6px; }
    .ticket, .ticket-meta { grid-template-columns: 1fr; }
    .ticket-bloc + .ticket-bloc { border-left: 0; border-top: 1px dashed var(--bleu-bord); }
    .ticket-numero { font-size: 26px; }
    .copie { flex-direction: column; }
    .site-footer .colonnes-footer { grid-template-columns: 1fr 1fr; }
    .footer-bas .container { flex-direction: column; }
}
@media print {
    .site-header, .fil-ariane, .site-footer, .lateral, .no-print { display: none !important; }
    .page-grid { grid-template-columns: 1fr; }
}

/* Accueil : un seul raccourci visible */
.raccourcis-seul .container { grid-template-columns: minmax(0, 320px); justify-content: center; }

/* Boutons d'accès : faire une demande / suivre ma demande */
.acces-rapide { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding-top: 26px; }
.acces-rapide .btn { flex: 1 1 220px; max-width: 320px; }
