/* ==========================================================================
   AM Phone — deux directions UX (maquettes du 19/11/2026)
   Jetons repris de DESIGN.md (origin/main) : pétrole, encres, rayons, ombres,
   une seule courbe de mouvement. Aucune couleur hors charte.
   ========================================================================== */

:root {
  --teal-700: #12595E;
  --teal-500: #17727A;
  --teal-200: #B9D6D8;
  --teal-100: #DDECED;
  --teal-50: #F1F7F7;
  --ink-900: #14262A;
  --ink-700: #3D5459;
  --ink-500: #5B6F74;
  --ink-200: #D8E0E1;
  --ink-100: #E9EEEF;
  --ink-50: #F5F8F8;
  --fond: #FCFDFD;
  --surface: #FFFFFF;
  --orange: #F58720;
  --vert-ink: #1F6B3A;
  --vert: #2F8F4A;
  --rouge: #C62828;
  --voile: rgb(20 38 42 / .55);
  --ombre-carte: 0 1px 2px rgba(12,25,27,.04), 0 12px 32px -16px rgba(12,25,27,.16);
  --ombre-haute: 0 2px 4px rgba(12,25,27,.05), 0 22px 48px -20px rgba(12,25,27,.24);
  --aisance: cubic-bezier(0.16, 1, 0.3, 1);
  --r-champ: 16px;
  --r-carte: 26px;
  --r-bloc: 34px;
  --f-he: "Assistant", ui-sans-serif, system-ui, sans-serif;
  --f-lat: "Sora", "Assistant", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink-50);
  color: var(--ink-900);
  font: 16px/1.55 var(--f-he);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal-700); outline-offset: 2px; }
::selection { background: var(--teal-100); }

/* ---------- La page de présentation (français, de gauche à droite) ---------- */
.doc { max-width: 1240px; margin: 0 auto; padding: 40px 24px 96px; }
.doc h1 { font: 800 clamp(30px, 4vw, 44px)/1.1 var(--f-lat); letter-spacing: -0.03em; margin: 0 0 12px; }
.doc h2 { font: 800 clamp(24px, 3vw, 32px)/1.15 var(--f-lat); letter-spacing: -0.025em; margin: 72px 0 12px; }
.doc h3 { font: 700 20px/1.3 var(--f-lat); margin: 0 0 8px; letter-spacing: -0.01em; }
.doc p { margin: 0 0 12px; max-width: 72ch; color: var(--ink-700); }
.doc .chapeau { font-size: 18px; color: var(--ink-700); max-width: 70ch; }
.doc .meta { font-size: 14px; color: var(--ink-500); margin-bottom: 24px; }
.doc a { color: var(--teal-700); text-underline-offset: 3px; }
.doc ul.puces { margin: 8px 0 0; padding-inline-start: 20px; color: var(--ink-700); }
.doc ul.puces li { margin-bottom: 6px; }
.doc strong { color: var(--ink-900); }

.avertissement {
  background: var(--surface); border: 1px solid var(--ink-200); border-radius: var(--r-champ);
  padding: 14px 18px; font-size: 15px; color: var(--ink-700); max-width: 860px;
}
.avertissement b { color: var(--ink-900); }

.grille-constats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 20px; margin-top: 24px; }
.constat { background: var(--surface); border-radius: var(--r-carte); box-shadow: var(--ombre-carte); overflow: hidden; display: flex; flex-direction: column; }
.constat .vue { background: var(--ink-100); height: 260px; overflow: hidden; display: grid; place-items: start center; }
.constat .vue img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.constat .vue.tel img { width: auto; height: 100%; object-fit: contain; }
.constat .texte { padding: 18px 20px 20px; }
.constat .texte p { font-size: 15px; margin: 0; }
.constat .mesure { display: inline-block; margin-top: 10px; font: 600 13px/1.4 var(--f-lat); color: var(--teal-700); background: var(--teal-50); border-radius: 999px; padding: 4px 10px; }

.onglets-directions { display: flex; gap: 8px; margin: 28px 0 8px; flex-wrap: wrap; position: sticky; top: 0; z-index: 30; background: var(--ink-50); padding: 12px 0; }
.onglets-directions button {
  border: 1px solid var(--ink-200); background: var(--surface); border-radius: 999px; padding: 10px 18px;
  font: 600 15px/1.2 var(--f-lat); min-height: 44px; transition: background .15s var(--aisance), color .15s var(--aisance);
}
.onglets-directions button[aria-selected="true"] { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }

.direction { display: none; }
.direction.active { display: block; }
.direction .idee { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; margin: 16px 0 28px; }
@media (max-width: 860px) { .direction .idee { grid-template-columns: minmax(0, 1fr); } }
.emprunts { background: var(--surface); border-radius: var(--r-carte); padding: 20px 22px; box-shadow: var(--ombre-carte); }
.emprunts h3 { font-size: 16px; }
.emprunts ul { margin: 0; padding-inline-start: 18px; font-size: 15px; color: var(--ink-700); }
.emprunts li { margin-bottom: 6px; }

