
/* =========================================================
   1. VARIABLES — toutes les couleurs du site regroupées ici
   ========================================================= */
:root {
  --color-bg-dark:     #211a18;   /* fond de la navbar */
  --color-red:         #b7353F;   /* rouge "Spicy" + boutons */
  --color-red-dark:    #651c2a;   /* rouge foncé, coins du hero */
  --color-pink:        #d98d92;   /* rose du centre du hero */
  --color-gold:        #c9a45c;   /* couleur "Royal" + bouton outline */
  --color-cream:       #f8f3ea;
  --color-text-muted:  #e9d9d2;
  --color-white:       #f8f4ee;
  --color-section-bg:  #efece6;   /* gris clair du fond de section */
  --color-card-bg:     #ffffff;   /* la carte devient blanche au survol */
  --color-text-dark:   #211a18;
  --color-text-grey:   #6f6660;

  --font-heading: 'Playfair Display';
  --font-body: 'Manrope';
}

/* =========================================================
   2. RESET rapide — pour repartir sur une base propre
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-cream);
  width: 100%;
  overflow-x: hidden;
}


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

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

/* =========================================================
   3. NAVBAR — sticky, logo à gauche, CTA à droite
   ========================================================= */
.navbar {
  position: sticky;   
  top: 0;
  z-index: 100;
  background-color: var(--color-bg-dark);
  border-bottom: 1px solid rgba(201, 164, 104, 0.3);
}

.navbar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo à gauche, cta à droite */
}

.navbar__logo-img {
  height: 40px;
}

.navbar__logo-img:hover,
.navbar__logo-img:focus-visible {
 color: var(--color-gold);  
}

.navbar__links {
  display: flex;
  gap: 32px;
}

