/* --- PALETTE & VARIABLES --- */
:root {
    /* Palette inspirée Nature / Lac / Ville */
    --primary-dark: #1F3A4D; /* Bleu Profond (Lac) */
    --primary-light: #3498DB; /* Bleu Vif */
    --accent: #E76F51; /* Terracotta / Orange (Chaleur) */
    --accent-hover: #D65A3C;

    --bg-cream: #FFF9F5; /* Beige très clair (Sable) pour le fond général */
    --bg-white: #FFFFFF;
    --bg-soft-blue: #EBF5FB;

    --text-main: #2C3E50;
    --text-muted: #64748B;

    --card-shadow: 0 10px 30px -5px rgba(31, 58, 77, 0.1);
    --radius: 16px;
}

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

body {
    font-family: 'Inter', sans-serif; /* Texte courant très lisible */
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-cream); /* Fini le fond blanc clinique */
    overflow-x: hidden;
}

h1, h2, h3, h4, .btn {
    font-family: 'Outfit', sans-serif; /* Titres avec plus de caractère */
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* --- DECORATION (BLOBS) - CORRIGÉ --- */
.blob {
    position: absolute; /* Place l'élément par rapport au haut de la page */
    filter: blur(60px); /* Flou un peu moins fort pour mieux voir la forme */
    z-index: 1; /* Juste au-dessus du fond, mais sous le texte */
}

/* Blob 1 : Orange/Rose plus soutenu (en haut à droite) */
.blob-1 {
    top: -50px;
    right: -50px;
    width: 350px;
    height: 350px;
    background: #ffccbc; /* Couleur Corail plus visible */
    border-radius: 50%;
    opacity: 0.8; /* Plus opaque */
}

/* Blob 2 : Bleu plus soutenu (à gauche) */
.blob-2 {
    top: 150px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: #bbdefb; /* Bleu Ciel plus visible */
    border-radius: 50%;
    opacity: 0.8;
}

/* IMPORTANT : On s'assure que le contenu passe par dessus */
.container {
    position: relative;
    z-index: 2; /* Le texte doit être au-dessus des blobs (z-index 1) */
}

/* On affiche les blobs même sur mobile pour vérifier */
@media (max-width: 768px) {
    .blob { display: block; opacity: 0.5; filter: blur(40px); }
    .blob-1 { width: 200px; height: 200px; }
    .blob-2 { width: 150px; height: 150px; top: 100px; }
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 18px 32px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--bg-white);
    background-color: var(--accent);
    border: none;
    border-radius: 50px; /* Boutons plus ronds et amicaux */
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(231, 111, 81, 0.4);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 380px;
    text-align: center;
}
.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 111, 81, 0.5);
}

/* --- HEADER --- */
header {
    padding: 24px 0;
    position: relative;
    z-index: 10;
}
.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-dark);
    text-decoration: none;
}
.logo span { color: var(--accent); }

/* --- HERO SECTION --- */
.hero {
    padding: 60px 0 100px;
    text-align: center;
    position: relative;
}

.tagline {
    display: inline-block;
    background: white;
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

h1 {
    font-size: 3.5rem; /* Plus gros */
    line-height: 1.1;
    color: var(--primary-dark);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 40px;
}

.signup-wrapper {
    background: var(--bg-white);
    padding: 10px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
    border: 1px solid rgba(0,0,0,0.05);
}

input[type="email"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #EEE;
    border-radius: 50px; /* Input rond */
    font-size: 1rem;
    outline: none;
    background: #FAFAFA;
    font-family: inherit;
}
input[type="email"]:focus { border-color: var(--primary-dark); background: white; }

.micro-copy { margin-top: 15px; font-size: 0.9rem; color: var(--text-muted); }

/* --- PROBLEM SECTION --- */
section { padding: 90px 0; position: relative; }

h3 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 50px;
    text-align: center;
    line-height: 1.2;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.problem-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow); /* Effet "flottant" */
    border-top: 5px solid transparent; /* Prépare la bordure colorée */
    transition: transform 0.3s;
}
.problem-card:hover { transform: translateY(-5px); }