.rangee-tel { display: flex; gap: 28px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; }
.cadre-tel { flex: 0 0 auto; scroll-snap-align: start; width: min(390px, calc(100vw - 48px)); }
.cadre-tel figcaption { font-size: 14px; color: var(--ink-700); margin-top: 12px; max-width: 390px; }
.cadre-tel figcaption b { display: block; color: var(--ink-900); font: 700 15px/1.3 var(--f-lat); margin-bottom: 2px; }
.cadre-tel figcaption a { font-size: 13px; }
.ecran-tel {
  width: 100%; height: 844px; max-height: calc(100svh - 120px); min-height: 640px;
  border-radius: 44px; border: 10px solid var(--ink-900); background: var(--fond);
  overflow: hidden; position: relative; box-shadow: var(--ombre-haute);
}

.cadre-bureau { margin: 16px 0 8px; }
.cadre-bureau figcaption { font-size: 14px; color: var(--ink-700); margin-top: 12px; }
.cadre-bureau figcaption b { color: var(--ink-900); }
.echelle { position: relative; overflow: hidden; border-radius: 14px; box-shadow: var(--ombre-haute); background: var(--fond); border: 1px solid var(--ink-200); }
.echelle > .ecran-bureau { width: 1440px; transform-origin: top left; position: absolute; top: 0; left: 0; }

.encadre-commun { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; margin-top: 20px; }
.encadre-commun > div { background: var(--surface); border-radius: var(--r-carte); padding: 22px; box-shadow: var(--ombre-carte); }
.encadre-commun p { font-size: 15px; }

.comparatif { width: 100%; border-collapse: collapse; margin-top: 16px; background: var(--surface); border-radius: var(--r-carte); overflow: hidden; box-shadow: var(--ombre-carte); font-size: 15px; }
.comparatif th, .comparatif td { text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--ink-100); vertical-align: top; }
.comparatif th { font: 700 14px/1.3 var(--f-lat); background: var(--ink-50); }
.table-defile { overflow-x: auto; }

