 :root {
  --primary-blue: #A7C7E7;
  --primary-purple: #F3E6FF;
  --accent-blue: #4A90E2;
  --accent-purple: #9B51E0;
  --text-dark: #2D3748;
  --text-light: #718096;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --nav-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #f8f9fa;
}

.title-container {
    position: relative;
    width: 90vw;
    height: 20rem; 
    background: url('/images/sensibilisation2.webp') no-repeat center center;
    background-size: cover;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.title-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    border-radius: 20px;
}

h1 {
    position: relative; 
    font-size: 2.5rem;
    text-align: center;
    z-index: 1;
}

.formations-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    padding: 2rem;
    max-width: 70rem;
    margin: 0 auto;
}

.filters {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.formations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 6rem;
}

.formation-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.formation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.formation-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.formation-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.formation-title a {
    text-decoration: none; 
    color: inherit; 
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.formation-title a:hover {
    color: #4A90E2;
}

.formation-ref {
    font-size: 0.875rem;
    color: #666;
}

.formation-tags {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

/* Tags et badges */
.tag {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tag-top {
    background: #ff4444;
    color: white;
}

.tag-new {
    background: #2563eb;
    color: white;
}

.tag-cpf {
    background: #fff;
    border: 1px solid #2563eb;
    color: #2563eb;
}

/* Rating system */
.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.star {
    color: #fbbf24;
}

.rating-score {
    font-size: 0.875rem;
    color: #666;
}

/* Prix et durée */
.formation-meta {
    text-align: right;
}

.formation-duration {
    font-weight: 500;
    color: #333;
}

.formation-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.formation-modality {
    font-size: 0.875rem;
    color: #666;
}

/* Session garantie */
.session-guaranteed {
    background: linear-gradient(to right, #000000, #4A90E2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Bouton réserver */
.reserve-button {
    display: block;
    width: fit-content;
    margin: 1.45rem 0 0 auto;
    padding: 0.5rem 1.5rem;
    background-color: var(--accent-blue);
    color: white;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 2rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.reserve-button:hover {
    background-color: var(--primary-blue);
}