body {
  font-family: 'Montserrat', sans-serif;
}

.tarifs-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tarifs-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    color: #333;
}

.cartes-produits {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.carte-produit {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.carte-produit:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.carte-produit img {
    width: 150px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}

.carte-produit h3 {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 10px;
}

.carte-produit .marque {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.voir-tarifs-btn {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.voir-tarifs-btn:hover {
    background: linear-gradient(135deg, #ffae00, #ff8800);
}

/* Modal styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: 20px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: #333;
}

.modal-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8em;
    color: #333;
}

.tarifs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.tarifs-table th,
.tarifs-table td {
    padding: 12px;
    font-size: 20px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.tarifs-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.tarifs-table tr:hover {
    background: #f8f9fa;
}

.prix-generique {
    color: black;
}

.prix-officiel {
    color: black;
}

.description-generique {
    background: #e8f5e8;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.description-generique h4 {
    color: #28a745;
    margin-bottom: 10px;
}

.description-generique p {
    line-height: 1.6;
    color: #333;
}
