/* La page d'Otto (otto.html), par-dessus site.css.
 *
 * Deuxième version (30/09, après « c'est très slop… au début il y avait des
 * animations ») : plus de listes de texte. Le haut de page garde le vrai écran,
 * avec trois étiquettes devant, comme l'accueil ; puis sept cartes animées dans la
 * grille des fonctionnalités de l'accueil (mêmes cartes, même retenue : js/scenes.js
 * et js/otto-scenes.js), chacune jouant un vrai geste d'Otto avec ses vrais mots ;
 * puis les crédits, qui roulent, et les questions.
 */

/* ── Le haut de page ───────────────────────────────────────────────────── */

.heros--otto .heros__texte { margin-top: 48px; }
.otto--vedette { --t: 84px; margin-bottom: 26px; }
.cadre__ecran--otto { aspect-ratio: 4 / 3; }
/* les étiquettes, placées pour cet écran-ci : jamais sur le panneau d'Otto */
.heros--otto .etiquette--1 { left: -6.034cqw; top: 22cqw; }
.heros--otto .etiquette--2 { left: 12.931cqw; top: -54px; }
.heros--otto .etiquette--3 { right: 12.931cqw; top: -46px; }

/* ── Otto, petit ───────────────────────────────────────────────────────── */

.otto--puce { --t: 16px; }
.pastille .otto--puce { margin-right: 1px; }
.o-carte .otto { --t: 20px; }
.otto--pilule { --t: 14px; }

/* ── Les cartes : la grille de l'accueil ──────────────────────────────── */

.fonctions--otto .fonctions__carte { padding-top: 96px; }
/* la mini-interface va plus bas que sur l'accueil, et ne se fond qu'au dernier moment */
.o-carte .fonction__visuel {
  height: 68%;
  -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 86%, transparent 100%);
}
.fonctions--otto .fonction--large { height: 540px; }
/* la hauteur de l'accueil à 1440 (566 × 472), gardée quand la carte s'étroitise : ses scènes ont besoin de la place */
.o-carte:not(.fonction--large) { aspect-ratio: auto; min-height: 472px; }
.o-carte.fonction--large .fonction__visuel { height: 74%; }

/* ── Les pièces du fil d'Otto ──────────────────────────────────────────── */

.o-fil { position: relative; display: flex; flex-direction: column; gap: 10px; width: 86%; max-width: 440px; }

/* ma bulle : encre, à droite (le panneau et la page d'Otto) */
.o-moi {
  align-self: flex-end;
  max-width: 88%;
  padding: 8px 13px;
  border-radius: 12px;
  background: var(--encre);
  font-weight: 500;
  font-size: 13.5px;
  line-height: 19px;
  color: var(--blanc);
}
.o-moi--photos { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; padding: 6px 12px 8px 6px; }
.o-photos { display: flex; gap: 4px; }
.o-photos i { width: 44px; height: 44px; border-radius: 8px; background-color: #3F3F46; background-size: cover; background-position: center; }

/* sa réponse : Otto à gauche, une bulle blanche */
.o-otto { display: flex; align-items: flex-start; gap: 8px; }
.o-otto > .otto { margin-top: 3px; }
.o-otto__bulle {
  padding: 9px 12px;
  border-radius: 4px 14px 14px 14px;
  background: var(--blanc);
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.05), 0 12px 28px -16px rgba(var(--ombre-bleue), 0.3);
  font-size: 13.5px;
  line-height: 19px;
  color: #3F3F46;
}

