/* Tony Hardwood — speakeasy infographic */

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

* {
  margin: 0;
}

:root {
  --bg: #070d1a;
  --bg-2: #0b1426;
  --card: #10203a;
  --line: rgba(136, 198, 228, .16);
  --tony: #88c6e4;
  --tony-deep: #4fa8d6;
  --gold: #d4b46a;
  --gold-deep: #a8873a;
  --ink: #f3efe6;
  --muted: #9aa8bd;
  --no: #e07a6a;
  --jersey: #ff7a59;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", system-ui, Helvetica, Arial, sans-serif;

  --maxw: 1120px;
  --pad-inline: clamp(20px, 5vw, 64px);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='200'%20height='200'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.85'%20numOctaves='3'%20stitchTiles='stitch'/%3E%3C/filter%3E%3Crect%20width='200'%20height='200'%20filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--tony);
  outline-offset: 3px;
}

/* ---------- Type ---------- */

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.01em;
  text-wrap: balance;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--gold);
}

.lead {
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: 46ch;
}

/* ---------- Layout shells ---------- */

.section {
  padding-block: clamp(72px, 10vw, 140px);
  padding-inline: var(--pad-inline);
  scroll-margin-top: 12px;
}

.section-alt {
  background: var(--bg-2);
}

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 960px) {
  .wrap {
    gap: 48px;
  }
}

/* ---------- Reveal ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

.btn-primary {
  background: var(--tony);
  color: #061020;
}

.btn-primary:hover {
  background: var(--tony-deep);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--tony);
  color: var(--tony);
}

/* ---------- Hero ---------- */

.hero {
  min-height: min(100svh, 900px);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: 132px 84px;
  padding-inline: var(--pad-inline);
  scroll-margin-top: 0;
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--pad-inline);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: .015em;
  text-decoration: none;
  color: var(--ink);
  padding-block: 10px;
}

.wordmark:hover {
  color: var(--tony);
}

.topnav {
  display: none;
}

