/* ==========================================================================
   Vigie — application (aperçu /app-da/)
   Structure inspirée de Semrush : menu sombre à gauche avec groupes, barre
   d'outils en haut, cartes d'indicateurs cliquables, tableaux filtrables,
   lignes floutées au-delà de la formule Gratuite.
   Couleurs de la landing : quasi-noir pour le menu, papier pour le fond, lilas
   pour les baisses et les accents, orange « promo » pour les hausses, aqua
   réservé à l'action principale. Titres en Sora, texte en Inter.
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("polices/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("polices/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("polices/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Sora"; src: url("polices/sora-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Sora"; src: url("polices/sora-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --noir: #101214;
  --nuit-1: #191C20;
  --nuit-2: #24282D;
  --nuit-3: #343940;
  --gris-sombre: #A7ADB5;
  --papier: #F6F7F4;
  --blanc: #FFFFFF;
  --encre: #101214;
  --encre-2: #4B5058;
  --encre-3: #6B7078;
  --trait: #E3E6E1;
  --trait-doux: #EEF0EC;
  --survol: #F9FAF7;
  --lilas: #B8A4FF;
  --lilas-fonce: #5B3FD1;
  --lilas-doux: #EEE9FF;
  --aqua: #34E3C2;
  --aqua-survol: #22CBAB;
  --aqua-fonce: #0B7A66;
  --aqua-doux: #DCF7F0;
  --promo: #B4441C;
  --promo-doux: #FFE8DD;
  --promo-trait: #F5C6B1;
  --titre: "Sora", system-ui, sans-serif;
  --texte: "Inter", system-ui, sans-serif;
  --rayon: 12px;
  --ombre: 0 1px 2px rgba(16, 18, 20, .06), 0 12px 32px rgba(16, 18, 20, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { scrollbar-color: #C9CDC6 var(--papier); }
body { font: 400 14px/1.5 var(--texte); color: var(--encre); background: var(--papier); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--lilas-fonce); }
::selection { background: var(--lilas); color: var(--encre); }
:focus-visible { outline: 3px solid var(--lilas-fonce); outline-offset: 2px; border-radius: 6px; }
.menu :focus-visible { outline-color: var(--aqua); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tab { font-variant-numeric: tabular-nums; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Cadre ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); height: 100vh; height: 100dvh; }
.cadre { display: flex; flex-direction: column; min-width: 0; height: 100%; }
.contenu { flex: 1 1 auto; overflow: auto; padding: 28px 32px 56px; outline: none; }

/* ---------- Menu latéral ---------- */
.menu { display: flex; flex-direction: column; gap: 18px; height: 100%; overflow: auto; padding: 18px 12px 14px; background: var(--noir); color: var(--blanc); scrollbar-color: var(--nuit-3) var(--noir); }
.menu__haut { display: flex; align-items: center; justify-content: space-between; padding: 2px 8px 0; }
.menu__logo { display: flex; align-items: center; gap: 10px; color: var(--blanc); text-decoration: none; font: 700 21px/1 var(--titre); letter-spacing: -0.03em; }
.menu__logo svg { width: 41px; height: 20px; }
.menu__fermer { display: none; border: 0; background: none; color: var(--gris-sombre); padding: 6px; cursor: pointer; }
.projet { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--nuit-3); border-radius: 10px; background: var(--nuit-1); color: var(--blanc); text-decoration: none; }
.projet:hover { border-color: #4A5058; }
.projet__ini { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--lilas); color: var(--noir); font: 700 14px/1 var(--titre); }
.projet__txt { min-width: 0; display: grid; line-height: 1.3; }
.projet__txt b { overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.projet__txt span { font-size: 12px; color: var(--gris-sombre); }
.menu__nav { display: flex; flex-direction: column; gap: 2px; }
.menu__groupe { padding: 14px 12px 6px; font-size: 12px; font-weight: 500; color: #80868F; }
.menu__nav a, .menu__reglages { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 12px; border-radius: 8px; color: #D5D8DC; text-decoration: none; transition: background-color .15s, color .15s; }
.menu__nav a:hover, .menu__reglages:hover { background: var(--nuit-1); color: var(--blanc); }
.menu__nav a[aria-current="page"], .menu__reglages[aria-current="page"] { background: var(--nuit-2); color: var(--aqua); font-weight: 600; }
.menu__badge { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--lilas); color: var(--noir); font-size: 12px; font-weight: 600; text-align: center; }
.menu__badge--ko { background: var(--promo-doux); color: var(--promo); }
.menu__badge:empty { display: none; }
.menu__bas { margin-top: auto; display: grid; gap: 10px; }
.formule { padding: 14px; border: 1px solid var(--nuit-3); border-radius: 12px; background: var(--nuit-1); }
.formule__tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.formule__tete b { font-weight: 600; }
.formule__pastille { padding: 1px 8px; border-radius: 999px; background: var(--nuit-3); color: var(--gris-sombre); font-size: 12px; }
.formule p { margin: 6px 0 12px; font-size: 12px; line-height: 1.45; color: var(--gris-sombre); }
.formule button { width: 100%; }

/* ---------- Boutons ---------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
.bouton:disabled { opacity: .55; cursor: not-allowed; }
.bouton--aqua { background: var(--aqua); color: var(--noir); }
.bouton--aqua:hover:not(:disabled) { background: var(--aqua-survol); }
.bouton--sombre { background: var(--noir); color: var(--blanc); }
.bouton--sombre:hover:not(:disabled) { background: var(--nuit-2); }
.bouton--contour { border-color: var(--trait); background: var(--blanc); color: var(--encre); }
.bouton--contour:hover:not(:disabled) { border-color: var(--encre); }
.bouton--petit { min-height: 32px; padding: 0 12px; font-size: 13px; }
.bouton--lien { min-height: 0; padding: 0; border: 0; background: none; color: var(--lilas-fonce); font-weight: 600; }
.bouton--lien:hover { text-decoration: underline; text-underline-offset: 3px; }
.bouton--danger { border-color: var(--promo-trait); background: var(--blanc); color: var(--promo); }
.bouton-ic { position: relative; display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--trait); border-radius: 10px; background: var(--blanc); color: var(--encre); cursor: pointer; text-decoration: none; }
.bouton-ic:hover:not(:disabled) { border-color: var(--encre); }
.bouton-ic:disabled { opacity: .45; cursor: not-allowed; }
.bouton-ic--petit { width: 32px; height: 32px; border-radius: 8px; }
.bouton-ic--petit .ic { width: 15px; height: 15px; }
.bouton-ic--nu { border-color: transparent; background: transparent; color: var(--encre-3); }
.bouton-ic--nu:hover:not(:disabled) { border-color: var(--trait); color: var(--encre); background: var(--blanc); }
.tourne .ic { animation: tourne 1s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* ---------- Barre du haut ---------- */
.barre { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px 32px; border-bottom: 1px solid var(--trait); background: var(--blanc); }
.barre__menu { display: none; }
.recherche { display: flex; align-items: center; gap: 8px; flex: 0 1 260px; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--trait); border-radius: 10px; background: var(--papier); color: var(--encre-3); }
.recherche:focus-within { border-color: var(--encre); background: var(--blanc); }
.recherche input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--encre); }
.ajout { display: flex; align-items: center; gap: 8px; flex: 1 1 420px; max-width: 620px; min-width: 0; height: 44px; padding: 2px 2px 2px 12px; border: 1px solid var(--trait); border-radius: 999px; background: var(--blanc); color: var(--encre-3); }
.ajout:focus-within { border-color: var(--encre); box-shadow: 0 0 0 3px var(--aqua-doux); }
.ajout input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--encre); }
.ajout input::placeholder, .recherche input::placeholder { color: #7D828A; }
.ajout .bouton { min-height: 38px; }
.barre__outils { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.compte { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lilas-doux); color: var(--lilas-fonce); font: 700 15px/1 var(--titre); text-decoration: none; }
.notifs { position: relative; }
.notifs__point { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--lilas-fonce); box-shadow: 0 0 0 2px var(--blanc); }
.notifs__point:empty:not(.actif) { display: none; }
.notifs__panneau { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 380px; max-width: calc(100vw - 24px); border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--blanc); box-shadow: var(--ombre); overflow: hidden; }
.notifs__tete { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--trait-doux); }
.notifs__tete b { font: 600 15px/1.3 var(--titre); }
.notifs__liste { max-height: 380px; overflow: auto; }
.notif { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--trait-doux); color: var(--encre); text-decoration: none; }
.notif:hover { background: var(--survol); }
.notif.non-lue { background: #F9F7FF; }
.notif__titre { overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.notif__meta { font-size: 12px; color: var(--encre-3); }
.notif__heure { font-size: 12px; color: var(--encre-3); white-space: nowrap; }
.notifs__pied { padding: 12px 16px; text-align: center; }

.bandeau-exemple { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 16px; padding: 10px 32px; background: var(--lilas-doux); color: var(--encre); font-size: 13px; }
.bandeau-exemple[hidden] { display: none; }
.bandeau-exemple .bouton { min-height: 30px; padding: 0 12px; font-size: 13px; }

/* ---------- En-tête de page ---------- */
.page__tete { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; margin-bottom: 20px; }
.page__titre { margin-right: auto; min-width: 0; }
.page__titre h1 { font: 700 28px/1.2 var(--titre); letter-spacing: -0.03em; }
.page__titre p { margin-top: 4px; color: var(--encre-2); }
.page__outils { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.segments { display: inline-flex; padding: 3px; border: 1px solid var(--trait); border-radius: 10px; background: var(--blanc); }
.segments button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--encre-2); font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.segments button:hover { color: var(--encre); }
.segments button[aria-pressed="true"] { background: var(--noir); color: var(--blanc); }
.segments b { margin-left: 4px; font-weight: 600; opacity: .7; }
.choix { min-height: 40px; max-width: 220px; padding: 0 34px 0 12px; border: 1px solid var(--trait); border-radius: 10px; background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234B5058' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; font-size: 13px; appearance: none; cursor: pointer; }
.choix:hover { border-color: var(--encre); }
.choix--petit { min-height: 32px; font-size: 12px; }
.filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--trait-doux); }
.filtres__fin { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* ---------- Cartes ---------- */
.grille { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.l-3 { grid-column: span 3; } .l-4 { grid-column: span 4; } .l-5 { grid-column: span 5; } .l-7 { grid-column: span 7; } .l-8 { grid-column: span 8; } .l-12 { grid-column: span 12; }
.carte { min-width: 0; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--blanc); }
.carte__tete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 16px 20px; border-bottom: 1px solid var(--trait-doux); }
.carte__tete h2 { margin-right: auto; font: 600 16px/1.3 var(--titre); letter-spacing: -0.01em; }
.carte__tete p { width: 100%; margin-top: -4px; font-size: 13px; color: var(--encre-3); }
.carte__corps { padding: 16px 20px 20px; }
.carte__pied { padding: 12px 20px; border-top: 1px solid var(--trait-doux); }

.kpi { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px 20px; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--blanc); color: var(--encre); text-align: left; text-decoration: none; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.kpi:hover { border-color: var(--encre); }
.kpi__libelle { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--encre-2); }
.kpi__valeur { font: 700 30px/1.15 var(--titre); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kpi__valeur small { font: 600 16px/1 var(--titre); color: var(--encre-3); letter-spacing: 0; }
.kpi__bas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--encre-3); }
.kpi__barres { display: flex; align-items: flex-end; gap: 2px; height: 28px; margin-top: 2px; }
.kpi__barres i { flex: 1; min-height: 2px; border-radius: 2px 2px 0 0; background: var(--lilas); }
.kpi__barres i.zero { background: var(--trait-doux); }

