/* =============================================================================
   ANNUAIRE PHARMA : feuille commune (hub, categories, fiches, questionnaire, moderation)
   Refonte "Iris" 14/11/2026 : hero sombre dans le prolongement du bandeau, cartes vivantes,
   CSS pur, animations transform/opacity uniquement, toutes coupees sous prefers-reduced-motion.
   Charte : noir #0a0a0a, orange #ff914d, Space Grotesk. Orange en TEXTE sur clair = #b8541c.

   CONTRAT DE MARKUP (reference : _maquette_iris.html, copie dans le scratchpad d'Iris)
   -----------------------------------------------------------------------------
   Pages : <body> avec site-nav.js (ajoute body.pa-has-nav et son padding-top) puis :
     <header class="an-hero [an-hero--hub | an-hero--fiche]"><div class="container">...</div></header>
     <main> <section class="an-section [an-section--alt]"><div class="container">...</div></section> ... </main>

   HERO (fond noir, enfants du .container animes en cascade)
     nav.an-fil > a + span[aria-hidden]"/" + span[aria-current]            fil d'Ariane
     span.label                                                            surtitre (point orange)
     h1 > span.an-h1-a "Annuaire pharmacie :"  +  span.an-h1-b (display:block, 2e ligne) avec .accent
     nav.an-onglets > a[aria-current=page] + a  (chacun : texte + span.n)  SOUS le titre
     div.an-recherche[role=search] > svg + label.sr-only + input#anCherche  SOUS les onglets
     div.an-chiffres > div*3 > strong + span                               chiffres cles
     p.chapeau                                                             (categories et fiches)

   SECTIONS
     p.an-eyebrow (optionnel, avant le h2) ; h2 ; p.sous
     .an-groupes > .an-groupe > h3 > span.an-ico + texte ; ul > li > a[data-cherche] > texte + span.an-compte(.plein)
     .an-univers > a[data-cherche] > strong + span                         (onglet Marques)
     .an-cartes > a.an-carte[data-cherche]
         > .an-carte-tete > (img.an-logo | div.an-initiale) + div > h3 + p.an-par(optionnel "par X") + div.zone
         > p (accroche) > div.an-tags > span.an-tag(.or)* > span.an-carte-lien[aria-hidden]"Voir la fiche"
     p.an-aucun#anAucun ; .an-vide
     .an-cta > div(h2 > .accent, p, a.btn.btn-orange) + ol.an-etapes > li*3

   FICHE
     .an-hero.an-hero--fiche > .container > nav.an-fil + .fiche-tete > (img.an-logo | .an-initiale) + div
         > h1 + p.chapeau + div.an-tags > a.an-tag(.or)
         > [marque] div.fiche-actions > div.fiche-labo + a.btn.btn-orange.btn-brochure
     .fiche-grille > div (colonne texte : .fiche-bloc > h2 + p | ul.fiche-liste | dl.fiche-def)
                   + aside.fiche-contact (h2, a.btn*, .fiche-info)
     [marque] section.an-section.an-section--alt#produits[data-bloc] (hors .fiche-grille, pleine largeur)
         > .an-produits-tete > div(p.an-eyebrow, h2 + span.an-compte, p.sous) + div.an-recherche.an-recherche--filtre
         > .an-produits > article.an-produit[data-cherche]
               > figure.an-produit-photo > img (carre, width/height 480, alt = nom du produit)
               > .an-produit-corps > h3.an-produit-nom + span.an-tag (galenique)
                                   + p.an-produit-prix > strong + span.ttc + small.lib
                                   + p.an-produit-ean > span.lib "EAN" + span.code
                                   + details.an-produit-plus > summary + dl.an-produit-fiche > dt + dd
         > p.an-aucun#anAucun
     NB : sur une fiche marque, retirer data-cherche des cartes "voisines" (le filtre #anCherche ne doit viser que les produits).

   FORMULAIRES : toutes les classes fx-* sont conservees. L'apercu du questionnaire reutilise
     .an-carte > .an-carte-tete > .an-initiale + div > h3 + .zone ; p ; .an-tags : ne pas renommer.

   BOUTONS : .btn + .btn-orange | .btn-noir | .btn-ghost | .btn-rouge ; .btn-brochure ajoute l'icone via ::before.
   JS : #anCherche, #anAucun, [data-cherche], [data-bloc] inchanges.
   ============================================================================= */

