﻿/* ============================================
   DZ2FR - site.css v4 corrigé
   Design premium, professionnel et responsive
   ============================================ */

/* ==================== VARIABLES CSS ==================== */
:root {
    --color-green-dz: #1F8A5B;
    --color-blue-fr: #1E3A8A;
    --color-red-action: #D62828;
    --color-text: #1F2937;
    --color-text-light: #6B7280;
    --color-bg-light: #F8FAFC;
    --color-white: #FFFFFF;
    --color-gray: #E5E7EB;
    --color-gray-dark: #374151;
    --font-family: "Inter", "Poppins", "Segoe UI", Arial, sans-serif;
    --max-width: 1120px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
}

img,
svg {
    max-width: 100%;
}

a {
    transition: var(--transition);
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* ==================== HEADER ==================== */
.header-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-white);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

    .header-sticky.scrolled {
        box-shadow: var(--shadow-medium);
    }

    .header-sticky .navbar {
        padding: 0.9rem 0;
    }

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--color-text);
}

    .logo:hover {
        opacity: 0.85;
    }

.logo-dz {
    color: var(--color-green-dz);
}

.logo-2 {
    color: var(--color-red-action);
}

.logo-fr {
    color: var(--color-blue-fr);
}

.logo-slogan {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-light);
    margin-left: 8px;
    display: none;
}

@media (min-width: 768px) {
    .logo-slogan {
        display: inline-block;
    }
}

.navbar-nav {
    gap: 8px;
}

.nav-link {
    color: var(--color-text) !important;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 8px 12px !important;
}

    .nav-link:hover,
    .nav-link.active {
        color: var(--color-green-dz) !important;
    }

    .nav-link::after {
        content: "";
        position: absolute;
        bottom: 4px;
        left: 12px;
        width: 0;
        height: 2px;
        background-color: var(--color-green-dz);
        transition: var(--transition);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: calc(100% - 24px);
    }

.nav-demande {
    color: var(--color-green-dz) !important;
    font-weight: 600;
}

.btn-demande-header {
    background-color: var(--color-green-dz);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: none;
    white-space: nowrap;
}

    .btn-demande-header:hover {
        background-color: #157548;
        transform: translateY(-2px);
        box-shadow: var(--shadow-medium);
        color: var(--color-white);
    }

@media (min-width: 992px) {
    .btn-demande-header {
        display: inline-block;
    }
}

/* ==================== BUTTONS ==================== */
.btn {
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    text-transform: none;
    padding: 12px 28px;
    font-size: 15px;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-green-dz);
    border-color: var(--color-green-dz);
    color: var(--color-white);
}

    .btn-primary:hover {
        background-color: #157548;
        border-color: #157548;
        transform: translateY(-2px);
        box-shadow: var(--shadow-medium);
    }

.btn-outline-primary {
    color: var(--color-green-dz);
    border-color: var(--color-green-dz);
}

    .btn-outline-primary:hover {
        background-color: var(--color-green-dz);
        color: white;
    }

.btn-outline-light {
    color: var(--color-white);
    border-color: var(--color-white);
}

    .btn-outline-light:hover {
        background-color: var(--color-white);
        color: var(--color-green-dz);
        border-color: var(--color-white);
    }

.btn-light {
    background-color: var(--color-white);
    color: var(--color-green-dz);
    border: 2px solid var(--color-white);
}

    .btn-light:hover {
        background-color: var(--color-bg-light);
    }

