/* =========================================
   VARIABLES
========================================= */

:root {
  --orange: #ff5700;
  --purple: #cf70f5;
  --dark-purple: #351042;
  --black: #140c18;
  --cream: #f7eecb;
  --green: #dce892;
  --white: #ffffff;

  --container: 1320px;
  --nav-height: 84px;
  --logo-width: 183px;
  --logo-height: 66px; /* < hauteur de la nav (84px - 5px de bordure) : le logo ne déborde plus */

  --shadow: 0 6px 0 #1b1020;
}

/* =========================================
   RESET
========================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  font-family: "Hanken Grotesk", Arial, sans-serif;
  background: var(--cream);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(var(--container), calc(100% - 80px));
  margin-inline: auto;
}

.display-title {
  font-family: "Syne", Arial, sans-serif;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -2.88px;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

/* =========================================
   NAVBAR
========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: var(--nav-height);
  background: var(--orange);
  border-bottom: 5px solid var(--dark-purple);
}

.navbar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* LOGO */

.logo {
  width: var(--logo-width);
  height: var(--logo-height);
  flex: 0 0 var(--logo-width);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(25px, 3.5vw, 60px);
  font-family: "Syne", Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  color: var(--white);
  white-space: nowrap;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: -8px;
  left: 0;
  height: 3px;
  background: var(--cream);
  transition: right 0.25s ease;
}

.nav-links a:hover {
  color: var(--dark-purple);
  transform: translateY(-3px) rotate(-1deg);
}

.nav-links a:hover::after {
  right: 0;
}

/* Panier (remplace "Shop") */

.cart-link {
  display: flex;
  align-items: center;
}

.nav-links .cart-link::after {
  display: none;
}

.menu-button {
  display: none;
  padding: 6px;
  color: var(--black);
  font-size: 30px;
  line-height: 1;
  background: transparent;
  border: 0;
}

/* =========================================
   HERO
========================================= */

.hero {
  display: grid;
  grid-template-columns: 48% 52%;
}

/* TEXTO IZQUIERDO */

.hero-content {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 80px clamp(40px, 6vw, 100px);
  background: var(--cream);
}

.hero-content-inner {
  width: 100%;
  max-width: 640px;
}

.eyebrow {
  display: inline-block;
  padding: 5px 10px;
  font-family: "Syne", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--orange);
  transform: rotate(-2deg);
  transform-origin: left center;
}

.hero-title {
  margin: 22px 0 30px;
  /* 6.2vw : "SNACK" tient toujours dans la colonne (le K n'est plus coupé) */
  font-size: clamp(52px, 6.2vw, 108px);
}

/* Bouton principal plus grand */
.hero .button {
  min-width: 300px;
  padding: 20px 40px;
  font-size: 19px;
}

