/* --- Import Polices --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,700&family=Poppins:wght@300;400;600&display=swap');

/* --- Variables de Design --- */
:root {
    --zen-dark: #2d3436;
    --zen-green: #27ae60;
    --zen-light-green: #eafaf1;
    --zen-cream: #fcfaf7;
}

/* --- STRUCTURE & SCROLL --- */
html {
    scroll-behavior: smooth;
    /* Evite que l'ancre soit cachée sous la navbar fixe */
    scroll-padding-top: 100px; 
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--zen-dark);
    background-color: var(--zen-cream);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* --- TYPOGRAPHIE --- */
h1, h2, h3, .navbar-brand {
    font-family: 'Playfair Display', serif;
}

@media (min-width: 1400px) {
    .container { max-width: 1320px; }
}

/* --- COMPOSANTS --- */

/* Alignement parfait des cartes */
.row.g-4 {
    display: flex;
    flex-wrap: wrap;
}

.col-md-6.col-lg-4 {
    display: flex; 
}

.card {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: none !important;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Remplit l'espace */
    padding: 1.5rem;
}

.card-text {
    flex-grow: 1; /* Pousse le bouton vers le bas */
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    background: linear-gradient(45deg, #e9ecef 25%, #f8f9fa 100%);
}

/* Boutons */
.btn-success {
    background-color: var(--zen-green);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: 0.3s;
}

.btn-success:hover {
    background-color: #219150;
    transform: scale(1.05);
}

.btn-outline-success {
    border: 2px solid var(--zen-green);
    color: var(--zen-green);
    font-weight: 600;
}

/* --- SECTIONS --- */
.bg-white-section {
    background-color: white;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}