/* ---------- GENERAL ---------- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  .main-content {
    padding-bottom: 60px; /* ou 5rem selon la hauteur du footer */
  }
  
  /* ---------- HEADER ---------- */
  header {
    background-color: #6A0DAD;
    color: white;
    padding: 1em 20px;
    position: relative;
  }
  
  .header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
  }
  
  .reseaux-sociaux {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    justify-self: start;
  }
  
  .header-image {
    max-width: 80px;
    height: auto;
  }
  
  .social-icons {
    display: flex;
    gap: 10px;
  }
  
  .social-icons a {
    color: white;
    font-size: 1.5em;
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .social-icons a:hover {
    color: #ddd;
  }
  
  .header-titres {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .header-titres h1 {
    margin: 0;
    font-size: 1.8em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  }
  
  .header-titres p {
    margin: 2px 0 0;
    font-size: 1em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  }
  
  header figure {
    margin: 0;
    text-align: center;
    justify-self: end;
  }
  
  .starter-badge {
    height: 60px;
    width: auto;
  }
  
  header figcaption {
    font-size: 0.9em;
    margin-top: 5px;
    color: white;
    width: 150px;
  }
  
  /* ---------- NAVIGATION ---------- */
  nav {
    display: flex;
    justify-content: center;
    background-color: #5A189A;
  }
  
  nav a {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    text-align: center;
  }
  
  nav a:hover {
    background-color: #ddd;
    color: black;
  }
  
  /* ---------- CONTENU ACCUEIL ---------- */
  .container-index {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .presentation-magasin {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
  }
  
  .presentation-magasin-texte {
    max-width: 1000px;
    text-align: justify;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #333;
  }
  
  /* ---------- PRODUITS ---------- */
  .container-produits {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    padding-bottom: 100px;
    text-align: center;
  }
  
  .carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 400px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  }
  
  .carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    border-radius: 10px;
  }
  
  .carousel img.active {
    display: block;
  }
  
  .carousel .controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
  }
  
  .carousel .controls button {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 1.5em;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
  }
  
  .carousel .controls button:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }
  
  /* ---------- CONTACT ---------- */
  .contact-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  
  .contact-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #5A189A;
  }
  
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .contact-form label {
    font-weight: bold;
    color: #333;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1em;
    font-family: inherit;
  }
  
  .contact-form input:focus,
  .contact-form textarea:focus {
    outline: none;
    border-color: #6A0DAD;
    box-shadow: 0 0 3px rgba(106, 13, 173, 0.3);
  }
  
  .contact-form button {
    background-color: #6A0DAD;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .contact-form button:hover {
    background-color: #5A189A;
  }
  
  /* ---------- A PROPOS ---------- */
  .a-propos-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background-color: white;
    color: #333;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  
  .a-propos-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #5A189A;
  }
  
  .a-propos-container p {
    margin-bottom: 15px;
    line-height: 1.6;
  }
  
  /* ---------- FOOTER ---------- */
  footer {
    background-color: #5A189A;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 0.85em;
    width: 100%;
    bottom: 0;
  }
  
  /* ---------- MEDIA QUERIES ---------- */
  @media (max-width: 1200px) {
    .presentation-magasin-texte {
      max-width: 90%;
      font-size: 1.05em;
    }
  }
  
  @media (max-width: 992px) {
    .presentation-magasin {
      max-width: 90%;
    }
  
    .presentation-magasin-texte {
      padding: 15px;
    }
  
    .header-titres h1 {
      font-size: 1.6em;
    }
  }
  
  @media (max-width: 768px) {
    .header-content {
      grid-template-columns: 1fr;
      text-align: center;
    }
  
    .reseaux-sociaux,
    .header-titres,
    header figure {
      justify-self: center;
      margin-bottom: 15px;
    }
  
    .starter-badge {
      height: 50px;
    }
  
    .header-image {
      max-width: 60px;
    }
  
    .presentation-magasin {
      max-width: 100%;
    }
  
    .presentation-magasin-texte {
      padding: 15px;
      font-size: 1em;
    }
  
    .carousel {
      height: 320px;
    }
  }
  
  @media (max-width: 480px) {
    .header-titres h1 {
      font-size: 1.3em;
    }
  
    nav a {
      padding: 10px;
      font-size: 0.9em;
    }
  
    .presentation-magasin-texte {
      font-size: 0.95em;
    }
  
    .carousel {
      height: 260px;
    }
  
    .container-produits {
      padding-bottom: 120px;
    }
  }