.navbar__link {
  font-size: 15px;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.navbar__link:hover,
.navbar__link:focus-visible {
  color: var(--color-gold);
}

/* =========================================================
   4. BOUTONS — un style "plein" et un style "outline"
   ========================================================= */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn--primary {
  background-color: var(--color-red);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: #921f31;
  transform: translateY(-2px);
}

.btn--outline {
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
}

.btn--outline:hover {
  background-color: var(--color-gold);
  color: var(--color-bg-dark);
}


/* Active le défilement fluide sur toute la page */
html {
  scroll-behavior: smooth;
}

/* Empêche la navbar sticky de cacher le haut de chaque section visée */
section {
  scroll-margin-top: 90px;   /* ajuste selon la hauteur réelle de ta navbar */
}

/* =========================================================
   5. HERO — mise en page en 2 colonnes
   ========================================================= */
.hero {background-image:url("../images/fond.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  
}
/* Le hero doit être "positionné" pour que le chips 3D se place par rapport à lui */
.hero {
  position: relative;
}

.hero__chip-3d {
  position: absolute;
  top: 48%;
  left: 14%;
  width: 580px;
  height: 580px;
  z-index: 5;               /* ajuste si tu veux qu'il passe devant ou derrière le sachet */
  pointer-events: auto;     /* on laisse la souris tourner le modèle 3D */
  transform: translate(-50%, -50%);
}

.hero__chip-3d model-viewer {
  --poster-color: transparent;
  --progress-bar-height: 0px;   /* masque la barre de chargement (bug d'affichage en pleine largeur) */
}


.hero__inner {
    max-width: 1650px;
    min-height: 610px;
    margin: 0 auto;
    padding: 25px 32px;

    display: grid;
    grid-template-columns: 35% 65%;
    align-items: center;
    gap: 40px;
}

/* ---- Colonne texte ---- */
.hero__tag {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 95px;
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero__title-line {
  display: block;
}

.hero__title-line--white { color: var(--color-white); }
.hero__title-line--red   { color: var(--color-red); }
.hero__title-line--gold  { color: var(--color-gold); }

.hero__text {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 320px;
}

/* ---- Colonne visuelle ---- */
.hero__visual {
  position: relative;   /* nécessaire pour positionner piment/lychee en absolu */
  height: 700px;
}

.hero__chips {
  position: absolute;
  left: 40%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: none;
  width: 1450px;
  z-index: 2;
  filter: drop-shadow(0 35px 45px rgba(20, 6, 8, 0.35));
}

.hero__piment {
  position: absolute;
  top: 20.50%;
  right: 5%;
  width: 726px;
  z-index: 3;
  opacity: 1;
  animation:none;
  
}
  

.hero__lychee {
  position: absolute;
  bottom: 8%;
  right: 0;
  width: 340px;
  z-index: 3;

  /* état de départ avant l'animation : hors écran, à droite */
  opacity: 0;
  animation: slide-lychee 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

/* ---- Particules de l'explosion (générées en CSS) ---- */
.hero__explosion {
  position: absolute;
  /* point de collision approximatif entre le piment et le lychee */
  top: 45%;
  right: 22%;
  width: 4px;
  height: 4px;
  z-index: 4;
}

.particle {
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-gold);
  opacity: 0;
  animation: burst 0.6s ease-out 1.05s forwards;
}

/* Chaque particule part dans une direction différente,
   grâce à une variable --x/--y personnalisée par particule */
.p1  { background-color: var(--color-red);  --x: -60px; --y: -40px; }
.p2  { background-color: var(--color-gold); --x: 50px;  --y: -55px; }
.p3  { background-color: var(--color-white);--x: -80px; --y: 10px;  }
.p4  { background-color: var(--color-red);  --x: 70px;  --y: 20px;  }
.p5  { background-color: var(--color-gold); --x: -30px; --y: 60px;  }
.p6  { background-color: var(--color-white);--x: 40px;  --y: 65px;  }
.p7  { background-color: var(--color-red);  --x: -55px; --y: -70px; }
.p8  { background-color: var(--color-gold); --x: 65px;  --y: -20px; }
.p9  { background-color: var(--color-white);--x: -20px; --y: -60px; }
.p10 { background-color: var(--color-red);  --x: 20px;  --y: 75px;  }
/* =========================
   NEW FLAVORS SLIDER
========================= */

.new-flavors {
    position: relative;
    width: 100%;
    height: 990px;
    overflow: hidden;
    margin-bottom: 0;
}


.new-flavors__slider {
    position: relative;
    width: 100%;
    min-height: 920px;
    height:100%;
    
}


/* =========================
   SLIDES
========================= */
.flavor-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
    pointer-events: none;
    height: 100%;
}

.flavor-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* Couleurs des slides */

.flavor-slide--yuzu {
    background: #eadfa8;
}

.flavor-slide--lychee {
    background: #f3d1c7;
}

.flavor-slide--pineapple {
    background: #f3e2a8;
}


/* =========================
   TITLE
========================= */

.new-flavors__title {
    margin: 0;
    width: fit-content;
    position: relative;
    left: 215px;
    top: 235px;
    font-family: 'Playfair Display', serif;
    font-size: 75px;
    font-weight: 400;
    color: var(--color-red-dark);
}
/* =========================
   CONTENT
========================= */

.flavor-slide__content {
  display: grid;
  grid-template-columns: 500px 550px;
  align-items: center;
  justify-content: center;
  column-gap: 60px;
}


/* =========================
   TEXT
========================= */

.flavor-slide__info {
  width: 400px;
    position: relative;
    top: 77px;
  
}

.flavor-slide__info h3 {
    margin: 0 0 24px;

    font-family: "Manrope", sans-serif;
    font-size: 25px;
    font-weight: 700;
     position: relative;
    top: 15px;

    color: #651c2a;
}

.flavor-slide__info p {
    margin: 0 0 28px;

    font-family: "Manrope", sans-serif;
    font-size: 17px;
    line-height: 1.5;

    color: #211a18;
}


/* =========================
   PRODUCT
========================= */

.flavor-slide__product {
  width: 650px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flavor-slide__product img {
  width: 850px;
  max-width: none;
}

.flavor-slide__product img {
    width: 960px;
    height: auto;
    display: block;
    filter: drop-shadow(0 30px 38px rgba(20, 6, 8, 0.3));
}


/* =========================
   ARROWS
========================= */

.slider-arrow {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    border: none;
    background: transparent;

    font-family: "Manrope", sans-serif;
    font-size: 30px;

    color: #211a18;

    cursor: pointer;
}

.slider-arrow--prev {
    left: 110px;
}

.slider-arrow--next {
    right: 110px;
}


/* =========================
   DOTS / NUMBERS
========================= */

.slider-dots {
    position: absolute;

    bottom: 35px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    gap: 28px;
}

.slider-dot {
    border: none;
    background: transparent;

    font-family: "Manrope", sans-serif;
    font-size: 15px;

    color: #a98d82;

    cursor: pointer;
      padding: 5px 8px;
}

.slider-dot.active {
    color: #651c2a;
}


.signature {
  background-color: var(--color-section-bg);
  padding: 140px 32px 160px;
}

.signature__inner {
max-width: 1900px;
  margin: 0 auto;
}

.signature__title {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 400; 
  color: var(--color-red-dark);
  margin-bottom: 70px;
    padding-left: 155px
}

.signature__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ---- La carte : même couleur que le fond par défaut ---- */
.signature-card {
  text-align: center;
  padding: 24px 10px 40px;
  border-radius: 12px;
  background-color: var(--color-section-bg); /* se fond dans le fond, invisible au repos */
  box-shadow: none;

  transition: background-color 0.8s ease-out, box-shadow 0.8s ease-out;
}

.signature-card:hover {
  background-color: var(--color-card-bg); /* devient blanche */
  box-shadow: 0 20px 45px rgba(33, 26, 24, 0.12);
}

.signature-card__img {
  width: 100%;
  max-width: 650px;
  margin: 0 auto 24px;
  transition: transform 0.8s ease-out;
  filter: drop-shadow(0 30px 38px rgba(20, 6, 8, 0.3));
}

.signature-card:hover .signature-card__img {
  transform: scale(1.06); /* le paquet s'agrandit légèrement */
}

.signature-card__name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--color-red-dark);
  margin-bottom: 6px;
}

.signature-card__tag {
  font-size: 13px;
  color: var(--color-text-grey);
}

.signature-card__cta {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  max-height: 0;
  overflow: hidden;
  pointer-events: none;

  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out,
    max-height 0.8s ease-out,
    margin-top 0.8s ease-out;
}

.signature-card:hover .signature-card__cta {
  opacity: 1;
  transform: translateY(0);
  max-height: 60px;
  margin-top: 18px;
  pointer-events: auto;
}


.collection {
  background-color: var(--color-cream);
  padding: 140px 32px 160px;
}

.collection__inner {
  max-width: 1900px;
  margin: 0 auto;
}

.collection__title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 400;
  color: var(--color-red-dark);
  margin-bottom: 70px;
  text-align: center;   /* comme sur ta maquette, le titre est centré ici */
}

