/* L'Apprenti — style « Bleu doux » figé à partir de la maquette */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('/polices/nunito-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('/polices/nunito-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --bleu: #3D63C9;
  --bleu-fonce: #2F55B0;
  --marine: #2A4685;
  --bleu-clair: #DCE6F8;
  --fond: #EEF2FA;
  --fond-page: #F2F5FB;
  --bord: #E3EAF7;
  --orange: #F7A35C;
  --orange-texte: #2B2118;
  --encre: #2B3445;
  --texte: #46536A;
  --doux: #556074;
  --vert: #15803D;
  --vert-clair: #DCFCE7;
  --rouge: #B91C1C;
  --rouge-clair: #FEE2E2;
  --jaune: #FEF3C7;
  --ombre: 0 8px 20px rgba(61, 99, 201, 0.12);
  --ombre-forte: 0 18px 40px rgba(61, 99, 201, 0.22);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--encre);
  background: var(--fond-page);
  line-height: 1.45;
}
a { color: var(--bleu-fonce); }
a:hover { color: var(--marine); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }

/* ---------- mise en page mobile (client & artisan) ---------- */
.mobile { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--fond); }
.entete { background: var(--bleu-clair); padding: 18px 20px 56px; display: flex; flex-direction: column; gap: 16px; }
.entete .ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); }
.marque b { font-size: 18px; font-weight: 800; display: block; line-height: 1.1; }
.marque small { font-size: 12px; font-weight: 700; color: var(--doux); }
.entete h1 { font-size: 26px; font-weight: 800; }
.entete .sous { font-size: 15px; font-weight: 500; color: var(--texte); }
.pastille-artisan { width: 42px; height: 42px; border-radius: 21px; background: var(--bleu); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.corps { display: flex; flex-direction: column; gap: 14px; padding: 0 16px 28px; margin-top: -34px; }

.carte { background: #fff; border-radius: 22px; box-shadow: var(--ombre); padding: 16px 18px; }
.carte.forte { box-shadow: var(--ombre-forte); border-radius: 24px; }
.carte h2 { font-size: 22px; font-weight: 800; }
.carte .resume { font-size: 15px; font-weight: 500; color: var(--texte); margin-top: 8px; }

.alerte-sol { display: flex; gap: 12px; align-items: flex-start; background: var(--jaune); border-radius: 18px; padding: 14px 16px; box-shadow: var(--ombre); color: #78350F; font-size: 14px; }
.alerte-sol .ico { flex: none; width: 34px; height: 34px; border-radius: 17px; background: #FBBF24; display: flex; align-items: center; justify-content: center; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.urgent { background: var(--rouge-clair); color: var(--rouge); }
.badge.urgent::before { content: ''; width: 8px; height: 8px; border-radius: 4px; background: #DC2626; }
.badge.info { display: inline-flex; min-height: 28px; border-bottom: none; background: var(--bleu-clair); color: var(--marine); }
.badge.ok { background: var(--vert-clair); color: #166534; }
.badge.gris { background: var(--bord); color: var(--texte); }

/* ---------- formulaires & boutons ---------- */
.bouton { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 64px; border: none; border-radius: 999px; font-family: inherit; font-size: 19px; font-weight: 800; text-decoration: none; cursor: pointer; }
.bouton.principal { background: var(--orange); color: var(--orange-texte); box-shadow: 0 10px 22px rgba(247, 163, 92, 0.38); }
.bouton.secondaire { background: var(--fond); color: var(--bleu-fonce); font-size: 18px; }
.bouton.bleu { background: var(--bleu); color: #fff; font-size: 17px; min-height: 52px; }
.bouton.lien { background: none; color: var(--doux); text-decoration: underline; font-size: 16px; font-weight: 700; min-height: 52px; }
.bouton.choix { background: #fff; border: 2px solid #C9D6F2; color: var(--marine); font-size: 17px; min-height: 58px; }
.bouton:disabled { background: var(--bord); color: var(--doux); box-shadow: none; cursor: not-allowed; }
.bouton:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }

.emplacement { position: relative; display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 20px; padding: 12px; box-shadow: var(--ombre); }
.emplacement .vignette { flex: none; width: 72px; height: 72px; border-radius: 16px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.emplacement .vignette img { width: 72px; height: 72px; object-fit: cover; }
.emplacement .txt { flex: 1; min-width: 0; }
.emplacement .num { font-size: 12px; font-weight: 700; color: var(--bleu-fonce); text-transform: uppercase; letter-spacing: .5px; }
.emplacement .titre { display: block; font-size: 15px; font-weight: 800; }
.emplacement .aide { font-size: 13px; font-weight: 500; color: var(--doux); }
.emplacement label.ajout { flex: none; min-height: 44px; padding: 0 16px; display: flex; align-items: center; border-radius: 999px; background: var(--bleu); color: #fff; font-weight: 800; font-size: 14px; cursor: pointer; }
.emplacement input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
textarea, input[type=text], select { width: 100%; font-family: inherit; font-size: 16px; color: var(--encre); padding: 12px 14px; border: 1.5px solid #C9D6F2; border-radius: 14px; background: #F8FAFF; }
label.titre-champ { display: block; font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.mention { font-size: 12px; font-weight: 500; color: var(--doux); text-align: center; }

/* ---------- fiche ---------- */
.infos { padding: 4px 18px; }
.info { display: flex; align-items: center; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--fond); }
.info:last-child { border-bottom: none; }
.info .ico { flex: none; width: 34px; height: 34px; border-radius: 17px; display: flex; align-items: center; justify-content: center; }
.info .lib { font-size: 12px; font-weight: 700; color: var(--doux); text-transform: uppercase; letter-spacing: .5px; display: block; }
.info .val { font-size: 15px; font-weight: 700; }
.info a.val { font-size: 17px; text-decoration: none; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.photos figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.photos a, .photos .vide { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--bleu-clair); display: flex; align-items: center; justify-content: center; }
.photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photos figcaption { font-size: 12px; line-height: 1.3; font-weight: 700; color: var(--texte); }
.bulles { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.bulle { max-width: 86%; padding: 10px 12px; border-radius: 16px; font-size: 14px; font-weight: 500; background: var(--fond); align-self: flex-start; }
.bulle.client { background: #FFEDD5; align-self: flex-end; }
.bulle b { display: block; font-size: 12px; color: var(--bleu-fonce); }
details summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 800; cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '▾'; color: var(--bleu-fonce); }
details[open] summary::after { content: '▴'; }
.decision { display: flex; flex-direction: column; gap: 12px; }
.decision h3 { font-size: 17px; font-weight: 800; }
.sms-bulle { align-self: flex-start; max-width: 92%; padding: 12px 14px; border-radius: 18px 18px 18px 4px; background: var(--bleu-clair); font-size: 15px; font-weight: 500; }
.resultat { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; }
.resultat.ok { color: var(--vert); }
.resultat.non { color: var(--doux); }
.lien-apprenti { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--encre); }
.lien-apprenti span.t { flex: 1; }
.lien-apprenti b { display: block; font-size: 15px; }
.lien-apprenti small { font-size: 13px; color: var(--doux); font-weight: 500; }

/* pastilles de couleur (comme la maquette) */
.pastille { flex: none; width: 34px; height: 34px; border-radius: 17px; display: inline-flex; align-items: center; justify-content: center; }
.pastille svg { width: 17px; height: 17px; }
.t-bleu { background: #DCE6F8; } .t-jaune { background: #FDE68A; } .t-vert { background: #DCFCE7; }
.t-rose { background: #FBCFE8; } .t-lavande { background: #E3EAF7; } .t-peche { background: #FFEDD5; }

/* décision : le dépliant « Je prends » est un vrai bouton orange */
details.choix > summary.bouton { list-style: none; }
details.choix > summary.bouton::after { content: none; }
details.choix[open] > summary.bouton.principal { box-shadow: none; }
details.choix .options { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }

/* bandeau bleu clair des pages larges */
.bandeau { background: var(--bleu-clair); }
.bandeau .large { padding-bottom: 64px; }
.bandeau + .large { margin-top: -48px; }
.kpi .tete { display: flex; align-items: center; gap: 8px; }

/* ---------- site vitrine ---------- */
.site-largeur { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.site-nav { background: #fff; border-bottom: 1px solid var(--bord); }
.site-nav-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.site-nav .marque b { font-size: 20px; }
.site-liens { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.site-liens a:not(.bouton) { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; color: var(--texte); text-decoration: none; }
.bouton.site-mini { width: auto; min-height: 44px; padding: 0 18px; font-size: 15px; }
.site-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 4rem; padding-bottom: 4.5rem; }
.site-hero-texte { flex: 999 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.site-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.05; font-weight: 900; letter-spacing: -1px; }
.site-hero h1 span { color: var(--bleu); }
.site-surtitre-pastille { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--bleu-fonce); font-size: 14px; font-weight: 800; }
.site-chapo { max-width: 34rem; font-size: 1.2rem; line-height: 1.55; font-weight: 500; color: var(--texte); }
.site-boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.site-boutons .bouton { width: auto; min-height: 60px; padding: 0 26px; font-size: 18px; }
.site-note { font-size: 14px; font-weight: 600; color: var(--doux); }
.site-apercu { flex: 1 1 300px; max-width: 340px; display: flex; flex-direction: column; gap: 12px; margin: 0 auto; }
.site-vignettes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.site-vignettes span { height: 58px; border-radius: 12px; }
.site-section { padding-top: 4.5rem; padding-bottom: 1rem; display: flex; flex-direction: column; gap: 18px; }
.site-section h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15; font-weight: 900; }
.site-surtitre { font-size: 14px; font-weight: 800; color: var(--bleu); text-transform: uppercase; letter-spacing: 1px; }
.site-doux { font-size: 16px; line-height: 1.55; font-weight: 500; color: var(--doux); }
.site-deux { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 40px; }
.site-deux > * { flex: 1 1 300px; min-width: 0; }
.site-deux > :first-child { flex-grow: 999; flex-basis: 440px; }
.site-deux > div { display: flex; flex-direction: column; gap: 12px; }
.site-histoire { display: flex; flex-direction: column; gap: 16px; }
.site-histoire > p:not(.site-surtitre):not(.site-signature) { font-size: 18px; line-height: 1.65; font-weight: 500; color: var(--texte); }
.site-signature { font-weight: 800; }
.site-citation { max-width: 340px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding: 32px 26px; }
.site-citation p { font-size: 22px; line-height: 1.3; font-weight: 800; }
.site-etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.site-etapes .carte { display: flex; flex-direction: column; gap: 12px; padding: 26px; }
.site-etapes h3 { font-size: 21px; font-weight: 800; }
.site-etapes p { font-size: 16px; line-height: 1.55; color: var(--texte); font-weight: 500; }
.site-numero { width: 48px; height: 48px; border-radius: 24px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 900; color: var(--marine); }
.site-avantages { padding: 32px; }
.site-avantages ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.site-avantages li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--doux); font-weight: 500; }
.site-avantages li b { color: var(--encre); font-size: 16px; }
.site-avantages .pastille { color: #15803D; font-weight: 900; }
#tarif .site-section { padding-bottom: 4.5rem; }
.site-prix { display: flex; flex-direction: column; gap: 12px; padding: 30px; }
.site-prix b { font-size: 48px; line-height: 1; font-weight: 900; }
.site-etroit { max-width: 820px; }
.site-etroit details { padding: 6px 22px; }
.site-pied { margin-top: 4rem; background: var(--encre); color: #C9D6F2; }
.site-pied .site-liens a { color: #fff; }

/* liste de fiches */
.fiche-ligne { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--encre); }
.fiche-ligne .titre { font-size: 18px; font-weight: 800; }
.fiche-ligne .meta { font-size: 14px; font-weight: 500; color: var(--doux); }
.vide-liste { text-align: center; color: var(--doux); font-weight: 600; padding: 28px 12px; }

/* ---------- pages larges (admin, démo, SMS) ---------- */
.large { max-width: 1240px; margin: 0 auto; padding: 24px clamp(16px, 3vw, 36px) 48px; display: flex; flex-direction: column; gap: 20px; }
.barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.barre h1 { font-size: 28px; font-weight: 800; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.nav a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; color: var(--texte); text-decoration: none; }
.nav a.actif { color: var(--bleu-fonce); text-decoration: underline; text-underline-offset: 6px; }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { background: #fff; border-radius: 20px; box-shadow: var(--ombre); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.kpi .lib { font-size: 13px; font-weight: 700; color: var(--doux); }
.kpi .val { font-size: 30px; font-weight: 800; line-height: 1.1; }
.kpi .sous { font-size: 13px; font-weight: 600; color: var(--doux); }
.deux { display: flex; flex-wrap: wrap; gap: 18px; }
.deux > * { flex: 1 1 360px; min-width: 0; }
.etape { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.etape .l { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; }
.jauge { height: 14px; border-radius: 7px; background: var(--fond); overflow: hidden; }
.jauge div { height: 14px; border-radius: 7px; }
.tableau { overflow-x: auto; }
table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 800; color: var(--doux); text-transform: uppercase; letter-spacing: .5px; padding: 10px 12px; background: var(--fond-page); }
td { padding: 12px; border-bottom: 1px solid var(--fond); font-weight: 600; }
.etiquette-demo { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--jaune); color: #92400E; font-size: 12px; font-weight: 800; }
.telephone { max-width: 420px; display: flex; flex-direction: column; gap: 10px; }
.sms { background: #fff; border-radius: 18px; box-shadow: var(--ombre); padding: 12px 14px; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.sms .vers { font-size: 12px; font-weight: 800; color: var(--doux); margin-bottom: 4px; }
.scenarios { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.scenarios button { text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 2px solid transparent; border-radius: 20px; background: #fff; box-shadow: var(--ombre); font-family: inherit; color: var(--encre); cursor: pointer; }
.scenarios button:hover { border-color: #C9D6F2; }
.scenarios b { font-size: 17px; }
.scenarios span { font-size: 14px; color: var(--doux); font-weight: 500; }

/* ---------- client : ajouts de la maquette ---------- */
.emplacement .actions { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.emplacement label.ajout { min-width: 80px; justify-content: center; }
.emplacement label.ajout.changer { background: var(--fond); color: var(--bleu-fonce); }
.retirer { min-height: 32px; padding: 0 6px; border: none; background: none; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--doux); text-decoration: underline; cursor: pointer; }
.pilule-site { align-self: center; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 999px; background: #fff; box-shadow: 0 4px 12px rgba(61, 99, 201, 0.12); font-size: 13px; font-weight: 700; color: var(--bleu-fonce); text-decoration: none; }
.merci { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 20px; text-align: center; }
.merci > p { font-size: 16px; line-height: 1.5; font-weight: 500; color: var(--texte); }
.rond-ok { width: 76px; height: 76px; border-radius: 38px; background: var(--vert-clair); display: flex; align-items: center; justify-content: center; }
.recap { width: 100%; padding: 14px 16px; background: var(--fond); border-radius: 16px; text-align: left; display: flex; flex-direction: column; gap: 4px; }
.recap .sur { font-size: 12px; font-weight: 700; color: var(--bleu-fonce); text-transform: uppercase; letter-spacing: .6px; }
.recap b { font-size: 15px; }
.recap span:last-child { font-size: 14px; font-weight: 500; color: var(--doux); }
.bouton.sombre { background: var(--encre); color: #fff; font-size: 16px; min-height: 60px; box-shadow: 0 10px 22px rgba(15, 23, 42, 0.25); }

/* ---------- artisan : ajouts de la maquette ---------- */
.entete .coin { align-self: flex-start; text-align: right; font-size: 14px; font-weight: 700; color: var(--doux); line-height: 1.9; }
.entete .coin a { font-size: 13px; }
.aide-decision { font-size: 14px; font-weight: 600; color: var(--doux); }
.lien-apprenti .num { flex: none; font-size: 15px; font-weight: 800; color: var(--bleu-fonce); }
.fiche-ligne .haut { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.fiche-ligne .badges { margin: 0; }
.fiche-ligne .quand { flex: none; font-size: 13px; font-weight: 700; color: var(--doux); padding-top: 4px; }
.mini-photos { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.mini-photos img, .mini-photos > span { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.mini-photos small { margin-left: 4px; font-size: 13px; font-weight: 700; color: var(--doux); }

/* ---------- admin (maquette « Administration ») ---------- */
.admin { min-height: 100vh; display: flex; flex-wrap: wrap; align-items: stretch; background: var(--fond-page); }
.menu-admin { flex: 1 1 220px; max-width: 100%; padding: 22px 16px; background: #fff; border-right: 1px solid var(--bord); display: flex; flex-direction: column; gap: 18px; }
.menu-admin .marque { padding: 0 6px; }
.menu-admin .marque b { font-size: 17px; font-weight: 900; }
.menu-admin nav { display: flex; flex-direction: column; gap: 4px; }
.menu-admin nav a { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 12px; color: var(--texte); font-size: 15px; font-weight: 700; text-decoration: none; }
.menu-admin nav a:hover { background: var(--fond); }
.menu-admin nav a.actif { background: var(--bleu-clair); color: var(--marine); }
.menu-admin .sur { padding: 0 12px; font-size: 12px; font-weight: 800; color: var(--doux); text-transform: uppercase; letter-spacing: .6px; }
.banc { margin-top: auto; padding: 14px; border-radius: 16px; background: var(--fond); display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.banc b { font-weight: 800; }
.banc span { font-weight: 600; color: var(--doux); }
.jauge-mini { display: block; height: 8px; border-radius: 4px; background: var(--bord); overflow: hidden; }
.jauge-mini > span { display: block; height: 8px; border-radius: 4px; background: var(--bleu); }
.jauge-mini.vert > span { background: #22A06B; }
.contenu-admin { flex: 999 1 560px; min-width: 0; padding: 28px clamp(16px, 3vw, 36px) 40px; display: flex; flex-direction: column; gap: 22px; }
.tete-admin { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.tete-admin > div { display: flex; flex-direction: column; gap: 4px; }
.tete-admin h1 { font-size: 28px; font-weight: 800; }
.bascule { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; box-shadow: 0 4px 12px rgba(61, 99, 201, 0.10); }
.bascule a { min-height: 40px; display: flex; align-items: center; padding: 0 16px; border-radius: 999px; color: var(--texte); font-size: 14px; font-weight: 800; text-decoration: none; }
.bascule a[aria-current="true"] { background: var(--bleu); color: #fff; }
.grille-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.grille-kpi .kpi { box-shadow: 0 8px 20px rgba(61, 99, 201, 0.10); }
.grille-kpi .pastille { width: 30px; height: 30px; }
.grille-kpi .pastille svg { width: 16px; height: 16px; }
.contenu-admin .carte { padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 8px 20px rgba(61, 99, 201, 0.10); }
.contenu-admin .carte h2 { font-size: 19px; font-weight: 800; }
.contenu-admin .deux > .large-2 { flex: 999 1 460px; }
.contenu-admin .deux > :not(.large-2) { flex: 1 1 320px; }
.contenu-admin .etape { margin-top: 0; }
.titre-carte { display: flex; flex-direction: column; gap: 2px; }
.titre-carte span, .doux { font-size: 13px; font-weight: 600; color: var(--doux); }
.alerte { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; }
.alerte .point { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 5px; }
.alerte b { display: block; font-size: 14px; font-weight: 800; }
.alerte b + span { font-size: 13px; line-height: 1.4; font-weight: 600; color: var(--doux); }
.a-orange { background: #FFF4E8; } .a-orange .point { background: #E9853A; }
.a-rouge { background: #FEF2F2; } .a-rouge .point { background: #DC2626; }
.a-bleu { background: var(--fond); } .a-bleu .point { background: var(--bleu); }
.a-vert { background: #F0FDF4; } .a-vert .point { background: #22A06B; }
.cout { display: grid; grid-template-columns: 120px minmax(0, 1fr) 56px; align-items: center; gap: 10px; font-size: 14px; }
.cout > span:first-child { font-weight: 700; }
.cout b { text-align: right; }
.jauge.petite { display: block; height: 12px; border-radius: 6px; }
.jauge.petite span { display: block; height: 12px; border-radius: 6px; }
.total { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--bord); font-size: 15px; font-weight: 800; }
.fonctions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.fonction { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 16px; background: #F7F9FD; border: 1px solid var(--bord); }
.fonction .l { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.fonction .doux { font-weight: 500; line-height: 1.4; }
.fonction small { font-size: 12px; font-weight: 700; color: var(--doux); }
.badge-fonction { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.b-socle { background: var(--bleu-clair); color: var(--marine); }
.b-option { background: #FFE4CC; color: #9A3412; }
.b-bientot { background: var(--bord); color: var(--texte); }
.tete-tableau { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.filtres { display: flex; flex-wrap: wrap; gap: 6px; }
.filtres a { min-height: 40px; display: flex; align-items: center; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--bord); background: #fff; color: var(--texte); font-size: 14px; font-weight: 800; text-decoration: none; }
.filtres a[aria-current="true"] { background: var(--bleu-clair); color: var(--marine); border-color: #9DB3E6; }
.table-artisans { min-width: 1000px; }
.table-artisans th:first-child { border-radius: 12px 0 0 12px; }
.table-artisans th:last-child { border-radius: 0 12px 12px 0; }
.table-artisans td { vertical-align: middle; }
.table-artisans td.doux { font-size: 14px; color: var(--texte); }
.qui { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); }
.qui b { display: block; font-weight: 800; }
.qui small { font-size: 12px; font-weight: 600; color: var(--doux); }
.initiales { flex: none; width: 36px; height: 36px; border-radius: 10px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; }
.interrupteurs { display: flex; flex-wrap: wrap; gap: 6px; }
.interrupteurs form { margin: 0; }
.interrupteur { min-height: 32px; display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; border-radius: 999px; border: 1.5px solid var(--bord); background: #fff; color: var(--doux); font-family: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.interrupteur[aria-pressed="true"] { background: var(--bleu-clair); color: var(--marine); border-color: #9DB3E6; }
.statut { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.s-ok { background: var(--vert-clair); color: #166534; }
.s-essai { background: var(--jaune); color: #92400E; }
.s-gris { background: var(--bord); color: var(--texte); }

/* ---------- pages de l’admin : appels, fiches, banc, facturation, réglages ---------- */
a.banc { color: var(--texte); text-decoration: none; }
a.banc:hover { background: var(--bleu-clair); }
.table-admin { min-width: 760px; }
.table-admin th:first-child { border-radius: 12px 0 0 12px; }
.table-admin th:last-child { border-radius: 0 12px 12px 0; }
.table-admin td { vertical-align: middle; }
.table-admin td a { color: var(--bleu); font-weight: 800; }
.table-admin .badge { font-size: 12px; padding: 4px 10px; }
.table-admin code { font-size: 13px; color: var(--marine); }
.bloc { display: block; margin-top: 2px; font-weight: 600; }
tr.trop-long td, tr.en-retard td { background: #FEF2F2; }
.s-rouge { background: var(--rouge-clair); color: var(--rouge); }
td.rouge { color: var(--rouge); font-weight: 800; }
.reglages { margin: 0; display: grid; gap: 0; }
.reglages > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--fond); }
.reglages > div:last-child { border-bottom: 0; }
.reglages dt { font-weight: 800; display: flex; flex-direction: column; gap: 2px; }
.reglages dt small { font-weight: 600; color: var(--doux); font-size: 13px; }
.reglages dd { margin: 0; font-weight: 900; font-size: 17px; color: var(--marine); white-space: nowrap; }

/* ---------- page démo, aux couleurs du site vitrine ---------- */
.site-liens a.actif { color: var(--bleu-fonce); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.demo-hero { padding-top: 3.5rem; padding-bottom: 4rem; }
.site-note a { color: var(--bleu-fonce); }
.demo-deroule { flex: 1 1 300px; max-width: 380px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; padding: 26px; }
.demo-deroule > b { font-size: 20px; font-weight: 900; }
.demo-deroule ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.demo-deroule li { display: flex; gap: 14px; align-items: center; font-size: 16px; line-height: 1.4; font-weight: 600; color: var(--texte); }
.demo-deroule .site-numero { flex: none; width: 40px; height: 40px; font-size: 18px; }
.demo-artisans { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.demo-artisan { position: relative; display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 40px 14px 18px; border: 2px solid transparent; cursor: pointer; }
.demo-artisan input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.demo-artisan b { display: block; font-size: 17px; font-weight: 800; }
.demo-artisan small { font-size: 14px; font-weight: 600; color: var(--doux); }
.demo-artisan:hover { border-color: #C9D6F2; }
.demo-artisan:has(input:checked) { border-color: var(--bleu); background: #F7F9FE; }
.demo-artisan:has(input:checked)::after { content: '✓'; position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 12px; background: var(--bleu); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; }
.demo-artisan:has(input:focus-visible) { outline: 3px solid var(--bleu); outline-offset: 2px; }
.demo-artisan .pastille-artisan { flex: none; }
.demo-scenarios { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.demo-scenario { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 24px; border: 2px solid transparent; text-align: left; font-family: inherit; color: var(--encre); cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.demo-scenario:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); border-color: #C9D6F2; }
.demo-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.demo-tete .pastille { width: 48px; height: 48px; border-radius: 24px; }
.demo-tete .pastille svg { width: 24px; height: 24px; }
.demo-scenario > b { font-size: 21px; font-weight: 900; }
.demo-desc { flex: 1; font-size: 16px; line-height: 1.5; font-weight: 500; color: var(--texte); }
.demo-resultat { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 700; color: var(--vert); }
.demo-resultat svg { flex: none; width: 18px; height: 18px; }
.demo-lancer { margin-top: 6px; min-height: 56px; font-size: 17px; }
/* pages larges (Boîte SMS) : la barre s’aligne sur leur contenu */
.nav-large .site-largeur { max-width: 1240px; padding-left: clamp(16px, 3vw, 36px); padding-right: clamp(16px, 3vw, 36px); }

/* ---------- fiche artisan : diaporama plein écran des photos ---------- */
.diaporama { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: none; background: #0F1626; color: #fff; overflow: hidden; }
.diaporama::backdrop { background: #0F1626; }
.diapo-piste { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.diapo-piste::-webkit-scrollbar { display: none; }
.diapo-piste figure { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: center; display: flex; flex-direction: column; }
.diapo-piste img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.diapo-piste figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); font-size: 17px; }
.diapo-piste figcaption span { color: #C9D6F2; font-weight: 700; }
.diapo-fermer, .diapo-nav { position: absolute; z-index: 1; width: 56px; height: 56px; border: none; border-radius: 28px; background: rgba(255, 255, 255, 0.16); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.diapo-fermer { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.diapo-nav { top: 50%; transform: translateY(-50%); }
.diapo-nav.avant { left: 12px; }
.diapo-nav.apres { right: 12px; }

/* ---------- écran de démarrage de l'appli installée (PWA) ---------- */
.demarrage { display: none; }
@media (display-mode: standalone) {
  .demarrage {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    background: radial-gradient(circle at 50% 42%, var(--bleu-clair), var(--fond-page) 70%);
    color: var(--marine);
    animation: demarrage-sortie .45s ease-in 1.6s forwards;
  }
  .deja-demarre .demarrage { display: none; }
}
.demarrage b { font-size: 1.7rem; font-weight: 800; letter-spacing: -.01em; margin-top: 8px; opacity: 0; animation: demarrage-monte .5s ease-out .7s forwards; }
.demarrage span { color: var(--doux); font-weight: 600; opacity: 0; animation: demarrage-monte .5s ease-out .9s forwards; }
.logo-anime { filter: drop-shadow(0 12px 24px rgba(42, 70, 133, .25)); animation: demarrage-pose .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.logo-anime .toit { stroke-dasharray: 80; stroke-dashoffset: 80; animation: demarrage-trace .6s ease-out .25s forwards; }
.logo-anime .poutre { stroke-dasharray: 20; stroke-dashoffset: 20; animation: demarrage-trace .3s ease-out .75s forwards; }
.logo-anime .onde { opacity: 0; transform-box: fill-box; transform-origin: 0 100%; }
.logo-anime .onde-1 { animation: demarrage-sonne .9s ease-out .95s 2 both; }
.logo-anime .onde-2 { animation: demarrage-sonne .9s ease-out 1.1s 2 both; }
@keyframes demarrage-pose { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes demarrage-trace { to { stroke-dashoffset: 0; } }
@keyframes demarrage-sonne { 0% { opacity: 0; transform: scale(.6); } 40% { opacity: 1; transform: none; } 100% { opacity: 1; } }
@keyframes demarrage-monte { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes demarrage-sortie { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .demarrage, .demarrage *, .logo-anime * { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; }
  .demarrage { animation: demarrage-sortie .2s linear .8s forwards !important; }
}

/* Appel en direct avec Pépito */
.appel-direct { max-width: 640px; display: flex; flex-direction: column; gap: 16px; padding-top: 24px; padding-bottom: 40px; }
.appel-direct form { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.appel-direct label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.appel-direct .bouton { min-height: 64px; }
.etat-appel { margin-top: 12px; font-weight: 700; color: var(--bleu); }
.appel-direct .bulles { max-height: 50vh; overflow-y: auto; }
.appel-direct .petit { font-size: 14px; color: #5A6478; text-align: center; }
details.carte audio { width: 100%; margin: 12px 0; }
.bouton-direct { display: inline-flex; margin-top: 12px; }
.appel-direct [hidden] { display: none !important; }

/* ---------- Ma voix ---------- */
.voix-pepito { display: flex; flex-direction: column; gap: 18px; padding-top: 20px; padding-bottom: 40px; max-width: 880px; }
.voix-pepito form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.voix-pepito .bouton { min-height: 64px; }
.voix-ok { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--vert); }
.voix-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.voix-carte { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 2px solid var(--bord); border-radius: 18px; cursor: pointer; background: #fff; }
.voix-carte:has(input:checked) { border-color: var(--bleu); background: var(--fond); }
.voix-carte input { width: 22px; height: 22px; accent-color: var(--bleu); }
.voix-nom { display: flex; flex-direction: column; }
.voix-nom b { font-size: 19px; }
.voix-nom small, .voix-style { color: var(--texte); font-size: 15px; }
.voix-carte audio { width: 100%; }
.texte-a-lire { margin: 14px 0 0; padding: 14px 18px; border-left: 4px solid var(--bleu); background: var(--fond); border-radius: 12px; font-size: 18px; line-height: 1.5; }
.texte-a-lire p + p { margin-top: 8px; }
.voix-clone .accord { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.voix-clone .accord input { width: 24px; height: 24px; flex: none; }
.voix-clone audio { width: 100%; }
.voix-clone [hidden] { display: none !important; }

/* Version et date de mise à jour, en bas de page, discrètes. */
footer.version { text-align: center; font-size: 12px; color: var(--doux); padding: 12px 16px 20px; }
