/* =======================
   SERVICE PAGE
======================= */

/* Section principale du service */
.service-page {
    padding: 1rem 1rem 1rem;
    padding-bottom: 4rem;
    text-align: center;
}


.service-page h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem; /* espace sous le titre */
}

.service-page p {
    font-size: 1.1rem;
    color: #2563eb;
    max-width: 700px;
    margin: 0 auto 2.5rem; /* centre le texte et ajoute de l’espace */
    line-height: 1.6;
}

/* Grille des produits */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes fixes */
    gap: 2rem;
    margin-bottom: 3rem; /* espace sous la grille */
    position: relative;
    z-index: 0; /* assure que les cartes restent sous le header */
}

/* Carte produit */
.product-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 1; /* un petit z-index pour ne pas passer au-dessus du header */
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.12);
}

/* Badge prix */
.price-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #2563eb; /* bleu */
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Titre du produit */
.product-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Description du produit */
.product-card p {
    font-size: 0.95rem;
    color: #2563eb;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Boutons dans la page service */
.service-page .btn-primary,
.service-page .btn-secondary {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s, color 0.3s, transform 0.2s;
    margin: 0.5rem 0.25rem;
}

/* Bouton secondaire (Voir détails / Retour) */
.service-page .btn-secondary {
    background-color: #ffffff;
    border: 1px solid #2563eb;
    color: #2563eb;
}

.service-page .btn-secondary:hover {
    background-color: #2563eb;
    color: #fff;
    transform: scale(1.05);
}

/* Bouton primaire (Panier) */
.service-page .btn-primary {
    background-color: #2563eb;
    color: #fff;
}

.service-page .btn-primary:hover {
    background-color: #2563eb;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .service-page h1 {
        font-size: 2rem;
    }
    
    .service-page p {
        font-size: 1rem;
    }
}