@media (min-width: 640px) {
  .topnav {
    display: flex;
    align-items: center;
    gap: 30px;
  }

  .topnav a {
    display: inline-block;
    padding-block: 12px;
    font-size: .75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .16em;
    text-decoration: none;
    color: var(--muted);
    transition: color .3s ease;
  }

  .topnav a:hover {
    color: var(--tony);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 44px;
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    gap: 56px;
  }
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-line {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.hero-line em {
  font-style: italic;
  color: var(--tony);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 6px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.hero-eyebrow,
.hero-line,
.hero-actions {
  animation: rise .9s cubic-bezier(.2, .7, .2, 1) both;
}

.hero-eyebrow {
  animation-delay: 0s;
}

.hero-line:nth-child(1) {
  animation-delay: .2s;
}

.hero-line:nth-child(2) {
  animation-delay: .9s;
}

.hero-line:nth-child(3) {
  animation-delay: 1.6s;
}

.hero-actions {
  animation-delay: 1.6s;
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-art::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 420px;
  height: 420px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(136, 198, 228, .18) 0%, rgba(136, 198, 228, 0) 65%);
  pointer-events: none;
}

.hero-art img {
  position: relative;
  width: 100%;
  max-width: 220px;
  height: auto;
}

@media (min-width: 960px) {
  .hero-art {
    justify-content: flex-end;
  }

  .hero-art::before {
    width: 620px;
    height: 620px;
  }

  .hero-art img {
    max-width: 320px;
  }
}

/* ---------- 01 Ingrédients ---------- */

.ingredients {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

@media (min-width: 640px) {
  .ingredients {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (min-width: 960px) {
  .ingredients {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
  }
}

.ingredient {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.ing-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(4rem, 9vw, 6.5rem);
  line-height: .85;
  color: var(--gold);
}

.ingredient img {
  align-self: center;
  width: auto;
  height: 200px;
  margin-block: 6px;
}

@media (min-width: 640px) {
  .ingredient img {
    height: 240px;
  }
}

.ing-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.ing-name em {
  font-style: italic;
  color: var(--gold);
}

.ing-note {
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Composition bar */

.ratio {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ratio-bar {
  display: flex;
  gap: 2px;
  height: 28px;
}

.seg {
  display: block;
  border-radius: 2px;
}

.seg-smirnoff {
  flex: 32 1 0%;
  background: rgba(136, 198, 228, .55);
}

.seg-rev {
  flex: 43 1 0%;
  background: var(--tony-deep);
}

.seg-vodka {
  flex: 5 1 0%;
  background: rgba(243, 239, 230, .3);
}

.seg-sevenup {
  flex: 20 1 0%;
  background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(136, 198, 228, .45) 5px 7px);
  border: 1px dashed var(--line);
}

.ratio-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.leg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  line-height: 1.35;
  color: var(--muted);
}

.leg::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 1px;
}

.leg-smirnoff::before {
  background: rgba(136, 198, 228, .55);
}

.leg-rev::before {
  background: var(--tony-deep);
}

.leg-vodka::before {
  background: rgba(243, 239, 230, .3);
}

.leg-sevenup::before {
  background: repeating-linear-gradient(135deg, transparent 0 3px, rgba(136, 198, 228, .45) 3px 5px);
  border: 1px dashed var(--line);
}

.leg-name {
  color: var(--ink);
}

@media (min-width: 640px) {
  .ratio-legend {
    flex-wrap: nowrap;
    gap: 2px;
  }

  .leg {
    display: block;
    min-width: 0;
    padding-right: 10px;
  }

  .leg::before {
    display: none;
  }

  .leg-name {
    display: block;
  }

  .leg-smirnoff {
    flex: 32 1 0%;
  }

  .leg-rev {
    flex: 43 1 0%;
  }

  .leg-vodka {
    flex: 5 1 0%;
    min-width: max-content;
  }

  .leg-sevenup {
    flex: 20 1 0%;
    padding-right: 0;
  }
}

.ratio-caption {
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 56ch;
}

.icon {
  flex: 0 0 auto;
  color: var(--tony);
}

/* Service + carte : deux cartes sous le ratio */

.notes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding-top: 8px;
}

@media (min-width: 760px) {
  .notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.note-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--tony);
}

.note-qr {
  flex: 0 0 auto;
  padding: 6px;
  background: #ffffff;
  border-radius: 2px;
}

.note-qr img {
  width: 96px;
  height: 96px;
}

.note-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.note-body h3 {
  font-size: 1.5rem;
}

.note-text {
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--muted);
}

.note-body .btn {
  align-self: flex-start;
  margin-top: 8px;
}

@media (max-width: 420px) {
  .note {
    flex-direction: column;
    gap: 18px;
    padding: 24px;
  }
}

/* ---------- 02 Méthode ---------- */

.steps {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}

@media (min-width: 640px) {
  .step {
    gap: 24px;
    padding-block: 26px;
  }
}

.step-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: lining-nums;
}

@media (min-width: 640px) {
  .step-num {
    font-size: 2.75rem;
  }
}

.step-icon {
  color: var(--tony);
}

.step-text {
  font-size: 1.0625rem;
  line-height: 1.5;
}

@media (min-width: 960px) {
  .step-text {
    font-size: 1.1875rem;
  }
}

/* ---------- 03 La bonne couleur ---------- */

.couleur-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

@media (min-width: 960px) {
  .couleur-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 52px;
  }
}

.couleur-cible {
  display: flex;
  align-items: flex-end;
  min-height: 260px;
  padding: 20px;
  background: #88c6e4;
  border-radius: 4px;
}

.cible-label {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #0b1426;
}

.couleur-scale {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.swatches {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}

.swatch {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 72px;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sw-1 {
  background: #dff1fa;
}

.sw-2 {
  background: #bfe2f3;
}

.sw-3 {
  background: #88c6e4;
}

.sw-4 {
  background: #5aa9d3;
}

.sw-5 {
  background: #2f7fb0;
}

.is-perfect {
  box-shadow: 0 0 0 2px var(--gold);
  color: var(--gold-deep);
}

.check {
  width: 20px;
  height: 20px;
}

.couleur-labels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--muted);
}

