/* Gin V3 — « la fiche de dégustation ».

   Parti pris inverse de la V2 : pas de nuit ni d'aurore. Deux matieres seulement :
   - la SCENE, a gauche, un aplat de la couleur de la bouteille (--gin-primary, deja corrigee pour
     rester lisible, et --gin-on-primary pour ce qui s'ecrit dessus). Elle reste epinglee et
     change avec le chapitre lu : l'attribut data-g3-scene de la racine est pose par ginv3.js ;
   - la FICHE, a droite, du papier : gros titres en capitales, filets a l'encre, aucune ombre.

   Les photos produits sont sur fond blanc : elles se fondent en `multiply`, donc toujours sur une
   surface claire (la gelule de la scene, les pastilles de la fiche). */

.g3{
    --g3-paper: #fbf7ef;
    --g3-paper-2: #f3ecdf;
    --g3-ink: #191713;
    --g3-soft: #6b6457;
    --g3-line: rgba(25, 23, 19, .16);
    --g3-niche: #f7f2ea;
    /* --g3-a / --g3-on : la couleur brute de la bouteille et l'encre lisible dessus (posees par la page). */
    --g3-a: #7a2e57;
    --g3-on: #fff;
    /* Version toujours lisible de la couleur du gin, pour le texte sur papier. */
    --g3-accent: var(--gin-ink, #7a2e57);
    --g3-top: 76px;

    display: grid; grid-template-columns: minmax(300px, 41%) minmax(0, 1fr);
    /* blazor.bootstrap.css impose `height: 100vh` et `flex: 1` a <main>. */
    height: auto; flex: none;
    /* Ce meme fichier donne `overflow-x: hidden` a <main> : la scene ne resterait pas epinglee. */
    overflow: visible;
    margin: 18px 0 32px;
    border: 1px solid var(--g3-line); border-radius: 22px;
    background: var(--g3-paper); color: var(--g3-ink);
    font: 400 16px/1.55 Arial, Helvetica, sans-serif;
    animation: none;
}
[data-theme="dark"] .g3{
    --g3-paper: #16151a;
    --g3-paper-2: #1e1c23;
    --g3-ink: #f4efe6;
    --g3-soft: #a9a297;
    --g3-line: rgba(244, 239, 230, .18);
}
.g3 *, .g3 *::before, .g3 *::after{ box-sizing: border-box; }
.g3 h1, .g3 h2, .g3 h3, .g3 h4{ margin: 0; color: inherit !important; }
.g3 :is(.g3-stage, .g3-top, .g3-head, .g3-prose, .g3-recipe, .g3-tonics, .g3-profile, .g3-table, .g3-rate, .g3-cards, .g3-rail, .g3-crumbs) :is(p, ul, ol, dl, dd){ margin: 0; padding: 0; }
.g3 :is(.g3-recipe, .g3-tonics, .g3-profile, .g3-table, .g3-cards, .g3-tags) :is(ul, ol), .g3 .g3-tags, .g3 .g3-profile, .g3 .g3-table, .g3 .g3-cards{ list-style: none; }
.g3 :is(.g3-rail, .g3-crumbs, .g3-table, .g3-cards, .g3-profile, .g3-tags, .g3-tonics, .g3-recipe) a,
.g3 a:is(.g3-more, .g3-admin){ color: inherit; text-decoration: none; }
.g3 a.g3-btn{ text-decoration: none; }
.g3 :is(a, button):focus-visible{ outline: 3px solid var(--g3-accent); outline-offset: 3px; }
.g3 section{ scroll-margin-top: calc(var(--g3-top) + 64px); }

/* ================================================================ LA SCENE */

.g3 .g3-stage{
    --mx: 0; --my: 0;
    position: sticky; top: var(--g3-top); align-self: start;
    display: grid; grid-template-rows: minmax(0, 1fr) auto auto;
    height: calc(100vh - var(--g3-top) - 16px); height: calc(100dvh - var(--g3-top) - 16px); min-height: 460px;
    padding: 26px 26px 22px; overflow: hidden;
    border-radius: 21px 0 0 21px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 46%, color-mix(in srgb, var(--g3-on) 16%, transparent), transparent 70%),
        linear-gradient(170deg, var(--g3-a), color-mix(in srgb, var(--g3-a) 72%, #000));
    color: var(--g3-on);
}
/* Trame de points : l'aplat respire sans devenir un degrade. */
.g3 .g3-stage::before{
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .16;
    background-image: radial-gradient(currentColor 1px, transparent 1.4px); background-size: 18px 18px;
    -webkit-mask-image: linear-gradient(transparent, #000 40%, #000 60%, transparent); mask-image: linear-gradient(transparent, #000 40%, #000 60%, transparent);
}
.g3 .g3-stage-side{
    position: absolute; left: 14px; top: 50%; z-index: 1; writing-mode: vertical-rl; rotate: 180deg; translate: 0 -50%;
    font-size: 10px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; white-space: nowrap; opacity: .72;
}
/* Le petillement : des bulles montent derriere le verre, seulement pendant la scene « perfect serve ».
   Trois trames de tailles differentes, dont les hauteurs divisent 360px : la boucle est sans raccord. */
.g3 .g3-stage::after{
    content: ''; position: absolute; z-index: -1; inset: 0 0 -360px; pointer-events: none;
    background-image:
        radial-gradient(circle, transparent 4px, currentColor 4.5px 5.5px, transparent 6px),
        radial-gradient(circle, transparent 2px, currentColor 2.5px 3.5px, transparent 4px),
        radial-gradient(circle, transparent 7px, currentColor 7.5px 8.5px, transparent 9px);
    background-size: 150px 180px, 110px 120px, 230px 360px;
    background-position: 20px 30px, 70px 90px, 120px 200px;
    opacity: 0; transition: opacity .9s ease;
    animation: g3-fizz 16s linear infinite paused;
}
.g3[data-g3-scene="serve"] .g3-stage::after{ opacity: .3; animation-play-state: running; }
@keyframes g3-fizz{ to{ transform: translateY(-360px); } }

/* Conteneur : les orbites se mesurent sur la scene (cqw / cqh), pas sur la fenetre. */
.g3 .g3-set{ container-type: size; position: relative; display: grid; place-items: center; min-height: 0; }

/* La gelule : la bouteille, toujours la. */
.g3 .g3-set-moon{
    position: relative; z-index: 2; display: grid; place-items: center;
    height: min(97%, 780px); aspect-ratio: 10 / 16; max-width: 90%;
    padding: 3% 2%; border-radius: 999px; overflow: hidden;
    background: radial-gradient(ellipse at 50% 30%, #fff, var(--g3-niche) 70%);
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--g3-on) 12%, transparent), 0 40px 60px -30px rgba(0, 0, 0, .6);
    transform: translate(calc(var(--mx) * 10px), calc(var(--my) * 8px)) rotate(calc(var(--mx) * 2deg));
    transition: transform .5s cubic-bezier(.2, .7, .2, 1), scale .9s cubic-bezier(.3, 1.2, .4, 1), translate .9s cubic-bezier(.3, 1.2, .4, 1), rotate .9s cubic-bezier(.3, 1.2, .4, 1), opacity .45s ease;
}
/* Les photos produits ont une large marge blanche : on zoome dedans, la gelule rogne le blanc. */
.g3 .g3-set-moon img{ width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; scale: 1.34; }

/* Le verre : la photo entiere dans un carre arrondi (un rond coupait le verre et la garniture). */
.g3 .g3-set-glass{
    position: absolute; z-index: 1; right: 0; top: 0; width: min(100cqw, 78cqh); aspect-ratio: 1; border-radius: 26px; overflow: hidden;
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--g3-on) 12%, transparent), 0 40px 60px -30px rgba(0, 0, 0, .7);
    opacity: 0; scale: .8; transition: opacity .7s ease, scale .9s cubic-bezier(.3, 1.2, .4, 1);
}
.g3 .g3-set-glass img{ width: 100%; height: 100%; object-fit: cover; }
.g3[data-g3-scene="serve"] .g3-set-glass{ opacity: 1; scale: 1; }
.g3[data-g3-scene="serve"] .g3-set-moon{ scale: .3; translate: -32% 34%; rotate: -8deg; }
/* Sans photo de service, la bouteille reste simplement au centre. */
.g3[data-g3-scene="serve"] .g3-set:not(:has(.g3-set-glass)) .g3-set-moon{ scale: 1; translate: 0 0; rotate: 0deg; }

