
/* ===== VARIABLES AVEC PALETTE LEGALIZ ===== */
:root {
    /* Couleurs principales Legaliz */
    --blanc: #FFFFFF;
    --gris-fonce: #2C2C2C;
    --gris-clair: #F5F6F8;
    --bleu-fonce: #1B2A4E;
    --bleu-vif: #007BFF;
    --orange-vif: #FF6600;
    --orange-clair: #FF8833;
    --orange-fonce: #E55500;
    --corail: #E74C3C;
    --vert: #27AE60;
    
    /* Mapping des couleurs */
    --primary: #FF6600; /* Orange vif comme couleur principale */
    --primary-dark: #E55500; /* Version plus foncée de l'orange */
    --primary-light: #FF8833; /* Version plus claire de l'orange */
    --secondary: #1B2A4E; /* Bleu foncé pour les accents */
    --success: #27AE60; /* Vert pour validation */
    --success-light: #34D399;
    --danger: #E74C3C; /* Corail pour les erreurs */
    --warning: #FFB347; /* Orange clair pour les avertissements */
    --dark: #2C2C2C; /* Gris foncé pour le texte */
    --gray-dark: #4A4A4A;
    --gray: #6B6B6B;
    --gray-light: #94A3B8;
    --gray-lighter: #F5F6F8; /* Gris clair pour les fonds */
    --white: #FFFFFF;
    
    /* Gradients adaptés */
    --gradient-primary: linear-gradient(135deg, #FF6600 0%, #FF8833 100%);
    --gradient-bg: linear-gradient(135deg, #F5F6F8 0%, #FFFFFF 100%);
    --gradient-cta: linear-gradient(135deg, #FF6600 0%, #E55500 100%);
    --gradient-secondary: linear-gradient(135deg, #1B2A4E 0%, #007BFF 100%);
    
    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(255, 102, 0, 0.08);
    --shadow: 0 4px 20px rgba(255, 102, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(255, 102, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(255, 102, 0, 0.18);
    --radius: 12px;
    --radius-lg: 24px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--dark);
    line-height: 1.6;
}

/* ===== HERO SECTION ===== */
.hero-fermeture {
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: var(--gradient-bg);
}

.hero-fermeture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 500px;
    background: linear-gradient(180deg, rgba(255, 102, 0, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

/* Particules flottantes */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite linear;
}

@keyframes float {
    from {
        transform: translateY(100vh) translateX(0);
    }
    to {
        transform: translateY(-100vh) translateX(100px);
    }
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 15s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 20s; }
.particle:nth-child(4) { left: 40%; animation-delay: 6s; animation-duration: 22s; }
.particle:nth-child(5) { left: 50%; animation-delay: 8s; animation-duration: 17s; }
.particle:nth-child(6) { left: 60%; animation-delay: 10s; animation-duration: 19s; }
.particle:nth-child(7) { left: 70%; animation-delay: 12s; animation-duration: 21s; }
.particle:nth-child(8) { left: 80%; animation-delay: 14s; animation-duration: 16s; }
.particle:nth-child(9) { left: 90%; animation-delay: 16s; animation-duration: 23s; }
.particle:nth-child(10) { left: 95%; animation-delay: 18s; animation-duration: 18s; }

.container-fermeture {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary);
}

.hero-badge svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.hero-title {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    color: var(--primary);
    font-weight: 800;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: var(--gray);
    max-width: 650px;
    margin: 0 auto 32px;
}

/* Features Tags */
.hero-features {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid var(--gray-lighter);
    transition: all 0.3s;
}

.feature-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.feature-tag svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* Trust indicators */
.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray);
}

.trust-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.trust-item strong {
    color: var(--dark);
    font-weight: 700;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
}

/* ===== STATS SECTION ===== */
.stats-section {
    padding: 60px 0;
    background: white;
    border-top: 1px solid var(--gray-lighter);
    border-bottom: 1px solid var(--gray-lighter);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 40px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 100px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.services-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 2px solid var(--gray-lighter);
    position: relative;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: stretch;
    gap: 32px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    min-height: 220px;
}

.service-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: top;
}

.service-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-card.available {
    border-color: rgba(255, 102, 0, 0.3);
    background: linear-gradient(90deg, rgba(255,102,0,0.03) 0%, transparent 100%);
}

.service-left {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    flex: 1;
}

.service-icon {
    width: 72px;
    height: 72px;
    background: var(--gradient-primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.2);
}

.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-header {
    margin-bottom: 12px;
}

.service-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-type {
    font-size: 13px;
    color: var(--gray);
    font-style: italic;
}

.service-description {
    font-size: 14px;
    color: var(--gray-dark);
    line-height: 1.5;
    margin-bottom: 16px;
}

.service-docs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.docs-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.doc-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-dark);
}

.doc-check {
    color: var(--success);
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.doc-item.optional {
    color: var(--primary);
    font-weight: 500;
    grid-column: 1 / -1;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed var(--gray-lighter);
}

.doc-item.optional .doc-check {
    color: var(--primary);
}

.service-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding-left: 28px;
    border-left: 1px solid var(--gray-lighter);
    min-width: 180px;
}

.service-price {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-amount {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.price-label {
    font-size: 11px;
    color: var(--gray);
    font-weight: 500;
}

.price-option {
    font-size: 11px;
    color: var(--primary);
    margin-top: 4px;
    font-weight: 600;
}

.btn {
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.25);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.35);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.btn:hover svg {
    transform: translateX(4px);
}

/* Badge gratuit */
.free-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===== PROCESS SECTION ===== */
.process-section {
    padding: 100px 0;
    background: var(--gradient-bg);
    position: relative;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

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

.step-icon-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon-bg {
    position: absolute;
    inset: 0;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.process-step:hover .step-icon-bg {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.step-icon {
    width: 50px;
    height: 50px;
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
}

.step-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.step-desc {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    max-width: 250px;
    margin: 0 auto;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 100px 0;
    background: white;
}

.faq-container {
    max-width: 800px;
    margin: 60px auto 0;
}

.faq-item {
    background: white;
    border: 1px solid var(--gray-lighter);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: var(--shadow);
    border-color: rgba(255, 102, 0, 0.3);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.3s;
}

.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.faq-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
    stroke-width: 2;
    fill: none;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px;
    max-height: 500px;
}

.faq-answer p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-dark);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 40px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-white {
    background: white;
    color: var(--primary);
    padding: 16px 40px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cta-trust {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 32px;
    font-size: 16px;
}

.cta-trust strong {
    color: white;
    font-size: 18px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-tag {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Cartes horizontales responsive */
    .service-card {
        flex-direction: column;
        text-align: center;
    }
    
    .service-left {
        flex-direction: column;
        text-align: center;
    }
    
    .service-features {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .service-right {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--gray-lighter);
        padding-left: 0;
        padding-top: 24px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .btn {
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-white {
        width: 100%;
        justify-content: center;
    }
    
    .service-right {
        flex-direction: column;
        gap: 16px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .service-name {
        font-size: 22px;
    }
}

.faq-item{position:relative}
