/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f4f7fc;
    color: #1a1a2e;
    line-height: 1.6;
}

/* ===== NAVBAR ===== */
.navbar {
    background: #ffffff;
    padding: 16px 40px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 1.5px;
}

.logo-badge {
    background: #4a6cf7;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #4a6cf7;
}

/* ===== LANG SELECTOR ===== */
.lang-selector {
    display: flex;
    gap: 4px;
    background: #f0f2f5;
    padding: 3px;
    border-radius: 8px;
}

.lang-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #8892b0;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.3px;
}

.lang-btn:hover {
    color: #4a6cf7;
}

.lang-btn.active {
    background: #ffffff;
    color: #1a1a2e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ===== HERO ===== */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-badge {
    display: inline-block;
    background: #e8edff;
    color: #4a6cf7;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    color: #1a1a2e;
}

.hero-text {
    font-size: 18px;
    color: #4a5568;
    line-height: 1.8;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin: 10px 0;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
}

.stat-label {
    font-size: 13px;
    color: #8892b0;
    font-weight: 500;
}

.hero-cta {
    background: linear-gradient(135deg, #4a6cf7 0%, #6a3de8 100%);
    color: #ffffff;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    width: fit-content;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 30px rgba(74, 108, 247, 0.3);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(74, 108, 247, 0.4);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gift-icon-svg {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ===== FORM SECTION ===== */
.form-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px 60px;
}

.form-container {
    transition: all 0.5s ease;
}

.form-card {
    background: #ffffff;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
    border: 1px solid #e6e9f0;
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-header h2 {
    font-size: 28px;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.form-header p {
    color: #8892b0;
    font-size: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    padding-right: 44px;
    border: 2px solid #e6e9f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a2e;
    transition: border-color 0.3s;
    background: #fafbfc;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4a6cf7;
    background: #ffffff;
}

.form-group .input-icon {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    opacity: 0.5;
    pointer-events: none;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26, 26, 46, 0.25);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== MESSAGE ===== */
.message {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    display: none;
    font-weight: 500;
}

.message.success {
    display: block;
    background: #e6f7ed;
    color: #0a6b3b;
    border: 1px solid #b8e6cf;
}

.message.error {
    display: block;
    background: #fde8e8;
    color: #a82424;
    border: 1px solid #f5c6c6;
}

/* ===== PARTNERS ===== */
.partners-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 40px 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 28px;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.section-header p {
    color: #8892b0;
    font-size: 15px;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.partner-item {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e6e9f0;
    transition: all 0.3s;
    cursor: pointer;
    background: #ffffff;
}

.partner-item:hover {
    transform: scale(1.08);
    border-color: #4a6cf7;
    box-shadow: 0 8px 30px rgba(74, 108, 247, 0.15);
}

.partner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== FOOTER ===== */
.footer {
    background: #1a1a2e;
    color: #a8b2d1;
    padding: 40px 40px 24px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-brand .footer-logo {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.footer-brand p {
    font-size: 14px;
    margin-top: 4px;
    color: #8892b0;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #8892b0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-copy {
    border-top: 1px solid #2d2d44;
    padding-top: 20px;
    font-size: 13px;
    color: #4a5568;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 20px;
    }

    .hero-text {
        margin: 0 auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-cta {
        margin: 0 auto;
    }

    .hero-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 20px;
    }

    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 24px;
    }

    .partners-section {
        padding: 20px;
    }

    .partner-item {
        width: 60px;
        height: 60px;
    }

    .nav-right {
        gap: 12px;
    }

    .lang-selector {
        gap: 2px;
        padding: 2px;
    }

    .lang-btn {
        padding: 4px 7px;
        font-size: 10px;
    }

    .footer {
        padding: 30px 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 26px;
    }

    .hero-cta {
        width: 100%;
        text-align: center;
    }

    .form-card {
        padding: 16px;
    }

    .stat-number {
        font-size: 22px;
    }
}
/* ===== AJOUT (version PHP) =====
   Le formulaire est masqué via l'attribut HTML `hidden` plutôt que par
   du style en ligne : il reste ainsi masqué pour les lecteurs d'écran
   et avant même le chargement du JavaScript (plus de clignotement). */
[hidden] {
    display: none !important;
}

/* ===== PAGES LÉGALES ===== */
.legal {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 40px 70px;
}

.legal h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.legal .legal-maj {
    color: #8892b0;
    font-size: 14px;
    margin-bottom: 36px;
}

.legal h2 {
    font-size: 19px;
    margin: 34px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e6e9f0;
}

.legal p,
.legal li {
    color: #4a5568;
    margin-bottom: 12px;
}

.legal ul {
    padding-left: 22px;
}

.legal a {
    color: #4a6cf7;
}

.legal .a-completer {
    background: #fff8e6;
    border: 1px solid #ffd699;
    border-radius: 8px;
    padding: 14px 18px;
    color: #856404;
    font-size: 14px;
    margin: 12px 0 20px;
}

.legal .a-completer strong {
    display: block;
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .legal { padding: 32px 20px 50px; }
    .legal h1 { font-size: 24px; }
}