/* A cote du verre : le tonic et les garnitures prennent la place du gin, et arrivent l'un apres l'autre. */
.g3 .g3-set-side{ position: absolute; z-index: 3; left: 2%; bottom: 0; display: flex; align-items: flex-end; gap: clamp(8px, 2.4cqw, 14px); pointer-events: none; }
.g3 .g3-set-side i{
    display: grid; place-items: center; flex: none; overflow: hidden; font-style: normal;
    background: radial-gradient(ellipse at 50% 30%, #fff, var(--g3-niche) 70%);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--g3-on) 14%, transparent), 0 22px 34px -18px rgba(0, 0, 0, .75);
    opacity: 0; scale: .5; translate: 0 34px; rotate: -10deg;
    transition: opacity .35s ease, scale .5s cubic-bezier(.3, 1.2, .4, 1), translate .5s cubic-bezier(.3, 1.2, .4, 1), rotate .5s cubic-bezier(.3, 1.2, .4, 1);
}
.g3 .g3-set-tonic{ height: min(36cqh, 290px); aspect-ratio: 10 / 16; padding: 4% 3%; border-radius: 999px; }
.g3 .g3-set-tonic img{ width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; scale: 1.5; }
.g3 .g3-set-garnish{ width: clamp(58px, 21cqw, 96px); aspect-ratio: 1; margin-bottom: 3%; border-radius: 50%; }
.g3 .g3-set-garnish img{ width: 78%; height: 78%; object-fit: contain; }
.g3 .g3-set-garnish b{ font-size: clamp(22px, 8cqw, 38px); line-height: 1; font-weight: 400; }
.g3[data-g3-scene="serve"] .g3-set-side i{
    opacity: 1; scale: 1; translate: 0 0; rotate: 0deg;
    transition: opacity .5s ease, scale .9s cubic-bezier(.3, 1.5, .4, 1), translate .9s cubic-bezier(.3, 1.3, .4, 1), rotate .9s cubic-bezier(.3, 1.3, .4, 1);
    transition-delay: calc(.25s + var(--n, 0) * .14s);
}
.g3[data-g3-scene="serve"] .g3-set-side .g3-set-tonic{ rotate: -6deg; }
/* Le tonic est la : le gin s'efface, il est deja en tete de fiche et dans « Il vous faut ». */
.g3[data-g3-scene="serve"] .g3-set:has(.g3-set-tonic) .g3-set-moon{ opacity: 0; }

/* Les saveurs : des pastilles en orbite autour d'une bouteille plus petite. */
.g3 .g3-set-flavors{ position: absolute; z-index: 3; inset: 0; pointer-events: none; }
.g3 .g3-set-flavors i{
    --angle: calc(var(--n) / var(--of) * 360deg + 40deg);
    position: absolute; left: 50%; top: 50%; width: clamp(64px, 24%, 110px); aspect-ratio: 1; margin: calc(clamp(64px, 24%, 110px) / -2);
    border-radius: 50%; overflow: hidden; border: 3px solid var(--g3-on);
    box-shadow: 0 16px 28px -12px rgba(0, 0, 0, .7);
    transform: rotate(var(--angle)) translateY(0) rotate(calc(var(--angle) * -1)); opacity: 0; scale: .3;
    transition: transform 1s cubic-bezier(.3, 1.3, .4, 1), opacity .5s ease, scale .8s cubic-bezier(.3, 1.4, .4, 1);
    transition-delay: calc(var(--n) * .08s);
}
.g3 .g3-set-flavors img{ width: 100%; height: 100%; object-fit: cover; }
.g3[data-g3-scene="palate"] .g3-set-flavors i{ transform: rotate(var(--angle)) translateY(calc(min(41cqw, 38cqh) * -1)) rotate(calc(var(--angle) * -1)); opacity: 1; scale: 1; }
/* Au survol d'une pastille : son nom et, s'il est au glossaire, sa definition. La carte se pose au bas
   de la scene plutot que sur la pastille, pour ne jamais sortir du cadre. */
.g3[data-g3-scene="palate"] .g3-set-flavors i{ pointer-events: auto; cursor: help; }
.g3 .g3-set-tip{
    position: absolute; z-index: 4; left: 50%; bottom: 2%; width: max-content; max-width: min(92%, 320px); padding: 10px 14px;
    border: 1px solid rgba(244, 239, 230, .28); border-radius: 12px; background: #16151a; color: #f4efe6; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .8);
    font: 400 13px/1.45 Arial, Helvetica, sans-serif; text-align: center;
    opacity: 0; translate: -50% 8px; pointer-events: none; transition: opacity .2s ease, translate .2s ease;
}
.g3 .g3-set-tip strong{ display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.g3 .g3-set-tip em{ display: block; margin-top: 4px; font-style: normal; opacity: .82; }
.g3[data-g3-scene="palate"] .g3-set-flavors i:hover + .g3-set-tip{ opacity: 1; translate: -50% 0; }
.g3[data-g3-scene="palate"] .g3-set-moon{ scale: .5; }

/* La note en filigrane. */
.g3 .g3-set-score{
    position: absolute; z-index: 1; left: 50%; top: 50%; translate: -50% -50%; margin: 0;
    font: 900 clamp(150px, 26vw, 360px)/.8 'Arial Black', Arial, sans-serif; letter-spacing: -.08em; white-space: nowrap;
    color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--g3-on) 70%, transparent);
    opacity: 0; scale: .8; transition: opacity .7s ease, scale .9s cubic-bezier(.3, 1.2, .4, 1);
}
.g3[data-g3-scene="voices"] .g3-set-score{ opacity: 1; scale: 1; }
.g3[data-g3-scene="voices"] .g3-set-moon{ scale: .48; translate: 0 12%; }