.icones-demo { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.icones-demo span { display: grid; justify-items: center; gap: 6px; font-size: 12px; color: var(--ink-500); }
.icones-demo svg { width: 28px; height: 28px; color: var(--ink-900); }

/* ==========================================================================
   LE SITE MAQUETTÉ (hébreu, de droite à gauche) — tout ce qui est sous .app
   ========================================================================== */
.app { font-family: var(--f-he); color: var(--ink-900); background: var(--fond); direction: rtl; }
.app .lat, .app .prix { font-family: var(--f-lat); font-variant-numeric: tabular-nums; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.sm { width: 18px; height: 18px; }
.ic.lg { width: 26px; height: 26px; }

/* -- téléphone : un écran qui défile, une barre d'onglets posée dessus -- */
.tel-app { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; }
.tel-defile { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; position: relative; }
.tel-defile::-webkit-scrollbar { display: none; }

.bande-promo { background: var(--ink-900); color: #fff; font-size: 13px; text-align: center; padding: 8px 40px; position: relative; }
.bande-promo b { font-weight: 700; }

.entete-tel { position: sticky; top: 0; z-index: 20; background: rgb(252 253 253 / .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.entete-tel.trait { border-bottom-color: var(--ink-100); }
.entete-tel .ligne { height: 56px; display: flex; align-items: center; gap: 4px; padding: 0 12px 0 8px; }
.entete-tel .logo { height: 22px; width: auto; margin-inline-end: auto; }
.bouton-ic { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 999px; color: var(--ink-900); position: relative; }
.bouton-ic:active { transform: scale(.94); }
.bouton-ic .pastille { position: absolute; top: 6px; inset-inline-end: 4px; min-width: 18px; height: 18px; border-radius: 999px; background: var(--teal-700); color: #fff; font: 700 11px/18px var(--f-lat); text-align: center; padding: 0 4px; }
.avatar { width: 32px; height: 32px; border-radius: 999px; background: var(--teal-50); color: var(--teal-700); display: grid; place-items: center; }

.champ-recherche { margin: 0 16px 10px; height: 46px; border-radius: var(--r-champ); background: var(--ink-50); border: 1px solid var(--ink-100); display: flex; align-items: center; gap: 10px; padding: 0 14px; color: var(--ink-500); font-size: 16px; }

.puces-rubriques { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 12px; scrollbar-width: none; }
.puces-rubriques::-webkit-scrollbar { display: none; }
.puce { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ink-200); background: var(--surface); font-size: 15px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.puce.on { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }

/* barre d'onglets façon App Store */
.onglets-bas { position: absolute; inset-inline: 0; bottom: 0; z-index: 25; background: rgb(252 253 253 / .96); backdrop-filter: saturate(1.4) blur(12px); border-top: 1px solid var(--ink-100); display: grid; grid-template-columns: repeat(5, 1fr); padding: 4px 4px 22px; }
.onglets-bas button { border: 0; background: transparent; display: grid; justify-items: center; gap: 2px; padding: 6px 0 2px; min-height: 48px; font-size: 11.5px; font-weight: 600; color: var(--ink-500); position: relative; }
.onglets-bas button.on { color: var(--teal-700); }
.onglets-bas .pastille { position: absolute; top: 2px; inset-inline-start: calc(50% + 4px); min-width: 17px; height: 17px; border-radius: 999px; background: var(--teal-700); color: #fff; font: 700 10.5px/17px var(--f-lat); padding: 0 4px; }

/* le seul bouton flottant (direction A) */
.aide-flottante { position: absolute; z-index: 24; bottom: 92px; inset-inline-start: 14px; height: 48px; padding: 0 16px 0 18px; border-radius: 999px; border: 0; background: var(--ink-900); color: #fff; display: inline-flex; align-items: center; gap: 8px; font: 700 15px/1 var(--f-he); box-shadow: 0 10px 24px -10px rgba(12,25,27,.5); transition: width .25s var(--aisance), padding .25s var(--aisance); }
.aide-flottante.replie { padding: 0; width: 48px; justify-content: center; }
.aide-flottante.replie .txt { display: none; }

/* feuille du bas */
.voile { position: absolute; inset: 0; background: var(--voile); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .25s var(--aisance); }
.voile.on { opacity: 1; pointer-events: auto; }
.feuille { position: absolute; inset-inline: 0; bottom: 0; z-index: 41; background: var(--surface); border-radius: 28px 28px 0 0; padding: 10px 16px 34px; transform: translateY(105%); transition: transform .4s var(--aisance); max-height: 88%; overflow-y: auto; }
.feuille.on { transform: none; }
.feuille .poignee { width: 40px; height: 5px; border-radius: 99px; background: var(--ink-200); margin: 0 auto 14px; }
.feuille h3 { font: 800 22px/1.2 var(--f-he); margin: 0 0 4px; }
.feuille .sous { color: var(--ink-500); font-size: 15px; margin: 0 0 16px; }
.ligne-aide { display: flex; align-items: center; gap: 14px; width: 100%; text-align: start; border: 0; background: var(--ink-50); border-radius: 18px; padding: 14px; margin-bottom: 10px; min-height: 64px; }
.ligne-aide .rond { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); color: var(--teal-700); flex: none; box-shadow: var(--ombre-carte); }
.ligne-aide b { display: block; font-size: 16px; }
.ligne-aide small { color: var(--ink-500); font-size: 14px; }
.ligne-aide .ic.fin { margin-inline-start: auto; color: var(--ink-500); }

/* sections */
.sec { padding: 26px 0 6px; }
.sec-tete { display: flex; align-items: baseline; justify-content: space-between; padding: 0 16px; margin-bottom: 12px; gap: 12px; }
.sec-tete h2 { font: 800 22px/1.2 var(--f-he); margin: 0; letter-spacing: 0; }
.sec-tete a, .lien-tout { color: var(--teal-700); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.sec-tete .sous { color: var(--ink-500); font-size: 14px; margin-top: 2px; }
.trait-sep { height: 1px; background: var(--ink-100); margin: 22px 16px 0; }

.rail { display: grid; grid-auto-flow: column; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 16px 6px; gap: 12px; scroll-padding-inline: 16px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

/* héros "Today" */
.rail-heros { grid-auto-columns: calc(100% - 40px); }
.carte-jour { position: relative; height: 452px; border-radius: var(--r-carte); overflow: hidden; color: #fff; display: flex; flex-direction: column; padding: 22px 22px 0; }
.carte-jour .sur { font-size: 14px; font-weight: 700; opacity: .85; }
.carte-jour h3 { font: 700 34px/1.05 var(--f-lat); letter-spacing: -0.03em; margin: 6px 0 8px; }
.carte-jour p { font-size: 16px; line-height: 1.45; margin: 0; opacity: .9; max-width: 30ch; }
.carte-jour .actions { display: flex; gap: 8px; margin-top: 16px; }
.carte-jour img { margin-top: auto; width: 100%; height: 210px; object-fit: contain; object-position: bottom center; }
.btn { height: 44px; padding: 0 18px; border-radius: 999px; border: 0; font: 700 15px/1 var(--f-he); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn.blanc { background: #fff; color: var(--ink-900); }
.btn.contour-blanc { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .7); }
.btn.principal { background: var(--teal-700); color: #fff; }
.btn.doux { background: var(--teal-50); color: var(--teal-700); }
.btn.contour { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-200); color: var(--ink-900); }
.points { display: flex; justify-content: center; gap: 6px; padding: 12px 0 2px; }
.points i { width: 6px; height: 6px; border-radius: 99px; background: var(--ink-200); }
.points i.on { width: 18px; background: var(--ink-900); }

/* catégories : grille de 2 rangées qui défile */
.rail-cat { grid-template-rows: repeat(2, auto); grid-auto-columns: 96px; gap: 14px 12px; }
.tuile-cat { display: grid; gap: 6px; text-decoration: none; color: inherit; }
.tuile-cat .img { width: 96px; height: 96px; border-radius: 22px; background: var(--ink-50); border: 1px solid var(--ink-100); display: grid; place-items: center; overflow: hidden; }
.tuile-cat .img img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; }
.tuile-cat b { font-size: 14px; font-weight: 600; line-height: 1.25; text-align: center; }
.tuile-cat small { font: 500 12px/1 var(--f-lat); color: var(--ink-500); text-align: center; margin-top: -3px; }

/* étagère en colonnes de trois lignes (le geste "App Store") */
.rail-liste { grid-auto-columns: calc(100% - 52px); }
.colonne { display: grid; }
.ligne-prod { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ink-100); }
.colonne .ligne-prod:last-child { border-bottom: 0; }
.ligne-prod .img { width: 68px; height: 68px; border-radius: 16px; background: var(--ink-50); display: grid; place-items: center; overflow: hidden; }
.ligne-prod .img img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.ligne-prod .nom { font-size: 15px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ligne-prod .info { font-size: 13px; color: var(--ink-500); margin-top: 2px; }
.ligne-prod .info .stock { color: var(--vert-ink); font-weight: 600; }
.ligne-prod .droite { display: grid; justify-items: center; gap: 4px; }
.ligne-prod .prix { font-size: 14px; font-weight: 700; }
.pilule-ajout { height: 32px; min-width: 64px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--teal-50); color: var(--teal-700); font: 800 14px/1 var(--f-he); }

/* cartes larges (bundles, offres) */
.rail-large { grid-auto-columns: calc(100% - 64px); }
.carte-offre { border-radius: 22px; background: var(--surface); box-shadow: var(--ombre-carte); overflow: hidden; border: 1px solid var(--ink-100); }
.carte-offre .img { height: 170px; background: var(--ink-50); display: grid; place-items: center; }
.carte-offre .img img { height: 82%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.carte-offre .corps { padding: 14px 16px 16px; }
.carte-offre .sur { font-size: 13px; font-weight: 700; color: var(--teal-700); }
.carte-offre h4 { margin: 4px 0 6px; font-size: 17px; line-height: 1.3; }
.carte-offre .bas { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.carte-offre .prix { font-size: 20px; font-weight: 700; }

/* carte des lignes, dans la charte */
.carte-lignes { margin: 0 16px; border-radius: var(--r-carte); background: var(--teal-700); color: #fff; padding: 20px; display: grid; gap: 12px; }
.carte-lignes .tete { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; opacity: .9; }
.carte-lignes h3 { margin: 0; font: 800 24px/1.2 var(--f-he); }
.carte-lignes p { margin: 0; font-size: 15px; opacity: .9; }
.carte-lignes .logos { display: flex; gap: 8px; flex-wrap: wrap; }
.carte-lignes .logos span { height: 34px; padding: 0 10px; border-radius: 10px; background: #fff; display: grid; place-items: center; }
.carte-lignes .logos img { height: 18px; width: auto; }

/* confiance (vrais engagements du site) */
.confiance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 16px; }
.confiance div { background: var(--ink-50); border-radius: 18px; padding: 14px; font-size: 14px; color: var(--ink-700); }
.confiance b { display: block; color: var(--ink-900); font-size: 15px; margin-bottom: 2px; }
.confiance .ic { color: var(--teal-700); margin-bottom: 6px; }

/* page catégories (direction A) : liste à pousser, façon iOS */
.grand-titre { font: 800 32px/1.1 var(--f-he); margin: 8px 16px 12px; }
.groupe { margin: 0 16px 18px; background: var(--surface); border-radius: 20px; border: 1px solid var(--ink-100); overflow: hidden; }
.groupe .titre-groupe { font-size: 13px; font-weight: 700; color: var(--ink-500); margin: 0 16px 8px; }
.rang { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 60px; border-bottom: 1px solid var(--ink-100); text-decoration: none; color: inherit; }
.rang:last-child { border-bottom: 0; }
.rang .vign { width: 44px; height: 44px; border-radius: 12px; background: var(--ink-50); display: grid; place-items: center; overflow: hidden; flex: none; }
.rang .vign img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.rang .vign.ic-fond { color: var(--teal-700); background: var(--teal-50); }
.rang b { font-size: 16px; font-weight: 600; }
.rang small { display: block; font-size: 13px; color: var(--ink-500); }
.rang .chev { margin-inline-start: auto; color: var(--ink-500); }

/* direction B : catalogue en deux colonnes */
.deux-volets { display: grid; grid-template-columns: 104px minmax(0, 1fr); height: 100%; }
.volet-rail { background: var(--ink-50); overflow-y: auto; scrollbar-width: none; padding-bottom: 96px; }
.volet-rail::-webkit-scrollbar { display: none; }
.volet-rail button { width: 100%; border: 0; background: transparent; display: grid; justify-items: center; gap: 4px; padding: 12px 6px; min-height: 72px; font-size: 13px; font-weight: 600; line-height: 1.25; text-align: center; color: var(--ink-700); position: relative; }
.volet-rail button.on { background: var(--surface); color: var(--teal-700); }
.volet-rail button.on::before { content: ""; position: absolute; inset-inline-start: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--teal-700); }
.volet-contenu { overflow-y: auto; padding: 14px 14px 110px; scrollbar-width: none; }
.volet-contenu::-webkit-scrollbar { display: none; }
.lien-tout-bloc { display: flex; align-items: center; justify-content: space-between; background: var(--teal-50); color: var(--teal-700); border-radius: 16px; padding: 14px; font-weight: 700; font-size: 15px; text-decoration: none; min-height: 52px; }
.grille-sous { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; margin: 16px 0 6px; }
.grille-sous a { display: grid; justify-items: center; gap: 6px; text-decoration: none; color: inherit; font-size: 13px; text-align: center; line-height: 1.25; }
.grille-sous .img { width: 100%; aspect-ratio: 1; border-radius: 16px; background: var(--ink-50); display: grid; place-items: center; overflow: hidden; }
.grille-sous .img img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; }
.grille-sous .img.ic-fond { color: var(--teal-700); background: var(--teal-50); }
.titre-volet { font-size: 13px; font-weight: 700; color: var(--ink-500); margin: 18px 0 8px; }
.marques { display: flex; flex-wrap: wrap; gap: 8px; }
.marques span { height: 36px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--ink-200); display: inline-flex; align-items: center; font: 600 13px/1 var(--f-lat); }

.tuiles-cat-b { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; padding: 0 16px; }
.tuiles-cat-b a { display: grid; justify-items: center; gap: 6px; text-decoration: none; color: inherit; font-size: 13px; font-weight: 600; text-align: center; line-height: 1.25; }
.tuiles-cat-b .img { width: 100%; aspect-ratio: 1; border-radius: 18px; background: var(--ink-50); border: 1px solid var(--ink-100); display: grid; place-items: center; overflow: hidden; }
.tuiles-cat-b .img img { width: 76%; height: 76%; object-fit: contain; mix-blend-mode: multiply; }
.tuiles-cat-b .img.ic-fond { color: var(--teal-700); background: var(--teal-50); border-color: var(--teal-100); }

.banniere-b { margin: 6px 16px 0; height: 380px; border-radius: var(--r-carte); overflow: hidden; position: relative; color: #fff; padding: 22px; display: flex; flex-direction: column; }
.banniere-b h3 { font: 700 32px/1.05 var(--f-lat); letter-spacing: -0.03em; margin: 4px 0 8px; }
.banniere-b p { margin: 0; font-size: 15px; opacity: .9; max-width: 28ch; }
.banniere-b img { position: absolute; inset-inline: 0; bottom: 0; height: 190px; width: 100%; object-fit: contain; object-position: bottom center; }
.banniere-b .actions { margin-top: 14px; display: flex; gap: 8px; }

.grille-prod-b { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 16px; }
.carte-prod { background: var(--surface); border: 1px solid var(--ink-100); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.carte-prod .img { aspect-ratio: 1; background: var(--ink-50); display: grid; place-items: center; position: relative; }
.carte-prod .img img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; }
.carte-prod .badge { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--surface); color: var(--teal-700); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.carte-prod .corps { padding: 10px 12px 12px; display: grid; gap: 4px; flex: 1; }
.carte-prod .marque { font: 600 11px/1 var(--f-lat); color: var(--ink-500); letter-spacing: .06em; }
.carte-prod .nom { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.carte-prod .bas { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 4px; }
.carte-prod .prix { font-size: 16px; font-weight: 700; }
.ajout-rond { width: 36px; height: 36px; border-radius: 999px; border: 0; background: var(--teal-700); color: #fff; display: grid; place-items: center; }

/* page des lignes — A : filtres en feuille, résultats en lignes compactes */
.lignes-tete { padding: 6px 16px 0; }
.lignes-tete h1 { font: 800 28px/1.15 var(--f-he); margin: 6px 0 6px; }
.lignes-tete p { margin: 0; color: var(--ink-700); font-size: 15px; }
.cadeau { margin: 14px 16px 0; border-radius: 18px; background: var(--teal-50); padding: 12px 14px; font-size: 14px; color: var(--ink-900); display: flex; gap: 10px; align-items: flex-start; }
.cadeau .ic { color: var(--teal-700); margin-top: 2px; }
.segment { margin: 16px 16px 0; background: var(--ink-50); border-radius: 14px; padding: 4px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.segment::-webkit-scrollbar { display: none; }
.segment button { flex: none; border: 0; background: transparent; border-radius: 11px; padding: 0 12px; height: 38px; font-size: 14px; font-weight: 600; color: var(--ink-700); white-space: nowrap; }
.segment button.on { background: var(--surface); color: var(--ink-900); box-shadow: 0 1px 3px rgba(12,25,27,.12); }
.barre-filtre { position: sticky; top: 56px; z-index: 10; background: rgb(252 253 253 / .96); backdrop-filter: blur(8px); display: flex; gap: 8px; padding: 12px 16px; align-items: center; border-bottom: 1px solid var(--ink-100); }
.barre-filtre .compte { margin-inline-start: auto; font-size: 14px; color: var(--ink-500); }
.forfait { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--ink-100); }
.forfait .logo-op { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--ink-100); display: grid; place-items: center; background: #fff; overflow: hidden; }
.forfait .logo-op img { width: 82%; height: auto; }
.forfait .titre { font-size: 15px; font-weight: 700; line-height: 1.3; }
.forfait .details { font-size: 13px; color: var(--ink-500); margin-top: 2px; }
.forfait .tags { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; }
.tag { font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--ink-50); color: var(--ink-700); }
.tag.vert { background: #E6F2EA; color: var(--vert-ink); }
.forfait .droite { text-align: center; display: grid; gap: 6px; justify-items: center; }
.forfait .mois { font-size: 20px; font-weight: 700; line-height: 1; }
.forfait .mois small { font-size: 12px; font-weight: 500; color: var(--ink-500); display: block; margin-top: 3px; font-family: var(--f-he); }

/* page des lignes — B : parcours guidé */
.guide-q { margin: 18px 16px 8px; font: 800 19px/1.25 var(--f-he); }
.grille-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 16px; }
.grille-services button { border: 1px solid var(--ink-200); background: var(--surface); border-radius: 18px; padding: 14px 6px; display: grid; justify-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; min-height: 92px; }
.grille-services button .ic { color: var(--teal-700); }
.grille-services button.on { border-color: var(--teal-700); box-shadow: inset 0 0 0 1px var(--teal-700); background: var(--teal-50); }
.compteur { margin: 0 16px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--ink-200); border-radius: 18px; padding: 8px 10px 8px 16px; }
.compteur .val { font: 700 22px/1 var(--f-lat); min-width: 30px; text-align: center; }
.compteur .ctl { display: flex; align-items: center; gap: 10px; }
.compteur .ctl button { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--ink-200); background: var(--surface); display: grid; place-items: center; }
.interrupteurs { margin: 0 16px; display: grid; gap: 8px; }
.interrupteur { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--ink-200); border-radius: 18px; padding: 0 16px; min-height: 56px; font-size: 15px; font-weight: 600; }
.bascule { width: 50px; height: 30px; border-radius: 99px; background: var(--ink-200); position: relative; flex: none; }
.bascule::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: inset-inline-start .2s var(--aisance); }
.bascule.on { background: var(--teal-700); }
.bascule.on::after { inset-inline-start: 23px; }
.cta-collant { position: absolute; inset-inline: 0; bottom: 0; padding: 12px 16px; background: var(--fond); border-top: 1px solid var(--ink-100); z-index: 22; }
.cta-collant .btn { width: 100%; justify-content: center; height: 52px; font-size: 16px; }
.apercu-meilleur { margin: 18px 16px 0; border: 1px solid var(--ink-100); border-radius: 20px; overflow: hidden; }
.apercu-meilleur .tt { font-size: 13px; font-weight: 700; color: var(--ink-500); padding: 12px 16px 0; }

/* ==========================================================================
   BUREAU (1440)
   ========================================================================== */
.bur { position: relative; }
.bur .contenant { width: 1344px; margin: 0 auto; }
.bur-bande { background: var(--ink-900); color: #fff; font-size: 13px; height: 36px; display: flex; align-items: center; }
.bur-bande .contenant { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bur-bande a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; opacity: .9; }
.bur-bande .gauche, .bur-bande .droite { display: flex; gap: 22px; align-items: center; }
.bur-entete { background: var(--surface); border-bottom: 1px solid var(--ink-100); position: relative; z-index: 30; }
.bur-entete .principale { height: 76px; display: flex; align-items: center; gap: 28px; }
.bur-entete .logo { height: 28px; width: auto; }
.bur-nav { display: flex; align-items: center; gap: 4px; }
.bur-nav a, .bur-nav button { height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 999px; font-size: 15.5px; font-weight: 600; color: var(--ink-900); text-decoration: none; border: 0; background: transparent; white-space: nowrap; }
.bur-nav a.on, .bur-nav button.on { background: var(--ink-50); }
.bur-recherche { flex: 1; max-width: 520px; height: 46px; border-radius: 999px; background: var(--ink-50); border: 1px solid var(--ink-100); display: flex; align-items: center; gap: 10px; padding: 0 18px; color: var(--ink-500); font-size: 15px; }
.bur-actions { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.lien-lignes { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--teal-50); color: var(--teal-700); font-weight: 700; font-size: 15px; text-decoration: none; }

/* le cadre FIXE du méga-menu : même largeur, même hauteur, mêmes zones */
.mega { position: absolute; top: 100%; inset-inline: 0; z-index: 29; background: var(--surface); border-bottom: 1px solid var(--ink-100); box-shadow: 0 30px 60px -30px rgba(12,25,27,.25); }
.mega .contenant { height: 400px; display: grid; grid-template-columns: 300px 230px minmax(0, 1fr); gap: 40px; padding: 30px 0; }
.mega .col-titre { font-size: 13px; font-weight: 700; color: var(--ink-500); margin-bottom: 12px; }
.mega .liens { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; align-content: start; }
.mega .liens a { font-size: 15.5px; color: var(--ink-900); text-decoration: none; padding: 7px 0; line-height: 1.3; }
.mega .liens a.tout { color: var(--teal-700); font-weight: 700; grid-column: 1 / -1; display: inline-flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.mega .marques-col { display: grid; gap: 8px; align-content: start; }
.mega .marques-col span { height: 40px; border: 1px solid var(--ink-200); border-radius: 12px; display: flex; align-items: center; padding: 0 14px; font: 600 14px/1 var(--f-lat); }
.mega .vedettes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mega .vedette { border-radius: 20px; background: var(--ink-50); padding: 14px; display: grid; grid-template-rows: 190px auto auto; gap: 6px; }
.mega .vedette img { width: 100%; height: 190px; object-fit: contain; mix-blend-mode: multiply; }
.mega .vedette b { font-size: 15px; line-height: 1.3; }
.mega .vedette .prix { font-size: 15px; font-weight: 700; color: var(--ink-700); }
.mega .fondu { animation: fondu .18s var(--aisance); }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mega .fondu { animation: none; } .feuille, .voile, .aide-flottante { transition: none; } }

/* B : le même catalogue à deux volets, au bureau */
.mega-b .contenant { height: 440px; display: grid; grid-template-columns: 260px minmax(0, 1fr) 300px; gap: 0; padding: 0; }
.mega-b .rail-b { border-inline-end: 1px solid var(--ink-100); padding: 18px 0; overflow: hidden; }
.mega-b .rail-b button { width: 100%; border: 0; background: transparent; display: flex; align-items: center; gap: 12px; padding: 0 20px; height: 38px; font-size: 15px; font-weight: 600; text-align: start; color: var(--ink-700); }
.mega-b .rail-b button .ic { color: var(--ink-500); }
.mega-b .rail-b button.on { background: var(--teal-50); color: var(--teal-700); }
.mega-b .rail-b button.on .ic { color: var(--teal-700); }
.mega-b .milieu { padding: 26px 32px; }
.mega-b .grille-sous { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px 14px; margin-top: 14px; }
.mega-b .grille-sous a { font-size: 14px; }
.mega-b .droite { background: var(--ink-50); padding: 22px; display: grid; align-content: start; gap: 8px; }
.mega-b .droite img { height: 210px; width: 100%; object-fit: contain; mix-blend-mode: multiply; }

.bur-heros { padding: 28px 0 8px; }
.bur-heros .grille { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
.bur-heros .carte-jour { height: 520px; padding: 44px 44px 0; }
.bur-heros .carte-jour h3 { font-size: 64px; }
.bur-heros .carte-jour p { font-size: 18px; max-width: 34ch; }
.bur-heros .carte-jour.grande img { position: absolute; inset-inline-end: 24px; bottom: 0; width: 56%; height: 92%; }
.bur-heros .carte-jour.petite { padding: 32px 32px 0; }
.bur-heros .carte-jour.petite h3 { font-size: 34px; }
.bur-heros .carte-jour.petite img { height: 260px; }
.bur-heros .barre-points { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.fleches { display: flex; gap: 8px; }
.fleche { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--ink-200); background: var(--surface); display: grid; place-items: center; }

.bur-sec { padding: 44px 0 0; }
.bur-sec .tete { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.bur-sec h2 { font: 800 30px/1.15 var(--f-he); margin: 0; }
.bur-cats { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 14px; }
.bur-cats a { display: grid; justify-items: center; gap: 8px; text-decoration: none; color: inherit; font-size: 15px; font-weight: 600; text-align: center; line-height: 1.25; }
.bur-cats .img { width: 100%; aspect-ratio: 1; border-radius: 24px; background: var(--ink-50); border: 1px solid var(--ink-100); display: grid; place-items: center; overflow: hidden; }
.bur-cats .img img { width: 76%; height: 76%; object-fit: contain; mix-blend-mode: multiply; }
.bur-cats .img.ic-fond { color: var(--teal-700); background: var(--teal-50); border-color: var(--teal-100); }
.bur-cats small { font: 500 13px/1 var(--f-lat); color: var(--ink-500); margin-top: -4px; }
.bur-colonnes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; }
.bur-colonnes .ligne-prod { grid-template-columns: 76px minmax(0, 1fr) auto; }
.bur-colonnes .ligne-prod .img { width: 76px; height: 76px; }
.bur-grille { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bur-banniere { height: 460px; border-radius: var(--r-carte); position: relative; overflow: hidden; color: #fff; padding: 56px; }
.bur-banniere h3 { font: 700 64px/1.02 var(--f-lat); letter-spacing: -0.03em; margin: 6px 0 12px; }
.bur-banniere p { font-size: 18px; max-width: 34ch; margin: 0; opacity: .9; }
.bur-banniere img { position: absolute; inset-inline-end: 56px; bottom: 0; height: 94%; width: 50%; object-fit: contain; object-position: bottom; }
.bur-banniere .actions { display: flex; gap: 10px; margin-top: 22px; }
.bur-lignes { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-radius: var(--r-carte); overflow: hidden; background: var(--teal-700); color: #fff; }
.bur-lignes .txt { padding: 40px 44px; display: grid; gap: 12px; align-content: center; }
.bur-lignes h3 { font: 800 34px/1.15 var(--f-he); margin: 0; }
.bur-lignes p { margin: 0; opacity: .9; font-size: 17px; }
.bur-lignes .liste { background: var(--surface); color: var(--ink-900); margin: 20px; border-radius: 20px; }
.bur-pied-espace { height: 60px; }
.note-bureau { position: absolute; z-index: 50; background: var(--ink-900); color: #fff; font: 600 14px/1.4 var(--f-he); padding: 10px 14px; border-radius: 12px; direction: ltr; font-family: var(--f-lat); max-width: 300px; box-shadow: var(--ombre-haute); }

/* mode « seul » : un écran en plein format, pour l'ouvrir sur un vrai téléphone */
body.seul { background: var(--fond); }
body.seul .doc { display: none; }
#seul-cadre { display: none; }
body.seul #seul-cadre { display: block; }
body.seul .ecran-tel { width: 100vw; height: 100svh; max-height: none; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
body.seul .echelle { border: 0; border-radius: 0; box-shadow: none; }
/* un écran de téléphone ouvert sur un ordinateur : on garde la taille d'un téléphone */
@media (min-width: 700px) {
  body.seul:has(.ecran-tel) { background: var(--ink-50); }
  body.seul .ecran-tel { width: 400px; height: min(860px, calc(100svh - 48px)); margin: 24px auto; border: 10px solid var(--ink-900); border-radius: 44px; box-shadow: var(--ombre-haute); }
}

/* --- corrections après le premier rendu (19/11) --- */
.pilule-aide { height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ink-200); background: var(--surface); display: inline-flex; align-items: center; gap: 6px; font: 700 14px/1 var(--f-he); color: var(--ink-900); white-space: nowrap; }
.pilule-aide .ic { color: var(--teal-700); }
.entete-tel .ligne .pilule-aide { margin-inline-end: 2px; }
.liste-sous { margin-top: 14px; border: 1px solid var(--ink-100); border-radius: 16px; overflow: hidden; }
.liste-sous a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 0 14px; font-size: 14.5px; color: var(--ink-900); text-decoration: none; border-bottom: 1px solid var(--ink-100); }
.liste-sous a:last-child { border-bottom: 0; }
.liste-sous .ic { color: var(--ink-500); }
.cta-collant { bottom: 75px; }
.mega-b .contenant { height: 460px; overflow: hidden; }
.mega-b .milieu { overflow: hidden; }
.mega-b .grille-sous { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mega-b .grille-sous .img { aspect-ratio: auto; height: 110px; }
.liens-b { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; margin-top: 10px; }
.liens-b:empty { display: none; }
.liens-b a { font-size: 15px; color: var(--ink-900); text-decoration: none; padding: 7px 0; border-bottom: 1px solid var(--ink-100); }
/* l'image d'une carte d'offre ne déborde plus sur le titre (hauteur en px : un % dans une piste de grille automatique ne se résout pas) */
.carte-offre .img { overflow: hidden; }
.carte-offre .img img { height: 140px; width: 100%; object-fit: contain; }
/* cible tactile ≥ 44 px (DESIGN.md §7) */
.entete-tel .pilule-aide { height: 44px; padding: 0 14px; }
/* le cadre de téléphone garde 390 px utiles à l'intérieur de sa bordure */
.cadre-tel { width: min(410px, calc(100vw - 48px)); }
.cadre-tel figcaption { max-width: 410px; }
