:root {
    --primary-color: #D38F54;
    /* Terracotta */
    --accent-color: #F9F4F0;
    /* Beige clair */
    --text-color: #333333;
    --sub-text-color: #666666;
    --bg-color: #F9F4F0;
    --form-bg: #FFFFFF;
    --border-color: #E0E0E0;
    --font-main: 'Inter', sans-serif;
    --font-display: 'Tulpen One', cursive;
    --font-title: 'Jaro', sans-serif;
    --radius-lg: 32px;
    --radius-md: 16px;
    --shadow-soft: 0 10px 30px rgba(211, 143, 84, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header & Nav */
header {
    padding: 40px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-accent {
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--accent-color);
    line-height: 1;
    margin-left: 10px;
}

nav {
    display: flex;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

nav a {
    text-decoration: none;
    color: var(--sub-text-color);
    transition: color 0.2s;
}

nav a.active,
nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    /* On garde une hauteur min pour que ça respire */
    min-height: 800px;
    border-radius: var(--radius-lg);
    margin-top: 20px;
    overflow: hidden;
    /* Flexbox pour centrer le contenu par-dessus */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: none !important;
    /* FORCE TRANSPARENCY */
    background-color: transparent !important;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #333333;
    /* Fallback color if image fails */
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Voile noir semi-transparent pour lisibilité */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    /* Grid layout simulant l'ancien mais centré ou espacé */
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 40px;
}

/* Ajustements typographie sur fond sombre/image */
.hero h1 {
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero .subheading {
    color: #F0F0F0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    font-size: 24px;
    max-width: 600px;
}

@media (max-width: 992px) {
    .hero {
        min-height: auto;
        padding: 60px 20px;
    }

    .hero-content-wrapper {
        padding: 0;
    }

    h1 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 40px 15px;
        border-radius: var(--radius-md);
    }

    h1 {
        font-size: 36px;
        /* Plus petit pour éviter débordement */
        word-wrap: break-word;
    }

    .subheading {
        font-size: 18px;
    }

    form {
        padding: 25px;
        /* Moins de padding dans le form */
        width: 100%;
        /* S'assure qu'il ne dépasse pas le parent */
        box-sizing: border-box;
    }

    .logo {
        font-size: 24px;
    }

    .logo-accent {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .hero {
        padding: 20px 10px;
    }

    form {
        padding: 20px 15px;
        width: 100%;
        margin: 0;
    }

    h1 {
        font-size: 28px;
    }
}

/* Sécurité globale overflow */
html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 64px;
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.1;
    /* Un peu plus d'air */
    margin-bottom: 24px;
    text-transform: uppercase;
}

.subheading {
    font-size: 22px;
    margin-bottom: 40px;
}

/* Form */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 480px;
    /* Un poil plus étroit */
    background: rgba(255, 255, 255, 0.95);
    /* Légère transparence pour le style */
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    color: var(--text-color);
}


.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 16px;
    font-weight: 500;
}

input,
textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #F2F2F2;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 16px;
    background: #F9F9F9;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #FFFFFF;
}

.btn {
    appearance: none;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 20px 32px;
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    margin-top: 10px;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
}

.alert.success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert.error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--sub-text-color);
    font-size: 14px;
}