:root {
  --dark: #0a0a0a;
  --dark-2: #161616;
  --text: #111827;
  --muted: #6b7280;
  --orange: #ff914d;
  --orange-dark: #e07a36;
  --orange-texte: #b8541c; /* seul orange lisible en texte sur blanc (4,86:1) */
  --orange-bg: rgba(255, 145, 77, .08);
  --orange-border: rgba(255, 145, 77, .3);
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --border: #e5e7eb;
  --vert: #15803d;
  --rouge: #b91c1c;
  --ambre: #b45309;
  --sur-noir: rgba(255, 255, 255, .74); /* texte secondaire sur fond noir (>= 9:1) */
  --font: 'Space Grotesk', system-ui, sans-serif;
  --radius: 12px;
  --ease: all .25s ease;
  --courbe: cubic-bezier(.2, .7, .2, 1);
  --ombre-carte: 0 1px 2px rgba(10, 10, 10, .04), 0 8px 24px -12px rgba(10, 10, 10, .12);
  --ombre-haute: 0 2px 4px rgba(10, 10, 10, .04), 0 22px 44px -14px rgba(10, 10, 10, .22);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--orange-texte); text-decoration: none; transition: var(--ease); }
a:hover { color: var(--dark); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--orange-texte); outline-offset: 3px; border-radius: 6px; }
.an-hero :focus-visible, .an-cta :focus-visible { outline-color: var(--orange); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; position: relative; }
@media (max-width: 600px) { .container { padding: 0 16px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =============================================================================
   HERO : noir comme le bandeau, lueurs orange qui derivent, anneaux, points, grain
   ============================================================================= */
.an-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  padding: 52px 0 56px;
  background-color: var(--dark);
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E"),
    radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.6px);
  background-size: 160px 160px, 28px 28px;
  /* L'ombre vers le haut comble l'ecart entre le bandeau du site (fixe) et le hero sur grand ecran. */
  box-shadow: inset 0 -1px 0 rgba(255, 145, 77, .4), 0 -60px 0 0 var(--dark);
}
.an-hero::before { /* lueurs orange (seule couche animee : transform) */
  content: ""; position: absolute; z-index: -1; inset: -30% -20%; pointer-events: none;
  background:
    radial-gradient(ellipse 38% 46% at 78% 28%, rgba(255, 145, 77, .26) 0%, transparent 62%),
    radial-gradient(ellipse 30% 40% at 12% 85%, rgba(255, 145, 77, .12) 0%, transparent 60%);
  will-change: transform;
}
.an-hero::after { /* anneaux concentriques, coin haut droit, fondus par un masque */
  content: ""; position: absolute; z-index: -1; right: -180px; top: -180px; width: 640px; height: 640px; pointer-events: none;
  background: repeating-radial-gradient(circle at center, transparent 0 54px, rgba(255, 145, 77, .16) 54px 55px);
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 68%);
          mask-image: radial-gradient(circle at center, #000 0%, transparent 68%);
}
@media (max-width: 700px) { .an-hero { padding: 34px 0 40px; } .an-hero::after { width: 420px; height: 420px; right: -170px; top: -150px; } }
.an-hero--hub { padding: 64px 0 64px; }
@media (max-width: 700px) { .an-hero--hub { padding: 34px 0 40px; } }

.an-hero .label { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--orange); margin-bottom: 18px; }
.an-hero .label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 145, 77, .22); }
.an-hero h1 { font-size: clamp(30px, 4.6vw, 54px); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; color: #fff; max-width: 900px; margin-bottom: 18px; overflow-wrap: break-word; text-wrap: balance; }
.an-hero h1 .accent { color: var(--orange); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .an-hero h1 .accent { background-image: linear-gradient(95deg, #ff914d 10%, #ffc08f 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
}
/* H1 du hub : "Annuaire pharmacie :" grand, puis la suite sur la ligne du dessous */
.an-h1-a { display: block; font-size: clamp(29px, 8vw, 84px); letter-spacing: -.035em; line-height: 1.02; }
.an-h1-b { display: block; margin-top: 12px; font-size: clamp(19px, 4.6vw, 42px); font-weight: 500; letter-spacing: -.02em; line-height: 1.18; color: rgba(255, 255, 255, .92); }
.an-h1-b .accent { font-weight: 700; }
.an-hero .chapeau { font-size: 17px; color: var(--sur-noir); max-width: 720px; line-height: 1.7; }
.an-hero a:not(.btn) { color: inherit; }
.an-hero .chapeau a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--orange); }

.an-fil { font-size: 13px; color: var(--sur-noir); margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.an-fil a { color: var(--sur-noir); }
.an-fil a:hover { color: var(--orange); }
.an-fil span[aria-hidden] { opacity: .45; }
.an-fil [aria-current] { color: #fff; }

/* Onglets Services / Marques : vrais liens, juste sous le titre, controle segmente */
.an-onglets { display: inline-flex; gap: 6px; margin-top: 26px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); max-width: 100%; }
.an-onglets a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; color: rgba(255, 255, 255, .86); transition: background .25s ease, color .25s ease, transform .25s ease; white-space: nowrap; }
.an-onglets a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.an-onglets a[aria-current="page"] { background: var(--orange); color: var(--dark); box-shadow: 0 6px 20px -6px rgba(255, 145, 77, .7); }
.an-onglets a .n { font-size: 12.5px; font-weight: 700; min-width: 26px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .14); text-align: center; }
.an-onglets a[aria-current="page"] .n { background: rgba(10, 10, 10, .14); }
@media (max-width: 420px) { .an-onglets { display: flex; } .an-onglets a { flex: 1; padding: 0 12px; } }