/* Couleurs spécifiques par carte */
.card-1 { border-color: #F1C40F; } /* Jaune */
.card-2 { border-color: #E74C3C; } /* Rouge */
.card-3 { border-color: #3498DB; } /* Bleu */

.card-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    display: inline-block;
    background: var(--bg-soft-blue);
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}

/* --- SOLUTION SECTION (BLUE BLOCK) --- */
.solution-section {
    background-color: var(--primary-dark);
    color: white;
    /* Motif de fond subtil */
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 25%);
}

.solution-section h3 { color: white; }

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(255,255,255,0.05); /* Légère transparence */
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.1);
}

.step-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    background: #AED6F1; /* Bleu clair */
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.step h4 { font-size: 1.4rem; margin-bottom: 8px; }
.step p { color: #D6EAF8; margin: 0; }

/* --- DIFFERENTIATION (WARM BLOCK) --- */
.diff-section {
    background-color: #FDF2E9; /* Fond orangé très pâle */
}

.diff-card {
    background: var(--bg-white);
    max-width: 700px;
    margin: 0 auto;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--card-shadow);
}

.diff-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    font-size: 1.1rem;
}
.diff-item:last-child { margin-bottom: 0; }

.icon-check { color: #27AE60; margin-right: 15px; font-weight: 800; font-size: 1.2rem; }
.icon-cross { color: #C0392B; margin-right: 15px; font-weight: 800; font-size: 1.2rem; }

/* --- FOOTER --- */
footer {
    background: var(--bg-white);
    padding: 80px 0 40px;
    text-align: center;
    border-top: 1px solid #eee;
}

/* --- SECTION FORMULAIRE DE PRÉFÉRENCES --- */
.preferences-section {
    background: linear-gradient(135deg, #FDF2E9 0%, #FFFFFF 100%);
    padding: 80px 0;
}

.preferences-section h3 {
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 40px;
}

.preference-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 35px;
}

.form-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

/* Radio buttons et checkboxes */
.form-radio-group,
.form-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-radio-group label,
.form-checkbox-group label {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: #F8F9FA;
    border: 2px solid #E9ECEF;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-radio-group label:hover,
.form-checkbox-group label:hover {
    background: #E9F5FF;
    border-color: var(--primary-light);
}

.form-radio-group input:checked + label,
.form-checkbox-group input:checked + label,
.form-radio-group label:has(input:checked),
.form-checkbox-group label:has(input:checked) {
    background: #E9F5FF;
    border-color: var(--primary-dark);
    font-weight: 600;
}

.form-radio-group input[type="radio"],
.form-checkbox-group input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Champ email */
.email-section input[type="email"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #E9ECEF;
    border-radius: 12px;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.email-section input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-dark);
}

/* Boutons */
.form-actions {
    text-align: center;
    margin: 30px 0;
}

.btn-secondary {
    background-color: var(--primary-light);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-lg {
    width: 100%;
    padding: 18px 32px;
    font-size: 1.2rem;
}

/* Aperçu des événements */
.events-preview {
    margin: 30px 0;
    padding: 25px;
    background: #F0F8FF;
    border-radius: var(--radius);
    border-left: 5px solid var(--primary-light);
}

.preview-title {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.events-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.event-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

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

.event-card h5 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.event-card .event-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.event-card .event-location {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
}

.event-card .event-price {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    background: #E8F5E9;
    color: #2E7D32;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.preview-message {
    text-align: center;
    font-size: 1.1rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin-top: 15px;
}

/* Erreurs de formulaire */
.form-error {
    color: #D32F2F;
    font-size: 0.9rem;
    margin-top: 8px;
}

/* Animation de chargement */
.loading {
    text-align: center;
    padding: 20px;
}

.loading::after {
    content: "⏳ Recherche en cours...";
    font-size: 1.1rem;
    color: var(--primary-dark);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h3 { font-size: 2rem; }
    .step { flex-direction: column; text-align: center; padding: 30px; }
    .hero-sub { font-size: 1.1rem; }
    .blob { display: none; /* Cache les blobs sur mobile pour perf */ }

    /* Formulaire responsive */
    .preference-form {
        padding: 25px;
    }

    .events-list {
        grid-template-columns: 1fr;
    }

    .form-radio-group label,
    .form-checkbox-group label {
        font-size: 0.95rem;
        padding: 10px 15px;
    }
}