.cl-mid {
  color: var(--ink);
}

@media (min-width: 640px) {
  .couleur-labels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 400px;
  }

  .cl-mid {
    text-align: center;
  }

  .cl-right {
    text-align: right;
  }
}

.couleur-note {
  font-size: .875rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 44ch;
}

/* ---------- 04 Fiche technique ---------- */

.fiche {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 640px) {
  .fiche {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }
}

@media (min-width: 960px) {
  .fiche {
    column-gap: 80px;
  }
}

.fiche-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}

.fiche dt {
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
}

.fiche dd {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.25;
  color: var(--ink);
}

/* ---------- 05 Le proprio ---------- */

.tony {
  position: relative;
}

.tony::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--jersey), var(--gold), var(--tony));
}

.eyebrow-jersey {
  color: var(--jersey);
}

.tony-body {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
}

.tony-text {
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 52ch;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.badge-jersey {
  color: var(--jersey);
}

.badge-gold {
  color: var(--gold);
}

.badge-tony {
  color: var(--tony);
}

.avis {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--ink);
  border-left: 2px solid var(--gold);
  padding-left: 20px;
  max-width: 46ch;
}

/* ---------- 06 Livre d'or ---------- */

.livre-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
}

@media (min-width: 960px) {
  .livre-grid {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    grid-template-areas:
      "art head"
      "art body";
    align-items: start;
    column-gap: 64px;
    row-gap: 36px;
  }

  .livre-head {
    grid-area: head;
  }

  .livre-art {
    grid-area: art;
    align-self: center;
  }

  .livre-body {
    grid-area: body;
  }
}

.livre-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.livre-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--ink);
  max-width: 34ch;
}

.livre-art {
  display: flex;
  justify-content: center;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.livre-art img {
  width: 100%;
  max-width: 260px;
  height: auto;
  animation: float 6s ease-in-out infinite;
}

@media (min-width: 960px) {
  .livre-art img {
    max-width: 300px;
  }
}

.livre-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.livre-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.livre-form label {
  font-size: .8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
}

.livre-form input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.2;
}

.livre-form input::placeholder {
  color: var(--muted);
  opacity: .8;
}

.livre-form input:hover {
  border-color: rgba(136, 198, 228, .34);
}

@media (min-width: 640px) {
  .livre-form {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "lab lab"
      "field action";
    gap: 10px 12px;
    align-items: center;
  }

  .livre-form label {
    grid-area: lab;
  }

  .livre-form input {
    grid-area: field;
  }

  .livre-form button {
    grid-area: action;
  }
}

.livre-message {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--muted);
  max-width: 44ch;
}

.livre-message:empty {
  display: none;
}

.livre-message.is-ok {
  color: var(--tony);
}

.livre-message.is-no {
  color: var(--no);
}

.livre-liste {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.livre-vide {
  font-size: .9375rem;
  color: var(--muted);
}

.livre-signatures {
  display: flex;
  flex-direction: column;
}

.livre-signatures:empty {
  display: none;
}

.livre-signatures li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
  border-top: 1px solid var(--line);
}

.livre-signatures li:first-child {
  border-top: 0;
}

.sig-nom {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}

.sig-date {
  flex: 0 0 auto;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.livre-note {
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
}

/* ---------- Footer ---------- */

.footer {
  padding-block: 56px 72px;
  padding-inline: var(--pad-inline);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 500;
  line-height: 1.25;
}

.footer-note {
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-delay: 0s !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
}

/* Note (badge étoiles, 4.8 sur 5 : la cinquième étoile est remplie à 80 %) */
.badge-note {
  gap: 10px;
}
.badge-note .stars {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: .08em;
  line-height: 1;
  background: linear-gradient(90deg, var(--gold) 0 96%, rgba(212, 180, 106, .28) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.badge-note .note {
  font-weight: 600;
}

/* Mot en or dans le texte courant */
.or {
  font-style: inherit;
  color: var(--gold);
}

/* Étiquette « Variation » sur la carte 7up */
.ing-tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 3px 8px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
