/* Lucas Jaccoud 11.01.2026 Ce code sert a stylysé la page principale du site*/

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

/* Mobile */
@media (max-width: 768px) {
  .en-tete a p {
    display: none;
  }

  .burger {
    display: flex !important;
  }

  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  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;
  }
}

/* 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;
}

/* 1. On déclare la police */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter/static/Inter_18pt-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

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

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

/* Animation Accueil */

/* Conteneur des miettes (fixe, indépendant du scroll) */
.miettes-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

/* Une miette */
.miette {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle at 30% 30%, #e8c29a, #b8834a);
  border-radius: 40% 60% 55% 45%;
  opacity: 0.85;
  filter: blur(0.3px);
}

/* Le conteneur qui englobe le fond et le logo */
.hero-container {
  position: relative;
  width: 100%;
  min-height: 100vh; /* min-height au lieu de height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  padding: clamp(80px, 15vh, 120px) 20px 40px 20px; /* Padding adaptatif */
}

/* L'image de fond */
.fond {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 80%;
}

/* Le logo centré par-dessus le fond */
.Sochoc {
  z-index: 1;
  width: 47%;
  max-width: 90%;
  margin: 0 auto;
}

.Sochoc a {
  display: block;
  width: 100%;
}

.Sochoc img {
  width: 100%;
  height: auto;
}

/* Mode téléphone */
@media (max-width: 480px) {
  .hero-container {
    padding-top: 100px;
  }

  .Sochoc {
    width: 85%;
  }
}

/* Paysage mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-container {
    min-height: auto;
    padding: 80px 20px 30px;
  }

  .Sochoc {
    width: 50%;
  }

  .gourmand,
  .Chocolat {
    margin-top: 15px;
  }
}

/* =========================
   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;
  min-width: 30px;
  display: block;
  border-radius: 45px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile img:hover {
  transform: scale(1.05);
  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: white;
  text-decoration: none;
}

a:visited {
  color: white;
}

a:active {
  color: white;
}

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

header.shrink .en-tete > a:not(.profile) {
  display: none;
}

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

/* =========================
   BURGER
========================= */
.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;
}

nav h2,
nav h3 {
  margin: 0;
}

/* ===== Bouton achetez maintenant===== */
.container-bouton {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: clamp(15px, 3vh, 30px);
  padding: 0 20px;
}

.container-bouton a {
  display: inline-block;
  padding: clamp(12px, 2.5vh, 20px) clamp(25px, 5vw, 40px);
  background-color: #c78d50;
  color: white;
  font-family: "Protest Strike", cursive;
  font-size: clamp(18px, 3.5vw, 35px);
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.container-bouton a:hover {
  background-color: #a6723e;
  transform: scale(1.05);
}

.gourmand {
  font-family: "Protest Riot", cursive;
  text-align: center;
  color: #473b2e;
  padding: 0 20px;
  z-index: 2;
}

.gourmand h3 {
  font-size: clamp(16px, 3.5vw, 25px);
  margin: 0;
}

.Chocolat {
  font-family: "Protest Strike", cursive;
  text-align: center;
  color: #473b2e;
  margin-top: clamp(8px, 2vh, 15px);
  padding: 0 20px;
}

.Chocolat h2 {
  font-size: clamp(28px, 6vw, 60px);
  margin: 0;
}

.Transition {
  background-color: #ffe4c7;
  filter: blur(30px);
  width: auto;
  padding: 7px;
}

/* ===== contenu de la page ===== */

.informations {
  font-family: "Protest Strike", cursive;
  text-align: center;
  font-size: clamp(20px, 4vw, 35px);
  color: #473b2e;
  margin-top: 7%;
}

.informations h2 {
  font-size: clamp(50px, 4vw, 35px);
  width: fit-content;
  margin: auto;
}

.allergies {
  display: flex;
  flex-direction: column;
  color: white;
  background-color: #c78d50;
  width: 46%;
  height: auto;
  margin-left: 30px;
  margin-top: 3%;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0px 3px 10px -2px #573e23;
}

.allergies h3 {
  margin: 0 0 8px 0;
  margin-left: 15px;
  margin-top: 10px;
  font-size: clamp(16px, 2.5vw, 20px);
  font-family: "Inter", sans-serif;
}

.texte {
  display: flex;
  margin: 0;
  margin-left: 15px;
  font-size: clamp(12px, 2vw, 16px);
  font-family: "Inter", sans-serif;
}

.propose {
  display: flex;
  margin-top: 20px;
  flex-direction: column;
  color: white;
  background-color: #c78d50;
  width: 53%;
  height: auto;
  margin-left: 30px;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0px 3px 10px -2px #573e23;
}

.propose h3 {
  margin: 0 0 8px 0;
  margin-left: 15px;
  margin-top: 10px;
  font-size: clamp(16px, 2.5vw, 20px);
  font-family: "Inter", sans-serif;
}

.fondation {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  margin-bottom: 5%;
  color: white;
  background-color: #c78d50;
  width: 60%;
  height: auto;
  margin-left: 30px;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0px 3px 10px -2px #573e23;
}

.fondation h3 {
  margin: 0 0 8px 0;
  margin-left: 15px;
  margin-top: 10px;
  font-size: clamp(16px, 2.5vw, 20px);
  font-family: "Inter", sans-serif;
}

/* =========== Bouton Info ========= */

.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%;
}

/* L'overlay du menu */
.menu-overlay {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 50%;
  background-color: #e3a568;
  z-index: 1000;
  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;
}

.footer_center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.coordonnees h3 {
  font-family: "Protest Riot", cursive;
  font-size: clamp(20px, 2.5vw, 1.8rem);
  margin-bottom: 10px;
  font-weight: normal;
}

.coordonnees p {
  font-family: "Inter", cursive;
  font-size: clamp(12px, 1.5vw, 0.9rem);
  margin: 5px 0;
  font-weight: bold;
}

.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;
}

img {
  max-width: 100%;
  height: auto;
}
