:root {
    /* Couleurs */
    --color-primary: #1A4F44;
    --color-secondary: #50B8B2;
    --color-background: #F0F5EE;
    --color-footer-bg: #0D332D;
    --color-button: #50B8B2;
    --color-text-dark: #0D332D;
    --color-text-light: #F0F5EE;
    --color-accent: #50B8B2; /* Utilisé pour les hovers ou éléments clés */

    /* Couleurs de fond de section */
    --section-bg-1: #F3F7EC;
    --section-bg-2: #D4E7B7;
    --section-bg-3: #E0EED4;
    --section-bg-4: #DDF2CB;

    /* Typographie */
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --font-size-base: 18px; /* Taille de base pour une meilleure lisibilité */
    --line-height-base: 1.7;
    --line-height-heading: 1.2;

    /* Espacements */
    --spacing-unit: 1rem; /* 16px */
    --padding-section: calc(4 * var(--spacing-unit)) calc(2 * var(--spacing-unit));

    /* Border Radius */
    --border-radius-soft: 12px;
    --border-radius-button: 25px;

    /* Ombres */
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text-dark);
    background-color: var(--color-background);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: var(--line-height-heading);
    color: var(--color-primary);
    margin-top: 2em;
    margin-bottom: 0.8em;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--color-secondary);
}

h3 {
    font-size: 2.2rem;
    font-weight: 500;
}

h4 {
    font-size: 1.8rem;
    font-weight: 500;
}

p {
    margin-bottom: 1.5em;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Header */
.header {
    background-color: rgba(var(--color-background), 0.9); /* Légèrement transparent */
    backdrop-filter: blur(8px); /* Effet glassmorphism pour le header */
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: calc(1.5 * var(--spacing-unit)) calc(2 * var(--spacing-unit));
    box-shadow: var(--shadow-soft);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background-color: rgba(var(--color-background), 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: calc(2 * var(--spacing-unit));
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-dark);
    padding: 0.5rem 1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: var(--border-radius-button);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    background-image: linear-gradient(to right, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-text-light);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    background-image: linear-gradient(to right, var(--color-secondary) 0%, var(--color-primary) 100%);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Sections */
.section {
    padding: var(--padding-section);
    margin: 0 auto;
    max-width: 1400px;
}

.section-bg-1 {
    background-color: var(--section-bg-1);
}

.section-bg-2 {
    background-color: var(--section-bg-2);
}

.section-bg-3 {
    background-color: var(--section-bg-3);
}

.section-bg-4 {
    background-color: var(--section-bg-4);
}

/* Cartes (Card Style) */
.card {
    background-color: rgba(255, 255, 255, 0.5); /* Légèrement translucide */
    backdrop-filter: blur(10px); /* Effet glassmorphism */
    border-radius: var(--border-radius-soft);
    padding: calc(2 * var(--spacing-unit));
    box-shadow: var(--shadow-glass);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
}

/* Footer */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text-light);
    padding: var(--padding-section);
    text-align: center;
}

.footer a {
    color: var(--color-secondary);
}

.footer a:hover {
    color: var(--color-primary);
}

/* Utilitaires (si nécessaire pour compléter Tailwind) */
.text-center {
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: calc(2 * var(--spacing-unit));
    padding-right: calc(2 * var(--spacing-unit));
}

/* Media Queries */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 2.4rem;
    }
    .nav-menu {
        gap: calc(1.5 * var(--spacing-unit));
    }
    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    .header-container {
        flex-direction: column;
        gap: var(--spacing-unit);
    }
    .nav-menu {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.8rem 0;
    }
    .section {
        padding: calc(3 * var(--spacing-unit)) var(--spacing-unit);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    .logo {
        font-size: 1.5rem;
    }
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}