/* HEADER */
body{
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #FFFFFFDF;
}

.header2 {
  background: #FFFFFFDF;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header2 img.logo {
  width: 51px;
  height: auto;
}

.logo {
  width: 15px;
  height: auto;
  display: block;
  padding: 5px;
}

.nav {
  display: flex;
  list-style: none;
  justify-content: center;
  gap: 20px; 
}

.nav-mobile {
  display: none;
}

.nav li {
  margin: 0 15px;
  font-size: 18px;
}

.nav a {
  text-decoration: none;
  color: black;
  font-weight: regular;
}

.nav a:hover {
  text-decoration: none;
  color: rgb(150, 150, 150);
  font-weight: regular;
}

.nav2 {
  display: flex;
  align-items: center;
  padding: 10px;
}

.logo-panier {
  width: 40px;
  height: auto;
}

/* Nombre d'articles dans le panier */
#cart-count {
position: absolute;
top: 4px;
right: 4px;
background: red;
color: white;
font-size: 12px;
font-weight: bold;
height: 20px;            
min-width: 20px;          
padding: 0 6px;           
border-radius: 9999px;    
display: flex;
align-items: center;
justify-content: center;
}

.section-title {
    font-size: 40px; /* Augmentez la valeur selon vos besoins */
    text-align: center;
}

/* Timeline */
.timeline {
    background-color: #fff;
    padding: 50px 0;
    animation: fadeIn 1s ease-out forwards;
}

.timeline h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
}

.timeline-item {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
    margin-right: 20px;
}

.timeline-content {
    background-color: #f4f4f4;
    padding: 20px;
    width: 100%;
    margin-left: 20px;
}

/* Nos valeurs */
.values {
    padding: 50px 0;
    text-align: center;
    animation: fadeIn 1s ease-out forwards;
}

.values p {
    font-size: 18px;
    color: #555;
}

/* Équipe */
.team {
  background-color: #f4f4f4;
  margin-left: 20px;
  margin-right: 20px;
  width: auto;
  animation: fadeIn 1s ease-out forwards;
}


.team h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
}

.team-members {
    display: flex;
    justify-content: space-around;
}

.team-member {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}




/* Contact */
.section-title2 {
  text-align: center;
}

.contact {
    padding: 50px 0;
    background-color: #fff;
    text-align: center;
    animation: fadeIn 1s ease-out forwards;
}

.contact a {
    color: #333;
    font-weight: bold;
}

.contact a:hover {
  color: rgb(150, 150, 150);
  font-weight: bold;
}

/* ✅ FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background: #222;
  color: white;
  margin-top: 40px;
}

footer .cgv {
  color: #fff;
  text-decoration: none;
}

footer .cgv:hover {
  text-decoration: underline;
}


/* ✅ Responsive Design pour toutes les tailles d'écran */
/* 📌 Empêcher le décalage horizontal */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* 📌 HEADER - Alignement uniforme sur PC et téléphone */
.header2 {
    display: flex;
    align-items: center;
    justify-content: center; /* Centrer les catégories sur PC */
    padding: 10px 20px;
    width: 100%;
    height: 80px;
    background-color: white;
    z-index: 1000;
    position: relative;
}

/* 📌 LOGO */
.logo {
    display: block;
    width: 70px;
    height: auto;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* 📌 MENU BURGER */
.menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-50%); /* Aligné avec le logo et le panier */
    top: 50%;
    color: black;
    background: none;
    border: none;
    z-index: 1001;
}

/* 📌 PANIER */
.nav2 {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
}

.logo-panier {
    width: 40px;
    height: auto;
    display: block;
}

/* 📌 MENU MOBILE */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 30px;
        cursor: pointer;
        background: none;
        border: none;
        z-index: 1100;
        color: black;
    }

    .nav {
        display: none;
    }

    .header2 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 10px;
        background-color: white;
        position: relative;
        z-index: 1000;
    }

    .nav-mobile {
        display: none;
        position: absolute;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 40px); /* ✅ Assure un centrage pixel-perfect */
        max-width: 320px; /* ✅ Ajustement précis */
        background-color: white;
        border: 1px solid #ccc;
        border-radius: 10px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        text-align: center;
        padding: 10px;
    }

    .nav-mobile.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .nav-mobile a {
        text-decoration: none;
        color: black;
        padding: 12px;
        width: 100%;
        font-size: 18px;
        text-align: center;
        border-bottom: 1px solid #ccc;
        display: block;
    }

    .nav-mobile a:last-child {
        border-bottom: none;
    }
}

/* ===== Responsive pour Téléphone (max-width: 768px) ===== */
@media (max-width: 768px) {
    /* ------ Section Introduction ------ */
    .intro {
      padding: 30px 15px;
      text-align: center;
    }
    .intro h1 {
      font-size: 24px;
      margin-bottom: 10px;
      color: #333;
    }
    .intro p {
      font-size: 16px;
      color: #777;
      line-height: 1.5;
    }
  
    /* ------ Timeline ------ */
    .timeline {
      padding: 30px 15px;
    }
    .timeline h2 {
      font-size: 24px;
      text-align: center;
      margin-bottom: 20px;
      color: #333;
    }
    .timeline-item {
      background-color: transparent !important; 
      padding: 0 !important; 
      margin-bottom: 20px; /* Conservez une marge si besoin */
    }
    /* On ajuste le bloc enfant pour qu'il soit le seul bloc gris */
    .timeline-content {
      background-color: #f4f4f4 !important;
      margin: 0 !important;
      padding: 15px !important;
      border-radius: 8px;
    }
    .timeline-item h3 {
      font-size: 18px;
      margin-bottom: 5px;
      color: #333;
    }
    .timeline-item p {
      font-size: 14px;
      color: #555;
      line-height: 1.4;
    }
  
    /* ------ Nos Valeurs ------ */
    .values {
      padding: 30px 15px;
      text-align: center;
    }
    .values h2 {
      font-size: 24px;
      margin-bottom: 10px;
      color: #333;
    }
    .values p {
      font-size: 16px;
      color: #555;
      line-height: 1.5;
      max-width: 90%;
      margin: 0 auto;
    }
  
    /* ------ Équipe ------ */
    .team {
      padding: 30px 15px;
      text-align: center;    }
    .team h2 {
      font-size: 24px;
      margin-bottom: 20px;
      color: #333;
    }
    .team-members {
      display: flex;
      flex-direction: column;
      gap: 20px;
      align-items: center;
    }
    .team-member {
      width: 90%;
      max-width: 300px;
      margin-bottom: 20px;
      padding: 15px;
      background-color: #fff;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      text-align: center;
    }
    .team-member img {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      object-fit: cover;
      margin-bottom: 10px;
    }
    .team-member h3 {
      font-size: 18px;
      margin-bottom: 5px;
      color: #333;
    }
    .team-member p {
      font-size: 14px;
      color: #555;
    }
  
    /* ------ Contact ------ */
    .contact {
      padding: 30px 15px;
      text-align: center;
    }
    .contact h2 {
      font-size: 24px;
      margin-bottom: 10px;
      color: #333;
    }
    .contact p,
    .contact a {
      font-size: 16px;
      color: #333;
      text-decoration: none;
      line-height: 1.5;
    }
  
    /* ------ Footer ------ */
    footer {
      padding: 20px 15px;
      text-align: center;
      font-size: 14px;
      color: #ffffff;
      margin: 0;
    }
    footer a.cgv {
      color: #ffffff;
      text-decoration: none;
    }
  }
  

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* 📌 Cacher le menu burger sur PC */
@media (min-width: 769px) {
    .menu-icon {
        display: none;
    }
}

