/* ==========================================================================
   Dwa Plus — feuille de style, version 4
   --------------------------------------------------------------------------
   Parti pris : une maquette de presse plutot qu'une interface de demo.

   - Papier, encre et un seul vert, celui de la croix d'officine. Aucun
     degrade decoratif, aucun verre depoli, aucune tache de couleur floue.
   - Une vraie typographie : Fraunces pour les titres et les prix (Noto
     Naskh Arabic en arabe), la police du systeme pour le texte courant.
     Les fichiers sont servis par le site lui-meme : ni requete vers un
     tiers, ni cookie, et un chargement leger en 3G.
   - La vignette de prix, collee sur chaque boite vendue au Maroc, sert de
     motif : on la retrouve en tete de l'accueil et sur chaque fiche.
   - L'orange est reserve a l'argent economise.
   - Des filets fins et une grille nette pour structurer, plutot que des
     ombres et des cartes flottantes.
   - Proprietes logiques partout : l'arabe se lit de droite a gauche avec
     la meme feuille.
   ========================================================================== */

/* --- 0. Polices ----------------------------------------------------------- */

/* Licence SIL Open Font License 1.1 : voir /assets/fonts/OFL-*.txt.
   Chaque fichier ne se charge que si la page contient des caracteres de
   son alphabet (unicode-range). */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Noto Naskh Arabic";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/naskh-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* --- 1. Jetons ------------------------------------------------------------ */

:root {
  /* Theme sombre : la nuit d'une officine, eclairee par sa croix verte.
     Les noms historiques sont gardes (« papier » est le fond, « blanc » la
     surface des cartes, « encre » le texte) : tout le site s'y refere. La
     palette claire d'origine survit sur la boite de la une, objet imprime
     pose dans la scene, et a l'impression (section 39). */
  --papier:      #07110E;
  --papier-2:    #0B1814;
  --blanc:       #0F1F1A;
  --encre:       #E8F1EC;
  --encre-doux:  #A4B5AD;
  --encre-pale:  #71837B;
  --ligne:       rgba(232, 241, 236, .09);
  --ligne-forte: rgba(232, 241, 236, .18);

  /* Le vert de la croix d'officine, et ses nuances. --vert-fonce sert
     surtout au texte appuye : sur la nuit, il devient clair. --vert-nuit
     reste le fond des bandes sombres. */
  --vert:        #12A47A;
  /* Fond des boutons et pastilles a texte blanc : contraste 5:1 (--vert,
     plus vif, n'atteignait que 3,2 et Lighthouse le signalait). */
  --vert-fond:   #087F5D;
  --vert-fonce:  #8FE6C6;
  --vert-nuit:   #0A2A21;
  --vert-vif:    #34E3A4;
  --vert-pale:   rgba(18, 164, 122, .16);
  --vert-brume:  #0C1B16;

  /* L'economie, et elle seule */
  --safran:      #FF8A4C;
  --safran-pale: rgba(255, 138, 76, .12);
  --safran-bord: rgba(255, 138, 76, .35);

  /* Etats */
  --rouge:       #FF7262;
  --rouge-pale:  rgba(255, 114, 98, .12);
  --wa:          #25D366;
  --wa-encre:    #06301A;

  /* Le prix, partout : la seule chose qu'on vient lire. */
  --prix:        #E9FFF6;
  /* Lueurs de la scene */
  --lueur:       rgba(52, 227, 164, .18);
  --verre:       rgba(15, 31, 26, .62);

  /* Formes : des coins francs, peu arrondis */
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 14px;

  --ombre-1: 0 1px 0 rgba(0, 0, 0, .25), 0 1px 3px rgba(0, 0, 0, .3);
  --ombre-2: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -14px rgba(0, 0, 0, .7), 0 0 0 1px rgba(232, 241, 236, .04);

  --souple: cubic-bezier(.2, .8, .2, 1);
  --vite: .16s;
  --moyen: .3s;

  --pas: 1.25rem;
  --largeur: 46rem;
  --largeur-large: 76rem;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans Arabic", "Segoe UI Arabic", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* Le grand titre suit aussi la hauteur de l'ecran (11vh) : sur un
     portable a 125 ou 150 %, sa taille calculee sur la largeur le faisait
     tenir sur trois lignes, et la barre de recherche tombait sous le bas de
     l'ecran. */
  --t-une:  clamp(2.6rem, min(1.5rem + 4.4vw, 11vh), 5.1rem);
  --t-h1:   clamp(1.9rem, 1.4rem + 2vw, 3rem);
  --t-h2:   clamp(1.45rem, 1.2rem + 1vw, 2.1rem);
  --t-h3:   1.25rem;
  --t-prix: clamp(3rem, 2.2rem + 3.4vw, 4.6rem);
}

/* En arabe, les titres passent au naskh ; les chiffres et le latin
   restent en Fraunces, que la pile propose en second. */
[dir="rtl"] { --serif: "Noto Naskh Arabic", "Fraunces", Georgia, serif; }

/* --- 2. Base -------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  /* Le radar et les decors debordent volontairement de leur bloc : rien ne
     doit pour autant creer de defilement horizontal. « clip » plutot que
     « hidden » : l'en-tete collant continue de fonctionner. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--encre);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
  /* Seuls le style droit et les graisses fournies sont servis : le
     navigateur ne doit pas fabriquer un italique ou un gras qui n'existe pas. */
  font-synthesis: none;
  /* « clip », comme sur html : « hidden » faisait du corps de page un
     conteneur de defilement, et plus aucune colonne collante (position:
     sticky) ne restait en vue pendant la lecture. */
  overflow-x: clip;
}
[dir="rtl"] body { line-height: 1.8; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  font-optical-sizing: auto;
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--encre);
  text-wrap: balance;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.45; font-weight: 700; }
p { text-wrap: pretty; }
img, svg { max-width: 100%; height: auto; }

a {
  color: var(--vert);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--vite) ease, text-decoration-color var(--vite) ease;
}
a:hover { color: var(--vert-fonce); }

::selection { background: #CFE6DA; color: var(--encre); }

:focus-visible { outline: 2px solid var(--vert); outline-offset: 3px; border-radius: 3px; }

.icone { width: 1.2em; height: 1.2em; flex: 0 0 auto; }

/* --- 3. Structure --------------------------------------------------------- */

.enveloppe {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--pas);
}
.enveloppe--large   { max-width: var(--largeur-large); }
.enveloppe--etroite { max-width: 36rem; }

main { display: block; padding-block: 2rem 5rem; min-height: 60vh; }
main:has(> .une) { padding-top: 0; }

@media (min-width: 60rem) {
  :root { --pas: 2rem; }
  main { padding-block: 2.75rem 4.5rem; }
}

/* Grands ecrans : tout grandit ensemble. Les tailles de la feuille sont en
   rem ; en relevant la taille de base, textes, marges et largeur utile
   suivent dans les memes proportions. Sans cela, sur un ecran de 2 500 px,
   le site tenait dans une colonne etroite en petits caracteres, perdu au
   milieu du vide. Les requetes media en rem, elles, restent calculees sur
   16 px : pas d'effet de boucle. */
@media (min-width: 100rem) { html { font-size: 106.25%; } }
@media (min-width: 120rem) { html { font-size: 112.5%; } }
@media (min-width: 140rem) { html { font-size: 125%; } }
@media (min-width: 165rem) { html { font-size: 137.5%; } }
@media (max-width: 26rem) { :root { --pas: 1rem; } }

/* --- 4. Bandeaux ---------------------------------------------------------- */

.bandeau-demo,
.bandeau-avis { font-size: .8125rem; line-height: 1.45; padding: .55rem 1rem; text-align: center; }
.bandeau-demo { background: var(--safran); color: #fff; }
.bandeau-demo a { color: #fff; }
.bandeau-avis { background: var(--safran-pale); color: #7C2D12; border-bottom: 1px solid var(--safran-bord); }

/* --- 5. En-tete ----------------------------------------------------------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 244, 238, .94);
  border-bottom: 1px solid var(--ligne);
  transition: box-shadow var(--moyen) ease;
}
.entete.defile { box-shadow: 0 6px 20px -14px rgba(23, 32, 28, .35); }
.entete__rangee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.entete__logo { display: inline-flex; align-items: center; }
.entete__logo img { height: 2.25rem; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  position: relative;
  padding-block: .5rem;
  color: var(--encre-doux);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 600;
  white-space: nowrap;
}
/* Soulignement qui se deroule depuis le debut du mot. */
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: .1rem;
  height: 2px;
  background: var(--vert-fond);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--moyen) var(--souple);
}
[dir="rtl"] .nav a::after { transform-origin: right; }
.nav a:hover { color: var(--encre); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--encre); }
.nav__langue {
  padding: .35rem .75rem !important;
  border: 1px solid var(--ligne-forte);
  border-radius: var(--r-s);
  color: var(--encre) !important;
}
.nav__langue::after { display: none; }
.nav__langue:hover { border-color: var(--encre); }

@media (max-width: 640px) {
  .entete__rangee { flex-wrap: wrap; justify-content: space-between; padding-block: .6rem .2rem; gap: .25rem; min-height: 0; }
  .entete__logo img { height: 30px; }
  .nav { flex: 0 0 100%; gap: 1.1rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .15rem; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: .875rem; }
  /* Le bouton de langue remonte a cote du logo : au bout de la rangee
     defilante, il sortait de l'ecran et personne ne le trouvait. */
  .entete__rangee { position: relative; }
  .nav .nav__langue { position: absolute; top: .55rem; inset-inline-end: 0; font-size: .8125rem !important; }
}

/* --- 6. Recherche --------------------------------------------------------- */

.chercher { position: relative; margin-bottom: 2rem; }
.chercher__champ {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--blanc);
  border: 1.5px solid var(--ligne-forte);
  border-radius: var(--r-m);
  padding: .35rem;
  padding-inline-start: 2.9rem;
  transition: border-color var(--vite) ease, box-shadow var(--moyen) var(--souple);
}
.chercher__champ::before,
.chercher__champ::after { content: ""; position: absolute; pointer-events: none; }
/* Loupe : un cercle et un manche */
.chercher__champ::before {
  inset-inline-start: 1.1rem;
  top: 50%;
  width: .9rem;
  height: .9rem;
  margin-top: -.58rem;
  border: 2px solid var(--encre-doux);
  border-radius: 50%;
}
.chercher__champ::after {
  inset-inline-start: 1.85rem;
  top: 50%;
  width: 2px;
  height: .45rem;
  margin-top: .18rem;
  background: var(--encre-doux);
  transform: rotate(-45deg);
}
[dir="rtl"] .chercher__champ::after { transform: rotate(45deg); }
.chercher__champ:hover { border-color: var(--encre-pale); }
.chercher__champ:focus-within { border-color: var(--vert); box-shadow: 0 0 0 4px rgba(11, 107, 79, .12); }

.chercher input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  padding: .75rem .2rem;
  font: inherit;
  font-size: 1.0625rem;
  color: var(--encre);
  background: transparent;
}
.chercher input[type="search"]:focus { outline: none; }
.chercher input::placeholder { color: var(--encre-pale); }
.chercher button {
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--r-s);
  background: var(--vert-fond);
  color: #fff;
  font: inherit;
  font-weight: 650;
  padding: .75rem 1.35rem;
  cursor: pointer;
  transition: background var(--vite) ease;
}
.chercher button:hover { background: var(--vert-fonce); }
.chercher button:active { transform: translateY(1px); }

.suggestions {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 6px);
  z-index: 30;
  background: var(--blanc);
  border: 1px solid var(--ligne-forte);
  border-radius: var(--r-m);
  box-shadow: var(--ombre-2);
  overflow: hidden;
  animation: deplier .22s var(--souple);
}
.suggestions:empty { display: none; }
.suggestions a {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .7rem 1rem;
  text-decoration: none;
  color: var(--encre);
  border-bottom: 1px solid var(--ligne);
}
.suggestions a:last-child { border-bottom: 0; }
.suggestions a:hover, .suggestions a.actif { background: var(--vert-brume); }
.suggestions .s-visuel { flex: 0 0 auto; width: 2.1rem; height: 2.1rem; }
.suggestions .s-nom { flex: 1 1 auto; min-width: 0; font-weight: 650; }
.suggestions .s-detail { font-size: .8125rem; color: var(--encre-doux); font-weight: 400; }
.suggestions .s-prix { font-family: var(--serif); font-weight: 600; font-size: 1.0625rem; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }

.exemples { margin: 1rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.exemples a {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--encre-doux);
  border: 1px solid var(--ligne-forte);
  border-radius: var(--r-s);
  padding: .3rem .65rem;
}
.exemples a:hover { color: var(--encre); border-color: var(--encre); }

/* --- 7. Accueil : la une -------------------------------------------------- */

.une {
  position: relative;
  padding-block: clamp(2.5rem, min(1.5rem + 4vw, 8vh), 5.5rem) clamp(3rem, 2rem + 4vw, 5.5rem);
  border-bottom: 1px solid var(--ligne);
}
/* Une colonne « minmax(0, 1fr) » et non « auto » : sinon la vignette et
   son prix en grands chiffres imposaient leur largeur, et sur telephone
   toute la une debordait de l'ecran (bouton Chercher coupe). */
.une__grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: center; }
@media (min-width: 62rem) { .une__grille { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; } }
/* Decor du pan vert : seulement sur grand ecran (voir « Relief de l'accueil »). */
.une__decor { display: none; }

.surtitre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .6rem;
  margin: 0 0 1.4rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--vert);
}
.surtitre::before { content: ""; width: 1.75rem; height: 2px; background: currentColor; }
.surtitre__sep { color: var(--ligne-forte); }
[dir="rtl"] .surtitre { letter-spacing: 0; font-size: .875rem; }

.une__titre {
  margin: 0 0 1.25rem;
  max-width: 13ch;
  font-size: var(--t-une);
  font-weight: 520;
  line-height: 1;
  letter-spacing: -.03em;
}
[dir="rtl"] .une__titre { line-height: 1.35; max-width: 16ch; }
.une__chapo { margin: 0 0 2rem; max-width: 34rem; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--encre-doux); }

.une__recherche { position: relative; z-index: 10; max-width: 38rem; }
/* Ecran d'ordinateur peu haut (portable a 125 ou 150 %, fenetre reduite) :
   la recherche, l'outil de la page, doit tenir dans le premier ecran. Les
   marges se resserrent, et le texte part du haut au lieu d'etre centre
   sur la boite, plus haute que lui. */
@media (min-width: 62rem) and (max-height: 47.5rem) {
  .une__grille { align-items: start; }
  .une .surtitre { margin-bottom: 1rem; }
  .une__titre { margin-bottom: 1rem; }
  .une__chapo { margin-bottom: 1.25rem; }
  .une .frequents { margin-top: 1rem; }
}
.une .chercher { margin-bottom: 0; }
.une .chercher__champ { border-width: 2px; border-color: var(--encre); padding: .4rem; padding-inline-start: 3rem; }
.une .chercher__champ:focus-within { border-color: var(--vert); }
.une .chercher input[type="search"] { font-size: 1.125rem; padding-block: .85rem; }
.une .chercher button { padding-inline: 1.6rem; }

.frequents { margin: 1.25rem 0 0; font-size: .9375rem; color: var(--encre-doux); line-height: 2; }
.frequents__titre { margin-inline-end: .4rem; }
.frequents a { color: var(--encre); font-weight: 600; text-decoration: underline; text-decoration-color: var(--ligne-forte); }
.frequents a:hover { text-decoration-color: var(--vert); color: var(--vert); }
.frequents__sep { margin-inline: .5rem; color: var(--encre-pale); }

/* La vignette : etiquette de prix a bords perfores, posee de biais sur la
   face d'une boite. */
.vignette-scene {
  position: relative;
  margin: 0;
  padding: 2.5rem 1.5rem 1.25rem;
  justify-self: center;
  width: 100%;
  max-width: 27rem;
}
.vignette-scene::before {
  /* La face de la boite, sur une trame de papier millimetre. */
  content: "";
  position: absolute;
  /* Le cadre englobe la legende : elle ne chevauche plus son bord. */
  inset: 0;
  border-radius: var(--r-l);
  background-color: var(--vert-pale);
  background-image:
    linear-gradient(rgba(11, 107, 79, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 107, 79, .08) 1px, transparent 1px);
  background-size: 18px 18px;
}
.vignette {
  position: relative;
  padding: 1.5rem 1.5rem 1.1rem;
  background: var(--blanc);
  transform: rotate(-2.5deg);
  filter: drop-shadow(0 1px 1px rgba(23, 32, 28, .12)) drop-shadow(0 16px 22px rgba(23, 32, 28, .14));
  /* Bords perfores en haut et en bas, comme une etiquette detachee d'un rouleau. */
  -webkit-mask:
    radial-gradient(circle 5px at 50% 0, #0000 97%, #000) 0 0 / 14px 51% repeat-x,
    radial-gradient(circle 5px at 50% 100%, #0000 97%, #000) 0 100% / 14px 51% repeat-x;
  mask:
    radial-gradient(circle 5px at 50% 0, #0000 97%, #000) 0 0 / 14px 51% repeat-x,
    radial-gradient(circle 5px at 50% 100%, #0000 97%, #000) 0 100% / 14px 51% repeat-x;
  animation: coller .8s var(--souple) .35s both;
}
[dir="rtl"] .vignette { transform: rotate(2.5deg); }
.vignette__tete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.vignette__ppv {
  padding: .15rem .55rem;
  background: var(--vert-fond);
  color: #fff;
  font-weight: 800;
  font-size: .8125rem;
  letter-spacing: .12em;
  border-radius: 3px;
}
.vignette__forme { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-pale); }
[dir="rtl"] .vignette__forme { letter-spacing: 0; }
.vignette__nom { margin: 0; font-size: .9375rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
/* Sur telephone, le nom passe a la ligne avant le tampon au lieu de glisser dessous. */
@media (max-width: 30rem) { .vignette__nom { padding-inline-end: 6.5rem; } }
/* Pareil sur ordinateur des que le tampon est la : dans la colonne etroite
   d'un portable, « AUGMENTIN 1 G / 125 MG » passait sous « −30 % ». */
.vignette:has(.tampon) .vignette__nom { padding-inline-end: 6.5rem; }
.vignette__prix {
  margin: .1rem 0 1rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.8rem, 2.2rem + 2vw, 3.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--vert-nuit);
}
.vignette__generique {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding-top: .9rem;
  border-top: 1.5px dashed var(--ligne-forte);
  font-size: .8125rem;
  color: var(--encre-doux);
}
.vignette__generique b { display: block; margin-top: .1rem; font-size: .875rem; color: var(--encre); text-transform: uppercase; letter-spacing: .02em; }
.vignette__prix-gen { font-family: "Fraunces", Georgia, serif; font-size: 1.6rem; font-weight: 600; color: var(--safran); white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.vignette__code { display: flex; align-items: stretch; gap: 2px; height: 1.8rem; margin-top: 1.1rem; opacity: .8; }
.vignette__code i { display: block; width: calc(var(--t) * 1.5px); background: var(--encre); }

/* Tampon d'economie, pose apres l'etiquette */
/* Il reste a l'interieur de l'etiquette : le masque des bords perfores
   rognerait tout ce qui depasse. */
.tampon {
  position: absolute;
  inset-inline-end: 1.1rem;
  top: 3.4rem;
  padding: .3rem .7rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--safran);
  border: 2.5px solid currentColor;
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px var(--blanc), inset 0 0 0 3.5px currentColor;
  background: rgba(255, 255, 255, .85);
  transform: rotate(9deg);
  animation: tamponner .5s cubic-bezier(.3, 1.6, .5, 1) 1.1s both;
}
.vignette-scene figcaption { position: relative; margin-top: 1.75rem; text-align: center; font-size: .8125rem; color: var(--encre-doux); }
.vignette-scene figcaption a { color: inherit; }
.vignette-scene figcaption a:hover { color: var(--vert); }

/* Faits : une ligne de chiffres entre deux filets */
.faits { border-bottom: 1px solid var(--ligne); background: var(--blanc); }
.faits__rangee { display: grid; grid-template-columns: repeat(3, 1fr); }
.fait { margin: 0; padding: 1.4rem 1.25rem; border-inline-start: 1px solid var(--ligne); }
.fait:first-child { border-inline-start: 0; padding-inline-start: 0; }
@media (max-width: 30rem) { .fait { padding: 1.1rem .6rem; } }
.fait b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem);
  font-weight: 560;
  line-height: 1.15;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--vert-nuit);
}
/* Enfant direct seulement : les rouleaux du compteur sont aussi des span, et
   cette regle les empilait les uns sous les autres en petits caracteres. */
.fait > span { display: block; margin-top: .2rem; font-size: .8125rem; color: var(--encre-doux); }

/* --- 8. Accueil : chapitres ----------------------------------------------- */

.chapitre {
  display: grid;
  gap: 1.5rem 3rem;
  padding-block: clamp(3rem, 2rem + 3vw, 5rem);
  border-bottom: 1px solid var(--ligne);
}
@media (min-width: 60rem) {
  .chapitre { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .chapitre__tete { position: sticky; top: 6.5rem; align-self: start; }
}
.chapitre__tete h2 { margin: .6rem 0 0; font-size: var(--t-h2); }
.chapitre__tete p { margin: .8rem 0 0; color: var(--encre-doux); max-width: 26rem; }
.chapitre__num {
  display: inline-block;
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--vert);
  padding-top: .45rem;
  border-top: 2px solid currentColor;
  min-width: 2.5rem;
}
.chapitre__num--clair { color: #8FD3B6; }
/* Une grille de villes ou de formes occupe toute la largeur sous le titre. */
.chapitre > .villes, .chapitre > .formes-grille, .chapitre > .mt { grid-column: 1 / -1; }
@media (min-width: 60rem) { .chapitre > .formes-grille { grid-column: 2; } }

.definitions { margin: 0; border-top: 1px solid var(--encre); }
.definitions > div {
  display: grid;
  gap: .3rem 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--ligne);
}
@media (min-width: 40rem) { .definitions > div { grid-template-columns: 16rem 1fr; align-items: baseline; } }
.definitions dt { font-family: var(--serif); font-size: 1.35rem; font-weight: 560; transition: color var(--vite) ease; }
.definitions dd { margin: 0; color: var(--encre-doux); font-size: 1.0625rem; }
.definitions > div:hover dt { color: var(--vert); }

.exergue {
  position: relative;
  margin: 2.5rem 0 0;
  padding-inline-start: 1.6rem;
  border-inline-start: 3px solid var(--vert);
}
.exergue p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem);
  font-weight: 450;
  line-height: 1.45;
  color: var(--encre);
}
[dir="rtl"] .exergue p { font-style: normal; }

.formes-grille {
  display: grid;
  /* Colonnes fixes plutot qu'« auto-fill » : les neuf formes tombent en
     3 x 3, sans une case orpheline sur la derniere ligne. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--encre);
  border-inline-start: 1px solid var(--ligne);
}
.formes-grille li {
  display: grid;
  gap: .15rem;
  padding: 1.25rem 1rem 1.1rem;
  border-inline-end: 1px solid var(--ligne);
  border-bottom: 1px solid var(--ligne);
  transition: background var(--vite) ease;
}
@media (min-width: 40rem) { .formes-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 39.99rem) {
  .formes-grille li:last-child:nth-child(odd) { grid-column: span 2; }
}
.formes-grille li:hover { background: var(--blanc); }
.formes-grille img { width: 3.75rem; height: 3.75rem; margin-bottom: .6rem; transition: transform var(--moyen) var(--souple); }
.formes-grille li:hover img { transform: translateY(-3px) rotate(-4deg); }
.formes-grille__nom { font-family: var(--serif); font-size: 1.0625rem; font-weight: 560; line-height: 1.25; }
.formes-grille__n { font-size: .875rem; color: var(--encre-doux); font-variant-numeric: tabular-nums; }

/* Bande pleine largeur : la disponibilite */
.bande {
  position: relative;
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  background: var(--vert-nuit);
  color: #DDEAE3;
}
.bande__grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: center; }
@media (min-width: 60rem) { .bande__grille { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 5rem; } }
.bande h2 { margin: 1rem 0 1rem; font-size: var(--t-h2); color: #fff; }
.bande__chapo { margin: 0 0 2rem; max-width: 34rem; font-size: 1.0625rem; color: #BFD3C9; }

.pas-a-pas { list-style: none; margin: 0 0 2.25rem; padding: 0; counter-reset: pas; border-top: 1px solid rgba(255, 255, 255, .14); }
.pas-a-pas li {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  counter-increment: pas;
  font-size: 1.0625rem;
  color: #fff;
}
.pas-a-pas li::before {
  content: counter(pas);
  flex: 0 0 1.5rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1;
  color: #8FD3B6;
}

.apercu {
  padding: 1.5rem;
  background: var(--papier);
  color: var(--encre);
  border-radius: var(--r-l);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
}
.apercu__titre { margin: 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 560; }
.apercu__sous { margin: .15rem 0 1.1rem; font-size: .8125rem; color: var(--encre-doux); }
.apercu__ligne {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem;
  align-items: center;
  padding: .85rem 0;
  border-top: 1px solid var(--ligne);
}
.apercu__ligne b { display: block; font-size: .9375rem; }
.apercu__ligne em { font-style: normal; font-size: .75rem; color: var(--encre-doux); }
/* Les reponses arrivent l'une apres l'autre, une fois, quand la bande entre dans l'ecran. */
.js-anim .bande .apercu__ligne { opacity: 0; transform: translateY(10px); }
.js-anim .bande.vu .apercu__ligne { animation: arriver .6s var(--souple) both; animation-delay: calc(.5s + var(--d, 0) * .7s); }
.etat { justify-self: end; font-size: .75rem; font-weight: 700; padding: .15rem .5rem; border-radius: 4px; white-space: nowrap; }
.etat--oui { background: var(--vert-pale); color: var(--vert-fonce); }
.etat--commande { background: var(--safran-pale); color: var(--safran); }
.mini-wa { grid-column: 1 / -1; justify-self: start; font-size: .75rem; font-weight: 700; padding: .3rem .7rem; border-radius: 4px; background: var(--wa); color: var(--wa-encre); }

.officine {
  display: grid;
  gap: 1.5rem 3rem;
  align-items: center;
  padding-block: clamp(3rem, 2rem + 3vw, 5rem) 0;
}
@media (min-width: 50rem) { .officine { grid-template-columns: 20rem 1fr; } }
.officine__illus { width: 100%; max-width: 20rem; }
.officine h2 { margin: 0 0 .75rem; font-size: var(--t-h2); }
.officine p { margin: 0 0 1.5rem; max-width: 34rem; color: var(--encre-doux); font-size: 1.0625rem; }

/* Apparition en cascade de la une, au chargement. */
.entree { animation: monter .7s var(--souple) both; animation-delay: calc(var(--d, 0) * 80ms); }

/* --- 9. Titres de page ---------------------------------------------------- */

.page__entete { margin-bottom: 2.25rem; }
.page__entete h1 { margin: 0 0 .7rem; font-size: var(--t-h1); }
.page__entete p { margin: 0; max-width: 38rem; font-size: 1.0625rem; }
.page__entete--barre { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.page__actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

.page__entete--illustre { display: grid; align-items: center; gap: 1.25rem 2.5rem; }
.page__illus { display: block; width: min(16rem, 70%); height: auto; margin-inline: auto; order: -1; }
@media (min-width: 44rem) {
  .page__entete--illustre { grid-template-columns: minmax(0, 1fr) 15rem; }
  .page__illus { order: 0; width: 100%; }
}

.titre-liste { margin: .25rem 0 .4rem; font-size: var(--t-h1); }

/* --- 10. Fiche medicament ------------------------------------------------- */

.enveloppe--large > .chercher { max-width: 44rem; }

.fiche__entete {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .5rem 2rem;
  margin: 0 0 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--ligne);
}
.fiche__entete > :not(.fiche__visuel) { grid-column: 1; }
.fiche__entete > .fiche__titre { align-self: end; }
.fiche__entete > .fiche__sous { align-self: start; }
.fiche__titre { margin: 0; font-size: var(--t-h1); letter-spacing: -.02em; }
.fiche__sous { margin: .4rem 0 0; color: var(--encre-doux); font-size: .9375rem; line-height: 1.8; }
.fiche__sous .puce { margin-inline-start: .35rem; }
.fiche__visuel { grid-column: 2; grid-row: 1 / span 2; margin: 0; text-align: center; }
.fiche__image { display: block; width: 8rem; height: 8rem; margin-inline: auto; animation: apparaitre .6s var(--souple) .1s both; }
.fiche__visuel figcaption { max-width: 9rem; margin: .35rem auto 0; font-size: .75rem; line-height: 1.35; color: var(--encre-pale); }
@media (max-width: 30rem) {
  /* Le prix d'abord : sur un telephone de 640 px, il tombait au ras de
     l'ecran, sous le fil d'Ariane, la recherche et l'en-tete. */
  .fiche__entete { gap: .5rem 1rem; margin-bottom: 1.25rem; padding-bottom: 1.1rem; }
  .ariane--fiche { margin-bottom: .85rem; }
  .fiche__image { width: 4.75rem; height: 4.75rem; }
  .fiche__visuel figcaption { max-width: 5.5rem; font-size: .625rem; }
}

.fiche { display: grid; gap: 1.5rem; align-items: start; }
.fiche__cote, .fiche__principal { display: grid; gap: 1.5rem; min-width: 0; }
.fiche__principal > *, .fiche__cote > * { margin-top: 0; }
@media (min-width: 60rem) {
  .fiche { grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); gap: 3rem; }
  .fiche__cote { position: sticky; top: 6.5rem; }
}
/* L'ombre suit la decoupe de la vignette : un masque rognerait une box-shadow. */
.fiche__cote { filter: drop-shadow(0 1px 1px rgba(23, 32, 28, .1)) drop-shadow(0 14px 20px rgba(23, 32, 28, .08)); }

.prix {
  position: relative;
  container-type: inline-size;
  background: var(--blanc);
  padding: 1.75rem 1.6rem 1.5rem;
  -webkit-mask:
    radial-gradient(circle 5px at 50% 0, #0000 97%, #000) 0 0 / 14px 51% repeat-x,
    radial-gradient(circle 5px at 50% 100%, #0000 97%, #000) 0 100% / 14px 51% repeat-x;
  mask:
    radial-gradient(circle 5px at 50% 0, #0000 97%, #000) 0 0 / 14px 51% repeat-x,
    radial-gradient(circle 5px at 50% 100%, #0000 97%, #000) 0 100% / 14px 51% repeat-x;
}
.prix__etiquette {
  display: inline-block;
  margin: 0;
  padding: .15rem .55rem;
  background: var(--vert-fond);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 3px;
}
[dir="rtl"] .prix__etiquette { letter-spacing: 0; }
.prix__valeur {
  display: block;
  margin-block: .6rem .7rem;
  font-family: "Fraunces", Georgia, serif;
  /* Le prix tient toujours sur une ligne : sa taille est plafonnee par la
     largeur de la vignette divisee par son nombre de caracteres (--car,
     pose par la vue). « 118,00 DH » se coupait en deux dans la colonne. */
  font-size: min(var(--t-prix), calc(100cqi / (var(--car, 9) * .6)));
  white-space: nowrap;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--vert-nuit);
  animation: apparaitre .6s var(--souple) .15s both;
}
.prix__note { margin: 0; font-size: .875rem; color: var(--encre-doux); }
.prix__note + .prix__note { margin-top: .35rem; }

.prix--hopital { background: var(--papier-2); }
.prix--hopital .prix__etiquette { background: var(--encre-doux); }
.prix--hopital .prix__valeur { color: var(--encre-doux); font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem); white-space: normal; }

.economie {
  position: relative;
  background: var(--safran-pale);
  border: 1px solid var(--safran-bord);
  border-radius: var(--r-m);
  padding: 1.35rem 1.4rem;
  animation: monter .6s var(--souple) .35s both;
}
.economie__titre { margin: 0 0 .5rem; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--safran); }
[dir="rtl"] .economie__titre { letter-spacing: 0; }
.economie__nom { margin: 0; font-size: 1rem; font-weight: 700; }
.economie__chiffre {
  display: block;
  margin-block: .15rem .35rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.6rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--safran);
}
.economie p { margin: .35rem 0 0; font-size: .875rem; color: #6B4632; }
.economie a { color: var(--safran); font-weight: 700; }

.avis-retrait {
  background: var(--safran-pale);
  border-inline-start: 3px solid var(--safran);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  color: #7C2D12;
  font-size: .9375rem;
}
.avis-retrait p { margin: 0 0 .4rem; }
.avis-retrait p:last-child { margin-bottom: 0; }
.avis-retrait__titre { font-weight: 800; }

/* --- 11. Blocs ------------------------------------------------------------ */

.bloc {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--r-l);
  padding: 1.6rem 1.75rem;
  margin-top: 1.5rem;
}
.bloc > h2 { margin: 0 0 1rem; font-size: 1.5rem; }
.bloc > h2 + p { margin-top: -.4rem; }
.bloc p:last-child { margin-bottom: 0; }
.bloc > ul:not([class]) { padding-inline-start: 1.2rem; }
.bloc > ul:not([class]) li { margin-bottom: .35rem; }
.bloc > ul:not([class]) li::marker { color: var(--vert); }

.bloc__titre { margin: 1rem 0 .4rem; font-size: 1.5rem; }
.bloc--liste { padding: .35rem 1.25rem 1rem; }
.bloc--forme { padding: 1.75rem; }
.bloc--forme > h2 { margin-top: 0; }
.bloc--annonces { border: 2px solid var(--vert); }

dl { margin: 0; }
.paire {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--ligne);
  font-size: .9375rem;
}
.paire:last-child { border-bottom: 0; }
.paire dt { color: var(--encre-doux); margin: 0; }
.paire dd { margin: 0; font-weight: 650; text-align: end; font-variant-numeric: tabular-nums; }
@media (max-width: 30rem) {
  .paire { display: block; }
  .paire dt { margin-bottom: .15rem; font-size: .8125rem; }
  .paire dd { text-align: start; }
}
.total { margin-top: .25rem; border-top: 2px solid var(--encre); border-bottom: 0; }
.total dt { color: var(--encre); font-weight: 700; }
.total dd { font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; font-weight: 600; color: var(--vert); }

