

/* === GLOBAL STYLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: #333;
  scroll-behavior: smooth;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-weight: 600;
  text-align: center;
  padding-bottom: 20px;
  font-size: 29px;
}

p {
  text-align: center;
  font-size: 1em;
  line-height: 1.6;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
  text-align: left;
}

ul li {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #555;
}

/* === HEADER === */
header {
  background: #fff;
  padding: 10px 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #f0f0f0;
}

.logo {
  font-family: 'Pacifico', cursive;
  font-size: 1em;
  color: #E94057;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  padding: 5px 10px;
  transition: background 0.3s;
}

nav a:hover {
  background: #f7c2d5;
  border-radius: 4px;
}

.nav-toggle {
  display: none;
  font-size: 1.5em;
  cursor: pointer;
}

/* === ACCUEIL + CAROUSEL 3D === */
.accueil {
  background: linear-gradient(135deg, #FF8A00, #E52E71);
  color: #fff;
  padding: 11px 20px;
  margin-top: 64px;
  border-radius: 0 0 32px 32px;
  text-align: center;
}

.accueil-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 100px;
  flex-direction: row-reverse;
}

.accueil-text,
.carousel-container-3d {
  flex: 1 1 50%;
  max-width: 600px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.accueil-text {
  text-align: left;
}

.carousel-container-3d {
  height: 370px;
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.carousel-3d {
  width: 284px;
  height: 319px;
  transform-style: preserve-3d;
  animation: rotate360 60s infinite linear;
  position: relative;
}

.carousel-3d__face {
  position: absolute;
  width: 265px;
  height: 304px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
}

@keyframes rotate360 {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(-360deg);
  }
}

/* === FLAVORS / MENU === */
.menu h2 {
  color: #E94057;
  font-size: 2em;
  margin-bottom: 20px;
}

.flavors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.flavor-item {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flavor-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.flavor-item img {
  width: 100%;
  max-width: 191px;
  height: auto;
  object-fit: cover;
  border-radius: 75px;
  margin: 0 auto 10px;
}

.flavor-item h3 {
  font-size: 1.3em;
  color: #E94057;
  margin: 10px 0;
}

.flavor-item p {
  font-size: 0.95em;
  flex-grow: 1;
  margin-bottom: 15px;
}

/* === BOUTONS === */
.btn,
.btn-flavor,
.mon-bouton,
#contactForm button {
  background: linear-gradient(135deg, #E94057, #FF8A00);
  color: #fff !important;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.4s ease, transform 0.2s ease;
  display: inline-block;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn:hover,
.btn-flavor:hover,
.mon-bouton:hover,
#contactForm button:hover {
  background: linear-gradient(135deg, #c73047, #ff6600);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.btn:active,
.btn-flavor:active,
.mon-bouton:active,
#contactForm button:active {
  transform: scale(0.98);
}

.mon-bouton {
  margin-top: 1px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1em;
}

/* === CONTACT FORM === */
#contactForm {
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: grid;
  gap: 20px;
}

#contactForm label {
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

#contactForm input,
#contactForm textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
}

#contactForm input:focus,
#contactForm textarea:focus {
  border-color: #E94057;
  outline: none;
  box-shadow: 0 0 0 3px rgba(233, 64, 87, 0.2);
}

/* === SECTION STYLES === */
section {
  padding: 30px 10px;
  text-align: center;
}

section:not(.accueil):not(.menu) {
  background: #fffaf6;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 30px 50px;
  margin: 60px 0;
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(233, 64, 87, 0.07);
}

section:not(.accueil):not(.menu) h2 {
  font-size: 2.4em;
  color: #E94057;
  margin-bottom: 30px;
  border-bottom: 3px solid #E94057;
  display: inline-block;
  padding-bottom: 10px;
}

section:not(.accueil):not(.menu) p {
  max-width: 850px;
  margin: 0 auto 1.5em;
  font-size: 1.1em;
  line-height: 1.8;
  color: #444;
}

#commandeForm {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#commandeForm .form-group {
  width: 100%;
  max-width: 500px;
  margin-bottom: 20px;
}

#commandeForm button {
  align-self: center;
}

/* === FOOTER === */
footer {
  text-align: center;
  padding: 30px 10px;
  background: #fff;
  color: #aaa;
  font-size: 0.9em;
  border-top: 1px solid #eee;
}

/* === FADE-IN ANIMATION === */
.hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.visible {
  opacity: 1 !important;
  transform: none !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .accueil-flex {
    flex-direction: column;
    gap: 30px;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: #fff;
    width: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  nav ul.open {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    top: 10px;
    right: 20px;
  }

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

@media (max-width: 600px) {
  .carousel-container-3d {
    height: auto;
    padding: 60px 0 30px;
  }

  .carousel-3d {
    width: 90vw;
    max-width: 320px;
    height: 320px;
    min-height: 220px;
  }

  .carousel-3d__face {
    width: 72vw;
    max-width: 285px;
    height: 304px;
    min-height: 180px;
  }
}