/* Recherche */
.an-recherche { margin-top: 18px; position: relative; max-width: 760px; }
.an-recherche input { width: 100%; font: inherit; font-size: 16px; min-height: 56px; padding: 0 20px 0 54px; border: 1.5px solid var(--border); border-radius: 16px; background: #fff; color: var(--text); box-shadow: var(--ombre-carte); transition: border-color .2s ease, box-shadow .2s ease; -webkit-appearance: none; appearance: none; }
.an-recherche input::placeholder { color: var(--muted); opacity: 1; }
.an-recherche input:hover { border-color: #cbd5e1; }
.an-recherche input:focus { outline: 3px solid var(--orange); outline-offset: 2px; border-color: var(--orange); }
.an-recherche svg { position: absolute; left: 19px; top: 28px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.an-hero .an-recherche input { min-height: 62px; font-size: 17px; border-color: transparent; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }
.an-hero .an-recherche svg { top: 31px; color: var(--orange-texte); }

/* Chiffres cles */
.an-chiffres { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin-top: 34px; }
.an-chiffres > div { padding: 2px 34px 2px 0; margin-right: 34px; border-right: 1px solid rgba(255, 255, 255, .16); }
.an-chiffres > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.an-chiffres strong { display: block; font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; color: var(--orange); font-variant-numeric: tabular-nums; }
.an-chiffres span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--sur-noir); line-height: 1.35; }
@media (max-width: 600px) {
  .an-chiffres { grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
  .an-chiffres > div { padding-right: 10px; margin-right: 10px; }
  .an-chiffres span { font-size: 12.5px; }
}

/* Entree en cascade du hero (opacity + transform) */
@media (prefers-reduced-motion: no-preference) {
  .an-hero .container > * { animation: an-monte .75s var(--courbe) backwards; }
  .an-hero .container > *:nth-child(2) { animation-delay: .07s; }
  .an-hero .container > *:nth-child(3) { animation-delay: .14s; }
  .an-hero .container > *:nth-child(4) { animation-delay: .21s; }
  .an-hero .container > *:nth-child(5) { animation-delay: .28s; }
  .an-hero .container > *:nth-child(6) { animation-delay: .35s; }
  .an-hero::before { animation: an-derive 22s ease-in-out infinite alternate; }
  .an-hero .label::before { animation: an-pouls 2.6s ease-in-out infinite; }
}
@keyframes an-monte { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes an-derive { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(4%, 3%, 0) scale(1.08); } }
@keyframes an-pouls { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* =============================================================================
   SECTIONS
   ============================================================================= */
.an-section { padding: 72px 0; }
.an-section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@media (max-width: 700px) { .an-section { padding: 48px 0; } }
.an-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--orange-texte); margin-bottom: 10px; }
.an-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--orange); border-radius: 2px; }
.an-section h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; color: var(--dark); margin-bottom: 10px; text-wrap: balance; }
.an-section .sous { color: var(--muted); margin-bottom: 32px; max-width: 700px; font-size: 16.5px; }

