/* Home Page - Design Moderne et Attractif */
/* =========================================== */

/* Page principale */
.home-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===========================================
   HERO PRINCIPAL
   =========================================== */
.main-hero {
    position: relative;
    min-height: 100vh;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5aa0 50%, #1a3a8f 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.03)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
    color: #ffd700;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: #ffd700;
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    font-weight: 500;
}

.hero-actions {
    margin-top: 2rem;
}

.hero-actions .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-cards-stack {
    position: relative;
    width: 300px;
    height: 400px;
}

.hero-card {
    position: absolute;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-card.card-1 {
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.hero-card.card-2 {
    top: 40px;
    left: 40px;
    right: -40px;
    z-index: 2;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    transform: rotate(5deg);
}

.hero-card.card-3 {
    top: 80px;
    left: -40px;
    right: 40px;
    z-index: 1;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    transform: rotate(-5deg);
}

.hero-card i {
    font-size: 2.5rem;
    color: #1a3a8f;
    margin-bottom: 1rem;
}

.hero-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a3a8f;
    margin-bottom: 0.5rem;
}

.hero-card p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    animation: bounce 2s infinite;
}

.scroll-link:hover {
    opacity: 1;
}

.scroll-link i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===========================================
   SERVICES SECTION
   =========================================== */
.services-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a3a8f;
    margin-bottom: 1rem;
}

.section-title i {
    color: #1a3a8f;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.primary-service {
    border-left: 5px solid #1a3a8f;
}

.secondary-service {
    border-left: 5px solid #28a745;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1a3a8f, #2c5aa0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.secondary-service .service-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.service-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a3a8f;
    margin: 0;
}

.secondary-service .service-title {
    color: #28a745;
}

.service-subtitle {
    color: #6c757d;
    margin: 0.5rem 0 0 0;
    font-size: 1rem;
}

.service-description {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #495057;
}

.service-features i {
    color: #28a745;
    flex-shrink: 0;
}

.service-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    min-width: 80px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a3a8f;
    display: block;
}

.stat-unit {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.service-actions {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.service-actions .btn {
    flex: 1;
    min-width: 140px;
}

/* ===========================================
   PROCESSUS SECTION
   =========================================== */
.process-section {
    background: #f8f9fa;
}

.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 50%;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #1a3a8f, #2c5aa0);
    transform: translateY(-50%);
    z-index: 1;
}

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.process-step:nth-child(even) .step-content {
    text-align: right;
}

.process-step:nth-child(even) .timeline-line {
    display: none;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1a3a8f, #2c5aa0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(26, 58, 143, 0.3);
    z-index: 2;
}

.step-content {
    flex: 1;
    margin: 0 2rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a3a8f, #2c5aa0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a3a8f;
    margin-bottom: 1rem;
}

.step-description {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.step-duration {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #1a3a8f;
    font-weight: 500;
}

.process-cta {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: 3rem;
}

.process-cta h3 {
    font-size: 1.8rem;
    color: #1a3a8f;
    margin-bottom: 1rem;
}

.process-cta p {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* ===========================================
   DOMAINES SECTION
   =========================================== */
.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.domain-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.domain-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.domain-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1a3a8f, #2c5aa0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.domain-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a3a8f;
    margin-bottom: 0.5rem;
}

.domain-count {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===========================================
   ABOUT PREVIEW SECTION
   =========================================== */
.about-preview-section {
    background: #f8f9fa;
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1a3a8f, #2c5aa0);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.about-badge i {
    color: #ffd700;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a3a8f;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-title .highlight {
    color: #28a745;
}

.about-description {
    font-size: 1.1rem;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.about-highlights {
    margin-bottom: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #495057;
}

.highlight-item i {
    color: #1a3a8f;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.about-visual {
    position: relative;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a3a8f, #2c5aa0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-card .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a3a8f;
    display: block;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* ===========================================
   CONTACT CTA SECTION
   =========================================== */
.contact-cta-section {
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5aa0 100%);
    color: white;
}

.contact-cta-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a3a8f;
    margin-bottom: 1rem;
}

.cta-title i {
    color: #1a3a8f;
}

.cta-description {
    font-size: 1.1rem;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    color: #1a3a8f;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-actions .btn {
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-align: center;
}

.cta-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ===========================================
   ANIMATIONS
   =========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-item {
        min-width: 100px;
    }

    .hero-cards-stack {
        width: 250px;
        height: 330px;
    }

    .hero-card {
        padding: 1.5rem;
    }

    .hero-card.card-2 {
        left: 20px;
        right: -20px;
        top: 30px;
    }

    .hero-card.card-3 {
        left: -20px;
        right: 20px;
        top: 60px;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-card {
        padding: 2rem;
    }

    .service-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .service-actions {
        flex-direction: column;
    }

    .service-actions .btn {
        min-width: auto;
    }

    .process-step {
        flex-direction: column !important;
        text-align: center;
    }

    .process-step .step-content {
        margin: 1rem 0;
        text-align: center !important;
    }

    .timeline-line {
        display: none;
    }

    .domains-grid {
        grid-template-columns: 1fr;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .about-title {
        font-size: 2rem;
    }

    .contact-cta-card {
        padding: 2rem;
    }

    .cta-title {
        font-size: 1.6rem;
    }

    .cta-actions {
        align-items: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .service-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat {
        min-width: auto;
    }
}