.btn-lg {
    padding: 14px 40px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* ==================== FORM CONTROLS ==================== */
.form-control,
.form-select {
    width: 100%;
    min-height: 50px;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    transition: var(--transition);
    background-color: var(--color-white);
}

    .form-control::placeholder {
        color: #9CA3AF;
    }

    .form-control:focus,
    .form-select:focus {
        border-color: var(--color-green-dz);
        box-shadow: 0 0 0 4px rgba(31, 138, 91, 0.12);
        outline: none;
    }

.form-label {
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
    border-color: #D1D5DB;
}

    .form-check-input:checked {
        background-color: var(--color-green-dz);
        border-color: var(--color-green-dz);
    }

.form-check-label {
    cursor: pointer;
    font-size: 15px;
    margin: 0;
}

.text-danger {
    color: var(--color-red-action) !important;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

.form-help-text {
    background-color: #FEF3C7;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #F59E0B;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ==================== HERO PREMIUM ==================== */
.hero-premium {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    background-image: url('/images/hero-dz2fr.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    overflow: hidden;
}

    /* Overlay plus léger pour mieux voir l'image */
    .hero-premium .hero-overlay {
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient( 90deg, rgba(8, 35, 24, 0.22) 0%, rgba(8, 35, 24, 0.10) 35%, rgba(30, 58, 138, 0.03) 62%, rgba(30, 58, 138, 0.12) 100% );
    }

/* Carte descendue pour moins cacher les visages */
.hero-premium-container {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 650px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding-top: 90px;
    padding-bottom: 42px;
}

/* Carte plus petite et plus transparente */
.hero-text-card {
    max-width: 470px;
    padding: 22px 24px;
    border-radius: 20px;
    background: rgba(10, 26, 46, 0.30);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
    color: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    margin-bottom: 12px;
}

.hero-premium h1 {
    font-size: clamp(1.9rem, 3.1vw, 3rem);
    line-height: 1.08;
    font-weight: 2000;
    margin: 0 0 14px;
    color: #ffffff;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.34);
}

    .hero-premium h1 span {
        display: inline;
    }

.hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.96);
}

.hero-description {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.98);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 16px;
}

    .hero-features span {
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.13);
        border: 1px solid rgba(255, 255, 255, 0.18);
        font-size: 0.78rem;
        font-weight: 600;
        color: #ffffff;
    }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .hero-actions .btn,
    .hero-actions a.btn {
        min-width: 165px;
        min-height: 44px;
        padding: 10px 18px;
        border-radius: 12px;
        font-weight: 700;
        font-size: 0.92rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

        .hero-actions .btn svg,
        .hero-actions a.btn svg {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
        }

/* Tablette */
@media (max-width: 992px) {
    .hero-premium {
        min-height: 620px;
        background-position: center center;
    }

    .hero-premium-container {
        min-height: 620px;
        align-items: flex-end;
        padding-bottom: 34px;
    }

    .hero-text-card {
        max-width: 540px;
        padding: 22px 20px;
        background: rgba(10, 26, 46, 0.38);
    }

    .hero-premium h1 {
        font-size: 2.3rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .hero-premium {
        min-height: 620px;
        background-position: 46% center;
    }

    .hero-premium-container {
        min-height: 620px;
        padding: 95px 16px 24px;
    }

    .hero-text-card {
        max-width: 100%;
        padding: 20px 16px;
        border-radius: 18px;
        background: rgba(10, 26, 46, 0.50);
    }

    .hero-premium h1 {
        font-size: 1.9rem;
    }

    .hero-actions {
        flex-direction: column;
    }

        .hero-actions .btn,
        .hero-actions a.btn {
            width: 100%;
        }
}}

/* ==================== SECTIONS HOME ==================== */
.section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 800;
    color: #111827;
    margin-bottom: 18px;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 45px;
    text-align: center;
    color: #6B7280;
    font-size: 1.05rem;
    line-height: 1.7;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(31, 138, 91, 0.10);
    color: #1F8A5B;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 14px;
}

/* ==================== PRESENTATION ==================== */
.section-presentation {
    background-color: var(--color-white);
}

.presentation-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.presentation-header {
    margin-bottom: 20px;
}

.logo-large {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
    text-align: center;
}

.logo-dz-large {
    color: var(--color-green-dz);
}

.logo-2-large {
    color: var(--color-red-action);
}

.logo-fr-large {
    color: var(--color-blue-fr);
}

.trajectory-svg {
    width: 100%;
    height: 80px;
    margin: 20px 0;
}

.trajectory-location {
    font-size: 12px;
    font-weight: 600;
    fill: var(--color-text-light);
}

.presentation-badge-group {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.presentation-badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

    .presentation-badge.dz {
        background-color: rgba(31, 138, 91, 0.1);
        color: var(--color-green-dz);
    }

    .presentation-badge.fr {
        background-color: rgba(30, 58, 138, 0.1);
        color: var(--color-blue-fr);
    }

.presentation-text p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--color-text);
}

