/* Fiche tonic V3 — ce qui est propre a un tonic.

   Toute la mise en page (scene epinglee, ticket, rail, en-tetes de chapitre, cartes, reglette)
   vient de css/Gins/ginv3.css : la page porte les classes `.g3.t3`. Ce fichier n'ajoute que les
   jauges du profil, la liste d'ingredients et les revendeurs, avec les memes variables (--g3-*). */

.g3.t3 :is(.t3-gauges, .t3-ingredients, .t3-shops){ margin: 0; padding: 0; list-style: none; }
.g3.t3 :is(.t3-gauges, .t3-shops) :is(dd, p){ margin: 0; }
.g3.t3 .t3-shops a{ color: inherit; text-decoration: none; }

/* La marque, dans le fil d'Ariane : du texte, avec le meme separateur que les liens. */
.g3.t3 .g3-crumbs span{ display: inline-flex; align-items: center; min-height: 28px; }
.g3.t3 .g3-crumbs span::before{ content: '/'; margin: 0 9px; opacity: .5; }

/* La bouteille d'un tonic est fine et haute : un peu moins de zoom que pour un gin. */
.g3.t3 .g3-set-moon img{ scale: 1.2; }
/* Scene « gins a associer » : la bouteille se range devant la photo du verre, comme sur la fiche gin. */
.g3.t3 .g3-tease-pics .g3-tease-bottle img{ width: 62%; height: 86%; }

/* Survol d'un gin : la photo de son perfect serve remplace celle de la scene, en fondu (tonicv3.js). */
.g3.t3 .g3-set-glass img{ transition: opacity .22s ease; }
.g3.t3 .g3-set-glass.is-swapping img{ opacity: 0; }
.g3.t3 .t3-cards a.is-shown{ border-color: var(--g3-ink); }

/* ---- les cartes des gins a associer : la bouteille, puis le nom de son perfect serve */
.g3.t3 .t3-cards li{ flex-basis: clamp(140px, 16vw, 176px); }
.g3.t3 .t3-cards small{ display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font: italic 400 12px/1.35 Georgia, serif; letter-spacing: 0; }
.g3.t3 .t3-cards .g3-card-pic{ --gin-a: var(--g3-a); }

/* ---- le profil : trois reperes cote a cote, separes comme les cases du ticket */
.g3.t3 .t3-gauges{ display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border: 1.5px solid var(--g3-ink); border-radius: 18px; overflow: hidden; }
.g3.t3 .t3-gauges > div{ display: grid; align-content: start; gap: 10px; padding: 18px 20px 20px; }
.g3.t3 .t3-gauges > div + div{ border-left: 1.5px dashed var(--g3-ink); }
.g3.t3 .t3-gauges dt{ font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--g3-soft); }
.g3.t3 .t3-gauges dd{ display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.g3.t3 .t3-gauges dd strong{ font: 900 clamp(30px, 3.4vw, 44px)/.9 'Arial Black', Arial, sans-serif; letter-spacing: -.05em; }
.g3.t3 .t3-gauges dd span{ font-size: 12px; color: var(--g3-soft); }
.g3.t3 .t3-gauges dd em{ margin-left: auto; font: italic 400 15px Georgia, serif; color: var(--g3-accent); }
.g3.t3 .t3-note{ font: italic 400 14px Georgia, serif; color: var(--g3-soft); }

/* La jauge de sucre : sec / classique / doux, avec un curseur. */
.g3.t3 .t3-bar{ position: relative; display: block; height: 8px; margin-top: 6px; border-radius: 8px; background: linear-gradient(90deg, var(--g3-line) 0 41.6%, color-mix(in srgb, var(--g3-accent) 45%, var(--g3-paper)) 41.6% 66.6%, var(--g3-accent) 66.6% 100%); }
.g3.t3 .t3-bar i{ position: absolute; left: var(--at); top: 50%; width: 18px; height: 18px; margin: -9px; border-radius: 50%; background: var(--g3-paper); border: 2px solid var(--g3-ink); transform-origin: 50% 50%; transition: left .9s cubic-bezier(.2, .7, .2, 1) .2s; }
.g3.t3[data-g3-js] .t3-gauges:not(.is-in) .t3-bar i{ left: 0; }
.g3.t3 .t3-scale{ display: grid; grid-template-columns: 41.6% 25% 33.4%; gap: 0; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--g3-soft); }
.g3.t3 .t3-scale span:nth-child(2){ text-align: center; }
.g3.t3 .t3-scale span:nth-child(3){ text-align: right; }

/* L'amertume : des crans pleins ou vides. */
.g3.t3 .t3-dots{ gap: 6px; margin-top: 6px; }
.g3.t3 .t3-dots i{ flex: 1; max-width: 34px; height: 10px; border-radius: 10px; border: 1.5px solid var(--g3-ink); }
.g3.t3 .t3-dots i.is-on{ background: var(--g3-ink); }

/* ---- les ingredients : une liste numerotee sur plusieurs colonnes */
.g3.t3 .t3-ingredients{ columns: 2 200px; column-gap: 28px; }
.g3.t3 .t3-ingredients li{ display: flex; align-items: baseline; gap: 12px; break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--g3-line); font: 400 16px/1.3 Georgia, serif; }
.g3.t3 .t3-ingredients small{ flex: none; font: italic 400 12px Georgia, serif; color: var(--g3-accent); }

/* ---- les revendeurs */
.g3.t3 .t3-shops{ display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.g3.t3 .t3-shops a{ display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 58px; padding: 0 18px; border: 1.5px solid var(--g3-ink); border-radius: 999px; transition: background-color .2s, color .2s, translate .25s cubic-bezier(.3, 1.5, .5, 1); }
.g3.t3 .t3-shops a:hover{ background: var(--g3-ink); color: var(--g3-paper); translate: 0 -3px; }
.g3.t3 .t3-shops i{ color: var(--g3-accent); }
.g3.t3 .t3-shops a:hover i{ color: inherit; }
.g3.t3 .t3-shops strong{ overflow: hidden; font: 400 16px/1.2 Georgia, serif; text-overflow: ellipsis; white-space: nowrap; }

.g3.t3 .g3-rate-mine .g3-muted{ font-size: 13px; }

@media (max-width: 900px){
    .g3.t3 .t3-gauges > div + div{ border-left: 0; border-top: 1.5px dashed var(--g3-ink); }
}
