*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  /* Charte Pom d'Api — blanc / or / noir (reprise de la démo d'Alexandra) */
  --or:        #85714D;
  --or-clair:  #b09a6e;
  --or-pale:   #e8dfc8;
  --or-fond:   #f7f3ec;
  --or-trait:  #d4c5a4;
  --noir:      #1a1a1a;
  --gris-text: #6b6257;
  --gris-clair:#9c9182;
  --blanc:     #ffffff;
  --rouge:     #b3261e;
  --vert:      #3d7a4a;
  --alerte-bg: #fbf0dc;
  --alerte:    #8a5a00;
  /* Couleur des barres de graphique : or plus saturé que la charte
     (#85714D est trop gris pour porter une donnée). */
  --data:      #a87420;
  --data-fort: #7d5410;

  --font-titre: 'Crimson Pro', Georgia, serif;
  --font-corps: 'Montserrat', Arial, sans-serif;
  --radius:    14px;
  --radius-sm: 10px;
  --tap:       52px;
}

html, body {
  min-height: 100%;
  font-family: var(--font-corps);
  background: var(--or-fond);
  color: var(--noir);
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font-family: inherit; }
a { color: var(--or); }

/* ── HEADER ── */
.header {
  background: var(--blanc);
  height: 72px;
  display: flex; align-items: center; justify-content: center;
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--or-pale);
}
.header img { height: 38px; display: block; }
.header .demo-tag {
  position: absolute; right: 1rem;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--or); border: 1px solid var(--or-trait); border-radius: 20px; padding: 4px 10px;
}
.boutique-band {
  background: var(--noir); color: var(--or-clair);
  text-align: center; padding: 8px 1rem;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.prog-wrap { background: #2e2b27; height: 3px; }
.prog-fill { background: var(--or); height: 100%; transition: width .5s ease; }

/* ── LAYOUT ── */
.main {
  max-width: 760px; margin: 0 auto;
  padding: 1.5rem 1rem calc(96px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 1rem;
}
.titre { font-family: var(--font-titre); font-weight: 500; font-size: 30px; line-height: 1.15; }
.sous-titre { color: var(--gris-text); font-size: 14px; }
.label-section {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gris-clair); margin-top: .5rem;
  display: flex; justify-content: space-between; align-items: center;
}

/* ── CARTES / FICHES ── */
.fiche {
  background: var(--blanc);
  border: 1px solid var(--or-trait); border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(133,113,77,.10);
  overflow: hidden;
}
.fiche-header {
  background: var(--or-fond); border-bottom: 1px solid var(--or-trait);
  padding: .85rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--or);
}
.fiche-body { padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 1.1rem; }
.fiche-footer {
  padding: 1rem 1.5rem 1.4rem; border-top: 1px solid var(--or-pale);
  display: flex; flex-direction: column; gap: .6rem;
}
@keyframes flash-or {
  0% { box-shadow: 0 0 0 4px rgba(133,113,77,.35), 0 4px 24px rgba(133,113,77,.15); }
  100% { box-shadow: 0 4px 24px rgba(133,113,77,.10); }
}
.fiche.valide { animation: flash-or .7s ease forwards; }

/* ── ACCUEIL : deux grands choix ── */
.choix { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.choix-btn {
  display: flex; flex-direction: column; gap: .5rem; text-align: left;
  padding: 1.5rem; min-height: 190px;
  border-radius: var(--radius); border: 1px solid var(--or-trait);
  background: var(--blanc); color: var(--noir); cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 24px rgba(133,113,77,.10);
  transition: transform .1s, border-color .15s;
}
.choix-btn:active { transform: scale(.98); }
.choix-btn:hover { border-color: var(--or); }
.choix-btn.primary { background: var(--or); color: var(--blanc); border-color: var(--or); }
.choix-btn .ico { font-size: 34px; line-height: 1; }
.choix-btn strong { font-family: var(--font-titre); font-size: 26px; font-weight: 500; line-height: 1.1; }
.choix-btn span { font-size: 13px; opacity: .85; line-height: 1.4; }
.choix-btn .duree {
  margin-top: auto; align-self: flex-start;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid currentColor; border-radius: 20px; padding: 3px 10px; opacity: .8;
}

.compteur { display: flex; align-items: center; justify-content: space-between; }
.compteur .cpt { font-size: 12px; font-weight: 600; color: var(--gris-text); letter-spacing: .04em; }
.compteur .cpt strong { font-family: var(--font-titre); font-size: 28px; font-weight: 500; color: var(--or); margin-right: 4px; }
.tag {
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gris-clair); border: 1px solid var(--or-trait); border-radius: 20px;
  padding: 4px 12px; background: var(--blanc); white-space: nowrap;
}
.tag.anonyme { color: var(--gris-text); }
.tag.client { color: var(--or); border-color: var(--or); }
.tag.alerte { color: var(--alerte); background: var(--alerte-bg); border-color: transparent; }
.tag.ok { color: var(--vert); border-color: var(--vert); }

/* ── CHAMPS ── */
.champ { display: flex; flex-direction: column; gap: .45rem; }
.champ-label {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gris-clair);
}
.champ-label .req { color: var(--or); }
.champ input, .champ select, .champ textarea {
  width: 100%; font-size: 18px; font-weight: 500;
  padding: 13px 16px; min-height: var(--tap);
  border: 1.5px solid var(--or-pale); border-radius: var(--radius-sm);
  background: var(--or-fond); color: var(--noir); outline: none;
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.champ textarea { font-size: 16px; min-height: 80px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  border-color: var(--or); background: var(--blanc); box-shadow: 0 0 0 3px rgba(133,113,77,.12);
}
.champ input::placeholder, .champ textarea::placeholder { color: var(--gris-clair); font-weight: 400; font-size: 16px; }
.champ input.invalide { border-color: var(--rouge); background: #fdf3f2; }
.champ-hint { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gris-clair); text-align: center; }
.champ-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.champ-quatuor { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.champ-quatuor .champ input { font-size: 22px; padding: 12px 6px; text-align: center; }
.champ-quatuor .champ-label { text-align: center; min-height: 2.4em; display: flex; align-items: flex-end; justify-content: center; }

.separateur {
  display: flex; align-items: center; gap: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--or-clair);
}
.separateur::before, .separateur::after { content: ''; flex: 1; height: 1px; background: var(--or-pale); }

/* Choix segmentés (radio) */
.segment { display: flex; border: 1.5px solid var(--or-pale); border-radius: var(--radius-sm); overflow: hidden; background: var(--or-fond); }
.segment label { flex: 1; position: relative; }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment span {
  display: flex; align-items: center; justify-content: center; min-height: calc(var(--tap) - 3px);
  font-size: 14px; font-weight: 600; color: var(--gris-text); cursor: pointer; padding: 0 .5rem; text-align: center;
}
.segment label + label span { border-left: 1px solid var(--or-pale); }
.segment input:checked + span { background: var(--or); color: var(--blanc); }
.segment input:focus-visible + span { outline: 2px solid var(--noir); outline-offset: -4px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--gris-text); cursor: pointer; }
.check input { width: 24px; height: 24px; flex: none; accent-color: var(--or); margin-top: 1px; }

.erreurs { color: var(--rouge); font-size: 13px; font-weight: 600; display: flex; flex-direction: column; gap: 4px; }

/* ── BOUTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 1.25rem; width: 100%;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border-radius: var(--radius-sm); cursor: pointer; text-decoration: none;
  border: 1px solid var(--or-pale); background: var(--blanc); color: var(--gris-text);
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn:hover { border-color: var(--or-trait); color: var(--noir); }
.btn.primary { background: var(--or); border-color: var(--or); color: var(--blanc); font-size: 14px; }
.btn.primary:hover { background: var(--or-clair); }
.btn.noir { background: var(--noir); border-color: var(--noir); color: var(--or-clair); }
.btn.danger { color: var(--rouge); border-color: #e9c2bf; }
.btn.auto { width: auto; }
.btn.petit { min-height: 40px; font-size: 11px; padding: 0 .9rem; }
.btns { display: flex; gap: .6rem; flex-wrap: wrap; }
.btns > .btn { flex: 1; }

/* ── RÉSULTAT ── */
.resultat {
  border: 1.5px dashed var(--or-trait); border-radius: var(--radius);
  padding: 1rem; display: flex; flex-direction: column; gap: 1rem; min-height: 90px;
  background: var(--or-fond);
}
.resultat .vide { color: var(--gris-clair); font-size: 14px; text-align: center; margin: auto; }
.reco { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; }
.pointure-box {
  background: var(--noir); color: var(--blanc); border-radius: var(--radius-sm);
  padding: .9rem 1.4rem; text-align: center; min-width: 150px;
}
.pointure-box em { display: block; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--or-clair); }
.pointure-box strong { font-family: var(--font-titre); font-size: 52px; font-weight: 500; line-height: 1; color: var(--blanc); }
.pointure-box small { display: block; font-size: 11px; color: var(--gris-clair); margin-top: 2px; }
.details { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13px; }
.details dt { color: var(--gris-clair); font-weight: 600; }
.details dd { font-weight: 600; }
.note-alerte { background: var(--alerte-bg); color: var(--alerte); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; font-weight: 600; }

.produits { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem; }
.produit {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: .7rem .9rem; border: 1.5px solid var(--or-pale); border-radius: var(--radius-sm);
  background: var(--blanc); cursor: pointer; text-align: left; font-size: 13px;
}
.produit input { position: absolute; opacity: 0; }
.produit strong { font-size: 14px; }
.produit small { color: var(--gris-clair); font-size: 11px; }
.produit:has(input:checked) { border-color: var(--or); box-shadow: 0 0 0 3px rgba(133,113,77,.15); }
.produit .fit { position: absolute; top: .55rem; right: .6rem; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.produit .fit.ideal { color: var(--vert); }
.produit .fit.correct { color: var(--alerte); }

/* ── LISTES ── */
.liste { display: flex; flex-direction: column; gap: 6px; }
.item {
  background: var(--blanc); border: 1px solid var(--or-pale); border-radius: var(--radius-sm);
  padding: 12px 14px; display: flex; align-items: center; gap: 12px;
  color: inherit; text-decoration: none; min-height: 60px;
}
a.item:hover, button.item:hover { border-color: var(--or-trait); }
button.item { width: 100%; text-align: left; cursor: pointer; font: inherit; }
.item .n { font-family: var(--font-titre); font-size: 22px; color: var(--or); min-width: 44px; text-align: center; }
.item .infos { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.item .p1 { font-size: 14px; font-weight: 600; }
.item .p2 { font-size: 12px; color: var(--gris-clair); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .vals { display: flex; gap: 10px; }
.item .val { display: flex; flex-direction: column; align-items: flex-end; }
.item .val span { font-size: 13px; font-weight: 600; color: var(--gris-text); }
.item .val em { font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris-clair); }
.vide-liste { text-align: center; color: var(--gris-clair); font-size: 13px; padding: 1.25rem; }

.recherche { position: relative; }
.recherche input { padding-left: 46px !important; font-size: 18px; }
.recherche::before { content: '⌕'; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--gris-clair); z-index: 1; }

/* Enfants (fiche client) */
.enfants { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.enfant {
  background: var(--blanc); border: 1px solid var(--or-trait); border-radius: var(--radius);
  padding: 1rem; display: flex; flex-direction: column; gap: .6rem;
}
.enfant-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.enfant-tete strong { font-family: var(--font-titre); font-size: 24px; font-weight: 500; line-height: 1.1; }
.enfant .meta { font-size: 12px; color: var(--gris-text); }
.enfant .derniere { display: flex; gap: 1rem; font-size: 12px; color: var(--gris-text); border-top: 1px solid var(--or-pale); padding-top: .6rem; }
.enfant .derniere b { display: block; font-size: 18px; color: var(--noir); font-family: var(--font-titre); font-weight: 500; }
.enfant-ajout {
  border: 1.5px dashed var(--or-trait); border-radius: var(--radius); background: none;
  min-height: 150px; color: var(--or); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}

.bandeau-assoc {
  background: var(--noir); color: var(--or-clair); border-radius: var(--radius-sm);
  padding: .8rem 1rem; font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.bandeau-assoc button { background: none; border: 1px solid var(--or); color: var(--or-clair); border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 11px; font-weight: 700; text-transform: uppercase; }

table.tableau { width: 100%; border-collapse: collapse; font-size: 13px; }
.tableau th, .tableau td { padding: 9px 8px; border-bottom: 1px solid var(--or-pale); text-align: left; white-space: nowrap; }
.tableau th { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris-clair); }
.tableau td.num, .tableau th.num { text-align: right; font-variant-numeric: tabular-nums; }
.scroll-x { overflow-x: auto; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .5rem; }
.stat { background: var(--or-fond); border-radius: var(--radius-sm); padding: .7rem .9rem; }
.stat em { display: block; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris-clair); }
.stat strong { font-family: var(--font-titre); font-size: 26px; font-weight: 500; }

/* ── NAV BAS ── */
.nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: var(--noir); border-top: 1px solid #2e2b27;
  display: flex; justify-content: center; gap: 4px;
  padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom));
}
.nav a {
  flex: 1; max-width: 180px; min-height: 52px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--gris-clair); text-decoration: none; border-radius: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.nav a .i { font-size: 18px; line-height: 1; }
