/* =====================
   RÉINITIALISATION GLOBALE
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =====================
   STYLES GÉNÉRAUX DU BODY ET CONTENEUR
===================== */
body {
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  background-color: #fff;
  color: #222;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =====================
   HEADER FIXE ET ANIMÉ
===================== */
header {
  background-color: #83D4A9;
  color: white;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  animation: fadeSlideDown 0.6s ease-out;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

/* Branding */
.brand {
  display: flex;
  align-items: center;
  gap: 5px;
}

.logo img {
  height: 40px;
  animation: logoZoomIn 0.8s ease-out 0.2s forwards;
  opacity: 0;
  transform: scale(0.8);
  cursor: pointer;
}

.logo:hover img {
  animation: pulse 0.6s ease-in-out;
}

/* Texte branding animé */
.text-brand h1,
.text-brand p {
  opacity: 0;
  transform: translateY(10px);
  animation: textFadeUp 0.6s ease-out forwards;
}

.text-brand h1 {
  font-size: 18px;
  animation-delay: 0.4s;
}

.text-brand p {
  font-size: 12px;
  color: #fff;
  animation-delay: 0.6s;
}

/* =====================
   NAVIGATION PRINCIPALE
===================== */
nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 400;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background-color: #88c6a3;
  transition: width 0.3s ease;
}

nav a:hover {
  color: #88c6a3;
}

nav a:hover::after {
  width: 100%;
}

/* =====================
   ICÔNE PANIER
===================== */
.cart-icon {
  margin-left: 20px;
  cursor: pointer;
}

.cart-icon svg {
  width: 26px;
  height: 26px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
}

.cart-icon:hover svg {
  stroke: #ff6600;
}

/* =====================
   BURGER MENU MOBILE
===================== */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 20;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: 0.3s;
}

.burger.active div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.burger.active div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =====================
   OVERLAY POUR MENU MOBILE
===================== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* =====================
   SLIDER PRINCIPAL
===================== */
.slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto 10px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  height: 400px;
  background-color: #000;
  user-select: none;
  touch-action: pan-y;
}

.slides {
  display: flex;
  width: 500%;
  height: 100%;
  transition: transform 0.6s ease;
}

.slide {
  width: 20%;
  flex-shrink: 0;
  height: 100%;
  position: relative;
  color: white;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 80%;
}

.slide-content h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

.slide-content p {
  font-size: 1.1rem;
  margin-bottom: 10px;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

/* ===========================
   BOUTON "DÉCOUVRIR"
   - Semi-transparent
   - Bordure animée
   - Animation pulsante au survol
=========================== */
.slide-content button {
  background-color: rgba(255, 255, 255, 0.1); /* semi-transparent */
  border: 2px solid #83D4A9;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 1rem;
  color: #83D4A9;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
  box-shadow: 0 0 0 transparent;
}

.slide-content button:hover {
  background-color: #00967D;
  color: white;
  box-shadow: 0 6px 14px rgba(0, 150, 125, 0.7);
}

/* =====================
   FLÈCHES DU SLIDER
===================== */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(131, 212, 169, 0.8);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.arrow:hover {
  background: #00967D;
}

.arrow-left {
  left: 15px;
}

.arrow-right {
  right: 15px;
}

.arrow svg {
  width: 22px;
  height: 22px;
  stroke: #004D40;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.arrow:hover svg {
  stroke: white;
}

/* =====================
   PAGINATION DU SLIDER
===================== */
.pagination {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
  z-index: 10;
}

.pagination button {
  border: none;
  background-color: rgba(255,255,255,0.5);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.pagination button.active,
.pagination button:hover {
  background-color: #83D4A9;
  box-shadow: 0 0 5px #83D4A9;
}

/* =====================
   FOOTER
===================== */
footer.footer {
  background-color: #004D40;
  color: #fff;
  padding: 15px 10px;
  text-align: center;
  margin-top: 40px;
}

.footer-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.footer-slogan {
  font-size: 14px;
  color: #b2dfdb;
  margin-bottom: 10px;
}

.social-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 10px 0;
}

.social-item {
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, color 0.3s ease;
  font-size: 13px;
  min-width: 60px;
}

.social-item i {
  font-size: 24px;
  margin-bottom: 5px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-item:hover {
  color: #83D4A9;
  transform: translateY(-3px);
}

.social-item:hover i {
  color: #83D4A9;
  transform: scale(1.1);
}

.copyright {
  font-size: 12px;
  color: #b2dfdb;
  margin-top: 10px;
}

/* =====================
   ANIMATIONS
===================== */
@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoZoomIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes textFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 150px;
    height: 100vh;
    background: rgba(0, 150, 125, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    flex-direction: column;
    padding: 80px 20px;
    gap: 20px;
    transition: right 0.3s ease;
    z-index: 15;
  }

  nav.active {
    right: 0;
  }

  .burger {
    display: flex;
  }

  .cart-icon {
    display: none;
  }

  nav a {
    color: #fff;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.9s ease;
  }

  nav.active a {
    opacity: 1;
    transform: translateX(0);
  }

  .slider {
    height: 250px;
    margin-bottom: 5px;
  }

  .slide-content h2 {
    font-size: 1.5rem;
  }

  .slide-content p {
    font-size: 1rem;
  }

  .slide-content button {
    padding: 10px 25px;
    font-size: 0.9rem;
  }

  .arrow {
    width: 35px;
    height: 35px;
  }

  .arrow svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 400px) {
  .social-item {
    font-size: 12px;
    min-width: 50px;
  }

  .social-item i {
    font-size: 20px;
  }

  .footer-title {
    font-size: 18px;
  }

  .footer-slogan {
    font-size: 13px;
  }
}

/* =====================
   FOCUS ACCESSIBILITÉ
===================== */
a:focus,
.pagination button:focus,
.arrow:focus {
  outline: 2px solid #83D4A9;
  outline-offset: 2px;
}