.collection__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  row-gap: 64px;
}

/* ---- La carte : même fond que le fond de section par défaut ---- */
.collection-card {
  text-align: center;
  padding: 24px 20px 40px;
  border-radius: 12px;
  background-color: var(--color-cream);
  box-shadow: none;

  transition: background-color 0.8s ease-out, box-shadow 0.8s ease-out;
}

.collection-card:hover {
  background-color: var(--color-section-bg); /* devient grise au survol */
  box-shadow: 0 20px 45px rgba(33, 26, 24, 0.1);
}

.collection-card__img {
  width: 100%;
  max-width: 650px;
  margin: 0 auto 24px;
  transition: transform 0.8s ease-out;
  filter: drop-shadow(0 18px 22px rgba(20, 6, 8, 0.22));
}

.collection-card:hover .collection-card__img {
  transform: scale(1.06);
}

.collection-card__name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--color-red-dark);
  margin-bottom: 6px;
}

.collection-card__tag {
  font-size: 13px;
  color: var(--color-text-grey);
}

.collection-card__cta {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  max-height: 0;
  overflow: hidden;
  pointer-events: none;

  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out,
    max-height 0.8s ease-out,
    margin-top 0.8s ease-out;
}

.collection-card:hover .collection-card__cta {
  opacity: 1;
  transform: translateY(0);
  max-height: 60px;
  margin-top: 18px;
  pointer-events: auto;
}




/* =========================================================
   OUR STORY
   ========================================================= */
.story {
  background-color: var(--color-red-dark);
  padding: 140px 5px;
  overflow: hidden;
 
  align-items: center;
}

.story__inner {
  max-width: 1650px;
  margin: 0 auto;
  display: grid;
   grid-template-columns: minmax(320px, 620px) 1fr; 
  align-items: center;
  gap: 6px;
}
.story__content {
  margin-left: 120px;
}

.story__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.story__brand-icon { width: 24px; }

.story__brand-name {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--color-cream);
}

.story__brand-tag {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--color-gold);
}

.story__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 24px;
}

.story__label-line {
  width: 30px;
  height: 1px;
  background-color: var(--color-gold);
  display: inline-block;
}

.story__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 52px;
  line-height: 1.2;
  color: var(--color-cream);
  margin-bottom: 24px;
}

.story__lead {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-cream);
  margin-bottom: 20px;
}

.story__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 420px;
  margin-bottom: 18px;
}

.story__visual-img {
  width: 100%;
  display: block;
}


/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  background-color: var(--color-cream);
  padding: 140px 32px;
}

.contact__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 100px;
}

.contact__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 32px;
  color: var(--color-red-dark);
  margin-bottom: 24px;
}