.nav a.actif { color: var(--or-clair); background: rgba(133,113,77,.15); }

/* ── TOAST ── */
.toast {
  position: fixed; top: 118px; left: 50%; transform: translateX(-50%) translateY(-8px);
  background: var(--noir); border: 1px solid var(--or); color: var(--or-clair);
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  padding: 9px 20px; border-radius: 30px; opacity: 0; transition: all .25s; pointer-events: none; z-index: 100;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── UTILISATEUR CONNECTÉ ── */
.user-chip {
  position: absolute; left: 1rem; display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--gris-text);
}
.user-chip .avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--or-fond); border: 1px solid var(--or-trait);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--or);
}
.user-chip small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gris-clair); }

/* ── CONNEXION ── */
.profils { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .6rem; }
.profil {
  display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1rem .5rem;
  background: var(--blanc); border: 1.5px solid var(--or-pale); border-radius: var(--radius); cursor: pointer; font: inherit;
}
.profil.choisi { border-color: var(--or); box-shadow: 0 0 0 3px rgba(133,113,77,.15); }
.profil .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--or-fond); color: var(--or); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; }
.profil strong { font-size: 14px; }
.profil small { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris-clair); text-align: center; }
.pin { font-size: 30px !important; letter-spacing: .6em; text-align: center; }

