/* --- Couleurs --- */
:root {
    --primary-color: #4A7C59;
    --accent-color: #C6AD8F;
    --pastel-pink: rgba(255, 182, 193, 0.4);
    --bg-color: #f9fdfa;
    --card-bg: rgba(255, 255, 255, 0.7);
    --text-main: #333;
    --border-color: rgba(74, 124, 89, 0.15);
}

[data-theme="dark"] {
    --primary-color: #8FBC8F;
    --bg-color: #1a1a1a;
    --card-bg: rgba(40, 40, 40, 0.7);
    --text-main: #e0e0e0;
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background 0.3s, color 0.3s, transform 0.3s ease;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    background-image:
        radial-gradient(circle at 10% 20%, var(--pastel-pink) 0%, transparent 25%),
        radial-gradient(circle at 90% 80%, var(--pastel-pink) 0%, transparent 30%);
    background-attachment: fixed;
    line-height: 1.6;
}

/* --- Navigation --- */
.nav-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    pointer-events: none;
}

.nav-btn {
    pointer-events: auto;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    height: 50px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 20px;
    font-family: 'Montserrat', sans-serif;
}

#theme-btn {
    width: 50px;
    padding: 0;
    font-size: 1.2rem;
}

.nav-btn:hover {
    transform: scale(1.05);
    background: var(--primary-color);
    color: white;
}

.back-icon {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 10px solid currentColor;
    margin-right: 8px;
}

/* --- Layout --- */
.container {
    max-width: 1000px;
    margin: 120px auto 60px;
    padding: 0 20px;
}

.card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Typographie --- */
.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.3rem;
    color: var(--primary-color);
    margin: 10px 0;
    text-align: center;
}

.subtitle {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    color: var(--accent-color);
    display: block;
    text-align: center;
}

.divider {
    width: 50px;
    height: 2px;
    background: var(--accent-color);
    margin: 20px auto;
}

/* --- Contenu texte --- */
.info-text {
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.95;
    font-size: 0.97rem;
}

.info-text p + p {
    margin-top: 1rem;
}

.info-text strong {
    color: var(--primary-color);
}

/* --- Pills --- */
.pill-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.pill {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    background: rgba(198, 173, 143, 0.18);
    color: var(--primary-color);
    border: 1px solid rgba(74, 124, 89, 0.2);
}

/* --- Boutons contact --- */
.contact-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    min-width: 180px;
    justify-content: center;
    transition: transform 0.2s, filter 0.2s;
}

.contact-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 40px 0;
    opacity: 0.7;
    font-weight: bold;
}

/* --- Bulle thème mobile --- */
.theme-bubble {
    display: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-container {
        width: 95%;
        top: 15px;
    }

    .container {
        margin-top: 100px;
        padding: 0 16px;
    }

    .main-title {
        font-size: 1.8rem;
    }

    #theme-btn {
        display: none;
    }

    .theme-bubble {
        display: flex;
        position: fixed;
        bottom: 20px;
        left: 20px;
        z-index: 1001;
        background: var(--card-bg);
        border: 2px solid var(--primary-color);
        color: var(--primary-color);
        width: 50px;
        height: 50px;
        border-radius: 50%;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }
}