.avertissement {
  margin-top: 1.1rem;
  padding: .9rem 1.1rem;
  background: var(--vert-brume);
  border-inline-start: 3px solid var(--vert);
  font-size: .875rem;
  line-height: 1.55;
  color: var(--vert-fonce);
}
.avertissement--alerte { background: var(--safran-pale); border-color: var(--safran); color: #7C2D12; }

/* --- 12. Listes de medicaments -------------------------------------------- */

.liste { list-style: none; margin: 0; padding: 0; }
.liste > li { border-bottom: 1px solid var(--ligne); }
.liste > li:last-child { border-bottom: 0; }

.article {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem .5rem;
  text-decoration: none;
  color: inherit;
  transition: background var(--vite) ease;
}
.article:hover { background: var(--vert-brume); }
.article__visuel { flex: 0 0 auto; width: 2.9rem; height: 2.9rem; }
.article__corps { flex: 1 1 auto; min-width: 0; }
.article__nom { display: block; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.article__meta { display: block; margin-top: .15rem; font-size: .875rem; color: var(--encre-doux); }
/* Dosage et forme viennent du referentiel, en lettres latines. Lus de
   droite a gauche, « 500 MG COMPRIME » devenait « MG COMPRIME 500 » : la
   ligne garde son sens d'ecriture, alignee a droite comme le reste. */
[dir="rtl"] .article__meta { direction: ltr; unicode-bidi: isolate; text-align: right; }
.article__prix {
  flex: 0 0 auto;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--vert-nuit);
}
.article::after {
  content: "→";
  flex: 0 0 auto;
  color: var(--encre-pale);
  transition: transform var(--moyen) var(--souple), color var(--vite) ease;
}
[dir="rtl"] .article::after { content: "←"; }
.article:hover::after { color: var(--vert); transform: translateX(3px); }
[dir="rtl"] .article:hover::after { transform: translateX(-3px); }
/* La boite affichee, dans la liste des boites : signalee, pas un lien. */
.article[aria-current] { background: var(--vert-brume); }
.article[aria-current]::after { visibility: hidden; }
@media (max-width: 26rem) {
  .article { gap: .75rem; padding-inline: .25rem; }
  .article__visuel { width: 2.4rem; height: 2.4rem; }
  .article::after { display: none; }
}
@media (min-width: 60rem) {
  .bloc--liste .liste { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .fiche .bloc--liste .liste { grid-template-columns: 1fr; }
}

.puce {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.4;
  padding: .12rem .5rem;
  border-radius: 4px;
  vertical-align: middle;
  white-space: nowrap;
}
.puce--generique { background: var(--vert-pale); color: var(--vert-fonce); }
.puce--princeps  { background: var(--papier-2); color: var(--encre-doux); }
.puce--complement { background: var(--papier-2); color: var(--vert-fonce); border: 1px solid var(--vert-pale); }
.puce--france { background: var(--safran-pale); color: #7C2D12; }
.fr-molecules { display: flex; flex-wrap: wrap; gap: .5rem; }
.puce--enfant { background: var(--vert-brume); color: var(--vert-fonce); border: 1px solid var(--vert-pale); }

/* ---- Symptomes : « que prendre sans ordonnance ? » ---------------------- */
.suggestions .s-etiquette { font-size: .8125rem; font-weight: 700; color: var(--vert-fonce); white-space: nowrap; }

/* Carte en tete des resultats de recherche */
.carte-symptome {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
  background: var(--vert-brume); border: 1px solid var(--vert-pale); border-inline-start: 4px solid var(--vert);
  border-radius: var(--r-m); padding: .8rem 1.1rem; font-weight: 600;
  animation: monter .6s var(--souple) both;
}
.carte-symptome img { flex: 0 0 auto; width: 3.5rem; height: 3.5rem; }
.carte-symptome span { flex: 1 1 14rem; }

/* L'illustration du bandeau flotte doucement, une fois arrivee. */
.symptome-page .bandeau__illus,
.bandeau__illus[src*="/symptomes/"] {
  width: min(15rem, 62%);
  filter: drop-shadow(0 18px 24px rgba(6, 80, 60, .16));
  animation: illus-arrive 1s var(--souple) .2s both, flotter 6s ease-in-out 1.2s infinite;
}

/* Signes d'alerte */
.alertes {
  position: relative;
  background: var(--rouge-pale); color: var(--rouge);
  border: 1px solid #F3CFC9; border-inline-start: 5px solid var(--rouge); border-radius: var(--r-m);
  padding: 1.25rem 1.4rem; margin-bottom: 2.5rem;
  animation: monter .7s var(--souple) .15s both;
}
.alertes h2 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .8rem; font-size: 1.3rem; color: var(--rouge); }
.alertes__icone {
  flex: 0 0 auto; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--rouge) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v8M12 18v.5' stroke='%23fff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 70% no-repeat;
  box-shadow: 0 0 0 0 rgba(168, 40, 27, .45);
  animation: alerte-onde 2.4s ease-out 1s infinite;
}
@keyframes alerte-onde { 70% { box-shadow: 0 0 0 10px rgba(168, 40, 27, 0); } 100% { box-shadow: 0 0 0 0 rgba(168, 40, 27, 0); } }
.alertes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; color: var(--encre); }
.alertes li { position: relative; padding-inline-start: 1.25rem; animation: glisser-cote .55s var(--souple) backwards; animation-delay: calc(var(--i, 0) * 70ms + 350ms); }
.alertes li::before { content: ""; position: absolute; inset-inline-start: .15rem; top: .6em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--rouge); }
.alertes__urgence { margin: 1rem 0 0; padding-top: .8rem; border-top: 1px dashed #EBB8B0; font-weight: 700; }
.alertes__urgence a { color: var(--rouge); font-size: 1.15em; }

/* Parties de la page */
.symptome__partie { margin-bottom: 2.75rem; }
.symptome__partie > h2 { margin: 0 0 1rem; font-size: var(--t-h2); }
.symptome__chapo { margin: -.3rem 0 1.4rem; color: var(--encre-doux); max-width: 42rem; }

/* Une molecule = une carte numerotee */
.option { margin: 0 0 1.25rem; padding: 1.4rem 1.5rem 1.1rem; transition: box-shadow .35s var(--souple), border-color .35s var(--souple); }
.option:hover { box-shadow: var(--ombre-2); border-color: var(--ligne-forte); }
.option__entete { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: .9rem; }
.option__entete .bloc__num { flex: 0 0 auto; margin-top: .1rem; box-shadow: 0 0 0 5px var(--vert-pale); }
.option h3 { margin: 0 0 .3rem; font-size: 1.25rem; color: var(--vert-fonce); }
.option__note { margin: 0; color: var(--encre-doux); }
.option__compte { margin: 1rem 0 .1rem; font-size: .8125rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--encre-pale); }

/* Risques : toujours visibles, avant les precautions */
.risques {
  margin: 0 0 .75rem; padding: .9rem 1rem .8rem;
  background: var(--blanc); border: 1px solid #F3CFC9; border-inline-start: 4px solid var(--rouge);
  border-radius: var(--r-s);
}
.risques__titre { display: flex; align-items: center; gap: .55rem; margin: 0 0 .5rem; font-weight: 800; color: var(--rouge); }
.risques__icone {
  flex: 0 0 auto; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--rouge-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4 22 20H2Z' fill='none' stroke='%23A8281B' stroke-width='2.4' stroke-linejoin='round'/%3E%3Cpath d='M12 10v4M12 17v.5' stroke='%23A8281B' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 72% no-repeat;
}
.risques ul { margin: 0; padding-inline-start: 1.15rem; display: grid; gap: .35rem; }
.risques li::marker { color: var(--rouge); }
.risques__capm { margin: .7rem 0 0; padding-top: .6rem; border-top: 1px dashed #EBB8B0; font-size: .875rem; color: var(--encre-doux); }
.risques__capm a { color: var(--rouge); font-weight: 800; white-space: nowrap; }

/* Precautions : un volet qui se deplie */
.precautions { background: var(--safran-pale); color: #7C2D12; border: 1px solid var(--safran-bord); border-radius: var(--r-s); }
.precautions summary {
  display: flex; align-items: center; gap: .55rem; padding: .65rem .9rem;
  cursor: pointer; font-weight: 700; list-style: none;
}
.precautions summary::-webkit-details-marker { display: none; }
.precautions summary::after {
  content: ""; margin-inline-start: auto; width: .55rem; height: .55rem;
  border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform var(--moyen) var(--souple);
}
.precautions[open] summary::after { transform: rotate(-135deg); }
.precautions__icone {
  display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--safran); color: #fff; font-size: .8rem; font-weight: 800;
}
.precautions ul { margin: 0; padding: 0 1rem .8rem 2.6rem; }
[dir="rtl"] .precautions ul { padding: 0 2.6rem .8rem 1rem; }
.precautions li { margin-bottom: .35rem; }
.precautions[open] ul, .option__suite[open] .liste { animation: deplier .35s var(--souple); }
.option__suite summary { display: inline-flex; align-items: center; gap: .4rem; margin: .7rem 0 .2rem; cursor: pointer; font-weight: 700; color: var(--vert-fonce); }

/* Conseil du pharmacien, en bas de page */
.avis-pharmacien {
  display: grid; gap: 1rem 1.5rem; align-items: center;
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r-l);
  padding: 1.4rem 1.5rem;
}
.avis-pharmacien img { width: 8.5rem; height: auto; justify-self: center; }
.avis-pharmacien p { margin: 0 0 .5rem; }
.avis-pharmacien p:last-child { margin-bottom: 0; }
.avis-pharmacien__titre { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--vert-fonce); }
@media (min-width: 40rem) { .avis-pharmacien { grid-template-columns: auto minmax(0, 1fr); } }

/* Colonne d'appui */
.urgence {
  background: var(--vert-nuit); color: #E9EFEB; border-radius: var(--r-l);
  padding: 1.2rem 1.25rem; display: grid; gap: .6rem;
}
.urgence h2 { margin: 0 0 .2rem; font-size: 1.05rem; color: #fff; }
.urgence__appel {
  display: flex; align-items: center; gap: .9rem; padding: .6rem .8rem;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-m);
  color: #fff; text-decoration: none; transition: background var(--vite) ease, transform .3s var(--souple);
}
.urgence__appel:hover { background: rgba(255, 255, 255, .14); transform: translateX(calc(var(--sens, -1) * -3px)); }
.urgence__appel b { font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: #7CF0B8; min-width: 2.6rem; }
.urgence__appel span { font-size: .875rem; color: #BFD3C9; }
.plan-page ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: .1rem; }
.plan-page li { counter-increment: s; }
.plan-page a {
  display: flex; gap: .6rem; padding: .35rem .5rem; border-radius: var(--r-s);
  color: var(--encre); text-decoration: none; font-size: .9375rem; transition: background var(--vite) ease, color var(--vite) ease;
}
.plan-page a::before { content: counter(s); flex: 0 0 auto; font-weight: 700; color: var(--vert); min-width: 1rem; }
.plan-page a:hover { background: var(--vert-brume); color: var(--vert-fonce); }
.symptome__cote .chercher { margin: 0; }
.symptome__cote .chercher button { padding-inline: .9rem; }
@media (max-width: 59.99rem) { .symptome__cote .urgence, .symptome__cote .plan-page { display: none; } }

/* Petits liens illustres vers d'autres symptomes */
.symptomes-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.symptomes-mini a {
  display: flex; align-items: center; gap: .7rem; padding: .3rem .4rem; border-radius: var(--r-m);
  color: var(--encre); text-decoration: none; font-weight: 600; font-size: .9375rem;
  transition: background var(--vite) ease;
}
.symptomes-mini a:hover { background: var(--vert-brume); }
.symptomes-mini img { width: 2.75rem; height: 2.75rem; transition: transform .4s var(--souple); }
.symptomes-mini a:hover img { transform: rotate(-6deg) scale(1.08); }

/* Liste des symptomes : cartes illustrees */
.symptomes-grille {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
}
.symptomes-grille a {
  position: relative; display: flex; align-items: center; gap: 1rem; height: 100%;
  padding: 1rem 1.2rem; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r-l);
  color: inherit; text-decoration: none;
  transition: transform .35s var(--souple), box-shadow .35s var(--souple), border-color .35s var(--souple);
}
.symptomes-grille a:hover, .symptomes-grille a:focus-visible { transform: translateY(-3px); box-shadow: var(--ombre-2); border-color: var(--vert); }
.symptomes-grille img { flex: 0 0 auto; width: 5.25rem; height: 5.25rem; transition: transform .5s var(--souple); }
.symptomes-grille a:hover img { transform: rotate(-5deg) scale(1.07); }
.symptomes-grille__texte { display: grid; gap: .3rem; min-width: 0; }
.symptomes-grille strong { color: var(--vert-fonce); font-size: 1.05rem; line-height: 1.25; }
.symptomes-grille__texte > span { font-size: .875rem; color: var(--encre-doux); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.symptomes-grille__fleche { margin-inline-start: auto; color: var(--vert); font-weight: 700; transition: transform .3s var(--souple); }
[dir="rtl"] .symptomes-grille__fleche { transform: scaleX(-1); }
.symptomes-grille a:hover .symptomes-grille__fleche { transform: translateX(4px); }
[dir="rtl"] .symptomes-grille a:hover .symptomes-grille__fleche { transform: scaleX(-1) translateX(4px); }

/* Accueil : tuiles des symptomes */
.symptomes-une { padding-block: clamp(2.5rem, 2rem + 2.5vw, 4rem); background: var(--vert-brume); border-bottom: 1px solid var(--ligne); }
.symptomes-une__tete { max-width: 40rem; margin-bottom: 1.75rem; }
.symptomes-une__tete h2 { margin: .5rem 0 .6rem; font-size: var(--t-h2); }
.symptomes-une__tete p:last-child { margin: 0; color: var(--encre-doux); }
.symptomes-tuiles {
  list-style: none; margin: 0; padding: 0;
  /* Sept symptomes et la tuile « tous » : deux rangees de quatre, jamais
     une tuile seule sur sa ligne. */
  display: grid; gap: .85rem; grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 40rem) { .symptomes-tuiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.symptomes-tuiles a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; height: 100%;
  padding: 1.1rem .8rem; text-align: center; background: var(--blanc);
  border: 1px solid var(--ligne); border-radius: var(--r-l);
  color: var(--encre); text-decoration: none; font-weight: 650; font-size: .9375rem; line-height: 1.25;
  transition: transform .35s var(--souple), box-shadow .35s var(--souple), border-color .35s var(--souple);
}
.symptomes-tuiles a:hover, .symptomes-tuiles a:focus-visible { transform: translateY(-4px); box-shadow: var(--ombre-2); border-color: var(--vert); }
.symptomes-tuiles img { width: 5rem; height: 5rem; transition: transform .5s var(--souple); }
@media (min-width: 40rem) { .symptomes-tuiles a { flex-direction: row; justify-content: flex-start; text-align: start; padding: .9rem 1rem; } .symptomes-tuiles img { width: 4.25rem; height: 4.25rem; } }
.symptomes-tuiles a:hover img { transform: translateY(-3px) rotate(-6deg) scale(1.08); }
.symptomes-tuiles__tous { background: var(--vert-fond) !important; border-color: var(--vert-fond) !important; color: #fff !important; }
.symptomes-tuiles__plus {
  flex: 0 0 auto; display: grid; place-items: center; width: 4.25rem; height: 4.25rem; border-radius: 50%;
  background: rgba(255, 255, 255, .14); font-family: var(--serif); font-size: 1.5rem;
}

/* Cascades a l'apparition */
.js-anim [data-reveler]:not(.vu) .symptomes-grille li,
.js-anim [data-reveler]:not(.vu) .symptomes-tuiles li { opacity: 0; }
.js-anim .vu .symptomes-grille li,
.js-anim .vu .symptomes-tuiles li { animation: surgir-doux .6s var(--souple) backwards; animation-delay: calc(var(--i, 0) * 55ms + 150ms); }

@media (prefers-reduced-motion: reduce) {
  .alertes, .alertes li, .alertes__icone, .carte-symptome,
  .bandeau__illus[src*="/symptomes/"],
  .precautions[open] ul, .option__suite[open] .liste { animation: none; }
}
.puce--moinscher { background: var(--safran); color: #fff; }
.puce--demo      { background: var(--safran-pale); color: #7C2D12; border: 1px solid var(--safran-bord); }

/* --- 13. Boutons ---------------------------------------------------------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  border: 1.5px solid var(--vert);
  border-radius: var(--r-s);
  padding: .8rem 1.35rem;
  cursor: pointer;
  background: var(--vert-fond);
  color: #fff;
  transition: background var(--vite) ease, border-color var(--vite) ease, color var(--vite) ease;
}
.bouton::after {
  content: "→";
  transition: transform var(--moyen) var(--souple);
}
[dir="rtl"] .bouton::after { content: "←"; }
.bouton:hover { background: var(--vert-fonce); border-color: var(--vert-fonce); color: #fff; }
.bouton:hover::after { transform: translateX(3px); }
[dir="rtl"] .bouton:hover::after { transform: translateX(-3px); }
.bouton:active { transform: translateY(1px); }
/* Les boutons d'un formulaire valident, ils ne menent nulle part : pas de fleche. */
button.bouton::after, .consentement .bouton::after { display: none; }

.bouton--fantome { background: transparent; color: var(--encre); border-color: var(--encre); }
.bouton--fantome:hover { background: var(--encre); border-color: var(--encre); color: var(--papier); }
.bouton--large { display: flex; width: 100%; }
.bouton--oui { background: var(--vert-fond); }
.bouton--clair { background: var(--papier); border-color: var(--papier); color: var(--vert-nuit); }
.bouton--clair:hover { background: #fff; border-color: #fff; color: var(--vert-nuit); }

/* --- 14. Formulaires ------------------------------------------------------ */

.formulaire { margin: 0; }
.champ { margin-bottom: 1.15rem; }
.champ label { display: block; font-size: .875rem; font-weight: 650; margin-bottom: .4rem; }
.champ input,
.champ select,
.champ textarea,
.demande__mot {
  width: 100%;
  font: inherit;
  padding: .75rem .9rem;
  border: 1.5px solid var(--ligne-forte);
  border-radius: var(--r-s);
  background: var(--blanc);
  color: var(--encre);
  transition: border-color var(--vite) ease, box-shadow var(--moyen) var(--souple);
}
.champ select {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--encre-doux) 50%), linear-gradient(135deg, var(--encre-doux) 50%, transparent 50%);
  background-position: calc(100% - 1.2rem) 55%, calc(100% - .85rem) 55%;
  background-size: .35rem .35rem, .35rem .35rem;
  background-repeat: no-repeat;
}
[dir="rtl"] .champ select { background-position: 1.2rem 55%, .85rem 55%; }
.champ input:hover, .champ select:hover, .champ textarea:hover { border-color: var(--encre-pale); }
.champ input:focus, .champ select:focus, .champ textarea:focus, .demande__mot:focus {
  border-color: var(--vert);
  outline: none;
  box-shadow: 0 0 0 4px rgba(11, 107, 79, .12);
}
.champ small, .champ__aide { display: block; margin: .35rem 0 0; font-size: .75rem; color: var(--encre-doux); }
.champ--case { display: flex; align-items: center; gap: .6rem; }
.champ--case input { width: 1.15rem; height: 1.15rem; accent-color: var(--vert); }
.champ--case label { margin: 0; font-weight: 500; }

.grille-2 { display: grid; gap: 0 1.25rem; }
@media (min-width: 620px) { .grille-2 { grid-template-columns: 1fr 1fr; } }

.formulaire--ligne { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; }
.formulaire--ligne .champ { flex: 1 1 14rem; margin-bottom: 0; }

/* Champ piege a robots : invisible sans decaler la page (un decalage vers la
   gauche deborde en arabe, ou la gauche est la fin de la ligne). */
.piege { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.portee { border: 0; margin: 0 0 1.15rem; padding: 0; min-width: 0; }
.portee legend { font-weight: 650; font-size: .875rem; margin-bottom: .5rem; padding: 0; }
.portee__choix {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  border: 1.5px solid var(--ligne-forte);
  border-radius: var(--r-s);
  padding: .9rem 1rem;
  margin-bottom: .6rem;
  cursor: pointer;
  background: var(--blanc);
  transition: border-color var(--vite) ease, background var(--vite) ease;
}
.portee__choix:hover { border-color: var(--encre-pale); }
.portee__choix:has(input:checked) { border-color: var(--vert); background: var(--vert-brume); }
.portee__choix input { margin-top: .3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--vert); }
.portee__choix > span { display: grid; gap: .15rem; }

.position { margin: .35rem 0 0; font-size: .8125rem; min-height: 1.2em; }
.position--ok { color: var(--vert-fonce); font-weight: 600; }
.position--refus { color: var(--safran); }
.position--attente { color: var(--encre-doux); }
.position--attente::before {
  content: "";
  display: inline-block;
  width: .8rem;
  height: .8rem;
  margin-inline-end: .4rem;
  vertical-align: -.1rem;
  border: 2px solid var(--vert-pale);
  border-top-color: var(--vert);
  border-radius: 50%;
  animation: tourner .8s linear infinite;
}
.position-officine { border: 1.5px dashed var(--ligne-forte); border-radius: var(--r-m); padding: 1rem 1.1rem; margin: 0 0 1.15rem; min-width: 0; }
.position-officine legend { font-weight: 650; padding: 0 .35rem; }

/* --- 15. Messages et etats ----------------------------------------------- */

.message {
  border-radius: var(--r-s);
  padding: .9rem 1.1rem;
  margin-bottom: 1.5rem;
  font-size: .9375rem;
  font-weight: 600;
  border-inline-start: 3px solid currentColor;
  animation: glisser .4s var(--souple) both;
}
.message--succes { background: var(--vert-brume); color: var(--vert-fonce); }
.message--erreur { background: var(--rouge-pale); color: var(--rouge); }

.vide {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--encre-doux);
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--r-l);
  margin-top: 1rem;
}
.vide h2 { margin: 0 0 .7rem; font-size: var(--t-h2); }
.vide p { margin: 0 auto 1.1rem; max-width: 30rem; }
.vide__illus { display: block; width: min(14rem, 75%); height: auto; margin: 0 auto 1.5rem; }

.attente {
  background: var(--blanc);
  border: 1.5px dashed var(--ligne-forte);
  border-radius: var(--r-l);
  padding: 2.25rem 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  color: var(--encre-doux);
}
.attente::before {
  /* Trois points qui patientent */
  content: "";
  display: block;
  width: 2.6rem;
  height: .6rem;
  margin: 0 auto 1rem;
  background:
    radial-gradient(circle, var(--vert) 45%, transparent 50%) 0 50% / .6rem .6rem no-repeat,
    radial-gradient(circle, var(--vert) 45%, transparent 50%) 50% 50% / .6rem .6rem no-repeat,
    radial-gradient(circle, var(--vert) 45%, transparent 50%) 100% 50% / .6rem .6rem no-repeat;
  animation: patienter 1.4s ease-in-out infinite;
}
.attente__titre { margin: 0 0 .4rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 560; color: var(--encre); }
.attente p:last-child { margin-bottom: 0; }

.bientot {
  background: var(--vert-nuit);
  color: #DDEAE3;
  border-radius: var(--r-l);
  padding: 2rem 1.75rem;
  margin-top: 1.5rem;
}
.bientot h2 { margin: 0 0 .6rem; font-size: 1.6rem; color: #fff; }
.bientot p { margin: 0 0 1rem; color: #BFD3C9; }
.bientot .bouton { background: var(--papier); border-color: var(--papier); color: var(--vert-nuit); }
.marqueur {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 4px;
  padding: .2rem .6rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Etapes numerotees en chiffres de titrage, reliees par des filets. */
.etapes { list-style: none; margin: 1.1rem 0 0; padding: 0; border-top: 1px solid var(--ligne); }
.etapes li {
  display: flex;
  gap: 1.1rem;
  align-items: baseline;
  padding: .95rem 0;
  border-bottom: 1px solid var(--ligne);
  font-size: .9375rem;
}
.etapes li:last-child { border-bottom: 0; }
.etapes .num {
  flex: 0 0 1.4rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--vert);
}
.bientot .etapes { border-color: rgba(255, 255, 255, .14); }
.bientot .etapes li { color: #fff; border-color: rgba(255, 255, 255, .14); }
.bientot .etapes .num { color: #8FD3B6; }

/* --- 16. Index, villes, gardes -------------------------------------------- */

.alphabet { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 2rem; padding: 0; list-style: none; border-top: 1px solid var(--ligne); border-inline-start: 1px solid var(--ligne); }
.alphabet a {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-inline-end: 1px solid var(--ligne);
  border-bottom: 1px solid var(--ligne);
  text-decoration: none;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--encre-doux);
  text-transform: uppercase;
  transition: background var(--vite) ease, color var(--vite) ease;
}
.alphabet a:hover { background: var(--blanc); color: var(--encre); }
.alphabet a[aria-current="page"] { background: var(--vert-fond); color: #fff; }

.villes { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--encre); }
@media (min-width: 560px) { .villes { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; } }
@media (min-width: 60rem) { .villes { grid-template-columns: repeat(3, 1fr); } }
.villes a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--ligne);
  text-decoration: none;
  color: var(--encre);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 560;
}
.villes a:hover { color: var(--vert); }
.villes span { font-family: var(--sans); font-size: .8125rem; font-weight: 500; color: var(--encre-doux); }

.garde { padding: 1.1rem .25rem; border-bottom: 1px solid var(--ligne); }
.garde:last-child { border-bottom: 0; }
.garde__nom { font-weight: 700; margin: 0 0 .2rem; }
.garde__meta { margin: 0; font-size: .875rem; color: var(--encre-doux); }

/* Boutons de contact d'une officine : WhatsApp en tete. */
.garde__actions { margin-top: .8rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.garde__actions a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8125rem;
  font-weight: 650;
  text-decoration: none;
  border: 1.5px solid var(--ligne-forte);
  border-radius: var(--r-s);
  padding: .45rem .85rem;
  color: var(--encre);
  background: var(--blanc);
  transition: border-color var(--vite) ease, background var(--vite) ease;
}
.garde__actions a:hover { border-color: var(--encre); }
.contact--appel { background: var(--vert-fond) !important; color: #fff !important; border-color: var(--vert-fond) !important; }
/* Vert WhatsApp en fond, texte fonce : le blanc sur #25D366 ne se lit pas. */
.contact--whatsapp { background: var(--wa) !important; border-color: var(--wa) !important; color: var(--wa-encre) !important; font-weight: 750 !important; }
.garde__actions a.contact--whatsapp:hover { background: #1FC45C !important; border-color: #1FC45C !important; }

.distance {
  display: inline-block;
  margin-inline-start: .4rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--vert-fonce);
  background: var(--vert-pale);
  border-radius: 4px;
  padding: .05rem .45rem;
  vertical-align: middle;
}

/* --- 17. Suivi d'une demande ---------------------------------------------- */

.reponse { padding: 1.1rem .25rem; animation: monter .45s var(--souple) both; }
.liste > .reponse:nth-child(2) { animation-delay: .06s; }
.liste > .reponse:nth-child(n+3) { animation-delay: .12s; }
.reponse__nom { margin: 0 0 .2rem; font-weight: 700; }
.reponse__meta { margin: 0; font-size: .875rem; color: var(--encre-doux); }
.reponse__mot { margin: .6rem 0 0; font-family: var(--serif); font-size: 1rem; color: var(--encre); }
.reponse__mot::before { content: "« "; }
.reponse__mot::after { content: " »"; }
.reponse--oui { border-inline-start: 3px solid var(--vert); padding-inline-start: 1rem; }
@media (min-width: 60rem) { .bloc--liste .liste > .reponse { border-bottom: 0; } }

.annonce-faite { margin: .75rem 0 0; font-size: .875rem; font-weight: 650; color: var(--vert-fonce); }

.lien-suivi {
  background: var(--papier);
  border: 1.5px dashed var(--ligne-forte);
  border-radius: var(--r-s);
  padding: .75rem .9rem;
  margin: .75rem 0 0;
  overflow-wrap: anywhere;
}
.lien-suivi code { font-size: .8125rem; font-family: var(--mono); color: var(--vert-fonce); }

/* --- 18. Espace pharmacien ------------------------------------------------ */

.onglets {
  display: flex;
  gap: 1.75rem;
  margin: 0 0 2rem;
  border-bottom: 1px solid var(--ligne);
  overflow-x: auto;
  scrollbar-width: none;
}
.onglets::-webkit-scrollbar { display: none; }
.onglets a {
  flex: 0 0 auto;
  padding: .7rem 0;
  white-space: nowrap;
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 650;
  color: var(--encre-doux);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--vite) ease, border-color var(--vite) ease;
}
.onglets a:hover { color: var(--encre); }
.onglets a[aria-current="page"] { color: var(--encre); border-bottom-color: var(--vert); }

.plan {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  padding: .15rem .55rem;
  background: var(--papier-2);
  color: var(--encre-doux);
}
.plan--essentiel { background: var(--vert-pale); color: var(--vert-fonce); }
.plan--pro { background: var(--vert-nuit); color: #fff; }

.nouveau {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  background: var(--safran-pale);
  border-inline-start: 3px solid var(--safran);
  padding: .9rem 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 650;
  color: #7C2D12;
  animation: glisser .4s var(--souple) both;
}
.nouveau[hidden] { display: none; }

.cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 2rem;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--r-l);
  overflow: hidden;
}
.carte { padding: 1.2rem 1.35rem; border-inline-end: 1px solid var(--ligne); }
.carte:last-child { border-inline-end: 0; }
.carte b {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums lining-nums;
}
.carte span { font-size: .8125rem; color: var(--encre-doux); }
.cartes--compactes { margin-bottom: .75rem; }
.cartes--compactes .carte b { font-size: 1.7rem; }
.carte--alerte b { color: var(--safran); }

.liste--demandes > li { padding-block: .2rem; }
.demande { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem .25rem; flex-wrap: wrap; }
.demande__corps { min-width: 0; flex: 1 1 12rem; }
.demande__nom { margin: 0 0 .15rem; font-weight: 700; overflow-wrap: anywhere; }
.demande__meta { margin: 0; font-size: .8125rem; color: var(--encre-doux); }
.demande__actions { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0; }
.demande__actions .bouton { padding: .6rem 1rem; font-size: .875rem; }
.demande--pile { align-items: flex-start; }
.demande__reponse { display: grid; gap: .6rem; flex: 1 1 18rem; margin: 0; }
.demande__mot { font-size: .875rem; padding: .55rem .75rem; }

.historique { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .55rem; }
.historique li { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .875rem; }
.historique__nom { font-weight: 700; }

.offre { background: var(--vert-brume); border-inline-start: 3px solid var(--vert); padding: 1.2rem 1.3rem; margin-top: 1rem; }
.offre__titre { margin: 0 0 .35rem; font-weight: 700; }
.offre p:last-of-type { margin-bottom: .9rem; }

.valeur { background: var(--vert-nuit); color: #DDEAE3; border-radius: var(--r-l); padding: 1.5rem 1.6rem; margin-top: 1.5rem; }
.valeur p { margin: 0; }
.valeur__chiffre { font-family: var(--serif); font-size: 1.5rem; font-weight: 560; color: #fff !important; margin-bottom: .4rem !important; }

.plans { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 1.5rem; }
.plan-carte { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r-l); padding: 1.6rem 1.5rem; min-width: 0; }
.plan-carte--vedette { border: 2px solid var(--vert); }
.plan-carte h2 { margin: 0; font-size: 1.5rem; }
.plan-carte__prix { margin: .4rem 0 0; }
.plan-carte__prix b { font-family: "Fraunces", Georgia, serif; font-size: 2.2rem; font-weight: 600; letter-spacing: -.02em; }
.tableau--plans td.oui, .tableau--plans td.non { text-align: center; font-weight: 800; }
.tableau--plans td.oui { color: var(--vert); }
.tableau--plans td.non { color: var(--encre-pale); }
.tarifs { padding-inline-start: 1.2rem; }
.tarifs li { margin-bottom: .45rem; }
.tarifs li::marker { color: var(--vert); }

/* --- 19. Pages de texte --------------------------------------------------- */

.prose { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r-l); padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); }
.prose h1 { margin-top: 0; font-size: var(--t-h1); }
.prose h2 { margin-top: 2.25rem; font-size: 1.5rem; }
.prose p, .prose li { max-width: 40rem; font-size: 1.0625rem; }
.prose ul { padding-inline-start: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--vert); }

