/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Variables CSS */
:root {
    --primary-blue: #0093dd;
    --secondary-blue: #06b6d4;
    --text-dark: #1a202c;
    --text-medium: #4a5568;
    --text-light: #6b7280;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --border-radius-large: 24px;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    font-feature-settings: 'kern' 1, 'liga' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    position: relative;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.08"><circle cx="30" cy="30" r="4"/></g></svg>') repeat;
    animation: subtle-float 25s ease-in-out infinite;
}

@keyframes subtle-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
}

/* === COLONNE GAUCHE : TEXTE === */
.hero-text {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.audit-badge {
    display: inline-block;
    background: var(--glass-bg);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    letter-spacing: 0.02em;
    width: fit-content;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.hero-text p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-secondary {
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--glass-border);
    cursor: pointer;
    letter-spacing: 0.01em;
    color: var(--white);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--white);
}

/* Badges de preuves dans hero-text */
.proof-badges-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.proof-badge-compact {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-align: center;
}

.proof-badge-compact:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.badge-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.badge-info strong {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.1rem;
}

.badge-info span {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Bulle cible */
.target-audience-bubble {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin-top: 1rem;
}

.target-audience-bubble .badge-info span {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

/* === COLONNE DROITE : FORMULAIRE === */
.hero-form-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 0;
}

.hero-form-container {
    background: var(--white);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(0, 147, 221, 0.1);
    height: fit-content;
}

.form-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.form-header h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.form-header p {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

/* === FORMULAIRE === */
.hero-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.hero-form input,
.hero-form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    background: var(--white);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    height: 48px;
}

.hero-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    background: var(--white);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    min-height: 80px;
    max-height: 120px;
    line-height: 1.4;
}

.hero-form input:focus,
.hero-form select:focus,
.hero-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 147, 221, 0.1);
}

.hero-form input::placeholder,
.hero-form textarea::placeholder {
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.95rem;
}

/* Section besoins */
.needs-section {
    margin: 0.5rem 0;
}

.section-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.needs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
}

.need-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 40px;
}

.need-item:hover {
    border-color: var(--primary-blue);
    background: #f0f9ff;
}

.need-item input[type="checkbox"] {
    display: none;
}

.need-item:has(input:checked) {
    border-color: var(--primary-blue);
    background: #f0f9ff;
    color: var(--primary-blue);
}

.need-item span {
    font-size: 0.85rem;
    line-height: 1.2;
}

/* Section fichiers */
.file-section {
    margin: 0.5rem 0;
}

.file-input {
    display: none;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-medium);
    transition: all 0.3s ease;
    min-height: 48px;
}

.file-label:hover {
    border-color: var(--primary-blue);
    background: #f0f9ff;
}

/* Section consentement */
.consent-section {
    margin: 0.8rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.consent-row input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.consent-row label {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-medium);
    cursor: pointer;
    line-height: 1.4;
    margin: 0;
}

/* Bouton soumission */
.form-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.8rem 0 0.4rem 0;
    box-shadow: 0 4px 15px rgba(0, 147, 221, 0.3);
    letter-spacing: 0.01em;
    font-family: 'Inter', sans-serif;
    min-height: 52px;
}

.form-submit-btn:hover {
    background: linear-gradient(135deg, #006bb3, #0591b8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 147, 221, 0.4);
}

.form-guarantee {
    text-align: center;
    font-size: 0.8rem;
    color: #059669;
    font-weight: 600;
    margin-top: 0.4rem;
    line-height: 1.2;
}

/* Message de succès */
.success-message {
    background: #d1fae5;
    border: 2px solid #a7f3d0;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
}

.success-message h4 {
    color: #065f46;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.success-message p {
    color: #047857;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.success-message ul {
    padding-left: 1rem;
}

.success-message li {
    margin-bottom: 0.5rem;
}

.success-contact {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    color: #047857;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-text {
        max-width: none;
    }

    .hero-form-side {
        min-height: auto;
        padding: 1rem 0;
    }

    .hero-form-container {
        max-width: 600px;
        margin: 0 auto;
    }

    .proof-badges-compact {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 0 1rem;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .hero-form-container {
        padding: 1.5rem;
        max-width: 100%;
    }

    .proof-badges-compact {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .needs-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
    }

    .hero-form input,
    .hero-form select,
    .hero-form textarea {
        padding: 12px 14px;
        font-size: 0.9rem;
        height: 44px;
    }

    .hero-form textarea {
        min-height: 70px;
        max-height: 100px;
    }

    .consent-row label {
        font-size: 0.8rem;
    }

    .form-submit-btn {
        padding: 12px 18px;
        font-size: 0.95rem;
        min-height: 48px;
    }

    .need-item {
        padding: 8px 10px;
        font-size: 0.8rem;
        min-height: 36px;
    }

    .need-item span {
        font-size: 0.8rem;
    }
}

/* States et interactions */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.success {
    border-color: #10b981 !important;
    background-color: #f0fdf4 !important;
}
