/* Style de base */
body { 
    margin: 0; 
    padding: 0; 
    font-family: 'Segoe UI', Roboto, sans-serif; 
    background: #f0f2f5;
    color: #4a4a4a;
  }
  /* Tu peux ajuster la valeur à ton goût (ici 1.5rem) */
main {
    padding: 0 1.5rem;     /* 1.5rem de marge gauche et droite */
}

  /* Header et navigation 
 /* Header style minimaliste avec 3 colonnes */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    border-bottom: 1px solid #f0f0f0;
  }
  
  /* Logo à gauche */
  h1 {
    color: #45693c;
    font-size: 1.8rem;
    margin: 0;
    font-weight: 600;
  }
  
  /* Image centrale */
  .header-center {
    position: static;
    left: 50%;
    transform: translateX(-50%);
    max-height: 120px;
  }
  
  .header-center img {
    max-height: 120px;
  }
  
  /* Navigation à droite */
  nav {
    margin: 0;
  }
  
  nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  nav a {
    text-decoration: none;
    color: #45693c;
    font-weight: 500;
    transition: color 0.2s ease;
  }
  
  nav a:hover {
    color: #2a4225;
  }
  
  /* Barre de recherche - CORRIGÉE */
  .search-bar {
    width: 100%;
    padding: 12px 0;
    background-color: #f5f5f7;
    text-align: center;
    border-bottom: 1px solid #e6e6e6;
  }
  
  .search-bar input {
    width: 80%;
    max-width: 600px;
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-size: 16px;
  }
  
  /* Titres de sections - CORRIGÉ */
  h2.section-title { 
    text-align: center; 
    color: #336633; 
    margin: 2rem 0 1.5rem;
    font-size: 1.8rem;
    position: relative;
  }
  
  h2.section-title:after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: #2a6b2a;
    margin: 0.5rem auto 0;
    border-radius: 2px;
  }
  
  /* Filtres - CORRIGÉS */
  .filters {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1rem;
  }
  
  .filter-btn {
    background: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 24px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  
  .filter-btn:hover { 
    transform: scale(1.05); 
    box-shadow: 0 2px 6px rgba (0,0,0,0.1);
    animation: none; 
    }

  .filter-btn.active { 
    background: #2a6b2a;
    color: white;
  }
  
  /* Grille de thérapies - CORRIGÉE */
  .therapies-grid {
    display: grid;                                      /* <-- indispensable */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;                                          /* espace entre les cartes */
    max-width: 1200px;                                  /* limite la largeur totale */
    margin: 0 auto;                                     /* centre la grille */
    padding: 0 1.5rem;                                  /* espace à gauche et à droite */
    box-sizing: border-box;                             /* inclut le padding dans la largeur */
  }
  
  /* Cartes de thérapie - CORRIGÉES */
  .therapy-card {
    height: auto;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 12px;
    overflow: hidden;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
  }
  
  .therapy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  }
  
  .therapy-card h3 { 
    margin-top: 0;
    color: #2a6b2a; 
    font-size: 1.1rem;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 0.3rem;
  }
  
  .therapy-card h4 { 
    margin: 0.5rem 0; 
    font-size: 1rem; 
    color: #4a4a4a;
    font-weight: 500;
  }
  
  .therapy-card p { 
    font-size: 0.85rem; 
    line-height: 1.4; 
    margin: 0.4rem 0;
    color: #666;
  }
  
  .therapy-card p > strong { 
    color: #336633;
    font-weight: 600;
  }
  
  /* Images des cartes - CORRIGÉES */
  .therapy-card-img {
    width: 100%;
    position: relative;
    overflow: hidden;
  }
  
  .therapy-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .therapy-card:hover .therapy-card-img img {
    transform: scale(1.05);
  }
  
  /* Uniformiser les hauteurs d'images */
  .therapy-card-img { 
    aspect-ratio: 16/9; /* ou 4/3 */ height: auto;
 }

  
  /* Contenu des cartes - CORRIGÉ */
  .therapy-card-content {
    flex: 1;
    padding: 0.7rem;
  }
  
  /* Couleurs des bordures supérieures */
  .therapy-card:nth-child(4n+1) {
    border-top: 3px solid #5d9c5d;
  }
  
  .therapy-card:nth-child(4n+2) {
    border-top: 3px solid #7db37d;
  }
  
  .therapy-card:nth-child(4n+3) {
    border-top: 3px solid #99c899;
  }
  
  .therapy-card:nth-child(4n+4) {
    border-top: 3px solid #b7deb7;
  }
  
  /* Bouton "Save" - CORRIGÉ */
  .save-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(230, 0, 35, 0.9);
    color: white;
    border: none;
    border-radius: 24px;
    padding: 4px 16px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    z-index: 2;
    backdrop-filter: blur(4px)
  }
  
  .therapy-card:hover .save-button {
    opacity: 1;
  }
  
  .save-button:hover {
    background: rgb(230, 0, 35);
  }
  
  /* Actions en bas de carte */
  .card-actions {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    border-top: 1px solid #f0f0f0;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px)
  }
  
  .therapy-card:hover .card-actions {
    opacity: 1;
  }
  
  .action-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .action-btn:hover {
    color: #2a6b2a;
  }
  
  /* Animations - CORRIGÉES */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
  }
  
  /* Délais d'animation */
  .therapy-card:nth-child(1) { animation-delay: 0.1s; }
  .therapy-card:nth-child(2) { animation-delay: 0.15s; }
  .therapy-card:nth-child(3) { animation-delay: 0.2s; }
  .therapy-card:nth-child(4) { animation-delay: 0.25s; }
  .therapy-card:nth-child(5) { animation-delay: 0.3s; }
  .therapy-card:nth-child(6) { animation-delay: 0.35s; }
  .therapy-card:nth-child(7) { animation-delay: 0.4s; }
  .therapy-card:nth-child(8) { animation-delay: 0.45s; }
  .therapy-card:nth-child(9) { animation-delay: 0.5s; }
  .therapy-card:nth-child(10) { animation-delay: 0.55s; }
  .therapy-card:nth-child(n+11) { animation-delay: 0.6s; }
  
  /* Bouton "Charger plus" - CORRIGÉ */
  .load-more {
    text-align: center;
    margin: 2rem 0;
  }
  .load-more button {
    background: var(--vert);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
  }
  .load-more button:hover {
    background-color: #548235;
    /* plus de translate ni de box-shadow */
  }
  
  footer {
    background: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
    text-align: center;
    margin-top: 2rem;
  }
  
  /* Media queries - CORRIGÉES */
  @media (max-width: 768px) {
    header {
      padding: 0.8rem 1.5rem;
    }
    
    .therapies-grid {
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
  }
  
  @media (max-width: 768px) {
    header {
      flex-direction: column;
      padding: 0.8rem 1rem;
    }
    
    .header-left {
      margin-bottom: 0.5rem;
      justify-content: center;
      width: 100%;
    }
    
    nav ul {
      justify-content: center;
      width: 100%;
      margin-top: 0.5rem;
    }
    
    .filters {
      overflow-x: auto;
      justify-content: flex-start;
      padding-bottom: 5px;
      flex-wrap: nowrap;
    }
    
    .filter-btn {
      padding: 0.5rem 0.8rem;
      font-size: 0.9rem;
      white-space: nowrap;
    }
    
    .therapies-grid {
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      margin: 0 10px 20px;
    }
  }
  
  @media(max-width:576px) {
    .header-center img { 
     max-height:80px; 
    }
    nav ul { 
    flex-wrap: wrap; 
    justify-content: center;
 }
  
    .therapies-grid {
      grid-template-columns: 1fr;
    }
    
    .therapy-card-img {
      height: 120px;
    }
    
    h2.section-title {
      font-size: 1.5rem;
    }
    
    .therapy-card h3 {
      font-size: 1.1rem;
    }
    
    .therapy-card h4 {
      font-size: 1rem;
    }
}
/* MICRO-CONTENUS STYLES */
.micro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.micro-card {
    background: white;
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #2a6b2a;
}

.micro-image {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    margin: 0.5rem 0;
    transition: transform 0.3s ease;
}

.time-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a4229;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* + les autres styles de l'artifact... */