/* Reset & typographie */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: 'Poppins', sans-serif;
    background: #f5f8ff;
    color: #1f2e50;
  }
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
  }
  
  /* Header blanc */
  .header-white {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
  .header-white .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
  }
  .header-white a {
    color: #1f2e50;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border 0.3s;
  }
  .header-white a:hover,
  .header-white a.active {
    border-bottom: 2px solid #5599ff;
  }
  
  /* Catégories */
  .category + .category {
    margin-top: 80px;
  }
  .category h2 {
    font-size: 28px;
    margin-bottom: 10px;
    text-align: center;
    color: #1f2e50;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #5599ff;
    display: inline-block;
    padding-bottom: 6px;
  }
  .description {
    text-align: center;
    font-size: 16px;
    color: #445;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px auto;
  }
  
  /* Galerie cartes petites */
  .gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  .card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    width: 220px; /* 🔥 Taille réduite ici */
    transition: transform 0.3s ease;
  }
  .card:hover {
    transform: scale(1.02);
  }
  .card img {
    width: 100%;
    display: block;
    height: auto;
    border-radius: 12px; /* ✅ Coins arrondis */
  }
  .card .caption {
    padding: 10px;
    font-size: 14px;
    text-align: center;
    color: #445;
  }
  
  /* Footer blanc */
  .footer-white {
    background: #fff;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    margin-top: 60px;
    text-align: center;
  }
  .avant-apres {
    padding: 60px 20px;
    text-align: center;
    background-color: #f9f9f9;
  }
  .avant-apres h2 {
    font-size: 28px;
    color: #1f2e50;
    margin-bottom: 40px;
    font-weight: 700;
  }
  .avant-apres-gallery {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
  }
  .img-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 10px;
    max-width: 280px;
    text-align: center;
  }
  .img-card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }
  .img-card p {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
  }

  .avant-apres-gallery {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
  }
  
  .img-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    max-width: 220px;
    text-align: center;
    padding: 10px;
  }
  
  .img-card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }
  
  .img-card p {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
  }
  






  .avant-apres-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
  }
  
  .avant-apres-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 10px;
    max-width: 240px;
    text-align: center;
    transition: transform 0.3s ease;
  }
  
  .avant-apres-card:hover {
    transform: scale(1.03);
  }
  
  .avant-apres-card img {
    width: 100%;
    border-radius: 12px;
    height: auto;
  }
  
  .avant-apres-card .caption {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
  }
  
  



  /* ===== MEDIA QUERIES POUR RESPONSIVE ===== */

/* Tablettes et petits écrans (max 768px) */
@media (max-width: 768px) {
  .header-white .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .header-white nav {
    width: 100%;
    display: flex;
    justify-content: space-around;
  }
  .header-white a {
    margin-left: 0;
    font-size: 14px;
  }
  
  .category h2 {
    font-size: 24px;
  }
  .description {
    font-size: 15px;
    max-width: 100%;
    padding: 0 10px;
  }
  
  .avant-apres-gallery {
    flex-direction: column;
    gap: 30px;
  }
  .img-card {
    max-width: 100%;
    width: 100%;
  }
  .img-card img {
    border-radius: 10px;
  }
  
  .avant-apres-container {
    flex-direction: column;
    gap: 25px;
  }
  .avant-apres-card {
    max-width: 100%;
    width: 100%;
  }
}

/* Petits mobiles (max 480px) */
@media (max-width: 480px) {
  .header-white .container {
    padding: 10px;
  }
  .header-white nav {
    flex-direction: column;
    gap: 8px;
  }
  .header-white a {
    font-size: 13px;
  }
  
  .category h2 {
    font-size: 20px;
  }
  .description {
    font-size: 14px;
    padding: 0 5px;
  }
  
  .avant-apres-gallery {
    gap: 20px;
  }
  .img-card {
    padding: 8px;
  }
  .img-card p {
    font-size: 14px;
  }
  
  .avant-apres-container {
    gap: 15px;
  }
  .avant-apres-card {
    padding: 8px;
  }
  .avant-apres-card .caption {
    font-size: 14px;
  }
  
  .container {
    width: 95%;
    padding: 0 10px;
  }
}