/* Familles de categories */
.an-groupes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.an-groupe { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 26px 22px 18px; box-shadow: var(--ombre-carte); transition: transform .3s var(--courbe), box-shadow .3s ease, border-color .3s ease; }
.an-groupe::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--orange), #ffc08f); transform: scaleX(.18); transform-origin: left; transition: transform .45s var(--courbe); }
.an-groupe h3 { display: flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; color: var(--dark); margin-bottom: 16px; }
.an-ico { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(145deg, #232323, var(--dark)); color: var(--orange); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 8px 18px -8px rgba(10, 10, 10, .55); transition: background .3s ease, color .3s ease, transform .35s var(--courbe); }
.an-groupe ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.an-groupe li a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 6px 12px; border-radius: 10px; color: var(--text); font-size: 15px; font-weight: 500; line-height: 1.3; }
.an-groupe li a:hover { background: var(--orange-bg); color: var(--dark); }
.an-compte { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; padding: 1px 9px; min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.an-compte.plein { background: var(--orange-bg); border-color: var(--orange-border); color: var(--orange-texte); }

/* Univers (onglet Marques) */
.an-univers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.an-univers a { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--border); border-radius: 20px; background: #fff; color: var(--text); min-height: 128px; box-shadow: var(--ombre-carte); transition: transform .3s var(--courbe), box-shadow .3s ease, border-color .3s ease; }
.an-univers a::after { content: "\2192"; position: absolute; right: 18px; bottom: 14px; font-size: 20px; font-weight: 700; color: var(--orange-texte); opacity: 0; transform: translateX(-8px); transition: opacity .25s ease, transform .3s var(--courbe); }
.an-univers strong { font-size: 17px; color: var(--dark); display: flex; align-items: center; gap: 8px; }
.an-univers span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.an-univers strong .an-compte { font-size: 12px; }
@media (hover: none) { .an-univers a::after { opacity: 1; transform: none; } }

/* =============================================================================
   CARTES FICHES (listes)
   ============================================================================= */
.an-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.an-carte { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--border); border-radius: 22px; background: #fff; color: var(--text); box-shadow: var(--ombre-carte); transition: transform .3s var(--courbe), box-shadow .3s ease, border-color .3s ease; }
.an-carte::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--orange), #ffc08f); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--courbe); }
.an-carte-tete { display: flex; gap: 16px; align-items: center; }
.an-carte-tete > div:last-child { min-width: 0; }
.an-logo { width: 60px; height: 60px; border-radius: 14px; border: 1px solid var(--border); background: #fff; object-fit: contain; padding: 6px; flex-shrink: 0; }
.an-initiale { width: 60px; height: 60px; border-radius: 14px; background: linear-gradient(145deg, #262626, var(--dark)); color: var(--orange); font-weight: 700; font-size: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 8px 18px -8px rgba(10, 10, 10, .5); }
.an-carte h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--dark); line-height: 1.25; overflow-wrap: anywhere; }
.an-par { font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.an-par span { color: var(--text); font-weight: 600; }
.an-carte .zone { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.an-carte > p { font-size: 15px; color: var(--text); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.an-carte-lien { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--orange-texte); }
.an-carte-lien::after { content: "\2192"; transition: transform .3s var(--courbe); }
.an-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.an-tag { display: inline-flex; align-items: center; min-height: 28px; font-size: 12.5px; font-weight: 600; padding: 3px 11px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--border); color: #4b5563; }
.an-tag.or { background: var(--orange-bg); border-color: var(--orange-border); color: var(--orange-texte); }
a.an-tag:hover { border-color: var(--dark); color: var(--dark); }
.an-hero .an-tag { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; min-height: 32px; padding: 4px 13px; }
.an-hero .an-tag.or { background: rgba(255, 145, 77, .16); border-color: rgba(255, 145, 77, .5); color: var(--orange); }
.an-hero a.an-tag:hover { background: rgba(255, 255, 255, .16); border-color: #fff; color: #fff; }
.an-vide { padding: 40px 28px; border: 1.5px dashed #cbd5e1; border-radius: 22px; text-align: center; color: var(--muted); background: var(--bg-alt); }
.an-vide strong { display: block; color: var(--dark); font-size: 18px; margin-bottom: 6px; }
.an-aucun { display: none; padding: 28px; margin-top: 18px; border: 1.5px dashed #cbd5e1; border-radius: 18px; background: #fff; color: var(--muted); text-align: center; }

/* Survol : uniquement sur appareils qui survolent (pas de survol colle au toucher) */
@media (hover: hover) {
  .an-carte:hover, .an-produit:hover { transform: translateY(-5px); box-shadow: var(--ombre-haute); border-color: var(--orange-border); color: var(--text); }
  .an-carte:hover::before, .an-groupe:hover::before { transform: scaleX(1); }
  .an-carte:hover .an-carte-lien::after { transform: translateX(5px); }
  .an-groupe:hover { transform: translateY(-4px); box-shadow: var(--ombre-haute); border-color: var(--orange-border); }
  .an-groupe:hover .an-ico { background: var(--orange); color: var(--dark); transform: rotate(-6deg) scale(1.06); }
  .an-univers a:hover { transform: translateY(-4px); box-shadow: var(--ombre-haute); border-color: var(--orange); }
  .an-univers a:hover::after { opacity: 1; transform: none; }
  .an-onglets a:not([aria-current]):hover { transform: translateY(-1px); }
}
/* Apparition a l'entree dans l'ecran (navigateurs compatibles, sinon rien, jamais de contenu cache) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .an-carte, .an-groupe, .an-produit, .an-univers a, .fiche-bloc {
      animation: an-monte linear backwards; animation-timeline: view(); animation-range: entry 0% entry 40%;
    }
  }
}

/* =============================================================================
   BOUTONS
   ============================================================================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .005em; transition: transform .25s var(--courbe), background .25s ease, border-color .25s ease, box-shadow .25s ease, color .25s ease; cursor: pointer; border: 1.5px solid transparent; text-align: center; min-height: 48px; }
.btn-orange { background: var(--orange); color: var(--dark); box-shadow: 0 10px 24px -10px rgba(255, 145, 77, .85); }
.btn-orange:hover { background: #ffa56d; color: var(--dark); transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(255, 145, 77, .9); }
.btn-noir { background: var(--dark); color: #fff; }
.btn-noir:hover { background: #262626; color: #fff; transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--dark); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--dark); color: var(--dark); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-brochure::before { content: ""; width: 20px; height: 20px; flex-shrink: 0; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m0 0-4-4m4 4 4-4M4 20h16'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m0 0-4-4m4 4 4-4M4 20h16'/%3E%3C/svg%3E") center / contain no-repeat; }

/* =============================================================================
   BANDEAU "REFERENCEZ-VOUS"
   ============================================================================= */
.an-cta { position: relative; isolation: isolate; overflow: hidden; color: #fff; border-radius: 30px; padding: 56px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: center;
  background-color: var(--dark);
  background-image: radial-gradient(ellipse 50% 70% at 92% 10%, rgba(255, 145, 77, .3) 0%, transparent 62%), radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.6px);
  background-size: auto, 26px 26px; box-shadow: 0 30px 60px -28px rgba(10, 10, 10, .6); }
.an-cta::after { content: ""; position: absolute; z-index: -1; left: -140px; bottom: -200px; width: 460px; height: 460px; pointer-events: none; background: repeating-radial-gradient(circle at center, transparent 0 46px, rgba(255, 145, 77, .15) 46px 47px); -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 68%); mask-image: radial-gradient(circle, #000 0%, transparent 68%); }
.an-section .an-cta h2 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); }
.an-cta h2 .accent { color: var(--orange); }
.nb { white-space: nowrap; } /* ex. <span class="nb">Référencez-vous</span> gratuitement. */
.an-cta p { color: var(--sur-noir); font-size: 16.5px; }
.an-etapes { list-style: none; counter-reset: e; display: flex; flex-direction: column; gap: 0; }
.an-etapes li { counter-increment: e; position: relative; display: flex; gap: 16px; align-items: flex-start; color: rgba(255, 255, 255, .88); font-size: 15px; line-height: 1.55; padding-bottom: 22px; }
.an-etapes li:last-child { padding-bottom: 0; }
.an-etapes li::before { content: counter(e); width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: var(--dark); font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; box-shadow: 0 0 0 5px rgba(255, 145, 77, .18); position: relative; z-index: 1; }
.an-etapes li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: linear-gradient(var(--orange-border), transparent); }
@media (max-width: 900px) { .an-cta { grid-template-columns: 1fr; padding: 34px 22px; gap: 30px; border-radius: 24px; } }

/* =============================================================================
   FICHE (service et marque)
   ============================================================================= */
.an-hero--fiche { padding: 44px 0 52px; }
.fiche-tete { display: flex; gap: 28px; align-items: flex-start; }
.fiche-tete > div { min-width: 0; }
.fiche-tete .an-logo, .fiche-tete .an-initiale { width: 112px; height: 112px; border-radius: 26px; font-size: 46px; padding: 12px; border: 0; box-shadow: 0 20px 44px -16px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1); }
.fiche-tete .an-logo { background: #fff; }
.fiche-tete .an-initiale { background: linear-gradient(145deg, #ffa56d, var(--orange)); color: var(--dark); padding: 0; }
.fiche-tete h1 { margin-bottom: 12px; }
.fiche-tete .chapeau { margin-bottom: 18px; }
@media (max-width: 700px) { .fiche-tete { flex-direction: column; gap: 20px; } .fiche-tete .an-logo, .fiche-tete .an-initiale { width: 88px; height: 88px; border-radius: 22px; font-size: 36px; padding: 10px; } }

/* Marque : bloc Laboratoire + bouton brochure */
.fiche-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 22px; }
.fiche-labo { display: flex; align-items: center; gap: 14px; padding: 9px 20px 9px 9px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); max-width: 100%; }
.fiche-labo img, .fiche-labo .an-initiale { width: 46px; height: 46px; border-radius: 12px; background: #fff; object-fit: contain; padding: 5px; flex-shrink: 0; font-size: 18px; box-shadow: none; }
.fiche-labo .an-initiale { background: var(--orange); color: var(--dark); padding: 0; }
.fiche-labo div { min-width: 0; line-height: 1.25; }
.fiche-labo-lib { display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 2px; }
.fiche-labo strong { display: block; font-size: 16px; font-weight: 700; color: #fff; overflow-wrap: anywhere; }
@media (max-width: 520px) { .fiche-actions .btn, .fiche-actions .fiche-labo { width: 100%; } }

.fiche-grille { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
@media (max-width: 960px) { .fiche-grille { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.fiche-bloc { margin-bottom: 40px; }
.fiche-bloc:last-child { margin-bottom: 0; }
.fiche-bloc h2 { display: flex; align-items: center; gap: 12px; font-size: 22px; margin-bottom: 14px; }
.fiche-bloc h2::before { content: ""; width: 5px; height: 22px; border-radius: 3px; background: var(--orange); flex-shrink: 0; }
.fiche-bloc p { margin-bottom: 12px; font-size: 16.5px; line-height: 1.75; max-width: 70ch; }
.fiche-liste { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.fiche-liste li { position: relative; padding-left: 30px; font-size: 16px; }
.fiche-liste li::before { content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 6px; background: var(--orange-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8541c' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; border: 1px solid var(--orange-border); }
.fiche-contact { position: sticky; top: 104px; overflow: hidden; border: 1px solid var(--border); border-radius: 24px; padding: 26px 22px 22px; background: #fff; box-shadow: var(--ombre-haute); display: flex; flex-direction: column; gap: 10px; }
.fiche-contact::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--orange), #ffc08f); }
.fiche-contact h2 { font-size: 18px; margin-bottom: 6px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.fiche-contact .btn { width: 100%; justify-content: flex-start; padding: 12px 16px; font-size: 14.5px; overflow-wrap: anywhere; text-align: left; }
.fiche-info { font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 14px; margin-top: 6px; display: flex; flex-direction: column; gap: 8px; line-height: 1.5; }
.fiche-info a { font-weight: 600; }
.fiche-info .ok { color: var(--vert); font-weight: 600; }
.fiche-def { display: grid; grid-template-columns: 190px 1fr; font-size: 15.5px; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.fiche-def dt, .fiche-def dd { padding: 14px 18px; border-top: 1px solid var(--border); }
.fiche-def dt:first-of-type, .fiche-def dt:first-of-type + dd { border-top: 0; }
.fiche-def dt { color: var(--muted); font-size: 13.5px; font-weight: 600; background: var(--bg-alt); }
@media (max-width: 600px) { .fiche-def { grid-template-columns: 1fr; } .fiche-def dt { padding-bottom: 4px; border-bottom: 0; } .fiche-def dd { border-top: 0; padding-top: 4px; } .fiche-def dt:first-of-type { border-top: 0; } }

/* =============================================================================
   CATALOGUE PRODUITS (fiche marque)
   ============================================================================= */
#produits { scroll-margin-top: 96px; }
.an-produits-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 36px; margin-bottom: 30px; }
.an-produits-tete .sous { margin-bottom: 0; }
.an-produits-tete h2 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.an-recherche--filtre { margin-top: 0; flex: 1 1 320px; max-width: 420px; }
.an-produits { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 20px; align-items: start; }
@media (max-width: 640px) { .an-produits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.an-produit { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--ombre-carte); transition: transform .3s var(--courbe), box-shadow .3s ease, border-color .3s ease; }
.an-produit-photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.an-produit-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--courbe); }
@media (hover: hover) { .an-produit:hover .an-produit-photo img { transform: scale(1.05); } }
.an-produit-corps { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 16px 8px; }
.an-produit-nom { font-size: 16px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; color: var(--dark); overflow-wrap: anywhere; }
.an-produit .an-tag { min-height: 26px; font-size: 12px; padding: 2px 10px; }
.an-produit-prix { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin-top: 4px; line-height: 1.2; }
.an-produit-prix strong { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--dark); font-variant-numeric: tabular-nums; }
.an-produit-prix .ttc { font-size: 13px; font-weight: 700; color: var(--dark); }
.an-produit-prix .lib { flex-basis: 100%; font-size: 12px; font-weight: 500; color: var(--muted); }
.an-produit-ean { max-width: 100%; overflow-wrap: anywhere; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.an-produit-ean .lib { font-weight: 700; letter-spacing: .1em; font-size: 11px; margin-right: 6px; }
.an-produit-ean .code { color: var(--text); user-select: all; }
.an-produit-plus { border-top: 1px solid var(--border); margin-top: 8px; }
.an-produit-plus summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 8px 16px; font-size: 13.5px; font-weight: 700; color: var(--orange-texte); }
.an-produit-plus summary::-webkit-details-marker { display: none; }
.an-produit-plus summary::after { content: ""; width: 8px; height: 8px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s var(--courbe); flex-shrink: 0; }
.an-produit-plus[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.an-produit-plus summary:hover { background: var(--orange-bg); }
.an-produit-plus summary:focus-visible { outline-offset: -3px; }
.an-produit-fiche { padding: 4px 16px 18px; }
.an-produit-fiche dt { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-texte); margin-top: 14px; }
.an-produit-fiche dt:first-child { margin-top: 4px; }
.an-produit-fiche dd { font-size: 14px; line-height: 1.6; color: var(--text); margin-top: 3px; }
@media (max-width: 640px) { .an-produit-corps { padding: 12px 12px 6px; } .an-produit-nom { font-size: 14.5px; } .an-produit-prix strong { font-size: 19px; } .an-produit-plus summary { padding: 8px 12px; font-size: 13px; } .an-produit-fiche { padding: 4px 12px 14px; } }
@media (prefers-reduced-motion: no-preference) {
  .an-produit-plus[open] .an-produit-fiche { animation: an-monte .35s var(--courbe); }
}

/* =============================================================================
   MENTIONS ET PIED
   ============================================================================= */
.an-mention { font-size: 12.5px; color: var(--muted); line-height: 1.6; max-width: 820px; }
.mini-footer { padding: 40px 16px; background: var(--dark); color: rgba(255, 255, 255, .66); text-align: center; font-size: 12.5px; line-height: 2; }
.mini-footer a { color: rgba(255, 255, 255, .82); margin: 0 8px; }
.mini-footer a:hover { color: var(--orange); }

/* =============================================================================
   FORMULAIRES (questionnaire, moderation) : memes classes fx-*, rendu modernise
   ============================================================================= */
main:has(> .fx-wrap), body:has(> .wrap > #contenu) { background: var(--bg-alt); }
.fx-ecran.actif { animation: an-monte .5s var(--courbe) backwards; }
.fx-carte { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 30px; margin-bottom: 20px; box-shadow: var(--ombre-carte); }
@media (max-width: 600px) { .fx-carte { padding: 20px 16px; border-radius: 18px; } }
.fx-carte > h2 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 4px; color: var(--dark); }
.fx-aide { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.fx-champ { margin-bottom: 20px; }
.fx-champ label, .fx-legende { display: block; font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 7px; }
.fx-champ .opt { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.fx-champ .indic { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.fx-champ .indic.trop { color: var(--rouge); }
.fx-champ input[type=text], .fx-champ input[type=email], .fx-champ input[type=tel], .fx-champ input[type=url], .fx-champ textarea, .fx-champ select {
  width: 100%; font: inherit; font-size: 16px; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; color: var(--text); transition: border-color .2s ease, box-shadow .2s ease;
}
.fx-champ input:hover, .fx-champ textarea:hover, .fx-champ select:hover { border-color: #cbd5e1; }
.fx-champ textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.fx-champ input:focus, .fx-champ textarea:focus, .fx-champ select:focus { outline: 3px solid var(--orange-border); outline-offset: 0; border-color: var(--orange); }
.fx-champ.erreur input, .fx-champ.erreur textarea { border-color: var(--rouge); }
.fx-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .fx-2 { grid-template-columns: 1fr; } }
.fx-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-choix label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 15px; border: 1.5px solid var(--border); border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; background: #fff; color: var(--text); margin: 0; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.fx-choix label:hover { border-color: var(--dark); }
.fx-choix label:has(input:checked) { border-color: var(--orange); background: var(--orange-bg); color: var(--dark); font-weight: 700; }
.fx-choix label:has(input:focus-visible) { outline: 3px solid var(--orange-texte); outline-offset: 2px; }
.fx-choix input { accent-color: var(--orange-texte); width: 17px; height: 17px; }
.fx-groupe-cat { margin-bottom: 14px; }
.fx-groupe-cat > div:first-child { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 8px 0 8px; }
.fx-type { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .fx-type { grid-template-columns: 1fr; } }
.fx-type label { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 22px 22px; border: 2px solid var(--border); border-radius: 18px; cursor: pointer; background: #fff; transition: border-color .2s ease, background .2s ease, box-shadow .25s ease, transform .25s var(--courbe); }
.fx-type label:hover { border-color: var(--dark); transform: translateY(-2px); }
.fx-type label:has(input:checked) { border-color: var(--orange); background: var(--orange-bg); box-shadow: 0 12px 28px -14px rgba(255, 145, 77, .7); }
.fx-type label:has(input:checked)::after { content: ""; position: absolute; right: 16px; top: 16px; width: 24px; height: 24px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.fx-type label:has(input:focus-visible) { outline: 3px solid var(--orange-texte); outline-offset: 2px; }
.fx-type strong { font-size: 18px; color: var(--dark); padding-right: 30px; }
.fx-type span { font-size: 13.5px; color: var(--muted); }
.fx-type input { position: absolute; opacity: 0; pointer-events: none; }
.fx-progression { display: flex; gap: 8px; margin: 0 0 24px; }
.fx-progression i { flex: 1; height: 6px; border-radius: 999px; background: var(--border); transition: background .4s ease; }
.fx-progression i.fait { background: linear-gradient(90deg, var(--orange), #ffc08f); }
.fx-etape-titre { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-texte); margin-bottom: 6px; }
.fx-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.fx-msg { border-radius: 14px; padding: 14px 16px; font-size: 14px; margin-bottom: 16px; border: 1px solid; }
.fx-msg.err { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.fx-msg.ok { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.fx-msg.att { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.fx-msg.info { background: #fff; border-color: var(--border); color: var(--text); }
.fx-depot { border: 2px dashed #cbd5e1; border-radius: 16px; padding: 22px; display: flex; gap: 16px; align-items: center; cursor: pointer; background: var(--bg-alt); transition: border-color .2s ease, background .2s ease; }
.fx-depot:hover { border-color: var(--orange); background: var(--orange-bg); }
.fx-depot img { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid var(--border); }
.fx-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--text); line-height: 1.6; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-alt); }
.fx-consent input { margin-top: 4px; accent-color: var(--orange-texte); width: 18px; height: 18px; flex-shrink: 0; }
.fx-consent a { text-decoration: underline; text-underline-offset: 2px; }
.fx-attente { text-align: center; padding: 48px 20px; }
.fx-attente .rond { width: 48px; height: 48px; border-radius: 50%; border: 4px solid var(--border); border-top-color: var(--orange); margin: 0 auto 18px; animation: tourne 1s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.fx-question { border: 1px solid var(--border); border-left: 4px solid var(--orange); border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; background: #fff; }
.fx-question.bloq { border-left-color: var(--rouge); }
.fx-question p { font-weight: 700; margin-bottom: 8px; font-size: 15px; }
.fx-question textarea { min-height: 70px; }
.fx-modif { font-size: 13.5px; color: var(--muted); }
.fx-modif li { margin: 0 0 4px 18px; }
.fx-compare { font-size: 13px; color: var(--muted); margin-top: 6px; }
.fx-compare summary { cursor: pointer; min-height: 32px; }
.fx-compare div { white-space: pre-line; background: var(--bg-alt); border-radius: 10px; padding: 10px 12px; margin-top: 6px; color: var(--text); }
.fx-badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.fx-badge.modif { background: var(--orange-bg); color: var(--orange-texte); }
.btn-rouge { background: #fff; color: var(--rouge); border-color: #fecaca; }
.btn-rouge:hover { border-color: var(--rouge); color: var(--rouge); }

/* =============================================================================
   MOUVEMENT REDUIT : tout est coupe, le contenu reste visible
   ============================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .an-carte:hover, .an-groupe:hover, .an-produit:hover, .an-univers a:hover, .btn:hover, .fx-type label:hover { transform: none !important; }
}