/* L'apercu du perfect serve : le verre, le tonic et les garnitures en pastilles, sous la bouteille. */
.g3 .g3-tease{
    position: relative; z-index: 2; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
    margin-top: 14px; padding: 7px 14px 7px 7px; border-radius: 999px;
    background: color-mix(in srgb, var(--g3-on) 12%, transparent); border: 1px solid color-mix(in srgb, var(--g3-on) 30%, transparent);
    color: var(--g3-on); text-decoration: none; backdrop-filter: blur(6px);
    transition: background-color .25s, translate .25s, opacity .4s;
}
.g3 .g3-tease:hover{ background: color-mix(in srgb, var(--g3-on) 22%, transparent); translate: 0 -2px; color: var(--g3-on); }
.g3 .g3-tease-pics{ display: flex; }
.g3 .g3-tease-pics i{ display: grid; place-items: center; width: 46px; height: 46px; margin-left: -10px; border-radius: 50%; overflow: hidden; background: var(--g3-niche); border: 2px solid var(--g3-on); font-style: normal; }
.g3 .g3-tease-pics i:first-child{ margin-left: 0; }
.g3 .g3-tease-pics img{ width: 74%; height: 74%; object-fit: contain; }
.g3 .g3-tease-pics .g3-tease-glass img{ width: 100%; height: 100%; object-fit: cover; }
.g3 .g3-tease-pics .g3-tease-bottle img{ width: 60%; height: 84%; mix-blend-mode: multiply; }
.g3 .g3-tease-pics b{ font-size: 20px; font-weight: 400; line-height: 1; }
.g3 .g3-tease-text{ display: grid; gap: 1px; min-width: 0; }
.g3 .g3-tease-text small{ font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; opacity: .78; }
.g3 .g3-tease-text strong{ overflow: hidden; font: italic 400 15px/1.25 Georgia, serif; text-overflow: ellipsis; white-space: nowrap; }
.g3 .g3-tease > b{ font-weight: 400; transition: translate .25s; }
.g3 .g3-tease:hover > b{ translate: 0 3px; }
/* La legende : une ligne par scene, une seule visible. */
.g3 .g3-stage .g3-caption{ position: relative; z-index: 2; display: grid; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--g3-on) 34%, transparent); text-align: center; }
.g3 .g3-caption span{
    grid-area: 1 / 1; font: italic 400 clamp(17px, 1.7vw, 22px)/1.25 Georgia, serif; text-wrap: balance;
    opacity: 0; translate: 0 8px; transition: opacity .45s ease, translate .45s ease;
}
.g3 .g3-caption span[data-for="bottle"]{ opacity: 1; translate: 0 0; }
.g3[data-g3-scene]:not([data-g3-scene="bottle"]) .g3-caption span[data-for="bottle"]{ opacity: 0; translate: 0 8px; }
.g3[data-g3-scene="serve"] .g3-caption span[data-for="serve"],
.g3[data-g3-scene="palate"] .g3-caption span[data-for="palate"],
.g3[data-g3-scene="voices"] .g3-caption span[data-for="voices"]{ opacity: 1; translate: 0 0; }

.g3 .g3-admin{ position: absolute; left: 22px; top: 18px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border: 1px solid currentColor; border-radius: 999px; font-size: 11px; opacity: .7; }
.g3 .g3-admin:hover{ opacity: 1; }

/* ================================================================ LA FICHE */

/* clip : les infobulles du glossaire, en position absolue, elargissaient la page sur telephone. */
/* Pas de container ici : un conteneur devient le bloc de reference des position: fixed qu'il
   contient, et la fenetre de degustation (dans « Avis ») s'y retrouvait enfermee. Le conteneur
   est pose sur les deux seules sections que la requete @container regle. Leur largeur est celle
   de la feuille. */
.g3 :is(.g3-top, .g3-palate){ container: g3sheet / inline-size; }
.g3 .g3-sheet{ min-width: 0; overflow-x: clip; padding: 0 clamp(20px, 4vw, 60px) clamp(30px, 4vw, 56px); border-left: 1px solid var(--g3-line); }

/* ---- le rail */
.g3 .g3-rail{
    --g3-progress: 0;
    position: sticky; top: var(--g3-top); z-index: 5;
    display: flex; gap: 2px; margin: 0 calc(clamp(20px, 4vw, 60px) * -1); padding: 10px clamp(14px, 3vw, 52px);
    overflow-x: auto; scrollbar-width: none;
    background: var(--g3-paper);
    border-bottom: 1px solid var(--g3-line); border-radius: 0 21px 0 0;
}
.g3 .g3-rail::-webkit-scrollbar{ display: none; }
/* Le filet du bas se remplit avec la lecture. */
.g3 .g3-rail::after{ content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--g3-accent); transform-origin: 0 50%; transform: scaleX(var(--g3-progress)); transition: transform .2s linear; }
.g3 .g3-rail a{ display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border-radius: 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: var(--g3-soft); transition: color .2s, background-color .2s; }
.g3 .g3-rail a:hover{ color: var(--g3-ink); }
.g3 .g3-rail a.is-active{ background: var(--g3-ink); color: var(--g3-paper); }
.g3 .g3-rail b{ font-weight: 400; opacity: .7; }

/* ---- 01 · le gin */
.g3 .g3-top{ padding: clamp(26px, 4vw, 52px) 0 clamp(36px, 5vw, 64px); }
.g3 .g3-crumbs{ display: flex; flex-wrap: wrap; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--g3-soft); }
.g3 .g3-crumbs a{ display: inline-flex; align-items: center; min-height: 28px; }
.g3 .g3-crumbs a:hover{ color: var(--g3-ink); text-decoration: underline; text-underline-offset: 4px; }
.g3 .g3-crumbs a + a::before{ content: '/'; margin: 0 9px; opacity: .5; }