.hero-title span {
  display: block;
  width: max-content; /* le dégradé couvre tout le mot : le K n'est plus coupé */
  color: transparent;
  background: linear-gradient(
    90deg,
    var(--orange),
    var(--purple)
  );
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-text {
  max-width: 510px;
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
}

/* PARALLAX DERECHO */

.hero-media {
  position: relative;
  container-type: size; /* permet à .chips-stage de lire la taille du panneau */
  min-width: 0;
  /* hauteur de la maquette (810 x 950) sans dépasser l'écran sous la nav */
  height: clamp(600px, 52vw * 950 / 810, 100vh - 84px);
  min-height: 0;
  overflow: hidden;
  background: #000000;
}

.hero-parallax {
  position: absolute;
  top: -60px;
  right: 0;
  bottom: -60px;
  left: 0;
  width: 100%;
  height: calc(100% + 120px);
  object-fit: cover;
  object-position: center;
  transform: translate3d(0, 0, 0) scale(1.08);
  transform-origin: center;
  will-change: transform;
}

/* CHIPS DÉTOURÉES : positions en % du panneau (maquette 810 x 950) */

/* Scène au format de la maquette (810 x 950), qui couvre le panneau comme une photo
   (object-fit: cover) : les chips gardent exactement leur position relative */
.chips-stage {
  position: absolute;
  top: 0; /* ancrée en haut : si la place manque, on coupe en bas (comme la maquette) */
  left: 50%;
  width: max(100cqw, 100cqh * 810 / 950); /* cq = taille du panneau .hero-media */
  aspect-ratio: 810 / 950;
  transform: translateX(-50%);
  pointer-events: none;
}

.chip {
  position: absolute;
  z-index: 1;
  max-width: none;
  height: auto;
  filter: drop-shadow(0 18px 24px #000a);
  will-change: transform;
  pointer-events: none;
}

.chip-9  { left: 3.7%;  top: -9%;   width: 36%; }
.chip-4  { left: 45%;   top: -1.5%; width: 16.5%; }
.chip-8  { left: 74%;   top: -1%;   width: 28%; }
.chip-2a { left: 5.5%;  top: 25.5%; width: 31%; }
.chip-1  { left: 29.5%; top: 9.5%;  width: 72%;  z-index: 2; }
.chip-2b { left: 10.5%; top: 50%;   width: 49%;  z-index: 3; }
.chip-6  { left: 63%;   top: 55%;   width: 38%;  z-index: 3; }
.chip-3  { left: -1%;   top: 73%;   width: 54%;  z-index: 4; }
.chip-7  { left: 74%;   top: 77%;   width: 27%;  z-index: 4; }
.chip-15 { left: 97.5%; top: 30%;   width: 2.5%; }

/* =========================================
   BOTONES
========================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 30px;
  padding: 15px 25px;
  color: var(--black);
  font-family: "Syne", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  background: var(--orange);
  border: 2px solid var(--black);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover {
  box-shadow: 0 3px 0 var(--black);
  transform: translate(3px, 3px);
}

.button-purple {
  background: var(--purple);
}

/* =========================================
   BANDA MORADA
========================================= */

.ticker {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--purple);
  border-top: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
}

.ticker-track {
  min-width: max-content;
  display: flex;
  align-items: center;
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: ticker-animation 30s linear infinite;
}

/* margin (et pas gap) : les deux moitiés sont identiques, la boucle ne saute pas */
.ticker-track span {
  flex-shrink: 0;
  margin-right: 50px;
}

/* Étoile ☆ entre chaque message (maquette) */
.ticker-track span::before {
  content: "☆";
  margin-right: 50px;
  color: var(--black);
  font-size: 18px;
}

@keyframes ticker-animation {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* =========================================
   HISTORIA
========================================= */

.history {
  position: relative;
  padding: 110px 0;
  color: var(--white);
  background-color: var(--dark-purple);
  background-image:
    url("../images/backrgound seccion2.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.history-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 90px;
}

.history-content {
  position: relative;
  z-index: 3;
}

.history-title {
  margin: 0 0 28px;
  color: #d3c9df;
  font-size: clamp(55px, 6vw, 92px);
}

.history-title span {
  color: var(--orange);
}

.history-content p {
  max-width: 540px;
  margin: 0 0 18px;
  color: var(--white);
  font-size: 18px;
  line-height: 1.55;
}

/* FOTO Y RECTÁNGULO NARANJA */

.history-image {
  position: relative;
  height: 540px;
  margin-right: 36px;
}

.history-image::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 40px;
  right: -36px;
  bottom: -36px;
  left: 40px;
  background-color: var(--orange);
 background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.history-image img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* =========================================
   PRODUCTO PRINCIPAL
========================================= */

.main-product {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #eef0af;
}

.package-area {
  min-height: 650px;
  display: grid;
  place-items: center;
  padding: 70px;
  background: #dce892;
  perspective: 1200px;
}

.package-area {
  position: relative;
}

/* Sachet principal : centré et immobile, légère perspective pour le volume.
   Au survol : il s'incline vers le coin où se trouve la souris
   (--rx / --ry calculés en JS) et se soulève un peu. */
.package-image {
  --rx: 0deg;
  --ry: -6deg;
  position: relative;
  z-index: 1;
  width: min(390px, 80%);
  transform:
    rotateX(var(--rx))
    rotateY(var(--ry))
    rotateZ(-2deg);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.package-image:hover {
  transform:
    rotateX(var(--rx))
    rotateY(var(--ry))
    rotateZ(0deg)
    translateY(-10px)
    scale(1.03);
  /* suit la souris rapidement, sans à-coups */
  transition: transform 0.15s ease-out;
}

.package-image img {
  display: block;
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  /* relief : contraste, saturation, ombre de contact + ombre portée */
  filter:
    contrast(1.08)
    saturate(1.1)
    drop-shadow(0 2px 2px #0004)
    drop-shadow(0 30px 28px #35411f66);
}

/* Reflets + ombres de volume, découpés exactement à la forme du sachet :
   bords sombres, centre clair et soudures pincées = sachet bien rempli */
.package-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask: url("../images/GARLIC%20PLATANO.png") center / contain no-repeat;
  mask: url("../images/GARLIC%20PLATANO.png") center / contain no-repeat;
  background:
    /* reflet vertical brillant (plastique gonflé) */
    linear-gradient(
      100deg,
      transparent 18%,
      #ffffff00 25%,
      #ffffffd9 33%,
      #ffffff00 43%,
      transparent 60%
    ),
    /* second reflet, plus doux, sur l'autre bombé */
    linear-gradient(
      100deg,
      transparent 62%,
      #ffffff66 70%,
      transparent 78%
    ),
    /* coins plus sombres : le sachet est rempli, les coins restent plats */
    radial-gradient(
      ellipse 75% 65% at 47% 50%,
      transparent 50%,
      #00000080 100%
    ),
    /* bords gauche/droit plus sombres = forme bombée */
    linear-gradient(
      90deg,
      #00000099 0%,
      transparent 21%,
      transparent 71%,
      #000000b3 100%
    ),
    /* centre gonflé plus clair */
    radial-gradient(
      ellipse 52% 38% at 46% 50%,
      #ffffff99 0%,
      transparent 72%
    ),
    /* haut et bas pincés (soudures) plus sombres */
    linear-gradient(
      180deg,
      #00000085 0%,
      transparent 17%,
      transparent 83%,
      #00000094 100%
    );
  background-size: 220% 100%, 220% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-position: var(--shine, 70%) 0, var(--shine, 70%) 0, 0 0, 0 0, 0 0, 0 0;
  mix-blend-mode: soft-light;
  transition: background-position 0.8s ease;
}

/* les reflets suivent la souris (--shine calculé en JS) */
.package-image:hover .package-shine {
  transition: background-position 0.15s ease-out;
}

/* Le sachet flotte en continu. On anime "translate" et "rotate"
   (propriétés séparées) : ça s'ajoute à l'inclinaison du survol sans la casser. */
.package-image {
  animation: package-float 5s ease-in-out infinite;
}

@keyframes package-float {
  0%, 100% { translate: 0 0;      rotate: -1.5deg; }
  50%      { translate: 0 -18px;  rotate: 1.5deg; }
}

/* Éclat de lumière qui traverse le plastique toutes les 4,5 s */
.package-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask: url("../images/GARLIC%20PLATANO.png") center / contain no-repeat;
  mask: url("../images/GARLIC%20PLATANO.png") center / contain no-repeat;
  background: linear-gradient(
    105deg,
    transparent 40%,
    #ffffff00 44%,
    #ffffffcc 50%,
    #ffffff00 56%,
    transparent 60%
  );
  background-size: 300% 100%;
  background-repeat: no-repeat;
  mix-blend-mode: overlay;
  animation: package-glint 4.5s ease-in-out infinite;
}

@keyframes package-glint {
  0%        { background-position: 100% 0; opacity: 0; }
  8%        { opacity: 1; }
  30%       { background-position: 0% 0; opacity: 1; }
  36%, 100% { background-position: 0% 0; opacity: 0; }
}

/* ombre portée au sol : se resserre quand le sachet se soulève */
.package-shadow {
  position: absolute;
  bottom: 9%;
  left: 50%;
  width: min(300px, 60%);
  height: 34px;
  background: radial-gradient(ellipse at center, #35411f66 0%, transparent 70%);
  transform: translateX(-50%);
  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.6s ease;
  /* respire avec le sachet : plus petite et plus claire quand il monte */
  animation: package-shadow-float 5s ease-in-out infinite;
}

@keyframes package-shadow-float {
  0%, 100% { scale: 1;    opacity: 1; }
  50%      { scale: 0.8;  opacity: 0.6; }
}

.package-image:hover ~ .package-shadow {
  transform: translateX(-50%) scale(0.9);
  opacity: 0.75;
}

.main-product-content {
  min-height: 650px;
  display: grid;
  place-items: center;
  padding: 70px;
  background: #ece0bb;
}

.main-product-content-inner {
  width: 100%;
  max-width: 560px;
  text-align: center;
}

/* LE / ROI / DES / CHIPS : "Roi" et "Chips" plus grands */

.main-product-title {
  margin: 0 0 60px;
  color: #2a0054;
  letter-spacing: 0;
}

.main-product-title span {
  display: block;
}

.main-product-title .title-small {
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1;
}

.main-product-title .title-big {
  font-size: clamp(56px, 6.2vw, 90px);
  line-height: 0.85;
}

.main-product-content p {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 3px;
  text-align: left;
}

.main-product-content .button {
  min-width: min(350px, 100%);
  margin-top: 55px;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* =========================================
   PRODUCTOS
========================================= */

.products {
  background: var(--orange);
}

.products-heading {
  padding: 45px 20px;
}

.section-title {
  margin: 0;
  color: var(--white);
  font-size: clamp(50px, 6vw, 88px);
  text-align: center;
}

.section-title span {
  color: var(--purple);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  position: relative;
  /* même proportion que les photos du survol (480 x 520) : la photo s'affiche entière */
  aspect-ratio: 480 / 520;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px; /* titre, sachet et texte rapprochés comme dans la maquette */
  padding: 24px 24px 26px;
  text-align: center;
  /* découpe 1px plus large que la carte (au lieu de overflow: hidden) :
     la photo du survol recouvre aussi la fine ligne entre deux cartes */
  clip-path: inset(-1px);
}

.product-card > * {
  position: relative;
  z-index: 1;
}

/* Halo radial large et diffus (maquette) : couleur claire au centre -> couleur de la carte */

.product-card {
  --glow: #ffffff;
  --base: #000000;
  /* halo net derrière le sachet, qui se fond vers la couleur de la carte */
  background: radial-gradient(
    circle closest-side at 50% 46%,
    var(--glow) 0%,
    var(--glow) 12%,
    var(--base) 100%
  );
}

.product-one   { --glow: #ffd9b8; --base: #ee6a40; }
.product-two   { --glow: #d4f5a8; --base: #74a460; }
.product-three { --glow: #f58a50; --base: #9e2038; }
.product-four  { --glow: #b3adff; --base: #17132f; color: var(--white); }
.product-five  { --glow: #fbb888; --base: #dc6014; }
.product-six   { --glow: #b0158a; --base: #24051c; color: var(--white); }

.product-card h3 {
  margin: 0;
  font-family: "Syne", Arial, sans-serif;
  font-size: 25px;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.product-card h3 span {
  display: block;
}

/* Couleurs des titres (maquette) : "LE ROI" / nom du roi */

.product-one h3        { color: #4a2410; }
.product-one h3 span   { color: #f5d20a; }

.product-two h3        { color: #2a0f5a; }
.product-two h3 span   { color: #f5d547; }

.product-three h3,
.product-three h3 span { color: var(--black); }

.product-four h3,
.product-four h3 span  { color: #f7d44c; }

.product-five h3       { color: #2a0f6a; }
.product-five h3 span  { color: #8e1020; }

.product-six h3,
.product-six h3 span   { color: var(--white); }

/* Le PNG du taro a plus de marge transparente (sachet = 75 % de la largeur
   contre ~90 % pour les autres) : on élargit la boîte pour un sachet de même taille */
.product-five .product-bag {
  margin: -9px 0 -8px;
}

.product-five .product-bag .product-image {
  width: 243px;
  height: 267px;
}

/* hover1 : le sachet est petit dans la photo -> zoom centré sur le sachet
   pour qu'il ait la même taille que dans les autres photos */
.product-one .product-image-hover {
  transform-origin: 46% 55%;
  transform: scale(1.36);
}

.product-one .product-bag:hover ~ .product-image-hover {
  transform: scale(1.28);
}

/* Sachet en 3D : légèrement tourné en perspective, il pivote au survol */
.product-bag {
  display: block;
  line-height: 0;
  transform: perspective(700px) rotateY(-10deg) rotateX(4deg) rotateZ(-1deg);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-bag:hover {
  transform: perspective(700px) rotateY(10deg) rotateX(2deg) rotateZ(2deg) translateY(-8px);
}

/* Sachet ≈ 47 % de la hauteur de la carte, comme la maquette */
.product-image {
  width: 220px;
  height: 250px;
  object-fit: contain;
  /* relief : contraste, saturation, ombre de contact + ombre portée */
  filter:
    contrast(1.08)
    saturate(1.1)
    drop-shadow(0 2px 2px #0004)
    drop-shadow(0 18px 18px #0005);
}

/* Reflets + ombres de volume, découpés exactement à la forme du sachet
   (même principe que .package-shine) : plastique gonflé, soudures pincées */
.product-bag-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* l'image du masque (le PNG du sachet) est donnée en style inline dans le HTML */
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  background:
    /* reflet vertical brillant */
    linear-gradient(
      100deg,
      transparent 18%,
      #ffffff00 26%,
      #ffffff99 33%,
      #ffffff00 42%,
      transparent 60%
    ),
    /* bords gauche/droit plus sombres = forme bombée */
    linear-gradient(
      90deg,
      #00000059 0%,
      transparent 16%,
      transparent 76%,
      #00000070 100%
    ),
    /* centre gonflé plus clair */
    radial-gradient(
      ellipse 60% 42% at 46% 50%,
      #ffffff52 0%,
      transparent 70%
    ),
    /* haut et bas pincés (soudures) plus sombres */
    linear-gradient(
      180deg,
      #00000047 0%,
      transparent 14%,
      transparent 86%,
      #00000052 100%
    );
  background-size: 220% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-position: 70% 0, 0 0, 0 0, 0 0;
  mix-blend-mode: soft-light;
  transition: background-position 0.6s ease;
}

/* le reflet glisse quand le sachet pivote */
.product-bag:hover .product-bag-shine {
  background-position: 25% 0, 0 0, 0 0, 0 0;
}

/* HOVER : la photo (hover1 à hover6, 480x520) recouvre toute la carte */

.product-card .product-image-hover {
  position: absolute;
  z-index: 2;
  /* déborde de 2px de chaque côté : évite la ligne de fond visible
     sur les bords (arrondi des sous-pixels) */
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  max-width: none;
  object-fit: cover;
  filter: none;
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
  /* en sortant : disparaît vite, sans attente */
  transition:
    opacity 0.35s ease,
    transform 0.5s ease;
}

/* Le survol se déclenche uniquement sur le sachet (pas sur toute la carte),
   pour pouvoir atteindre le bouton "Ajouter au panier" sans lancer la photo.
   en entrant : courte attente (0,15 s) puis fondu rapide */
.product-bag:hover ~ .product-image-hover {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.4s ease 0.15s,
    transform 0.6s ease 0.15s;
}

/* Au survol (maquette) : seule la photo reste visible, sans prix ni bouton. */

.product-info {
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0s;
}

.product-bag:hover ~ .product-info {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease 0.15s,
    visibility 0s linear 0.45s;
}

.add-button {
  box-shadow: 0 4px 0 var(--black);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.add-button:hover {
  box-shadow: 0 2px 0 var(--black);
  transform: translateY(2px);
}

.product-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.product-info {
  width: 100%;
  max-width: 340px;
}

.product-weight {
  text-transform: uppercase;
}

.product-desc {
  margin-top: 2px;
  min-height: 2.7em; /* toujours 2 lignes : les boutons sont alignés d'une carte à l'autre */
}

/* Prix unitaire à gauche, bouton à droite */

.product-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 14px;
}

.product-card .product-price {
  padding: 4px 10px;
  font-size: 14px;
  line-height: 1.2;
  border-radius: 8px;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.product-price span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.75;
}

.add-button {
  padding: 13px 24px;
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  background: #cf82f7;
  border: 2px solid var(--black);
  border-radius: 10px;
}

/* =========================================
   RECETAS
========================================= */

.recipes {
  padding: 100px 0;
  /* dégradé de la maquette (images/Rectangle  background.png) :
     crème -> lilas -> violet -> violet très sombre, enchaîné avec le footer */
  background: #2b1238 url("../images/Rectangle%20%20background.png") center top / 100% 100% no-repeat;
}

.recipes-title {
  margin-bottom: 55px;
  color: var(--orange);
}

.recipes-title span {
  display: block;
  color: #6e1b9a;
}

/* Carrousel horizontal : on fait défiler les recettes (scroll / glisser) */
.recipe-grid {
  display: flex;
  gap: 60px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* pleine largeur de l'écran, 1re recette alignée sur le contenu */
  margin-inline: calc(50% - 50vw);
  /* même marge que .container : min(1320px, 100% - 80px) centré */
  --edge: max(40px, calc((100vw - var(--container)) / 2));
  padding: 0 var(--edge) 24px;
  scroll-padding-inline: var(--edge);
  scrollbar-width: none; /* pas de barre : on navigue avec les flèches */
  cursor: grab;
}

.recipe-grid::-webkit-scrollbar {
  display: none;
}

/* Flèches discrètes sous le carrousel */
.recipe-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

.recipe-arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #2c0a52;
  background: #ffffff66;
  border: 1.5px solid #2c0a5266;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.recipe-arrow:hover {
  color: var(--white);
  background: #2c0a52;
  border-color: #2c0a52;
}

.recipe-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.recipe-grid.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.recipe {
  flex: 0 0 min(900px, 86vw);
  scroll-snap-align: start;
}

.recipe-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 18px;
}

.recipe h3 {
  margin: 0;
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.recipe-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.recipe-content {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
}

.recipe-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border: 8px solid #2c0a52;
  -webkit-user-drag: none;
}

.recipe p,
.recipe li {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

.recipe-lead {
  font-size: 16px;
  font-weight: 500;
}

.recipe-ingredients {
  margin-top: 10px !important;
}

.recipe ul {
  margin: 6px 0 0;
  padding-left: 22px;
  list-style: square;
}

.recipe li {
  margin-bottom: 6px;
}

/* =========================================
   NEWSLETTER
========================================= */

.newsletter {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 30px;
  margin-top: 120px;
  margin-bottom: 60px;
  padding: 0 45px 0 0;
  background: #f9efdc;
  border: 2px solid #8d2ab8;
  border-radius: 20px;
}

/* Le visuel déborde de la carte en haut et en bas (maquette) */
.newsletter-visual {
  display: grid;
  place-items: center;
  margin: -70px 0 -60px;
}

.newsletter-image {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px #0003);
}

.newsletter-content {
  padding: 40px 0;
}

.newsletter-content h2 {
  margin: 0;
  color: #3b1266;
  font-size: clamp(30px, 3vw, 44px);
  letter-spacing: -1px;
}

.newsletter-content h2 > span {
  display: block;
  color: var(--orange);
}

.newsletter-emoji {
  font-size: 0.9em;
  letter-spacing: 0;
}

.newsletter-lead {
  margin: 16px 0 0;
  color: #3b1266;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  margin-top: 45px;
}

.newsletter-field {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  color: #9a9086;
  background: #fbf2de;
  border: 1.5px solid #cfc3b3;
  border-radius: 10px;
}

.newsletter-form input {
  min-width: 0;
  flex: 1;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  background: transparent;
  border: 0;
  outline: none;
}

.newsletter-form input::placeholder {
  color: #bdb2a5;
  text-transform: uppercase;
}

.newsletter-field:focus-within {
  border-color: var(--orange);
}

.newsletter-form button {
  padding: 0 26px;
  color: var(--white);
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--orange);
  border: 0;
  border-radius: 10px;
}

.newsletter-note {
  margin: 40px 0 0;
  color: #3b1266;
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.newsletter-legal {
  margin: 6px 0 0;
  font-size: 9px;
  font-style: italic;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.8;
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
  padding: 70px 0 45px;
  color: var(--white);
  text-align: center;
  /* suit la fin du dégradé des recettes, sans coupure */
  background: linear-gradient(
    #2b1238,
    #160d1e
  );
}

.footer-logo {
  width: min(320px, 75vw);
  display: inline-block;
}

.footer-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Réseaux : trois boutons ronds identiques, icônes centrées */
.social-media {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 35px 0 40px;
}

.social-media a {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--white);
  border: 1.5px solid #ffffff55;
  border-radius: 50%;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.social-media svg {
  width: 24px;
  height: 24px;
}

.social-media a:hover {
  color: var(--dark-purple);
  background: var(--purple);
  border-color: var(--purple);
  transform: translateY(-3px);
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 56px;
  font-family: "Syne", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-nav a {
  padding: 8px 0;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--purple);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 35px;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-contact a:hover {
  color: var(--purple);
}

.legal {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 50px;
  font-family: "Syne", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.75;
}

/* =========================================
   ANIMACIÓN SCROLL
========================================= */

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   RESPONSIVE: PORTÁTIL
========================================= */

@media (max-width: 1180px) {
  .container {
    width: calc(100% - 48px);
  }

  .nav-links {
    gap: 24px;
    font-size: 10px;
  }

  .hero-content {
    padding: 65px 45px;
  }

  .history-grid {
    gap: 55px;
  }

  .recipe-content {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   RESPONSIVE: TABLET
========================================= */

@media (max-width: 820px) {
  .site-header {
    height: 70px;
  }

  .navbar {
    position: relative;
  }

  .logo {
    width: 145px;
    height: 54px;
    flex-basis: 145px;
  }

  .menu-button {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 70px);
    padding: 32px;
    overflow-y: auto;
    flex-direction: column;
    gap: 25px;
    font-size: 14px;
    background: var(--orange);
    border-bottom: 4px solid var(--dark-purple);
    box-shadow: 0 12px 20px #0004;
  }

  .nav-links.open {
    display: flex;
  }

  .hero,
  .history-grid,
  .main-product,
  .recipe-grid,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    min-height: 520px;
    padding: 65px 30px;
  }

  .hero-media {
    min-height: 65vw;
    max-height: 560px;
  }

  .history {
    padding: 80px 0;
  }

  .history-image {
    height: min(70vw, 500px);
    margin-right: 18px;
  }

  .history-image::before {
    top: 25px;
    right: -18px;
    bottom: -18px;
    left: 25px;
  }

  .package-area,
  .main-product-content {
    min-height: 520px;
    padding: 55px 25px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter {
    padding: 28px;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-visual {
    margin: -60px 0 0;
  }

  .newsletter-content {
    padding: 0 0 10px;
  }

  .newsletter-field,
  .newsletter-form button {
    min-height: 54px;
  }

  .newsletter-form button {
    padding: 16px;
  }

  .legal {
    align-items: center;
    flex-direction: column;
  }
}

/* =========================================
   RESPONSIVE: TELÉFONO
========================================= */

@media (max-width: 560px) {
  .container {
    width: calc(100% - 28px);
  }

  .logo {
    width: 125px;
    height: 50px;
    flex-basis: 125px;
  }

  .hero-content {
    min-height: 480px;
    padding: 55px 20px;
  }

  .hero-title {
    font-size: clamp(52px, 16vw, 74px);
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-media {
    min-height: 100vw;
  }

  .ticker {
    height: 58px;
  }

  .history {
    padding: 65px 0;
  }

  .history-title {
    font-size: clamp(38px, 11vw, 67px);
  }

  /* les colonnes ne s'élargissent plus au-delà de l'écran (texte coupé à droite) */
  .history-grid > *,
  .recipe-grid,
  .newsletter > * {
    min-width: 0;
  }

  .section-title,
  .recipes-title {
    font-size: clamp(32px, 9.5vw, 62px);
  }

  .history-content p {
    font-size: 16px;
  }

  .history-image {
    height: 95vw;
    max-height: 430px;
  }

  .package-area {
    min-height: 450px;
    padding: 45px 16px;
  }

  .package-image {
    width: min(260px, 75vw);
  }

  .main-product-content {
    min-height: 500px;
    padding: 55px 20px;
  }

  .main-product-title {
    font-size: clamp(48px, 14vw, 65px);
  }

  .main-product-content p {
    font-size: 16px;
  }


  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 460px;
  }

  .recipes {
    padding: 65px 0;
  }

  .recipe-grid {
    gap: 24px;
  }

  .recipe-image {
    height: 70vw;
    max-height: 300px;
  }

  .newsletter {
    margin-top: 60px;
    padding: 20px;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }

  .footer-nav {
    flex-direction: column;
    gap: 20px;
  }
}

/* =========================================
   ACCESIBILIDAD
========================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