/* ---------- Pastilles et badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.badge--baisse { background: var(--lilas-doux); color: var(--lilas-fonce); }
.badge--hausse { background: var(--promo-doux); color: var(--promo); }
.badge--neutre { background: var(--trait-doux); color: var(--encre-2); }
.badge--vert { background: var(--aqua-doux); color: var(--aqua-fonce); }
.pastille { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 7px; background: var(--c, var(--encre)); color: var(--blanc); font: 700 11px/1 var(--texte); }
.pastille--grande { width: 36px; height: 36px; border-radius: 9px; font-size: 13px; }
.conc { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.conc span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.secondaire { color: var(--encre-3); font-size: 12px; }

/* ---------- Tableaux ---------- */
.table-zone { overflow-x: auto; }
.tableau { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tableau th { padding: 10px 16px; border-bottom: 1px solid var(--trait); background: var(--blanc); color: var(--encre-3); font-size: 12px; font-weight: 500; text-align: left; white-space: nowrap; }
.tableau td { padding: 12px 16px; border-bottom: 1px solid var(--trait-doux); vertical-align: middle; }
.tableau tbody tr:hover > td { background: var(--survol); }
.tableau .d { text-align: right; }
.tableau .c { text-align: center; }
.tableau .nom { display: block; overflow: hidden; color: var(--encre); font-weight: 600; text-decoration: none; white-space: nowrap; text-overflow: ellipsis; }
a.nom:hover { color: var(--lilas-fonce); text-decoration: underline; text-underline-offset: 2px; }
.tableau .prix { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tableau .barre-prix { color: var(--encre-3); text-decoration: line-through; font-size: 12px; margin-right: 6px; }
.tri { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.tri:hover { color: var(--encre); }
th[aria-sort] .tri { color: var(--encre); font-weight: 600; }
.tri svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.tableau--compact td { padding: 10px 16px; }
.cellule-min { background: var(--aqua-doux) !important; }
.cellule-min .prix { color: var(--aqua-fonce); }
.cellule-vous { background: #FAF8FF; }
.tableau tbody tr:hover > td.cellule-vous { background: #F4F0FF; }
.vide-cellule { color: #A3A8AE; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; color: var(--encre-3); font-size: 13px; }
.pagination div { display: flex; gap: 6px; }

/* Flou de la formule Gratuite (façon Semrush) */
.zone-floue { position: relative; }
.zone-floue .tableau { filter: blur(5px); user-select: none; pointer-events: none; }
.zone-floue .tableau thead { visibility: collapse; }
.verrou { position: absolute; left: 50%; top: 50%; z-index: 2; width: min(400px, calc(100% - 32px)); padding: 22px 24px; border: 1px solid var(--lilas); border-radius: 14px; background: var(--blanc); box-shadow: var(--ombre); text-align: center; transform: translate(-50%, -50%); }
.verrou b { display: block; font: 600 17px/1.3 var(--titre); letter-spacing: -0.01em; }
.verrou p { margin: 6px 0 14px; color: var(--encre-2); font-size: 13px; }

/* ---------- Graphique ---------- */
.legende { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; font-size: 12px; color: var(--encre-2); }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.legende i { width: 16px; height: 0; border-top: 2px solid var(--c); }
.legende i.pointille { border-top-style: dashed; }
.graphe { position: relative; height: 280px; }
.graphe svg { display: block; width: 100%; height: 100%; overflow: visible; }
.graphe .axe { fill: var(--encre-3); font: 400 11px/1 var(--texte); font-variant-numeric: tabular-nums; }
.graphe .grille-h { stroke: var(--trait-doux); stroke-width: 1; }
.graphe .serie { fill: none; stroke-width: 2; stroke-linejoin: round; }
.graphe .curseur { stroke: var(--encre-3); stroke-width: 1; stroke-dasharray: 3 3; }
.graphe .point { stroke: var(--blanc); stroke-width: 2; }
.infobulle { position: absolute; z-index: 3; min-width: 200px; padding: 10px 12px; border: 1px solid var(--trait); border-radius: 10px; background: var(--blanc); box-shadow: var(--ombre); font-size: 12px; pointer-events: none; }
.infobulle b { display: block; margin-bottom: 6px; font-weight: 600; }
.infobulle div { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 2px 0; }
.infobulle div span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--encre-2); }
.infobulle div span i { width: 10px; height: 0; border-top: 2px solid var(--c); flex: none; }
.infobulle div span i.pointille { border-top-style: dashed; }
.infobulle div em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.courbe { display: block; width: 96px; height: 26px; overflow: visible; }
.courbe polyline { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }

/* ---------- Listes ---------- */
.liste-chg { margin: 0; padding: 0; list-style: none; }
.liste-chg li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 20px; border-bottom: 1px solid var(--trait-doux); }
.liste-chg li:last-child { border-bottom: 0; }
.liste-chg .nom { overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; color: var(--encre); text-decoration: none; }
.liste-chg .ligne2 { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--encre-3); }
.etat { display: grid; gap: 14px; }
.etat__ligne { display: flex; align-items: center; gap: 12px; }
.etat__ligne b { font: 700 22px/1 var(--titre); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.jauge { height: 8px; border-radius: 999px; background: var(--trait-doux); overflow: hidden; }
.jauge i { display: block; height: 100%; border-radius: 999px; background: var(--aqua-fonce); }

/* ---------- Produits ---------- */
.onglets { display: flex; gap: 4px; padding: 0 16px; border-bottom: 1px solid var(--trait); overflow-x: auto; }
.onglets button { position: relative; min-height: 46px; padding: 0 12px; border: 0; background: none; color: var(--encre-2); font-weight: 500; white-space: nowrap; cursor: pointer; }
.onglets button:hover { color: var(--encre); }
.onglets button[aria-selected="true"] { color: var(--encre); font-weight: 600; }
.onglets button[aria-selected="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--lilas-fonce); }
.onglets b { margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--trait-doux); font-size: 12px; }
.onglets b.ko { background: var(--promo-doux); color: var(--promo); }
.creer { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--trait-doux); background: var(--survol); }
.champ { min-width: 0; min-height: 40px; padding: 0 12px; border: 1px solid var(--trait); border-radius: 10px; background: var(--blanc); font-size: 14px; }
.champ:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px var(--lilas-doux); }
.champ--prix { width: 110px; text-align: right; font-variant-numeric: tabular-nums; }
.champ--petit { min-height: 32px; font-size: 13px; }
.prix-saisie { display: inline-flex; align-items: center; gap: 4px; }
.deplier { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--encre); font-weight: 600; text-align: left; cursor: pointer; max-width: 100%; }
.deplier svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.5; transition: transform .15s; }
.deplier[aria-expanded="true"] svg { transform: rotate(90deg); }
.deplier span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
tr.sous > td { background: var(--survol); }
tr.sous > td:first-child { padding-left: 40px; }
.fiche { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fiche__txt { min-width: 0; }
.vignette { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 8px; background: var(--trait-doux); object-fit: cover; }
.actions { display: flex; justify-content: flex-end; gap: 4px; }
.ko-ligne td { background: #FFFAF6; }
.ko__msg { margin-top: 2px; font-size: 12px; color: var(--encre-2); white-space: normal; }
.ko__msg button { padding: 0; border: 0; background: none; color: var(--promo); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ko__aide { margin-top: 6px; font-size: 12px; color: var(--encre-2); white-space: normal; }
.ko form { display: flex; gap: 6px; }
.icone-ko { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 8px; background: var(--promo-doux); color: var(--promo); }

/* ---------- Concurrents ---------- */
.interrupteur { position: relative; flex: none; width: 40px; height: 24px; padding: 0; border: 0; border-radius: 999px; background: #C9CDC6; cursor: pointer; transition: background-color .2s; }
.interrupteur i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--blanc); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .2s; }
.interrupteur[aria-checked="true"] { background: var(--aqua-fonce); }
.interrupteur[aria-checked="true"] i { transform: translateX(16px); }
.reglages-conc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: 8px 12px; align-items: end; max-width: 760px; }
.reglages-conc label { display: grid; gap: 4px; font-size: 12px; color: var(--encre-2); }

/* ---------- Réglages ---------- */
.reglages { display: grid; gap: 12px; max-width: 720px; }
.reglage { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px 20px; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--blanc); }
.reglage > div:first-child { flex: 1 1 280px; }
.reglage b { display: block; font-weight: 600; }
.reglage p { font-size: 13px; color: var(--encre-2); }

/* ---------- États vides ---------- */
.vide { display: grid; justify-items: center; gap: 8px; padding: 48px 24px; text-align: center; color: var(--encre-2); }
.vide b { font: 600 18px/1.3 var(--titre); color: var(--encre); letter-spacing: -0.01em; }
.vide p { max-width: 460px; }
.vide .bouton { margin-top: 8px; }
.accueil { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 32px; }
.accueil h2 { font: 700 26px/1.2 var(--titre); letter-spacing: -0.03em; }
.accueil > div > p { margin-top: 8px; color: var(--encre-2); max-width: 520px; }
.etapes { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: e; }
.etapes li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--trait); border-radius: 12px; background: var(--survol); counter-increment: e; }
.etapes li::before { content: counter(e); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--noir); color: var(--aqua); font: 700 14px/1 var(--titre); }
.etapes b { display: block; }
.etapes span { font-size: 13px; color: var(--encre-2); }
.accueil__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: calc(100% - 32px); padding: 10px 18px; border-radius: 999px; background: var(--noir); color: var(--blanc); font-size: 13px; font-weight: 500; opacity: 0; transform: translate(-50%, 8px); transition: opacity .25s, transform .3s; pointer-events: none; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.voile { display: none; }

/* ---------- Écrans moyens ---------- */
@media (max-width: 1240px) {
  .l-3 { grid-column: span 6; }
  .l-8, .l-4, .l-7, .l-5 { grid-column: span 12; }
  .recherche { flex-basis: 200px; }
}