.presentation-poles {
    display: flex;
    gap: 24px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pole {
    flex: 1;
    min-width: 180px;
    padding: 20px;
    background-color: var(--color-bg-light);
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--color-gray);
}

    .pole:hover {
        border-color: var(--color-green-dz);
        box-shadow: var(--shadow-light);
    }

.pole-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    border-radius: 50%;
    color: var(--color-green-dz);
}

    .pole-icon svg {
        width: 20px;
        height: 20px;
    }

.pole strong {
    color: var(--color-text);
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.pole-location {
    color: var(--color-text-light);
    font-size: 14px;
}

/* ==================== ETAPES ==================== */
.section-etapes {
    background-color: var(--color-bg-light);
}

.etapes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.etape-card {
    background-color: var(--color-white);
    padding: 32px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-top: 3px solid var(--color-green-dz);
}

    .etape-card:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-4px);
    }

.etape-number {
    background: linear-gradient(135deg, var(--color-green-dz), var(--color-blue-fr));
    color: var(--color-white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.etape-card h4 {
    font-size: 17px;
    margin-bottom: 12px;
    color: var(--color-text);
    font-weight: 600;
}

.etape-card p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ==================== AVANTAGES ==================== */
.advantage-card {
    background-color: var(--color-white);
    padding: 32px 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--color-gray);
    text-align: center;
}

    .advantage-card:hover {
        box-shadow: var(--shadow-medium);
        border-color: var(--color-green-dz);
        transform: translateY(-2px);
    }

.advantage-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(31, 138, 91, 0.1), rgba(30, 58, 138, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .advantage-icon-wrapper svg,
    .advantage-icon {
        width: 32px;
        height: 32px;
        color: var(--color-green-dz);
        stroke-width: 2;
    }

.advantage-card h4 {
    font-size: 17px;
    margin-bottom: 12px;
    color: var(--color-text);
    font-weight: 600;
}

.advantage-card p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ==================== IMPORTANT ==================== */
.section-important {
    background-color: var(--color-white);
    padding: 60px 0;
}

.important-card {
    background: linear-gradient(135deg, var(--color-bg-light), rgba(30, 58, 138, 0.05));
    border: 1px solid var(--color-gray);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.important-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--color-blue-fr);
    opacity: 0.8;
}

.important-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
}

.important-card p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ==================== CONTACT RAPIDE ==================== */
.section-contact {
    background: linear-gradient(180deg, #ffffff 0%, #F8FAFC 100%);
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.quick-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto 34px;
}

.quick-contact-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 18px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: all 0.25s ease;
}

    .quick-contact-card:hover {
        transform: translateY(-4px);
        border-color: #1F8A5B;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
    }

    .quick-contact-card.featured {
        border-color: rgba(31, 138, 91, 0.35);
        background: linear-gradient(180deg, #ffffff 0%, rgba(31, 138, 91, 0.04) 100%);
    }

.quick-contact-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(31, 138, 91, 0.10);
    color: #1F8A5B;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

    .quick-contact-icon svg {
        width: 28px;
        height: 28px;
    }

.quick-contact-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1F2937;
    margin-bottom: 10px;
}

.quick-contact-card p {
    color: #6B7280;
    font-size: 0.96rem;
    line-height: 1.65;
    margin-bottom: 22px;
}

.btn-contact-whatsapp,
.btn-contact-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
}

.btn-contact-whatsapp {
    background: #1F8A5B;
    color: #ffffff;
    border: 1px solid #1F8A5B;
}

    .btn-contact-whatsapp:hover {
        background: #157347;
        color: #ffffff;
        transform: translateY(-2px);
    }

.btn-contact-email {
    background: #ffffff;
    color: #1E3A8A;
    border: 1px solid #1E3A8A;
    font-size: 0.9rem;
    word-break: break-word;
}

    .btn-contact-email:hover {
        background: #1E3A8A;
        color: #ffffff;
        transform: translateY(-2px);
    }

.contact-note {
    margin: 34px auto 0;
    max-width: 760px;
    padding: 18px 22px;
    border-radius: 14px;
    background: rgba(30, 58, 138, 0.06);
    color: #1F2937;
    text-align: center;
    font-size: 0.98rem;
}