/* ── BACK OFFICE ── */
.bo-onglets { display: flex; gap: .4rem; flex-wrap: wrap; }
.bo-onglets a {
  padding: 10px 16px; border-radius: 30px; text-decoration: none; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--gris-text); background: var(--blanc); border: 1px solid var(--or-pale);
}
.bo-onglets a.actif { background: var(--noir); color: var(--or-clair); border-color: var(--noir); }
.filtres { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; }
.filtres .champ { flex: 1; min-width: 180px; }
.filtres .segment { min-width: 280px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.kpi { background: var(--blanc); border: 1px solid var(--or-pale); border-radius: var(--radius-sm); padding: .9rem 1rem; }
.kpi em { display: block; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris-clair); }
.kpi strong { font-family: var(--font-titre); font-size: 34px; font-weight: 500; line-height: 1.1; color: var(--noir); }
.kpi small { display: block; font-size: 12px; color: var(--gris-text); }
.graphes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.graphe { background: var(--blanc); border: 1px solid var(--or-pale); border-radius: var(--radius); padding: 1rem 1.1rem; min-width: 0; }
.graphe.large { grid-column: 1 / -1; }
.graphe h3 { font-size: 13px; font-weight: 700; margin-bottom: .2rem; }
.graphe p { font-size: 11px; color: var(--gris-clair); margin-bottom: .6rem; }
.graphe svg { width: 100%; height: auto; display: block; overflow: visible; }
.graphe svg text { font-family: var(--font-corps); font-size: 10px; fill: var(--gris-clair); }
.graphe svg .grille { stroke: var(--or-pale); stroke-width: 1; }
.graphe svg .base { stroke: var(--or-trait); stroke-width: 1; }
.graphe svg .barre { fill: var(--data); pointer-events: none; }
.graphe svg .cible { fill: transparent; cursor: pointer; }
.graphe svg .cible:hover + .barre, .graphe svg .barre.survol { fill: var(--data-fort); }
.hbarres { display: flex; flex-direction: column; gap: 8px; }
.hbarre { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: 12px; }
.hbarre .lib { color: var(--gris-text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbarre .piste { height: 14px; }
.hbarre .rempli { height: 100%; background: var(--data); border-radius: 0 4px 4px 0; min-width: 2px; }
.hbarre:hover .rempli { background: var(--data-fort); }
.hbarre .v { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--noir); min-width: 64px; text-align: right; }
.hbarre .v small { color: var(--gris-clair); font-weight: 600; }
.infobulle {
  position: fixed; z-index: 120; pointer-events: none; background: var(--noir); color: var(--blanc);
  font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 8px; opacity: 0; transition: opacity .1s;
  transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap;
}
.infobulle.show { opacity: 1; }
.badge-role { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 20px; background: var(--or-fond); color: var(--or); }
.badge-role.admin { background: var(--noir); color: var(--or-clair); }
.inactif { opacity: .45; }

@media (max-width: 640px) {
  .graphes { grid-template-columns: 1fr; }
  .user-chip span.nom { display: none; }
  .choix { grid-template-columns: 1fr; }
  .choix-btn { min-height: 0; }
  .champ-quatuor { grid-template-columns: 1fr 1fr; }
  .reco { grid-template-columns: 1fr; }
  .header .demo-tag { display: none; }
}
@media print {
  .header, .boutique-band, .prog-wrap, .nav, .no-print, .toast { display: none !important; }
  body { background: #fff; }
  .fiche { box-shadow: none; border: none; }
}

/* ── AJOUTS v0.2 : formes conseillées, carnet de suivi, morphologie ── */
:root { --fille: #b0603a; --garcon: #4a6f80; }
.produit .fit.bon { color: var(--vert); }
.produit .fit.large { color: var(--gris-text); }
.produit .fit.juste { color: var(--alerte); }
.produit .fit.inconnu { color: var(--gris-clair); }
.produit .taille { font-family: var(--font-titre); font-size: 17px; color: var(--or); margin-left: 4px; }
.produit .fit { position: static; align-self: flex-start; }
.filtres .champ:has(.segment) { flex: 0 1 auto; min-width: 300px; }
.filtres .check { flex: 1 1 200px; }
details.autres { margin-top: .4rem; }
details.autres summary { cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--or); padding: .5rem 0; }
.btn[disabled] { opacity: .55; cursor: default; }
.courbe { width: 100%; height: auto; display: block; margin-top: .2rem; }
.courbe path { fill: none; stroke: var(--or); stroke-width: 2; }
.courbe circle { fill: var(--blanc); stroke: var(--or); stroke-width: 2; cursor: pointer; }
.graphe svg .point { opacity: .55; }
.graphe svg .point.F { fill: var(--fille); }
.graphe svg .point.G { fill: var(--garcon); }
.graphe svg .mediane { fill: none; stroke-width: 2.5; }
.graphe svg .mediane.F { stroke: var(--fille); }
.graphe svg .mediane.G { stroke: var(--garcon); }
.legende { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 11px; color: var(--gris-text); margin-top: .4rem; }
.legende .F::before, .legende .G::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.legende .F::before { background: var(--fille); }
.legende .G::before { background: var(--garcon); }
.tableau.morpho th.F { color: var(--fille); text-align: center; }
.tableau.morpho th.G { color: var(--garcon); text-align: center; }
.tableau.morpho small { color: var(--gris-clair); font-size: 10px; }

/* ══ v0.3 — interface premium : assistant de mesure, accueil, modèles ══ */
:root { --ombre: 0 10px 30px rgba(60, 45, 20, .08); --ombre-forte: 0 14px 40px rgba(60, 45, 20, .14); --r-xl: 22px; }
body { background: #faf7f2; }
.main { gap: 1.1rem; }
.btn.xl { min-height: 64px; font-size: 15px; border-radius: 16px; letter-spacing: .1em; box-shadow: var(--ombre); }
.btn.xl[disabled] { box-shadow: none; }
.lien { background: none; border: 0; color: var(--or); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: .4rem 0; text-decoration: underline; text-underline-offset: 3px; }
.aide { font-size: 13px; color: var(--gris-text); line-height: 1.5; }
.centre { text-align: center; align-items: center; }

/* Accueil */
.accueil-tete { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem 0 .25rem; }
.accueil-tete .titre { font-size: 38px; }
.accueil-tete .sous-titre { text-transform: capitalize; }
.anneau { position: relative; width: 84px; height: 84px; flex: none; }
.anneau svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anneau circle { fill: none; stroke: var(--or-pale); stroke-width: 4; }
.anneau circle.plein { stroke: var(--or); stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: calc(119.4 * (1 - var(--pc))); transition: stroke-dashoffset .8s ease; }
.anneau span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--gris-clair); font-weight: 600; }
.anneau b { font-family: var(--font-titre); font-size: 26px; font-weight: 500; color: var(--noir); }
.tuile {
  display: flex; align-items: center; gap: 1.2rem; padding: 1.5rem 1.6rem; border-radius: var(--r-xl);
  background: var(--blanc); border: 1px solid var(--or-pale); color: var(--noir); text-decoration: none;
  box-shadow: var(--ombre); transition: transform .12s ease, box-shadow .2s ease;
}
.tuile:active { transform: scale(.985); }
/* Brique pas encore ouverte (Commandes internet tant que Stripe n'est pas branché) */
.tuile.inactive { opacity: .45; filter: grayscale(1); cursor: not-allowed; pointer-events: none; box-shadow: none; }
.tuile:hover { box-shadow: var(--ombre-forte); }
.tuile strong { display: block; font-family: var(--font-titre); font-size: 28px; font-weight: 500; line-height: 1.15; }
.tuile small { display: block; font-size: 13px; color: var(--gris-text); margin-top: 4px; }
.tuile .fleche { margin-left: auto; font-size: 40px; line-height: 1; color: var(--or-clair); }
.tuile-ico { width: 64px; height: 64px; flex: none; border-radius: 50%; background: var(--or-fond); display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--or); }
.tuile-ico svg { width: 28px; height: 40px; fill: currentColor; }
.tuile.principale { background: linear-gradient(135deg, #8f7a53, #6f5c3a); border: 0; color: var(--blanc); min-height: 150px; }
.tuile.principale small { color: rgba(255,255,255,.8); }
.tuile.principale .tuile-ico { background: rgba(255,255,255,.15); color: var(--blanc); width: 76px; height: 76px; }
.tuile.principale .fleche { color: rgba(255,255,255,.7); }

/* Assistant de mesure */
.assistant { display: flex; flex-direction: column; gap: 1.2rem; }
.assistant-corps.anime { animation: apparait .25s ease; }
@keyframes apparait { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.assistant-haut { display: flex; flex-direction: column; gap: .9rem; }
.retour { font-size: 13px; font-weight: 700; color: var(--gris-text); text-decoration: none; letter-spacing: .04em; }
.etapes { display: flex; align-items: center; gap: .5rem; }
.etapes i { flex: 1; height: 2px; background: var(--or-pale); }
.etape { display: flex; align-items: center; gap: .5rem; background: none; border: 0; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris-clair); padding: 0; }
.etape span { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--or-trait); background: var(--blanc); font-size: 13px; }
.etape.en-cours { color: var(--noir); }
.etape.en-cours span { background: var(--noir); border-color: var(--noir); color: var(--or-clair); }
.etape.faite { color: var(--or); cursor: pointer; }
.etape.faite span { background: var(--or); border-color: var(--or); color: var(--blanc); }
.etape[disabled] { cursor: default; }
.assistant-corps { background: var(--blanc); border-radius: var(--r-xl); box-shadow: var(--ombre); padding: 1.6rem; display: flex; flex-direction: column; gap: 1.1rem; }
.wiz-titre { font-family: var(--font-titre); font-weight: 500; font-size: 30px; line-height: 1.15; }
.wiz-titre small { display: block; font-family: var(--font-corps); font-size: 12px; color: var(--gris-clair); letter-spacing: .04em; margin-top: 4px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.gros-choix { min-height: 120px; border-radius: 18px; border: 2px solid var(--or-pale); background: var(--or-fond); font-family: var(--font-titre); font-size: 32px; color: var(--noir); cursor: pointer; transition: all .15s ease; }
.gros-choix.on { background: var(--noir); border-color: var(--noir); color: var(--or-clair); }
.date-xl { width: 100%; min-height: 68px; font: inherit; font-size: 24px; font-weight: 600; padding: 0 1.2rem; border-radius: 16px; border: 2px solid var(--or-pale); background: var(--or-fond); color: var(--noir); }
.date-xl:focus { outline: none; border-color: var(--or); background: var(--blanc); }
.mesures-xl { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.mesures-xl.cinq { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.mesure-carte { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 1rem .5rem; border-radius: 18px; border: 2px solid var(--or-pale); background: var(--or-fond); cursor: pointer; font: inherit; color: var(--noir); transition: border-color .15s, background .15s, box-shadow .15s; }
.mesure-carte em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gris-clair); }
.mesure-carte strong { font-family: var(--font-titre); font-size: 48px; font-weight: 500; line-height: 1.05; min-height: 50px; }
.mesure-carte .vide { color: var(--or-trait); }
.mesure-carte small { font-size: 12px; color: var(--gris-clair); }
.mesure-carte.actif { border-color: var(--or); background: var(--blanc); box-shadow: 0 0 0 4px rgba(133,113,77,.14); }
.mesure-carte.actif em { color: var(--or); }
.mesure-carte.ko { border-color: var(--rouge); }
.pave { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; max-width: 460px; width: 100%; margin: 0 auto; }
.pave button { min-height: 66px; border-radius: 16px; border: 1px solid var(--or-pale); background: var(--blanc); font-family: var(--font-titre); font-size: 32px; color: var(--noir); cursor: pointer; box-shadow: 0 2px 0 var(--or-pale); transition: transform .06s, background .1s; touch-action: manipulation; user-select: none; }
.pave button:active { transform: translateY(2px); box-shadow: none; background: var(--or-fond); }
.pave .efface { font-family: var(--font-corps); font-size: 24px; color: var(--gris-text); }
.options { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.options .segment { flex: 1; min-width: 240px; }
.date-mesure { font-size: 13px; color: var(--gris-text); display: flex; gap: .5rem; align-items: center; }
.date-mesure input { font: inherit; padding: .5rem .7rem; border-radius: 10px; border: 1.5px solid var(--or-pale); background: var(--or-fond); }

/* Conseil */
.conseil-tete { display: flex; gap: 1.3rem; align-items: center; }
.pointure-xl { background: var(--noir); color: var(--blanc); border-radius: 20px; padding: 1.1rem 1.6rem 1.3rem; text-align: center; min-width: 150px; }
.pointure-xl em { display: block; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--or-clair); }
.pointure-xl strong { font-family: var(--font-titre); font-size: 84px; font-weight: 500; line-height: 1; }
.resume { font-size: 14px; color: var(--gris-text); line-height: 1.6; }
.resume b { color: var(--noir); font-size: 17px; }
.resume small { display: block; font-size: 12px; color: var(--gris-clair); }
.modeles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; }
.modele { position: relative; display: flex; flex-direction: column; gap: 2px; text-align: left; padding: .6rem .6rem .8rem; border-radius: 18px; border: 2px solid var(--or-pale); background: var(--blanc); cursor: pointer; font: inherit; color: var(--noir); transition: border-color .15s, box-shadow .15s, transform .1s; }
.modele:active { transform: scale(.98); }
.modele .photo { aspect-ratio: 1; border-radius: 12px; background: var(--or-fond); overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: .4rem; }
.modele img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.modele .marque { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--or); }
.modele strong { font-size: 13px; line-height: 1.25; }
.modele small { font-size: 11px; color: var(--gris-clair); }
.pied-carte { display: flex; align-items: baseline; gap: .5rem; margin-top: .3rem; font-size: 12px; color: var(--gris-text); }
.pied-carte b { font-family: var(--font-titre); font-size: 20px; font-weight: 500; color: var(--noir); }
.pied-carte i { font-style: normal; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--alerte); }
.pied-carte em { margin-left: auto; font-style: normal; font-weight: 600; }
.modele.on { border-color: var(--or); box-shadow: 0 0 0 4px rgba(133,113,77,.18); }
.modele.on::after { content: '✓'; position: absolute; top: .9rem; right: .9rem; width: 30px; height: 30px; border-radius: 50%; background: var(--or); color: var(--blanc); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.modele.squelette { min-height: 240px; background: linear-gradient(90deg, var(--or-fond) 25%, #fff 50%, var(--or-fond) 75%); background-size: 200% 100%; animation: brille 1.2s infinite; border-color: transparent; }
@keyframes brille { to { background-position: -200% 0; } }

/* Compte créé depuis la caisse (21/10/2026) */
.note-info { background: var(--or-fond); color: var(--gris-text); border-left: 3px solid var(--or); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; line-height: 1.45; }
#caisse .item { align-items: center; }
#caisse .btn.petit { flex: 0 0 auto; }
#caisse .p2 .origine { color: var(--or); font-weight: 700; }
/* Carnet de l'enfant (22/10/2026) */
.enfant-lien { color: inherit; text-decoration: none; }
.enfant-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: auto; }
.enfant-actions .btn { min-height: 48px; padding: 0 .6rem; }
.retour-carnet { font-size: 13px; font-weight: 600; color: var(--or); text-decoration: none; }
.enfant-couverture { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.3rem; border-radius: 20px; background: linear-gradient(135deg, var(--blanc), var(--or-fond)); border: 1px solid var(--or-pale); }
.enfant-identite { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.enfant-identite .tag { white-space: normal; line-height: 1.3; }
.enfant-couverture .pointure-xl { flex: 0 0 auto; }
.pointure-xl.petite { min-width: 110px; padding: .7rem .9rem; }
.pointure-xl.petite strong { font-size: 40px; }
.pointure-xl.petite small { display: block; font-size: 10px; opacity: .85; }
.bloc-clients, .enfant-couverture { min-width: 0; max-width: 100%; }
.bloc-clients .scroll-x { overflow-x: auto; max-width: 100%; }
.bloc-clients .tableau { font-size: 13px; }
.enfant-courbe { padding: .8rem 1.1rem 0; }
@media (max-width: 480px) { .bloc-clients .tableau .col-age { display: none; } .enfant-couverture { padding: 1rem; } .enfant-couverture .titre { font-size: 26px; } }
.enfant-courbe .courbe { width: 100%; height: auto; max-height: 160px; }
.enfant-chaussures { padding: .4rem .7rem .7rem; display: flex; flex-direction: column; gap: .2rem; }

/* Carnet : chaussures retenues lors des mesures (22/10/2026) */
.retenues { display: flex; flex-direction: column; gap: .4rem; margin-top: .4rem; padding-top: .7rem; border-top: 1px solid var(--or-pale); }
.retenues-titre { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--or); }
.retenues-titre span { margin-left: .3rem; color: var(--gris-clair); }
.retenue { display: flex; align-items: center; gap: .7rem; padding: .35rem; border-radius: 12px; color: inherit; text-decoration: none; }
.retenue:hover { background: var(--or-fond); }
.retenue img, .retenue-forme { flex: 0 0 52px; width: 52px; height: 52px; object-fit: contain; mix-blend-mode: multiply; border-radius: 10px; background: var(--or-fond); display: flex; align-items: center; justify-content: center; color: var(--or); }
.retenue b { display: block; font-size: 13px; font-weight: 600; }
.retenue small { display: block; font-size: 12px; color: var(--gris-text); }
.retenues details summary { cursor: pointer; font-size: 12px; color: var(--or); padding: .2rem .35rem; }

/* Espace client : en-tête de recherche, deux blocs (carnets, base clientes), tuile de création (22/10/2026) */
.espace-tete { display: flex; flex-direction: column; gap: .35rem; }
.recherche-xl { margin-top: .6rem; }
.recherche-xl input { min-height: 60px; font-size: 18px; border: 2px solid var(--or-trait) !important; border-radius: 16px !important; background: var(--blanc) !important; box-shadow: 0 6px 18px rgba(133,113,77,.10); }
.recherche-xl input:focus { border-color: var(--or) !important; outline: none; }
.aide-recherche { font-size: 12px; color: var(--gris-clair); padding-left: .2rem; }
.bloc-clients { background: var(--blanc); border: 1px solid var(--or-pale); border-radius: 18px; overflow: hidden; }
.bloc-tete { display: flex; align-items: baseline; gap: .6rem; padding: .85rem 1.1rem; background: var(--or-fond); border-bottom: 1px solid var(--or-pale); }
.bloc-tete strong { font-family: var(--font-titre); font-size: 20px; font-weight: 500; }
.bloc-detail { font-size: 12px; color: var(--gris-clair); }
.compteur { margin-left: auto; min-width: 28px; padding: 2px 9px; border-radius: 999px; background: var(--or); color: var(--blanc); font-size: 12px; font-weight: 700; text-align: center; }
.bloc-clients .liste { gap: 0; }
.bloc-clients .item { border: 0; border-radius: 0; border-top: 1px solid var(--or-pale); background: transparent; padding: 12px 1.1rem; }
.bloc-clients .liste > .item:first-child { border-top: 0; }
.bloc-clients a.item:hover { background: var(--or-fond); }
.vide-bloc { padding: 1.1rem; text-align: center; font-size: 13px; color: var(--gris-clair); }
.tuile-creation { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: 18px; border: 2px dashed var(--or-trait); color: inherit; text-decoration: none; background: transparent; }
.tuile-creation:hover { border-color: var(--or); background: var(--blanc); }
.tuile-creation .plus { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--or); color: var(--blanc); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.tuile-creation strong { display: block; font-size: 15px; }
.tuile-creation small { display: block; font-size: 12px; color: var(--gris-text); }
@media (max-width: 480px) { .bloc-clients .item .tag.ouvrir, .bloc-clients .btn .long { display: none; } .bloc-clients .item .btn.petit { padding: 0 .7rem; } }
.origine-carnet { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; margin-top: .6rem; padding: .7rem .9rem; border-radius: var(--radius-sm); background: var(--or-fond); font-size: 13px; color: var(--gris-text); }
.origine-carnet b { color: var(--noir); }

/* Bandeau d'installation sur l'écran d'accueil (PWA, 21/10/2026) */
.install-app { position: fixed; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .9rem 1rem; border-radius: 18px; background: var(--blanc); border: 2px solid var(--or); box-shadow: 0 10px 30px rgba(26,26,26,.18); max-width: 560px; margin: 0 auto; }
.install-app img { width: 48px; height: 48px; border-radius: 12px; }
.install-texte { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.4; color: var(--gris-text); }
.install-texte strong { font-size: 15px; color: var(--noir); }
.install-boutons { display: flex; gap: .5rem; margin-left: auto; }
.install-boutons .btn { min-height: 44px; padding: 0 1rem; }

/* Filtres par typologie, disponibilité et argumentaire (15/10/2026) */
.filtres { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.puce { min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 2px solid var(--or-pale); background: var(--blanc); font: inherit; font-size: 14px; font-weight: 600; color: var(--noir); cursor: pointer; }
.puce small { font-weight: 500; color: var(--gris-clair); margin-left: .2rem; }
.puce.on { background: var(--or); border-color: var(--or); color: var(--blanc); }
.puce.on small { color: var(--or-pale); }
.filtres-droite { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.puce.cdp.on { background: var(--alerte); border-color: var(--alerte); }
.badge-cdp { position: absolute; left: .4rem; bottom: .4rem; font-style: normal; font-size: 10px; font-weight: 700; color: var(--alerte); background: var(--alerte-bg); padding: 3px 7px; border-radius: 999px; }
.voir-plus { width: 100%; margin-top: .9rem; }
.coloris { display: flex; gap: .5rem; overflow-x: auto; margin: .8rem 0 .2rem; padding-bottom: .3rem; }
.coloris-choix { position: relative; flex: 0 0 auto; width: 92px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: .35rem; border-radius: 12px; border: 2px solid var(--or-pale); background: var(--blanc); font: inherit; font-size: 10px; color: var(--gris-text); cursor: pointer; }
.coloris-choix img { width: 72px; height: 72px; object-fit: contain; mix-blend-mode: multiply; background: var(--or-fond); border-radius: 8px; }
.coloris-choix span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coloris-choix.on { border-color: var(--or); box-shadow: 0 0 0 3px rgba(133,113,77,.18); }
.coloris-choix i { position: absolute; top: .4rem; right: .4rem; width: 10px; height: 10px; border-radius: 50%; }
.coloris-choix i.ok { background: var(--vert); }
.coloris-choix i.ailleurs { background: var(--alerte); }
.coloris-choix i.ko { background: var(--gris-clair); }
.puce.dispo.on { background: var(--vert); border-color: var(--vert); }
.modele .photo { position: relative; }
.badge-bf { position: absolute; left: .4rem; top: .4rem; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blanc); background: var(--or); padding: 3px 7px; border-radius: 999px; }
.stock { display: inline-block; margin-top: .35rem; font-size: 11px; font-weight: 700; line-height: 1.3; }
.stock.ok { color: var(--vert); }
.stock.ailleurs { color: var(--alerte); }
.stock.ko { color: var(--gris-clair); }
.modele .stock.ok::before { content: '● '; }
.argu { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 18px; border: 2px solid var(--or); background: var(--blanc); scroll-margin: 90px; }
.argu-tete { display: flex; flex-direction: column; gap: 2px; }
.argu-tete .marque { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--or); }
.argu-tete strong { font-family: var(--font-titre); font-size: 22px; font-weight: 500; }
.argu-tete small { font-size: 12px; color: var(--gris-text); }
.argu-accroche { margin: .7rem 0 .4rem; font-size: 14px; font-style: italic; color: var(--gris-text); }
.argu-liste { margin: .4rem 0 .2rem; padding-left: 0; list-style: none; display: grid; gap: .4rem; }
.argu-liste li { position: relative; padding-left: 1.5rem; font-size: 15px; font-weight: 600; line-height: 1.35; }
.argu-liste li::before { content: '✓'; position: absolute; left: 0; color: var(--or); font-weight: 700; }
.argu-stock { margin-top: .8rem; padding: .7rem .8rem; border-radius: 12px; background: var(--or-fond); font-size: 14px; line-height: 1.6; }
.argu-stock .stock { margin: 0; font-size: 14px; }
.argu-stock small { display: block; font-size: 11px; color: var(--gris-clair); }
.argu-texte { font-size: 13px; line-height: 1.5; color: var(--gris-text); margin-top: .5rem; }
.modele-retenu { display: flex; gap: 1rem; align-items: center; padding: .6rem; border-radius: 16px; background: var(--or-fond); font-size: 14px; }
.modele-retenu img { width: 90px; height: 90px; object-fit: contain; mix-blend-mode: multiply; border-radius: 12px; background: var(--blanc); }
.assistant textarea { width: 100%; margin-top: .5rem; font: inherit; font-size: 15px; padding: .8rem 1rem; border-radius: 12px; border: 1.5px solid var(--or-pale); background: var(--or-fond); }

@media (max-width: 640px) {
  .accueil-tete .titre { font-size: 30px; }
  .tuile strong { font-size: 23px; }
  .assistant-corps { padding: 1.1rem; }
  .mesure-carte strong { font-size: 38px; }
  .conseil-tete { flex-direction: column; align-items: stretch; text-align: center; }
  .etape { font-size: 0; gap: 0; }
  .modeles { grid-template-columns: 1fr 1fr; }
}

/* ══ v0.4 — palette claire : plus de fonds noirs (lisibilité de l'or) ══ */
:root { --or-fonce: #6f5c3a; --degrade-or: linear-gradient(135deg, #8f7a53, #6f5c3a); }
.boutique-band { background: var(--or-fond); color: var(--or-fonce); border-bottom: 1px solid var(--or-pale); }
.prog-wrap { background: var(--or-pale); }
.pointure-box, .pointure-xl { background: var(--degrade-or); color: var(--blanc); box-shadow: var(--ombre); }
.pointure-box em, .pointure-xl em, .pointure-box small { color: rgba(255, 255, 255, .85); }
.btn.noir { background: var(--blanc); border: 1.5px solid var(--or); color: var(--or-fonce); }
.btn.noir:hover { background: var(--or-fond); }
.bandeau-assoc { background: var(--or-fond); color: var(--noir); border: 1px solid var(--or-trait); }
.bandeau-assoc button { color: var(--or-fonce); }
.nav { background: var(--blanc); border-top: 1px solid var(--or-pale); box-shadow: 0 -6px 20px rgba(60, 45, 20, .06); }
.nav a { color: var(--gris-clair); }
.nav a.actif { color: var(--or-fonce); background: var(--or-fond); }
.toast { background: var(--or-fonce); border-color: var(--or-fonce); color: var(--blanc); }
.bo-onglets a.actif { background: var(--or); border-color: var(--or); color: var(--blanc); }
.badge-role.admin { background: var(--or); color: var(--blanc); }
.etape.en-cours span { background: var(--or); border-color: var(--or); color: var(--blanc); }
.etape.faite span { background: var(--or-fond); border-color: var(--or); color: var(--or-fonce); }
.gros-choix.on { background: var(--degrade-or); border-color: var(--or); color: var(--blanc); }
.segment input:checked + span { background: var(--or); color: var(--blanc); }

/* Icône mètre (tuile « Mesurer un enfant ») */
.tuile-ico svg.metre { width: 44px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Pastille de mode sur les tuiles d'accueil et en tête de l'assistant */
.tuile small .pastille { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 20px; margin-right: 6px; background: var(--or-fond); color: var(--or-fonce); }
.tuile.principale small .pastille { background: rgba(255,255,255,.2); color: var(--blanc); }
.assistant-haut { position: relative; }
.mode-mesure { position: absolute; top: 0; right: 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--or-fonce); }

/* ══ Tablette (Galaxy Tab S8+ : ~1140 × 710 points en paysage, ~710 × 1140 en portrait) ══ */
html { -webkit-text-size-adjust: 100%; }
button, a, input, label, .modele { touch-action: manipulation; }
.tuiles { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 900px) {
  .main { max-width: 1100px; }
  .tuiles { display: grid; grid-template-columns: 1.15fr 1fr; }
  .tuiles .tuile { min-height: 170px; }
  /* Étape « mesures » : cartes à gauche, pavé numérique à droite */
  .etape-2 .assistant-corps { display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 2rem; align-items: start; }
  .etape-2 .assistant-corps > * { grid-column: 1; }
  .etape-2 .assistant-corps > .pave { grid-column: 2; grid-row: 1 / span 12; margin: 0; }
  .etape-1 .assistant-corps { max-width: 760px; margin: 0 auto; width: 100%; }
  .conseil-tete { gap: 2rem; }
}
@media (min-width: 900px) and (max-height: 760px) {
  /* Paysage : on gagne de la hauteur */
  .header { height: 60px; }
  .header img { height: 32px; }
  .main { padding-top: 1rem; }
  .pave button { min-height: 62px; }
  .mesure-carte strong { font-size: 44px; }
}

.segment span { white-space: nowrap; }

/* ── À RAPPELER ET SUIVI DU CARNET (28/10/2026) ── */
.tag.veille { color: var(--alerte); background: var(--alerte-bg); border-color: var(--alerte-bg); }
.tag.stop { color: var(--rouge); background: #f9e3df; border-color: transparent; }
.tuile small .pastille.alerte { background: var(--alerte-bg); color: var(--alerte); }
.lien-rappels { align-self: flex-start; font-size: 13px; font-weight: 600; text-decoration: none; padding: .45rem .9rem; border-radius: 20px; background: var(--alerte-bg); color: var(--alerte); }
.rappels { display: flex; flex-direction: column; }
.rappel { display: flex; flex-direction: column; gap: .45rem; padding: .9rem 1.1rem; border-top: 1px solid var(--or-pale); min-width: 0; }
.rappels > .rappel:first-child { border-top: 0; }
.rappel.fait { opacity: .75; }
.rappel-tete { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.rappel-tete strong { font-family: var(--font-titre); font-size: 20px; font-weight: 500; }
.rappel-tete strong span { color: var(--gris-text); }
.rappel-tete small, .rappel-echeance { font-size: 12px; color: var(--gris-text); }
.rappel-echeance { font-weight: 600; color: var(--alerte); }
.rappel.fait .rappel-echeance { color: var(--vert); }
.rappel-paire { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: 12px; color: var(--gris-text); }
.rappel-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: .45rem; }
.rappel-actions .btn { min-height: 44px; justify-content: center; text-align: center; }
details.autres .rappels { margin-top: .5rem; background: var(--blanc); border: 1px solid var(--or-pale); border-radius: 18px; }
.suivi { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; }
.suivi > div { display: flex; flex-direction: column; gap: .15rem; padding: .85rem 1.1rem; border-top: 1px solid var(--or-pale); min-width: 0; }
.suivi em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--or); }
.suivi b { font-family: var(--font-titre); font-size: 20px; font-weight: 500; overflow-wrap: anywhere; }
.suivi small { font-size: 12px; color: var(--gris-text); line-height: 1.5; }
.suivi small .tag { margin-right: .3rem; }
.suivi.depuis { background: var(--blanc); border: 1px solid var(--or-pale); border-radius: 18px; overflow: hidden; margin: .6rem 0; }
.suivi.depuis > div:first-child, .bloc-clients .suivi > div:first-child { border-top: 0; }
@media (min-width: 461px) { .suivi > div { border-top: 0; border-left: 1px solid var(--or-pale); } .suivi > div:first-child { border-left: 0; } }

/* Accueil : la boutique de la tablette à la place de l'objectif du jour (29/10/2026). */
.boutique-ouverte { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-width: 108px; padding: .55rem .9rem; border: 1px solid var(--or-trait); border-radius: 16px; background: var(--blanc); }
.boutique-ouverte small { font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gris-clair); }
.boutique-ouverte b { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--or); margin-top: 2px; }
.boutique-ouverte span { font-family: var(--font-titre); font-size: 24px; line-height: 1.05; text-transform: uppercase; letter-spacing: .04em; color: var(--noir); }
.tuile.bientot { cursor: default; opacity: .72; border-style: dashed; box-shadow: none; }
.tuile.bientot:hover { transform: none; }
/* Accueil : les mesures du jour repliées, pour ne pas charger l'écran (29/10/2026). */
.jour-replie { margin-top: .4rem; }
.jour-replie summary { cursor: pointer; list-style: none; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris-text); padding: .6rem .2rem; }
.jour-replie summary::-webkit-details-marker { display: none; }
.jour-replie summary::after { content: ' ›'; color: var(--or); }
.jour-replie[open] summary::after { content: ' ‹'; }