.g3 h1{
    margin-top: clamp(14px, 2vw, 24px);
    /* !important : le theme du site impose sa propre police aux h1. */
    font: 900 clamp(44px, 16cqw, 104px)/.88 'Arial Black', 'Helvetica Neue', Arial, sans-serif !important; letter-spacing: -.055em; text-transform: uppercase;
    overflow-wrap: anywhere; text-wrap: balance;
}
.g3 h1 span{ display: block; }
.g3 h1 em{ display: block; margin-top: .14em; font: italic 400 .62em/1 Georgia, 'Times New Roman', serif !important; letter-spacing: -.03em; text-transform: none; color: var(--g3-accent); }
/* `.g3 .g3-top` : la remise a zero des marges (plus haut) l'emporte sur un selecteur a deux classes. */
.g3 .g3-top .g3-lede{ max-width: 54ch; margin: clamp(18px, 2.4vw, 28px) 0 0; font: 400 clamp(17px, 1.5vw, 20px)/1.6 Georgia, serif; }

/* Le ticket de degustation : trois cases et un talon, separes par des perforations. */
.g3 .g3-top .g3-ticket{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.05fr); margin: clamp(22px, 3vw, 34px) 0 0; border: 1.5px solid var(--g3-ink); border-radius: 14px; overflow: hidden; }
.g3 .g3-ticket > div{ display: grid; align-content: space-between; gap: 10px; min-height: 96px; padding: 14px 16px; }
.g3 .g3-ticket > div + div{ border-left: 1.5px dashed var(--g3-ink); }
.g3 .g3-ticket dt{ font-size: 9px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--g3-soft); }
.g3 .g3-ticket dd{ margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font: 900 clamp(17px, 1.7vw, 24px)/1.05 'Arial Black', Arial, sans-serif; letter-spacing: -.03em; overflow-wrap: break-word; }
.g3 .g3-ticket small{ font: italic 400 13px/1.2 Georgia, serif; letter-spacing: 0; color: var(--g3-soft); }
.g3 .g3-ticket .fi{ border-radius: 2px; font-size: .7em; }
.g3 .g3-ticket-stub{ background: var(--g3-a); color: var(--g3-on); }
.g3 .g3-ticket-stub dt, .g3 .g3-ticket-stub small{ color: inherit; opacity: .82; }

.g3 .g3-actions{ display: flex; flex-wrap: wrap; align-items: center; gap: 18px 10px; margin-top: clamp(24px, 3vw, 32px); }
.g3 .g3-btn{
    display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 22px;
    border: 1.5px solid var(--g3-ink); border-radius: 999px; background: none; color: var(--g3-ink);
    font: 700 13px/1 Arial, Helvetica, sans-serif; letter-spacing: .02em; cursor: pointer;
    transition: background-color .2s, color .2s, translate .2s;
}
.g3 .g3-btn:hover{ background: var(--g3-ink); color: var(--g3-paper); }
.g3 .g3-btn--ink{ background: var(--g3-ink); color: var(--g3-paper); }
/* Plusieurs perfect serves (service du producteur, gin tonic) : une pastille par serve au-dessus de la fiche recette. */
.g3 .g3-serve-options{ display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.g3 .g3-serve-option{ min-height: 48px; padding: 7px 20px; gap: 10px; max-width: 100%; white-space: normal; text-align: left; line-height: 1.25; }
.g3 .g3-serve-option__text{ display: flex; flex-direction: column; gap: 3px; }
.g3 .g3-serve-option__text small{ font-weight: 400; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.g3 .g3-btn--ink:hover{ background: var(--g3-a); border-color: var(--g3-a); color: var(--g3-on); translate: 0 -2px; }
.g3 .g3-btn > span{ transition: translate .2s; }
.g3 .g3-btn:hover > span{ translate: 3px 0; }
.g3 .g3-keep{ display: flex; margin-left: auto; border: 1.5px solid var(--g3-ink); border-radius: 999px; overflow: hidden; }
.g3 .g3-keep button{ display: inline-flex; align-items: center; gap: 8px; min-height: 45px; padding: 0 15px; border: 0; background: none; color: var(--g3-ink); font: 700 12px/1 Arial, sans-serif; cursor: pointer; transition: background-color .2s, color .2s; }
.g3 .g3-keep button + button{ border-left: 1.5px solid var(--g3-ink); }
.g3 .g3-keep button:hover{ background: var(--g3-paper-2); }
.g3 .g3-keep button.is-on{ background: var(--g3-a); color: var(--g3-on); }
.g3 .g3-keep button[disabled]{ opacity: .5; cursor: default; }
/* Le pictogramme bat une fois quand on garde le gin. */
.g3 .g3-keep button.is-on i{ animation: g3-beat .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes g3-beat{ 40%{ scale: 1.45; } }

/* En quelques mots : une ligne discrete, plus un titre geant. */
.g3 .g3-top .g3-words{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin: clamp(26px, 3.4vw, 38px) 0 0; font: 700 12px/1.3 Arial, Helvetica, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--g3-soft); }
.g3 .g3-words span + span::before{ content: '\00b7'; margin: 0 .7em; opacity: .5; }
.g3 .g3-words span:last-child{ color: var(--g3-accent); }

/* ---- en-tete de chapitre */
.g3 .g3-head{ display: flex; align-items: flex-end; gap: 16px; margin-bottom: clamp(20px, 3vw, 32px); padding-top: clamp(30px, 4.5vw, 56px); border-top: 1.5px solid var(--g3-ink); }
.g3 .g3-head > span{ font: 900 clamp(46px, 6vw, 84px)/.8 'Arial Black', Arial, sans-serif; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--g3-ink); }
.g3 .g3-head h2{ padding-bottom: 4px; font: italic 400 clamp(26px, 3vw, 40px)/1 Georgia, serif; letter-spacing: -.02em; }
.g3 section:not(.g3-top){ padding-bottom: clamp(36px, 5vw, 64px); }
.g3 .g3-muted{ font-style: italic; color: var(--g3-soft); }
.g3 .g3-more{ display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 18px; font-size: 13px; font-weight: 700; border-bottom: 1.5px solid var(--g3-ink); }
.g3 .g3-more:hover{ color: var(--g3-accent); border-color: var(--g3-accent); }
.g3 .g3-more span{ transition: translate .2s; }
.g3 .g3-more:hover span{ translate: 4px 0; }
/* Le meme lien souligne, quand c'est un bouton (deplier la suite des tonics). */
.g3 button.g3-more{ padding: 0; border-width: 0 0 1.5px; border-radius: 0; background: none; color: inherit; font-family: inherit; cursor: pointer; }

/* ---- 02 · l'histoire : deux colonnes de texte, comme un magazine */
.g3 .g3-prose{ columns: 2 300px; column-gap: clamp(24px, 3vw, 44px); column-rule: 1px solid var(--g3-line); font: 400 16.5px/1.75 Georgia, 'Times New Roman', serif; }
.g3 .g3-prose p{ margin: 0 0 1em; }
.g3 .g3-prose p:first-of-type::first-line{ font-variant: small-caps; letter-spacing: .04em; }
.g3 .g3-prose h3{ break-after: avoid; margin: 1.4em 0 .5em; font: 700 10px/1.6 Arial, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--g3-accent) !important; }
.g3 .g3-prose h3:first-child{ margin-top: 0; }
/* Les botaniques citees : surlignees au feutre, pas en gras. */
.g3 .g3-prose mark{ padding: 0 .12em; background: linear-gradient(transparent 58%, color-mix(in srgb, var(--g3-a) 30%, transparent) 58%); color: inherit; }