@media (max-width: 768px) {
    .quick-contact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ==================== CTA FINAL ==================== */
.section-cta-final {
    background: linear-gradient(135deg, var(--color-green-dz) 0%, var(--color-blue-fr) 100%);
    color: var(--color-white);
    text-align: center;
    padding: 80px 0;
}

    .section-cta-final h2 {
        font-size: 40px;
        margin-bottom: 12px;
    }

    .section-cta-final p {
        font-size: 18px;
        margin-bottom: 30px;
        opacity: 0.95;
    }

@media (max-width: 768px) {
    .section-cta-final h2 {
        font-size: 28px;
    }

    .section-cta-final p {
        font-size: 16px;
    }
}

/* ==================== PAGE DEMANDE ==================== */
.demande-page {
    background: #F3F6FA;
    min-height: 100vh;
}

.demande-hero {
    background: linear-gradient(135deg, #1F8A5B 0%, #1E3A8A 100%);
    color: white;
    padding: 70px 0 60px;
    text-align: center;
}

    .demande-hero h1 {
        font-size: clamp(2rem, 4vw, 3.2rem);
        font-weight: 800;
        margin-bottom: 12px;
    }

    .demande-hero p {
        font-size: 1.1rem;
        opacity: 0.94;
        max-width: 820px;
        margin: 0 auto;
    }

.demande-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.demande-trust-section {
    background-color: #ffffff;
    padding: 50px 0;
    border-bottom: 1px solid #e5e7eb;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.trust-card {
    text-align: center;
    padding: 24px;
    background-color: #ffffff;
    background: linear-gradient(180deg, #F8FAFC 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

    .trust-card:hover {
        transform: translateY(-4px);
        border-color: #1F8A5B;
        box-shadow: 0 12px 28px rgba(31, 138, 91, 0.1);
    }

.trust-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, rgba(31, 138, 91, 0.1), rgba(30, 58, 138, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1F8A5B;
}

    .trust-icon svg {
        width: 24px;
        height: 24px;
        stroke-width: 2;
    }

.trust-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1F2937;
}

.trust-card p {
    font-size: 0.93rem;
    color: #6B7280;
    line-height: 1.6;
}

.demande-intro {
    padding: 50px 0;
}

.intro-card {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

    .intro-card h2 {
        font-size: 1.6rem;
        font-weight: 700;
        margin-bottom: 16px;
        color: #1F2937;
    }

    .intro-card p {
        font-size: 1rem;
        line-height: 1.8;
        color: #4B5563;
        margin-bottom: 24px;
    }

.intro-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.intro-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #4B5563;
}

.detail-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    color: var(--color-green-dz);
}

/* ==================== FORM DEMANDE ==================== */
.demande-form-section {
    padding: 60px 0;
}

.form-container {
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
    padding: 0 18px;
}

@media (max-width: 1024px) {
    .form-container {
        grid-template-columns: 1fr;
    }
}

.form-demande {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.form-section {
    padding: 34px 36px;
    border-bottom: 1px solid #e5e7eb;
    background-color: #ffffff;
    border-left: 5px solid #1F8A5B;
}

    .form-section:last-of-type {
        border-bottom: none;
    }

    .form-section.privacy-section {
        background-color: rgba(31, 138, 91, 0.03);
    }

    .form-section.form-actions {
        background-color: #ffffff;
        background: linear-gradient(180deg, rgba(31, 138, 91, 0.05) 0%, #ffffff 100%);
        border-left: none;
        text-align: center;
        padding: 40px 36px;
    }

.form-section-header {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 16px;
    margin-bottom: 26px;
}

.section-number {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1F8A5B, #1E3A8A);
    color: #ffffff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.form-section h3 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 6px;
}

.form-section-description {
    font-size: 0.9rem;
    color: #6B7280;
    margin: 0;
    line-height: 1.55;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.form-group {
    margin-bottom: 20px;
}

.form-text {
    display: block;
    font-size: 0.85rem;
    color: #6B7280;
    margin-top: 6px;
}

/* Téléphone avec indicatif */
.phone-input-group,
.telephone-group {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px;
}

@media (max-width: 576px) {
    .phone-input-group,
    .telephone-group {
        grid-template-columns: 1fr;
    }
}

/* Parrainage */
.sponsorship-box {
    background-color: #efe6ff;
    border-left: 4px solid #a855f7;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6b21a8;
    overflow: hidden;
}

    .sponsorship-box svg {
        width: 22px !important;
        height: 22px !important;
        max-width: 22px !important;
        max-height: 22px !important;
        display: inline-block;
        flex-shrink: 0;
    }

    .sponsorship-box p:last-child {
        margin-bottom: 0;
    }

.info-box-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 10px;
}

.inline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-green-dz);
    flex-shrink: 0;
}

    .inline-icon svg {
        width: 20px;
        height: 20px;
        display: block;
    }

.sponsorship-rule {
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #6b21a8;
}

    .sponsorship-rule strong {
        color: #9333ea;
    }

.sponsorship-note {
    margin: 10px 0 0 0;
    font-size: 13px;
    color: #7c3aed;
    font-style: italic;
}

/* Analyse académique */
.academic-analysis-box {
    background-color: #f0fdf4;
    border-left: 4px solid #10b981;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    font-size: 14px;
    color: #065f46;
    line-height: 1.6;
}

/* Note confiance */
.trust-note {
    background: linear-gradient(180deg, rgba(31, 138, 91, 0.08) 0%, rgba(30, 58, 138, 0.05) 100%);
    border: 1px solid rgba(31, 138, 91, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.trust-note-title {
    font-size: 0.95rem;
    color: #1F2937;
    margin-bottom: 12px;
}

.trust-note-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .trust-note-list li {
        font-size: 0.9rem;
        color: #4B5563;
        padding: 6px 0 6px 24px;
        position: relative;
        line-height: 1.6;
    }

        .trust-note-list li::before {
            content: "✓";
            position: absolute;
            left: 0;
            color: #1F8A5B;
            font-weight: 700;
        }

/* Bouton submit */
.form-actions {
    border-left: none;
}

#submitBtn {
    background: linear-gradient(135deg, #1F8A5B, #1E3A8A);
    border: none;
    min-width: 280px;
    min-height: 52px;
    transition: all 0.3s ease;
}

    #submitBtn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(31, 138, 91, 0.25);
    }

    #submitBtn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

.form-submit-note {
    font-size: 0.9rem;
    color: #6B7280;
    margin-top: 16px;
    line-height: 1.6;
}

/* Sidebar aide */
.form-help-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.help-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: sticky;
    top: 100px;
}

    .help-card:hover {
        border-color: #1F8A5B;
        box-shadow: 0 8px 20px rgba(31, 138, 91, 0.1);
    }

.help-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 12px;
}

.help-card p {
    font-size: 0.9rem;
    color: #6B7280;
    margin-bottom: 0;
    line-height: 1.6;
}

.help-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 16px;
    background-color: #1F8A5B;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
}

    .help-link:hover {
        background-color: #157347;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(31, 138, 91, 0.25);
        color: #ffffff;
    }

    .help-link svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

