/* Reset et configuration de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary-color: #0f172a;
    --accent-color: #0ea5e9;
    --text-dark: #0f172a;
    --text-gray: #475569;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --error-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
header {
    background-color: var(--bg-white);
    padding: 1.5rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

header img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Container principal */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section Hero */
.hero {
    text-align: center;
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    margin: 0 -1.5rem;
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 0L100 100M100 0L0 100" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
    background-size: 100px 100px;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    background-color: var(--bg-white);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background-color: var(--bg-light);
}

/* Sections générales */
section {
    padding: 5rem 0;
}

section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--secondary-color);
    letter-spacing: -0.01em;
}

/* Section Problème */
.problem {
    background-color: var(--bg-light);
    margin: 0 -1.5rem;
    padding: 5rem 1.5rem;
}

.problem-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.point {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.point:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.point h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.point p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 1rem;
}

/* Section Solution */
.solution {
    max-width: 900px;
    margin: 0 auto;
}

.solution p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-gray);
    text-align: center;
}

/* Section Comment ça marche */
.how-it-works {
    background-color: var(--bg-light);
    margin: 0 -1.5rem;
    padding: 5rem 1.5rem;
}

.illustration-container {
    text-align: center;
    margin-bottom: 4rem;
}

.illustration {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    max-width: 800px; /* Limiter la largeur maximale pour ne pas qu'elle soit trop grande sur les grands écrans */
    margin: 0 auto;  /* Centrer l'image si elle est plus petite que son conteneur */
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--bg-white);
    font-size: 1.75rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.step h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.step p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 1rem;
}

/* Section Avantages */
.benefits ul {
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.benefits li {
    padding: 1.5rem;
    padding-left: 3rem;
    background-color: var(--bg-white);
    border-left: 4px solid var(--primary-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all 0.3s ease;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-gray);
}

.benefits li:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.benefits li::before {
    content: '✓';
    position: absolute;
    left: 1rem;
    top: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.benefits strong {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Section CTA finale */
.final-cta {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    margin: 0 -1.5rem;
    padding: 5rem 1.5rem;
    color: var(--bg-white);
}

.final-cta h2 {
    color: var(--bg-white);
    font-size: 2.25rem;
}

.final-cta > p {
    text-align: center;
    font-size: 1.125rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Messages */
.messages {
    list-style: none;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.messages li {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.messages .success {
    background-color: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.messages .error {
    background-color: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Formulaire */
form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-xl);
}

form p {
    margin-bottom: 1.5rem;
}

form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-size: 0.9375rem;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="number"],
form textarea,
form select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: var(--bg-white);
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

form textarea {
    resize: vertical;
    min-height: 120px;
}

form button[type="submit"] {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--bg-white);
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    margin-top: 1rem;
}

form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

form button[type="submit"]:active {
    transform: translateY(0);
}

form .errorlist {
    list-style: none;
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

form .helptext {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 1.5rem 2rem;
    text-align: center;
    margin-top: 5rem;
}

footer p {
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

footer p:last-child {
    margin-bottom: 0;
}

footer a {
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

footer a:hover {
    color: var(--primary-light);
    border-bottom-color: var(--primary-light);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1.0625rem;
    }

    section h2 {
        font-size: 1.75rem;
    }

    .problem-points,
    .steps {
        grid-template-columns: 1fr;
    }

    form {
        padding: 2rem 1.5rem;
    }

    section {
        padding: 3rem 0;
    }

    .hero {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    section h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    form {
        padding: 1.5rem 1rem;
    }
}