/* ---- 03 · le verre : la fiche recette */
/* padding: 0 !important — blazor.bootstrap.css donne un padding lateral force a tout <article> sur
   ordinateur : sans cela l'en-tete sombre de la recette ne touche plus les bords de sa carte. */
.g3 .g3-recipe{ display: grid; grid-template-columns: minmax(0, 1fr); padding: 0 !important; border: 1.5px solid var(--g3-ink); border-radius: 18px; overflow: hidden; }
.g3 .g3-recipe > header{ grid-column: 1 / -1; padding: 22px 24px; background: var(--g3-ink); color: var(--g3-paper); }
.g3 .g3-recipe > header > p:first-child{ font-size: 10px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; opacity: .7; }
.g3 .g3-recipe > header > p:first-child span + span{ margin-left: .5em; }
.g3 .g3-recipe > header h3{ margin-top: 8px; font: 900 clamp(24px, 2.8vw, 38px)/1 'Arial Black', Arial, sans-serif; letter-spacing: -.04em; text-transform: uppercase; text-wrap: balance; }
.g3 .g3-recipe-prose{ max-width: 60ch; margin-top: 10px !important; font: italic 400 15px/1.5 Georgia, serif; opacity: .86; }
.g3 .g3-recipe-photo{ display: none; grid-column: 1 / -1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.g3 .g3-recipe h4{ margin-bottom: 14px; font: 700 10px/1.6 Arial, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--g3-soft) !important; }
.g3 .g3-recipe-need, .g3 .g3-recipe-how{ padding: 22px 24px 24px; }
.g3 .g3-recipe-how{ border-top: 1.5px dashed var(--g3-ink); }
/* Ce qu'il faut : de grandes pastilles, une par ingredient. C'est ce que l'on vient chercher. */
/* 116px : deux pastilles de front sur telephone, au lieu d'une colonne trois fois plus longue. */
.g3 .g3-recipe-need ul{ display: grid; grid-template-columns: repeat(auto-fit, minmax(116px, 1fr)); gap: 10px; }
.g3 .g3-recipe-need li{ display: grid; justify-items: center; align-content: start; gap: 12px; padding: 18px 12px 16px; border: 1px solid var(--g3-line); border-radius: 16px; text-align: center; transition: border-color .2s, translate .25s cubic-bezier(.3, 1.5, .5, 1); }
.g3 .g3-recipe-need li:hover{ border-color: var(--g3-ink); translate: 0 -4px; }
.g3 .g3-recipe-need li > span:last-child{ display: grid; gap: 4px; min-width: 0; }
.g3 .g3-recipe-need small{ font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--g3-accent); }
.g3 .g3-recipe-need strong{ font: 400 17px/1.25 Georgia, serif; overflow-wrap: break-word; text-wrap: balance; }
.g3 .g3-recipe-need strong a{ border-bottom: 1px solid var(--g3-line); }
.g3 .g3-recipe-need strong a:hover{ border-color: var(--g3-accent); color: var(--g3-accent); }
.g3 .g3-recipe-need .g3-pic{ width: clamp(96px, 26cqw, 132px); height: auto; aspect-ratio: 1; }
.g3 .g3-recipe-need .g3-pic b{ font-size: 52px; }
.g3 .g3-pic{ display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; overflow: hidden; background: var(--g3-niche); border: 1px solid var(--g3-line); }
.g3 .g3-pic img{ width: 62%; height: 82%; object-fit: contain; mix-blend-mode: multiply; transition: scale .35s cubic-bezier(.3, 1.4, .5, 1), rotate .35s; }
/* Ce qu'il faut : l'ingredient s'approche quand on le survole. */
.g3 .g3-recipe-need li:hover .g3-pic img{ scale: 1.16; rotate: -3deg; }
.g3 .g3-tonics li a:hover .g3-pic img{ scale: 1.08; rotate: -4deg; }
.g3 .g3-pic--garnish img{ width: 76%; height: 76%; mix-blend-mode: normal; }
.g3 .g3-pic b{ font-size: 24px; font-weight: 400; line-height: 1; }
.g3 .g3-recipe-how ol{ counter-reset: step; list-style: none; }
.g3 .g3-recipe-how li{ counter-increment: step; position: relative; padding: 0 0 14px 44px; font-size: 15px; line-height: 1.6; }
.g3 .g3-recipe-how li::before{ content: counter(step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--g3-ink); font: 900 13px/1 'Arial Black', Arial, sans-serif; }
.g3 .g3-recipe-tip{ margin-top: 6px !important; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--g3-a) 12%, var(--g3-paper)); font: italic 400 15px/1.55 Georgia, serif; }
.g3 .g3-recipe-tip b{ display: block; margin-bottom: 4px; font: 700 9px/1.6 Arial, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--g3-accent); }