.help-tips {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .help-tips li {
        font-size: 0.88rem;
        color: #6B7280;
        padding: 6px 0 6px 20px;
        position: relative;
        line-height: 1.5;
    }

        .help-tips li::before {
            content: "▸";
            position: absolute;
            left: 0;
            color: #1F8A5B;
            font-weight: 700;
        }

@media (max-width: 1024px) {
    .form-help-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .demande-hero {
        padding: 55px 0 45px;
    }

    .demande-intro {
        padding: 40px 0;
    }

    .intro-card {
        padding: 30px;
    }

        .intro-card h2 {
            font-size: 1.35rem;
        }

        .intro-card p {
            font-size: 0.95rem;
        }

    .intro-details {
        grid-template-columns: 1fr;
    }

    .demande-form-section {
        padding: 40px 0;
    }

    .form-container {
        margin: 0 auto;
        padding: 0 16px;
        gap: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-section,
    .form-actions {
        padding: 24px 20px;
    }

    .form-section-header {
        grid-template-columns: 36px 1fr;
        gap: 12px;
    }

    .section-number {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 1rem;
    }

    .form-section h3 {
        font-size: 1.15rem;
    }

    .trust-grid {
        gap: 16px;
    }

    .trust-card {
        padding: 20px;
    }
}

/* ==================== ALERTS ==================== */
.alert {
    border: none;
    border-left: 4px solid;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 28px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.alert-success {
    background-color: #ECFDF5;
    color: #065F46;
    border-color: #10B981;
}

    .alert-success strong {
        color: #047857;
    }

.alert-danger {
    background-color: #FEE2E2;
    color: #7F1D1D;
    border-color: #EF4444;
}

    .alert-danger strong {
        color: #991B1B;
    }

.btn-close {
    background-color: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

    .btn-close:hover {
        opacity: 1;
    }

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--color-text);
    color: var(--color-white);
    padding-top: 60px;
    padding-bottom: 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.footer-section h5 {
    color: var(--color-white);
    margin-bottom: 16px;
    font-weight: 700;
    font-size: 15px;
}

.footer-slogan {
    color: var(--color-green-dz);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    list-style: none;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        font-size: 14px;
    }

        .footer-links a:hover {
            color: var(--color-green-dz);
        }

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section strong {
    color: var(--color-white);
}

.btn-whatsapp-footer {
    background-color: var(--color-green-dz);
    color: var(--color-white);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

    .btn-whatsapp-footer:hover {
        background-color: #157548;
    }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

    .footer-bottom a {
        color: var(--color-green-dz);
        text-decoration: none;
    }

        .footer-bottom a:hover {
            text-decoration: underline;
        }

/* ==================== WHATSAPP FLOATING ==================== */
.whatsapp-floating-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}

.whatsapp-floating-btn {
    background-color: #25D366;
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    font-size: 28px;
    font-weight: 600;
    padding: 0;
    position: relative;
}

    .whatsapp-floating-btn:hover {
        background-color: #1FA857;
        transform: scale(1.1);
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    }

    .whatsapp-floating-btn svg {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }

.whatsapp-text {
    display: none;
}

@media (min-width: 992px) {
    .whatsapp-floating-btn {
        border-radius: 50px;
        width: auto;
        padding: 12px 20px;
        gap: 8px;
    }

    .whatsapp-text {
        display: inline;
        font-size: 14px;
    }
}

.whatsapp-options {
    position: absolute;
    bottom: 80px;
    right: 0;
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-width: 220px;
}

.whatsapp-option {
    margin: 0;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid var(--color-gray);
    font-size: 14px;
    font-weight: 500;
}

    .whatsapp-link:last-child {
        border-bottom: none;
    }

    .whatsapp-link:hover {
        background-color: var(--color-bg-light);
        color: var(--color-green-dz);
    }

    .whatsapp-link svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

@media (max-width: 768px) {
    .whatsapp-floating-container {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-floating-btn {
        width: 56px;
        height: 56px;
        font-size: 26px;
    }
}

/* ==================== UTILITIES ==================== */
.icon-small {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}

.optional-badge {
    background-color: rgba(31, 138, 91, 0.1);
    color: var(--color-green-dz);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    display: inline-block;
}

.honeypot {
    display: none !important;
    position: absolute;
    left: -9999px;
}

/* ==================== SOCIAL LINKS ==================== */
.facebook-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1877F2;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 6px 10px;
 border-radius: 6px;
 transition: var(--transition);
}

    .facebook-link:hover {
        background-color: rgba(24, 119, 242, 0.1);
        color: #0A66C2;
        transform: translateY(-1px);
    }

.facebook-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #1877F2;
    transition: var(--transition);
}

.facebook-link:hover .facebook-icon {
 color: #0A66C2;
    }

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
transition: var(--transition);
}

.social-icon {
  width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
/* ==================== FACEBOOK LINK ==================== */
.facebook-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1877F2;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .facebook-link:hover {
        color: #0A66C2;
        background-color: rgba(24, 119, 242, 0.08);
        padding: 4px 8px;
        border-radius: 8px;
        text-decoration: none;
    }

.facebook-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.facebook-link:hover .facebook-icon {
    transform: scale(1.08);
}

.footer .facebook-link {
    color: #1877F2;
}

    .footer .facebook-link:hover {
        color: #0A66C2;
    }