/* Lucas Jaccoud 11.01.2026 Ce code sert a stylysé la page pour les produits*/

body {
  background-color: #fff0e1;
  margin: 0;
  padding: 0;
  padding-top: 90px;
}

/* Mobile */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  footer {
    flex-direction: column;
    min-height: auto;
    height: auto;
    padding: 30px 20px;
    gap: 20px;
    position: relative;
    bottom: 0;
    margin-top: 50px;
  }

  .sochoc_footer,
  .noisettes {
    width: 80px;
    height: auto;
  }

  .coordonnees h3 {
    font-size: 1.4rem;
  }

  .coordonnees p {
    font-size: 0.85rem;
  }

  .en-tete a p {
    display: none;
  }

  .burger {
    display: flex !important;
  }
}

/* ============ Produits ============ */
@media (max-width: 768px) {
  .biscuits {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 0 20px;
    margin: 30px auto;
  }

  .biscuit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .moelleux,
  .croquant,
  .original {
    width: 80%;
    max-width: 300px;
    margin: 0 auto;
  }

  .biscuit-item p {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
  }

  .plus {
    display: flex;
    justify-content: center;
    text-align: center;
    width: 100%;
    font-size: clamp(18px, 4vw, 22px);
  }
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  display: none;
}

/* Firefox */
html {
  scrollbar-width: none;
}

/* IE / Edge ancien */
body {
  -ms-overflow-style: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden; /* Empêche le scroll horizontal */
}

body {
  background-color: #fff0e1;
  margin: 0;
  padding: 0;
  padding-top: 90px;
}

/* =========================
   FONTS
========================= */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter/static/Inter_18pt-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Protest Riot";
  src: url("../fonts/Protest_Riot/ProtestRiot-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Protest Strike";
  src: url("../fonts/Protest_Strike/ProtestStrike-Regular.ttf")
    format("truetype");
}

/* =========================
   HEADER 
========================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #e2bb98;
  padding: 20px 40px;
  box-sizing: border-box;
  box-shadow: 0px 3px 10px -2px #573e23;
  z-index: 1500;
  transition: all 0.3s ease;
}

.en-tete {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 40px;
  white-space: nowrap;
  margin-left: auto;
}

.profile {
  margin-right: 1pc;
}

.profile img {
  width: 40px;
  display: block;
  border-radius: 45px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile :hover {
  transform: scale(1.05); /* Grossit légèrement */
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.3);
}

/* Liens */
.en-tete a {
  text-decoration: none;
  font-family: "Inter", sans-serif;
  color: white;
  margin: 0;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

/* hover + page active (hors image de profil) */
.en-tete a:not(.profile):hover,
.en-tete a:not(.profile).active {
  color: #755636;
  text-shadow: 0 0 8px #533314;
}

a:link {
  color: #ffffff;
  text-decoration: none;
}

/* Pour les liens visités */
a:visited {
  color: #ffffff;
}

a:active {
  color: #ffffff;
}

/* =========================
   HEADER APRÈS SCROLL
========================= */
header.shrink {
  padding: 8px 40px;
}

/* Aide de chatGPT Cache uniquement les liens texte */
header.shrink .en-tete > a:not(.profile) {
  display: none;
}

.burger,
.profile {
  position: relative;
  z-index: 1600;
}

/* =========================
   BURGER (aide d'un tuto youtube)
========================= */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1600;
}

.burger span {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

header.shrink .burger {
  display: flex !important;
}

/* État ouvert */
.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================
   BURGER MENU OVERLAY
========================= */
.burger-overlay {
  position: fixed;
  inset: 0;
  background-color: #e3a568;
  z-index: 1400;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateX(100%);
  transition: transform 0.5s ease;
}

.burger-overlay.open {
  transform: translateX(0);
}

.burger-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
  text-align: center;
}

.burger-content a {
  font-size: 2.5rem;
  font-family: "Protest Strike";
  color: #6d3b0e;
  text-decoration: none;
  transition: color 0.3s ease;
}

.burger-content a:hover {
  color: #ffffff;
}


/* =========================
   TITRES
========================= */
.titre {
  display: flex;
  justify-content: center;
  font-size: 22px;
  color: #473b2e;
  font-family: "Protest Strike", cursive;
}

/* =========================
   PRODUITS
========================= */
.biscuits {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  margin: 50px auto 0 auto;
  padding: 0;
}

.biscuit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.biscuit-item:hover {
  transform: translateY(-10px); /* Soulève légèrement */
}

.moelleux,
.croquant,
.original {
  border-radius: 45px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.moelleux,
.croquant {
  width: 250px;
}

.original {
  width: 260px;
}

/* Animation au survol de chaque image */
.biscuit-item:hover .moelleux,
.biscuit-item:hover .croquant,
.biscuit-item:hover .original {
  transform: scale(1.05); /* Grossit légèrement */
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.3); /* Ajoute une ombre */
}

.biscuit-item p {
  font-family: "Protest Strike";
  color: #473b2e;
  font-size: 1.8rem;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.biscuit-item:hover p {
  color: #c78d50; /* Change la couleur du texte au survol */
}

/* =========================
   BOUTON INFO (INDÉPENDANT)
========================= */
.btn-infos-fixe {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  z-index: 2000;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.btn-infos-fixe:hover {
  transform: scale(1.1);
}

.btn-infos-fixe img {
  width: 100%;
  height: 100%;
}

/* Plus de produits à venir */

.plus {
  display: flex;
  justify-content: center;
  font-size: 22px;
  color: #473b2e;
  font-family: "Protest Strike", cursive;
  margin-top: 3%;
  margin-bottom: 3%;
}

/* =========================
   MENU INFO OVERLAY (INCHANGÉ)
========================= */
.menu-overlay {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 50%;
  background-color: #e3a568;
  z-index: 1300;

  clip-path: circle(0% at calc(100% - 55px) calc(100% - 55px));
  transition: clip-path 0.6s cubic-bezier(0.77, 0, 0.175, 1);

  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-overlay.open {
  clip-path: circle(150% at calc(100% - 55px) calc(100% - 55px));
}

.menu-content nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.menu-content a {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: #6d3b0e;
  text-decoration: none;
  font-family: "Arial Black", sans-serif;
  transition: color 0.3s;
}

.menu-content a:hover {
  color: white;
}

/* =========================
   FOOTER
========================= */
footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #473b2e;
  width: 100%;
  height: auto;
  padding: 50px;
  box-sizing: border-box;
  color: white;
  font-family: sans-serif;
  margin-top: auto;
}

.sochoc_footer {
  width: 128.56px;
  object-fit: contain;
}

/*LE CENTRE (Texte + Bouton)*/
.footer_center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.coordonnees h2 {
  font-family: "Protest Riot", cursive;
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-weight: normal;
}

.coordonnees p {
  font-family: "Inter", cursive;
  font-size: 0.9rem;
  margin: 5px 0;
  font-weight: bold;
}

/* ===== Bouton Footer===== */
.footer_btn {
  background-color: #d79552;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: clamp(16px, 2vw, 1.2rem);
  padding: clamp(8px, 2vw, 10px) clamp(20px, 4vw, 30px);
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

.footer_btn:hover {
  transform: scale(1.05);
  background-color: #b07d4e;
}

.noisettes {
  height: 100px;
  object-fit: contain;
}