/* ---------- Tablette et mobile : menu escamotable ---------- */
@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .menu { position: fixed; inset: 0 auto 0 0; z-index: 50; width: 280px; transform: translateX(-100%); transition: transform .25s ease-out; }
  .menu.ouvert { transform: none; box-shadow: var(--ombre); }
  .menu__fermer { display: inline-grid; }
  .voile.ouvert { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(16, 18, 20, .45); }
  .barre { flex-wrap: wrap; padding: 10px 16px; }
  .barre__menu { display: inline-grid; }
  .recherche { order: 4; flex: 1 1 100%; }
  .ajout { order: 5; flex: 1 1 100%; max-width: none; }
  .contenu { padding: 20px 16px 48px; }
  .bandeau-exemple { padding: 10px 16px; }
  .accueil { grid-template-columns: minmax(0, 1fr); padding: 24px; }
}
@media (max-width: 640px) {
  .l-3 { grid-column: span 12; }
  .barre__outils .bouton span { display: none; }
  .barre__outils .bouton { padding: 0 11px; }
  .page__titre h1 { font-size: 24px; }
  .kpi__valeur { font-size: 26px; }
  .filtres__fin { margin-left: 0; }
  .reglages-conc { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Ajustements après vérification */
.tableau select.choix { width: 100%; max-width: 100%; }
.tableau td.nowrap, .tableau .nowrap { white-space: nowrap; }
@media (max-width: 640px) {
  .notifs__panneau { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; }
}

/* ---------- Logo de la boutique (habillage à sa marque) ---------- */
.projet__ini { overflow: hidden; }
.projet__ini img, .compte__ini img, .emb__logo img { width: 100%; height: 100%; object-fit: contain; }
.projet__ini:has(img) { padding: 3px; background: var(--blanc); }
.compte { overflow: hidden; }
.compte__ini { display: grid; place-items: center; width: 100%; height: 100%; }
.compte:has(img) { background: var(--blanc); border: 1px solid var(--trait); padding: 4px; }
.origine { margin: 2px 0 0 22px; }
.origine a { color: var(--encre-2); }
.origine .bouton--lien { font-size: 12px; }

/* ---------- Votre boutique : écran d'arrivée ---------- */
body.emb-ouvert { overflow: hidden; }
.embarquement { position: fixed; inset: 0; z-index: 80; overflow: auto; background: var(--papier); }
.embarquement[hidden] { display: none; }
.emb__haut { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 18px 32px; background: var(--noir); }
.emb__vigie { display: flex; align-items: center; gap: 10px; color: var(--blanc); text-decoration: none; font: 700 21px/1 var(--titre); letter-spacing: -0.03em; }
.emb__vigie svg { width: 41px; height: 20px; }
.emb__etapes { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; color: var(--gris-sombre); font-size: 13px; }
.emb__etapes li { display: flex; align-items: center; gap: 8px; }
.emb__etapes span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--nuit-3); border-radius: 50%; font-size: 12px; font-weight: 600; }
.emb__etapes li.actif { color: var(--blanc); font-weight: 600; }
.emb__etapes li.actif span { border-color: var(--aqua); background: var(--aqua); color: var(--noir); }
.emb__etapes li.fait span { border-color: var(--lilas); background: var(--lilas); color: var(--noir); }
.emb__corps { display: grid; justify-items: center; padding: clamp(24px, 6vw, 72px) 16px 64px; }
.emb__carte { width: min(640px, 100%); padding: clamp(24px, 4vw, 40px); border: 1px solid var(--trait); border-radius: 20px; background: var(--blanc); }
.emb__carte--large { width: min(960px, 100%); }
.emb__carte h1 { font: 700 clamp(24px, 3vw, 30px)/1.2 var(--titre); letter-spacing: -0.03em; text-wrap: balance; }
.emb__carte > p { margin-top: 10px; color: var(--encre-2); font-size: 15px; max-width: 62ch; }
.emb__adresse { display: flex; align-items: center; gap: 4px; margin-top: 24px; padding: 4px 4px 4px 16px; border: 1px solid var(--trait); border-radius: 999px; background: var(--blanc); }
.emb__adresse:focus-within { border-color: var(--encre); box-shadow: 0 0 0 3px var(--aqua-doux); }
.emb__prefixe { color: var(--encre-3); }
.emb__adresse input { flex: 1; min-width: 0; height: 44px; border: 0; outline: none; background: transparent; font-size: 16px; }
.emb__adresse .bouton { min-height: 44px; }
.emb__erreur { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--promo-doux); color: var(--promo); font-size: 14px; }
.emb__note { margin-top: 12px; color: var(--encre-3); font-size: 13px; }
.emb__liens { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--trait-doux); }
.emb__marque { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.emb__marque b { display: block; font: 600 17px/1.3 var(--titre); }
.emb__marque span { color: var(--encre-3); font-size: 13px; }
.emb__logo { display: grid; place-items: center; flex: none; width: 48px; height: 48px; padding: 4px; overflow: hidden; border: 1px solid var(--trait); border-radius: 12px; background: var(--blanc); color: var(--lilas-fonce); font: 700 20px/1 var(--titre); }
.emb__suivi { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.emb__suivi li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px 12px; align-items: center; color: var(--encre-3); }
.emb__suivi li::before { content: ""; width: 18px; height: 18px; border: 2px solid var(--trait); border-radius: 50%; }
.emb__suivi li.actif { color: var(--encre); font-weight: 500; }
.emb__suivi li.actif::before { border-color: var(--trait); border-top-color: var(--lilas-fonce); animation: tourne .9s linear infinite; }
.emb__suivi li.fait { color: var(--encre); }
.emb__suivi li.fait::before { border-color: var(--aqua-fonce); background: var(--aqua-fonce) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.emb__suivi .jauge { grid-column: 2; }
.emb__outils { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.emb__outils .recherche { flex: 1 1 260px; max-width: 360px; }
.emb__compte { color: var(--encre-2); }
.emb__compte b { color: var(--encre); font-size: 16px; }
.emb__catalogue { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; max-height: min(52vh, 520px); overflow: auto; margin: 14px 0 0; padding: 2px; list-style: none; }
.emb__catalogue label { display: grid; grid-template-columns: 18px 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--trait); border-radius: 10px; cursor: pointer; }
.emb__catalogue label:hover { border-color: var(--encre-3); }
.emb__catalogue label.coche { border-color: var(--lilas-fonce); background: #FAF8FF; }
.emb__catalogue label.bloque { opacity: .5; cursor: not-allowed; }
.emb__catalogue input { width: 18px; height: 18px; margin: 0; accent-color: var(--lilas-fonce); }
.emb__nom { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; font-weight: 500; line-height: 1.35; }
.emb__plus { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.emb__limite { margin-top: 12px; font-size: 13px; color: var(--encre-2); }
.emb__actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--trait-doux); }
@media (max-width: 640px) {
  .emb__haut { padding: 14px 16px; }
  .emb__adresse { flex-wrap: wrap; border-radius: 16px; padding: 8px; }
  .emb__prefixe { display: none; }
  .emb__adresse .bouton { width: 100%; }
}

/* ---------- Ajouter un concurrent ---------- */
.ajout-conc { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 16px; padding: 18px 20px; }
.ajout-conc__txt { display: grid; }
.ajout-conc__txt b { font: 600 16px/1.3 var(--titre); }
.ajout-conc__txt span { font-size: 13px; color: var(--encre-3); }
.ajout-conc__champ { flex: 1 1 380px; margin-top: 0; }
.emb__titre-mode { color: var(--blanc); font: 600 15px/1 var(--titre); }

/* ==========================================================================
   Habillage façon Semrush (2 décembre) : cadre neutre et clair, la couleur
   vient des données (chiffres, courbes teintées, anneaux, jauges, barres).
   ========================================================================== */
:root {
  --fond-page: #F4F5F7;
  --bord: #E1E4E8;
  --bord-doux: #EDEFF2;
  --texte-2: #5A6069;
  --texte-3: #7C828B;
  --lien: #5B3FD1;
  --rayon: 6px;
}
body { background: var(--fond-page); font-size: 14px; }

/* Menu clair */
.menu { background: var(--blanc); color: var(--encre); border-right: 1px solid var(--bord); scrollbar-color: #D5D8DD var(--blanc); gap: 14px; padding: 16px 12px 12px; }
.menu :focus-visible { outline-color: var(--lilas-fonce); }
.menu__logo { color: var(--encre); font-size: 20px; }
.menu__logo svg { width: 39px; height: 19px; }
.menu__logo svg circle:first-child { stroke: #5B3FD1; }
.menu__logo svg circle:nth-child(2) { stroke: #1FB89B; }
.menu__logo svg rect:first-of-type { fill: #5B3FD1; }
.menu__logo svg rect:last-of-type { fill: #1FB89B; }
.menu__fermer { color: var(--texte-3); }
.projet { border-color: var(--bord); background: var(--fond-page); color: var(--encre); border-radius: 8px; }
.projet:hover { border-color: #C9CDD3; }
.projet__txt span { color: var(--texte-3); }
.menu__groupe { padding: 14px 12px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #9AA0A8; }
.menu__nav a, .menu__reglages { min-height: 36px; padding: 6px 12px; border-radius: 6px; color: #3B4048; font-size: 14px; }
.menu__nav a .ic, .menu__reglages .ic { color: #8A9098; }
.menu__nav a:hover, .menu__reglages:hover { background: var(--fond-page); color: var(--encre); }
.menu__nav a[aria-current="page"], .menu__reglages[aria-current="page"] { background: var(--lilas-doux); color: var(--lilas-fonce); font-weight: 600; }
.menu__nav a[aria-current="page"] .ic, .menu__reglages[aria-current="page"] .ic { color: var(--lilas-fonce); }
.menu__badge { background: var(--lilas-fonce); color: var(--blanc); font-size: 11px; }
.formule { border-color: var(--bord); background: linear-gradient(180deg, #F7F4FF, #FFFFFF); }
.formule__pastille { background: var(--lilas-doux); color: var(--lilas-fonce); }
.formule p { color: var(--texte-2); }
.formule .bouton--contour[data-formule] { background: var(--blanc) !important; color: var(--encre) !important; border-color: var(--bord) !important; }

/* Barre du haut */
.barre { min-height: 60px; padding: 10px 28px; border-bottom-color: var(--bord); }
.recherche { height: 36px; border-radius: 6px; background: var(--fond-page); border-color: transparent; }
.recherche:focus-within { border-color: var(--lilas-fonce); }
.ajout { height: 38px; border-radius: 6px; }
.ajout .bouton { min-height: 32px; border-radius: 4px; }
.bouton { border-radius: 6px; min-height: 36px; font-size: 13px; padding: 0 14px; }
.bouton--petit { min-height: 28px; font-size: 12px; padding: 0 10px; }
.bouton-ic { width: 36px; height: 36px; border-radius: 6px; }
.compte { width: 36px; height: 36px; }

/* En-tête de page : fil d'Ariane, « Page : Boutique ▾ », domaine et étiquette */
.contenu { padding: 18px 28px 48px; }
.fil-ariane { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; font-size: 12px; color: var(--texte-3); }
.fil-ariane a { color: var(--texte-3); text-decoration: none; }
.fil-ariane a:hover { color: var(--lilas-fonce); text-decoration: underline; }
.page__tete { margin-bottom: 16px; align-items: flex-end; }
.page__titre h1 { font: 600 26px/1.25 var(--titre); letter-spacing: -0.02em; }
.page__titre h1 .projet-nom { color: var(--lilas-fonce); }
.page__titre p { margin-top: 6px; font-size: 13px; color: var(--texte-2); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.etiquette { display: inline-flex; align-items: center; padding: 0 8px; height: 20px; border: 1px solid var(--bord); border-radius: 4px; background: var(--blanc); font-size: 11px; font-weight: 600; letter-spacing: .03em; color: var(--texte-2); }
.etiquette--lilas { border-color: #D9CFFF; background: var(--lilas-doux); color: var(--lilas-fonce); }
.sep { width: 1px; height: 14px; background: var(--bord); }

/* Cartes et widgets */
.grille { gap: 16px; }
.carte, .kpi, .reglage { border-color: var(--bord); border-radius: var(--rayon); }
.carte__tete { padding: 16px 20px 0; border-bottom: 0; }
.carte__tete h2 { font: 600 17px/1.3 var(--texte); letter-spacing: 0; }
.carte__tete .maj { margin-left: auto; font-size: 12px; color: var(--texte-3); white-space: nowrap; }
.carte__tete + .table-zone, .carte__tete + .liste-chg { margin-top: 12px; }
.carte__corps { padding: 14px 20px 18px; }
.carte__pied { padding: 0 20px 18px; border-top: 0; }
.bouton--rapport { min-height: 28px; padding: 0 10px; border: 1px solid #C9CDD3; border-radius: 4px; background: linear-gradient(#FFFFFF, #F4F5F7); color: #3B4048; font-size: 12px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; }
.bouton--rapport:hover { border-color: #9AA0A8; color: var(--encre); }
.info { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-left: 4px; border-radius: 50%; color: #A3A8AE; font: italic 600 11px/1 Georgia, serif; cursor: help; vertical-align: 1px; }
.lien-bleu { color: var(--lien); text-decoration: none; }
.lien-bleu:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Tableaux plus denses, liens colorés */
.tableau th { padding: 8px 14px; font-size: 12px; color: var(--texte-3); border-bottom-color: var(--bord); background: #FAFBFC; }
.tableau td { padding: 10px 14px; font-size: 13px; border-bottom-color: var(--bord-doux); }
.tableau .nom { font-weight: 500; color: var(--lien); }
.tableau .nom:is(span) { color: var(--encre); }
.tableau .prix { font-weight: 600; }
.tableau--compact td { padding: 8px 14px; }
.badge { font-size: 11px; padding: 1px 8px; border-radius: 4px; }
.segments { border-radius: 6px; }
.segments button { min-height: 28px; border-radius: 4px; font-size: 12px; }
.segments button[aria-pressed="true"] { background: var(--lilas-fonce); }
.choix { min-height: 34px; border-radius: 6px; font-size: 12px; }
.filtres { padding: 10px 14px; border-bottom-color: var(--bord); }
.onglets button[aria-selected="true"]::after { height: 2px; }

/* Chiffres colorés, façon Semrush */
.chiffre { font: 600 30px/1.1 var(--texte); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--lien); }
.chiffre--moyen { font-size: 22px; }
.chiffre--hausse { color: #D9531E; }
.chiffre--baisse { color: var(--lilas-fonce); }
.chiffre--vert { color: #0C8C72; }
.chiffre--orange { color: #E0782F; }
.variation-mini { font-size: 12px; font-weight: 600; }
.variation-mini.hausse { color: #D9531E; }
.variation-mini.baisse { color: #0C8C72; }
.libelle { display: flex; align-items: center; font-size: 13px; font-weight: 600; color: #3B4048; margin-bottom: 4px; }
.sous-libelle { font-size: 12px; color: var(--texte-3); }

/* Widget « Positionnement » : 3 colonnes séparées par des filets */
.widget-cols { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr) minmax(0, 1.1fr); }
.widget-cols > * { min-width: 0; padding: 0 20px; }
.widget-cols > * + * { border-left: 1px solid var(--bord-doux); }
.widget-cols > :first-child { padding-left: 0; }
.widget-cols > :last-child { padding-right: 0; }
.aire { display: block; width: 100%; height: 150px; margin-top: 10px; }
.aire--mini { height: 34px; margin-top: 6px; }
.quatre { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; margin-top: 6px; }
.quatre .ligne-chiffre { display: flex; align-items: center; gap: 8px; }
.anneau { width: 26px; height: 26px; flex: none; transform: rotate(-90deg); }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini-table th { padding: 6px 0; text-align: left; font-size: 12px; font-weight: 500; color: var(--texte-3); border-bottom: 1px solid var(--bord); }
.mini-table td { padding: 7px 0; border-bottom: 1px solid var(--bord-doux); }
.mini-table .d { text-align: right; }
.mini-table td:first-child { max-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-right: 8px; width: 60%; }

/* Widget « Relevé » */
.releve { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 20px; }
.jauge-demi { position: relative; width: 100%; max-width: 190px; }
.jauge-demi svg { display: block; width: 100%; height: auto; }
.jauge-demi__val { position: absolute; left: 0; right: 0; bottom: 2px; text-align: center; }
.jauge-demi__val b { display: block; font: 600 26px/1 var(--texte); letter-spacing: -0.02em; }
.jauge-demi__val span { font-size: 11px; color: var(--texte-3); }
.bloc-teinte { height: 60px; margin-top: 8px; border-radius: 2px; }
.empile { display: flex; height: 44px; margin-top: 8px; gap: 2px; }
.empile i { display: block; min-width: 3px; }
.empile i:first-child { border-radius: 2px 0 0 2px; }
.empile i:last-child { border-radius: 0 2px 2px 0; }
.legende-mini { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 12px; color: var(--texte-2); }
.legende-mini span { display: inline-flex; align-items: center; gap: 5px; }
.legende-mini i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }

/* Widget « Changements » : barres par jour */
.barres-jour { display: flex; align-items: flex-end; gap: 3px; height: 110px; margin-top: 10px; padding-bottom: 1px; border-bottom: 1px solid var(--bord); }
.barres-jour > div { flex: 1; display: flex; flex-direction: column-reverse; gap: 1px; min-width: 2px; }
.barres-jour i { display: block; border-radius: 1px; }
.barres-jour .b { background: #8C74F0; }
.barres-jour .h { background: #F0A06A; }
.axe-jours { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; color: var(--texte-3); }
.deux { display: flex; gap: 28px; }
.pastille-rond { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }

/* KPI (autres pages) : chiffres colorés, coins nets */
.kpi { padding: 16px 18px; gap: 4px; }
.kpi__libelle { font-size: 13px; font-weight: 600; color: #3B4048; }
.kpi__valeur { font: 600 28px/1.15 var(--texte); letter-spacing: -0.02em; color: var(--lien); }
.kpi__valeur small { font: 500 14px/1 var(--texte); }
.kpi[data-comp-filtre="plus"] .kpi__valeur { color: #D9531E; }
.kpi[data-comp-filtre="moins"] .kpi__valeur { color: #0C8C72; }
.kpi[data-comp-filtre="aligne"] .kpi__valeur { color: #3B4048; }
.pastille { border-radius: 5px; }

@media (max-width: 1240px) {
  .widget-cols { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .widget-cols > * { padding: 0; }
  .widget-cols > * + * { border-left: 0; border-top: 1px solid var(--bord-doux); padding-top: 18px; }
}
@media (max-width: 960px) { .contenu { padding: 16px 14px 40px; } .barre { padding: 10px 14px; } }
.menu__badge--ko { background: var(--promo-doux); color: var(--promo); }
.mini-table th { white-space: nowrap; }
.mini-table td { white-space: nowrap; }
.mini-table .d { padding-left: 10px; }
.aire { height: 190px; }
.aire--mini { height: 44px; }
.carte { display: flex; flex-direction: column; }
.carte > .carte__corps { flex: 1 1 auto; }
.releve .bloc-teinte { height: 72px; }
.barres-jour > div { height: 100%; justify-content: flex-start; }
.barres-jour > div:hover i { filter: brightness(.9); }
.qui-bouge { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--bord-doux); }
.barre-h { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.barre-h + .barre-h { margin-top: 8px; }
.barre-h > span:first-child { width: 110px; flex: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--texte-2); }
.barre-h .piste { flex: 1; height: 10px; border-radius: 2px; background: var(--bord-doux); overflow: hidden; display: flex; }
.barre-h .piste i { display: block; height: 100%; }
.barre-h b { width: 28px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.ajout-conc.carte { flex-direction: row; flex-wrap: wrap; align-items: center; }
.ajout-conc .emb__adresse { border-radius: 6px; padding: 3px 3px 3px 12px; }
.ajout-conc .emb__adresse input { height: 36px; font-size: 14px; }
.ajout-conc .emb__adresse .bouton { min-height: 32px; }

/* ==========================================================================
   Sans défilement (2 décembre) : le menu tient toujours en hauteur, la Vue
   d'ensemble remplit l'écran, les listes sont paginées selon la fenêtre.
   ========================================================================== */
.menu { gap: 10px; padding: 14px 10px 10px; overflow: hidden; }
.menu__haut { padding: 2px 6px 0; }
.projet { padding: 8px; }
.projet__ini { width: 30px; height: 30px; }
.menu__groupe { padding: 10px 12px 2px; }
.menu__nav a, .menu__reglages { min-height: 34px; padding: 5px 12px; }
.menu__bas { gap: 6px; }
.formule { padding: 10px 12px; }
.formule p { margin: 4px 0 8px; }
@media (max-height: 780px) {
  .formule p { display: none; }
  .formule__tete { margin-bottom: 8px; }
}
@media (max-height: 600px) {
  .formule { display: none; }
  .menu__groupe { padding-top: 6px; }
  .menu__nav a, .menu__reglages { min-height: 30px; }
}

/* Vue d'ensemble ajustée à l'écran (bureau) */
.carte__tete .voir { margin-left: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.remplit { position: relative; flex: 1 1 auto; min-height: 44px; margin-top: 8px; }
.remplit > svg { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
.col-flex { display: flex; flex-direction: column; min-height: 0; }
.ajuste-liste { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.releve2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 16px; align-items: start; }
.releve2 .jauge-demi { max-width: 170px; }
.releve2 .chiffre--moyen { font-size: 20px; }
.empile--fin { height: 14px; margin-top: 6px; }
.mouvement { display: flex; height: 8px; min-width: 60px; border-radius: 2px; overflow: hidden; background: var(--bord-doux); }
.mouvement i { display: block; height: 100%; }
@media (min-width: 961px) and (min-height: 540px) {
  .contenu.ajuste { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 14px; }
  .contenu.ajuste .page__tete { margin-bottom: 12px; }
  .grille-vue { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
  .grille-vue > .carte { min-height: 0; overflow: hidden; }
  .grille-vue .carte__tete { padding: 12px 18px 0; }
  .grille-vue .carte__tete h2 { font-size: 15px; }
  .grille-vue .carte__corps { display: flex; flex-direction: column; min-height: 0; padding: 8px 18px 14px; }
  .grille-vue .widget-cols { flex: 1 1 auto; min-height: 0; }
  .grille-vue .widget-cols > * { display: flex; flex-direction: column; min-height: 0; }
  .grille-vue .chiffre { font-size: 26px; }
  .grille-vue .quatre { gap: 10px 14px; }
  .grille-vue .aire--mini { height: 28px; }
  .grille-vue .barres-jour { flex: 1 1 auto; height: auto; min-height: 40px; }
}
.grille-vue { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) and (min-width: 961px) {
  .grille-vue .widget-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; }
  .grille-vue .widget-cols > * { padding: 0 12px; border-top: 0; }
  .grille-vue .widget-cols > * + * { border-left: 1px solid var(--bord-doux); padding-top: 0; }
}
@media (max-width: 960px) {
  .grille-vue > .carte { grid-column: span 12; }
  .remplit { min-height: 120px; }
}

/* Pagination ajustée : barre toujours au même endroit */
.pagination { min-height: 46px; padding: 8px 14px; border-top: 1px solid var(--bord-doux); }
.pagination .pages { font-variant-numeric: tabular-nums; }
.graphe-produit { margin-bottom: 14px; }
.graphe-produit .graphe { height: 220px; }
.lien-produit { display: block; max-width: 100%; padding: 0; border: 0; background: none; color: var(--lien); font: 500 13px/1.4 var(--texte); text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.lien-produit:hover, .lien-produit.actif { text-decoration: underline; text-underline-offset: 2px; }
.lien-produit.actif { font-weight: 700; }

/* Le cadre ne déborde jamais : seule la zone de contenu pourrait défiler (petits écrans) */
html, body { overflow: hidden; }
.app { grid-template-rows: minmax(0, 1fr); overflow: hidden; }
.cadre { min-height: 0; overflow: hidden; }
@media (max-width: 960px) { html, body { overflow: auto; } .app { height: auto; min-height: 100dvh; overflow: visible; } .cadre { overflow: visible; } }
@media (min-width: 961px) {
  .grille-vue .l-8 { grid-column: span 8; } .grille-vue .l-4 { grid-column: span 4; }
  .grille-vue .l-7 { grid-column: span 7; } .grille-vue .l-5 { grid-column: span 5; }
}
@media (min-width: 961px) and (max-width: 1240px) {
  .grille-vue .widget-cols { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; }
  .grille-vue .widget-cols > * { padding: 0 12px; border-top: 0 !important; }
  .grille-vue .widget-cols > :first-child { padding-left: 0; }
  .grille-vue .widget-cols > :last-child { padding-right: 0; }
  .grille-vue .widget-cols > * + * { border-left: 1px solid var(--bord-doux); padding-top: 0; }
  .grille-vue .chiffre { font-size: 22px; }
  .grille-vue .chiffre--moyen { font-size: 18px; }
  .grille-vue .deux { gap: 18px; }
  .page__tete { flex-wrap: nowrap; }
  .page__titre h1 { font-size: 22px; }
}
/* Comparatif : 3 cartes de synthèse sur une ligne, compactes */
.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.stats3 .kpi { grid-column: auto; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 10px 14px; }
.stats3 .kpi__libelle { width: 100%; }
.stats3 .kpi__valeur { font-size: 22px; }
.stats3 .kpi__bas { font-size: 11px; }
/* Réglages sur deux colonnes (bureau) */
@media (min-width: 961px) { .reglages { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; align-items: stretch; } .reglage { padding: 14px 16px; } }
/* Courbe d'un produit : hauteur selon la fenêtre */
.graphe-produit .graphe { height: clamp(120px, 24vh, 260px); }
.graphe-produit .carte__corps { padding-top: 4px; padding-bottom: 10px; }
.graphe-produit .legende { margin-bottom: 4px; }
@media (max-width: 960px) { .stats3 { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 961px) { .contenu { padding-bottom: 16px; } }
.reglages { gap: 10px; }
.reglage p { font-size: 12px; }
.contenu:has(.graphe-produit) .filtres { display: none; }
.stats3[hidden] { display: none; }
.graphe-produit .graphe { height: clamp(110px, 20vh, 260px); }
@media (min-width: 961px) { .reglage { padding: 12px 16px; } .reglages { gap: 8px; } }
.tableau td:last-child .bouton-ic { margin-right: -6px; }
.grille-vue .carte__corps > * { flex-shrink: 0; }
.grille-vue .carte__corps > .widget-cols, .grille-vue .carte__corps > .barres-jour, .grille-vue .carte__corps > .ajuste-liste { flex-shrink: 1; }
.jauge-demi__val { bottom: 0; }
.jauge-demi__val b { font-size: 22px; }
.releve2 .jauge-demi { max-width: 150px; }
.grille-vue .legende-mini { gap: 2px 10px; margin-top: 6px; font-size: 11px; }

/* ==========================================================================
   Accueil simplifié (MVP) : 3 chiffres clés + 2 listes, tient dans l'écran
   ========================================================================== */
.accueil-simple { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 14px; }
.stats-cles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; color: var(--encre); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.stat:hover { border-color: #B9BEC6; box-shadow: 0 2px 10px rgba(16, 18, 20, .06); }
.stat .chiffre { font-size: 34px; }
.stat .chiffre small { font-size: 16px; font-weight: 500; }
.liste-carte .carte__corps { display: flex; flex-direction: column; min-height: 0; padding-top: 10px; }
.liste-carte .mini-table td:first-child { width: 42%; }
@media (min-width: 961px) and (min-height: 540px) {
  .contenu.ajuste .accueil-simple { flex: 1 1 auto; min-height: 0; }
  .accueil-simple > .liste-carte { min-height: 0; overflow: hidden; }
}
@media (max-width: 960px) {
  .accueil-simple, .stats-cles { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Parcours d'arrivée ---------- */
.o-concs { display: grid; gap: 10px; margin-top: 22px; }
.o-conc { margin-top: 0; }
.o-concs > .bouton--lien { justify-self: start; }
.o-jauge { margin-top: 20px; }
.o-lignes { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.o-ligne { display: grid; grid-template-columns: 40px minmax(0, 1fr) 22px; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--bord); border-radius: 8px; }
.o-ligne b { display: block; font-weight: 600; }
.o-ligne span { font-size: 13px; color: var(--texte-2); }
.o-logo { width: 40px; height: 40px; font-size: 16px; }
.o-ligne--attente { opacity: .55; }
.o-ligne--erreur span { color: var(--promo); }
.o-etat { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--trait); }
.o-ligne--encours .o-etat { border-top-color: var(--lilas-fonce); animation: tourne .9s linear infinite; }
.o-ligne--fait .o-etat { border-color: var(--aqua-fonce); background: var(--aqua-fonce) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.o-ligne--erreur .o-etat { border-color: var(--promo); background: var(--promo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center / 12px no-repeat; }
/* L'écran d'arrivée passe en clair, comme le menu */
.emb__haut { background: var(--blanc); border-bottom: 1px solid var(--bord); }
.emb__vigie { color: var(--encre); }
.emb__vigie svg circle:first-child { stroke: #5B3FD1; } .emb__vigie svg circle:nth-child(2) { stroke: #1FB89B; }
.emb__vigie svg rect:first-of-type { fill: #5B3FD1; } .emb__vigie svg rect:last-of-type { fill: #1FB89B; }
.emb__etapes { color: var(--texte-3); }
.emb__etapes span { border-color: var(--bord); }
.emb__etapes li.actif { color: var(--encre); }
.emb__etapes li.actif span { border-color: var(--lilas-fonce); background: var(--lilas-fonce); color: var(--blanc); }
.emb__etapes li.fait span { border-color: var(--aqua-fonce); background: var(--aqua-fonce); color: var(--blanc); }
.emb__titre-mode { color: var(--encre); }
.embarquement { background: var(--fond-page); }
.emb__carte { border-color: var(--bord); border-radius: 10px; }
.emb__adresse { border-radius: 8px; }
.emb__adresse .bouton { border-radius: 6px; }

/* ---------- Visite guidée ---------- */
.tour { position: fixed; inset: 0; z-index: 95; }
.tour[hidden] { display: none; }
.tour__trou { position: fixed; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(16, 18, 20, .55); transition: all .25s ease-out; pointer-events: none; }
.tour__bulle { position: fixed; padding: 18px 20px 14px; border-radius: 10px; background: var(--blanc); box-shadow: 0 12px 40px rgba(16, 18, 20, .3); transition: left .25s ease-out, top .25s ease-out; }
.tour__bulle b { display: block; font: 600 16px/1.3 var(--titre); }
.tour__bulle p { margin-top: 6px; font-size: 14px; color: var(--texte-2); }
.tour__compte { margin: 0 0 4px !important; font-size: 12px !important; font-weight: 600; color: var(--lilas-fonce) !important; }
.tour__actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .tour__trou, .tour__bulle { transition: none; } }
.liste-carte .mini-table td { padding: 6px 0; }
.liste-carte .mini-table .d { padding-left: 14px; }
.liste-carte .mini-table .sous-libelle { font-size: 11px; }
.reglage__boutons { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Photos de produits et logos des concurrents ---------- */
.produit-cel { display: flex; align-items: center; gap: 10px; min-width: 0; }
.produit-cel > div, .produit-cel > a { min-width: 0; }
.vignette { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 6px; border: 1px solid var(--bord-doux); background: #F2F3F5; object-fit: cover; }
.vignette--petite { flex-basis: 32px; width: 32px; height: 32px; border-radius: 5px; }
.vignette--mini { flex-basis: 24px; width: 24px; height: 24px; border-radius: 4px; }
.mini-table .produit-cel { gap: 8px; }
.mini-table .produit-cel a { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pastille--logo { background: var(--blanc); box-shadow: inset 0 0 0 1.5px var(--c); padding: 3px; overflow: hidden; }
.pastille--logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 3px; }
.pastille--grande.pastille--logo { padding: 4px; }
.mini-table .pastille { width: 22px; height: 22px; font-size: 10px; }
.origine { margin-left: 22px; }
.tableau .actions .choix { flex: 1 1 auto; width: auto; min-width: 0; }

/* ==========================================================================
   Vue d'ensemble « version F » : 3 gros chiffres avec statut et mini-graphique,
   puis une seule liste « À regarder cette semaine »
   ========================================================================== */
.accueil-simple--une { grid-template-columns: minmax(0, 1fr); }
.stat--grand { gap: 10px; padding: 18px 22px 18px; border-radius: 12px; }
.stat--grand .stat__tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.stat--grand .libelle { font: 600 15px/1.3 var(--texte); color: var(--encre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat--grand .chiffre { font: 600 clamp(34px, 3.6vw, 52px)/1 var(--titre); letter-spacing: -0.05em; color: var(--encre); white-space: nowrap; }
.stat--grand .chiffre small { font: 600 clamp(14px, 1.25vw, 18px)/1.2 var(--titre); letter-spacing: -0.01em; color: #3A3F47; margin-left: 4px; }
.stat--lilas { background: var(--lilas-doux); border-color: #E2DAFF; }
.stat--lilas:hover { border-color: #C9BBFF; }

.statut { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 3px 10px 3px 8px; border-radius: 999px; font: 700 12.5px/1.3 var(--texte); white-space: nowrap; }
.statut svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.statut--ok { background: #DCF7F0; color: #0B7A66; }
.statut--warn { background: #FFF1D2; color: #8A5A00; }
.statut--crit { background: #FFE8DD; color: #B4441C; }

.repartition { display: flex; gap: 2px; height: 12px; }
.repartition i { display: block; height: 100%; border-radius: 4px; min-width: 6px; }
.rep--moins { background: #0FA58A; }
.rep--aligne { background: #B9BEC6; }
.rep--plus { background: #E0782F; }
.leg-f { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 600 12.5px/1.3 var(--texte); color: #3A3F47; }
.leg-f span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.leg-f i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.leg-f--col { flex-direction: column; justify-content: flex-end; }
.j--baisse { background: #E0782F; }
.j--hausse { background: #0FA58A; }
.stat__duo { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.jours { display: flex; align-items: flex-end; gap: 6px; height: 46px; }
.jour { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 16px; height: 100%; }
.jour__pile { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.jour__pile i { display: block; width: 100%; border-radius: 4px; min-height: 6px; }
.jour__pile .j--vide { height: 3px; min-height: 3px; background: #E1E4E8; border-radius: 2px; }
.jour b { font: 600 10.5px/1 var(--texte); color: #6B7078; }

.echelle { display: flex; flex-direction: column; gap: 6px; }
.echelle__piste { position: relative; height: 8px; border-radius: 4px; background: #EDEFF2; margin: 5px 0; }
.echelle__zone { position: absolute; top: 0; bottom: 0; }
.echelle__zone.plus { background: #F5C6B1; }
.echelle__zone.moins { background: #BFEBDF; }
.echelle__milieu { position: absolute; left: 50%; top: -5px; width: 2px; height: 18px; margin-left: -1px; background: #24282D; border-radius: 1px; }
.echelle__point { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #6B7078; box-shadow: 0 0 0 3px #fff; }
.echelle__point.plus { background: #B4441C; }
.echelle__point.moins { background: #0B7A66; }
.echelle__txt { display: flex; justify-content: space-between; font: 500 11.5px/1 var(--texte); color: #6B7078; }
.echelle__txt b { font-weight: 600; color: #24282D; }

.a-regarder { list-style: none; margin: 0; padding: 0; }
.a-regarder li + li { border-top: 1px solid var(--bord-doux); }
.a-regarder a { display: flex; align-items: center; gap: 12px; padding: 10px 4px; color: inherit; text-decoration: none; border-radius: 6px; }
.a-regarder a:hover { background: #F7F8FA; }
.a-regarder__txt { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.a-regarder__txt .nom { font: 600 15px/1.3 var(--texte); color: var(--encre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-regarder__txt .a-regarder__raison { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #3A3F47; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-regarder__txt .a-regarder__raison b { color: var(--encre); }
.a-regarder .pastille { width: 18px; height: 18px; font-size: 8px; flex: none; }

/* Comparatif : tailles dépliées */
.deplier--seul { flex: none; width: 24px; height: 24px; justify-content: center; border-radius: 6px; color: #3A3F47; }
.deplier--seul:hover { background: #EEF0F3; }
.deplier-vide { flex: none; width: 24px; }
.taille-ref { color: var(--encre); font-weight: 600; }
.sous-taille td { background: #FAFAFC; padding-top: 7px; padding-bottom: 7px; }
.sous-taille .prix { font-size: 14px; }
.taille-cel { display: flex; align-items: baseline; gap: 8px; padding-left: 76px; }
.taille { font: 600 14px/1.2 var(--texte); font-variant-numeric: tabular-nums; color: var(--encre); }
.sous-taille--ref .taille { color: var(--lien); }

/* Produits similaires proposés */
.propose { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.propose .nom { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alt-choix { margin-top: 6px; max-width: 100%; width: 100%; }
.a-regarder__txt .nom .secondaire { font-weight: 500; font-size: 13px; color: #52575F; }

/* ==========================================================================
   Parcours d'arrivée et ajout d'un concurrent : un écran centré,
   la chouette Vigie réfléchit au-dessus, une phrase dit ce qu'elle fait
   ========================================================================== */
.embarquement { --sortie: cubic-bezier(.16, 1, .3, 1); }
.embarquement.emb--split { display: flex; flex-direction: column; overflow: hidden; }
.embarquement.emb--split[hidden] { display: none; }
.emb__corps--split { display: block; justify-items: stretch; flex: 1 1 auto; min-height: 0; padding: 0; }
.emb--split .emb__haut { padding: 14px 28px; }
.emb--split .emb__etapes { gap: 0; }
.emb--split .emb__etapes li + li::before { content: ""; width: 28px; height: 1px; margin: 0 10px; background: var(--bord); }
.emb--split .emb__etapes li.fait + li::before, .emb--split .emb__etapes li.fait + li.actif::before { background: var(--aqua-fonce); }
.v-bouton.v-fermer { min-height: 36px; padding: 0 14px; font-size: 14px; }

.o-ecran { display: grid; place-items: center; height: 100%; padding: 16px 24px 24px; overflow: auto; background: radial-gradient(ellipse 70% 55% at 50% -10%, #E3F0EB 0%, rgba(227, 240, 235, 0) 72%), var(--blanc); }
.o-centre { display: flex; flex-direction: column; align-items: center; width: min(520px, 100%); text-align: center; }
.o-centre--large { width: min(720px, 100%); }
.o-hibou { width: clamp(76px, 13vh, 120px); margin-bottom: 12px; }
.o-centre--compact .o-hibou { width: clamp(52px, 8.5vh, 80px); margin-bottom: 6px; }
.o-centre h1 { font: 700 clamp(32px, 3.4vw, 46px)/1.04 var(--titre); letter-spacing: -0.045em; text-wrap: balance; color: var(--encre); }
.o-centre--compact h1 { font-size: clamp(26px, 2.6vw, 36px); }
.o-chapo { margin-top: 10px; font-size: 17px; line-height: 1.5; color: #52575F; text-wrap: balance; }
.o-dit { min-height: 1.5em; margin-top: 16px; font: 500 15px/1.5 var(--texte); color: #3A3F47; transition: opacity .16s, transform .16s var(--sortie); }
.o-centre h1 + .o-dit { margin-top: 10px; }
.o-dit.change { opacity: 0; transform: translateY(-3px); }
.o-centre form, .o-centre .o-boutique, .o-centre .v-produits, .o-centre .v-table, .o-centre .o-barre, .o-centre .o-sites, .o-centre .c-paires { width: 100%; text-align: left; }

.o-champ { display: flex; align-items: center; gap: 10px; margin-top: 26px; min-height: 64px; padding: 8px 8px 8px 18px; border: 1px solid #D5D9DE; border-radius: 14px; background: var(--blanc); box-shadow: 0 1px 2px rgba(16, 18, 20, .04), 0 12px 28px -16px rgba(16, 18, 20, .2); transition: border-color .2s, box-shadow .2s; }
.o-champ:focus-within { border-color: var(--lilas-fonce); box-shadow: 0 0 0 4px rgba(91, 63, 209, .12), 0 12px 28px -16px rgba(16, 18, 20, .2); }
.o-champ__ic { flex: none; width: 20px; height: 20px; fill: none; stroke: #7C828B; stroke-width: 1.8; }
.o-champ input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 18px/1.2 var(--texte); letter-spacing: -0.01em; color: var(--encre); }
.o-champ input::placeholder { color: #A0A6AE; }
.o-champ input:disabled { color: #6B7078; }
.o-champ--conc { margin-top: 10px; min-height: 56px; padding: 6px 8px 6px 12px; }
.o-concs .o-champ--conc:first-child { margin-top: 18px; }
.o-num { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--lilas-doux); color: var(--lilas-fonce); font: 700 12px/1 var(--titre); }
.o-retirer { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: #7C828B; cursor: pointer; transition: background-color .15s, color .15s; }
.o-retirer:hover { background: #F4F5F7; color: var(--encre); }
.o-retirer .ic { width: 16px; height: 16px; }

.v-bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 10px; font: 600 15px/1 var(--texte); white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s var(--sortie); }
.v-bouton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--sortie); }
.v-bouton:hover svg { transform: translateX(3px); }
.v-bouton:active { transform: translateY(1px); }
.v-bouton--aqua { background: #34E3C2; color: #101214; box-shadow: inset 0 -2px 0 rgba(16, 18, 20, .12); }
.v-bouton--aqua:hover { background: #22CBAB; }
.v-bouton--fantome { background: var(--blanc); border-color: #D5D9DE; color: var(--encre); }
.v-bouton--fantome:hover { background: #F4F5F7; }
.v-bouton:disabled { opacity: .45; cursor: not-allowed; }
.v-bouton--attente { cursor: progress; }
.v-spin { display: inline-block; flex: none; width: 13px; height: 13px; border-radius: 50%; border: 2px solid #E1E4E8; border-top-color: var(--lilas-fonce); animation: tourne .7s linear infinite; }
.v-spin--noir { border-color: rgba(16, 18, 20, .2); border-top-color: #101214; }
.o-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 26px; }
.o-erreur { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: #FFE8DD; color: #8C3413; font-size: 14px; line-height: 1.45; }
.o-liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 18px; }

.o-sous { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.o-aide { position: relative; }
.o-aide summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; font: 600 14px/1.3 var(--texte); color: var(--lilas-fonce); }
.o-aide summary::-webkit-details-marker { display: none; }
.o-aide summary::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s var(--sortie); }
.o-aide[open] summary::after { transform: rotate(180deg); }
.o-aide > div { position: absolute; right: 0; top: calc(100% + 10px); z-index: 5; width: min(360px, 80vw); display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--bord); border-radius: 14px; background: var(--blanc); box-shadow: 0 18px 40px -16px rgba(16, 18, 20, .28); font-size: 14px; line-height: 1.45; color: #3A3F47; text-align: left; animation: v-entre .3s var(--sortie) both; }
.o-aide a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; background: #F7F8FA; color: var(--encre); font-weight: 600; text-decoration: none; }
.o-aide a::after { content: "↗"; color: var(--lilas-fonce); }
.o-aide a:hover { background: var(--lilas-doux); }

.o-boutique { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border: 1px solid var(--bord); border-radius: 14px; background: var(--blanc); }
.o-boutique__logo { flex: none; width: 44px; height: 44px; }
.o-boutique > div { min-width: 0; flex: 1; }
.o-boutique b { display: block; font: 600 16px/1.3 var(--texte); color: var(--encre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-boutique span { display: block; font-size: 13px; color: #52575F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-boutique .o-boutique__n { flex: none; display: flex; align-items: baseline; gap: 5px; font-size: 14px; color: #3A3F47; }
.o-boutique .o-boutique__n b { font: 600 28px/1 var(--titre); letter-spacing: -0.04em; }

.o-barre { height: 6px; margin-top: 22px; border-radius: 3px; background: #EDEFF2; overflow: hidden; }
.o-barre i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #B8A4FF, #34E3C2); transition: width .6s var(--sortie); }
.o-sites { display: grid; gap: 2px; margin: 14px 0 0; padding: 0; list-style: none; }
.o-site { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 20px; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid #EDEFF2; }
.o-site__logo { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--bord); border-radius: 9px; overflow: hidden; background: var(--blanc); font: 700 14px/1 var(--titre); color: var(--lilas-fonce); }
.o-site__logo img { width: 100%; height: 100%; object-fit: contain; }
.o-site b { font: 600 15px/1.3 var(--texte); color: var(--encre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-site > span { font-size: 13px; color: #52575F; white-space: nowrap; }
.o-site__etat { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #D5D9DE; }
.o-site--attente { opacity: .5; }
.o-site--encours .o-site__etat { border-color: #E6E0FA; border-top-color: var(--lilas-fonce); animation: tourne .8s linear infinite; }
.o-site--fait .o-site__etat { border: 0; background: #0B7A66 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat; }
.o-site--erreur .o-site__etat { border: 0; background: #B4441C url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* Aperçu des produits et produits rapprochés */
.v-produits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.v-produits li { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 6px; border: 1px solid #EDEFF2; border-radius: 10px; background: var(--blanc); }
.v-produits .v-produits__photo { display: block; flex: none; width: 100%; height: auto; aspect-ratio: 1; border: 0; border-radius: 7px; background: #ECEEF1; object-fit: cover; }
.v-produits span { font-size: 11.5px; line-height: 1.3; color: #3A3F47; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-produits b { font: 600 13px/1.2 var(--titre); letter-spacing: -0.02em; color: var(--encre); }
.v-table { margin-top: 18px; border: 1px solid var(--bord); border-radius: 12px; overflow: hidden; background: var(--blanc); }
.v-table table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.v-table th, .v-table td { padding: 7px 12px; border-top: 1px solid #EDEFF2; text-align: left; vertical-align: middle; }
.v-table thead th { border-top: 0; background: #FAFBFC; font-size: 12px; font-weight: 600; color: #52575F; }
.v-table thead th:last-child { width: 96px; }
.v-table th[scope="row"] { font-weight: 600; color: var(--encre); }
.v-table th[scope="row"] span, .v-table__conc span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-table th[scope="row"] small { font-weight: 500; font-size: 11px; color: #6B7078; }
.v-table__conc { display: flex; align-items: center; gap: 6px; min-width: 0; color: #24282D; }
.v-table .d { text-align: right; white-space: nowrap; }
.v-table b { font-family: var(--titre); font-weight: 600; }
.v-table p { padding: 8px 12px; border-top: 1px solid #EDEFF2; font-size: 12.5px; color: #6B7078; }
.v-mini-logo { display: grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: 4px; overflow: hidden; background: var(--lilas-doux); color: var(--lilas-fonce); font: 700 9px/1 var(--titre); }
.v-mini-logo img { width: 100%; height: 100%; object-fit: contain; }
.v-pastille { display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; vertical-align: 1px; }
.v-pastille.ok { background: #0FA58A; }
.v-pastille.doute { background: #D99A0B; }

/* Ajout d'un concurrent : propositions à vérifier */
.c-paires { max-height: calc(100vh - 420px); min-height: 120px; overflow-y: auto; margin: 14px 0 0; padding: 0 4px; list-style: none; scrollbar-width: thin; }
.c-paire { display: grid; grid-template-columns: 44px minmax(0, 1fr) 28px 44px minmax(0, 1.25fr); align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #EDEFF2; }
.c-paire:first-child { border-top: 0; }
.c-paire .c-photo, .c-photo { display: block; flex: none; width: 44px; height: 44px; border-radius: 9px; border: 0; background: #F2F3F5; object-fit: cover; }
.c-photo--vide { background: repeating-linear-gradient(135deg, #F2F3F5 0 6px, #E9ECEF 6px 7px); }
.c-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.c-nom { font: 600 14px/1.3 var(--texte); color: var(--encre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-txt > b { font: 600 15px/1.2 var(--titre); letter-spacing: -0.02em; color: var(--encre); }
.c-txt small { font: 500 11.5px/1 var(--texte); color: #6B7078; }
.c-lien { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #F4F5F7; color: #52575F; }
.c-lien svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.c-choix { width: 100%; min-width: 0; padding: 6px 30px 6px 10px; border: 1px solid #D5D9DE; border-radius: 8px; background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352575F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 9px center / 14px no-repeat; font: 600 13.5px/1.3 var(--texte); color: var(--encre); text-overflow: ellipsis; appearance: none; -webkit-appearance: none; cursor: pointer; }
.c-choix:focus-visible { outline: 0; border-color: var(--lilas-fonce); box-shadow: 0 0 0 3px rgba(91, 63, 209, .14); }
.c-prix { display: flex; align-items: center; gap: 8px; min-height: 22px; }
.c-prix b { font: 600 15px/1.2 var(--titre); letter-spacing: -0.02em; }
.c-paire--vide .c-txt .c-choix { color: #6B7078; font-weight: 500; }

.o-fantome { background: linear-gradient(90deg, #E9ECEF 0%, #F6F7F8 50%, #E9ECEF 100%) 0 0 / 200% 100%; animation: o-reflet 1.2s linear infinite; border-radius: 6px; }
@keyframes o-reflet { to { background-position: -200% 0; } }
@keyframes v-entre { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .o-aide > div, .o-fantome { animation: none; } .o-dit { transition: none; } }

@media (max-width: 900px) {
  .embarquement.emb--split { overflow: auto; }
  .emb__corps--split { flex: none; }
  .o-ecran { height: auto; min-height: calc(100dvh - 120px); padding: 24px 18px 32px; }
  .v-produits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .c-paires { max-height: none; }
  .c-paire { grid-template-columns: 40px minmax(0, 1fr); }
  .c-paire .c-lien { display: none; }
  .emb--split .emb__etapes li + li::before { width: 12px; margin: 0 6px; }
}

/* ---------- Chouette Vigie : cligne au repos, réfléchit, contente ---------- */
.chouette { display: block; width: 100%; height: auto; overflow: visible; }
.chouette .ch-pup { transform-box: view-box; transform-origin: 1024px 842px; animation: ch-cligne 5.5s infinite; transition: transform .45s cubic-bezier(.16, 1, .3, 1), opacity .2s; }
.chouette .ch-joie { opacity: 0; transition: opacity .2s; }
.chouette--reflechit .ch-pup { animation: ch-cherche 2.4s ease-in-out infinite; }
.chouette--contente .ch-pup { opacity: 0; animation: none; }
.chouette--contente .ch-joie { opacity: 1; }
.chouette--contente { animation: ch-saut .5s cubic-bezier(.16, 1, .3, 1); }
@keyframes ch-cligne { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }
@keyframes ch-cherche { 0%, 100% { transform: translate(20px, -26px); } 45% { transform: translate(-20px, -26px); } 50% { transform: translate(-20px, -26px) scaleY(.1); } 55% { transform: translate(-20px, -26px); } }
@keyframes ch-saut { 40% { transform: translateY(-8%); } }
@media (prefers-reduced-motion: reduce) { .chouette .ch-pup, .chouette--reflechit .ch-pup, .chouette--contente { animation: none; } }
.vide__chouette { display: block; width: 64px; margin: 0 auto 10px; }
.o-centre .v-produits { display: flex; flex-wrap: wrap; justify-content: center; }
.o-centre .v-produits li { width: calc((100% - 40px) / 6); }
@media (max-width: 900px) { .o-centre .v-produits li { width: calc((100% - 16px) / 3); } }

/* Chouette vivante : elle respire, penche la tête en réfléchissant ; le regard suit le curseur (JS) */
.chouette .ch-souffle { transform-box: view-box; transform-origin: 1024px 1560px; animation: ch-souffle 4s ease-in-out infinite; }
.chouette--reflechit .ch-souffle { animation: ch-penche 1.8s ease-in-out infinite; }
@keyframes ch-souffle { 0%, 100% { transform: scale(1, 1); } 50% { transform: translateY(-6px) scale(1.012, 1.028); } }
@keyframes ch-penche { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .chouette .ch-souffle, .chouette--reflechit .ch-souffle { animation: none; } }

/* Résultats : le texte s'écrit, puis les lignes arrivent une à une, puis les boutons */
.v-curseur::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--lilas-fonce); animation: v-clignote .8s steps(2) infinite; }
@keyframes v-clignote { to { visibility: hidden; } }
.o-apparait .v-table { animation: v-entre .4s var(--sortie) both; animation-delay: var(--d0, 0ms); }
.o-apparait .v-produits li, .o-apparait .c-paire, .o-apparait .v-table tbody th, .o-apparait .v-table tbody td, .o-apparait .v-table p { animation: o-ligne .5s var(--sortie) both; animation-delay: calc(var(--d0, 0ms) + 160ms + var(--i, 0) * 90ms); }
.o-apparait .v-table tbody tr { animation: o-eclat 1.4s ease-out forwards; animation-delay: calc(var(--d0, 0ms) + 160ms + var(--i, 0) * 90ms); }
.o-apparait .o-actions { animation: v-entre .45s var(--sortie) both; animation-delay: calc(var(--d0, 0ms) + 260ms + var(--n, 0) * 90ms); }
@keyframes o-ligne { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes o-eclat { from { background: #F1EDFF; } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .o-apparait *, .o-apparait .o-actions { animation: none !important; } }
.o-points { display: flex; gap: 6px; margin: -2px 0 16px; }
.o-points i { display: block; width: 6px; height: 6px; border-radius: 3px; background: #D5D9DE; transition: width .35s var(--sortie), background-color .2s; }
.o-points i.fait { background: #0FA58A; }
.o-points i.actif { width: 22px; background: var(--lilas-fonce); }
.o-centre--compact .o-points { margin-bottom: 10px; }

/* ==========================================================================
   DA « comme la home » : barre noire en haut avec la navigation,
   une page d'accueil qui commence par une phrase et 3 gros chiffres,
   puis une liste éditoriale. Ordinateur uniquement (le mobile garde son menu).
   ========================================================================== */
@media (min-width: 961px) {
  body { background: var(--papier); }
  .app .contenu { padding: 22px 32px 18px; }

  /* En-tête des pages : un titre franc, sans fil d'Ariane ni étiquettes */
  .page__titre h1 { font: 700 30px/1.1 var(--titre); letter-spacing: -0.04em; color: var(--encre); }
  .page__titre p { margin-top: 6px; font-size: 14px; color: #52575F; }

}

@media (min-width: 961px) and (max-width: 1360px) {
  .une { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px 36px; }
  .une__chiffres { gap: 18px; }
  .une__chiffres b { font-size: clamp(34px, 3.4vw, 46px); }
}
@media (min-width: 961px) {
  .une { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .une__chiffres b { font-size: clamp(34px, 3.2vw, 56px); }
}

/* Accueil « une » + « À regarder » (tous écrans) */
/* Accueil : la une (bandeau noir) puis « À regarder » */
.contenu.ajuste { padding-top: 0; }
.une-page { display: flex; flex-direction: column; gap: 0; }
.une { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; gap: 24px 56px; margin: 0 -32px; padding: 30px 32px 30px; background: var(--noir); color: var(--blanc); }
.une__boutique { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: #A7ADB5; }
.une__boutique b { color: var(--blanc); font-weight: 600; }
.une__logo { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 7px; overflow: hidden; background: var(--blanc); color: var(--lilas-fonce); font: 700 13px/1 var(--titre); }
.une__logo img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.une h1 { margin-top: 14px; font: 700 clamp(30px, 3.3vw, 46px)/1.05 var(--titre); letter-spacing: -0.045em; text-wrap: balance; }
.une h1 mark { background: none; color: var(--lilas); }
.une__chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.une__chiffres a { display: flex; flex-direction: column; padding-top: 14px; border-top: 1px solid #343940; color: inherit; text-decoration: none; transition: border-color .2s; }
.une__chiffres a:hover { border-top-color: var(--aqua); }
.une__chiffres b { font: 600 clamp(40px, 4vw, 60px)/1 var(--titre); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.une__chiffres b.lilas { color: var(--lilas); }
.une__chiffres b small { font-size: .45em; letter-spacing: -0.02em; color: #8A9098; margin-left: 2px; }
.une__chiffres span { margin-top: 10px; font-size: 15px; font-weight: 600; }
.une__etat { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-style: normal; font-size: 13px; color: #A7ADB5; }
.une__etat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.une__etat--ok { color: #34E3C2; }
.une__etat--warn { color: #F5C76B; }
.une__etat--crit { color: #FF9C72; }

.regarder { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; padding-top: 22px; }
.regarder__tete { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--encre); }
.regarder__tete h2 { font: 700 24px/1.15 var(--titre); letter-spacing: -0.035em; }
.regarder__tete a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--encre); text-decoration: none; }
.regarder__tete a svg, .regarder__fleche { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.regarder__tete a:hover svg { transform: translateX(3px); }
.regarder__corps { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.regarder__liste { margin: 0; padding: 0; list-style: none; }
.regarder__liste li { border-bottom: 1px solid #DCDFDA; }
.regarder__liste a { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 20px; align-items: center; gap: 16px; padding: 12px 4px; color: inherit; text-decoration: none; transition: background-color .15s; }
.regarder__liste a:hover { background: #EEF0EC; }
.regarder__liste a:hover .regarder__fleche { transform: translateX(3px); }
.regarder__photo { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: #E9ECE7; }
.regarder__txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.regarder__txt b { font: 600 17px/1.25 var(--titre); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.regarder__txt b small { font: 500 13px/1 var(--texte); color: #6B7078; letter-spacing: 0; }
.regarder__txt > span { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #3A3F47; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.regarder__txt > span b { font: inherit; font-weight: 600; color: var(--encre); }
.regarder__txt .pastille { width: 18px; height: 18px; font-size: 8px; flex: none; }
.regarder__chiffre { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.regarder__chiffre strong { font: 600 28px/1 var(--titre); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.regarder__chiffre--plus strong { color: #C2521F; }
.regarder__chiffre--moins strong { color: #0B7A66; }
.regarder__chiffre small { font-size: 12px; color: #6B7078; }
.regarder__fleche { color: #9AA0A8; }
.regarder .vide { padding: 32px 16px; }

@media (min-width: 961px) {
  .une { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .une__chiffres b { font-size: clamp(34px, 3.2vw, 56px); }
}
@media (max-width: 960px) {
  .contenu.ajuste { padding-top: 0; }
  .une { grid-template-columns: 1fr; gap: 22px; margin: 0 calc(-1 * 14px); padding: 24px 14px; }
  .une h1 { font-size: 30px; }
  .une__chiffres { gap: 14px; }
  .une__chiffres b { font-size: 26px; }
  .une__chiffres span { font-size: 13px; }
  .une__etat { font-size: 12px; }
  .regarder__liste a { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; }
  .regarder__photo { width: 44px; height: 44px; }
  .regarder__fleche { display: none; }
  .regarder__chiffre strong { font-size: 22px; }
  .regarder__chiffre small { display: none; }
  .regarder__txt b small { display: none; }
}

@media (min-width: 961px) {
  .une__chiffres b { font-size: clamp(30px, 2.6vw, 50px); }
  .une { gap: 24px 40px; }
}

/* ==========================================================================
   Veille des changements de prix : promos, liste des produits suivis,
   écran « Quels produits surveiller ? »
   ========================================================================== */
.badge--promo { background: #DDF7F0; color: #0B7A66; }
.regarder__chiffre--baisse strong { color: var(--lilas-fonce); }
.regarder__chiffre--hausse strong { color: #C2521F; }
.regarder__chiffre--promo strong { color: #0B7A66; }
.regarder__chiffre--finpromo strong { color: #52575F; }
.nom-lien { display: block; max-width: 100%; overflow: hidden; padding: 0; border: 0; background: none; color: var(--encre); font: 600 14px/1.35 var(--texte); text-align: left; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.nom-lien:hover { color: var(--lilas-fonce); text-decoration: underline; text-underline-offset: 3px; }
.produit-cel .secondaire { display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.produit-cel .secondaire .pastille { width: 16px; height: 16px; font-size: 7px; flex: none; }
.deplier-vide { flex: none; width: 24px; }
tr.choisie > td { background: #F1EEFF; }
.tableau .courbe { width: 96px; height: 28px; }
.sous-taille .taille-cel { padding-left: 34px; font-weight: 600; }

/* Choix des produits à surveiller */
.o-centre--choix { width: min(900px, 100%); }
.o-centre--choix .o-hibou { width: clamp(48px, 7vh, 72px); margin-bottom: 4px; }
.o-centre--choix h1 { font-size: clamp(24px, 2.5vw, 34px); }
.o-centre--choix .o-chapo { margin-top: 6px; }
.ch-onglets { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: 100%; margin-top: 14px; }
.ch-onglets button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 4px 12px 4px 5px; border: 1px solid #DCDFDA; border-radius: 999px; background: var(--blanc); color: var(--encre); font: 600 14px/1 var(--texte); cursor: pointer; }
.ch-onglets button:hover { border-color: var(--encre); }
.ch-onglets button[aria-selected="true"] { border-color: var(--noir); background: var(--noir); color: var(--blanc); }
.ch-onglets b { min-width: 22px; padding: 2px 6px; border-radius: 999px; background: var(--lilas); color: var(--noir); font-size: 12px; text-align: center; }
.ch-onglets__logo { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: #EEF0EC; color: var(--encre); font: 700 12px/1 var(--titre); }
.ch-onglets__logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; background: var(--blanc); }
.ch-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; width: 100%; margin-top: 14px; text-align: left; }
.ch-outils .recherche { flex: 1 1 220px; max-width: 320px; height: 40px; border-radius: 999px; background: var(--blanc); border-color: #DCDFDA; }
.ch-types { display: flex; flex-wrap: wrap; gap: 6px; }
.ch-type { min-height: 32px; padding: 0 12px; border: 1px solid #DCDFDA; border-radius: 999px; background: var(--blanc); color: var(--encre-2); font-size: 13px; font-weight: 500; cursor: pointer; }
.ch-type b { margin-left: 2px; color: #6B7078; font-weight: 600; }
.ch-type[aria-pressed="true"] { border-color: var(--noir); background: var(--noir); color: var(--blanc); }
.ch-type[aria-pressed="true"] b { color: #A7ADB5; }
.ch-compte { margin-left: auto; font-size: 14px; color: #52575F; white-space: nowrap; }
.ch-compte > b { color: var(--encre); }
.o-centre .ch-liste { width: 100%; max-height: max(170px, calc(100vh - 470px)); margin-top: 10px; text-align: left; }
.ch-liste label { background: var(--blanc); }
.ch-nom { display: grid; gap: 2px; min-width: 0; }
.ch-nom small { color: #6B7078; font-size: 12px; font-weight: 500; }
.ch-liste b s { color: #8A9098; font-weight: 500; }
.ch-aucun { grid-column: 1 / -1; padding: 18px; color: #52575F; text-align: center; }
.ch-vide { width: 100%; margin-top: 16px; padding: 18px; border: 1px dashed #C9CDC7; border-radius: 12px; color: #3A3F47; text-align: center; }
.ch-plus { width: 100%; margin-top: 10px; text-align: left; }
.o-centre .ch-coller { display: flex; gap: 8px; width: 100%; margin-top: 12px; }
.ch-coller input { flex: 1; min-width: 0; height: 40px; padding: 0 16px; border: 1px dashed #C9CDC7; border-radius: 999px; background: transparent; font: inherit; font-size: 14px; color: var(--encre); }
.ch-coller input:focus { outline: none; border-style: solid; border-color: var(--encre); background: var(--blanc); }
.ch-coller .bouton { border-radius: 999px; }
.o-centre--choix .o-actions { margin-top: 14px; }
@media (max-width: 640px) {
  .ch-compte { margin-left: 0; }
  .o-centre .ch-liste { max-height: 46vh; }
}

/* Les libellés masqués (.sr) restent dans la zone qui défile, sinon la page déborde en largeur */
.table-zone { position: relative; }
.chg-cel { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.chg-cel .secondaire { font-size: 12px; }

/* ==========================================================================
   Direction A « Coach » (choisie le 3 décembre) : Vigile, la chouette, au centre,
   menu blanc, boutons en relief, cartes arrondies à bord épais
   ========================================================================== */
:root { --bord: #E6E8E3; }
body { background: #F6F7F4; }
.menu { background: #FFFFFF; color: var(--encre); border-right: 2px solid var(--bord); }
.menu__logo { display: flex; align-items: center; gap: 10px; color: var(--encre); font: 800 24px/1 var(--titre); letter-spacing: -0.03em; text-decoration: none; }
.menu__vigile { display: block; flex: none; width: 34px; height: 42px; }
.menu__vigile svg, .coach__hibou svg, .vigile-compagnon__hibou svg, .vide__chouette svg { display: block; width: 100%; height: 100%; overflow: visible; }
.menu__nav a, .menu__reglages { min-height: 46px; border: 2px solid transparent; border-radius: 14px; color: #3A3F47; font-weight: 600; }
.menu__nav a .ic, .menu__reglages .ic { color: #6B7078; }
.menu__nav a:hover, .menu__reglages:hover { background: #F3F4F1; color: var(--encre); }
.menu__nav a[aria-current="page"], .menu__reglages[aria-current="page"] { border-color: #B8A4FF; background: #F1EEFF; color: #3D2A9C; font-weight: 700; }
.menu__nav a[aria-current="page"] .ic, .menu__reglages[aria-current="page"] .ic { color: #5B3FD1; }
.menu__groupe { color: #8A9098; }
.menu__badge { background: #FF6B4A; color: #FFFFFF; font-weight: 800; }
.menu__badge--ko { background: #FFE3DA; color: #A8461A; }
.projet, .formule { border: 2px solid var(--bord); border-radius: 18px; background: #FFFFFF; color: var(--encre); }
.projet:hover { border-color: #D5D9D2; }

.bouton { border-radius: 14px; font-weight: 800; transition: transform .08s, box-shadow .08s, background-color .15s; }
.bouton--aqua { border-color: #34E3C2; background: #34E3C2; color: #101214; box-shadow: 0 4px 0 #1FB89B; }
.bouton--aqua:hover { background: #4EEBCD; }
.bouton--sombre { box-shadow: 0 4px 0 #000000; }
.bouton--contour { border: 2px solid var(--bord); background: #FFFFFF; box-shadow: 0 4px 0 var(--bord); }
.bouton--lilas { border: 0; background: #B8A4FF; color: #101214; box-shadow: 0 4px 0 #7E66E0; }
.bouton--lilas:hover { background: #C6B6FF; }
.bouton--nuit { border: 2px solid #3A3F47; background: transparent; color: #FFFFFF; box-shadow: 0 4px 0 #3A3F47; }
.bouton--lien { box-shadow: none; }
.bouton:active:not(:disabled) { transform: translateY(3px); box-shadow: none; }
.v-bouton--aqua { box-shadow: 0 4px 0 #1FB89B; }
.v-bouton:active { transform: translateY(3px); box-shadow: none; }

.barre { border-bottom: 0; background: #F6F7F4; }
.recherche, .ajout { border: 2px solid var(--bord); border-radius: 14px; background: #FFFFFF; }
.barre [data-actualiser] { border-color: #34E3C2; background: #34E3C2; color: #101214; box-shadow: 0 4px 0 #1FB89B; }
.barre .bouton-ic { border: 2px solid var(--bord); border-radius: 14px; background: #FFFFFF; }

.page__titre h1 { font: 800 30px/1.1 var(--titre); letter-spacing: -0.03em; }
.carte { border: 2px solid var(--bord); border-radius: 20px; background: #FFFFFF; }
.tableau th { background: #FAFBF9; }
.segments { padding: 3px; border: 2px solid var(--bord); border-radius: 14px; background: #FFFFFF; }
.segments button { border-radius: 10px; font-weight: 700; }
.segments button[aria-pressed="true"] { background: #F1EEFF; color: #3D2A9C; }
.onglets button[aria-selected="true"]::after { background: #5B3FD1; }
.badge { border-radius: 8px; font-weight: 700; }

/* Accueil : Vigile parle, 3 cartes, ce qui a bougé */
.contenu.ajuste { padding-top: 22px; }
.accueil-simple.accueil-a { display: flex; flex-direction: column; gap: 16px; }
.coach { position: relative; flex: none; display: flex; align-items: flex-end; gap: 8px 28px; padding: 22px 32px 0; border-radius: 28px; background: #101214; color: #FFFFFF; overflow: hidden; }
.coach__hibou { flex: none; width: clamp(120px, 12vw, 180px); aspect-ratio: 4 / 5; padding: 0; border: 0; background: none; cursor: pointer; }
.coach__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding-bottom: 24px; }
.coach__qui { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: #A7ADB5; }
.coach__qui b { color: #FFFFFF; }
.coach__logo { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 7px; overflow: hidden; background: #FFFFFF; color: #5B3FD1; font: 700 12px/1 var(--titre); }
.coach__logo img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.coach__bulle { position: relative; max-width: 720px; margin: 0; padding: 16px 20px; border-radius: 20px; background: #FFFFFF; color: #101214; font: 700 clamp(17px, 1.6vw, 22px)/1.35 var(--titre); letter-spacing: -0.01em; }
.coach__bulle::before { content: ""; position: absolute; left: -10px; bottom: 20px; border: 10px solid transparent; border-left: 0; border-right-color: #FFFFFF; }
.coach__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.coach__actions .bouton { min-height: 46px; padding: 0 20px; text-decoration: none; }
.stats-a { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.stat-a { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border: 2px solid var(--bord); border-bottom-width: 5px; border-radius: 20px; background: #FFFFFF; color: inherit; text-decoration: none; transition: transform .15s, border-color .15s; }
.stat-a:hover { transform: translateY(-2px); border-color: #D5D9D2; }
.stat-a__n { font: 800 36px/1 var(--titre); font-variant-numeric: tabular-nums; }
.stat-a__n--baisse { color: #5B3FD1; } .stat-a__n--hausse { color: #C2521F; } .stat-a__n--promo { color: #0B7A66; }
.stat-a__lib { font-weight: 700; } .stat-a__det { font-size: 13px; color: #52575F; }
.fil-a { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.fil-a__tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.fil-a__tete h2 { font: 800 22px/1.2 var(--titre); letter-spacing: -0.02em; }
.fil-a__tete a { display: inline-flex; align-items: center; gap: 6px; color: #5B3FD1; font-weight: 700; text-decoration: none; }
.fil-a__tete a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fil-a__corps { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.fil-a__liste { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 2px 2px 8px; list-style: none; }
.chg-a { display: flex; align-items: center; gap: 14px; padding: 11px 16px; border: 2px solid var(--bord); border-radius: 18px; background: #FFFFFF; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.chg-a:hover, .chg-a:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 0 var(--bord); }
.chg-a__photo { flex: none; width: 46px; height: 46px; border-radius: 14px; object-fit: cover; background: #EEF0EC; }
.chg-a__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.chg-a__txt > b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chg-a__taille { margin-left: 4px; padding: 2px 8px; border-radius: 8px; background: #EEF0EC; font-size: 12px; }
.chg-a__txt small { color: #6B7078; font-size: 12px; font-weight: 500; }
.chg-a__txt > span { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #52575F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chg-a__txt .pastille { flex: none; width: 18px; height: 18px; font-size: 8px; }
.chg-a__var { flex: none; padding: 8px 14px; border-radius: 12px; font: 800 15px/1 var(--titre); white-space: nowrap; }
.chg-a__var--baisse { background: #F1EEFF; color: #3D2A9C; } .chg-a__var--hausse { background: #FFEDE3; color: #A8461A; }
.chg-a__var--promo { background: #DDF7F0; color: #0B6B5A; } .chg-a__var--neutre { background: #EEF0EC; color: #3A3F47; }
.fil-a .vide { padding: 24px 16px; }
.vide__chouette { width: 76px; height: 96px; }

/* Vigile en compagnon, dans le coin, sur les autres pages */
.vigile-compagnon { position: fixed; right: 22px; bottom: 16px; z-index: 30; display: flex; align-items: flex-end; gap: 10px; pointer-events: none; }
.vigile-compagnon[hidden] { display: none; }
.vigile-compagnon__hibou { pointer-events: auto; width: 84px; height: 106px; padding: 0; border: 0; background: none; cursor: pointer; }
.vigile-compagnon__bulle { pointer-events: auto; max-width: 300px; margin: 0 0 62px; padding: 12px 14px; border: 2px solid var(--bord); border-radius: 16px 16px 4px 16px; background: #FFFFFF; box-shadow: 0 10px 24px rgba(16, 18, 20, .12); font: 600 14px/1.4 var(--texte); color: var(--encre); animation: bulleIn .35s cubic-bezier(.2, .9, .3, 1.3); }
.vigile-compagnon__bulle[hidden] { display: none; }
.confettis { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.vigile-compagnon .confettis { inset: -260px -10px 0 -180px; }

/* Vigile : un seul dessin, l'humeur affiche ou cache ses expressions */
.ow-sourcils, .ow-joie, .ow-dodo, .ow-bouche { display: none; }
.ow--inquiete .ow-sourcils, .ow--contente .ow-joie, .ow--fete .ow-joie, .ow--dort .ow-dodo, .ow--surprise .ow-bouche { display: inline; }
.ow--contente .ow-ouverts, .ow--fete .ow-ouverts, .ow--dort .ow-ouverts { display: none; }
.ow-pup { transform-box: fill-box; transform-origin: center; transition: transform .2s; }
.ow--surprise .ow-pup { transform: scale(.66); }
.ow-yeux { transform: translate(calc(var(--ox, 0) * 46px), calc(var(--oy, 0) * 40px)); transition: transform .2s ease-out; }
.ow--reflechit .ow-yeux { transform: translate(-38px, -42px); }
.ow--inquiete .ow-yeux { transform: translate(0, 26px); }
.ow-corps{transform-box:fill-box;transform-origin:50% 100%;animation:owSouffle 3.4s ease-in-out infinite}.ow--dort .ow-corps{animation-duration:6s}
.ow--reflechit .ow-corps{animation:owPenche 2.4s ease-in-out infinite}.ow--inquiete .ow-corps{animation:owTremble 1.6s ease-in-out infinite}
.ow--surprise .ow-corps{animation:owSursaut .6s cubic-bezier(.2,.9,.3,1.4)}.ow--fete .ow-corps{animation:owSaut .55s cubic-bezier(.3,.7,.4,1) 5}
.ow-cligne{transform-box:fill-box;transform-origin:center;animation:owCligne 5s infinite}.ow-yeux{transition:transform .2s ease-out}
.ow-aile{transform-box:fill-box;transform-origin:50% 8%}.ow--fete .ow-aile--g,.ow--contente .ow-aile--g{animation:owAileG .3s ease-in-out infinite alternate}.ow--fete .ow-aile--d,.ow--contente .ow-aile--d{animation:owAileD .3s ease-in-out infinite alternate}
.ow-z{opacity:0;animation:owZ 2.6s ease-in infinite}.ow-z--2{animation-delay:1.3s}.ow-ombre{transform-box:fill-box;transform-origin:center;animation:owOmbre 3.4s ease-in-out infinite}
@keyframes owSouffle{0%,100%{transform:scale(1,1)}50%{transform:scale(1.018,.982)}}@keyframes owPenche{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(4deg)}}
@keyframes owTremble{0%,60%,100%{transform:translateX(0)}15%{transform:translateX(-1.5%) rotate(-2deg)}35%{transform:translateX(1.5%) rotate(2deg)}}
@keyframes owSursaut{30%{transform:translateY(-9%) scale(.95,1.07)}100%{transform:none}}@keyframes owSaut{0%,100%{transform:translateY(0) scale(1.05,.95)}50%{transform:translateY(-16%) scale(.96,1.05)}}
@keyframes owCligne{0%,93%,100%{transform:scaleY(1)}96%{transform:scaleY(.08)}}@keyframes owAileG{to{transform:rotate(30deg)}}@keyframes owAileD{to{transform:rotate(-30deg)}}
@keyframes owZ{0%{opacity:0;transform:translate(0,0)}30%{opacity:1}100%{opacity:0;transform:translate(40%,-160%)}}@keyframes owOmbre{0%,100%{transform:scaleX(1)}50%{transform:scaleX(.95)}}
.conf{position:absolute;top:-12px;width:10px;height:16px;border-radius:3px;animation:confChute 1.9s cubic-bezier(.2,.6,.4,1) forwards}@keyframes confChute{to{transform:translateY(260px) rotate(540deg);opacity:0}}
.bulle--neuve{animation:bulleIn .35s cubic-bezier(.2,.9,.3,1.3)}@keyframes bulleIn{from{transform:scale(.9) translateY(6px);opacity:0}}
@media (prefers-reduced-motion:reduce){.ow *,.conf,.bulle--neuve,.vigile-compagnon__bulle{animation:none!important}}

@media (max-width: 960px) {
  .contenu.ajuste { padding-top: 14px; }
  .coach { flex-direction: column; align-items: center; padding: 18px 18px 0; text-align: center; }
  .coach__hibou { width: 120px; }
  .coach__qui, .coach__actions { justify-content: center; }
  .coach__bulle::before { display: none; }
  .stats-a { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .chg-a__var { padding: 6px 10px; font-size: 14px; }
  .vigile-compagnon { right: 10px; bottom: 10px; }
  .vigile-compagnon__hibou { width: 60px; height: 76px; }
  .vigile-compagnon__bulle { max-width: 220px; margin-bottom: 44px; }
}
/* La chouette est noire : l'accueil passe sur fond menthe pour qu'on la voie en entier */
.coach { background: #E3F0EB; color: #101214; }
.coach__qui { color: #3A3F47; } .coach__qui b { color: #101214; }
.coach__bulle { box-shadow: 0 4px 0 #C9DDD4; }
.bouton--nuit { border: 2px solid #101214; background: #FFFFFF; color: #101214; box-shadow: 0 4px 0 #101214; }
/* Compagnon : dans le vide du menu, au-dessus de la formule ; sur petit écran il n'apparaît que pour parler */
@media (min-width: 961px) {
  .vigile-compagnon { left: 26px; right: auto; bottom: 214px; flex-direction: row; }
  .vigile-compagnon__bulle { order: 2; margin: 0 0 54px; border-radius: 16px 16px 16px 4px; }
  .vigile-compagnon__hibou { order: 1; }
}
@media (min-width: 961px) and (max-height: 780px) {
  .vigile-compagnon:not(.parle) { display: none; }
  .vigile-compagnon { bottom: 16px; left: auto; right: 22px; flex-direction: row-reverse; }
  .vigile-compagnon__bulle { border-radius: 16px 16px 4px 16px; }
}
@media (max-width: 960px) { .vigile-compagnon:not(.parle) .vigile-compagnon__hibou { width: 52px; height: 66px; } }

/* ---------- Démo du site (dans un cadre) ---------- */
.menu__nav a[hidden] { display: none; }
.mode-demo .bandeau-exemple, .mode-demo .formule, .mode-demo .menu__reglages, .mode-demo .etiquette { display: none !important; }

/* ---------- Analyses IA : Vigile répond ---------- */
.ia-a { display: flex; flex-direction: column; min-height: 0; }
.contenu .ia-a { height: calc(100% - 92px); }
.ia-a__fil { flex: 1 1 auto; min-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 20px 22px; list-style: none; }
.ia-a__vigile { display: flex; align-items: flex-start; gap: 12px; max-width: 760px; }
.ia-a__avatar { flex: none; width: 44px; height: 54px; }
.ia-a__avatar svg { width: 100%; height: 100%; overflow: visible; }
.ia-a__rep { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 2px solid var(--bord); border-radius: 4px 18px 18px 18px; background: #FFFFFF; line-height: 1.5; }
.ia-a__rep p { margin: 0; }
.ia-a__moi { align-self: flex-end; max-width: 520px; }
.ia-a__moi p { margin: 0; padding: 12px 16px; border-radius: 18px 18px 4px 18px; background: #F1EEFF; color: #2A1F70; font-weight: 600; }
.ia-a__etapes { color: #52575F; font-size: 13px; }
.ia-a__etapes span { color: #101214; }
.ia-a__liste, .ia-a__pistes { display: flex; flex-direction: column; gap: 6px; margin: 0; padding-left: 18px; }
.ia-a__pistes { padding-left: 0; list-style: none; }
.ia-a__pistes label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.ia-a__pistes input { margin-top: 4px; accent-color: #5B3FD1; }
.ia-a__tab { overflow-x: auto; border: 2px solid var(--bord); border-radius: 14px; }
.ia-a__tab .tableau { min-width: 0; }
.ia-a__tab th[scope="row"] { font-weight: 600; text-align: left; }
.ia-a__sources { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: #52575F; }
.ia-a__sources span + span { padding: 2px 8px; border-radius: 999px; background: #EEF0EC; }
.ia-a__bas { display: flex; flex-direction: column; gap: 10px; padding: 14px 18px 18px; border-top: 2px solid var(--bord); }
.ia-a__sugg { display: flex; flex-wrap: wrap; gap: 8px; }
.ia-a__champ { display: flex; gap: 10px; }
.ia-a__champ input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 2px solid var(--bord); border-radius: 14px; font: inherit; }
.ia-a__champ input:focus { outline: none; border-color: #B8A4FF; }
@media (max-width: 960px) { .contenu .ia-a { height: auto; } .ia-a__fil { max-height: 60vh; } }

/* ---------- Comptes : écran de connexion ---------- */
.cnx { display: grid; min-height: 100vh; min-height: 100dvh; place-items: center; padding: 32px 16px; background: #E3F0EB; color: var(--encre); font-family: var(--texte); }
.cnx[hidden] { display: none; }
.cnx__carte { display: grid; justify-items: center; gap: 14px; width: min(440px, 100%); padding: 28px 32px 32px; border: 2px solid #101214; border-radius: 28px; background: #FFFFFF; box-shadow: 0 6px 0 #101214; text-align: center; }
.cnx__marque { display: inline-flex; align-items: center; gap: 8px; color: var(--encre); font: 800 18px/1 var(--titre); letter-spacing: -0.02em; text-decoration: none; }
.cnx__marque svg { width: 34px; height: auto; }
.cnx__vigile { width: 132px; margin: 4px 0 -2px; }
.cnx__vigile .ow { display: block; width: 100%; height: auto; }
.cnx h1 { font: 800 26px/1.15 var(--titre); letter-spacing: -0.03em; text-wrap: balance; }
.cnx__sous { max-width: 34ch; color: var(--encre-2); font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.cnx__sous b { color: var(--encre); overflow-wrap: anywhere; }
.cnx__erreur { width: 100%; padding: 10px 14px; border: 2px solid var(--promo-trait); border-radius: 14px; background: var(--promo-doux); color: #7A2D10; font-size: 14px; line-height: 1.45; text-align: left; }
.cnx__erreur[hidden] { display: none; }
.cnx__sociaux { display: grid; gap: 10px; width: 100%; }
.cnx__social { width: 100%; min-height: 46px; font-size: 15px; }
.cnx__ou { display: flex; align-items: center; gap: 12px; width: 100%; color: var(--encre-3); font-size: 13px; }
.cnx__ou::before, .cnx__ou::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: var(--trait); }
.cnx__form { display: grid; gap: 8px; width: 100%; text-align: left; }
.cnx__form label { font-size: 13px; font-weight: 700; }
.cnx__form .champ { min-height: 48px; border: 2px solid var(--bord, #E1E4E8); border-radius: 14px; font-size: 16px; }
.cnx__form .champ:focus { border-color: #5B3FD1; outline: 3px solid #EEE9FF; outline-offset: 0; }
.cnx__form .bouton { min-height: 48px; margin-top: 6px; font-size: 16px; }
.cnx__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 18px; }
.cnx__note { max-width: 36ch; color: var(--encre-3); font-size: 13px; line-height: 1.5; }
@media (max-width: 480px) { .cnx { padding: 16px 12px; align-items: start; } .cnx__carte { padding: 22px 20px 26px; border-radius: 22px; } .cnx__vigile { width: 104px; } .cnx h1 { font-size: 23px; } }

/* ---------- Comptes : équipe et compte dans les Réglages ---------- */
.reglage--pile { grid-column: 1 / -1; flex-direction: column; align-items: stretch; }
.reglage--pile > div:first-child { flex: none; }
.cpt-membres { display: grid; gap: 6px; list-style: none; }
.cpt-membre { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 2px solid var(--bord-doux, #EDEFF2); border-radius: 14px; }
.cpt-membre__ini { display: grid; flex: none; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #EEE9FF; color: #3D2A9C; font-weight: 800; font-size: 13px; }
.cpt-membre--attente .cpt-membre__ini { background: #F1F2EF; color: var(--encre-3); }
.cpt-membre__qui { display: grid; flex: 1; min-width: 0; }
.cpt-membre__qui b, .cpt-membre__qui span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpt-membre__qui > span { color: var(--encre-3); font-size: 12px; }
.cpt-vous { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 6px; background: #DCF7F0; color: #0B7A66; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.cpt-inviter { display: flex; flex-wrap: wrap; gap: 8px; }
.cpt-inviter .champ { flex: 1 1 220px; }
.cpt-message { color: var(--encre-2); font-size: 13px; }
.cpt-suppr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cpt-suppr label { flex-basis: 100%; font-size: 12px; font-weight: 700; color: var(--promo); }
.cpt-suppr .champ { flex: 1 1 140px; }

.app[hidden] { display: none; }
.cpt-membres { margin: 0; padding: 0; }
.reglage--ligne { flex-direction: row; align-items: center; }
.reglage--ligne > div:first-child { flex: 1 1 280px; }