/* sa liste de tâches (lib/otto/etapes.ts) : un rond, le libellé, les pastilles teintées par genre */
.o-taches { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0 0 0 28px; list-style: none; }
.o-tache { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 6px; min-height: 20px; font-size: 12.5px; line-height: 16px; color: #71717A; transition: color 0.3s; }
.o-tache::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-right: 2px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px #D4D4D8;
  background: center / 10px no-repeat;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.o-tache.en-cours { color: var(--encre); }
.o-tache.en-cours::before { box-shadow: inset 0 0 0 1.5px #D4E4FD; background-image: conic-gradient(from 0deg, #4190F9 0 28%, transparent 28%); background-size: 100%; -webkit-mask: radial-gradient(circle, transparent 5px, #000 5.4px); mask: radial-gradient(circle, transparent 5px, #000 5.4px); animation: tourne 0.9s linear infinite; }
.o-tache.faite { color: #52525B; }
.o-tache.faite::before { box-shadow: none; background-color: var(--encre); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.3 2.6 2.6L14 7.4' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.o-puce {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  background: #F1F1F3;
  font-weight: 500;
  font-size: 11.5px;
  color: #52525B;
  white-space: nowrap;
  transition: opacity 0.3s, box-shadow 0.35s, background-color 0.35s, color 0.35s;
}
.o-puce--bleu { background: #EAF1FE; color: var(--bleu); }
.o-puce--violet { background: #F1ECFE; color: #6D4CC4; }
.o-puce--vert { background: #E7F6EE; color: #12A150; }
/* la compétence choisie : elle s'allume quand il l'a trouvée */
.o-puce--allumee { background: #EAF1FE; color: var(--bleu); box-shadow: inset 0 0 0 1px #BCD5FC; }
.o-puce--allumee.eteinte { background: #F1F1F3; color: #52525B; box-shadow: none; }
.o-tache:not(.faite) .o-puce { opacity: 0; }

/* ── A. Le panneau à côté de la page ───────────────────────────────────── */

.o-agir {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 13fr) minmax(0, 10fr);
  gap: 24px;
  align-items: start;
  width: 92%;
  margin-top: 22px;
}
.o-stock {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: 26px;
  border-radius: 16px;
  background: var(--blanc);
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.05), 0 18px 40px -22px rgba(var(--ombre-bleue), 0.3);
}
.o-stock__tete, .o-stock__ligne {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 84px 92px;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
}
.o-stock__tete { height: 36px; background: #FAFAFB; font-size: 12px; color: #71717A; }
.o-stock__tete > span:last-child, .o-stock__ligne > b { text-align: right; }
.o-stock__ligne { height: 52px; border-top: 1px solid #F1F1F3; transition: background-color 0.3s; }
.o-stock__ligne.cochee { background: #F7FAFF; }
.o-case { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px #D4D4D8; color: var(--blanc); transition: background-color 0.2s, box-shadow 0.2s, transform 0.12s; }
.o-case svg { width: 12px; height: 12px; opacity: 0; transform: scale(0.6); transition: opacity 0.2s, transform 0.25s var(--courbe); }
.cochee .o-case { background: #4190F9; box-shadow: none; }
.cochee .o-case svg { opacity: 1; transform: none; }
.o-stock__article { display: flex; align-items: center; gap: 10px; min-width: 0; }
.o-stock__article i { flex: none; width: 32px; height: 32px; border-radius: 8px; background-size: cover; background-position: center; }
.o-stock__article > span { display: flex; flex-direction: column; min-width: 0; font-weight: 500; font-size: 13.5px; line-height: 18px; color: var(--encre); white-space: nowrap; }
.o-stock__article small { font-weight: 400; font-size: 11.5px; line-height: 15px; color: #A1A1AA; }
.o-stock__article > span, .o-stock__article small { overflow: hidden; text-overflow: ellipsis; }
.o-stock__ligne .puce { justify-self: start; height: 22px; font-size: 12px; }
.o-stock__prix { justify-self: end; display: inline-flex; padding: 2px 5px; margin-right: -5px; border-radius: 6px; font-weight: 500; font-size: 13.5px; line-height: 18px; color: var(--encre); font-variant-numeric: tabular-nums; transition: background-color 0.4s; }
.o-stock__centimes { color: #A1A1AA; }
.o-stock__prix.a-jour { background: #EAF1FE; }
.o-stock__euros .roule__chiffre, .o-stock__euros .roule__signe { height: 18px; line-height: 18px; }

.o-panneau {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: var(--blanc);
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.05), 0 22px 48px -22px rgba(var(--ombre-bleue), 0.36);
}
.o-panneau__tete { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-bottom: 1px solid #F0F0F2; font-weight: 500; font-size: 15px; color: var(--encre); }
.o-panneau__icones { display: flex; gap: 12px; margin-left: auto; color: #71717A; }
.o-panneau__icones svg { width: 14px; height: 14px; }
.o-panneau__corps { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 12px; }
.o-selection { align-self: flex-end; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px 0 4px; border-radius: 9px; background: #F2F3F6; font-size: 12.5px; color: #52525B; }
.o-selection > span { display: flex; }
.o-selection i { width: 20px; height: 20px; margin-left: -6px; border-radius: 6px; box-shadow: 0 0 0 1.5px #F2F3F6; background-size: cover; background-position: center; }
.o-selection i:first-child { margin-left: 0; }
.o-panneau .o-moi { font-size: 13px; line-height: 18px; }
.o-proposition { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; padding: 11px 12px 10px; border-radius: 13px; background: #F5F5F6; }
.o-proposition > small { font-size: 12.5px; color: #3F3F46; }
.o-prix { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; font-size: 12.5px; color: var(--encre); }
.o-prix > i { width: 22px; height: 22px; border-radius: 6px; background-size: cover; background-position: center; }
.o-prix > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-prix s { color: #A1A1AA; }
.o-prix b { min-width: 30px; font-weight: 600; text-align: right; }
.o-actions { padding-top: 8px; border-top: 1px solid #E6E6EA; }
.o-actions__boutons { display: flex; gap: 6px; }
.o-actions__boutons .mini-bouton { height: 28px; }
.o-actions__fait { display: flex; align-items: center; justify-content: space-between; }
.o-fait { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; font-size: 12.5px; color: #12A150; white-space: nowrap; }
.o-fait svg { width: 13px; height: 13px; }
.o-annuler { font-size: 12.5px; color: #71717A; }
.o-panneau__champ { display: flex; align-items: center; justify-content: space-between; height: 38px; margin: 2px 12px 12px; padding: 0 4px 0 12px; border-radius: 11px; box-shadow: inset 0 0 0 1px #E6E6EA; font-size: 12.5px; color: #A1A1AA; }
.o-panneau__champ i, .o-champ > i, .o-composeur__envoyer { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--encre); color: var(--blanc); }
.o-panneau__champ i svg, .o-champ > i svg, .o-composeur__envoyer svg { width: 14px; height: 14px; }

/* ── B. Tes chiffres : le widget « stat » ─────────────────────────────── */

.o-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-left: 28px;
  padding: 13px 16px 14px;
  border-radius: 14px;
  background: var(--blanc);
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.05), 0 14px 32px -18px rgba(var(--ombre-bleue), 0.32);
}
.o-stat__libelle { font-size: 12.5px; color: #71717A; }
.o-stat__valeur { display: flex; align-items: baseline; gap: 10px; }
.o-stat__valeur b { font-weight: 600; font-size: 28px; line-height: 34px; letter-spacing: -0.025em; color: var(--encre); font-variant-numeric: tabular-nums; }
.o-stat__valeur b .roule__chiffre, .o-stat__valeur b .roule__signe { height: 34px; line-height: 34px; }
.o-stat__delta { font-style: normal; font-weight: 500; font-size: 13px; color: #12A150; transition: opacity 0.4s; }
.o-stat__delta.cache { opacity: 0; }
.o-stat__sous { font-size: 12px; color: #A1A1AA; }

/* ── C. L'annonce : les étapes, puis le brouillon, à la même place ─────── */

.o-annonce { align-items: start; }
.o-annonce > * { align-self: start; }
.o-brouillon {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 10px 12px 12px 10px;
  border-radius: 14px;
  background: var(--blanc);
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.05), 0 14px 32px -18px rgba(var(--ombre-bleue), 0.32);
}
.o-brouillon__haut { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.o-brouillon__haut > i { width: 44px; height: 44px; border-radius: 9px; background-size: cover; background-position: center; }
.o-brouillon__haut > span:not(.o-puce) { display: flex; flex-direction: column; min-width: 0; }
.o-brouillon__texte { font-size: 12.5px; line-height: 18px; color: #52525B; }
.o-brouillon__puces { display: flex; flex-wrap: wrap; gap: 5px; }
.o-brouillon b { overflow: hidden; font-weight: 500; font-size: 13.5px; line-height: 18px; color: var(--encre); text-overflow: ellipsis; white-space: nowrap; }
.o-brouillon small { font-size: 12px; line-height: 16px; color: #71717A; }

/* ── D. Tes acheteurs ──────────────────────────────────────────────────── */

.o-conv { position: relative; display: flex; flex-direction: column; gap: 10px; width: 86%; max-width: 440px; }
.o-acheteur { display: flex; align-items: flex-end; gap: 8px; }
.o-acheteur > i { flex: none; width: 28px; height: 28px; border-radius: 8px; background-size: cover; background-position: center; }
.o-acheteur > span { padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: #E9EAEE; font-size: 13.5px; line-height: 19px; color: var(--encre); }
.o-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.o-chip { height: 26px; padding: 0 10px; border-radius: 999px; background: var(--blanc); box-shadow: inset 0 0 0 1px #E4E4E7; font-weight: 500; font-size: 12px; line-height: 26px; color: #3F3F46; white-space: nowrap; transition: background-color 0.26s, box-shadow 0.26s, color 0.26s, transform 0.12s; }
.o-chip.choisi { background: var(--encre); box-shadow: none; color: var(--blanc); }
.o-suggestion { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 11px 12px 12px; border-radius: 14px; background: var(--blanc); box-shadow: 0 1px 2px rgba(24, 24, 27, 0.05), 0 14px 32px -18px rgba(var(--ombre-bleue), 0.32); }
.o-suggestion__tete { display: flex; align-items: center; gap: 7px; font-weight: 500; font-size: 13px; color: var(--encre); }
.o-suggestion p { margin: 0; font-size: 13.5px; line-height: 19px; color: #3F3F46; }
.o-utiliser { height: 26px; background: var(--encre); color: var(--blanc); font-size: 12.5px; }
.o-champ { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 6px 0 13px; border-radius: 12px; background: var(--blanc); box-shadow: inset 0 0 0 1px #E4E4E7; font-size: 13px; }
.o-champ > .echange { flex: 1; min-width: 0; }
.o-champ__vide { color: #A1A1AA; }
.o-champ__texte { overflow: hidden; color: var(--encre); text-overflow: ellipsis; white-space: nowrap; }
.o-champ > i { background: #D4D4D8; transition: background-color 0.3s; }
.o-champ.pret > i { background: var(--encre); }

/* ── E. « Par où on commence ? » ──────────────────────────────────────── */

.o-accueil {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: 28px;
  align-items: start;
  width: 90%;
}
.o-accueil__gauche { display: flex; flex-direction: column; gap: 12px; }
.o-accueil__titre { display: flex; align-items: center; gap: 9px; margin: 4px 0 2px; font-weight: 500; font-size: 20px; letter-spacing: -0.015em; color: var(--encre); }
.o-carte .o-accueil__titre .otto { --t: 26px; }
.o-composeur { display: flex; flex-direction: column; gap: 12px; padding: 13px 13px 11px 15px; border-radius: 18px; background: var(--blanc); box-shadow: 0 1px 2px rgba(24, 24, 27, 0.05), 0 18px 40px -22px rgba(var(--ombre-bleue), 0.32); }
.o-composeur__texte { font-size: 13px; line-height: 21px; color: var(--encre); }
.o-composeur__vide { color: #A1A1AA; }
.o-pill { padding: 1px 5px; border-radius: 5px; background: #EAF1FE; color: var(--bleu); white-space: nowrap; }
.o-composeur__rangee { display: flex; align-items: center; gap: 6px; }
.pilule-otto { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 28px; min-width: 28px; padding: 0 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px #E4E4E7; font-weight: 500; font-size: 12px; color: #3F3F46; white-space: nowrap; }
.pilule-otto:first-child { padding: 0; }
.pilule-otto > svg { width: 14px; height: 14px; }
.pilule-otto > svg:last-child:not(:first-child) { width: 12px; height: 12px; opacity: 0.7; }
.o-carte .pilule-otto .otto { --t: 14px; }
.o-composeur__envoyer { margin-left: auto; transition: transform 0.12s; }
.o-raccourcis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.o-raccourci { display: flex; flex-direction: column; gap: 1px; padding: 11px 12px; border-radius: 13px; background: var(--blanc); box-shadow: inset 0 0 0 1px #ECECEF; transition: box-shadow 0.26s, background-color 0.26s, transform 0.12s; }
.o-raccourci svg { width: 17px; height: 17px; margin-bottom: 8px; color: var(--encre); }
.o-raccourci b { font-weight: 500; font-size: 13.5px; color: var(--encre); }
.o-raccourci small { overflow: hidden; font-size: 11.5px; color: #71717A; text-overflow: ellipsis; white-space: nowrap; }
.o-raccourci.choisi { background: #F6F9FF; box-shadow: inset 0 0 0 1.5px #4190F9; }
.o-reponse { display: flex; flex-direction: column; gap: 12px; margin-top: 46px; padding: 16px 16px 16px 14px; border-radius: 18px; background: var(--blanc); box-shadow: 0 1px 2px rgba(24, 24, 27, 0.05), 0 18px 40px -22px rgba(var(--ombre-bleue), 0.32); }
.o-reponse .o-taches { padding-left: 0; }
.o-points { display: flex; flex-direction: column; gap: 9px; overflow: hidden; max-height: 220px; margin: 0; padding: 12px 0 0; border-top: 1px solid #F1F1F3; list-style: none; counter-reset: o; transition: max-height 0.6s var(--courbe), padding 0.6s var(--courbe), border-color 0.3s; }
/* tant qu'il lit, la réponse n'a pas de place : elle s'ouvre avec son premier point */
.o-points.replie { max-height: 0; padding-top: 0; border-top-color: transparent; }
.o-points li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 9px; font-size: 13px; line-height: 19px; color: #3F3F46; counter-increment: o; }
.o-points li::before { content: counter(o); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #F2F3F6; font-weight: 600; font-size: 11px; color: var(--encre); }
.o-points b { font-weight: 600; color: var(--encre); }

/* ── G. La mémoire ─────────────────────────────────────────────────────── */

.o-memoire {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: 40px;
  align-items: center;
  width: 86%;
  margin-top: 30px;
}
.o-memoire .o-fil { width: 100%; max-width: none; }
.o-retenu { display: flex; flex-direction: column; padding: 8px; border-radius: 18px; background: var(--blanc); box-shadow: 0 1px 2px rgba(24, 24, 27, 0.05), 0 18px 40px -22px rgba(var(--ombre-bleue), 0.32); }
.o-retenu__tete { padding: 8px 10px 10px; font-weight: 500; font-size: 13px; color: #71717A; }
.o-fait-retenu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  max-height: 60px;
  padding: 10px;
  border-radius: 11px;
  font-size: 13.5px;
  line-height: 19px;
  color: var(--encre);
  transition: max-height 0.5s var(--courbe), padding 0.5s var(--courbe), opacity 0.4s, background-color 0.6s;
}
.o-fait-retenu svg { flex: none; width: 15px; height: 15px; color: #A1A1AA; }
.o-fait-retenu + .o-fait-retenu { box-shadow: inset 0 1px 0 #F1F1F3; }
.o-fait-retenu--neuf { background: #F6F3FF; }
.o-fait-retenu--neuf.replie { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; }

/* ── Les crédits ───────────────────────────────────────────────────────── */

.credits-o { display: flex; justify-content: center; padding: 120px 12px 0; scroll-margin-top: 72px; }
.credits-o__carte {
  width: var(--large);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
  padding: 56px;
  border-radius: 28px;
  background: linear-gradient(200deg, #E6DEFD 0%, #EFEAFE 45%, #F7F5FB 100%);
}
.credits-o__gauche { display: flex; flex-direction: column; align-items: flex-start; }
.credits-o__titre { margin: 22px 0 0; font-weight: 600; font-size: 40px; line-height: 46px; letter-spacing: -0.035em; color: var(--encre); text-wrap: balance; }
.credits-o__texte { margin: 14px 0 0; font-size: 17px; line-height: 27px; color: var(--fort); text-wrap: pretty; }
.credits-o__libelle { margin: 26px 0 0; font-weight: 500; font-size: 14px; color: var(--encre); }
.credits-o__gratuit { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.credits-o__gratuit li { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px 0 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.74); font-size: 13.5px; color: var(--encre); }
.credits-o__gratuit svg { width: 13px; height: 13px; color: #12A150; }
.credits-o__offres { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.credits-o__offres li { display: flex; flex-direction: column; gap: 4px; padding: 24px 20px; border-radius: 22px; background: var(--blanc); box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04), 0 18px 40px -22px rgba(109, 76, 196, 0.35); }
.credits-o__offres li > span { font-weight: 500; font-size: 14.5px; color: #52525B; }
.credits-o__offres b { margin-top: 22px; font-weight: 600; font-size: 46px; line-height: 50px; letter-spacing: -0.035em; color: var(--encre); font-variant-numeric: tabular-nums; }
.credits-o__offres b .roule__chiffre, .credits-o__offres b .roule__signe { height: 50px; line-height: 50px; }
.credits-o__offres small { font-size: 13.5px; line-height: 19px; color: #71717A; }
.credits-o + .questions { padding-top: 120px; }

/* ── Aux autres largeurs ───────────────────────────────────────────────── */

@media (max-width: 1180px) {
  .o-stock__tete, .o-stock__ligne { grid-template-columns: 16px minmax(0, 1fr) 80px; }
  .o-stock__tete > span:nth-child(3), .o-stock__ligne .puce { display: none; }
  .o-accueil { width: 94%; gap: 20px; }
  .o-memoire { width: 92%; gap: 28px; }
}
@media (max-width: 1024px) {
  .heros--otto .etiquette--1 { display: none; }
  .credits-o__carte { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 44px; }
  .credits-o { padding-top: 96px; }
  .fonctions--otto .fonction--large { height: auto; min-height: 540px; }
}
@media (max-width: 880px) {
  .o-accueil { grid-template-columns: minmax(0, 1fr); }
  .o-accueil .o-reponse { display: none; }
  .o-memoire { grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 18px; }
  .o-carte--memoire.fonction--large { min-height: 640px; }
  .o-carte--memoire .fonction__visuel { height: 72%; }
}
@media (max-width: 640px) {
  .heros--otto .heros__texte { margin-top: 32px; }
  .otto--vedette { --t: 64px; margin-bottom: 18px; }
  /* sur téléphone, le cadre montre le panneau d'Otto : la droite de l'écran */
  .heros--otto .cadre { width: 290%; left: auto; right: 0; }
  .fonctions--otto .fonctions__carte { padding-top: 64px; }
  /* sur téléphone, la carte suit son contenu : la mini-interface au-dessus, le texte dessous,
     sans hauteur imposée ni fondu (à 320 comme à 640, rien ne touche le titre) */
  .o-carte, .fonctions--otto .o-carte.fonction--large { min-height: 0; height: auto; justify-content: flex-start; }
  .o-carte .fonction__visuel, .o-carte.fonction--large .fonction__visuel {
    position: relative;
    inset: auto;
    height: auto;
    padding: 24px 12px 26px;
    -webkit-mask-image: none;
    mask-image: none;
  }
  /* la mémoire garde la place du fait qui arrive : la page ne saute pas pendant la scène */
  .o-fait-retenu--neuf.replie { max-height: 60px; padding: 10px; }
  .o-fil, .o-conv { width: 100%; }
  /* A. sur téléphone, le panneau seul : la page ne tient pas à côté */
  .o-agir { grid-template-columns: minmax(0, 1fr); width: 100%; margin-top: 0; }
  .o-stock { display: none; }
  .o-accueil { width: 100%; }
  .o-raccourci small { display: none; }
  .o-raccourci { padding: 10px; }
  .o-memoire { width: 100%; margin-top: 0; }
  .credits-o { padding: 72px 8px 0; }
  .credits-o__carte { padding: 32px 22px; border-radius: 22px; gap: 28px; }
  .credits-o__titre { font-size: 30px; line-height: 36px; }
  .credits-o__texte { font-size: 16px; line-height: 25px; }
  .credits-o__offres { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .credits-o__offres li { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 18px 20px; }
  .credits-o__offres li > span { flex-basis: 100%; }
  .credits-o__offres b { margin-top: 0; font-size: 34px; line-height: 40px; }
  .credits-o__offres b .roule__chiffre, .credits-o__offres b .roule__signe { height: 40px; line-height: 40px; }
  .credits-o + .questions { padding-top: 72px; }
}
@media (max-width: 380px) {
  .o-moi, .o-otto__bulle, .o-acheteur > span, .o-suggestion p { font-size: 13px; }
  .o-chip { padding: 0 8px; font-size: 11.5px; }
  .o-stat__valeur b { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .o-tache.en-cours::before { animation: none; }
}
.o-carte { scroll-margin-top: 96px; }