/* --- 20. Pied de page ----------------------------------------------------- */

.pied {
  margin-top: 0;
  background: var(--vert-nuit);
  color: #BFD3C9;
  font-size: .9rem;
  padding-block: 4rem 2rem;
}
.pied__cols { display: grid; gap: 2.5rem; }
@media (min-width: 700px) { .pied__cols { grid-template-columns: 1.6fr 1fr 1fr; } }
.pied__marque { display: flex; align-items: center; gap: .75rem; margin: 0 0 1rem; }
.pied__marque img { width: 2.5rem; height: 2.5rem; border-radius: 10px; }
.pied__marque b { font-family: "Fraunces", Georgia, serif; font-size: 1.9rem; font-weight: 560; letter-spacing: -.02em; color: #fff; }
.pied h3 { margin: 0 0 1rem; font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8FD3B6; }
[dir="rtl"] .pied h3 { letter-spacing: 0; font-size: .875rem; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.pied a { color: #E6EFEA; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied__accroche { margin: 0; max-width: 24rem; }
.pied__lien { margin: 1rem 0 0; }
.pied__lien a { color: #8FD3B6; font-weight: 650; }
/* Le filet est dessine dans la marge interieure, pour s'aligner sur le texte
   et non deborder de la largeur des colonnes. */
.pied__legal { position: relative; margin-top: 3rem; padding-top: 1.5rem; font-size: .8125rem; color: #93AFA3; }
.pied__legal::before { content: ""; position: absolute; top: 0; inset-inline: var(--pas); border-top: 1px solid rgba(255, 255, 255, .12); }
.pied__legal p { margin: 0 0 .45rem; }
.pied .muet { color: #7C998D; }

/* --- 21. Administration --------------------------------------------------- */

.admin-entete { position: sticky; top: 0; z-index: 40; background: var(--vert-nuit); color: #fff; padding-block: .6rem; }
.admin-entete a { color: #C8DDD3; text-decoration: none; font-weight: 600; font-size: .875rem; }
.admin-entete a:hover { color: #fff; }
.admin-nav { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; }
.admin-nav ul { display: flex; flex-wrap: wrap; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.admin-nav li a { display: inline-block; padding: .4rem .75rem; border-radius: var(--r-s); }
.admin-nav li a:hover { background: rgba(255, 255, 255, .08); }
.admin-nav li a[aria-current="page"] { background: rgba(255, 255, 255, .14); color: #fff; }

.tableau { width: 100%; border-collapse: collapse; font-size: .875rem; background: var(--blanc); }
.tableau th, .tableau td { text-align: start; padding: .75rem .85rem; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.tableau th { background: var(--papier); color: var(--encre-doux); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tableau tbody tr:hover { background: var(--vert-brume); }
.tableau tbody tr:last-child td { border-bottom: 0; }
.tableau .num { text-align: end; font-variant-numeric: tabular-nums; }
.defilant { overflow-x: auto; border: 1px solid var(--ligne); border-radius: var(--r-l); background: var(--blanc); }

.connexion { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: var(--papier); }
.connexion__boite {
  width: 100%;
  max-width: 25rem;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-top: 4px solid var(--vert);
  border-radius: var(--r-l);
  padding: 2.25rem 1.9rem;
  box-shadow: var(--ombre-2);
  animation: monter .5s var(--souple) both;
}
.connexion__boite img { height: 40px; margin-bottom: 1.4rem; }

/* --- 22. Consentement et publicite --------------------------------------- */

/* Ancre en bas, sans bloquer la navigation : un bandeau qui emprisonne le
   visiteur ne recueille pas un consentement, il l'extorque. Refuser reste
   aussi visible qu'accepter. */
.consentement {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  background: var(--blanc);
  border-top: 1px solid var(--ligne-forte);
  box-shadow: 0 -10px 30px -20px rgba(23, 32, 28, .4);
  padding: 1rem 0;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  animation: remonter .5s var(--souple) .3s both;
}
.consentement[hidden] { display: none; }
.consentement__corps { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.consentement__texte { margin: 0; flex: 1 1 22rem; font-size: .8125rem; line-height: 1.55; color: var(--encre-doux); }
.consentement__texte strong { color: var(--encre); }
.consentement__boutons { display: flex; gap: .5rem; flex-shrink: 0; }
.consentement .bouton { padding: .6rem 1.2rem; }
@media (max-width: 34rem) {
  .consentement__boutons { width: 100%; }
  .consentement__boutons .bouton { flex: 1; }
}

/* La place est reservee avant que l'annonce arrive : sans hauteur minimale,
   le contenu saute sous les doigts de quelqu'un qui lisait un prix. */
.annonce { display: block; min-height: 100px; margin: 2rem 0; overflow: hidden; }
.annonce .adsbygoogle { display: block; width: 100%; }

/* --- 23. Utilitaires ------------------------------------------------------ */

.invisible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Masquage accessible, jamais par decalage hors ecran (voir .piege). */
.lien-evitement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lien-evitement:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  inset-inline-start: .75rem;
  top: .75rem;
  z-index: 100;
  background: var(--encre);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: var(--r-s);
}
.entre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.muet { color: var(--encre-doux); }
.petit { font-size: .875rem; }
.mt { margin-top: 1.5rem; }
.mb { margin-bottom: 1.5rem; }
.mt-petit { margin-top: .75rem; }
.lien-discret { font-size: .8125rem; font-weight: 650; color: var(--encre-doux); text-decoration: none; }
.lien-discret:hover { color: var(--encre); text-decoration: underline; }

/* --- 24. Animations ------------------------------------------------------- */

@keyframes monter     { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
/* Entree des pages au chargement : un leger glissement, sans fondu. Partir
   d'une opacite nulle cachait le contenu tant que les scripts occupaient le
   telephone : Lighthouse mesurait le prix affiche a 4,2 s (LCP), alors que
   la page etait prete bien avant. */
@keyframes entrer     { from { transform: translateY(12px); } to { transform: none; } }
@keyframes apparaitre { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes remonter   { from { transform: translateY(100%); } to { transform: none; } }
@keyframes glisser    { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes deplier    { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes arriver    { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes tourner    { to { transform: rotate(360deg); } }
@keyframes patienter  { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
/* L'etiquette se pose : elle arrive d'un peu plus haut, plus penchee. */
@keyframes coller {
  from { opacity: 0; transform: translateY(-14px) rotate(-7deg); }
  to   { opacity: 1; transform: rotate(-2.5deg); }
}
/* Le tampon frappe : grand et transparent, puis net. */
@keyframes tamponner {
  from { opacity: 0; transform: scale(1.8) rotate(14deg); }
  to   { opacity: 1; transform: scale(1) rotate(9deg); }
}

/* Contenu des pages interieures : apparition douce au chargement. Les
   elements qui apparaissent au defilement en sont exclus : une animation
   l'emporte sur toute autre declaration, et les garderait visibles. */
main > .enveloppe > *:not([data-reveler]) { animation: entrer .5s var(--souple) both; }
main > .enveloppe > *:nth-child(2) { animation-delay: .04s; }
main > .enveloppe > *:nth-child(3) { animation-delay: .08s; }
main > .enveloppe > *:nth-child(n+4) { animation-delay: .12s; }
/* La recherche reste au-dessus des blocs qui la suivent : l'animation cree
   un contexte d'empilement, et les suggestions passeraient dessous. */
main > .enveloppe > .chercher { position: relative; z-index: 20; }

/* Apparition au defilement, posee par le script seulement si le visiteur
   accepte les animations : sans script, tout est visible. */
.js-anim [data-reveler] { transition: opacity .7s var(--souple), transform .7s var(--souple); }
.js-anim [data-reveler]:not(.vu) { opacity: 0; transform: translateY(18px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js-anim .bande .apercu__ligne { opacity: 1; transform: none; }
}

/* --- 25. Doigts ----------------------------------------------------------- */

/* Au doigt, une cible de moins de 44 px se rate une fois sur trois. */
@media (pointer: coarse) {
  .nav a, .exemples a, .onglets a, .garde__actions a { min-height: 44px; display: inline-flex; align-items: center; }
  .article { min-height: 56px; }
  .bouton { min-height: 48px; }
  .demande__actions { gap: .75rem; }
  .demande__actions .bouton { min-height: 44px; }
}
@media (max-width: 26rem) {
  .bloc { padding: 1.25rem 1.1rem; }
  .bloc--liste { padding: .25rem .75rem .75rem; }
  .bloc--forme { padding: 1.35rem 1.1rem; }
  .bientot { padding: 1.5rem 1.2rem; }
  .demande__actions { width: 100%; }
  .demande__actions .bouton { flex: 1 1 auto; }
  .page__entete--barre { flex-direction: column; }
  .carte { padding: 1rem; }
}

/* --- 26. Impression ------------------------------------------------------- */

/* Une fiche de prix se montre au comptoir : sur papier, seul le contenu. */
@media print {
  .entete, .pied, .consentement, .annonce, .chercher, .appel, .bientot, .bande,
  .lien-evitement, .bandeau-demo, .page__illus, .officine, .fiche__visuel { display: none !important; }
  body { background: #fff; }
  * { animation: none !important; }
  .fiche { display: block; }
  .fiche__cote { filter: none; }
  .prix { -webkit-mask: none; mask: none; border: 1px solid #999; }
  .bloc, .economie { border: 1px solid #999; break-inside: avoid; }
}

/* --- 27. Appel a l'action de la fiche ------------------------------------- */

.appel {
  margin-top: 1.5rem;
  padding: 1.75rem;
  background: var(--vert-nuit);
  color: #DDEAE3;
  border-radius: var(--r-l);
}
.appel h2 { margin: 0 0 .5rem; font-size: 1.6rem; color: #fff; }
.appel p { margin: 0 0 1.35rem; color: #BFD3C9; max-width: 36rem; }
.appel .bouton { background: var(--papier); border-color: var(--papier); color: var(--vert-nuit); }
.appel .bouton:hover { background: #fff; border-color: #fff; }

/* ==========================================================================
   28. Mise en mouvement
   --------------------------------------------------------------------------
   Tout ce qui suit ne deplace que des calques (transform, opacity) : le
   navigateur les anime sans recalculer la page, meme sur un telephone
   modeste. Tout s'eteint quand le systeme demande de reduire les
   mouvements (voir la fin de cette section), et rien n'est masque sans
   JavaScript.
   ========================================================================== */

/* --- Transitions entre les pages ------------------------------------------
   Le navigateur fond l'ancienne page dans la nouvelle, sans ecran blanc.
   L'en-tete porte son propre nom : il reste en place pendant que le contenu
   change. Les navigateurs qui ne connaissent pas cette regle l'ignorent. */
@view-transition { navigation: auto; }
.entete { view-transition-name: entete; }
::view-transition-old(root) { animation: .22s ease both page-sortir; }
::view-transition-new(root) { animation: .38s var(--souple) both page-entrer; }
@keyframes page-sortir { to { opacity: 0; transform: translateY(-6px); } }
@keyframes page-entrer { from { opacity: 0; transform: translateY(10px); } }

/* --- En-tete : se retire quand on descend, revient quand on remonte ------ */
.entete { transition: transform .4s var(--souple), box-shadow var(--moyen) ease; }
.entete.cache { transform: translateY(-100%); }
.entete:focus-within { transform: none; }

/* Barre de progression de lecture, sous l'en-tete */
.progression { position: absolute; inset-inline: 0; bottom: -1px; height: 2px; overflow: hidden; pointer-events: none; }
.progression span {
  display: block;
  height: 100%;
  background: var(--vert-fond);
  transform: scaleX(var(--progression, 0));
  transform-origin: left;
  will-change: transform;
}
[dir="rtl"] .progression span { transform-origin: right; }

/* --- Titres mot a mot ------------------------------------------------------
   Chaque mot remonte depuis sous une ligne invisible, comme au montage d'un
   generique. La marge basse laisse passer les jambages des lettres. */
.mots-anim .mot {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .1em;
  margin-bottom: -.1em;
}
[dir="rtl"] .mots-anim .mot { padding-block: .12em .3em; margin-block: -.12em -.3em; }
.mots-anim .mot > span {
  display: inline-block;
  animation: mot-monter .7s var(--souple) both;
  animation-delay: calc(var(--i, 0) * 45ms + 60ms);
}
/* Le mot se releve en basculant vers le lecteur, charniere en bas. */
@keyframes mot-monter { from { transform: perspective(600px) translateY(100%) rotateX(-80deg); } to { transform: none; } }
/* Dans une section qui attend d'entrer dans l'ecran, les mots attendent aussi. */
.js-anim [data-reveler]:not(.vu) .mots-anim .mot > span { animation: none; transform: translateY(108%); }

/* --- Numero de chapitre : le filet se trace --------------------------------*/
.chapitre__num { position: relative; border-top: 0; }
.chapitre__num::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 2px;
  background: currentColor;
  transform-origin: left;
  transition: transform 1s var(--souple) .1s;
}
[dir="rtl"] .chapitre__num::before { transform-origin: right; }
.js-anim [data-reveler]:not(.vu) .chapitre__num::before { transform: scaleX(0); }

/* --- Cascades a l'entree d'une section ----------------------------------- */
.js-anim [data-reveler]:not(.vu) .definitions > div,
.js-anim [data-reveler]:not(.vu) .formes-grille li,
.js-anim [data-reveler]:not(.vu) .pas-a-pas li { opacity: 0; }

.js-anim .vu .definitions > div { animation: glisser-cote .8s var(--souple) both; animation-delay: calc(var(--i, 0) * 110ms + 250ms); }
.js-anim .vu .formes-grille li { animation: surgir-doux .7s var(--souple) backwards; animation-delay: calc(var(--i, 0) * 60ms + 250ms); }
.js-anim .vu .pas-a-pas li { animation: glisser-cote .7s var(--souple) both; }
.js-anim .vu .pas-a-pas li:nth-child(2) { animation-delay: .15s; }
.js-anim .vu .pas-a-pas li:nth-child(3) { animation-delay: .3s; }
@keyframes glisser-cote { from { opacity: 0; transform: translateX(calc(var(--sens, -1) * 18px)); } to { opacity: 1; transform: none; } }
[dir="rtl"] { --sens: 1; }
@keyframes surgir-doux { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }

/* Les definitions : le terme se souligne au survol. */
.definitions dt { position: relative; justify-self: start; }
.definitions dt::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -.15rem;
  height: 2px;
  background: var(--vert-fond);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--souple);
}
[dir="rtl"] .definitions dt::after { transform-origin: right; }
.definitions > div:hover dt::after { transform: scaleX(1); }

/* --- Grille des formes : halo qui suit la souris ------------------------- */
.formes-grille { position: relative; isolation: isolate; }
.formes-grille::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(220px circle at var(--hx, 50%) var(--hy, 50%), rgba(11, 166, 120, .16), transparent 65%);
  opacity: 0;
  transition: opacity .35s ease;
}
.formes-grille:hover::before { opacity: 1; }
/* Une lueur verte, pas un voile blanc : sur le fond sombre, le blanc a 55 %
   faisait une case grise ou le nombre de medicaments ne se lisait plus. */
.formes-grille li:hover { background: rgba(52, 227, 164, .07); box-shadow: inset 0 0 0 1px rgba(52, 227, 164, .16); }
.formes-grille li:hover img { transform: translateY(-5px) rotate(-6deg) scale(1.06); }

/* --- La vignette : inclinaison 3D et reflet -------------------------------
   Le script donne --rx et --ry selon la position de la souris ; le reflet
   glisse avec. L'animation de pose ne s'applique qu'avant son depart
   (backwards) : ensuite, la transformation declaree reprend la main. */
.vignette {
  --pente: -2.5deg;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(var(--pente));
  transition: transform .5s var(--souple);
  animation: coller-3d .9s var(--souple) .35s backwards;
  will-change: transform;
}
[dir="rtl"] .vignette { --pente: 2.5deg; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(var(--pente)); }
.vignette-scene.suit .vignette { transition: transform .12s linear; }
@keyframes coller-3d {
  from { opacity: 0; transform: perspective(900px) translateY(-22px) rotateX(18deg) rotate(-9deg); }
  to   { opacity: 1; transform: perspective(900px) rotate(var(--pente)); }
}
/* Reflet de lumiere sur l'etiquette glacee : un premier passage tout seul,
   juste apres la pose, puis il suit la souris. */
.vignette::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 45%, transparent 60%);
  transform: translateX(var(--reflet, 80%));
  transition: transform .5s var(--souple);
  animation: reflet 1.4s var(--souple) 1.4s both;
}
@keyframes reflet { from { transform: translateX(-80%); } to { transform: translateX(80%); } }
.vignette-scene.suit .vignette::after { animation: none; }

/* La trame de la boite glisse a peine, en sens inverse : effet de profondeur. */
.vignette-scene::before {
  transform: translate(var(--fx, 0px), var(--fy, 0px));
  transition: transform .5s var(--souple);
}

/* --- Bande disponibilite : la conversation --------------------------------*/
.apercu { display: flex; flex-direction: column; }
.apercu__frappe {
  order: 9;
  display: inline-flex;
  align-self: flex-start;
  gap: 4px;
  margin: .9rem 0 0;
  padding: .55rem .75rem;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 14px 14px 14px 4px;
}
[dir="rtl"] .apercu__frappe { border-radius: 14px 14px 4px 14px; }
.apercu__frappe i { width: 6px; height: 6px; border-radius: 50%; background: var(--encre-pale); animation: sauter 1.2s ease-in-out infinite; }
.apercu__frappe i:nth-child(2) { animation-delay: .15s; }
.apercu__frappe i:nth-child(3) { animation-delay: .3s; }
@keyframes sauter { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.js-anim .bande.vu .mini-wa { animation: onde-wa 1.8s ease-out 2.6s 2; }
@keyframes onde-wa { from { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } to { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); } }

/* --- Boutons : aimant et onde ---------------------------------------------*/
.bouton { position: relative; overflow: hidden; }
.bouton.aimante { transition: transform .18s ease-out, background var(--vite) ease, border-color var(--vite) ease, color var(--vite) ease; }
.onde-clic {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .28;
  pointer-events: none;
  animation: onde-clic .6s ease-out forwards;
}
@keyframes onde-clic { to { transform: scale(28); opacity: 0; } }

/* --- Listes : cascade a l'affichage --------------------------------------- */
.bloc--liste .liste > li { animation: entrer .55s var(--souple) both; }
.bloc--liste .liste > li:nth-child(1)  { animation-delay: .12s; }
.bloc--liste .liste > li:nth-child(2)  { animation-delay: .16s; }
.bloc--liste .liste > li:nth-child(3)  { animation-delay: .2s; }
.bloc--liste .liste > li:nth-child(4)  { animation-delay: .24s; }
.bloc--liste .liste > li:nth-child(5)  { animation-delay: .28s; }
.bloc--liste .liste > li:nth-child(6)  { animation-delay: .32s; }
.bloc--liste .liste > li:nth-child(7)  { animation-delay: .36s; }
.bloc--liste .liste > li:nth-child(8)  { animation-delay: .4s; }
.bloc--liste .liste > li:nth-child(n+9) { animation-delay: .44s; }
.article__visuel { transition: transform .45s var(--souple); }
.article:hover .article__visuel { transform: rotate(-8deg) scale(1.1); }

/* La puce « moins cher » attire l'oeil d'un reflet, deux fois. */
.puce--moinscher { position: relative; overflow: hidden; }
.puce--moinscher::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%);
  animation: reflet 1.1s ease 1s 2 both;
}

/* Fiche : l'illustration flotte doucement. */
.fiche__image { animation: apparaitre .6s var(--souple) .1s both, flotter 6s ease-in-out 1s infinite; }
@keyframes flotter { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Parallaxe : le script donne --p selon le defilement. */
[data-parallaxe] { transform: translateY(var(--p, 0px)); will-change: transform; }

/* Recherche : le cadre s'allume pendant la frappe automatique. */
.chercher__champ.frappe-active { border-color: var(--vert); }

/* --- Reduction des mouvements ---------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .entete.cache { transform: none; }
  .mots-anim .mot > span,
  .js-anim [data-reveler]:not(.vu) .mots-anim .mot > span { transform: none; }
  .js-anim [data-reveler]:not(.vu) .definitions > div,
  .js-anim [data-reveler]:not(.vu) .formes-grille li,
  .js-anim [data-reveler]:not(.vu) .pas-a-pas li { opacity: 1; }
  .vignette { transform: rotate(var(--pente)); }
  .vignette::after { display: none; }
}

/* ==========================================================================
   29. Relief de l'accueil
   ========================================================================== */

/* --- La une : un pan vert nuit a droite, sur lequel se detache la vignette.
   Le contraste papier / vert donne a la page sa profondeur, sans degrade. */
@media (min-width: 62rem) {
  /* Seul le debordement horizontal est coupe (l'entree du pan vert). En
     hauteur, la une doit laisser passer la liste des suggestions de
     recherche : « overflow: hidden » la coupait au ras du fil des prix,
     n'en laissant voir que deux lignes. La croix, qui deborde par le bas,
     est coupee par son propre calque (.une__decor). Un navigateur qui
     ignore « clip » ne coupe rien : le corps de page masque deja le
     debordement horizontal. */
  /* Le pan vert commence au milieu de l'espace entre les deux colonnes de la
     grille, et non a 57 % de l'ecran : sur un grand ecran, la grille reste
     centree a 76rem pendant que 57 % glissait vers la droite, et le ticket
     de prix chevauchait le bord du pan au lieu d'y etre pose.
     Grille : largeur L = min(100 %, 76rem), marges de 2rem, colonnes 7fr
     et 5fr separees de 4rem. */
  .une {
    overflow-x: clip;
    --une-l: min(100%, var(--largeur-large));
    --une-pan: calc((100% - var(--une-l)) / 2 + 4rem + (var(--une-l) - 8rem) * 7 / 12);
  }
  .une::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: var(--une-pan);
    inset-inline-end: 0;
    background-color: var(--vert-nuit);
    /* Trame de papier millimetre, a peine visible sur le vert */
    background-image:
      linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 28px 28px;
    animation: pan-entrer 1.1s var(--souple) both;
  }
  [dir="rtl"] .une::before { animation-name: pan-entrer-rtl; }
  .une__decor { display: block; position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
  /* Une grande croix d'officine en creux, dans le coin du pan */
  .une__croix {
    position: absolute;
    width: 22rem;
    height: 22rem;
    inset-inline-end: -5rem;
    bottom: -6rem;
    opacity: .06;
    background:
      linear-gradient(#fff, #fff) center / 32% 100% no-repeat,
      linear-gradient(#fff, #fff) center / 100% 32% no-repeat;
    border-radius: 2rem;
    transform: rotate(12deg);
  }
  .une__grille { position: relative; z-index: 1; }
  .vignette-scene::before {
    background-color: rgba(255, 255, 255, .05);
    background-image: none;
    border: 1px solid rgba(255, 255, 255, .12);
  }
  .vignette-scene figcaption,
  .vignette-scene figcaption a { color: #A8C7BA; }
  .vignette-scene figcaption a:hover { color: #fff; }
  .vignette { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)) drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
}
@keyframes pan-entrer     { from { transform: translateX(100%); } to { transform: none; } }
@keyframes pan-entrer-rtl { from { transform: translateX(-100%); } to { transform: none; } }

/* --- Le fil des prix ------------------------------------------------------
   Il defile en continu, s'arrete au survol pour qu'on puisse cliquer. */
.fil {
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--encre);
  color: #E9EFEB;
  border-bottom: 1px solid #000;
}
.fil__titre {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  padding: 0 1.25rem;
  background: var(--vert-fond);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 12px 0 18px -6px rgba(0, 0, 0, .5);
}
[dir="rtl"] .fil__titre { letter-spacing: 0; font-size: .875rem; box-shadow: -12px 0 18px -6px rgba(0, 0, 0, .5); }
/* Temoin « en direct » */
.fil__titre::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7CF0B8;
  animation: clignoter 1.6s ease-in-out infinite;
}
@keyframes clignoter { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.fil__piste {
  display: flex;
  width: max-content;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.fil__liste {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: defiler-fil 70s linear infinite;
}
.fil:hover .fil__liste { animation-play-state: paused; }
@keyframes defiler-fil { to { transform: translateX(-100%); } }
[dir="rtl"] .fil__liste { animation-name: defiler-fil-rtl; }
@keyframes defiler-fil-rtl { to { transform: translateX(100%); } }
.fil__liste li { display: flex; }
.fil__liste a {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  padding: .85rem 1.4rem;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  border-inline-end: 1px solid rgba(255, 255, 255, .1);
  transition: background var(--vite) ease;
}
.fil__liste a:hover { background: rgba(255, 255, 255, .06); }
.fil__nom { font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: #B9C6BF; }
.fil__prix { font-family: "Fraunces", Georgia, serif; font-size: 1.05rem; font-weight: 600; color: #7CF0B8; font-variant-numeric: tabular-nums lining-nums; }

/* --- Comparatif en barres ------------------------------------------------ */
.comparatif {
  margin: 2.5rem 0 0;
  padding: 1.6rem 1.75rem;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--r-l);
}
.comparatif figcaption {
  margin-bottom: 1.25rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 560;
}
.comparatif__ligne {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) auto;
  align-items: center;
  gap: .5rem 1rem;
  padding: .55rem 0;
}
@media (max-width: 36rem) {
  .comparatif__ligne { grid-template-columns: minmax(0, 1fr) auto; }
  .comparatif__rail { grid-column: 1 / -1; grid-row: 2; }
}
.comparatif__nom { font-size: .8125rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comparatif__rail { display: block; height: .9rem; background: var(--papier-2); border-radius: 3px; overflow: hidden; }
.comparatif__barre {
  display: block;
  height: 100%;
  width: calc(var(--part, 1) * 100%);
  background: var(--encre-doux);
  border-radius: 3px;
  transform-origin: left;
  transition: transform 1.4s var(--souple) .3s;
}
[dir="rtl"] .comparatif__barre { transform-origin: right; }
.comparatif__ligne--gen .comparatif__barre { background: var(--vert-fond); transition-delay: .55s; }
.comparatif__prix { font-family: "Fraunces", Georgia, serif; font-size: 1.2rem; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.comparatif__ligne--gen .comparatif__prix { color: var(--vert); }
.comparatif__eco {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px dashed var(--ligne-forte);
  font-weight: 700;
  color: var(--safran);
}
/* Les barres se remplissent quand la section entre dans l'ecran. */
.js-anim [data-reveler]:not(.vu) .comparatif__barre { transform: scaleX(0); }

/* --- Le grand logotype du pied de page ----------------------------------- */
.pied { position: relative; overflow: hidden; padding-bottom: 0; }
.pied__geant {
  margin: 2rem 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(4.5rem, 1rem + 17vw, 17rem);
  font-weight: 600;
  line-height: .78;
  letter-spacing: -.05em;
  text-align: center;
  white-space: nowrap;
  color: rgba(255, 255, 255, .07);
  user-select: none;
  transform: translateY(8%);
}
[dir="rtl"] .pied__geant { font-family: var(--serif); letter-spacing: 0; line-height: 1.1; }
.js-anim .pied__geant[data-reveler] { transition: opacity 1.2s var(--souple), transform 1.2s var(--souple); }
.js-anim .pied__geant[data-reveler]:not(.vu) { opacity: 0; transform: translateY(40%); }

@media (prefers-reduced-motion: reduce) {
  .fil__liste { animation: none; }
  .fil__piste { width: auto; overflow-x: auto; }
  .fil__liste[aria-hidden="true"] { display: none; }
  .js-anim [data-reveler]:not(.vu) .comparatif__barre { transform: none; }
}
@media print { .fil, .pied__geant, .comparatif { display: none !important; } }

/* ==========================================================================
   30. Douceur : transitions entre pages, mouvements lies au defilement
   ========================================================================== */

/* --- Entre deux pages ------------------------------------------------------
   Le contenu fond doucement ; certains elements passent d'une page a
   l'autre en se transformant : l'illustration d'un medicament dans la
   recherche devient celle de sa fiche, son prix devient la vignette de
   prix. Le script ne nomme l'element de depart qu'au moment du clic. */
::view-transition-group(*) { animation-duration: .65s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
/* La page quittee recule et bascule en arriere ; la nouvelle monte du
   fond en se redressant. */
::view-transition-old(root) { animation: .45s cubic-bezier(.4, 0, .6, 1) both page-sortir; transform-origin: 50% 0; }
::view-transition-new(root) { animation: .7s cubic-bezier(.2, .8, .2, 1) .08s both page-entrer; transform-origin: 50% 100%; }
@keyframes page-sortir { to { opacity: 0; transform: perspective(1400px) translateZ(-140px) rotateX(7deg); } }
@keyframes page-entrer { from { opacity: 0; transform: perspective(1400px) translateY(40px) translateZ(-90px) rotateX(-9deg); } }
.fiche__image { view-transition-name: forme; }
.prix { view-transition-name: prix; }

/* --- En-tete qui se resserre quand on defile ----------------------------- */
.entete__logo img { transition: transform .45s var(--souple); transform-origin: left center; }
[dir="rtl"] .entete__logo img { transform-origin: right center; }
.entete.defile .entete__logo img { transform: scale(.88); }
.entete.defile { background: rgba(247, 244, 238, .98); }

/* --- Soulignements qui se deroulent -------------------------------------- */
.frequents a,
.pied ul a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  background-position: left 100%;
  padding-bottom: 2px;
  transition: background-size .45s var(--souple), color var(--vite) ease;
}
[dir="rtl"] .frequents a, [dir="rtl"] .pied ul a { background-position: right 100%; }
.frequents a { background-size: 100% 1px; background-image: linear-gradient(var(--ligne-forte), var(--ligne-forte)); }
.frequents a:hover { background-image: linear-gradient(var(--vert), var(--vert)); }
.pied ul a:hover { background-size: 100% 1.5px; text-decoration: none; }

/* --- Bouton creux : l'encre le remplit de gauche a droite ---------------- */
.bouton--fantome { transition: box-shadow .5s var(--souple), color .3s ease, border-color .3s ease; }
.bouton--fantome:hover { background: transparent; box-shadow: inset 30rem 0 0 0 var(--encre); color: var(--papier); }
[dir="rtl"] .bouton--fantome:hover { box-shadow: inset -30rem 0 0 0 var(--encre); }

/* --- Suggestions en cascade ---------------------------------------------- */
.suggestions a { animation: glisser .32s var(--souple) both; }
.suggestions a:nth-child(2) { animation-delay: .03s; }
.suggestions a:nth-child(3) { animation-delay: .06s; }
.suggestions a:nth-child(4) { animation-delay: .09s; }
.suggestions a:nth-child(n+5) { animation-delay: .12s; }
.suggestions .s-visuel { transition: transform .4s var(--souple); }
.suggestions a:hover .s-visuel, .suggestions a.actif .s-visuel { transform: rotate(-8deg) scale(1.08); }

/* --- Mouvement d'ambiance : la grande croix tourne, tres lentement ------- */
@media (min-width: 62rem) {
  .une__croix { animation: croix-lente 90s linear infinite; }
}
@keyframes croix-lente { from { transform: rotate(12deg); } to { transform: rotate(372deg); } }

/* --- Mouvements lies au defilement ----------------------------------------
   Ils suivent la molette ou le doigt image par image, calcules par le
   navigateur, sans script. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {

    /* La une s'eloigne : le texte monte et s'estompe, la vignette monte
       moins vite, ce qui donne de la profondeur.
       La recherche monte avec le texte mais ne s'estompe jamais : c'est
       l'outil de la page, et un champ a 25 % d'opacite paraissait flou,
       desactive, au moment precis ou l'on commence a taper. */
    .une__texte {
      animation: une-recule linear both;
      animation-timeline: scroll(root);
      animation-range: 0 75vh;
    }
    /* Le fondu s'ajoute a l'animation d'arrivee (.entree), sans la
       remplacer ; il passe par filter pour ne pas disputer l'opacite. */
    .une__titre {
      animation: une-estompe linear both;
      animation-timeline: scroll(root);
      animation-range: 0 75vh;
    }
    .une__texte > .entree:not(.une__recherche) {
      animation: monter .7s var(--souple) both, une-estompe linear both;
      animation-delay: calc(var(--d, 0) * 80ms), 0s;
      animation-timeline: auto, scroll(root);
      animation-range: normal, 0 75vh;
    }
    @keyframes une-recule { to { transform: translateY(-50px); } }
    @keyframes une-estompe { to { filter: opacity(.25); } }
    .vignette-scene {
      animation: vignette-monte linear both;
      animation-timeline: scroll(root);
      animation-range: 0 90vh;
    }
    @keyframes vignette-monte { to { transform: translateY(-90px); } }

    /* Les illustrations des formes arrivent en tournant legerement.
       « backwards » : une fois arrivees, le survol reprend la main. */
    .formes-grille img {
      animation: forme-arrive linear backwards;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }
    @keyframes forme-arrive { from { opacity: .15; transform: translateY(28px) rotate(-14deg) scale(.85); } }

    /* L'apercu de la page de suivi se redresse en montant. */
    .apercu {
      animation: apercu-redresse linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 50%;
    }
    @keyframes apercu-redresse { from { opacity: .3; transform: perspective(1000px) translateY(80px) rotateY(-28deg) rotateX(14deg) scale(.92); } }

    /* Le comparatif et l'exergue glissent avec un leger decalage. */
    .comparatif, .exergue {
      animation: glisse-haut linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
    }
    @keyframes glisse-haut { from { opacity: .2; transform: perspective(900px) translateY(60px) rotateX(22deg); } }

    /* Illustrations des pages : elles montent un peu moins vite que le texte,
       en pivotant sur elles-memes, comme un objet qu'on contourne. */
    .officine__illus, .page__illus, .vide__illus {
      animation: illus-flotte linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    @keyframes illus-flotte {
      from { transform: perspective(800px) translateY(40px) rotateY(calc(var(--cote, 1) * -24deg)) rotateX(8deg); }
      to   { transform: perspective(800px) translateY(-40px) rotateY(calc(var(--cote, 1) * 18deg)) rotateX(-4deg); }
    }

    /* Le grand nom du pied de page se leve a mesure qu'on arrive en bas. */
    .pied__geant {
      animation: geant-leve linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
    /* Le grand nom se releve, comme une enseigne qu'on redresse. */
    @keyframes geant-leve { from { opacity: 0; transform: perspective(700px) translateY(45%) rotateX(75deg); } to { opacity: 1; transform: translateY(8%); } }
    .js-anim .pied__geant[data-reveler]:not(.vu) { opacity: 1; }

    /* Chaque chiffre de la ligne des faits entre a son tour. */
    /* Sans fondu : les faits sont deja dans le premier ecran, et un texte a
       demi transparent y echouait au controle de contraste. */
    .fait {
      animation: fait-monte linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
    .fait:nth-child(2) { animation-range: entry 10% entry 100%; }
    .fait:nth-child(3) { animation-range: entry 20% cover 20%; }
    @keyframes fait-monte { from { transform: perspective(900px) translateY(60px) rotateX(22deg); } }
  }
}

/* La parallaxe par script devient inutile la ou le navigateur s'en charge. */
@supports (animation-timeline: view()) {
  [data-parallaxe] { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .une__croix { animation: none; }
}

/* ==========================================================================
   31. Mecaniques : compteurs a rouleaux, scanner, pouls, radar
   --------------------------------------------------------------------------
   Des animations composees de plusieurs pieces synchronisees. Chacune dit
   quelque chose du service : le prix qu'on scanne, la demande qui gagne les
   officines du quartier. Toutes ne deplacent que des calques.
   ========================================================================== */

/* --- Compteur a rouleaux ----------------------------------------------------
   Le script remplace chaque chiffre par un rouleau 0-9 qui tourne jusqu'a sa
   valeur, comme une caisse enregistreuse. Le texte exact reste lisible par
   les lecteurs d'ecran (aria-label), les rouleaux leur sont caches. */
/* Les rouleaux restent du texte en ligne, sur la ligne de base du prix :
   chaque rouleau est dimensionne par son chiffre final, invisible, et la
   bande des chiffres glisse par-dessus. Les pas de la bande valent une
   hauteur de ligne (1lh) : le chiffre arrete tombe exactement a la place du
   texte, quelle que soit la hauteur de ligne du prix. Le masque coupe ce qui
   depasse en haut et en bas ; ses marges laterales laissent deborder un
   chiffre plus large que le chiffre final. */
.rouleaux { white-space: nowrap; }
/* Le nombre se lit de gauche a droite, meme dans une phrase arabe : les
   rouleaux n'y sont plus des chiffres pour le navigateur (voir dwaplus.js). */
.rouleaux__nombre { direction: ltr; unicode-bidi: isolate; }
/* Sans crenage : chaque chiffre d'un rouleau est seul dans sa boite, et le
   texte doit avoir exactement la meme chasse (« 11 » se resserrait de 3 px
   quand le texte reprenait sa place). */
[data-roule], [data-compteur] { font-kerning: none; }
.rouleau {
  position: relative;
  display: inline-block;
  padding-inline: .15em;
  margin-inline: -.15em;
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
}
.rouleau__fantome { visibility: hidden; }
.rouleau__bande {
  position: absolute;
  top: 0;
  inset-inline: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(calc(var(--n, 0) * -1.05em));
  transform: translateY(calc(var(--n, 0) * -1lh));
  transition: transform 1.8s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.rouleau__bande > span { height: 1.05em; height: 1lh; }
/* Navigateur sans l'unite lh : des pas fixes, et la ligne qui va avec. */
@supports not (height: 1lh) {
  .rouleau__bande { line-height: 1.05; }
}

/* --- Le scanner de la vignette ---------------------------------------------
   Un trait laser balaie le code-barres toutes les six secondes ; au « bip »,
   le prix s'allume un instant. Les deux animations partent ensemble et ont
   la meme duree : elles restent synchrones. */
.vignette__code { position: relative; }
.vignette__code::after {
  content: "";
  position: absolute;
  top: -35%;
  bottom: -35%;
  left: 0;
  width: 2px;
  background: #F04438;
  box-shadow: 0 0 6px 2px rgba(240, 68, 56, .65), 0 0 18px 6px rgba(240, 68, 56, .25);
  border-radius: 2px;
  opacity: 0;
  animation: scanner 6s cubic-bezier(.45, 0, .55, 1) 3.2s infinite;
}
@keyframes scanner {
  0%   { opacity: 0; transform: translateX(0); }
  3%   { opacity: 1; }
  17%  { opacity: 1; transform: translateX(var(--course, 180px)); }
  21%  { opacity: 0; transform: translateX(var(--course, 180px)); }
  100% { opacity: 0; transform: translateX(var(--course, 180px)); }
}
.vignette__code { --course: 115px; }
/* Au bip, une lueur verte s'allume derriere le prix. Elle passe par
   l'opacite d'un calque : changer la couleur du texte repeignait toute
   l'etiquette, et son ombre portee, pendant le roulement de la boite. */
.vignette__prix { position: relative; isolation: isolate; }
.vignette__prix::after {
  content: "";
  position: absolute;
  inset: -12% -4%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(11, 166, 120, .30), rgba(11, 166, 120, 0));
  opacity: 0;
  animation: bip 6s ease 3.2s infinite;
}
@keyframes bip {
  0%, 16%   { opacity: 0; }
  19%       { opacity: 1; }
  30%, 100% { opacity: 0; }
}

/* --- Pouls de moniteur, dans le pan vert de la une ------------------------ */
.pouls { display: none; }
@media (min-width: 62rem) {
  .pouls {
    display: block;
    position: absolute;
    z-index: 0;
    inset-inline-start: var(--une-pan, 57%);
    inset-inline-end: 0;
    bottom: 2.5rem;
    width: auto;
    height: 90px;
    overflow: visible;
    pointer-events: none;
  }
  [dir="rtl"] .pouls { transform: scaleX(-1); }
}
.pouls path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pouls__fond { stroke: rgba(124, 240, 184, .14); stroke-width: 1.5; }
/* Un segment lumineux parcourt la trace, comme sur l'ecran d'un moniteur. */
.pouls__trace {
  stroke: #7CF0B8;
  stroke-width: 2.5;
  stroke-dasharray: .16 .84;
  stroke-dashoffset: .16;
  animation: pouls 3.2s linear infinite;
}
@keyframes pouls { from { stroke-dashoffset: .16; } to { stroke-dashoffset: -.84; } }

/* --- Radar de proximite ----------------------------------------------------
   Trois ondes partent du patient, l'une apres l'autre. Chaque officine
   s'allume quand la premiere onde l'atteint : son delai (--t) est sa
   distance au centre. */
.scene-dispo { position: relative; display: grid; place-items: center; }
.radar {
  --cycle: 4.8s;
  position: absolute;
  width: min(34rem, 118%);
  aspect-ratio: 1;
  pointer-events: none;
}
.radar__cercle {
  position: absolute;
  inset: calc((1 - var(--r)) * 50%);
  border: 1px dashed rgba(143, 211, 182, .28);
  border-radius: 50%;
}
.radar__cercle em {
  position: absolute;
  top: -.55rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 .35rem;
  background: var(--vert-nuit);
  font-style: normal;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: rgba(143, 211, 182, .7);
}
.radar__onde {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(124, 240, 184, .55);
  background: radial-gradient(circle, transparent 55%, rgba(124, 240, 184, .08));
  transform: scale(0);
  opacity: 0;
  animation: onde-radar var(--cycle) cubic-bezier(.25, .6, .4, 1) infinite;
  animation-delay: calc(var(--decale, 0) * var(--cycle) / 3);
}
@keyframes onde-radar {
  0%   { transform: scale(0); opacity: 0; }
  8%   { opacity: 1; }
  70%  { transform: scale(1); opacity: .35; }
  100% { transform: scale(1.05); opacity: 0; }
}
/* Faisceau qui tourne, en conique tres discrete */
.radar__balayage {
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(124, 240, 184, .16), transparent 18%, transparent);
  animation: tourner 6s linear infinite;
}
.radar__patient {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--safran-vif, #F97316);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, .25);
}
.radar__officine {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 4px;
  background:
    linear-gradient(currentColor, currentColor) center / 30% 64% no-repeat,
    linear-gradient(currentColor, currentColor) center / 64% 30% no-repeat,
    rgba(255, 255, 255, .08);
  color: rgba(143, 211, 182, .35);
}
/* L'officine allumee est un calque pose dessus, qui apparait et s'eteint :
   seules l'opacite et l'echelle bougent, ce que la carte graphique fait
   seule. Animer la couleur et l'ombre repeignait les huit officines a
   chaque image, en boucle. ::before est l'onde, ::after la croix allumee. */
.radar__officine::before,
.radar__officine::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  animation: var(--cycle) ease-out infinite;
  animation-delay: calc(var(--t) * .7 * var(--cycle));
}
.radar__officine::before {
  box-shadow: 0 0 0 6px rgba(124, 240, 184, .25);
  animation-name: officine-onde;
}
.radar__officine::after {
  background:
    linear-gradient(#0B3B2E, #0B3B2E) center / 30% 64% no-repeat,
    linear-gradient(#0B3B2E, #0B3B2E) center / 64% 30% no-repeat,
    #7CF0B8;
  animation-name: officine-allume;
}
@keyframes officine-onde {
  0%        { opacity: 1; transform: scale(1.45); }
  25%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes officine-allume {
  0%        { opacity: 1; transform: scale(1.45); }
  25%       { opacity: 1; transform: scale(1); }
  45%, 100% { opacity: 0; transform: scale(1); }
}
.scene-dispo .apercu { position: relative; z-index: 1; width: 100%; max-width: 26rem; }
@media (max-width: 40rem) { .radar { width: 130%; opacity: .7; } }

/* --- La bande sombre s'ouvre en grand ---------------------------------------
   Elle arrive comme une carte arrondie en retrait, et s'etire jusqu'aux
   bords a mesure qu'on descend. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .bande {
      animation: bande-ouvre linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
    }
    @keyframes bande-ouvre {
      from { clip-path: inset(0 5% round 36px); }
      to   { clip-path: inset(0 0 round 0); }
    }
  }
}

/* --- Cellules des formes : inclinaison 3D sous la souris ------------------
   Le script donne --cx et --cy a la cellule survolee. */
.formes-grille li {
  transform: perspective(700px) rotateX(var(--cy, 0deg)) rotateY(var(--cx, 0deg));
  transition: transform .35s var(--souple), background var(--vite) ease;
}
.formes-grille li.incline { transition: transform .08s linear, background var(--vite) ease; }

@media (prefers-reduced-motion: reduce) {
  .vignette__code::after, .pouls__trace, .radar__onde, .radar__balayage, .radar__officine { animation: none; }
  .radar__onde { opacity: 0; }
  .rouleau__bande { transition: none; }
}
@media print { .pouls, .radar { display: none !important; } }

/* ==========================================================================
   32. Structure des pages interieures
   --------------------------------------------------------------------------
   Toutes les pages suivent le meme plan : un bandeau de tete sur la grille
   de l'en-tete (fil d'Ariane, surtitre, titre, chapeau, puis illustration,
   boutons ou recherche), et en dessous le contenu, avec a cote une colonne
   d'appui qui reste en vue.
   ========================================================================== */

main:has(> .bandeau) { padding-top: 0; }

/* --- Bandeau de tete -------------------------------------------------------*/
.bandeau {
  position: relative;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  padding-block: clamp(1.75rem, 1rem + 2.5vw, 3.25rem) clamp(2rem, 1.5rem + 2vw, 3rem);
  background: var(--blanc);
  border-bottom: 1px solid var(--ligne);
  overflow: hidden;
}
/* Un filet vert se trace sous le bandeau, de gauche a droite. */
.bandeau::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 2px;
  background: var(--vert-fond);
  transform-origin: left;
  animation: filet-trace 1.2s var(--souple) .35s both;
}
[dir="rtl"] .bandeau::after { transform-origin: right; }
@keyframes filet-trace { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* « minmax(0, 1fr) » et non la colonne implicite : sinon la largeur minimale
   de la barre de recherche s'imposait a la grille, et sur un petit
   telephone le titre, le chapeau et le bouton Chercher sortaient de l'ecran
   (meme correction que pour la une). */
.bandeau__grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 3rem; align-items: center; }
@media (min-width: 56rem) {
  .bandeau--double .bandeau__grille { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
.bandeau__titre { margin: .35rem 0 .8rem; font-size: var(--t-h1); line-height: 1.08; letter-spacing: -.025em; max-width: 22ch; }
[dir="rtl"] .bandeau__titre { line-height: 1.4; }
.bandeau__chapo { margin: 0; max-width: 40rem; font-size: 1.0625rem; color: var(--encre-doux); }
.bandeau .surtitre { margin: 1rem 0 .4rem; }
.bandeau .page__actions { margin-top: 1.5rem; }
.bandeau__recherche { width: 100%; }
.bandeau__recherche .chercher { margin: 0; }
.bandeau__recherche .chercher__champ { border-color: var(--encre); border-width: 2px; }
.bandeau__illus {
  justify-self: center;
  width: min(17rem, 72%);
  height: auto;
  animation: illus-arrive 1s var(--souple) .2s both;
}
@keyframes illus-arrive { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
@media (max-width: 55.99rem) { .bandeau__illus { order: -1; width: min(12rem, 60%); } }
.bandeau .alphabet { margin: 1.75rem 0 0; }

/* --- Fil d'Ariane ----------------------------------------------------------*/
.ariane ol { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; margin: 0; padding: 0; list-style: none; font-size: .875rem; }
.ariane li { display: inline-flex; align-items: center; gap: .5rem; animation: glisser-cote .5s var(--souple) both; animation-delay: calc(var(--i, 0) * 70ms); }
.ariane li + li::before {
  content: "";
  width: .38rem;
  height: .38rem;
  border-top: 1.5px solid var(--encre-pale);
  border-inline-end: 1.5px solid var(--encre-pale);
  transform: rotate(45deg);
}
[dir="rtl"] .ariane li + li::before { transform: rotate(-45deg); }
.ariane a { color: var(--encre-doux); text-decoration: none; }
.ariane a:hover { color: var(--vert); text-decoration: underline; }
.ariane [aria-current="page"] { color: var(--encre); font-weight: 600; max-width: 28ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ariane--fiche { margin: .25rem 0 1.25rem; }
/* Sur telephone, le fil tient sur une ligne et defile au doigt : sur deux
   lignes, il repoussait le prix sous l'ecran. */
@media (max-width: 47.99rem) {
  .ariane ol { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ariane ol::-webkit-scrollbar { display: none; }
  .ariane li { flex: 0 0 auto; white-space: nowrap; }
}

/* --- Contenu et colonne d'appui ------------------------------------------ */
.mise-en-page { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 60rem) {
  .mise-en-page { grid-template-columns: minmax(0, 1fr) 21rem; gap: 3.5rem; }
  .mise-en-page__cote { position: sticky; top: 6rem; }
  .mise-en-page--texte { grid-template-columns: 15rem minmax(0, 1fr); }
}
.mise-en-page__principal { min-width: 0; }
.mise-en-page__principal > .bloc:first-child,
.mise-en-page__principal > .bientot:first-child,
.mise-en-page__principal > .message:first-child + .bloc { margin-top: 0; }
.mise-en-page__cote { display: grid; gap: 1.25rem; min-width: 0; }
.mise-en-page__cote > * { margin-top: 0; }
.bloc--cote { padding: 1.4rem 1.5rem; }
.bloc--cote > h2 { font-size: 1.25rem; }
.bloc--discret { background: transparent; border-style: dashed; }

.bloc__entete { display: flex; align-items: center; gap: .75rem; }
.bloc__num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--vert-fond);
  color: #fff;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 700;
}

.reseau {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  padding: .9rem 1.1rem;
  background: var(--vert-brume);
  border-inline-start: 3px solid var(--vert);
  font-size: .875rem;
  font-weight: 600;
  color: var(--vert-fonce);
}
.reseau::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vert-vif);
  box-shadow: 0 0 0 0 rgba(11, 166, 120, .5);
  animation: temoin 2s ease-out infinite;
}
@keyframes temoin { 70% { box-shadow: 0 0 0 8px rgba(11, 166, 120, 0); } 100% { box-shadow: 0 0 0 0 rgba(11, 166, 120, 0); } }

/* Parties numerotees d'une page (pharmaciens) */
.partie { padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--ligne); }
.partie:last-of-type { border-bottom: 0; }
.partie h2 { margin: .6rem 0 1.1rem; font-size: var(--t-h2); }
.partie__chapo { margin: 0 0 1.25rem; font-size: 1.0625rem; color: var(--encre-doux); max-width: 40rem; }

/* Liste a coches */
.coches { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.coches li {
  position: relative;
  padding: .9rem 1.1rem;
  padding-inline-start: 3rem;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--r-m);
}
.coches li::before {
  content: "";
  position: absolute;
  inset-inline-start: 1.1rem;
  top: 1.15rem;
  width: .85rem;
  height: .45rem;
  border-inline-start: 2px solid var(--vert);
  border-bottom: 2px solid var(--vert);
  transform: rotate(-45deg);
}
[dir="rtl"] .coches li::before { transform: rotate(45deg) scaleX(-1); }
.js-anim [data-reveler]:not(.vu) .coches li { opacity: 0; }
.js-anim .vu .coches li { animation: glisser-cote .6s var(--souple) backwards; animation-delay: calc(var(--i, 0) * 110ms + 200ms); }

/* Tarifs, dans la colonne d'appui */
.tarifs-liste { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .6rem; }
.tarifs-liste li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .1rem .75rem;
  padding: .9rem 1rem;
  border: 1px solid var(--ligne);
  border-radius: var(--r-m);
  transition: border-color var(--vite) ease, transform .35s var(--souple), box-shadow .35s var(--souple);
  animation: monter .6s var(--souple) backwards;
  animation-delay: calc(var(--i, 0) * 100ms + 300ms);
}
.tarifs-liste li:hover { border-color: var(--vert); transform: translateY(-2px); box-shadow: var(--ombre-2); }
.tarifs-liste__plan { font-weight: 700; }
.tarifs-liste__prix { font-family: "Fraunces", Georgia, serif; font-size: 1.35rem; font-weight: 600; line-height: 1; text-align: end; font-variant-numeric: tabular-nums lining-nums; }
.tarifs-liste__prix small { font-family: var(--sans); font-size: .6875rem; font-weight: 500; color: var(--encre-doux); }
.tarifs-liste__pour { grid-column: 1 / -1; font-size: .875rem; color: var(--encre-doux); }
.tarifs-liste__vedette { border: 2px solid var(--vert) !important; background: var(--vert-brume); }

/* Compte en tete de liste */
.compte-liste { margin: 0 0 1rem; font-size: .875rem; font-weight: 600; color: var(--encre-doux); }

/* --- Etapes qui s'allument l'une apres l'autre ----------------------------
   Dans la colonne d'appui, la pastille de chaque etape s'allume a son tour,
   puis la sequence recommence : le parcours se lit d'un coup d'oeil. */
.etapes--allumees .num { transition: none; }
.etapes--allumees li .num { animation: etape-allume 8s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 2s); }
@keyframes etape-allume {
  0%, 22%, 100% { color: var(--vert); background: transparent; transform: none; }
  4%, 18%       { color: #fff; background: var(--vert-fond); transform: scale(1.12); }
}
.etapes--allumees .num {
  display: inline-grid;
  place-items: center;
  flex: 0 0 1.9rem;
  width: 1.9rem;
  height: 1.9rem;
  border: 1.5px solid var(--vert);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 700;
}
.etapes--allumees li { align-items: center; }

/* --- Alphabet en vague ---------------------------------------------------- */
.alphabet li { animation: lettre-monte .5s var(--souple) backwards; animation-delay: calc(var(--i, 0) * 22ms + 250ms); }
@keyframes lettre-monte { from { opacity: 0; transform: translateY(10px); } }

/* --- Sommaire qui suit la lecture ---------------------------------------- */
.sommaire { display: none; }
@media (min-width: 60rem) {
  .sommaire:not([hidden]) { display: block; position: sticky; top: 6rem; }
}
.sommaire__titre { margin: 0 0 .9rem; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-doux); }
[dir="rtl"] .sommaire__titre { letter-spacing: 0; }
.sommaire ol { position: relative; list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--ligne); }
.sommaire li { margin: 0; }
.sommaire a {
  display: block;
  padding: .45rem 0;
  padding-inline-start: 1rem;
  font-size: .875rem;
  line-height: 1.4;
  color: var(--encre-doux);
  text-decoration: none;
  transition: color .25s ease, transform .35s var(--souple);
}
.sommaire a:hover { color: var(--encre); transform: translateX(3px); }
[dir="rtl"] .sommaire a:hover { transform: translateX(-3px); }
.sommaire a[aria-current="true"] { color: var(--vert); font-weight: 650; }
/* L'indicateur glisse jusqu'a la section lue (--haut et --hauteur par le script). */
.sommaire__indicateur {
  position: absolute;
  inset-inline-start: -2px;
  top: 0;
  width: 2px;
  height: var(--hauteur, 0px);
  background: var(--vert-fond);
  transform: translateY(var(--haut, 0px));
  transition: transform .45s var(--souple), height .45s var(--souple);
}
.prose h2 { scroll-margin-top: 6rem; }

/* --- Champs : un filet vert se deroule au focus --------------------------- */
.champ { position: relative; }
.champ input, .champ select, .champ textarea { background-image: linear-gradient(var(--vert), var(--vert)); background-repeat: no-repeat; background-size: 0 2px; background-position: left bottom; }
.champ select { background-image: linear-gradient(45deg, transparent 50%, var(--encre-doux) 50%), linear-gradient(135deg, var(--encre-doux) 50%, transparent 50%), linear-gradient(var(--vert), var(--vert)); background-size: .35rem .35rem, .35rem .35rem, 0 2px; background-position: calc(100% - 1.2rem) 55%, calc(100% - .85rem) 55%, left bottom; }
.champ input:focus, .champ textarea:focus { background-size: 100% 2px; transition: background-size .5s var(--souple), border-color var(--vite) ease, box-shadow .3s ease; }
.champ select:focus { background-size: .35rem .35rem, .35rem .35rem, 100% 2px; }
.champ label { transition: color .25s ease; }
.champ:focus-within label { color: var(--vert); }

@media (prefers-reduced-motion: reduce) {
  .bandeau::after, .ariane li, .alphabet li, .tarifs-liste li, .etapes--allumees li .num, .reseau::before, .bandeau__illus { animation: none; }
  .js-anim [data-reveler]:not(.vu) .coches li { opacity: 1; }
}
@media print { .bandeau::after, .sommaire, .mise-en-page__cote { display: none !important; } .mise-en-page { display: block; } }

/* --- Espace pharmacien : onglets au bas du bandeau ------------------------ */
.bandeau:has(.onglets--bandeau) { padding-bottom: 0; }
.onglets--bandeau { margin: 1.75rem 0 0; border-bottom: 0; }
.onglets--bandeau a { padding-block: .9rem; }
.onglets--bandeau a[aria-current="page"] { border-bottom-width: 3px; }
.bandeau .page__actions .plan { font-size: .8125rem; padding: .3rem .7rem; }
.bandeau .page__actions { align-items: center; }
/* La grille est large ; un formulaire garde une largeur de lecture. */
.espace-contenu > .bloc--forme,
.espace-contenu > form,
.espace-contenu > .formulaire { max-width: 46rem; }

/* --- Deconnexion : un formulaire qui a l'allure d'un lien -----------------
   La deconnexion passe par un formulaire protege (jeton CSRF) : un simple
   lien permettait a n'importe quel site de deconnecter un utilisateur. */
.form-lien { display: inline; margin: 0; }
.form-lien button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
.admin-nav .form-lien button { color: #C8DDD3; font-weight: 600; font-size: .875rem; padding: .4rem .75rem; border-radius: var(--r-s); }
.admin-nav .form-lien button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.form-lien .lien-discret:hover { text-decoration: underline; }

/* --- Photo d'ordonnance ---------------------------------------------------- */
.ordonnance {
  margin: 0 0 1.25rem;
  padding: 1.1rem 1.2rem 1.2rem;
  border: 1.5px dashed var(--ligne-forte);
  border-radius: var(--r-m);
  min-width: 0;
  transition: border-color var(--moyen) ease, background var(--moyen) ease;
}
.ordonnance--remplie { border-style: solid; border-color: var(--vert); background: var(--vert-brume); }
.ordonnance legend { padding: 0 .35rem; font-size: .875rem; font-weight: 650; }
.ordonnance .champ__aide { margin-top: 0; }
/* Le vrai champ reste accessible au clavier et aux lecteurs d'ecran ;
   c'est son etiquette qui fait office de bouton. */
.ordonnance__zone { position: relative; display: inline-block; margin-top: .8rem; cursor: pointer; }
.ordonnance__fichier { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.ordonnance__appel {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem 1.1rem;
  border: 1.5px solid var(--vert);
  border-radius: var(--r-s);
  background: var(--blanc);
  color: var(--vert-fonce);
  font-weight: 650;
  transition: background var(--vite) ease, color var(--vite) ease;
}
.ordonnance__appel::before {
  /* Appareil photo, dessine en CSS */
  content: "";
  width: 1.1rem;
  height: .8rem;
  border: 2px solid currentColor;
  border-radius: 3px;
  background: radial-gradient(circle, currentColor 28%, transparent 32%);
}
.ordonnance__zone:hover .ordonnance__appel { background: var(--vert-fond); color: #fff; }
.ordonnance__fichier:focus-visible + .ordonnance__appel { outline: 2px solid var(--vert); outline-offset: 3px; }
.ordonnance__apercus { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: .9rem 0 0; padding: 0; }
.ordonnance__apercus:empty { display: none; }
.ordonnance__apercus li { position: relative; animation: surgir-doux .4s var(--souple) both; }
.ordonnance__apercus img { display: block; width: 5rem; height: 6.5rem; object-fit: cover; border-radius: var(--r-s); border: 1px solid var(--ligne); background: var(--blanc); }
.ordonnance__retirer {
  position: absolute;
  inset-inline-end: -.45rem;
  top: -.45rem;
  padding: .15rem .45rem;
  border: 0;
  border-radius: var(--r-s);
  background: var(--encre);
  color: #fff;
  font: inherit;
  font-size: .6875rem;
  font-weight: 700;
  cursor: pointer;
}
.ordonnance__conseil {
  display: flex;
  gap: .5rem;
  margin: .9rem 0 0;
  font-size: .8125rem;
  color: var(--encre-doux);
}
.ordonnance__conseil::before { content: "i"; flex: 0 0 1.1rem; height: 1.1rem; display: grid; place-items: center; border-radius: 50%; background: var(--encre-pale); color: #fff; font-size: .65rem; font-weight: 800; }
.ordonnance__accord { margin: .9rem 0 0; align-items: flex-start; }
.ordonnance__accord label { font-size: .8125rem; font-weight: 600; }
.ordonnance__accord input { margin-top: .15rem; }

/* Vignettes d'ordonnance : espace pharmacien et page de suivi */
.vignettes-ordo { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: .7rem 0 0; padding: 0; }
.vignettes-ordo a { display: grid; gap: .3rem; justify-items: center; text-decoration: none; font-size: .75rem; font-weight: 650; color: var(--vert-fonce); }
.vignettes-ordo img {
  width: 4.5rem;
  height: 6rem;
  object-fit: cover;
  border-radius: var(--r-s);
  border: 1px solid var(--ligne-forte);
  background: var(--papier-2);
  transition: transform .35s var(--souple), box-shadow .35s var(--souple);
}
.vignettes-ordo a:hover img { transform: translateY(-2px) rotate(-2deg); box-shadow: var(--ombre-2); }
.rappel-wa {
  margin: .9rem 0 0;
  padding: .7rem .85rem;
  border-inline-start: 3px solid var(--wa);
  background: #EAFBF0;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--wa-encre);
}
@media print { .ordonnance, .vignettes-ordo { display: none !important; } }
/* Un element « hidden » reste cache meme si sa classe le met en flex :
   sans cette regle, la case d'accord s'affichait avant toute photo. */
.ordonnance [hidden] { display: none !important; }

/* ==========================================================================
   32. Finitions : reliefs au survol
   --------------------------------------------------------------------------
   Des retours discrets sous la souris. Seulement avec un vrai survol (pas au
   doigt, ou l'etat « survole » reste colle) et jamais si le visiteur a
   demande moins de mouvement. La propriete « translate » est distincte de
   « transform » : elle se cumule avec l'aimantation des boutons.
   ========================================================================== */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .bouton {
    transition: background var(--vite) ease, border-color var(--vite) ease, color var(--vite) ease,
                box-shadow var(--moyen) var(--souple), translate var(--moyen) var(--souple);
  }
  .bouton.aimante {
    transition: transform .18s ease-out, background var(--vite) ease, border-color var(--vite) ease, color var(--vite) ease,
                box-shadow var(--moyen) var(--souple), translate var(--moyen) var(--souple);
  }
  .bouton:hover { translate: 0 -2px; box-shadow: 0 12px 24px -14px rgba(11, 59, 46, .6); }
  .bouton:active { translate: 0 0; box-shadow: none; }

  /* Les chiffres cles : un filet vert se deroule au-dessus du chiffre survole. */
  .fait { position: relative; transition: background var(--moyen) ease; }
  .fait::before {
    content: "";
    position: absolute;
    top: -1px;
    inset-inline: 0;
    height: 2px;
    background: var(--vert-fond);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--moyen) var(--souple);
  }
  [dir="rtl"] .fait::before { transform-origin: right; }
  .fait:hover::before { transform: scaleX(1); }
  .fait b { transition: color var(--vite) ease, translate var(--moyen) var(--souple); }
  .fait:hover b { color: var(--vert); translate: 0 -2px; }

  /* Le comparatif et les cartes se soulevent legerement. */
  .comparatif { transition: box-shadow var(--moyen) var(--souple), translate var(--moyen) var(--souple); }
  .comparatif:hover { translate: 0 -3px; box-shadow: 0 18px 36px -24px rgba(23, 32, 28, .35); }

  /* Les resultats de recherche glissent d'un cran vers la fleche. */
  .article { transition: background var(--vite) ease, padding var(--moyen) var(--souple); }
  .article:hover { padding-inline-start: .9rem; }
}


/* ==========================================================================
   Messages de contact
   ========================================================================== */
.contact-forme { margin: 1.5rem 0 2rem; }
.contact-forme > h2 { margin-top: 0; }
.contact-forme select { width: 100%; }

/* Administration : boite de reception */
.admin-pastille {
  display: inline-grid; place-items: center; min-width: 1.3rem; height: 1.3rem; padding: 0 .35rem;
  margin-inline-start: .25rem; border-radius: 999px; background: var(--safran); color: #fff;
  font-size: .75rem; font-weight: 800; line-height: 1;
}
a.carte { color: inherit; text-decoration: none; transition: border-color var(--vite) ease, box-shadow var(--vite) ease; }
a.carte:hover { border-color: var(--vert); box-shadow: var(--ombre-1); }
.messages-admin { display: grid; gap: .9rem; }
.message-admin {
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r-m); padding: 1rem 1.2rem;
}
.message-admin--nouveau { border-inline-start: 4px solid var(--safran); }
.message-admin__tete { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; }
.message-admin p { margin: .5rem 0 0; }
.message-admin__texte { white-space: normal; background: var(--papier); border-radius: var(--r-s); padding: .7rem .9rem; }
.message-admin__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }

/* ---- Badge des pharmacies partenaires ------------------------------------ */
.badges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 1rem;
}
.badge-carte { display: grid; gap: .6rem; align-content: start; }
.badge-carte__titre { font-size: 1rem; margin: 0; }
.badge-carte__apercu {
  display: grid;
  place-items: center;
  padding: 1.25rem .75rem;
  border-radius: var(--r-m);
  border: 1px solid var(--ligne);
}
.badge-carte__apercu--clair { background: var(--papier); }
.badge-carte__apercu--sombre { background: var(--vert-brume); }
.badge-carte__apercu img { max-width: 100%; height: auto; }
.badge-carte__code {
  width: 100%;
  font: .78rem/1.45 ui-monospace, "SFMono-Regular", Consolas, monospace;
  padding: .6rem .7rem;
  border: 1px solid var(--ligne);
  border-radius: var(--r-s);
  background: var(--vert-brume);
  color: var(--encre);
  resize: vertical;
  word-break: break-all;
}
.badge-carte .bouton { justify-self: start; }

/* ---- Etude pour la presse ------------------------------------------------ */
.chiffres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
}
.chiffre {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--r-l);
  padding: 1.25rem 1.35rem;
}
.chiffre__valeur {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 1;
  color: var(--encre);
  font-variant-numeric: tabular-nums;
}
.chiffre__libelle { margin: .5rem 0 0; color: var(--encre-doux); font-size: .9rem; }
/* Sur mobile, le tableau defile seul : la page ne deborde jamais. */
.tableau-defile { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tableau-defile .tableau { min-width: 36rem; }
.tableau tbody th {
  background: none;
  color: var(--encre);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

/* ==========================================================================
   32. Pages interieures : cascades, titres de section, retour en haut
   --------------------------------------------------------------------------
   L'accueil racontait deja son histoire au defilement ; les fiches, listes
   et tableaux s'affichaient d'un bloc. Meme grammaire ici, plus sobre : on
   consulte un prix, on ne regarde pas une bande-annonce.
   ========================================================================== */

/* --- Cascade ---------------------------------------------------------------
   Posee par le script sur les seules lignes sous la ligne de flottaison ;
   --cd, le rang d'arrivee, decale chacune de la precedente. */
.js-anim .cascade {
  /* La cascade remplace l'animation de chargement des listes : une
     animation l'emporte sur l'etat cache et montrerait la ligne trop tot. */
  animation: none;
  transition: opacity .6s var(--souple), transform .75s var(--souple);
  transition-delay: var(--cd, 0ms);
}
/* Les lignes de liste portent une animation par rang (nth-child) : il faut
   au moins autant de poids pour la couper. */
.js-anim .bloc--liste .liste > li.cascade:nth-child(n) { animation: none; }
.js-anim .cascade--fin { transition: none; }
.js-anim .cascade:not(.cascade--vue) { opacity: 0; transform: translateY(16px); }
/* Une rangee de tableau ne bouge pas, elle se devoile : decalee, la
   derniere deborderait du cadre qui fait defiler le tableau sur mobile, et
   ce cadre gagnerait un ascenseur vertical qui capte la molette. */
.js-anim tr.cascade:not(.cascade--vue) { transform: none; }
/* Les chiffres de l'etude arrivent de plus loin, avec un leger recul. */
.js-anim .chiffre.cascade:not(.cascade--vue) { transform: translateY(28px) scale(.97); }

/* --- Titres de section -----------------------------------------------------
   Ils se levent depuis une ligne invisible, comme les grands titres mot a
   mot. La zone finale deborde un peu pour ne pas rogner les jambages. */
.js-anim :is(.bloc, .appel)[data-reveler] > h2,
.js-anim [data-reveler] :is(.bloc, .appel) > h2 {
  clip-path: inset(-.2em -.3em -.35em -.3em);
  transition: clip-path .9s var(--souple) .12s, transform .9s var(--souple) .12s;
}
.js-anim :is(.bloc, .appel)[data-reveler]:not(.vu) > h2,
.js-anim [data-reveler]:not(.vu) :is(.bloc, .appel) > h2 {
  clip-path: inset(-.2em -.3em 100% -.3em);
  transform: translateY(.45em);
}

/* --- Retour en haut --------------------------------------------------------
   L'anneau trace la part de page deja lue, comme la barre sous l'en-tete. */
.haut {
  position: fixed;
  inset-inline-end: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--blanc);
  color: var(--vert);
  box-shadow: var(--ombre-2);
  opacity: 0;
  transform: translateY(14px) scale(.85);
  pointer-events: none;
  transition: opacity .35s var(--souple), transform .45s var(--souple), background var(--vite) ease, color var(--vite) ease;
}
.haut[hidden] { display: none; }
.haut.visible { opacity: 1; transform: none; pointer-events: auto; }
.haut svg { display: block; width: 100%; height: 100%; overflow: visible; }
.haut circle { fill: none; stroke-width: 2.5; }
.haut__rail { stroke: var(--ligne); transition: stroke var(--vite) ease; }
.haut__anneau {
  stroke: var(--vert);
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--lu, 0));
  transform: rotate(-90deg);
  transform-origin: 24px 24px;
  transition: stroke var(--vite) ease;
}
/* En arabe, l'anneau tourne dans le sens de la lecture. */
[dir="rtl"] .haut__anneau { transform: rotate(-90deg) scaleY(-1); }
.haut__fleche {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s var(--souple);
}
.haut:hover { background: var(--vert-fond); color: #fff; }
.haut:hover .haut__rail { stroke: rgba(255, 255, 255, .25); }
.haut:hover .haut__anneau { stroke: #fff; }
.haut:hover .haut__fleche { transform: translateY(-3px); }
.haut:active { transform: scale(.94); }
.haut:focus-visible { outline: 3px solid var(--vert-vif); outline-offset: 3px; }
/* Le bandeau de consentement tient le bas de l'ecran : le bouton attend. */
body:has(.consentement:not([hidden])) .haut { display: none; }
/* Avec la publicite, une banniere peut s'ancrer en bas sur mobile. */
@media (max-width: 48rem) {
  .avec-pub .haut { bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
}
@media (pointer: coarse) { .haut { width: 3.25rem; height: 3.25rem; } }

@media (prefers-reduced-motion: reduce) {
  .js-anim .cascade:not(.cascade--vue) { opacity: 1; transform: none; }
  .js-anim [data-reveler]:not(.vu) :is(.bloc, .appel) > h2,
  .js-anim :is(.bloc, .appel)[data-reveler]:not(.vu) > h2 { clip-path: none; transform: none; }
}
@media print { .haut { display: none !important; } }

/* ==========================================================================
   33. Points d'attention
   --------------------------------------------------------------------------
   Peu d'endroits, ceux qui servent le visiteur : le prix, l'economie, le
   generique le moins cher, ce qu'il reste a payer, le bouton qui mene plus
   loin. Chaque effet joue une ou quelques fois, puis se tait : un signal
   qui clignote sans fin ne se lit plus. Ceux qui attendent une section ou
   une ligne encore hors de l'ecran restent en pause jusqu'a son arrivee.
   ========================================================================== */

/* --- Le prix : un filet se trace dessous, une fois les rouleaux arretes --- */
.prix:not(.prix--hopital) .prix__valeur { position: relative; width: fit-content; }
.prix:not(.prix--hopital) .prix__valeur::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -.16em;
  height: 3px;
  border-radius: 2px;
  background: var(--vert-vif);
  transform: scaleX(0);
  transform-origin: left;
  animation: filet-trace .9s var(--souple) 2.1s forwards;
}
[dir="rtl"] .prix:not(.prix--hopital) .prix__valeur::after { transform-origin: right; }
@keyframes filet-trace { to { transform: scaleX(1); } }

/* --- L'economie : son chiffre ressaute, puis le cadre appelle deux fois --- */
.economie {
  animation: monter .6s var(--souple) .35s both, eco-appel 1.5s ease-out 2.7s 2;
}
@keyframes eco-appel {
  from { box-shadow: 0 0 0 0 rgba(194, 65, 12, .38); }
  to   { box-shadow: 0 0 0 16px rgba(194, 65, 12, 0); }
}
.economie__chiffre {
  width: fit-content;
  transform-origin: left center;
  animation: eco-saut .7s cubic-bezier(.3, 1.6, .5, 1) 2.4s both;
}
[dir="rtl"] .economie__chiffre { transform-origin: right center; }
@keyframes eco-saut { 0%, 100% { transform: none; } 45% { transform: scale(1.12); } }

/* --- Le generique le moins cher : sa ligne se surligne, et le reste ------- */
.liste > li:has(.puce--moinscher) > .article {
  background-image: linear-gradient(var(--safran-pale), var(--safran-pale));
  background-repeat: no-repeat;
  background-position: left;
  background-size: 0 100%;
  box-shadow: inset 3px 0 0 var(--safran);
  animation: surligner 1.1s var(--souple) .45s forwards;
}
[dir="rtl"] .liste > li:has(.puce--moinscher) > .article { background-position: right; box-shadow: inset -3px 0 0 var(--safran); }
@keyframes surligner { to { background-size: 100% 100%; } }

/* --- Ce qu'il reste a payer : un trait de surligneur sous le montant ----- */
.total dd {
  padding-inline: .2em;
  background-image: linear-gradient(transparent 58%, var(--vert-pale) 58%);
  background-repeat: no-repeat;
  background-position: left;
  background-size: 0 100%;
  animation: surligner .9s var(--souple) 1.3s forwards;
}
[dir="rtl"] .total dd { background-position: right; }

/* --- L'etude : l'economie de chaque ligne ressort, en orange ------------- */
.tableau td.num strong {
  display: inline-block;
  color: var(--safran);
  animation: eco-saut .6s cubic-bezier(.3, 1.6, .5, 1) .5s both;
}

/* --- Boutons d'appel : un reflet passe, la fleche pousse ------------------
   Trois passages espaces, puis plus rien. Sur les boutons clairs, un reflet
   blanc ne se verrait pas : il prend le vert. */
:is(.appel, .bande, .officine) .bouton:not(.bouton--fantome)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%);
  transform: translateX(-130%);
  pointer-events: none;
  animation: reflet-bouton 4.5s ease-in-out 1.3s 3;
}
.appel .bouton:not(.bouton--fantome)::before,
.bande .bouton--clair:not(.bouton--fantome)::before {
  background: linear-gradient(110deg, transparent 30%, rgba(11, 166, 120, .3) 50%, transparent 70%);
}
@keyframes reflet-bouton { 0% { transform: translateX(-130%); } 24%, 100% { transform: translateX(130%); } }
:is(.appel, .bande, .officine) .bouton:not(.bouton--fantome)::after {
  animation: fleche-pousse 4.5s ease-in-out 1.3s 3;
}
@keyframes fleche-pousse { 0%, 30%, 100% { transform: none; } 14% { transform: translateX(5px); } }
[dir="rtl"] :is(.appel, .bande, .officine) .bouton:not(.bouton--fantome)::after { animation-name: fleche-pousse-rtl; }
@keyframes fleche-pousse-rtl { 0%, 30%, 100% { transform: none; } 14% { transform: translateX(-5px); } }
/* Au survol, la fleche obeit a la souris, plus a l'animation. */
:is(.appel, .bande, .officine) .bouton:not(.bouton--fantome):hover::after { animation: none; }

/* --- Pause tant que la section ou la ligne n'est pas arrivee ------------- */
.js-anim [data-reveler]:not(.vu) .bouton::before,
.js-anim [data-reveler]:not(.vu) .bouton::after,
.js-anim [data-reveler]:not(.vu) .total dd,
.js-anim [data-reveler]:not(.vu) .article,
.js-anim [data-reveler]:not(.vu) td.num strong,
.js-anim .cascade:not(.cascade--vue) dd,
.js-anim .cascade:not(.cascade--vue) .article,
.js-anim .cascade:not(.cascade--vue) td.num strong { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .prix:not(.prix--hopital) .prix__valeur::after { transform: none; }
  .liste > li:has(.puce--moinscher) > .article,
  .total dd { background-size: 100% 100%; }
  :is(.appel, .bande, .officine) .bouton::before { display: none; }
}

/* ==========================================================================
   34. La une en relief : constellation, lumiere, surligneur, cartes 3D
   --------------------------------------------------------------------------
   Ce que le visiteur voit en arrivant. Des medicaments en volume gravitent
   autour de l'etiquette de prix, a des profondeurs differentes ; la souris
   les deplace plus ou moins selon leur distance. Tout est decor : rien
   n'est lu par un lecteur d'ecran, rien ne retarde la recherche.
   ========================================================================== */

/* --- Constellation ------------------------------------------------------- */
.flotte { position: absolute; inset: 0; pointer-events: none; }
.objet {
  position: absolute;
  inset-inline-start: var(--x);
  top: var(--y);
  z-index: 0;
  /* --mx et --my, poses par le script, vont de -0,5 a 0,5. */
  transform: translate3d(calc(var(--mx, 0) * var(--z) * -54px), calc(var(--my, 0) * var(--z) * -40px), 0);
  transition: transform 1s var(--souple);
}
/* Les plus proches passent devant l'etiquette, les autres derriere. */
.flotte .objet:is(:nth-child(1), :nth-child(3), :nth-child(5)) { z-index: 2; }
@media (max-width: 61.99rem) {
  /* Sur telephone, la scene touche presque les bords : les objets restent
     dans l'ecran plutot que d'en etre coupes. */
  .objet { inset-inline-start: clamp(-.4rem, var(--x), calc(100% - 3.2rem)); }
  /* L'etiquette y est plus etroite : la gelule orange mordait sur le prix
     du generique. Elle passe derriere. */
  .flotte .objet:nth-child(3) { z-index: 0; }
}
.objet > i {
  position: relative;
  display: block;
  scale: var(--z);
  rotate: var(--r);
  opacity: calc(.4 + var(--z) * .6);
  filter: blur(calc((1 - var(--z)) * 2.2px));
  /* scale et opacity pour l'arrivee, translate et rotate pour le
     flottement : deux animations qui ne se disputent aucune propriete. */
  animation:
    objet-arrive 1.4s cubic-bezier(.2, 1.4, .4, 1) calc(.85s + var(--d) * 110ms) backwards,
    objet-flotte var(--t) ease-in-out calc(var(--d) * -1.4s) infinite alternate;
}
@keyframes objet-arrive { from { opacity: 0; scale: .05; } }
@keyframes objet-flotte {
  from { translate: 0 -10px; }
  to   { translate: 0 12px; rotate: calc(var(--r) + 16deg); }
}

/* Gelule : deux coques, un vernis, une ombre portee. */
.objet--gelule > i {
  --c1: var(--vert-vif);
  --c2: #F4EFE6;
  width: 3.7rem;
  height: 1.5rem;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .55) 0, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .16) 100%),
    linear-gradient(90deg, var(--c1) 50%, var(--c2) 50%);
  box-shadow: 0 12px 20px -8px rgba(0, 0, 0, .5), inset 0 -2px 3px rgba(0, 0, 0, .15);
}
.objet--safran > i { --c1: #EA580C; }
.objet--blanche > i { --c1: #F4EFE6; --c2: var(--vert); }

/* Comprime : un disque bombe, secable. */
.objet--comprime > i {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff 0, #F1ECE2 55%, #DCD5C6 100%);
  box-shadow: 0 12px 18px -8px rgba(0, 0, 0, .5), inset 0 -3px 4px rgba(0, 0, 0, .1);
}
.objet--comprime > i::after {
  content: "";
  position: absolute;
  inset-inline: 18%;
  top: calc(50% - 1px);
  height: 2px;
  border-radius: 1px;
  background: rgba(0, 0, 0, .1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7);
}
.objet--petit > i { width: 1.8rem; height: 1.8rem; }

/* Croix d'officine, lumineuse. */
.objet--croix > i {
  width: 2rem;
  height: 2rem;
  background:
    linear-gradient(#7CF0B8, #7CF0B8) center / 34% 100% no-repeat,
    linear-gradient(#7CF0B8, #7CF0B8) center / 100% 34% no-repeat;
  border-radius: 3px;
}
.objet--petite > i { width: 1.3rem; height: 1.3rem; }
/* Hors du pan vert, sur fond clair, la croix prend le vert franc. */
@media (max-width: 61.99rem) {
  .objet--croix > i {
    background:
      linear-gradient(var(--vert-vif), var(--vert-vif)) center / 34% 100% no-repeat,
      linear-gradient(var(--vert-vif), var(--vert-vif)) center / 100% 34% no-repeat;
  }
}

/* --- Lumiere qui suit la souris sur le pan vert ---------------------------
   Un halo, et la trame millimetree qui s'eclaire dessous. Coupes au pan par
   clip-path ; sans souris, la lumiere reste posee sur l'etiquette. */
@media (min-width: 62rem) {
  .une__decor::before,
  .une__decor::after {
    content: "";
    position: absolute;
    inset: 0;
    clip-path: inset(0 0 0 var(--une-pan));
    pointer-events: none;
    transition: opacity .6s ease;
  }
  [dir="rtl"] .une__decor::before,
  [dir="rtl"] .une__decor::after { clip-path: inset(0 var(--une-pan) 0 0); }
  .une__decor::before {
    background: radial-gradient(30rem circle at var(--lx, 78%) var(--ly, 42%), rgba(124, 240, 184, .13), transparent 62%);
    animation: lumiere-allume 1.6s ease 1s backwards;
  }
  .une__decor::after {
    background-image:
      linear-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, .16) 1px, transparent 1px);
    background-size: 28px 28px;
    background-position: var(--une-pan) 0;
    -webkit-mask-image: radial-gradient(13rem circle at var(--lx, 78%) var(--ly, 42%), #000, transparent 75%);
    mask-image: radial-gradient(13rem circle at var(--lx, 78%) var(--ly, 42%), #000, transparent 75%);
    opacity: 0;
  }
  .une.eclairee .une__decor::after { opacity: 1; }
  @keyframes lumiere-allume { from { opacity: 0; } }
}

/* --- Le mot qui compte, surligne ------------------------------------------
   Le dernier mot du grand titre (« médicament ? », « ديالك؟ ») passe au vert
   et recoit un trait de surligneur, une fois les mots montes. */
.une__titre .mot:last-child > span {
  color: var(--vert);
  background-image: linear-gradient(transparent 66%, rgba(11, 166, 120, .24) 66%, rgba(11, 166, 120, .24) 90%, transparent 90%);
  background-repeat: no-repeat;
  background-position: left;
  background-size: 0 100%;
  animation: mot-monter .95s var(--souple) both, surligner 1.1s var(--souple) both;
  animation-delay: calc(var(--i, 0) * 75ms + 120ms), 1.45s;
}
[dir="rtl"] .une__titre .mot:last-child > span { background-position: right; }

/* --- Cartes qui s'inclinent sous la souris, avec un reflet ---------------- */
:is(.symptomes-tuiles, .symptomes-grille) a,
.chiffres .chiffre { position: relative; }
:is(.symptomes-tuiles, .symptomes-grille) a.incline3d,
.chiffres .chiffre.incline3d {
  transform: perspective(800px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateY(-4px);
  transition: transform .14s linear, box-shadow .35s var(--souple), border-color .35s var(--souple);
  box-shadow: var(--ombre-2);
}
:is(.symptomes-tuiles, .symptomes-grille) a::after,
.chiffres .chiffre::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(14rem circle at var(--gx, 50%) var(--gy, 50%), rgba(11, 166, 120, .12), transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
}
:is(.symptomes-tuiles, .symptomes-grille) a.incline3d::after,
.chiffres .chiffre.incline3d::after { opacity: 1; }
.symptomes-tuiles__tous::after { background: radial-gradient(14rem circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .18), transparent 70%); }

@media (prefers-reduced-motion: reduce) {
  .objet { transform: none; }
  .une__titre .mot:last-child > span { background-size: 100% 100%; }
  .une__decor::after { display: none; }
}
@media print { .flotte { display: none !important; } }

/* ==========================================================================
   35. Grand spectacle : rideau, halo de recherche, chapitres, lecture,
       sections qui s'ouvrent, constellations des pages interieures
   ========================================================================== */

/* --- Rideau d'ouverture ----------------------------------------------------
   Pose par intro.js sur la premiere page de la visite. La croix d'officine
   se trace, le nom se leve, un trait de chargement court ; puis deux pans,
   le vert nuit et le vert vif juste derriere, se levent sur la page. Le
   rideau ne capte aucun clic : il ne bloque jamais le visiteur. */
.rideau { display: none; }
html.intro .rideau { display: block; position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.rideau__pan { position: absolute; inset: 0; clip-path: inset(0 0 0 0); }
.rideau__pan--vif { background: var(--vert-vif); animation: rideau-lever .85s cubic-bezier(.76, 0, .24, 1) 1.3s forwards; }
.rideau__pan--nuit {
  display: grid;
  place-items: center;
  background: var(--vert-nuit);
  animation: rideau-lever .85s cubic-bezier(.76, 0, .24, 1) 1.12s forwards;
}
@keyframes rideau-lever { to { clip-path: inset(0 0 100% 0); } }
.rideau__marque { display: grid; justify-items: center; gap: 1.1rem; animation: marque-part .45s ease-in 1.02s forwards; }
@keyframes marque-part { to { opacity: 0; transform: translateY(-26px) scale(.96); } }
.rideau__croix { width: 4.5rem; height: 4.5rem; overflow: visible; }
.rideau__croix path {
  fill: #7CF0B8;
  fill-opacity: 0;
  stroke: #7CF0B8;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: croix-trace .7s cubic-bezier(.65, 0, .35, 1) .08s forwards, croix-remplit .35s ease .62s forwards;
}
@keyframes croix-trace { to { stroke-dashoffset: 0; } }
@keyframes croix-remplit { to { fill-opacity: 1; } }
.rideau__nom {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 560;
  letter-spacing: -.02em;
  color: #fff;
  clip-path: inset(0 -.3em 100% -.3em);
  transform: translateY(.45em);
  animation: nom-leve .7s var(--souple) .32s forwards;
}
[dir="rtl"] .rideau__nom { letter-spacing: 0; }
@keyframes nom-leve { to { clip-path: inset(-.3em -.3em -.4em -.3em); transform: none; } }
.rideau__charge { position: relative; width: 9rem; height: 2px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .14); }
.rideau__charge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #7CF0B8;
  transform: scaleX(0);
  transform-origin: left;
  animation: charge-court 1s cubic-bezier(.65, 0, .35, 1) .05s forwards;
}
[dir="rtl"] .rideau__charge::after { transform-origin: right; }
@keyframes charge-court { to { transform: scaleX(1); } }
/* Tant que le rideau est baisse, la page attend pour s'animer. */
html.intro-attente main *,
html.intro-attente main *::before,
html.intro-attente main *::after { animation-play-state: paused !important; }

/* --- Halo autour de la recherche -------------------------------------------
   Un arc de lumiere fait trois fois le tour du champ a l'arrivee, puis
   s'eteint ; il revient, en continu, tant qu'on y tape. */
@property --halo { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
:is(.une, .bandeau__recherche) .chercher::before {
  content: "";
  position: absolute;
  inset: -3px;
  padding: 3px;
  border-radius: calc(var(--r-m) + 3px);
  background: conic-gradient(from var(--halo), transparent 0 60%, var(--vert-vif) 80%, #7CF0B8 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  animation: halo-tourne 2.6s linear 1.9s 3, halo-vit 7.8s ease 1.9s;
}
:is(.une, .bandeau__recherche) .chercher:focus-within::before {
  opacity: 1;
  animation: halo-tourne 2.6s linear infinite;
}
@keyframes halo-tourne { to { --halo: 360deg; } }
@keyframes halo-vit { 0%, 100% { opacity: 0; } 6%, 92% { opacity: 1; } }

/* --- Grands numeros de chapitre --------------------------------------------
   Le numero, en creux et en tres grand, glisse derriere le titre plus
   lentement que la page. */
.chapitre__tete[data-num] { isolation: isolate; }
@media (max-width: 59.99rem) { .chapitre__tete[data-num] { position: relative; } }
.chapitre__tete[data-num]::before {
  content: attr(data-num);
  position: absolute;
  z-index: -1;
  inset-inline-end: 0;
  top: -.2em;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(7rem, 4rem + 9vw, 13rem);
  font-weight: 600;
  line-height: .8;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(11, 107, 79, .17);
  pointer-events: none;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .chapitre__tete[data-num]::before {
      animation: numero-glisse linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    /* Le numero glisse plus lentement que la page et bascule en profondeur,
       comme une grande lettre decoupee qu'on depasse. */
    @keyframes numero-glisse {
      from { transform: perspective(700px) translateY(50%) rotateX(38deg); opacity: .2; }
      45%  { opacity: 1; }
      to   { transform: perspective(700px) translateY(-50%) rotateX(-22deg); }
    }

    /* --- La citation se lit mot a mot, au rythme du defilement --------- */
    .exergue--lecture { view-timeline-name: --lecture; }
    .exergue--lecture .mot > span {
      animation: mot-lu linear both;
      animation-timeline: --lecture;
      animation-range: cover calc(16% + var(--i, 0) * 1.3%) cover calc(24% + var(--i, 0) * 1.3%);
    }
    @keyframes mot-lu { from { opacity: .14; } }

    /* --- La bande verte et le pied de page s'ouvrent en arrivant ------- */
    .bande {
      animation: carte-ouvre linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 32%;
    }
    @keyframes carte-ouvre {
      from { clip-path: inset(0 5% round 2.5rem); }
      to   { clip-path: inset(0 0 round 0); }
    }
    .pied {
      animation: pied-ouvre linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 85%;
    }
    @keyframes pied-ouvre {
      from { clip-path: inset(0 4% round 2.5rem 2.5rem 0 0); }
      to   { clip-path: inset(0 0 round 0); }
    }
  }
}

/* --- Constellations des pages interieures --------------------------------- */
.flotte--bandeau { z-index: 0; }
.bandeau__grille { position: relative; z-index: 1; }
@media (max-width: 55.99rem) { .flotte--bandeau { display: none; } }
.fiche__visuel { position: relative; }
.flotte--fiche .objet > i { scale: calc(var(--z) * .72); }
@media (max-width: 30rem) { .flotte--fiche { display: none; } }
/* Sur fond blanc, la croix menthe s'effacerait : elle prend le vert vif. */
:is(.flotte--bandeau, .flotte--fiche) .objet--croix > i {
  background:
    linear-gradient(var(--vert-vif), var(--vert-vif)) center / 34% 100% no-repeat,
    linear-gradient(var(--vert-vif), var(--vert-vif)) center / 100% 34% no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  .rideau { display: none !important; }
  :is(.une, .bandeau__recherche) .chercher::before { display: none; }
}
@media print { .rideau, .chapitre__tete[data-num]::before { display: none !important; } }

/* ==========================================================================
   36. Volume : la boite de la une, et des entrees en trois dimensions
   --------------------------------------------------------------------------
   Du CSS seulement, aucune bibliotheque : la page reste aussi legere en 3G.
   Rien n'utilise d'opacite ni de filtre sur un element en volume, qui le
   ferait retomber a plat.
   ========================================================================== */

/* --- La boite --------------------------------------------------------------
   La face avant porte l'etiquette ; les autres faces sont posees juste
   au-dela de ses bords, puis repliees vers l'arriere autour de ce bord :
   ainsi leur endroit regarde vers l'exterieur, et backface-visibility cache
   celles qui tournent le dos. --p est la profondeur de la boite. */
.vignette-scene { perspective: 1500px; }
.vignette-scene:has(.boite)::before { display: none; }
.boite-pivot {
  position: relative;
  transform-style: preserve-3d;
  animation: boite-balance 9s ease-in-out 2.2s infinite alternate;
}
@keyframes boite-balance {
  from { transform: rotateY(-5deg) rotateX(1.5deg) translateY(0); }
  to   { transform: rotateY(6deg) rotateX(-2deg) translateY(-10px); }
}
.boite {
  --p: 5.5rem;
  --base-x: 10deg;
  --base-y: -21deg;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--base-x) + var(--rx, 0deg))) rotateY(calc(var(--base-y) + var(--ry, 0deg)));
  transition: transform .7s var(--souple);
  animation: boite-arrive 1.6s cubic-bezier(.2, .9, .25, 1) .15s backwards;
}
[dir="rtl"] .boite { --base-y: 21deg; }
@media (max-width: 61.99rem) {
  .boite { --p: 3.6rem; --base-y: -15deg; }
  [dir="rtl"] .boite { --base-y: 15deg; }
}
.vignette-scene.suit .boite { transition: transform .15s linear; }
/* Sur telephone, la boite ne doit pas prendre de place a l'etiquette : le
   prix passait sur deux lignes. Marges et carton se font minces. */
@media (max-width: 40rem) {
  .vignette-scene:has(.boite) { padding-inline: .5rem; }
  .boite__avant { padding: 2.2rem .5rem .8rem; }
  .boite .vignette { padding-inline: 1.05rem; }
}
@keyframes boite-arrive {
  from { transform: translateY(70px) rotateX(40deg) rotateY(calc(var(--base-y) * 4)) scale(.7); }
}

.boite__face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.boite__avant {
  position: relative;
  padding: 2.6rem 1.35rem 1.5rem;
  border-radius: 3px;
  background-color: #FBF8F2;
  /* Le carton : une trame d'impression a peine visible. */
  background-image:
    linear-gradient(rgba(11, 107, 79, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 107, 79, .05) 1px, transparent 1px);
  background-size: 16px 16px;
  box-shadow: inset 0 0 0 1px rgba(23, 32, 28, .06), inset 0 -18px 30px -24px rgba(23, 32, 28, .25);
}
/* Bandeau de marque en haut de la face, comme sur un emballage. */
.boite__bande {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  gap: .45rem;
  height: 1.7rem;
  padding-inline: .8rem;
  background: var(--vert-fond);
  color: #fff;
  font-family: var(--serif);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 3px 3px 0 0;
}
.boite__bande i {
  width: .8rem;
  height: .8rem;
  background:
    linear-gradient(#fff, #fff) center / 34% 100% no-repeat,
    linear-gradient(#fff, #fff) center / 100% 34% no-repeat;
}
/* L'etiquette suit la boite : elle ne tourne plus seule. */
.boite .vignette { transform: rotate(var(--pente)); }

.boite__droite, .boite__gauche { position: absolute; top: 0; bottom: 0; width: var(--p); }
.boite__haut, .boite__bas { position: absolute; left: 0; right: 0; height: var(--p); }
.boite__droite {
  left: 100%;
  transform-origin: left center;
  transform: rotateY(90deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-block: 2.3rem 1.2rem;
  background: linear-gradient(90deg, #E9E2D4, #DCD4C4);
  border-radius: 3px;
}
.boite__droite::before,
.boite__gauche::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1.7rem;
  background: var(--vert-fonce);
  border-radius: 3px 3px 0 0;
}
.boite__droite b,
.boite__gauche b {
  writing-mode: vertical-rl;
  max-height: 70%;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--vert-nuit);
}
/* Petit code-barres vertical sur le cote. */
.boite__droite i {
  width: 1.5rem;
  height: 2.6rem;
  background: repeating-linear-gradient(0deg, var(--encre) 0 2px, transparent 2px 4px, var(--encre) 4px 5px, transparent 5px 7px);
  opacity: .55;
}
.boite__gauche {
  right: 100%;
  transform-origin: right center;
  transform: rotateY(-90deg);
  display: grid;
  place-items: center;
  background: linear-gradient(270deg, #EFE9DD, #E2DACB);
  border-radius: 3px;
}
.boite__haut {
  bottom: 100%;
  transform-origin: center bottom;
  transform: rotateX(90deg);
  background: linear-gradient(0deg, #0E7A5A, var(--vert-fonce));
  border-radius: 3px;
}
/* Le pli du rabat du dessus. */
.boite__haut::after { content: ""; position: absolute; inset-inline: 8%; top: 46%; height: 2px; background: rgba(255, 255, 255, .18); }
.boite__bas {
  top: 100%;
  transform-origin: center top;
  transform: rotateX(-90deg);
  background: #CFC6B4;
  border-radius: 3px;
}
/* Ombre au sol, sous la boite. */
.boite__ombre {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .38), transparent);
  transform: translateZ(-60px) rotateX(80deg);
  pointer-events: none;
}

/* --- Fiche : l'etiquette de prix se pose en basculant ---------------------*/
.prix {
  transform-origin: top center;
  animation: prix-pose 1.1s cubic-bezier(.2, 1.15, .3, 1) .1s backwards;
}
@keyframes prix-pose { from { opacity: 0; transform: perspective(900px) rotateX(-80deg); } }
.economie {
  transform-origin: top center;
  animation: eco-pose 1s cubic-bezier(.2, 1.15, .3, 1) .45s both, eco-appel 1.5s ease-out 2.7s 2;
}
@keyframes eco-pose { from { opacity: 0; transform: perspective(900px) rotateX(-75deg); } }
/* L'une comme l'autre s'inclinent sous la souris. */
.prix.incline3d,
.economie.incline3d {
  transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform .14s linear;
}

/* --- Entrees en volume -----------------------------------------------------
   Tuiles, chiffres et villes basculent depuis l'arriere, charniere en haut,
   comme des fiches qu'on releve ; les formes pivotent comme des cartes. */
.js-anim .vu .symptomes-tuiles li {
  transform-origin: top center;
  animation: bascule .8s cubic-bezier(.2, 1.1, .3, 1) backwards;
  animation-delay: calc(var(--i, 0) * 70ms + 150ms);
}
@keyframes bascule { from { opacity: 0; transform: perspective(800px) rotateX(-70deg) translateY(10px); } }
.js-anim .chiffre.cascade,
.js-anim .villes > li.cascade { transform-origin: top center; }
.js-anim .chiffre.cascade:not(.cascade--vue),
.js-anim .villes > li.cascade:not(.cascade--vue) { transform: perspective(800px) rotateX(-60deg); }
.js-anim .vu .formes-grille li {
  animation: carte-tourne .9s cubic-bezier(.2, 1.1, .3, 1) backwards;
  animation-delay: calc(var(--i, 0) * 70ms + 200ms);
}
@keyframes carte-tourne { from { opacity: 0; transform: perspective(700px) rotateY(-85deg); } }
[dir="rtl"] .js-anim .vu .formes-grille li { animation-name: carte-tourne-rtl; }
@keyframes carte-tourne-rtl { from { opacity: 0; transform: perspective(700px) rotateY(85deg); } }

/* --- Le grand nom du pied de page, en relief -------------------------------
   Des ombres decalees pixel par pixel donnent l'epaisseur d'une lettre
   decoupee. */
.pied__geant {
  text-shadow:
    1px 1px 0 rgba(0, 0, 0, .10), 2px 2px 0 rgba(0, 0, 0, .10), 3px 3px 0 rgba(0, 0, 0, .09),
    4px 4px 0 rgba(0, 0, 0, .09), 5px 5px 0 rgba(0, 0, 0, .08), 6px 6px 0 rgba(0, 0, 0, .08),
    7px 7px 0 rgba(0, 0, 0, .07), 8px 8px 0 rgba(0, 0, 0, .07), 10px 12px 24px rgba(0, 0, 0, .25);
}

@media (prefers-reduced-motion: reduce) {
  .boite { transform: rotateX(var(--base-x)) rotateY(var(--base-y)); }
  .boite-pivot { animation: none; }
}

/* ==========================================================================
   37. Encore du volume : la boite tourne au defilement, les mots et les
       lignes basculent, les lignes se soulevent au survol
   ========================================================================== */

/* Mots des titres : la charniere est en bas du mot. */
.mots-anim .mot > span { transform-origin: 50% 100%; }
/* Le grand nom du pied de page se redresse depuis sa base. */
.pied__geant { transform-origin: 50% 100%; }

/* --- La boite tourne quand on descend --------------------------------------
   Un etage de plus entre le balancement et la souris : en quittant la une,
   la boite pivote d'abord pour montrer son cote, puis bascule pour montrer
   son dessus en reculant.

   Sur telephone, la boite est sous le texte : elle arrive couchee comme sur
   une table, se redresse face au lecteur quand elle passe au milieu de
   l'ecran — le prix s'y lit droit —, puis bascule vers l'avant en sortant.

   Le navigateur calcule tout cela seul, image par image, hors du fil
   principal (animation-timeline). */
:root { --cote: 1; }
[dir="rtl"] { --cote: -1; }
.boite-defile { transform-style: preserve-3d; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 62rem) {
    .boite-defile {
      animation: boite-tourne linear both;
      animation-timeline: scroll(root);
      animation-range: 0 90vh;
    }
    @keyframes boite-tourne {
      0%   { transform: rotateY(0deg) rotateX(0deg) translateZ(0); animation-timing-function: ease-in-out; }
      55%  { transform: rotateY(calc(var(--cote) * -32deg)) rotateX(2deg) translateZ(-6px); animation-timing-function: ease-in; }
      100% { transform: rotateY(calc(var(--cote) * -40deg)) rotateX(22deg) translateZ(-90px); }
    }
  }
  @media (prefers-reduced-motion: no-preference) and (max-width: 61.99rem) {
    .boite-defile {
      animation: boite-table linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    @keyframes boite-table {
      0%       { transform: rotateY(calc(var(--cote) * -16deg)) rotateX(30deg) translateZ(-50px); animation-timing-function: ease-out; }
      42%, 58% { transform: rotateY(0deg) rotateX(0deg) translateZ(0); animation-timing-function: ease-in; }
      100%     { transform: rotateY(calc(var(--cote) * 14deg)) rotateX(-24deg) translateZ(-40px); }
    }
  }
}

/* --- Lignes de listes : elles basculent depuis l'arriere ------------------ */
.js-anim .liste > li.cascade { transform-origin: top center; }
.js-anim .liste > li.cascade:not(.cascade--vue) { transform: perspective(800px) rotateX(-50deg); }

/* --- Au survol, la ligne se souleve vers le lecteur ----------------------- */
@media (pointer: fine) {
  .liste .article {
    position: relative;
    border-radius: var(--r-m);
    transition: background var(--vite) ease, transform .35s var(--souple), box-shadow .35s var(--souple);
  }
  .liste .article:hover {
    z-index: 1;
    transform: perspective(700px) translateZ(16px) rotateX(4deg);
    box-shadow: var(--ombre-2);
  }
}

/* ==========================================================================
   38. Corrections mobiles, et volume au doigt
   ========================================================================== */

/* --- Le prix ne clignote plus ----------------------------------------------
   Arrive par la transition de page, le prix de la fiche est deja a sa place :
   ni bascule ni apparition (intro.js pose la classe avant le premier
   affichage). L'illustration garde son flottement, l'encadre d'economie son
   appel. */
html.arrivee-vt .prix,
html.arrivee-vt .prix__valeur { animation: none; }
html.arrivee-vt .economie { animation: eco-appel 1.5s ease-out 1.2s 2; }
html.arrivee-vt .fiche__image { animation: flotter 6s ease-in-out 1s infinite; }

/* --- Sur telephone, la boite se lit de face --------------------------------
   Elle est sous le texte : la rotation de l'ordinateur l'avait deja tournee
   de quarante degres le temps d'y arriver, et le prix s'en allait de biais.
   Elle a sa propre rotation (boite-table), droite au milieu de l'ecran, et
   le doigt la fait tourner. La scene ne remonte pas : elle est deja basse. */
@media (max-width: 61.99rem) {
  .vignette-scene { animation: none !important; touch-action: pan-y; }
}
/* La face avant ne se retourne jamais : sans backface-visibility, Safari ne
   fait plus disparaitre par instants l'etiquette et ses chiffres. */
.boite__avant { backface-visibility: visible; -webkit-backface-visibility: visible; }

/* --- Le radar devient un sol ---------------------------------------------
   Couche a plat sous l'apercu, il se lit comme une carte vue en perspective :
   les ondes partent du patient sur le sol du quartier. */
.radar { transform: perspective(1100px) rotateX(58deg) scale(1.15); transform-origin: 50% 55%; }

/* --- Pieces qui se retournent au survol -------------------------------------
   Les illustrations des formes et des symptomes font un tour complet sur
   elles-memes, comme une piece qu'on fait tourner. */
@media (hover: hover) {
  .formes-grille li:hover img,
  .symptomes-tuiles a:hover img,
  .symptomes-grille a:hover img {
    transform: perspective(500px) rotateY(360deg) scale(1.08);
    transition: transform .9s cubic-bezier(.2, .9, .25, 1);
  }
}

/* --- Le grand titre de la une prend de l'epaisseur ------------------------- */
.une__titre {
  text-shadow:
    0 1px 0 #E4DED2,
    0 2px 0 #DCD5C8,
    0 3px 0 #D3CCBE,
    0 10px 18px rgba(23, 32, 28, .14);
}

/* --- Boutons d'appel : on les enfonce ------------------------------------- */
:is(.une, .bande, .officine, .appel) .bouton:not(.bouton--fantome) {
  box-shadow: 0 4px 0 rgba(0, 0, 0, .22), 0 10px 18px -8px rgba(0, 0, 0, .35);
}
:is(.une, .bande, .officine, .appel) .bouton:not(.bouton--fantome):active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .22), 0 4px 8px -6px rgba(0, 0, 0, .3);
}

/* ==========================================================================
   39. Theme sombre immersif
   La nuit d'une officine : un fond presque noir, des lueurs vertes venues
   de la croix, des surfaces de verre. La boite de la une reste un objet de
   carton imprime, eclaire dans la scene : elle garde la palette claire.
   ========================================================================== */

html { color-scheme: dark; }
::selection { background: rgba(52, 227, 164, .32); color: #fff; }
:focus-visible { outline-color: var(--vert-vif); }

/* --- Lueurs d'ambiance -------------------------------------------------------
   Fixees a l'ecran et peintes une fois : elles ne coutent rien au
   defilement. Pas de filtre, pas d'animation. */
body { background: var(--papier); }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(18, 164, 122, .20), transparent 60%),
    radial-gradient(45rem 35rem at -10% 35%, rgba(52, 227, 164, .07), transparent 60%),
    radial-gradient(50rem 30rem at 60% 110%, rgba(18, 164, 122, .10), transparent 60%);
}

/* --- Palette claire, la ou il y a du papier ---------------------------------
   Les variables se redefinissent sur l'objet : tout ce qu'il contient
   reprend les couleurs imprimees, sans toucher a une seule regle. */
.boite,
.vignette {
  --papier:      #F7F4EE;
  --papier-2:    #EFEBE2;
  --blanc:       #FFFFFF;
  --encre:       #17201C;
  --encre-doux:  #58625D;
  --encre-pale:  #8C948F;
  --ligne:       #E2DDD2;
  --ligne-forte: #CFC8BA;
  --vert:        #0B6B4F;
  --vert-fond:   #0B6B4F;
  --vert-fonce:  #084D39;
  --vert-nuit:   #0B3B2E;
  --vert-vif:    #0BA678;
  --vert-pale:   #E3EFE8;
  --vert-brume:  #F0F5F1;
  --safran:      #C2410C;
  --safran-pale: #FBEDE3;
  --safran-bord: #F1C9AE;
  --prix:        #0B3B2E;
  color: var(--encre);
}

/* --- Les prix ---------------------------------------------------------------*/
.prix__valeur,
.article__prix { color: var(--prix); }
.prix__valeur { text-shadow: 0 0 40px rgba(52, 227, 164, .25); }

/* --- Boutons --------------------------------------------------------------- */
/* Au survol, le bouton s'allume plutot que de s'eclaircir : un fond plus
   clair ferait retomber le contraste du texte blanc sous 4,5:1. */
.chercher button:hover,
.bouton:not(.bouton--fantome):not(.bouton--clair):hover {
  background: #06704F;
  border-color: #06704F;
  box-shadow: 0 0 0 1px rgba(52, 227, 164, .35), 0 8px 28px -6px rgba(52, 227, 164, .45);
}
.bouton--clair,
.bientot .bouton,
.appel .bouton { background: var(--encre); border-color: var(--encre); color: var(--vert-nuit); }
.bouton--clair:hover,
.bientot .bouton:hover,
.appel .bouton:hover { background: #fff; border-color: #fff; color: var(--vert-nuit); }
.bouton--fantome:hover { color: var(--papier); }

/* --- En-tete de verre ------------------------------------------------------ */
.entete,
.entete.defile {
  background: rgba(7, 17, 14, .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom-color: var(--ligne);
}
.entete.defile { background: rgba(7, 17, 14, .86); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .9); }

/* --- Cartes et blocs : un liseré de lumiere sur le bord haut --------------- */
.bloc,
.symptomes-grille a,
.symptomes-tuiles a {
  background: linear-gradient(180deg, rgba(232, 241, 236, .035), transparent 40%), var(--blanc);
  box-shadow: inset 0 1px 0 rgba(232, 241, 236, .06);
}

/* --- Impression : retour au papier ------------------------------------------ */
@media print {
  :root {
    --papier: #FFFFFF; --papier-2: #EFEBE2; --blanc: #FFFFFF;
    --encre: #17201C; --encre-doux: #58625D; --encre-pale: #8C948F;
    --ligne: #E2DDD2; --ligne-forte: #CFC8BA;
    --vert: #0B6B4F; --vert-fonce: #084D39; --vert-nuit: #0B3B2E; --vert-pale: #E3EFE8; --vert-brume: #F0F5F1;
    --safran: #C2410C; --safran-pale: #FBEDE3; --safran-bord: #F1C9AE;
    --prix: #0B3B2E;
  }
  html { color-scheme: light; }
  body::before { display: none; }
  .prix__valeur { text-shadow: none; }
}

/* --- Textes fonces ecrits en dur pour le papier ---------------------------- */
.avis-retrait,
.bandeau-avis { color: #FFC9A8; }
.avis-retrait__titre { color: #FFB27F; }
.economie p { color: #F5C7AC; }
.fait b { color: var(--prix); }
/* Le fil des prix etait peint a l'encre, devenue claire : il reste une bande noire. */
.fil { background: #040A08; border-bottom-color: var(--ligne); }

/* ==========================================================================
   40. Telephone : en-tete d'une ligne, menu plein ecran, tableaux en cartes
   ========================================================================== */

.entete__langue,
.nav__ouvrir { display: none; }

@media (max-width: 47.99rem) {
  /* Une seule rangee : logo, langue, menu. La navigation se replie. */
  .nav-repliable .entete__rangee {
    position: static;
    flex-wrap: nowrap;
    gap: .5rem;
    min-height: 3.5rem;
    padding-block: 0;
  }
  .nav-repliable .entete__logo { margin-inline-end: auto; }
  .nav-repliable .entete__logo img { height: 30px; }
  .nav-repliable .entete__langue,
  .nav-repliable .nav__ouvrir {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 40px;
    padding: 0 .75rem;
    border: 1px solid var(--ligne-forte);
    border-radius: var(--r-s);
    background: transparent;
    color: var(--encre);
    font: 600 .875rem/1 var(--sans);
    text-decoration: none;
    cursor: pointer;
  }
  /* Le bouton est la des le premier affichage (intro.js pose la classe) :
     l'attendre ferait sauter la page quand dwaplus.js le revele. */
  .nav-repliable .nav__ouvrir[hidden] { display: inline-flex; }
  .nav-repliable .nav__ouvrir[aria-expanded="true"] { border-color: var(--vert-vif); color: var(--vert-vif); }

  /* Deux traits qui se croisent a l'ouverture. */
  .nav__burger { position: relative; width: 16px; height: 10px; }
  .nav__burger i {
    position: absolute; inset-inline: 0; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform .35s var(--souple), top .35s var(--souple);
  }
  .nav__burger i:first-child { top: 0; }
  .nav__burger i:last-child { top: 8px; }
  [aria-expanded="true"] .nav__burger i:first-child { top: 4px; transform: rotate(45deg); }
  [aria-expanded="true"] .nav__burger i:last-child { top: 4px; transform: rotate(-45deg); }

  /* Le panneau. L'en-tete porte un filtre de fond, qui rend « fixed »
     relatif a lui : le panneau se place donc sous l'en-tete, en absolu, et
     prend toute la hauteur restante. */
  .nav-repliable .nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    height: calc(100vh - 3.5rem);
    height: calc(100dvh - 3.5rem);
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 2rem;
    overflow-y: auto;
    background: radial-gradient(30rem 20rem at 100% 0, rgba(18, 164, 122, .16), transparent 70%), #050C0A;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .4s var(--souple), visibility 0s linear .4s;
  }
  .nav-repliable .menu-ouvert .nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .25s ease, transform .4s var(--souple);
  }
  .nav-repliable .nav a {
    display: flex;
    align-items: center;
    min-height: 3.75rem;
    padding: 0;
    border-bottom: 1px solid var(--ligne);
    color: var(--encre);
    font-family: var(--serif);
    font-size: 1.65rem;
    font-weight: 560;
  }
  .nav-repliable .nav a::after { display: none; }
  .nav-repliable .nav a[aria-current="page"] { color: var(--vert-vif); }
  .nav-repliable .nav .nav__langue { display: none; }
  /* Les liens montent l'un apres l'autre. */
  .nav-repliable .menu-ouvert .nav a { animation: menu-lien .5s var(--souple) both; }
  .nav-repliable .menu-ouvert .nav a:nth-child(2) { animation-delay: .05s; }
  .nav-repliable .menu-ouvert .nav a:nth-child(3) { animation-delay: .1s; }
  .nav-repliable .menu-ouvert .nav a:nth-child(4) { animation-delay: .15s; }
  .nav-repliable .menu-ouvert .nav a:nth-child(5) { animation-delay: .2s; }
  @keyframes menu-lien { from { opacity: 0; transform: translateY(14px); } }

  /* Menu ouvert : la page ne defile plus dessous, l'en-tete ne se retire pas. */
  html.menu-ouvert { overflow: hidden; }
  .entete.menu-ouvert { transform: none; }
}

/* --- Recherche : le texte d'aide se termine par « … » au lieu d'etre coupe */
.chercher input { text-overflow: ellipsis; }
@media (max-width: 26rem) {
  .chercher button { padding-inline: 1rem; }
}

/* --- Rangee des faits : sur un telephone etroit, les libelles respirent ---- */
@media (max-width: 26rem) {
  .fait > span { font-size: .75rem; line-height: 1.35; }
}

/* --- Tableaux : sur telephone, chaque ligne devient une carte -------------
   Le tableau defilait en largeur sans que rien ne l'indique : il paraissait
   coupe. Chaque cellule porte le nom de sa colonne (data-titre). */
@media (max-width: 40rem) {
  .tableau-defile { overflow: visible; }
  .tableau-defile .tableau { min-width: 0; background: transparent; }
  .tableau-defile .tableau thead { display: none; }
  .tableau-defile .tableau,
  .tableau-defile .tableau tbody,
  .tableau-defile .tableau tr,
  .tableau-defile .tableau th,
  .tableau-defile .tableau td { display: block; }
  .tableau-defile .tableau tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .35rem 1rem;
    padding: .9rem 0;
    border-bottom: 1px solid var(--ligne);
  }
  .tableau-defile .tableau tbody tr:hover { background: transparent; }
  .tableau-defile .tableau th,
  .tableau-defile .tableau td { padding: 0; border: 0; }
  .tableau-defile .tableau tbody th { grid-column: 1 / -1; font-size: .9375rem; }
  .tableau-defile .tableau td[data-titre]::before {
    content: attr(data-titre);
    display: block;
    color: var(--encre-pale);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .tableau-defile .tableau td.num { grid-column: 1 / -1; text-align: start; }
}

/* ==========================================================================
   41. Scene en volume au defilement
   --------------------------------------------------------------------------
   Tout ce qui suit le defilement est decrit ici, et calcule par le
   navigateur hors du fil principal (animation-timeline) : meme quand la
   page travaille, le mouvement ne saute pas une image. Seules la
   transformation et l'opacite bougent : la carte graphique deplace des
   calques deja peints, rien n'est recalcule ni repeint.

   Sans cette liaison (Firefox, ancien Safari), ces mouvements n'existent
   pas : la page reste immobile, avec ses entrees au chargement.
   ========================================================================== */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {

    /* --- Les sections montent du fond en se redressant ---------------------
       Comme posees sur une table qu'on regarde de face. Les blocs a reveler
       de premier niveau seulement : un bloc imbrique bougerait deux fois.
       La bande verte a deja sa propre ouverture. « backwards » : arrivee,
       la section n'a plus aucune transformation ; son texte est net et ses
       colonnes collantes collent. */
    main [data-reveler]:not([data-reveler] [data-reveler]):not(.bande) {
      transform-origin: 50% 0%;
      animation: section-monte linear backwards;
      animation-timeline: view();
      animation-range: cover 2vh cover 40vh;
    }
    @keyframes section-monte {
      from { opacity: .2; transform: perspective(1100px) translate3d(0, var(--monte-y, 90px), var(--monte-z, -160px)) rotateX(var(--monte-r, 16deg)); }
    }
    /* L'apparition au chargement (.vu) leur laisse la place : sa transition
       rattrapait chaque image avec 0,7 s de retard, et une tres longue
       section pouvait finir de monter avant d'etre marquee vue. Les
       animations internes (mots, barres, compteurs) attendent toujours .vu. */
    .js-anim main [data-reveler]:not([data-reveler] [data-reveler]):not(.bande) { transition: none; }
    .js-anim main [data-reveler]:not([data-reveler] [data-reveler]):not(.bande):not(.vu) { opacity: 1; transform: none; }

    /* --- Les medicaments flottants de la une filent selon leur profondeur -- */
    .une { view-timeline: --une block; }
    .une .objet {
      animation: objet-file linear both;
      animation-timeline: --une;
      animation-range: exit-crossing 0% exit-crossing 100%;
    }
    @keyframes objet-file { to { translate: 0 calc(var(--z, 1) * var(--file, -160px)); } }

    /* --- Les aurores du fond suivent la lecture -----------------------------
       Leur derive lente reste dans transform, au temps ; le defilement les
       deplace par translate, qui s'y ajoute. */
    .fond .fond__aurore--1 { animation: aurore-1 34s ease-in-out infinite alternate, aurore-suit-1 linear both; }
    .fond .fond__aurore--2 { animation: aurore-2 41s ease-in-out infinite alternate, aurore-suit-2 linear both; }
    .fond .fond__aurore--3 { animation: aurore-3 47s ease-in-out infinite alternate, aurore-suit-3 linear both; }
    .fond .fond__aurore { animation-timeline: auto, scroll(root); }
    @keyframes aurore-suit-1 { to { translate: calc(var(--cote) * -10vw * var(--ampli, 1)) calc(40vh * var(--ampli, 1)); } }
    @keyframes aurore-suit-2 { to { translate: calc(var(--cote) * 15vw * var(--ampli, 1)) calc(-30vh * var(--ampli, 1)); } }
    @keyframes aurore-suit-3 { to { translate: 0 calc(-55vh * var(--ampli, 1)); } }

    /* --- Les lettres des intertitres se relevent ----------------------------
       scene.js les decoupe et numerote (--c) ; chacune bascule a son tour,
       charniere en bas, a mesure que le titre monte dans l'ecran. */
    .titre-scene { view-timeline: --titre block; }
    .titre-mot { display: inline-block; white-space: nowrap; }
    .titre-car {
      display: inline-block;
      transform-origin: 50% 100%;
      animation: car-releve linear backwards;
      animation-timeline: --titre;
      animation-range: cover calc(6vh + var(--c, 0) * var(--pas, .5vh)) cover calc(20vh + var(--c, 0) * var(--pas, .5vh));
    }
    @keyframes car-releve { from { opacity: 0; transform: perspective(500px) translateY(55%) rotateX(-85deg); } }

    /* --- Le radar est un sol qui tourne sous l'apercu -----------------------
       Comme une carte du quartier posee a plat, qu'on fait pivoter en
       passant : les ondes et les officines tournent avec elle. */
    .radar {
      animation: radar-tourne linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    @keyframes radar-tourne {
      from { transform: perspective(1100px) rotateX(66deg) rotateZ(calc(var(--cote) * -32deg)) scale(1.08); }
      to   { transform: perspective(1100px) rotateX(50deg) rotateZ(calc(var(--cote) * 26deg)) scale(1.2); }
    }
  }
}
/* Sur telephone, moins d'amplitude : l'ecran est etroit et proche. */
@media (max-width: 61.99rem) {
  main [data-reveler] { --monte-y: 50px; --monte-z: -70px; --monte-r: 9deg; }
  .une .objet { --file: -90px; }
  .fond { --ampli: .5; }
}

/* --- Les decors au repos hors de l'ecran -----------------------------------
   scene.js pose .repos sur la une, le fil des prix et la scene du radar
   quand ils sont loin de l'ecran : leurs boucles se figent, et reprennent
   un peu avant de revenir. Les mouvements lies au defilement ne sont pas
   concernes. */
.repos :is(.boite-pivot, .objet > i, .pouls__trace, .une__croix, .fil__liste, .radar__onde, .radar__balayage, .apercu__frappe i),
.repos :is(.vignette__code, .vignette__prix, .radar__officine, .fil__titre)::before,
.repos :is(.vignette__code, .vignette__prix, .radar__officine, .fil__titre)::after { animation-play-state: paused; }

/* La une : un halo vert sous la boite, comme une lampe d'officine. */
.une .vignette-scene::after {
  content: "";
  position: absolute;
  inset: 10% 5% -5%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(52, 227, 164, .22), transparent 75%);
}

/* ==========================================================================
   42. Fond vivant et finitions de mouvement
   ========================================================================== */

/* --- Le fond de scene --------------------------------------------------------
   Fixe a l'ecran, derriere tout. Les aurores sont des degrades deja flous :
   aucun filtre, seules leurs transformations bougent, ce que la carte
   graphique fait sans effort. */
.fond {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}
.fond__aurore {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  will-change: transform;
}
.fond__aurore--1 {
  top: -35vmax;
  inset-inline-end: -20vmax;
  background: radial-gradient(closest-side, rgba(18, 164, 122, .30), rgba(18, 164, 122, .08) 55%, transparent);
  animation: aurore-1 34s ease-in-out infinite alternate;
}
.fond__aurore--2 {
  top: 30vh;
  inset-inline-start: -30vmax;
  width: 60vmax;
  height: 60vmax;
  background: radial-gradient(closest-side, rgba(20, 140, 160, .20), rgba(20, 140, 160, .05) 55%, transparent);
  animation: aurore-2 41s ease-in-out infinite alternate;
}
.fond__aurore--3 {
  top: 75vh;
  inset-inline-end: -10vmax;
  width: 55vmax;
  height: 55vmax;
  background: radial-gradient(closest-side, rgba(52, 227, 164, .14), rgba(52, 227, 164, .03) 55%, transparent);
  animation: aurore-3 47s ease-in-out infinite alternate;
}
@keyframes aurore-1 { to { transform: translate(-12vw, 10vh) scale(1.15); } }
@keyframes aurore-2 { to { transform: translate(14vw, -8vh) scale(.9); } }
@keyframes aurore-3 { to { transform: translate(-8vw, -14vh) scale(1.2); } }

.fond__poussiere { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Grain de pellicule : un bruit dessine une fois, en SVG. Il casse les
   bandes visibles des grands degrades sombres. */
.fond__grain {
  position: absolute;
  inset: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Telephone : deux aurores suffisent, plus petites. */
@media (max-width: 47.99rem) {
  .fond__aurore--3 { display: none; }
  .fond__aurore { width: 90vmax; height: 90vmax; }
}
@media (prefers-reduced-motion: reduce) {
  .fond__aurore { animation: none; }
  .fond__poussiere { display: none; }
}
@media print { .fond { display: none; } }

/* --- Projecteur : une tache de lumiere suit la souris sur la carte ------- */
@media (pointer: fine) {
  .bloc,
  .symptomes-grille a,
  .symptomes-tuiles a:not(.symptomes-tuiles__tous) {
    background:
      radial-gradient(24rem circle at var(--lx, 50%) var(--ly, -40rem), rgba(52, 227, 164, .11), transparent 45%),
      linear-gradient(180deg, rgba(232, 241, 236, .035), transparent 40%),
      var(--blanc);
  }
  .bloc { transition: border-color .4s var(--souple); }
  .bloc:hover { border-color: rgba(52, 227, 164, .22); }
}

/* --- Sections translucides -----------------------------------------------
   Peintes d'une couleur pleine, elles cachaient le fond et coupaient la
   page en tranches nettes. Translucides, la scene continue derriere elles. */
.symptomes-une,
.faits,
.bandeau { background: rgba(232, 241, 236, .018); }
.bande,
.appel,
.bientot { background: rgba(10, 42, 33, .62); }
.pied { background: linear-gradient(180deg, rgba(10, 42, 33, .35), rgba(10, 42, 33, .85) 30%); }

/* La poussiere demarre apres le chargement : elle s'allume en fondu. */
.fond__poussiere { opacity: 0; transition: opacity 1.6s ease; }
.fond__poussiere.allumee { opacity: 1; }

/* ==========================================================================
   43. Partager une fiche, continuer la visite
   ========================================================================== */

/* --- Partager le prix --------------------------------------------------------
   Sous le prix et l'economie : envoyer la fiche a un proche, en un geste.
   Le vert de WhatsApp, avec un texte sombre : il reste lisible au soleil. */
.partage {
  border: 1px solid var(--ligne);
  border-radius: var(--r-m);
  padding: 1.15rem 1.3rem 1.25rem;
  background: linear-gradient(180deg, rgba(37, 211, 102, .06), transparent 70%), var(--blanc);
}
.partage__titre { margin: 0 0 .3rem; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #5BE38F; }
[dir="rtl"] .partage__titre { letter-spacing: 0; font-size: .875rem; }
.partage__chapo { margin: 0 0 .9rem; font-size: .875rem; color: var(--encre-doux); }
.partage__boutons { display: flex; flex-wrap: wrap; gap: .5rem; }
.partage__boutons .bouton { flex: 1 1 auto; justify-content: center; gap: .5rem; }
/* Le bouton de partage du telephone reste cache tant que le script ne l'a
   pas montre : la regle des boutons (display) l'emportait sur hidden. */
.partage__boutons [hidden] { display: none; }
.bouton--whatsapp {
  display: inline-flex;
  align-items: center;
  background: #25D366;
  border-color: #25D366;
  color: #052E16;
}
.bouton--whatsapp:hover { background: #3EE07A; border-color: #3EE07A; color: #052E16; }
.bouton--whatsapp svg { flex: none; }

/* --- Les plus recherches -------------------------------------------------- */
.populaires { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ligne); }
.populaires__titre { margin: 0 0 .2rem; font-family: var(--serif); font-size: var(--t-h3); font-weight: 560; }
.populaires .exemples a { padding: .4rem .75rem; font-size: .875rem; }

@media print { .partage, .populaires { display: none; } }

/* ==========================================================================
   44. Fiche complete, laboratoires, cout d'une ordonnance
   ========================================================================== */

/* --- Le titre du prix ------------------------------------------------------
   L'etiquette au-dessus du prix est devenue un vrai titre (« Prix de X au
   Maroc ») : elle garde son allure d'etiquette, pas celle d'un titre. */
h2.prix__etiquette {
  font-family: var(--sans);
  line-height: 1.5;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

/* --- Fiche d'identite ------------------------------------------------------ */
.identite .paire dd { max-width: 62%; overflow-wrap: anywhere; font-weight: 600; }
.identite .paire dd a { color: var(--vert-fonce); text-underline-offset: .2em; }
@media (max-width: 30rem) { .identite .paire dd { max-width: none; } }

/* --- Questions frequentes de la fiche -------------------------------------- */
.faq h3 { margin: 1.35rem 0 .35rem; font-size: 1.0625rem; line-height: 1.35; }
.faq h3:first-of-type { margin-top: .25rem; }
.faq p { margin: 0; color: var(--encre-doux); }

/* --- Appel vers le calcul d'ordonnance, sous le partage -------------------- */
.ordo-appel {
  border: 1px dashed var(--ligne-forte);
  border-radius: var(--r-m);
  padding: 1.05rem 1.3rem 1.2rem;
}
.ordo-appel__titre { margin: 0 0 .2rem; font-weight: 750; }
.ordo-appel__chapo { margin: 0 0 .85rem; font-size: .875rem; color: var(--encre-doux); }
.ordo-appel .bouton { width: 100%; justify-content: center; }

/* --- Cout d'une ordonnance -------------------------------------------------- */
.ordo { padding-top: .25rem; }

.ordo__colonnes { display: grid; gap: 1.5rem; align-items: start; }
.ordo__colonnes > * { min-width: 0; }
.ordo__colonnes .bloc { margin-top: 0; }
.ordo__bilan { display: grid; gap: 1.25rem; }
@media (min-width: 62rem) {
  .ordo__colonnes { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .ordo__bilan { position: sticky; top: 5.5rem; }
}

.ordo__ligne { padding: .95rem 0 1rem; }
.ordo__tete { display: flex; align-items: center; gap: .9rem; }
.ordo__tete a.article__nom { color: var(--encre); text-decoration: none; }
.ordo__tete a.article__nom:hover { color: var(--vert-fonce); text-decoration: underline; text-underline-offset: .2em; }
.ordo__prix { flex: none; text-align: end; font-variant-numeric: tabular-nums lining-nums; }
.ordo__prix strong { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; white-space: nowrap; }
.ordo__unite { display: block; font-size: .8125rem; color: var(--encre-doux); white-space: nowrap; }

.ordo__actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .7rem; padding-inline-start: 3.8rem; }
.ordo__qte { display: inline-flex; align-items: center; gap: .15rem; border: 1px solid var(--ligne-forte); border-radius: 999px; padding: .15rem; }
.ordo__qte b { min-width: 5.2rem; text-align: center; font-size: .875rem; font-weight: 650; }
.ordo__qte a,
.ordo__qte span {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
  color: var(--encre);
}
.ordo__qte a:hover { background: var(--vert-pale); color: var(--vert-fonce); }
.ordo__qte span { color: var(--encre-pale); opacity: .5; }
.ordo__retirer { font-size: .875rem; color: var(--encre-doux); text-underline-offset: .2em; }
.ordo__retirer:hover { color: var(--rouge); }

.ordo__gen {
  margin: .8rem 0 0;
  margin-inline-start: 3.8rem;
  padding: .6rem .8rem;
  border: 1px solid var(--safran-bord);
  border-radius: var(--r-s, 8px);
  background: var(--safran-pale);
  font-size: .875rem;
}
.ordo__gen a { font-weight: 700; color: var(--safran); text-underline-offset: .2em; white-space: nowrap; }
@media (max-width: 30rem) {
  .ordo__actions { padding-inline-start: 0; margin-inline-start: 0; }
  .ordo__gen { margin-inline-start: 0; }
  .ordo__actions { margin-top: .85rem; }
}

.ordo__eco dd { color: var(--safran); }
.ordo__bilan .paire.total { border-top: 0; margin-top: 0; padding-top: 0; }
.ordo__vider { margin: 0; text-align: center; }
.ordo__vider a { color: var(--encre-doux); text-underline-offset: .2em; }
.ordo__exemples { margin-top: 1.5rem; padding-top: 0; border-top: 0; }
.ordo__etapes { margin: 0; padding-inline-start: 1.3rem; }
.ordo__etapes li { margin-bottom: .5rem; }
.ordo__etapes li::marker { color: var(--vert-vif); font-weight: 700; }

@media print { .ordo-appel, .ordo__ajout, .ordo__actions, .ordo__vider, .ordo__gen a { display: none; } }
/* Une ligne d'ordonnance porte ses boutons : une seule colonne, toujours. */
.bloc--liste.ordo__liste .liste { grid-template-columns: 1fr; }

/* --- Suggestions dans le bandeau --------------------------------------------
   Le bandeau rogne ce qui depasse (ses objets flottants). La liste des
   suggestions, elle, doit en sortir : sur un bandeau court, on n'en voyait
   que les deux premieres lignes. Tant qu'elle est ouverte, le bandeau ne
   rogne plus et passe devant la suite de la page. */
.bandeau:has(.suggestions:not(:empty)) { overflow: visible; z-index: 20; }
.bandeau:has(.suggestions:not(:empty)) .flotte { visibility: hidden; }

/* ==========================================================================
   45. Version 7 : classes therapeutiques, accueil enrichi, repere de prix,
       sommaire de fiche, consultes recemment
   ========================================================================== */

/* --- Classes therapeutiques : une carte par specialite ----------------------
   Un filet vert en tete de carte, comme l'onglet d'un classeur d'officine. */
.classes-grille {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
}
.classe-carte {
  position: relative;
  display: grid;
  gap: .45rem;
  align-content: start;
  height: 100%;
  padding: 1.15rem 1.2rem 1.1rem;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--r-m);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform var(--moyen) var(--souple), border-color var(--vite) ease, background var(--vite) ease;
}
.classe-carte::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--vert);
  transform: scaleX(.18);
  transform-origin: left;
  transition: transform var(--moyen) var(--souple);
}
[dir="rtl"] .classe-carte::before { transform-origin: right; }
.classe-carte:hover, .classe-carte:focus-visible { transform: translateY(-3px); border-color: var(--ligne-forte); background: var(--vert-brume); }
.classe-carte:hover::before, .classe-carte:focus-visible::before { transform: scaleX(1); }
.classe-carte__nom { font-family: var(--serif); font-size: 1.2rem; font-weight: 560; line-height: 1.2; color: var(--encre); }
.classe-carte__intro { font-size: .875rem; color: var(--encre-doux); line-height: 1.45; }
.classe-carte__meta { margin-top: auto; padding-top: .35rem; font-size: .8125rem; font-weight: 600; color: var(--vert-fonce); font-variant-numeric: tabular-nums; }
.classes-grille--accueil { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.classes-grille--accueil .classe-carte { padding: 1rem 1.05rem .95rem; }
.classes-grille--accueil .classe-carte__nom { font-size: 1.0625rem; }

/* --- Chiffres cles d'une classe ---------------------------------------------*/
.chiffres-cles {
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--ligne);
  border-radius: var(--r-m);
  background: var(--blanc);
  overflow: hidden;
}
@media (min-width: 44rem) { .chiffres-cles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.chiffres-cles > div { display: flex; flex-direction: column-reverse; gap: .15rem; padding: 1rem 1.2rem; border-inline-end: 1px solid var(--ligne); border-block-end: 1px solid var(--ligne); margin: 0 -1px -1px 0; }
.chiffres-cles dt { font-size: .8125rem; color: var(--encre-doux); }
.chiffres-cles dd { margin: 0; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.1; color: var(--prix); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }

/* --- Accueil : les plus recherches -------------------------------------------
   Un classement, avec son rang : la ligne se lit comme une cote. */
.tops { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--encre); }
@media (min-width: 72rem) { .tops { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; } }
.top {
  display: grid;
  grid-template-columns: 1.4rem 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  padding: .85rem .35rem;
  border-bottom: 1px solid var(--ligne);
  color: inherit;
  text-decoration: none;
  transition: background var(--vite) ease, padding-inline var(--moyen) var(--souple);
}
.top:hover, .top:focus-visible { background: var(--vert-brume); padding-inline: .75rem; }
.top__rang { font-family: var(--serif); font-size: .9375rem; font-weight: 500; color: var(--encre-pale); font-variant-numeric: tabular-nums lining-nums; text-align: center; }
.top__visuel { width: 2.5rem; height: 2.5rem; }
.top__corps { display: grid; gap: .1rem; min-width: 0; }
.top__nom { font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
[dir="rtl"] .top__nom { text-align: right; }
.top__meta { font-size: .8125rem; color: var(--encre-doux); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top__prix { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--prix); white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.top:hover .top__rang { color: var(--vert-vif); }

/* --- Accueil : les guides -----------------------------------------------------*/
.guides-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--encre); }
.guides-liste a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .25rem 1.5rem;
  align-items: center;
  padding: 1.15rem .35rem;
  border-bottom: 1px solid var(--ligne);
  color: inherit;
  text-decoration: none;
  transition: background var(--vite) ease, padding-inline var(--moyen) var(--souple);
}
.guides-liste a:hover, .guides-liste a:focus-visible { background: var(--vert-brume); padding-inline: .75rem; }
.guides-liste__titre { font-family: var(--serif); font-size: 1.25rem; font-weight: 560; line-height: 1.25; }
.guides-liste__desc { grid-column: 1; font-size: .9375rem; color: var(--encre-doux); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guides-liste__fleche { grid-column: 2; grid-row: 1 / span 2; color: var(--vert); font-weight: 700; transition: transform var(--moyen) var(--souple); }
[dir="rtl"] .guides-liste__fleche { transform: scaleX(-1); }
.guides-liste a:hover .guides-liste__fleche { transform: translateX(4px); }
[dir="rtl"] .guides-liste a:hover .guides-liste__fleche { transform: scaleX(-1) translateX(4px); }
.guides-liste a:hover .guides-liste__titre { color: var(--vert-fonce); }

/* --- Consultes recemment ------------------------------------------------------
   N'existe que si le script l'a rempli. Une rangee qui defile au doigt sur
   telephone, une grille sur grand ecran. */
.recents { margin-block: 1.75rem 0; padding: 1.1rem 1.2rem 1rem; border: 1px dashed var(--ligne-forte); border-radius: var(--r-m); background: var(--papier-2); }
.recents[hidden] { display: none; }
.recents__tete { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.recents__titre { margin: 0; font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--vert-fonce); }
[dir="rtl"] .recents__titre { letter-spacing: 0; font-size: .875rem; }
.recents__effacer { border: 0; background: none; padding: .25rem 0; font: inherit; font-size: .8125rem; color: var(--encre-doux); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.recents__effacer:hover { color: var(--encre); }
.recents__liste { list-style: none; margin: .8rem 0 0; padding: 0 0 .25rem; display: flex; gap: .6rem; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.recents__liste li { flex: 0 0 auto; scroll-snap-align: start; }
.recents__liste a {
  display: grid;
  grid-template-columns: 2.25rem auto;
  grid-template-rows: auto auto;
  column-gap: .65rem;
  align-items: center;
  min-width: 11rem;
  max-width: 15rem;
  padding: .6rem .85rem .6rem .65rem;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--r-s);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--vite) ease, transform var(--moyen) var(--souple);
}
.recents__liste a:hover, .recents__liste a:focus-visible { border-color: var(--vert); transform: translateY(-2px); }
.recents__liste img { grid-row: 1 / span 2; width: 2.25rem; height: 2.25rem; }
.recents__nom { font-size: .875rem; font-weight: 650; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[dir="rtl"] .recents__nom { text-align: right; }
.recents__prix { font-family: var(--serif); font-weight: 600; color: var(--prix); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.recents__note { margin: .55rem 0 0; font-size: .75rem; color: var(--encre-pale); }
@media (min-width: 60rem) {
  .recents__liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); overflow: visible; }
  .recents__liste a { max-width: none; }
}
.fiche__principal > .recents { margin-top: 0; }

/* Titre de la liste, quand la recherche repropose les dernieres fiches. */
.suggestions .s-titre { margin: 0; padding: .55rem .9rem .35rem; font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-pale); }
[dir="rtl"] .suggestions .s-titre { letter-spacing: 0; font-size: .8125rem; }

/* --- Sommaire de la fiche ----------------------------------------------------
   Des onglets discrets sous le titre : la fiche est longue sur telephone. */
.fiche-som { margin-block: 0 1.5rem; }
.fiche-som ul { list-style: none; margin: 0; padding: 0 0 .2rem; display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; }
.fiche-som ul::-webkit-scrollbar { display: none; }
.fiche-som li { flex: 0 0 auto; }
.fiche-som a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: .35rem .9rem;
  border: 1px solid var(--ligne-forte);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--encre-doux);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--vite) ease, border-color var(--vite) ease, background var(--vite) ease;
}
.fiche-som a:hover, .fiche-som a:focus-visible { color: var(--encre); border-color: var(--vert); background: var(--vert-pale); }
/* La cible d'une ancre ne se glisse pas sous l'en-tete fixe. */
#prix-titre, #equivalents, #remboursement, #autres-titre, #identite-titre, #faq-titre { scroll-margin-top: 6.5rem; }
@media print { .fiche-som, .recents { display: none; } }

/* --- Repere de prix -----------------------------------------------------------
   Une regle graduee, du moins cher au plus cher des equivalents. Le vert
   est du cote des economies, l'orange du cote cher ; le repere dit ou tombe
   le prix de la fiche. */
.repere { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--ligne-forte); }
.repere__titre { margin: 0 0 .7rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-doux); }
[dir="rtl"] .repere__titre { letter-spacing: 0; font-size: .8125rem; }
.repere__rail {
  position: relative;
  height: .5rem;
  border-radius: 999px;
  background: linear-gradient(to right, var(--vert-vif), var(--vert) 35%, #C9A24A 70%, var(--safran));
}
[dir="rtl"] .repere__rail { background: linear-gradient(to left, var(--vert-vif), var(--vert) 35%, #C9A24A 70%, var(--safran)); }
.repere__point {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: clamp(.55rem, calc(var(--p, 0) * 100%), calc(100% - .55rem));
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--prix);
  border: 3px solid var(--blanc);
  box-shadow: 0 0 0 2px var(--prix), 0 2px 8px rgba(0, 0, 0, .5);
  transform: translate(-50%, -50%);
}
[dir="rtl"] .repere__point { transform: translate(50%, -50%); }
.repere__bornes { margin: .45rem 0 0; display: flex; justify-content: space-between; font-size: .8125rem; color: var(--encre-doux); font-variant-numeric: tabular-nums lining-nums; }
.repere__phrase { margin: .55rem 0 0; font-size: .875rem; color: var(--encre); }
.repere__phrase a { font-weight: 700; color: var(--vert-fonce); text-underline-offset: .2em; white-space: nowrap; }

/* --- Haut de la fiche ----------------------------------------------------------
   Sur un ecran large mais bas (un portable a 125 % de zoom : 504 px de
   haut), le prix tombait sous le bas de la fenetre, derriere le fil
   d'Ariane, la recherche puis l'en-tete empiles. Sur grand ecran, le fil
   et la recherche partagent une ligne, et l'en-tete se resserre. */
.fiche__haut > .chercher { max-width: 44rem; }
@media (min-width: 60rem) {
  .fiche__haut { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.25rem; }
  .fiche__haut > .ariane--fiche { margin: 0; min-width: 0; flex: 1 1 auto; }
  .fiche__haut > .chercher { flex: 0 0 24rem; margin-bottom: 0; }
  .fiche__haut .chercher input[type="search"] { padding-block: .5rem; font-size: 1rem; }
  .fiche__entete { margin-bottom: 1.25rem; padding-bottom: 1.25rem; }
  .fiche-som { margin-bottom: 1.25rem; }
}
@media (min-width: 60rem) and (max-height: 44rem) {
  .fiche__image { width: 5.5rem; height: 5.5rem; }
  .fiche__visuel figcaption { display: none; }
  .fiche__sous { line-height: 1.6; margin-top: .2rem; }
  .fiche__haut { margin-bottom: .6rem; }
  .fiche__entete { margin-bottom: .7rem; padding-bottom: .7rem; }
  .fiche-som { margin-bottom: .7rem; }
  .fiche-som a { min-height: 2rem; padding-block: .2rem; }
  .prix { padding-top: 1.1rem; }
  .prix__valeur { margin-block: .4rem .6rem; }
}

/* --- 45. Version 7 : prix depuis 2014, meme famille, installation -------------
   La frise 2014 -> aujourd'hui sur la fiche : deux points relies par un
   trait, l'ancien prix barre, l'ecart en pastille. Vert pour une baisse,
   orange pour une hausse (l'orange reste la couleur de l'argent en jeu). */
.histo {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--ligne-forte);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: .4rem .75rem;
}
.histo__point { display: flex; flex-direction: column; gap: .1rem; font-variant-numeric: tabular-nums lining-nums; }
.histo__annee { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-pale); }
[dir="rtl"] .histo__annee { letter-spacing: 0; font-size: .75rem; }
.histo__point s { color: var(--encre-doux); text-decoration-thickness: 1.5px; text-decoration-color: var(--encre-pale); font-size: .95rem; }
.histo__point b { color: var(--prix); font-size: 1rem; }
.histo__trait {
  position: relative;
  height: 2px;
  min-width: 1.5rem;
  background: linear-gradient(to right, var(--encre-pale), var(--vert-vif));
  border-radius: 2px;
}
.histo__trait::before, .histo__trait::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  width: .55rem; height: .55rem;
  border-radius: 50%;
  transform: translateY(-50%);
}
.histo__trait::before { inset-inline-start: -.2rem; background: var(--encre-pale); }
.histo__trait::after { inset-inline-end: -.2rem; background: var(--vert-vif); box-shadow: 0 0 0 4px var(--lueur); }
[dir="rtl"] .histo__trait { background: linear-gradient(to left, var(--encre-pale), var(--vert-vif)); }
.histo__pct {
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 800;
  white-space: nowrap;
  background: var(--vert-pale);
  color: var(--vert-fonce);
}
.histo--hausse .histo__trait { background: linear-gradient(to right, var(--encre-pale), var(--safran)); }
.histo--hausse .histo__trait::after { background: var(--safran); box-shadow: 0 0 0 4px var(--safran-pale); }
.histo--hausse .histo__pct { background: var(--safran-pale); color: var(--safran); }
.histo--stable .histo__trait { background: var(--encre-pale); }
.histo--stable .histo__trait::after { background: var(--encre-doux); box-shadow: none; }
.histo--stable .histo__pct { background: var(--ligne); color: var(--encre-doux); }
.histo__lien { margin: .55rem 0 0; }
.histo__lien a { color: var(--vert-fonce); font-weight: 650; text-underline-offset: .2em; }
@media (prefers-reduced-motion: no-preference) {
  .histo__trait { transform-origin: left center; animation: histo-trait .9s var(--souple) .35s both; }
  [dir="rtl"] .histo__trait { transform-origin: right center; }
  @keyframes histo-trait { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* Dans la meme famille : des cartes basses, deux ou quatre par ligne. */
.famille { margin-top: 2.5rem; }
.famille__titre { margin: 0 0 .9rem; font-family: var(--serif); font-size: var(--t-h3); font-weight: 560; }
.famille__liste {
  margin: 0; padding: 0; list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: .6rem;
}
.famille__liste a {
  display: flex; flex-direction: column; gap: .15rem;
  height: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--ligne);
  border-radius: var(--r-m);
  background: var(--blanc);
  color: var(--encre);
  text-decoration: none;
  transition: border-color var(--vite), transform var(--vite) var(--souple), background var(--vite);
}
.famille__liste a:hover { border-color: var(--vert); background: var(--vert-brume); transform: translateY(-2px); }
.famille__nom { font-weight: 700; line-height: 1.3; }
.famille__meta { font-size: .8125rem; color: var(--encre-doux); }
.famille > .petit { margin: .9rem 0 0; }
.famille > .petit a { color: var(--vert-fonce); font-weight: 650; }

/* Etude 2014 : la repartition en une barre, les familles en barres. */
.repartition { margin: 1.5rem 0 0; }
.repartition__barre {
  display: flex;
  height: .9rem;
  border-radius: 999px;
  overflow: hidden;
  background: var(--ligne);
}
.repartition__part { flex: 0 0 calc(var(--part) * 1%); min-width: 3px; }
.repartition__part--baisse { background: linear-gradient(to right, var(--vert), var(--vert-vif)); }
.repartition__part--stable { background: var(--encre-pale); }
.repartition__part--hausse { background: var(--safran); }
.repartition__legende { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: .7rem; font-size: .875rem; color: var(--encre-doux); }
.repartition__puce { display: inline-block; width: .65rem; height: .65rem; border-radius: 50%; margin-inline-end: .4rem; vertical-align: baseline; }
.repartition__puce--baisse { background: var(--vert-vif); }
.repartition__puce--stable { background: var(--encre-pale); }
.repartition__puce--hausse { background: var(--safran); }

.barres { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.barres__ligne {
  display: grid;
  grid-template-columns: minmax(0, 15rem) 1fr auto;
  align-items: center;
  gap: .4rem 1rem;
}
.barres__nom { color: var(--encre); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.barres__nom:hover { color: var(--vert-fonce); text-decoration: underline; }
.barres__piste { height: .55rem; border-radius: 999px; background: var(--ligne); overflow: hidden; }
.barres__valeur { display: block; height: 100%; width: calc(var(--part) * 1%); border-radius: inherit; background: var(--vert); }
.barres__valeur--hausse { background: var(--safran); }
.barres__chiffre { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; text-align: end; }
@media (max-width: 40rem) {
  .barres__ligne { grid-template-columns: 1fr auto; }
  .barres__piste { grid-column: 1 / -1; grid-row: 2; }
}

.evo { font-variant-numeric: tabular-nums; }
.evo--baisse { color: var(--vert-fonce); }
.evo--hausse { color: var(--safran); }
.evo--stable { color: var(--encre-doux); }

/* Installer l'application : n'apparait que si le navigateur le propose. */
.installer { margin-top: 1.25rem; padding: 1rem; border: 1px dashed var(--ligne-forte); border-radius: var(--r-m); max-width: 24rem; }
.installer[hidden] { display: none; }
.installer__texte { margin: 0 0 .7rem; font-size: .875rem; color: var(--encre-doux); }
.installer__bouton { display: inline-flex; align-items: center; gap: .45rem; }
.tableau td.num strong.evo--baisse { color: var(--vert-fonce); }
.tableau td.num strong.evo--hausse { color: var(--safran); }
.tableau td.num strong.evo--stable { color: var(--encre-doux); font-weight: 600; }
.tableau tbody tr:last-child th { border-bottom: 0; }

/* Les etudes en tete du chapitre « Comprendre » : un grand chiffre chacune. */
.etudes-une {
  margin: 0 0 1.75rem; padding: 0; list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: .9rem;
}
.etudes-une a {
  position: relative;
  display: flex; flex-direction: column; gap: .35rem;
  height: 100%;
  padding: 1.2rem 1.3rem 1.1rem;
  border: 1px solid var(--ligne);
  border-radius: var(--r-l);
  background:
    radial-gradient(120% 90% at 100% 0%, var(--lueur), transparent 60%),
    var(--blanc);
  color: var(--encre);
  text-decoration: none;
  overflow: hidden;
  transition: border-color var(--vite), transform var(--moyen) var(--souple);
}
.etudes-une a:hover { border-color: var(--vert); transform: translateY(-3px); }
.etudes-une__chiffre { font-family: "Fraunces", Georgia, serif; font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); line-height: 1; color: var(--vert-vif); font-variant-numeric: tabular-nums lining-nums; }
.etudes-une__texte { color: var(--encre-doux); font-size: .95rem; }
.etudes-une__lien { margin-top: auto; padding-top: .5rem; font-size: .875rem; font-weight: 700; color: var(--vert-fonce); }
/* Sous le prix d'une presentation, l'ecart avec 2014, discret. */
.article__evo { display: block; margin-top: .15rem; font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; text-align: end; }
.article__evo--baisse { color: var(--vert-fonce); }
.article__evo--hausse { color: var(--safran); }
/* Sur telephone, une ligne de l'etude 2014 tient en deux etages : le nom,
   puis les trois chiffres cote a cote (la regle generale les empilait). */
@media (max-width: 40rem) {
  .tableau-defile .tableau--evo tr { grid-template-columns: 1fr 1fr auto; gap: .45rem .75rem; }
  .tableau-defile .tableau--evo td.num { grid-column: auto; }
  .tableau-defile .tableau--evo td.num:last-child { text-align: end; align-self: end; }
}

/* ==========================================================================
   46. Mode clair (v8)
   --------------------------------------------------------------------------
   Choisi par le visiteur (bouton soleil/lune de l'en-tete), retenu sur son
   telephone, pose avant le premier affichage par intro.js : pas de flash
   sombre puis clair. La nuit reste le theme par defaut.

   Le fond est le papier d'officine de la palette d'origine (celle que
   gardent la boite de la une et l'impression). Les cartes sont blanches, le
   texte presque noir : contraste superieur a 12:1, pour qui lit en plein
   soleil ou sans lunettes.
   ========================================================================== */
:root[data-theme="clair"] {
  --papier:      #F7F4EE;
  --papier-2:    #EFEBE2;
  --blanc:       #FFFFFF;
  --encre:       #17201C;
  --encre-doux:  #4E5853;
  --encre-pale:  #79827D;
  --ligne:       #E4DFD5;
  --ligne-forte: #CFC8BA;
  --vert:        #0B8A64;
  --vert-fond:   #087F5D;
  --vert-fonce:  #075E45;
  --vert-nuit:   #0B3B2E;
  --vert-vif:    #0A9A6E;
  --vert-pale:   #E1F0E8;
  --vert-brume:  #EEF5F1;
  --safran:      #B93D0B;
  --safran-pale: #FCEDE3;
  --safran-bord: #F1C9AE;
  --rouge:       #B42318;
  --rouge-pale:  #FDECEA;
  --prix:        #0B3B2E;
  --lueur:       rgba(11, 154, 110, .14);
  --verre:       rgba(255, 255, 255, .78);
  --ombre-1: 0 1px 0 rgba(23, 32, 28, .04), 0 1px 3px rgba(23, 32, 28, .08);
  --ombre-2: 0 1px 2px rgba(23, 32, 28, .06), 0 18px 40px -18px rgba(23, 32, 28, .22), 0 0 0 1px rgba(23, 32, 28, .04);
  color-scheme: light;
}
[data-theme="clair"] ::selection { background: rgba(11, 154, 110, .22); color: var(--encre); }
[data-theme="clair"] :focus-visible { outline-color: var(--vert-fond); }
[data-theme="clair"] body::before {
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(11, 154, 110, .10), transparent 60%),
    radial-gradient(45rem 35rem at -10% 35%, rgba(11, 154, 110, .05), transparent 60%);
}
[data-theme="clair"] .prix__valeur { text-shadow: none; }
[data-theme="clair"] .entete,
[data-theme="clair"] .entete.defile { background: rgba(247, 244, 238, .84); }
[data-theme="clair"] .entete.defile { box-shadow: 0 8px 24px -18px rgba(23, 32, 28, .45); }
[data-theme="clair"] .bloc,
[data-theme="clair"] .symptomes-grille a,
[data-theme="clair"] .symptomes-tuiles a { background: var(--blanc); box-shadow: var(--ombre-1); }
[data-theme="clair"] .bouton--clair,
[data-theme="clair"] .bientot .bouton,
[data-theme="clair"] .appel .bouton { background: #fff; border-color: #fff; color: var(--vert-nuit); }
[data-theme="clair"] .bouton--clair:hover,
[data-theme="clair"] .bientot .bouton:hover,
[data-theme="clair"] .appel .bouton:hover { background: var(--vert-brume); border-color: var(--vert-brume); }
[data-theme="clair"] .bouton--fantome:hover { color: #fff; }
[data-theme="clair"] .chercher button:hover,
[data-theme="clair"] .bouton:not(.bouton--fantome):not(.bouton--clair):hover { box-shadow: 0 8px 22px -8px rgba(8, 127, 93, .45); }
[data-theme="clair"] .avis-retrait,
[data-theme="clair"] .bandeau-avis { color: #8A2C0A; }
[data-theme="clair"] .avis-retrait__titre { color: #9A3412; }
[data-theme="clair"] .economie p { color: #7C2D12; }
@media (max-width: 47.99rem) {
  [data-theme="clair"] .nav-repliable .nav { background: radial-gradient(30rem 20rem at 100% 0, rgba(11, 154, 110, .10), transparent 70%), var(--papier); }
}

/* Le logo : la version a texte fonce sur le papier. */
.entete__logo-clair { display: none !important; }
[data-theme="clair"] .entete__logo-nuit { display: none !important; }
[data-theme="clair"] .entete__logo-clair { display: block !important; }

/* Le bouton soleil / lune. */
.theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--ligne-forte);
  border-radius: var(--r-s);
  background: transparent;
  color: var(--encre);
  cursor: pointer;
  transition: border-color var(--vite), color var(--vite), background var(--vite);
}
.theme:hover { border-color: var(--vert-vif); color: var(--vert-vif); }
.theme svg { width: 18px; height: 18px; }
.theme__lune { display: none; }
[data-theme="clair"] .theme__lune { display: block; }
[data-theme="clair"] .theme__soleil { display: none; }
@media (min-width: 48rem) { .theme { order: 3; } .nav { order: 2; } }
/* Sections translucides, bandes et pied : peints pour la nuit. */
[data-theme="clair"] .symptomes-une,
[data-theme="clair"] .faits,
[data-theme="clair"] .bandeau { background: rgba(255, 255, 255, .45); }
[data-theme="clair"] .bande,
[data-theme="clair"] .appel,
[data-theme="clair"] .bientot { background: var(--vert-nuit); }
/* Le pied reste une bande vert nuit, comme dans la maquette d'origine :
   ses textes sont ecrits en clair, en dur. */
[data-theme="clair"] .pied { background: var(--vert-nuit); }
[data-theme="clair"] .pied .installer { border-color: rgba(255, 255, 255, .22); }
[data-theme="clair"] .pied .installer__texte { color: #BFD3C9; }
[data-theme="clair"] .pied .installer__bouton { color: #fff; border-color: rgba(255, 255, 255, .45); }
[data-theme="clair"] .fond__aurore { opacity: .35; }
[data-theme="clair"] .fond__grain,
[data-theme="clair"] .fond__poussiere { display: none; }
@media (pointer: fine) {
  [data-theme="clair"] .bloc,
  [data-theme="clair"] .symptomes-grille a,
  [data-theme="clair"] .symptomes-tuiles a:not(.symptomes-tuiles__tous) {
    background: radial-gradient(24rem circle at var(--lx, 50%) var(--ly, -40rem), rgba(11, 154, 110, .07), transparent 45%), var(--blanc);
  }
  [data-theme="clair"] .bloc:hover { border-color: rgba(11, 154, 110, .35); }
}

/* ==========================================================================
   47. Version allegee (v8)
   --------------------------------------------------------------------------
   Posee par intro.js sur les petits telephones (2 Go de memoire ou moins,
   2 coeurs, economiseur de donnees, 2G). Meme page, sans le decor qui coute
   des images par seconde : fond anime, poussiere, flous de verre, volume
   au defilement, rideau. Le contenu et les liens ne changent pas.
   ========================================================================== */
.leger .fond,
.leger .rideau,
.leger .flotte { display: none !important; }
.leger .entete,
.leger .entete.defile { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--papier); }
/* Comme pour qui demande de reduire les mouvements : rien n'est cache
   en attendant une animation (voir les blocs « reduce » de chaque section). */
.leger *,
.leger *::before,
.leger *::after { animation: none !important; transition: none !important; }
.leger body::before { display: none; }

/* ==========================================================================
   48. Version 8 : raccourcis, scanner, suivre un medicament, nouveautes
   ========================================================================== */

/* Raccourcis sous la recherche de la une. */
.raccourcis { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0 0; }
.raccourci {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 40px; padding: 0 .9rem;
  border: 1px solid var(--ligne-forte);
  border-radius: 999px;
  color: var(--encre);
  font-size: .875rem; font-weight: 650;
  text-decoration: none;
  background: var(--verre);
  transition: border-color var(--vite), color var(--vite), transform var(--vite) var(--souple);
}
.raccourci svg { color: var(--vert-vif); flex: none; }
.raccourci:hover { border-color: var(--vert-vif); color: var(--vert-fonce); transform: translateY(-1px); }

/* --- Scanner -------------------------------------------------------------- */
.scanner__colonnes { display: grid; gap: 1.5rem; align-items: start; }
.scanner__colonnes > * { min-width: 0; }
.scanner__colonnes .bloc { margin-top: 0; }
@media (min-width: 62rem) { .scanner__colonnes { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }

.scan[hidden] { display: none; }
.scan__viseur {
  position: relative;
  aspect-ratio: 4 / 3;
  max-height: 70vh;
  border-radius: var(--r-l);
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 45%, var(--lueur), transparent 70%),
    var(--vert-nuit);
  border: 1px solid var(--ligne-forte);
}
.scan__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease; }
.scan__viseur--actif .scan__video { opacity: 1; }
.scan__cadre {
  position: absolute;
  inset: 27.5% 5%;
  border-radius: var(--r-m);
  box-shadow: 0 0 0 100vmax rgba(4, 10, 8, .45);
  opacity: 0;
  transition: opacity .3s ease;
}
.scan__cadre::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  /* Quatre coins, pas un cadre plein : le code n'a pas a y tenir au millimetre. */
  background:
    linear-gradient(var(--vert-vif), var(--vert-vif)) top left / 28px 3px no-repeat,
    linear-gradient(var(--vert-vif), var(--vert-vif)) top left / 3px 28px no-repeat,
    linear-gradient(var(--vert-vif), var(--vert-vif)) top right / 28px 3px no-repeat,
    linear-gradient(var(--vert-vif), var(--vert-vif)) top right / 3px 28px no-repeat,
    linear-gradient(var(--vert-vif), var(--vert-vif)) bottom left / 28px 3px no-repeat,
    linear-gradient(var(--vert-vif), var(--vert-vif)) bottom left / 3px 28px no-repeat,
    linear-gradient(var(--vert-vif), var(--vert-vif)) bottom right / 28px 3px no-repeat,
    linear-gradient(var(--vert-vif), var(--vert-vif)) bottom right / 3px 28px no-repeat;
}
.scan__laser {
  position: absolute;
  inset-inline: 6%;
  top: 50%;
  height: 2px;
  border-radius: 2px;
  background: #FF5A4E;
  box-shadow: 0 0 12px 2px rgba(255, 90, 78, .6);
}
.scan__viseur--actif .scan__cadre { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .scan__viseur--actif .scan__laser { animation: scan-laser 1.6s ease-in-out infinite alternate; }
  @keyframes scan-laser { from { transform: translateY(-34px); } to { transform: translateY(34px); } }
}
.scan__repos {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem;
  color: #E8F1EC;
}
.scan__repos[hidden] { display: none; }
.scan__repos svg { opacity: .85; }
.scan__etat { margin: .9rem 0 0; min-height: 3em; font-weight: 600; }
.scan__actions { margin: .25rem 0 0; }
.scan__vie-privee { margin: .5rem 0 0; }
.scan__choix { margin-top: .75rem; }
.scan-saisie__form { margin-top: .75rem; }
.scan-saisie__form input { font-family: var(--mono); letter-spacing: .06em; }
.scan-saisie__trouve { margin: 1.25rem 0 .5rem; font-size: 1.05rem; }

/* --- Suivre un medicament (fiche) ---------------------------------------- */
.suivi-prix {
  border: 1px solid var(--ligne);
  border-radius: var(--r-m);
  padding: 1.05rem 1.3rem 1.2rem;
  background: var(--blanc);
  scroll-margin-top: 6rem;
}
.suivi-prix__titre { margin: 0 0 .7rem; font-weight: 750; }
.suivi-prix__mes { width: 100%; justify-content: center; gap: .5rem; }
.suivi-prix__mes[hidden] { display: none; }
.suivi-prix__mes[aria-pressed="true"] { --coeur: currentColor; border-color: var(--vert-vif); color: var(--vert-fonce); background: var(--vert-pale); }
.suivi-prix__form { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--ligne-forte); }
.suivi-prix__label { display: block; margin: 0 0 .5rem; font-size: .9rem; font-weight: 650; }
.suivi-prix__champ { display: flex; gap: .5rem; }
.suivi-prix__champ input {
  flex: 1 1 auto; min-width: 0;
  height: 44px; padding: 0 .8rem;
  border: 1px solid var(--ligne-forte);
  border-radius: var(--r-s);
  background: var(--papier);
  color: var(--encre);
  font: inherit;
}
.suivi-prix__champ input:focus { outline: 2px solid var(--vert-vif); outline-offset: 1px; border-color: transparent; }
.suivi-prix__champ .bouton { flex: none; min-height: 44px; padding-inline: 1rem; }
.suivi-prix__accord { display: flex; gap: .55rem; align-items: flex-start; margin-top: .7rem; font-size: .8125rem; color: var(--encre-doux); line-height: 1.45; }
.suivi-prix__accord input { margin-top: .15rem; accent-color: var(--vert); }
.suivi-prix__accord a { color: inherit; }
.suivi-prix__erreur { margin: 0 0 .5rem; color: var(--rouge); font-size: .875rem; font-weight: 600; }
.suivi-prix__ok { margin: 1rem 0 0; }

/* --- Mes medicaments ------------------------------------------------------ */
.mes__vide-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0 0; }
.mes__alerte { font-size: .875rem; font-weight: 650; color: var(--vert-fonce); }

/* --- Nouveautes ----------------------------------------------------------- */
.nouveautes__sommaire { display: flex; flex-wrap: wrap; gap: .6rem; }
.nouveautes__puce {
  display: inline-flex; align-items: baseline; gap: .45rem;
  padding: .55rem .95rem;
  border: 1px solid var(--ligne);
  border-radius: var(--r-m);
  background: var(--blanc);
  color: var(--encre);
  text-decoration: none;
  font-weight: 600;
}
.nouveautes__puce b { font-family: var(--serif); font-size: 1.35rem; color: var(--vert-vif); }
.nouveautes__puce--retire b { color: var(--safran); }
.nouveautes__puce:hover { border-color: var(--vert); }
.nouveautes__avant { display: block; color: var(--encre-pale); font-size: .8rem; font-family: var(--sans); }
.nouveautes .bloc { scroll-margin-top: 6rem; }

/* Page de confirmation d'une alerte. */
.alerte-page .bloc { margin-top: 0; }
.alerte-page form { margin-top: 1.25rem; }
.scan [hidden] { display: none !important; }
/* Le champ ne doit pas elargir la colonne de la fiche : sa largeur propre
   (une vingtaine de caracteres) poussait toutes les cartes de la colonne. */
.suivi-prix__champ input { flex: 1 1 0; width: 0; }
.fiche__cote > * { min-width: 0; }
.article__prix .petit { font-family: var(--sans); font-weight: 600; }

/* ==========================================================================
   49. Version 9 : cout par mois, recherche a la voix
   ========================================================================== */

/* --- Combien par mois ? -------------------------------------------------- */
.mensuel__choix {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  margin: .4rem 0 1rem; padding: 0; border: 0;
}
.mensuel__legende { width: 100%; margin-bottom: .55rem; padding: 0; font-size: .9rem; color: var(--encre-doux); }
/* Le bouton radio reste dans la page (clavier, lecteur d'ecran), invisible. */
.mensuel__radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.mensuel__bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 .9rem;
  border: 1px solid var(--ligne-forte);
  border-radius: var(--r-s);
  font-weight: 750; font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color var(--vite), background var(--vite), color var(--vite);
}
.mensuel__bouton:hover { border-color: var(--vert-vif); }
.mensuel__radio:checked + .mensuel__bouton { background: var(--vert-fond); border-color: var(--vert-fond); color: #fff; }
.mensuel__radio:focus-visible + .mensuel__bouton { outline: 2px solid var(--vert-vif); outline-offset: 2px; }
.mensuel__suffixe { margin-inline-start: .25rem; color: var(--encre-doux); }

.mensuel__panneau { display: none; }
.mensuel__panneau--1 { display: block; }
.mensuel:has(.mensuel__radio:checked) .mensuel__panneau { display: none; }
.mensuel:has(#prises-1:checked) .mensuel__panneau--1,
.mensuel:has(#prises-2:checked) .mensuel__panneau--2,
.mensuel:has(#prises-3:checked) .mensuel__panneau--3,
.mensuel:has(#prises-4:checked) .mensuel__panneau--4 { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .mensuel__panneau { animation: deplier .25s var(--souple); }
}
.mensuel__cout { margin: 0 0 .6rem; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.mensuel__cout strong { font-family: var(--serif); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem); line-height: 1; color: var(--prix); font-variant-numeric: tabular-nums lining-nums; }
.mensuel__cout span { color: var(--encre-doux); font-weight: 600; }
.mensuel__details { margin: 0 0 .8rem; padding: 0; list-style: none; display: grid; gap: .3rem; color: var(--encre-doux); font-size: .95rem; }
.mensuel__details li::before { content: "·"; margin-inline-end: .5rem; color: var(--vert-vif); font-weight: 900; }
.mensuel__gen { margin: 0 0 .8rem; padding: .7rem .9rem; border-radius: var(--r-s); background: var(--vert-pale); color: var(--vert-fonce); font-weight: 600; font-size: .95rem; }
.mensuel__gen a { color: inherit; }

/* --- Chercher a la voix ------------------------------------------------- */
/* Selecteurs a trois classes : « .une .chercher button » (accueil) donne
   aux boutons du champ un rembourrage qui ecrasait l'icone du micro. */
.chercher .chercher__champ .chercher__voix {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--encre-doux);
}
.chercher .chercher__champ .chercher__voix:hover { background: var(--vert-brume); color: var(--vert-fonce); }
.chercher .chercher__champ .chercher__voix svg { width: 20px; height: 20px; }
.chercher .chercher__champ .chercher__voix--ecoute { color: #fff; background: #D93A2B; }
.chercher .chercher__champ .chercher__voix--ecoute:hover { background: #B42318; color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .chercher .chercher__champ .chercher__voix--ecoute { animation: voix-pouls 1.2s ease-out infinite; }
  @keyframes voix-pouls { 0% { box-shadow: 0 0 0 0 rgba(217, 58, 43, .55); } 100% { box-shadow: 0 0 0 14px rgba(217, 58, 43, 0); } }
}
@media (max-width: 30rem) {
  .chercher .chercher__champ .chercher__voix { width: 38px; height: 38px; }
  .chercher .chercher__champ button[type="submit"] { padding-inline: .9rem; }
}

/* Mes medicaments : prises par jour et cout du mois, sur chaque ligne. */
.mes__mois { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin: .6rem 0 .2rem; }
.mes__prises { display: inline-flex; align-items: center; gap: .3rem; }
.mes__prises a, .mes__prises b {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 .5rem;
  border: 1px solid var(--ligne-forte); border-radius: var(--r-s);
  font-weight: 750; text-decoration: none; color: var(--encre);
}
.mes__prises a:hover { border-color: var(--vert-vif); }
.mes__prises b { background: var(--vert-fond); border-color: var(--vert-fond); color: #fff; }
.mes__prises-suffixe { margin-inline-start: .2rem; font-size: .875rem; color: var(--encre-doux); }
.mes__mois-cout { color: var(--encre-doux); font-size: .9rem; }
.mes__mois-cout strong { color: var(--prix); font-size: 1.05rem; }

/* Administration : formulaires dans une ligne de tableau. */
.admin-ligne { display: flex; gap: .4rem; align-items: center; margin: .2rem 0; }
.admin-ligne input[type="text"] { min-width: 0; flex: 1 1 9rem; height: 34px; padding: 0 .5rem; border: 1px solid var(--ligne-forte); border-radius: var(--r-s); background: var(--papier); color: var(--encre); font: inherit; font-size: .875rem; }
.bouton--petit { min-height: 34px; padding: 0 .7rem; font-size: .8125rem; }
.admin-lien { border: 0; background: none; padding: 0; color: var(--encre-doux); font: inherit; font-size: .8125rem; text-decoration: underline; cursor: pointer; }
.admin-lien--danger { color: var(--rouge); }

/* ==========================================================================
   50. v10 : rappel de fin de boite, texte plus grand, widget, etude
   Maroc-France, presse, lettre mensuelle
   ========================================================================== */

/* --- Rappel de fin de boite ---------------------------------------------- */
.rappel { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .8rem; margin: 0 0 .9rem; }
.rappel__lien {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 44px; padding: 0 1rem;
  border: 1px solid var(--ligne-forte); border-radius: 999px;
  color: var(--vert-fonce); font-weight: 600; font-size: .9375rem; text-decoration: none;
  transition: background-color var(--vite) ease, border-color var(--vite) ease;
}
.rappel__lien:hover, .rappel__lien:focus-visible { background: var(--vert-pale); border-color: var(--vert); }
.rappel__lien svg { flex: none; }
.rappel__aide { flex: 1 1 14rem; color: var(--encre-doux); font-size: .8125rem; line-height: 1.45; }
.rappel__lien--court { min-height: 36px; padding: 0 .75rem; font-size: .8125rem; }

/* --- Texte plus grand ------------------------------------------------------ */
/* Tout le site est en rem : agrandir la racine agrandit tout, mise en page
   comprise. Les ecrans tres larges gardent leur propre agrandissement. */
html[data-texte="grand"] { font-size: 118.75%; }
@media (min-width: 120rem) { html[data-texte="grand"] { font-size: 131.25%; } }
@media (min-width: 140rem) { html[data-texte="grand"] { font-size: 143.75%; } }

.texte-bascule__icone { font-family: var(--serif); font-weight: 700; font-size: 1.05em; line-height: 1; }
.texte-bascule__icone sup { font-size: .65em; margin-inline-start: 1px; }
.texte-bascule {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; margin: .4rem 0 .8rem; padding: 0 1rem;
  border: 1px solid var(--ligne-forte); border-radius: 999px;
  background: none; color: var(--encre); font: inherit; font-size: .9375rem; cursor: pointer;
}
.texte-bascule:hover { border-color: var(--encre); }
.texte-bascule[aria-pressed="true"], .nav__texte[aria-pressed="true"] { border-color: var(--vert); color: var(--vert-fonce); }
.texte-bascule[hidden] { display: none; }

/* Dans le menu du telephone seulement : sur grand ecran, la barre de
   navigation n'a pas la place, et le pied de page porte le reglage. */
.nav__texte { display: none; }
@media (max-width: 47.99rem) {
  .nav-repliable .nav .nav__texte:not([hidden]) {
    display: flex; align-items: center; gap: .7rem;
    min-height: 3.75rem; margin: 0; padding: 0;
    border: 0; border-bottom: 1px solid var(--ligne); background: none;
    color: var(--encre-doux); font: inherit; font-size: 1.15rem; text-align: start; cursor: pointer;
  }
}

/* --- Integrer nos prix (widget) -------------------------------------------- */
.integrer__colonnes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.integrer .badge-carte { grid-template-columns: minmax(0, 1fr); }
/* Sur telephone, une fois le medicament choisi, le code vient d'abord. */
.integrer__colonnes > .badge-carte { order: -1; }
@media (min-width: 60rem) {
  .integrer__colonnes { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .integrer__colonnes > .badge-carte { order: 0; }
}
.integrer__sous-titre { margin: 1.6rem 0 .4rem; font-size: 1.05rem; }
.integrer__resultats { margin-top: 1rem; }
.integrer__themes { display: flex; gap: .5rem; margin: 0 0 .8rem; font-size: .875rem; }
.integrer__themes b, .integrer__themes a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 .85rem;
  border: 1px solid var(--ligne-forte); border-radius: 999px; color: var(--encre); text-decoration: none;
}
.integrer__themes b { background: var(--vert); border-color: var(--vert); color: #fff; }
.integrer__apercu { margin: 0 0 1rem; padding: 1rem; border-radius: var(--r-s); background: #F3EFE6; }
.integrer__apercu--sombre { background: #050C0A; }
.integrer__apercu iframe { display: block; width: 100%; max-width: 440px; height: 200px; border: 0; border-radius: 14px; }
.partage__integrer { margin: .8rem 0 0; font-size: .8125rem; }
.partage__integrer a { color: var(--encre-doux); }

/* --- Espace presse ---------------------------------------------------------- */
.presse__etudes { display: grid; gap: .7rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.presse__etudes li { display: flex; align-items: stretch; gap: .5rem; }
.presse__etude {
  flex: 1 1 auto; display: grid; gap: .2rem; padding: .9rem 1rem;
  border: 1px solid var(--ligne); border-radius: var(--r-s);
  color: var(--encre); text-decoration: none;
  transition: border-color var(--vite) ease, background-color var(--vite) ease;
}
.presse__etude b { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.presse__etude span { color: var(--encre-doux); font-size: .9rem; }
.presse__etude:hover { border-color: var(--vert); background: var(--vert-pale); }
.presse__csv {
  flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 3.5rem; padding: 0 .8rem;
  border: 1px solid var(--ligne-forte); border-radius: var(--r-s);
  color: var(--vert-fonce); font-weight: 700; font-size: .8125rem; letter-spacing: .04em; text-decoration: none;
}
.presse__csv:hover { border-color: var(--vert); }
.presse__logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .8rem; }
.presse__logo { display: grid; gap: .6rem; justify-items: center; padding: 1.2rem 1rem .9rem; border: 1px solid var(--ligne); border-radius: var(--r-s); color: var(--encre-doux); font-size: .8125rem; text-decoration: none; }
.presse__logo img { width: 100%; max-width: 200px; height: auto; }
.presse__logo--clair { background: #FFFDF8; color: #4F5E57; }
.presse__logo--sombre { background: #07110E; color: #A8C7BA; }
.presse__logo:hover { border-color: var(--vert); }

/* --- Administration : visuels ---------------------------------------------- */
.visuels { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.visuel-carte { display: grid; gap: .5rem; align-content: start; }
.visuel-carte__titre { margin: 0; font-size: 1rem; }
.visuel-carte img { width: 100%; height: auto; border-radius: var(--r-s); background: #07110E; aspect-ratio: 4 / 5; }
.visuel-carte__actions { display: flex; gap: .5rem; margin: 0; }

/* --- Lettre des prix --------------------------------------------------------- */
.lettre { display: grid; gap: .4rem 2rem; margin-top: 1.25rem; }
@media (min-width: 60rem) { .lettre { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; } }
.lettre__texte .bloc__titre { margin-bottom: .3rem; }
.lettre__texte p { margin: 0; }
.lettre__form { margin: 0; }
.lettre-apercu { max-height: 28rem; overflow: auto; padding: 1rem; border: 1px solid var(--ligne); border-radius: var(--r-s); background: var(--papier); font: .8125rem/1.55 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; }
