/* --- VARIABLES & RESET --- */
:root {
    --bg-color: #fff;
    --beige-dark: #f3e9e4;
    --beige-light: #fbf7f6;
    --chocolate: #8b7771;
    --chocolate-dark: #6d5d58;
    --text-color: #5a4a46;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Mulish', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Important pour le menu fixe : évite que les titres soient cachés lors du clic */
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- TYPOGRAPHIE --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--chocolate);
    font-weight: 400;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BOUTONS --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--chocolate);
    color: white;
    border: 1px solid var(--chocolate);
}

.btn-primary:hover {
    background-color: var(--chocolate-dark);
    border-color: var(--chocolate-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--chocolate);
    border: 1px solid var(--chocolate);
}

.btn-outline:hover {
    background-color: var(--chocolate);
    color: white;
}

/* --- NAVIGATION (MODIFIÉE : FIXE) --- */
nav {
    position: fixed; /* Le menu suit le scroll */
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000; /* Toujours au-dessus */
    background-color: rgba(255, 255, 255, 0.95); /* Fond blanc semi-transparent */
    backdrop-filter: blur(5px); /* Effet flou */
    box-shadow: 0 2px 10px rgba(139, 119, 113, 0.1); /* Légère ombre */
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--chocolate);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--chocolate);
    font-weight: 400;
}

.nav-links a:hover {
    opacity: 0.7;
}

.btn-nav {
    border: 1px solid var(--chocolate);
    padding: 8px 20px;
    border-radius: 50px;
}

.btn-nav:hover {
    background-color: var(--chocolate);
    color: white;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.6)), url('cover.jpeg');
    background-size: cover;
    background-position: center;
    padding-top: 80px; /* Compensate for fixed nav */
}

.hero-logo {
    max-width: 280px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* --- SECTIONS GENERIQUES --- */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.line-separator {
    width: 60px;
    height: 1px;
    background-color: var(--chocolate);
    margin: 20px auto;
}

.bg-beige {
    background-color: var(--beige-light);
}

/* --- FEATURES / CONCEPT --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-item p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* --- TARIFS --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto 40px auto; /* Marge en bas pour espacer du bouton */
}

.card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(139, 119, 113, 0.05);
    border: 1px solid rgba(139, 119, 113, 0.1);
    transition: transform 0.3s ease;
    height: 100%; /* Uniformiser la hauteur */
}

.card:hover {
    transform: translateY(-5px);
}

.card .price {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--chocolate);
    margin: 10px 0;
}

.card .price span {
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text-color);
    opacity: 0.7;
}

.card .details {
    margin-bottom: 20px;
    font-weight: 600;
}

.benefits {
    margin-bottom: 10px;
    text-align: left;
    display: inline-block;
}

.benefits li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
}

.benefits li::before {
    content: "•";
    color: var(--chocolate);
    position: absolute;
    left: 0;
}

/* Zone du bouton unique */
.pricing-cta {
    text-align: center;
    margin-top: 20px;
}

.cta-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--chocolate);
}

/* --- PROJET / SONDAGE --- */
.project-box {
    background-color: var(--beige-dark);
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
}

.project-content h2 {
    margin-bottom: 20px;
}

.project-content p {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- FOOTER --- */
footer {
    background-color: var(--chocolate);
    color: var(--beige-dark);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Styles pour le lien social avec icône */
.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--beige-dark);
}

.social-btn:hover {
    color: white;
    text-decoration: underline;
}

.footer-col a:not(.social-btn):hover {
    color: white;
    text-decoration: underline;
}

.link-styled {
    color: var(--beige-dark);
    border-bottom: 1px solid var(--beige-dark);
    padding-bottom: 2px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* --- RESPONSIVE MOBILE & TABLETTE --- */
@media (max-width: 875px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .nav-links {
        display: none; 
    }
    
    .nav-container {
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px; /* Évite que les boutons soient trop larges sur tablette */
    }
    
    /* Force le bloc "Esprit Linéa" en une seule colonne sous 875px */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Force les cartes de prix en une seule colonne sous 875px */
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .card {
        max-width: 450px;
        margin: 0 auto; /* Centre les cartes quand elles sont empilées */
    }
}