
/* 1. Réglages généraux de la page */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f4f7fb;
    color: #263445;
}

/* 2. En-tête du site */
header {
    background-color: #164b78;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

/* 3. Titre principal */
h1 {
    margin: 0;
    font-size: 36px;
}

/* 4. Zone principale */
main {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
}

/* 5. Titre de la zone principale */
h2 {
    color: #164b78;
}


/* Cartes des produits */

.produits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 25px;
    align-items: stretch;
}



.carte {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #dce5ee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;

    min-height: 340px;
    display: flex;
    flex-direction: column;
}


.carte h3 {
    color: #164b78;
    margin-top: 0;
    font-size: 20px;
}

.carte p {
    line-height: 1.6;
}

.statut {
    color: #68788a;
    font-size: 14px;
}

/* Adaptation aux écrans de téléphone */
@media (max-width: 700px) {
    .produits {
        grid-template-columns: 1fr;
    }
}


/* Taille des images des produits */


.carte img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
}



.carte h3 {
    color: #164b78;
    margin-top: 0;
    font-size: 18px;
    min-height: 44px;
}



/* Boutons de téléchargement des notices */
.carte a {
    display: inline-block;
    background-color: #164b78;
    color: white;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    margin-top: 8px;
}

.carte a:hover {
    background-color: #0f3658;
}

/* Aligner l'image et le titre du produit */
.produit-entete {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 100px;
    margin-bottom: 16px;
}

.produit-entete img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    flex-shrink: 0;
}

.produit-entete h3 {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.carte {
    display: flex;
    flex-direction: column;
}

.carte > p {
    margin-top: 16px;
}


.carte > a {
    margin-top: auto;
    align-self: stretch;
    text-align: center;
    box-sizing: border-box;
}