.contact__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-dark);
  margin-bottom: 40px;
}

.contact__info {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-dark);
}

.contact__info a {
  color: var(--color-text-dark);
  text-decoration: underline;
}

.form-field {
  margin-bottom: 28px;
}

.form-field label {
  display: block;
  font-size: 13px;
  color: var(--color-text-dark);
  margin-bottom: 10px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(43, 31, 27, 0.3);
  background: transparent;
  padding: 6px 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-dark);
  resize: none;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--color-red-dark);
}

.contact__submit {
  margin-top: 8px;
}



/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background-color: var(--color-bg-dark);
  padding: 80px 32px 0;
}

.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
}

.footer__logo {
  height: 28px;
  margin-bottom: 16px;
}

.footer__tagline {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.footer__heading {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 20px;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 12px;
}

.footer__links a {
  font-size: 13px;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--color-gold);
  text-decoration: underline;
}

.footer__bottom {
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid rgba(201, 164, 104, 0.2);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__bottom p {
  font-size: 12px;
  color: var(--color-text-muted);
}

.footer__socials {
  display: flex;
  gap: 16px;
}

.footer__socials a {
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.footer__socials svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
}

.footer__socials a:hover {
  color: var(--color-gold);
}

@media (max-width: 900px) {
  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .story__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .story__brand,
  .story__label { justify-content: center; }
  .story__title { font-size: 32px; }
  .story__text { margin-left: auto; margin-right: auto; }
}



@media (max-width: 900px) {
  .signature__title {
    font-size: 36px;
    text-align: center;
    padding-left: 0;   /* annule le décalage desktop */
  }

  .signature__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .signature-card__img {
    max-width: 220px;
  }
}

@media (max-width: 560px) {
  .signature__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   8. RESPONSIVE — version mobile
   ========================================================= */
@media (max-width: 900px) {
  .navbar__links { display: none; } /* à remplacer plus tard par un menu burger */

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 24px;
  }

  .hero__title { font-size: 44px; }
  .hero__text { margin-left: auto; margin-right: auto; }
  .hero__visual { height: 320px; margin-top: 20px; }
  .hero__chips { width: 200px; }
  .hero__chip-3d { width: 300px; height: 300px; }
  .hero__piment { width: 90px; }
  .hero__lychee { width: 120px; }

  .signature__title { font-size: 36px; text-align: center; }
  .flavors__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .signature__grid { grid-template-columns: 1fr; }
}


@media (max-width: 900px) {
  .new-flavors {
    height: auto;
    min-height: 0;
    padding: 60px 0 40px;
  }

  .new-flavors__slider {
    min-height: 0;
  }

  .flavor-slide {
    position: relative;   /* on sort du système d'empilement absolu */
    display: none;       /* seule la slide .active s'affiche */
  }

  .flavor-slide.active {
    display: block;
  }

  .new-flavors__title {
    position: static;
    left: auto;
    top: auto;
    font-size: 32px;
    text-align: center;
    margin: 0 auto 32px;
  }

  .flavor-slide__content {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    row-gap: 24px;
    padding: 0 24px;
  }

  .flavor-slide__info {
    width: 100%;
    max-width: 320px;
    position: static;
  }

  .flavor-slide__info h3 {
    font-size: 20px;
    position: static;
  }

  .flavor-slide__info p {
    font-size: 14px;
  }

  .flavor-slide__product {
    width: 100%;
    max-width: 240px;
  }

  .flavor-slide__product img {
    width: 100%;
    max-width: 240px;
    height: auto;
  }

  .slider-arrow {
    font-size: 20px;
  }
  .slider-arrow--prev { left: 12px; }
  .slider-arrow--next { right: 12px; }

  .slider-dots {
    position: static;
    transform: none;
    margin-top: 24px;
    justify-content: center;
  }
}

/* =========================================================
   6. KEYFRAMES — les 3 animations de la séquence
   ========================================================= */

/* Le piment tombe du haut de l'écran jusqu'à sa position */
@keyframes fall-piment {
  0% {
    opacity: 1;
    transform: translateY(-220px) rotate(-25deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

/* Le lychee glisse depuis la droite jusqu'à sa position */
@keyframes slide-lychee {
  0% {
    opacity: 1;
    transform: translateX(260px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Chaque particule part du centre et s'éloigne en disparaissant */
@keyframes burst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(0.3);
  }
}

/* Respecte les utilisateurs qui préfèrent moins d'animations */
@media (prefers-reduced-motion: reduce) {
  .hero__piment,
  .hero__lychee,
  .particle {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