.g3 .g3-tonics{ margin-top: 20px; }
.g3 .g3-tonics-why{ display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; font-size: 14px; line-height: 1.6; color: var(--g3-soft); }
.g3 .g3-tonics-why i{ margin-top: 3px; color: var(--g3-accent); }
.g3 .g3-tonics-why strong{ color: var(--g3-ink); }
.g3 .g3-tonics-title{ margin: 20px 0 10px !important; font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--g3-soft); }
.g3 .g3-tonics ul{ display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.g3 .g3-tonics li a{ position: relative; display: grid; grid-template-columns: 50px minmax(0, 1fr); align-items: center; gap: 6px 12px; padding: 8px 14px 8px 8px; border: 1px solid var(--g3-line); border-radius: 16px; transition: border-color .2s, translate .25s cubic-bezier(.3, 1.5, .5, 1); }
.g3 .g3-tonics li a:is(:hover, :focus-visible){ z-index: 3; border-color: var(--g3-ink); translate: 0 -3px; }
/* La vignette : une gelule debout, comme sur la scene. Une bouteille se lit en hauteur, pas dans un rond. */
.g3 .g3-tonics li .g3-pic{ grid-row: span 2; width: 50px; height: 72px; border-radius: 999px; }
/* Hauteurs en px : un pourcentage ne se resout pas dans une cellule de grille a rangee automatique.
   La photo depasse un peu la gelule, qui rogne sa marge blanche. */
.g3 .g3-tonics li .g3-pic img{ width: auto; max-width: none; height: 78px; }
.g3 .g3-tonics li strong{ align-self: end; font: 400 14px/1.25 Georgia, serif; overflow-wrap: break-word; }
/* Pourquoi ce tonic convient aussi : une ligne sous la barre, dans la colonne du nom. */
.g3 .g3-tonic-note{ grid-column: 2; font: italic 400 12px/1.4 Georgia, serif; color: var(--g3-soft); }
/* La proximite avec le tonic conseille : une barre plutot que des points. Elle se remplit a l'apparition. */
.g3 .g3-match{ align-self: start; height: 4px; border-radius: 4px; overflow: hidden; background: var(--g3-line); }
.g3 .g3-match::after{ content: ''; display: block; width: var(--m); height: 100%; border-radius: inherit; background: var(--g3-accent); transform-origin: 0 50%; transition: transform .9s cubic-bezier(.2, .7, .2, 1) .25s; }
.g3[data-g3-js] .g3-tonics:not(.is-in) .g3-match::after{ transform: scaleX(0); }

/* Au survol : la bouteille en grand, dans la meme gelule que la scene, pour la reconnaitre a son etiquette.
   Elle sort au-dessus de la carte ; ginv3.js la fait sortir en dessous quand la place manque en haut. */
.g3 .g3-zoom{
    position: absolute; z-index: 4; left: 4px; bottom: calc(100% + 12px);
    display: grid; place-items: center; width: 168px; height: 268px;
    border: 1.5px solid var(--g3-ink); border-radius: 999px; overflow: hidden;
    background: radial-gradient(ellipse at 50% 30%, #fff, var(--g3-niche) 70%);
    box-shadow: 7px 9px 0 color-mix(in srgb, var(--g3-a) 80%, transparent);
    pointer-events: none; opacity: 0; visibility: hidden; scale: .35; rotate: -8deg; transform-origin: 25px 100%;
    transition: opacity .16s ease, scale .2s ease, rotate .2s ease, visibility 0s .2s;
}
.g3 .g3-zoom img{ width: auto; max-width: none; height: 276px; mix-blend-mode: multiply; }
.g3 .g3-zoom:has(img[style*="none"]){ display: none; }
.g3 .g3-tonics li a.is-below .g3-zoom{ bottom: auto; top: calc(100% + 12px); transform-origin: 25px 0; }
.g3 .g3-tonics li a:focus-visible .g3-zoom{
    opacity: 1; visibility: visible; scale: 1; rotate: 0deg;
    transition: opacity .2s ease, scale .42s cubic-bezier(.3, 1.5, .5, 1), rotate .42s cubic-bezier(.3, 1.5, .5, 1), visibility 0s;
}
@media (hover: hover){
    .g3 .g3-tonics li a:hover .g3-zoom{
        opacity: 1; visibility: visible; scale: 1; rotate: 0deg;
        transition: opacity .2s ease, scale .42s cubic-bezier(.3, 1.5, .5, 1), rotate .42s cubic-bezier(.3, 1.5, .5, 1), visibility 0s;
    }
}

.g3 .g3-empty{ display: grid; justify-items: start; gap: 14px; padding: 26px; border: 1.5px dashed var(--g3-ink); border-radius: 18px; }
.g3 .g3-empty h3{ font: italic 400 24px/1.2 Georgia, serif; }
.g3 .g3-empty p{ margin: 0; max-width: 52ch; color: var(--g3-soft); }

/* ---- 04 · saveurs & botaniques */
.g3 .g3-profile{ display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.g3 .g3-profile li > *{ display: grid; justify-items: center; gap: 8px; padding: 12px 4px 10px; border: 1px solid var(--g3-line); border-radius: 12px; text-align: center; }
.g3 .g3-profile img{ width: min(100%, 52px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.g3 .g3-profile li span span, .g3 .g3-profile li a span{ font-size: 9.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.g3 .g3-profile li:not(.is-on){ opacity: .38; }
.g3 .g3-profile li:not(.is-on) img{ filter: grayscale(1); }
.g3 .g3-profile li.is-on > a{ border: 1.5px solid var(--g3-ink); background: var(--g3-a); color: var(--g3-on); transition: translate .25s cubic-bezier(.3, 1.5, .5, 1); }
.g3 .g3-profile li.is-on > a:hover{ translate: 0 -5px; }
.g3 .g3-profile li.is-on img{ border: 2px solid var(--g3-on); }

.g3 .g3-tags{ display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; }
.g3 .g3-tags a{ display: inline-flex; align-items: center; min-height: 32px; padding: 0 13px; border: 1.5px solid var(--g3-ink); border-radius: 999px; font-size: 12px; font-weight: 700; }
.g3 .g3-tags a:hover{ background: var(--g3-ink); color: var(--g3-paper); }

.g3 .g3-table-title{ display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin: clamp(26px, 3.4vw, 40px) 0 14px; font: 900 clamp(18px, 1.9vw, 24px)/1.1 'Arial Black', Arial, sans-serif; letter-spacing: -.03em; text-transform: uppercase; }
.g3 .g3-table-title span{ font: italic 400 13px Georgia, serif; letter-spacing: 0; text-transform: none; color: var(--g3-soft); }
.g3 .g3-table{ display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.g3 .g3-table a{
    position: relative; display: grid; align-content: end; gap: 2px; aspect-ratio: 1; padding: 10px;
    border: 1.5px solid var(--g3-ink); border-radius: 12px; overflow: hidden;
    transition: background-color .2s, color .2s, translate .25s cubic-bezier(.3, 1.5, .5, 1), rotate .25s;
}
.g3 .g3-table small{ position: absolute; left: 10px; top: 8px; font: 700 10px Arial, sans-serif; color: var(--g3-soft); transition: color .2s; }
.g3 .g3-table b{ font: 900 clamp(30px, 3.2vw, 42px)/.9 'Arial Black', Arial, sans-serif; letter-spacing: -.05em; }
.g3 .g3-table span{ font: 400 12.5px/1.2 Georgia, serif; overflow-wrap: anywhere; }
.g3 .g3-table a:hover{ background: var(--g3-a); border-color: var(--g3-a); color: var(--g3-on); translate: 0 -4px; rotate: -2deg; }
.g3 .g3-table a:hover small{ color: inherit; }

/* ---- 05 · avis */
.g3 .g3-rate{ display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; border: 1.5px solid var(--g3-ink); border-radius: 18px; overflow: hidden; }
.g3 .g3-rate-community{ display: grid; align-content: center; justify-items: center; gap: 6px; min-width: 150px; padding: 20px 24px; background: var(--g3-a); color: var(--g3-on); text-align: center; }
.g3 .g3-rate-community strong{ font: 900 clamp(48px, 5vw, 72px)/.9 'Arial Black', Arial, sans-serif; letter-spacing: -.06em; }
.g3 .g3-rate-community span{ max-width: 16ch; font: italic 400 13px/1.3 Georgia, serif; opacity: .86; }
.g3 .g3-rate-mine{ display: grid; align-content: center; gap: 12px; padding: 20px 24px; }
.g3 .g3-rate-mine p{ display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--g3-soft); }
.g3 .g3-rate-mine p strong{ font: 900 22px/1 'Arial Black', Arial, sans-serif; letter-spacing: -.03em; color: var(--g3-ink); }
.g3 .g3-scale{ display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); border: 1.5px solid var(--g3-ink); border-radius: 10px; overflow: hidden; }
.g3 .g3-scale button{ min-height: 44px; padding: 0; border: 0; background: none; color: var(--g3-ink); font: 900 14px/1 'Arial Black', Arial, sans-serif; cursor: pointer; transition: background-color .15s, color .15s; }
.g3 .g3-scale button + button{ border-left: 1px solid var(--g3-line); }
.g3 .g3-scale button.is-on{ background: var(--g3-accent); color: var(--g3-paper); }
/* Survol : la reglette se remplit jusqu'au cran vise. */
.g3 .g3-scale:hover button{ background: color-mix(in srgb, var(--g3-accent) 55%, var(--g3-paper)); color: var(--g3-ink); }
.g3 .g3-scale button:hover ~ button{ background: none; color: var(--g3-ink); }
.g3 .g3-scale button[disabled]{ opacity: .5; cursor: default; }
.g3 .g3-legacy{ margin-top: 18px; }
.g3 .g3-comments h3{ display: flex; align-items: center; gap: 10px; margin: 26px 0 14px; font: 700 10px/1.6 Arial, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--g3-soft) !important; }
.g3 .g3-comments h3::after{ content: ''; flex: 1; height: 1px; background: var(--g3-line); }

/* ---- 07 · voisins */
.g3 .g3-next-label{ margin: 22px 0 10px; font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--g3-soft); }
.g3 .g3-cards{ display: flex; gap: 10px; margin: 0; padding: 4px 0 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--g3-ink) transparent; }
.g3 .g3-cards li{ flex: 0 0 clamp(132px, 15vw, 164px); scroll-snap-align: start; }
.g3 .g3-cards a{ display: grid; gap: 6px; height: 100%; padding: 8px 8px 12px; border: 1px solid var(--g3-line); border-radius: 14px; transition: border-color .2s, translate .25s cubic-bezier(.3, 1.5, .5, 1); }
.g3 .g3-cards a:hover{ border-color: var(--g3-ink); translate: 0 -4px; }
.g3 .g3-card-pic{ display: grid; place-items: center; aspect-ratio: 4 / 5; padding: 10%; border-radius: 9px; background: linear-gradient(170deg, color-mix(in srgb, var(--gin-a) 26%, var(--g3-niche)), var(--g3-niche) 70%); }
.g3 .g3-card-pic img{ max-width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: scale .3s, rotate .3s; }
.g3 .g3-cards a:hover img{ scale: 1.06; rotate: 3deg; }
.g3 .g3-cards strong{ font: 400 14.5px/1.25 Georgia, serif; overflow-wrap: anywhere; }
.g3 .g3-cards small{ font-size: 10px; letter-spacing: .04em; color: var(--g3-soft); }

.g3 .g3-next-intro{ max-width: 68ch; margin: -2px 0 12px; font: italic 400 13px/1.5 Georgia, serif; color: var(--g3-soft); }
/* L'appel aux revendeurs : une ligne discrete, pas un encart. */
/* Bouton d'achat du revendeur : meme bouton plein que « Comment le servir », au lieu du degrade
   du site, illisible sur la feuille. Le nom de la boutique s'affiche en entier, sur deux lignes au besoin. */
/* La feuille est etroite a cote de la scene : le prix et le bouton passent sous la boutique, sur toute
   la largeur de la carte, quelle que soit la largeur de la fenetre (la carte d'origine se regle sur elle). */
.g3 .wtb-shop{ grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "logo identity" "cta cta"; }
.g3 .wtb-shop__cta{ flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; text-align: left; padding-top: 12px; border-top: 1px dashed var(--g3-line); }
.g3 .wtb-shop__price{ width: auto; }
.g3 .wtb-shop__buy{
    width: auto; max-width: 100%; margin-left: auto; padding: 12px 20px; border: 1.5px solid var(--g3-ink); border-radius: 999px;
    background: var(--g3-ink); color: var(--g3-paper); box-shadow: none;
    font-size: 13px; font-weight: 800; line-height: 1.25; letter-spacing: .01em; text-align: left;
    transition: background .2s, border-color .2s, color .2s, translate .2s;
}
.g3 .wtb-shop__buy:is(:hover, :focus-visible){ background: var(--g3-a); border-color: var(--g3-a); color: var(--g3-on); box-shadow: none; transform: none; translate: 0 -2px; }
.g3 .wtb-shop__buy span{ max-width: none; overflow: visible; white-space: normal; text-overflow: clip; }
.g3 .wtb-shop__buy i{ flex: none; font-size: 12px; }
.g3 .comments-empty .g3-taste-cta{ margin-top: 16px; gap: 10px; }
.g3 .g3-reseller{ margin: 18px 0 0; font-size: 13px; line-height: 1.5; color: var(--g3-soft); }
.g3 .g3-reseller a{ color: var(--g3-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.g3 .g3-reseller a:hover{ color: var(--g3-accent); }
.g3 .g3-sheet > .g3-reseller{ margin: 0 0 clamp(22px, 3vw, 32px); }

.g3 .g3-end{ display: flex; flex-wrap: wrap; gap: 10px; padding-top: clamp(26px, 4vw, 44px); border-top: 1.5px solid var(--g3-ink); }

/* ================================================================ APPARITIONS (seulement avec le script) */

.g3[data-g3-js] [data-g3-reveal]{ opacity: 0; translate: 0 22px; transition: opacity .7s ease, translate .7s cubic-bezier(.2, .7, .2, 1); }
/* « none » et non « 0 0 » a l'arrivee : un translate, meme nul, fait du bloc la reference des
   position: fixed qu'il contient (fenetre de degustation, confirmations). */
.g3[data-g3-js] [data-g3-reveal].is-in{ opacity: 1; translate: none; }
.g3[data-g3-js] .g3-table.is-in li{ animation: g3-pop .5s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(var(--k) * 45ms); }
@keyframes g3-pop{ from{ opacity: 0; scale: .6; rotate: -8deg; } }
@keyframes g3-slide{ from{ opacity: 0; translate: -16px 0; } }
/* La recette et le profil se posent piece par piece : les ingredients, puis les gestes ; les saveurs du gin. */
.g3 :is(.g3-recipe-need, .g3-recipe-how, .g3-profile) li:nth-child(2){ --i: 1; }
.g3 :is(.g3-recipe-need, .g3-recipe-how, .g3-profile) li:nth-child(3){ --i: 2; }
.g3 :is(.g3-recipe-need, .g3-recipe-how, .g3-profile) li:nth-child(4){ --i: 3; }
.g3 :is(.g3-recipe-need, .g3-recipe-how, .g3-profile) li:nth-child(5){ --i: 4; }
.g3 :is(.g3-recipe-need, .g3-recipe-how, .g3-profile) li:nth-child(6){ --i: 5; }
.g3 :is(.g3-recipe-need, .g3-recipe-how, .g3-profile) li:nth-child(7){ --i: 6; }
.g3 :is(.g3-recipe-need, .g3-recipe-how, .g3-profile) li:nth-child(n + 8){ --i: 7; }
.g3[data-g3-js] .g3-recipe.is-in .g3-recipe-need li{ animation: g3-pop .55s cubic-bezier(.3, 1.5, .5, 1) backwards; animation-delay: calc(.15s + var(--i, 0) * 70ms); }
.g3[data-g3-js] .g3-recipe.is-in .g3-recipe-how li{ animation: g3-slide .6s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(.4s + var(--i, 0) * 90ms); }
.g3[data-g3-js] .g3-profile.is-in li.is-on{ animation: g3-pop .5s cubic-bezier(.3, 1.5, .5, 1) backwards; animation-delay: calc(.1s + var(--i, 0) * 60ms); }

/* ================================================================ OUVERTURE (sans script)

   La page s'ouvre en un geste : le titre et le ticket montent l'un apres l'autre, la bouteille glisse
   dans sa gelule. La photo n'est jamais masquee (c'est le plus grand element de la page). */
@keyframes g3-rise{ from{ opacity: 0; translate: 0 24px; } }
@keyframes g3-bottle-in{ from{ translate: 0 16%; rotate: 5deg; } }
.g3 .g3-top > *{ animation: g3-rise .8s cubic-bezier(.2, .7, .2, 1) backwards; }
.g3 .g3-top > :nth-child(2){ animation-delay: .06s; }
.g3 .g3-top > :nth-child(3){ animation-delay: .12s; }
.g3 .g3-top > :nth-child(4){ animation-delay: .18s; }
.g3 .g3-top > :nth-child(5){ animation-delay: .24s; }
.g3 .g3-top > :nth-child(n + 6){ animation-delay: .3s; }
.g3 .g3-set-moon img{ animation: g3-bottle-in 1.2s cubic-bezier(.2, .8, .2, 1) backwards; }
.g3 :is(.g3-tease, .g3-caption){ animation: g3-rise .8s cubic-bezier(.2, .7, .2, 1) .35s backwards; }

/* ================================================================ ETROIT */

/* La fiche vit dans la colonne du site : ses mises en page se reglent sur SA largeur. */
@container g3sheet (max-width: 700px){
    .g3 .g3-top .g3-ticket{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .g3 .g3-ticket > div:nth-child(3){ border-left: 0; }
    .g3 .g3-ticket > div:nth-child(n + 3){ border-top: 1.5px dashed var(--g3-ink); }
    .g3 .g3-profile{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
    /* Les trois « garder » passent sous les boutons, sur toute la largeur : une rangee a part, pas un bouton colle. */
    .g3 .g3-keep{ flex: 1 1 100%; margin-left: 0; }
    .g3 .g3-keep button{ flex: 1; justify-content: center; }
}

/* Une colonne : la scene redevient une simple ouverture, sans changement de decor. */
@media (max-width: 900px){
    .g3{ grid-template-columns: minmax(0, 1fr); --g3-top: 72px; }
    .g3 .g3-stage{ position: relative; top: auto; height: min(72vh, 560px); min-height: 400px; border-radius: 21px 21px 0 0; }
    .g3 .g3-set-glass, .g3 .g3-set-side, .g3 .g3-set-flavors, .g3 .g3-set-score, .g3 .g3-stage::after{ display: none; }
    .g3 .g3-tease{ opacity: 1 !important; pointer-events: auto !important; }
    .g3 .g3-set-moon{ scale: 1 !important; translate: 0 0 !important; rotate: 0deg !important; }
    .g3 .g3-caption span{ opacity: 0 !important; }
    .g3 .g3-caption span[data-for="bottle"]{ opacity: 1 !important; translate: 0 0 !important; }
    .g3 .g3-sheet{ border-left: 0; }
    .g3 .g3-rail{ border-radius: 0; }
    .g3 .g3-recipe-photo{ display: block; }
    .g3 .g3-rate{ grid-template-columns: minmax(0, 1fr); }
    .g3 .g3-keep button span{ display: none; }
}

@media (max-width: 520px){
    .g3 .g3-btn{ flex: 1 1 100%; }
    .g3 .g3-table{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .g3 .g3-prose{ columns: 1; }
}

@media (prefers-reduced-motion: reduce){
    .g3 *, .g3 *::before, .g3 *::after{ animation: none !important; transition-duration: .01ms !important; }
    .g3[data-g3-js] [data-g3-reveal]{ opacity: 1; translate: none; }
    .g3 .g3-stage::after{ display: none; }
}