/* ── FORMES : filtres et correction des cotes par le siège (29/10/2026) ── */
.filtres-formes { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.filtres-formes select, .filtres-formes input[type=search] { font: inherit; font-size: 14px; padding: .55rem .7rem; border: 1px solid var(--or-trait); border-radius: 10px; background: var(--blanc); min-height: 44px; }
.filtres-formes input[type=search] { flex: 1; min-width: 160px; }
.ligne-forme { cursor: pointer; }
.ligne-forme.ouverte { background: var(--or-fond); }
.ligne-forme .lien { color: var(--or); font-weight: 700; font-size: 12px; }
tr.editeur > td { background: var(--or-fond); padding: .6rem; white-space: normal; }
.editeur-forme { display: grid; gap: .5rem; }
.tableau.cotes { background: var(--blanc); font-size: 13px; }
.tableau.cotes tr.anormal td { background: var(--alerte-bg); }
.tableau.cotes tr.corrigee td { background: #eaf3ea; }
.tableau.cotes input.cote { font: inherit; font-size: 15px; text-align: right; padding: .35rem .4rem; border: 1px solid var(--or-trait); border-radius: 8px; min-height: 40px; }
.tableau.cotes small { display: block; font-size: 10px; color: var(--gris-text); }
.actions-cote { display: flex; gap: .3rem; flex-wrap: wrap; }
.commentaire-cote { display: grid; gap: .3rem; font-size: 12px; font-weight: 600; color: var(--gris-text); }
.commentaire-cote input { font: inherit; font-size: 14px; padding: .55rem .7rem; border: 1px solid var(--or-trait); border-radius: 10px; }
.historique-cotes { display: grid; gap: .35rem; font-size: 13px; }
.historique-cotes div { border-top: 1px solid var(--or-pale); padding-top: .35rem; }

/* ── PALETTE DE LA PRÉSENTATION (29/10/2026) ──
   Caramel du site pomdapi.fr, terracotta pour les repères, encre plus foncée pour la lecture,
   titres en Crimson Text comme sur le site. Ces valeurs remplacent celles définies plus haut. */
:root {
  --or: #9b7f52; --or-clair: #b39a70; --or-fonce: #6f5a37; --or-pale: #e8dcc6; --or-fond: #fbf7f0; --or-trait: #e3d6c0;
  --noir: #1f1c18; --gris-text: #3b3630; --gris-clair: #5e564c;
  --terra: #b04f30; --terra-pale: #f8e6dd; --sauge: #7f9775; --sauge-pale: #e7eee2;
  --degrade-or: linear-gradient(135deg, #9b7f52, #6f5a37);
  --font-titre: 'Crimson Text', 'Crimson Pro', Georgia, serif;
}
body { background: var(--or-fond); color: var(--noir); }
.titre, .wiz-titre, .bloc-tete strong { font-weight: 600; }
.btn.primary:hover { background: var(--or-fonce); border-color: var(--or-fonce); }
.nav a { color: var(--gris-clair); font-weight: 700; }
.nav a.actif { color: var(--terra); background: var(--terra-pale); }
.etape.en-cours span { background: var(--terra); border-color: var(--terra); color: var(--blanc); }
.bloc-tete .compteur { background: var(--terra); color: var(--blanc); }
.label-section { color: var(--terra); font-weight: 800; }
.tuile:not(.principale) .tuile-ico { color: var(--terra); }
.boutique-ouverte b { color: var(--terra); }
.lien-rappels { background: var(--terra-pale); color: var(--terra); }
.sous-titre, .aide, .meta, .p2 { color: var(--gris-text); }

/* ── FICHE ENFANT EN UN COUP D'ŒIL (29/10/2026) ── */
.fiche-ludique { border-radius: 24px; padding: 1.2rem 1.2rem 1rem; display: grid; gap: .8rem; border: 2px solid var(--or-trait); background: var(--blanc); }
.fiche-ludique.ton-vert { background: #eef6ec; border-color: #9cc49a; }
.fiche-ludique.ton-orange { background: #fdf3df; border-color: #e7c27a; }
.fiche-ludique.ton-rouge { background: #fbe6e1; border-color: #e3a090; }
.fl-haut { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.fl-haut .titre { font-size: 40px; line-height: 1; }
.fl-pointure { text-align: center; background: var(--blanc); border-radius: 18px; padding: .4rem 1rem; border: 2px solid var(--or-trait); }
.fl-pointure small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); }
.fl-pointure b { font-family: var(--font-titre); font-size: 52px; font-weight: 600; line-height: 1; }
.fl-humeur { display: flex; align-items: center; gap: .8rem; }
.fl-emoji { font-size: 64px; line-height: 1; }
.fl-humeur b { font-family: var(--font-titre); font-size: 30px; font-weight: 600; line-height: 1.1; }
.fl-action { display: flex; align-items: center; gap: .7rem; padding: .9rem 1.1rem; border-radius: 18px; background: var(--sauge-pale); border: 2px solid var(--sauge); }
.fl-action.urgent { background: var(--terra); border-color: var(--terra); color: var(--blanc); }
.fl-action span { font-size: 28px; }
.fl-action b { font-size: 18px; line-height: 1.3; }
.fl-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
@media (max-width: 460px) { .fl-kpis { gap: .4rem; } }
.fl-kpi { background: var(--blanc); border: 2px solid var(--or-trait); border-radius: 18px; padding: .7rem .5rem; text-align: center; display: grid; gap: .15rem; align-content: start; min-width: 0; }
.fl-kpi span { font-size: 30px; line-height: 1; }
.fl-kpi b { font-size: 15px; line-height: 1.2; }
.fl-kpi small { font-size: 12px; color: var(--gris-text); font-weight: 500; }
.fl-kpi.ton-vert { border-color: #9cc49a; } .fl-kpi.ton-orange { border-color: #e7c27a; } .fl-kpi.ton-rouge { border-color: #e3a090; }
.jauge { background: var(--blanc); border: 2px solid var(--or-trait); border-radius: 20px; padding: 1rem 1.1rem; display: grid; gap: .6rem; }
.jauge-tete b { display: block; font-size: 16px; }
.jauge-tete span { font-size: 12px; color: var(--gris-text); }
.jauge-barre { position: relative; height: 46px; border-radius: 0 24px 24px 0; background: var(--or-fond); border: 2px solid var(--or); display: flex; align-items: center; overflow: hidden; }
.jauge-pied { height: 100%; display: flex; align-items: center; justify-content: flex-end; padding-right: .6rem; border-radius: 0 20px 20px 0; transition: width .8s ease; }
.jauge.ok .jauge-pied { background: #9cc49a; } .jauge.juste .jauge-pied { background: #e7c27a; } .jauge.petite .jauge-pied { background: #e3a090; }
.jauge-pied span { font-size: 13px; font-weight: 800; color: var(--noir); white-space: nowrap; }
.jauge-bout { position: absolute; right: .6rem; font-size: 12px; font-weight: 700; color: var(--or-fonce); }
.jauge.petite .jauge-bout { display: none; }
.jauge-legende { font-size: 14px; }
.progression { width: 100%; height: auto; display: block; }
.progression .aire { fill: var(--terra-pale); }
.progression .trait { fill: none; stroke: var(--terra); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.progression circle { fill: var(--terra); stroke: var(--blanc); stroke-width: 3; }
.progression .eu { font-family: var(--font-titre); font-size: 18px; font-weight: 600; fill: var(--noir); }
.progression .date { font-size: 11px; fill: var(--gris-text); font-weight: 600; }
.detail-mesures .scroll-x { margin-top: .5rem; }
.mini-lecture { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: 14px; font-weight: 600; }

/* Pictogrammes au trait (29/10/2026) : couleurs de la charte selon l'état. */
.ton-vert { color: #4f7a4a; } .ton-orange { color: #a8701a; } .ton-rouge { color: var(--terra); } .ton-neutre { color: var(--or); }
.fiche-ludique .fl-humeur { color: inherit; }
.fl-humeur.ton-vert .visage { color: #4f7a4a; } .fl-humeur.ton-orange .visage { color: #a8701a; } .fl-humeur.ton-rouge .visage { color: var(--terra); }
.fl-humeur b { color: var(--noir); }
.fl-kpi .ico { margin: 0 auto 2px; color: var(--or); }
.fl-kpi.ton-vert .ico { color: #4f7a4a; } .fl-kpi.ton-orange .ico { color: #a8701a; } .fl-kpi.ton-rouge .ico { color: var(--terra); }
.fl-action .ico { flex: none; color: var(--sauge); }
.fl-action.urgent .ico { color: var(--blanc); }
.mini-lecture span { display: inline-flex; align-items: center; gap: .35rem; }
.mini-lecture span, .rappel-tete strong span.ton-vert, .rappel-tete strong span.ton-orange, .rappel-tete strong span.ton-rouge { font-weight: 700; }
.rappel-tete strong .visage { vertical-align: -4px; }
.jauge-pied span, .jauge-bout { letter-spacing: .02em; text-transform: uppercase; font-size: 11px; }
.fiche-ludique[class*='ton-'] { color: var(--noir); }
/* Jauge : libellés au-dessus de la barre, jamais superposés (29/10/2026). */
.jauge-echelle { display: flex; justify-content: space-between; gap: 1rem; font-size: 13px; color: var(--gris-text); }
.jauge-echelle b { color: var(--noir); }
.jauge-barre { height: 30px; }
/* Rappel par SMS : marche à suivre sans ouvrir Messages depuis l'application (29/10/2026). */
.panneau-sms { display: grid; gap: .5rem; padding: .8rem; border-radius: 14px; background: var(--terra-pale); font-size: 14px; }
.panneau-sms p { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.panneau-sms .num { font-size: 17px; letter-spacing: .03em; }
.panneau-sms blockquote { margin: 0; padding: .6rem .7rem; background: var(--blanc); border-left: 3px solid var(--terra); border-radius: 8px; font-size: 13px; color: var(--gris-text); }
.panneau-sms p { display: block; line-height: 1.5; }
.panneau-sms p .btn { margin-top: .35rem; }
#fClient input[readonly] { background: var(--or-fond); color: var(--gris-text); cursor: not-allowed; }

/* Pointure retenue après essayage (02/11/2026) */
.bloc-taille { display: grid; gap: .6rem; padding: 1rem; border-radius: 18px; background: var(--blanc); border: 2px solid var(--or-trait); margin-top: .6rem; }
.bloc-taille-tete b { display: block; font-size: 16px; }
.bloc-taille-tete small { font-size: 13px; color: var(--gris-text); }
.tailles-choix { display: flex; flex-wrap: wrap; gap: .5rem; }
.taille-choix { font: inherit; min-width: 58px; min-height: 58px; border-radius: 14px; border: 2px solid var(--or-trait); background: var(--blanc); font-family: var(--font-titre); font-size: 26px; font-weight: 600; color: var(--noir); display: grid; place-items: center; line-height: 1; padding: .3rem .5rem; cursor: pointer; }
.taille-choix small { font-family: var(--font-corps); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gris-text); }
.taille-choix.on { background: var(--terra); border-color: var(--terra); color: var(--blanc); }
.taille-choix.on small { color: var(--blanc); }
.motifs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.motifs span { width: 100%; font-size: 13px; font-weight: 700; }
.motif { font: inherit; font-size: 13px; font-weight: 600; padding: .55rem .8rem; border-radius: 999px; border: 2px solid var(--or-trait); background: var(--blanc); cursor: pointer; min-height: 44px; }
.motif.on { background: var(--terra-pale); border-color: var(--terra); color: var(--terra); }

/* Moyens de contact acceptés (02/11/2026) */
.canaux-bloc { display: grid; gap: .5rem; }
.canaux-bloc > span { font-size: 14px; font-weight: 600; }
.canaux-bloc small { font-size: 12px; color: var(--gris-text); }
.canaux-choix { display: flex; flex-wrap: wrap; gap: .5rem; }
.canal { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .9rem; border: 2px solid var(--or-trait); border-radius: 14px; background: var(--blanc); font-weight: 700; font-size: 15px; min-height: 48px; cursor: pointer; }
.canal input { width: 20px; height: 20px; accent-color: var(--terra); }
.canal:has(input:checked) { border-color: var(--terra); background: var(--terra-pale); }

/* Relances automatiques (06/11/2026) : trace en lecture seule, plus d'envoi depuis le téléphone. */
.relances { list-style: none; display: flex; flex-direction: column; gap: .5rem; padding: .3rem 1.1rem .9rem; margin: 0; }
.rappel .relances { padding: 0; }
.relance { display: flex; gap: .6rem; align-items: flex-start; font-size: 15px; }
.relance .tag { flex: none; }
.relance small { display: block; font-size: 13px; color: var(--gris-text); }
.relance-demo { margin: .2rem 1.1rem .4rem; font-size: 13px; }
.note-alerte.relance-demo { margin: 0; font-size: 14px; }

/* ══ Version facile du 06/11/2026 : STATS, suivi des familles, commandes internet, mode PC ══ */

.kpis-boutique { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.kb { background: var(--blanc); border: 1px solid var(--or-pale); border-radius: 18px; padding: .8rem .9rem; display: flex; flex-direction: column; gap: 3px; }
.kb b { font-family: var(--font-titre); font-size: 32px; line-height: 1; color: var(--terra); }
.kb span { font-size: 13px; color: var(--gris-text); line-height: 1.25; }
.kb.grand { grid-column: span 2; background: var(--terra); border: 0; }
.kb.grand b { color: #fff; font-size: 46px; }
.kb.grand span { color: #fbe6dc; font-size: 15px; }
.kb em { font-style: normal; align-self: flex-start; margin-top: 4px; font-size: 13px; font-weight: 800; color: #fff; background: rgba(255,255,255,.18); border-radius: 99px; padding: 3px 10px; }
.kb.vert b { color: var(--vert); }
.stats-cartes { display: grid; gap: .9rem; }
.carte-stat { background: var(--blanc); border: 1px solid var(--or-pale); border-radius: 20px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.carte-stat > strong { font-size: 16px; }
.barres-sem { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 150px; align-items: end; }
.col-sem { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; }
.col-sem i { width: 70%; border-radius: 4px 4px 0 0; background: #d9cbb2; min-height: 2px; }
.col-sem.mois i { background: var(--terra); }
.col-sem em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--gris-text); }
.col-sem small { font-size: 11px; color: var(--gris-text); }
.ligne-stat { display: flex; justify-content: space-between; font-size: 16px; padding: .4rem 0; border-top: 1px solid var(--or-pale); }

.filtres-familles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.filtre-fam { background: var(--blanc); border: 2px solid var(--or-pale); border-radius: 18px; padding: .6rem .2rem; display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: inherit; cursor: pointer; color: var(--noir); }
.filtre-fam b { font-family: var(--font-titre); font-size: 30px; line-height: 1; }
.filtre-fam span { font-size: 12px; font-weight: 800; line-height: 1.15; text-align: center; color: var(--gris-text); }
.filtre-fam.on { border-color: var(--terra); background: var(--terra-pale); }
.filtre-fam.on span { color: var(--terra); }
.familles-liste { display: flex; flex-direction: column; gap: .7rem; }
.famille-carte { display: grid; grid-template-columns: 54px 1fr 16px; gap: .8rem; align-items: center; background: var(--blanc); border: 1px solid var(--or-pale); border-radius: 20px; padding: .8rem .9rem; color: inherit; text-decoration: none; }
.fam-avatar { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-titre); font-size: 26px; font-weight: 600; }
.fam-corps { display: flex; flex-direction: column; min-width: 0; }
.fam-corps strong { font-family: var(--font-titre); font-size: 21px; font-weight: 600; line-height: 1.1; }
.fam-corps small { font-size: 13px; color: var(--gris-text); }
.fam-statut { align-self: flex-start; margin-top: 5px; font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 12px; line-height: 1.3; }
.ton-vert.fam-avatar, .fam-statut.ton-vert { background: #eef4ec; color: var(--vert); }
.ton-jaune.fam-avatar, .fam-statut.ton-jaune { background: #fdf3dc; color: #8a6a1f; }
.ton-terra.fam-avatar, .fam-statut.ton-terra { background: var(--terra-pale); color: var(--terra); }
.ton-gris.fam-avatar, .fam-statut.ton-gris { background: #f1ede6; color: var(--gris-text); }
.famille-carte .fleche { font-size: 24px; color: var(--or); }
.relance-demo { font-size: 13px; text-align: center; }

.commandes { display: flex; flex-direction: column; gap: .9rem; }
.commande { display: flex; flex-direction: column; gap: .7rem; padding: 1rem 1.1rem 1.2rem; background: var(--blanc); border: 2px solid var(--or-pale); border-radius: 22px; }
.commande.urgent { border-color: var(--terra); }
.commande.joie { border-color: var(--vert); }
.cmd-etape { display: flex; flex-direction: column; gap: 6px; }
.cmd-barre { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.cmd-barre i { height: 8px; border-radius: 4px; background: var(--or-pale); }
.cmd-barre i.fait { background: var(--vert); }
.cmd-barre i.ici { background: var(--terra); animation: cmd-clign 1.4s ease-in-out infinite; }
@keyframes cmd-clign { 50% { opacity: .45; } }
.cmd-etape small { font-size: 13px; font-weight: 700; color: var(--gris-text); }
.cmd-phrase { font-size: 19px; line-height: 1.35; margin: 0; }
.cmd-phrase b { color: var(--terra); } .cmd-phrase b.vert { color: var(--vert); }
.cmd-produit { display: grid; grid-template-columns: 62px 1fr; gap: .8rem; align-items: center; background: var(--or-fond); border-radius: 16px; padding: .6rem; }
.cmd-photo { width: 62px; height: 62px; border-radius: 12px; background: var(--blanc); display: grid; place-items: center; font-size: 30px; }
.cmd-produit b { display: block; font-size: 16px; } .cmd-produit span span { font-size: 15px; color: var(--gris-text); }
.cmd-pointure { display: inline-block; margin-top: 4px; font-style: normal; background: var(--noir); color: #fff; border-radius: 8px; padding: 2px 10px; font-size: 15px; font-weight: 800; }
.cmd-question { font-size: 20px; font-weight: 800; text-align: center; margin: .2rem 0 0; }
.cmd-oui-non { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.cmd-gros { min-height: 64px; border-radius: 18px; font-family: inherit; font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: .4rem; cursor: pointer; border: 0; }
.cmd-gros.oui { background: var(--vert); color: #fff; }
.cmd-gros.non { background: var(--blanc); border: 2px solid var(--or-pale); color: var(--gris-text); }
.cmd-gros.plein { background: var(--terra); color: #fff; width: 100%; }
.cmd-calme { text-align: center; padding: 1.8rem .6rem; color: var(--vert); font-size: 20px; font-weight: 800; }
.cmd-calme span { display: block; font-size: 46px; }
.cmd-attente { background: var(--blanc); border: 1px solid var(--or-pale); border-radius: 20px; padding: .2rem 1rem; }
.cmd-attente summary { list-style: none; font-size: 17px; font-weight: 800; padding: .8rem 0; display: flex; justify-content: space-between; cursor: pointer; }
.cmd-attente summary::-webkit-details-marker { display: none; }
.cmd-attente summary::after { content: "›"; transition: transform .2s; }
.cmd-attente[open] summary::after { transform: rotate(90deg); }
.cmd-ligne { display: flex; justify-content: space-between; gap: .6rem; padding: .6rem 0; border-top: 1px solid var(--or-pale); font-size: 15px; }
.cmd-ligne small { color: var(--gris-text); text-align: right; }
.cmd-attente .aide { padding-bottom: .8rem; }

/* Icône de bascule téléphone / PC (grand écran seulement) */
.mode-ecran { display: none; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); align-items: center; gap: 2px; background: var(--or-fond); border: 1px solid var(--or-pale); border-radius: 99px; padding: 3px; cursor: pointer; }
.mode-ecran span { width: 32px; height: 28px; border-radius: 99px; display: grid; place-items: center; font-size: 15px; opacity: .45; transition: all .2s; }
body:not(.mode-pc) .mode-ecran .m-tel, body.mode-pc .mode-ecran .m-pc { background: var(--blanc); opacity: 1; box-shadow: 0 1px 4px rgba(31,28,24,.15); }
@media (min-width: 900px) {
  .mode-ecran { display: flex; }
  .header .demo-tag { right: 6.5rem; }
  .stats-cartes { grid-template-columns: 1.4fr 1fr; }
  /* Mode PC : menu à gauche, contenus en grille */
  body.mode-pc .nav { top: 0; right: auto; width: 230px; flex-direction: column; justify-content: flex-start; gap: 6px; padding: 120px 14px 20px; border-top: 0; border-right: 1px solid var(--or-pale); box-shadow: none; }
  body.mode-pc .nav a { flex: 0 0 auto; max-width: none; flex-direction: row; justify-content: flex-start; gap: .8rem; padding: .8rem 1rem; font-size: 13px; }
  body.mode-pc .nav a .i { font-size: 20px; }
  body.mode-pc .main { max-width: 1240px; margin-left: 230px; margin-right: auto; padding: 2rem 2.5rem 3rem; }
  body.mode-pc .main:has(.tuiles) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  body.mode-pc .main:has(.tuiles) > * { grid-column: 1 / -1; }
  body.mode-pc .kpis-boutique { grid-template-columns: repeat(5, 1fr); }
  body.mode-pc .kb.grand { grid-column: auto; }
  body.mode-pc .kb.grand b { font-size: 40px; }
  body.mode-pc .filtres-familles { max-width: 640px; }
  body.mode-pc .familles-liste, body.mode-pc .commandes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
}
/* Stats : choix de la période (06/11/2026) */
.periode-stats { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.periode-stats select, .periode-stats input { font-family: inherit; font-size: 16px; font-weight: 700; padding: .6rem .8rem; border-radius: 14px; border: 1px solid var(--or-pale); background: var(--blanc); color: var(--noir); }
.periode-stats label { display: flex; align-items: center; gap: .4rem; font-size: 14px; font-weight: 700; color: var(--gris-text); }
.periode-stats .per-lib { flex-basis: 100%; font-size: 13px; color: var(--gris-text); }

/* Relances, version débutante (09/11/2026) */
.rel-comment { background: var(--blanc); border: 1px solid var(--or-pale); border-radius: 20px; padding: .2rem 1.1rem; }
.rel-comment summary { list-style: none; cursor: pointer; font-size: 17px; font-weight: 800; padding: .9rem 0; display: flex; justify-content: space-between; color: var(--or-fonce); }
.rel-comment summary::-webkit-details-marker { display: none; }
.rel-comment summary::after { content: "›"; transition: transform .2s; }
.rel-comment[open] summary::after { transform: rotate(90deg); }
.rel-comment ol { list-style: none; display: flex; flex-direction: column; gap: .7rem; padding: 0 0 1rem; margin: 0; counter-reset: etape; }
.rel-comment li { display: grid; grid-template-columns: 46px 1fr; gap: .8rem; align-items: center; font-size: 16px; line-height: 1.35; }
.rel-comment li span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: var(--or-fond); }
.rel-comment li b { color: var(--noir); }
.rel-section { display: flex; flex-direction: column; gap: .7rem; }
.rel-section header { display: grid; grid-template-columns: 44px 1fr; gap: .7rem; align-items: start; }
.rel-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: var(--terra-pale); }
.rel-section.bientot .rel-ico { background: #fdf3dc; }
.rel-section.sans .rel-ico { background: #f1ede6; }
.rel-section h3 { font-family: var(--font-titre); font-size: 23px; font-weight: 600; line-height: 1.1; margin: 0; }
.rel-section h3 em { font-style: normal; font-family: inherit; font-size: 13px; font-weight: 800; vertical-align: 3px; background: var(--terra); color: #fff; border-radius: 99px; padding: 1px 8px; margin-left: 4px; }
.rel-section.bientot h3 em { background: #8a6a1f; } .rel-section.sans h3 em { background: var(--gris-text); }
.rel-section header p { font-size: 15px; color: var(--gris-text); line-height: 1.4; margin: .2rem 0 0; }
.rel-liste { display: flex; flex-direction: column; gap: .7rem; }
.rel-carte { background: var(--blanc); border: 1px solid var(--or-pale); border-radius: 20px; padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .6rem; }
.rel-section.attendues .rel-carte { border: 2px solid var(--terra); }
.rel-tete { display: grid; grid-template-columns: 50px 1fr 16px; gap: .8rem; align-items: center; color: inherit; text-decoration: none; }
.rel-avatar { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-titre); font-size: 25px; font-weight: 600; background: var(--or-fond); color: var(--or-fonce); }
.rel-section.attendues .rel-avatar { background: var(--terra-pale); color: var(--terra); }
.rel-qui strong { display: block; font-family: var(--font-titre); font-size: 23px; font-weight: 600; line-height: 1.05; }
.rel-qui small { font-size: 14px; color: var(--gris-text); }
.rel-tete .fleche { font-size: 24px; color: var(--or); }
.rel-phrase { font-size: 16px; line-height: 1.4; margin: 0; color: var(--noir); }
.rel-bouton { display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 16px; background: var(--terra); color: #fff; font-weight: 800; font-size: 17px; text-decoration: none; }
.rel-vide { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; padding: 2rem 1rem; background: var(--blanc); border: 1px solid var(--or-pale); border-radius: 20px; color: var(--gris-text); font-size: 15px; }
.rel-vide span { font-size: 44px; } .rel-vide b { color: var(--vert); font-size: 18px; }
.rel-bravo { text-align: center; background: #eef4ec; color: var(--vert); border-radius: 18px; padding: .9rem 1rem; font-size: 16px; }
@media (min-width: 900px) { body.mode-pc .rel-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rel-comment li p { margin: 0; }

/* « Ma boutique » : sous-onglets Mesures / Clientes / Internet (09/11/2026) */
.onglets-boutique { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.onglets-boutique button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .7rem .4rem; border-radius: 16px; border: 2px solid var(--or-pale); background: var(--blanc); font-family: inherit; font-size: 15px; font-weight: 800; color: var(--gris-text); cursor: pointer; }
.onglets-boutique button span { font-size: 22px; }
.onglets-boutique button.on { border-color: var(--terra); background: var(--terra-pale); color: var(--terra); }
.kb.lien { text-decoration: none; color: inherit; justify-content: center; }
.kb.lien span { color: var(--terra); font-weight: 800; }
.derniere-relance { font-size: 14px; color: var(--gris-text); text-align: center; margin: 0; }
.meta.derniere-relance { text-align: left; }

/* Sans menu du bas (09/11/2026) : briques sur l'accueil, « ‹ Accueil » dans l'en-tête */
.main { padding-bottom: calc(2.5rem + env(safe-area-inset-bottom)); }
.btn-accueil { position: absolute; left: 1rem; display: inline-flex; align-items: center; gap: .3rem; padding: .55rem 1rem; border-radius: 99px; background: var(--or-fond); border: 1px solid var(--or-pale); color: var(--or-fonce); font-weight: 800; font-size: 15px; text-decoration: none; }
.btn-accueil[hidden], .user-chip[hidden] { display: none; }
a.user-chip { text-decoration: none; }
.tuile.siege { border-style: dashed; }
.deconnexion { justify-content: center; color: var(--terra); }
.install-app { bottom: calc(16px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body.mode-pc .main { margin-left: auto; margin-right: auto; } }

/* Commandes internet, version visuelle (09/11/2026) : 4 étapes illustrées, un geste à la fois */
.cmd-compteurs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.cmd-compteur { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .8rem .4rem; border-radius: 20px; background: var(--terra); color: #fff; text-decoration: none; text-align: center; }
.cmd-compteur span { font-size: 26px; }
.cmd-compteur b { font-family: var(--font-titre); font-size: 34px; line-height: 1; }
.cmd-compteur small { font-size: 12px; font-weight: 800; line-height: 1.15; }
.cmd-compteur.saisir { background: var(--or-fonce); } .cmd-compteur.expedier { background: var(--vert); }
.cmd-compteur.zero { background: var(--blanc); color: var(--gris-text); border: 1px solid var(--or-pale); opacity: .75; }
.commande { gap: .8rem; border-width: 2px; }
.commande.etape-0 { border-color: var(--terra); } .commande.etape-2 { border-color: var(--or-fonce); } .commande.etape-3 { border-color: var(--vert); }
.cmd-mode { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin: -1rem -1.1rem 0; padding: .7rem 1.1rem; border-radius: 20px 20px 0 0; font-weight: 800; font-size: 16px; }
.cmd-mode small { font-size: 12px; font-weight: 700; opacity: .8; }
.cmd-mode.envoi { background: #e8eef6; color: #2f4f7a; } .cmd-mode.retrait { background: #eef4ec; color: var(--vert); }
.cmd-frise { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: .2rem 0 0; position: relative; }
.cmd-frise::before { content: ""; position: absolute; top: 22px; left: 12.5%; right: 12.5%; height: 4px; background: var(--or-pale); border-radius: 2px; }
.cmd-frise li { display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
.cmd-frise li span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; background: var(--blanc); border: 3px solid var(--or-pale); filter: grayscale(1); opacity: .6; }
.cmd-frise li small { font-size: 12px; font-weight: 800; color: var(--gris-text); }
.cmd-frise li.fait span { background: var(--vert); border-color: var(--vert); color: #fff; font-weight: 800; filter: none; opacity: 1; }
.cmd-frise li.ici span { border-color: var(--terra); background: var(--terra-pale); filter: none; opacity: 1; transform: scale(1.15); animation: cmd-pulse 1.6s ease-in-out infinite; }
.cmd-frise li.ici small { color: var(--terra); }
@keyframes cmd-pulse { 50% { box-shadow: 0 0 0 7px rgba(176, 79, 48, .15); } }
.cmd-qui { margin: 0; font-size: 18px; } .cmd-qui b { font-family: var(--font-titre); font-size: 22px; font-weight: 600; }
.cmd-article { display: grid; grid-template-columns: 58px 1fr auto; gap: .7rem; align-items: center; background: var(--or-fond); border-radius: 16px; padding: .6rem; }
.cmd-article .cmd-photo { width: 58px; height: 58px; }
.cmd-desig { display: flex; flex-direction: column; min-width: 0; } .cmd-desig b { font-size: 16px; } .cmd-desig > span { font-size: 14px; color: var(--gris-text); }
.cmd-desig .cmd-pointure { align-self: flex-start; }
.cmd-prix { display: flex; flex-direction: column; align-items: flex-end; text-align: right; } .cmd-prix b { font-size: 19px; } .cmd-prix small { font-size: 11px; color: var(--gris-text); }
.cmd-consigne { font-size: 18px; line-height: 1.35; margin: .2rem 0 0; }
.cmd-attente-txt { font-size: 16px; line-height: 1.4; color: var(--gris-text); margin: 0; text-align: center; }
.cmd-gros.clair { background: var(--blanc); border: 2px solid var(--or-fonce); color: var(--or-fonce); width: 100%; }
.cmd-adresse { display: grid; grid-template-columns: 36px 1fr; gap: .5rem; background: #e8eef6; border-radius: 16px; padding: .8rem; font-size: 17px; line-height: 1.4; }
.cmd-adresse span { font-size: 24px; } .cmd-adresse small { color: var(--gris-text); }
.cmd-suivi { display: flex; flex-direction: column; gap: .3rem; font-size: 14px; font-weight: 700; color: var(--gris-text); }
.cmd-suivi input { font-family: inherit; font-size: 16px; padding: .6rem .8rem; border-radius: 12px; border: 1px solid var(--or-pale); }
.fiche-caisse { border: 2px dashed var(--or-fonce); border-radius: 18px; padding: .7rem .9rem; background: #fffdf8; display: flex; flex-direction: column; }
.fc-tete { font-weight: 800; font-size: 17px; padding-bottom: .4rem; } .fc-tete small { color: var(--gris-text); font-weight: 700; }
.fc-ligne { display: grid; grid-template-columns: 100px 1fr auto; gap: .5rem; align-items: center; padding: .45rem 0; border-top: 1px solid var(--or-pale); font-size: 14px; }
.fc-ligne span { color: var(--gris-text); font-size: 12px; font-weight: 700; } .fc-ligne b { word-break: break-word; }
.fc-copier { font-family: inherit; font-size: 12px; font-weight: 800; padding: .35rem .6rem; border-radius: 10px; border: 1px solid var(--or-pale); background: var(--blanc); color: var(--or-fonce); cursor: pointer; }
@media (min-width: 900px) { body.mode-pc .commandes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Commandes à distance, version simple (09/11/2026) : pas d'icônes, des phrases, de gros boutons */
.vd-nouvelle { display: flex; align-items: center; justify-content: center; min-height: 60px; border-radius: 18px; background: var(--terra); color: #fff; font-family: inherit; font-size: 19px; font-weight: 800; text-decoration: none; border: 0; cursor: pointer; width: 100%; }
.vd-titre { font-family: var(--font-titre); font-size: 24px; font-weight: 600; margin: .8rem 0 0; display: flex; align-items: center; gap: .5rem; }
.vd-titre span { font-family: inherit; font-size: 15px; font-weight: 800; background: var(--gris-text); color: #fff; border-radius: 99px; padding: 2px 10px; }
.vd-titre.payee span { background: var(--terra); }
.vd-liste { display: flex; flex-direction: column; gap: .8rem; }
.vd-vide { color: var(--gris-text); font-size: 16px; margin: 0; }
.vd-carte { background: var(--blanc); border: 1px solid var(--or-pale); border-radius: 20px; padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .4rem; }
.vd-carte.payee { border: 3px solid var(--terra); }
.vd-etat { align-self: flex-start; font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 10px; background: #f1ede6; color: var(--gris-text); }
.vd-carte.payee .vd-etat { background: var(--terra); color: #fff; }
.vd-nom { font-family: var(--font-titre); font-size: 24px; font-weight: 600; line-height: 1.1; }
.vd-produit { font-size: 18px; margin: 0; color: var(--noir); }
.vd-livraison { font-size: 17px; font-weight: 700; margin: 0; color: var(--noir); }
.vd-info { font-size: 15px; color: var(--gris-text); margin: 0; line-height: 1.4; }
.vd-ras { font-size: 14px; color: var(--gris-text); } .vd-ras summary { cursor: pointer; font-weight: 700; padding: .3rem 0; }
.vd-ras p { margin: .3rem 0 0; line-height: 1.5; }
.vd-bouton { margin-top: .4rem; min-height: 60px; border-radius: 16px; border: 0; background: var(--vert); color: #fff; font-family: inherit; font-size: 18px; font-weight: 800; cursor: pointer; padding: 0 1rem; }
.vd-petits { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: 15px; }
.vd-form { display: flex; flex-direction: column; gap: 1rem; }
.vd-form fieldset { border: 1px solid var(--or-pale); border-radius: 20px; background: var(--blanc); padding: .9rem 1rem 1rem; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.vd-form legend { font-family: var(--font-titre); font-size: 22px; font-weight: 600; padding: 0 .4rem; }
.vd-form input { font-size: 17px; }
.vd-ligne { display: grid; grid-template-columns: 1fr 110px; gap: .6rem; }
.vd-choix { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.vd-choix label { cursor: pointer; }
.vd-choix input { position: absolute; opacity: 0; pointer-events: none; }
.vd-choix span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 58px; border-radius: 16px; border: 2px solid var(--or-pale); font-weight: 800; font-size: 17px; padding: .3rem; }
.vd-choix input:checked + span { border-color: var(--terra); background: var(--terra-pale); color: var(--terra); }
.vd-choix input:focus-visible + span { outline: 3px solid var(--or); }
.vd-total { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .6rem; }
.vd-total span { font-size: 14px; color: var(--gris-text); } .vd-total b { font-family: var(--font-titre); font-size: 32px; font-weight: 600; }
.lien.centre { text-align: center; align-self: center; }
/* Brique d'accueil : notification bien lisible */
.tuile-notif { display: block; margin-top: .4rem; padding: .45rem .8rem; border-radius: 12px; background: var(--terra); color: #fff; font-size: 17px; font-weight: 800; line-height: 1.25; }
.tuile-notif.calme { background: var(--or-fond); color: var(--or-fonce); }
.tuile.tuile-alerte { border: 3px solid var(--terra); }
@media (min-width: 900px) { body.mode-pc .vd-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Commandes : chemin de fer et filtres (09/11/2026) */
.filtres-cmd { display: flex; flex-wrap: wrap; gap: .45rem; }
.filtres-cmd button { font-family: inherit; font-size: 15px; font-weight: 800; padding: .55rem .9rem; border-radius: 99px; border: 2px solid var(--or-pale); background: var(--blanc); color: var(--gris-text); cursor: pointer; }
.filtres-cmd button b { margin-left: .25rem; }
.filtres-cmd button.urgent { border-color: var(--terra); color: var(--terra); }
.filtres-cmd button.on { background: var(--noir); border-color: var(--noir); color: #fff; }
.cmd2 { background: var(--blanc); border: 1px solid var(--or-pale); border-radius: 20px; padding: .9rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .45rem; }
.cmd2.etat-a_verifier { border: 3px solid var(--terra); } .cmd2.etat-payee { border: 3px solid var(--vert); }
.cmd2-haut { display: flex; justify-content: space-between; gap: .5rem; font-size: 13px; color: var(--gris-text); }
.cmd2-haut b { color: var(--noir); font-size: 14px; }
.chemin-fer { list-style: none; display: grid; grid-template-columns: repeat(var(--n), 1fr); margin: .4rem 0 .2rem; padding: 0; position: relative; }
.chemin-fer::before { content: ""; position: absolute; top: 9px; left: calc(50% / var(--n)); right: calc(50% / var(--n)); height: 4px; border-radius: 2px; background: var(--or-pale); }
.chemin-fer li { display: flex; flex-direction: column; align-items: center; gap: .3rem; position: relative; text-align: center; }
.chemin-fer i { width: 22px; height: 22px; border-radius: 50%; background: var(--blanc); border: 4px solid var(--or-pale); }
.chemin-fer span { font-size: 12px; font-weight: 700; color: var(--gris-text); line-height: 1.15; }
.chemin-fer li.fait i { background: var(--vert); border-color: var(--vert); }
.chemin-fer li.ici i { background: var(--terra); border-color: var(--terra); box-shadow: 0 0 0 5px rgba(176, 79, 48, .2); }
.chemin-fer li.ici span { color: var(--terra); font-weight: 800; }
.cf-annulee { font-size: 15px; font-weight: 700; color: var(--gris-text); background: #f1ede6; border-radius: 12px; padding: .5rem .8rem; }
.cmd2-phrase { font-size: 18px; font-weight: 800; line-height: 1.3; margin: .2rem 0; color: var(--noir); }
.cmd2.etat-a_verifier .cmd2-phrase { color: var(--terra); } .cmd2.etat-payee .cmd2-phrase { color: var(--vert); }
.cmd2-nom { font-family: var(--font-titre); font-size: 23px; font-weight: 600; line-height: 1.1; }
.cmd2-detail { font-size: 16px; margin: 0; color: var(--noir); }
.cmd2-rappel { font-size: 14px; margin: 0; color: var(--or-fonce); font-weight: 700; }
.cmd2-actions { display: flex; flex-direction: column; gap: .5rem; margin-top: .4rem; }
.cmd2-bouton { min-height: 56px; border-radius: 16px; border: 0; font-family: inherit; font-size: 17px; font-weight: 800; cursor: pointer; padding: .4rem 1rem; }
.cmd2-bouton.vert { background: var(--vert); color: #fff; }
.cmd2-bouton.clair { background: var(--blanc); border: 2px solid var(--vert); color: var(--vert); }
.cmd2-bouton.gris { background: var(--blanc); border: 2px solid var(--or-pale); color: var(--gris-text); min-height: 48px; font-size: 15px; }
.cmd2-petits { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: 15px; }
.res-cliente { display: flex; flex-direction: column; gap: .4rem; }
.res-item { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: .7rem .9rem; border-radius: 14px; border: 1px solid var(--or-pale); background: var(--or-fond); font-family: inherit; cursor: pointer; color: var(--noir); }
.res-item b { font-size: 17px; } .res-item small { font-size: 13px; color: var(--gris-text); }
.cliente-choisie { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; padding: .7rem .9rem; border-radius: 14px; background: #eef4ec; }
.cliente-choisie b { font-size: 18px; } .cliente-choisie small { color: var(--gris-text); }
.vd-accord { display: flex; gap: .6rem; align-items: flex-start; font-size: 15px; line-height: 1.35; }
.vd-accord input { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.tuile-notif + .tuile-notif { margin-top: .35rem; }
.tuile-notif.vert { background: var(--vert); }
.vd-nouvelle { padding: .6rem 1.2rem; text-align: center; line-height: 1.25; font-size: 18px; }

/* Modifier l'adresse, le port ou la remise avant paiement (09/11/2026) */
.cmd2-modif { align-self: flex-start; font-size: 15px; }
.cmd2-edit { display: flex; flex-direction: column; gap: .6rem; padding: .8rem; border-radius: 16px; background: var(--or-fond); border: 1px solid var(--or-pale); }
.cmd2-edit input { font-size: 17px; }
.cmd2-total { margin: 0; font-size: 17px; } .cmd2-total b { font-family: var(--font-titre); font-size: 24px; }

/* Brique Commandes : même aspect que les autres, pastille discrète (09/11/2026) */
.tuile-ico { position: relative; }
.tuile-badge { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--terra); color: #fff; font-family: var(--font-texte, inherit); font-size: 12px; font-weight: 800; line-height: 22px; text-align: center; box-shadow: 0 0 0 3px var(--blanc); }

/* Arguments du PIM du Hub (10/11/2026) : fiche produit et vidéo argumentaire */
.argu-fiche { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .8rem; margin: .4rem 0; padding: .7rem .8rem; background: var(--or-fond); border-radius: 14px; }
.argu-fiche div { display: flex; flex-direction: column; min-width: 0; }
.argu-fiche dt { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--or-fonce); }
.argu-fiche dd { margin: 0; font-size: 15px; font-weight: 700; color: var(--noir); }
.argu-video { margin: .3rem 0; } .argu-video summary { cursor: pointer; font-weight: 800; color: var(--terra); padding: .4rem 0; }
.argu-video video { width: 100%; border-radius: 12px; background: #000; margin-top: .3rem; }
