/* ========================================
   BOUTONS
======================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-colored);
}

.btn-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(209, 38, 100, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--gradient-dark);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-colored);
}

/* ========================================
   HERO SECTION
======================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 70px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(54, 54, 53, 0.9), rgba(209, 38, 100, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-content h1 .init {
    color: var(--white);
}

.hero-content h1 .afric {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ========================================
   STATS SECTION
======================================= */
.stats {
    padding: 4rem 0;
    background: var(--gradient-dark);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}


/* ========================================
   SERVICES SECTION
======================================= */
.services {
    padding: 5rem 0;
    background: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.slider-container {
    position: relative;
}

.slider-arrow {
    display: none; /* Cacher sur Desktop, géré par responsive.css */
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.service-card p {
    margin-bottom: 1.5rem;
    color: #444;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    gap: 1rem;
}

/* ========================================
   REFERENCES SECTION
======================================= */
.references {
    padding: 5rem 0;
    background: var(--white);
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.reference-item {
    background: var(--light-bg);
    padding: 2rem;
    text-align: center;
    border-radius: 5px;
    font-weight: 600;
    color: var(--secondary-color);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.reference-item:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* ========================================
   COVERAGE SECTION
======================================= */
.coverage {
    padding: 5rem 0;
    background: linear-gradient(135deg, #F9F9F9, #FFFFFF);
}

.cities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.city-tag {
    background: var(--white);
    color: var(--secondary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    border: 1px solid var(--primary-color);
    transition: all 0.3s;
}

.city-tag:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* ========================================
   QUICK QUOTE SECTION
======================================= */
.quick-quote {
    padding: 5rem 0;
    background: var(--gradient-primary);
    color: var(--white);
}

.quote-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.quote-box h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.quote-form {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    width: 100%;
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-body);
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--accent-color);
}

.btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    background: var(--secondary-color);
}

.btn-block:hover {
    background: #1A1A1A;
}

.form-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.form-note strong {
    color: var(--secondary-color);
}

/* ========================================
   FOOTER
======================================= */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-section .logo {
    margin-bottom: 1rem;
}

.footer-section .logo-main .init {
    color: var(--white);
}

.footer-section .logo-main .afric {
    color: var(--primary-color);
}

.footer-section .logo-slogan {
    color: var(--accent-color);
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========================================
   WHY US / FEATURES
======================================= */
.why-us {
    padding: 4rem 0;
    background: var(--light-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid rgba(0,0,0,0.02);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

/* ========================================
   PAGE ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ PROPOS
======================================= */
.about-story {
    padding: 0 0 4rem;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.story-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.team-member {
    text-align: center;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.team-member h3 {
    margin-bottom: 0.3rem;
}

.member-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.member-desc {
    color: #444;
    font-size: 0.9rem;
}

/* ========================================
   MESSAGES DE NOTIFICATION (DEVIS & CONTACT)
======================================= */
.quote-messages {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    z-index: 100;
    animation: slideDownFade 0.5s ease, fadeOutAlert 0.5s ease 4.5s forwards;
}

.quote-messages .alert,
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    background: white;
}

.alert.success,
.quote-messages .alert.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert.error,
.quote-messages .alert.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert i {
    font-size: 24px;
}

.alert-content {
    flex: 1;
}

.alert-content strong {
    display: block;
    margin-bottom: 3px;
    font-size: 15px;
}

.alert-content p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}

.alert-close {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 0 5px;
    position: relative;
    z-index: 101;
}

.alert-close:hover {
    opacity: 1;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes fadeOutAlert {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -20px);
        display: none;
    }
}

@media (max-width: 768px) {
    .alert {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .alert-close {
        position: absolute;
        top: 10px;
        right: 10px;
    }
}




/* ========================================
   SECTIONS MARKETING (POURQUOI NOUS & PORTFOLIO)
======================================= */
.text-center {
    text-align: center !important;
}

.text-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.bg-light {
    background-color: var(--light-bg);
}

.feature-card {
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(209, 38, 100, 0.1);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.feature-icon i,
.service-icon i {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 6px rgba(209, 38, 100, 0.2));
}

.feature-card p {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Portfolio Teaser */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.portfolio-item:hover .lazy-image.loaded {
    transform: scale(1.05);
}

/* Lazy Loading Effects */
.lazy-image {
    filter: blur(15px);
    opacity: 0.4;
    transform: scale(1.1); /* Hides blurred edges */
    will-change: transform, filter, opacity;
    transition: filter 0.8s ease-out, transform 0.8s ease-out, opacity 0.8s ease-out;
}

.lazy-image.loaded {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
}

.portfolio-img-placeholder {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(209, 38, 100, 0.15);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.portfolio-info {
    padding: 1.5rem;
    text-align: center;
    background: white;
}

.portfolio-info h4 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Logos Clients (Animation JS) */
.references-slider {
    overflow: hidden;
    position: relative;
    display: flex;
    gap: 3rem;
    width: 100%;
    padding: 1rem 0;
    margin-top: 3rem;
    user-select: none;
    -webkit-mask-image: linear-gradient(to right, transparent, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, transparent);
    mask-image: linear-gradient(to right, transparent, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, transparent);
}

.references-logo-track {
    display: flex;
    gap: 3rem;
    min-width: max-content;
    flex-shrink: 0;
    will-change: transform;
    /* Transformation gérée dynamiquement par JS (translate3d) pour un vrai scroll infini sans duplication DOM */
}

.client-logo-modern {
    padding: 1.5rem 2rem;
    background: transparent;
    border-radius: 12px;
    width: 200px;
    flex-shrink: 0;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(100%) opacity(0.4);
    cursor: pointer;
}

.client-logo-modern span {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--secondary-color);
    letter-spacing: 2px;
    transition: all 0.5s ease;
}

.client-logo-modern:hover {
    filter: grayscale(0%) opacity(1);
    transform: translateY(-5px) scale(1.05);
    background: white;
    box-shadow: 0 15px 35px rgba(209, 38, 100, 0.1);
    border-color: rgba(209, 38, 100, 0.15);
}



/* ========================================
   FIXES BOUTONS (DÃƒÆ’Ã‚Â©marrer un projet, WhatsApp)
======================================= */
.btn-secondary {
    color: var(--white) !important;
}
.btn-secondary:hover {
    color: var(--white) !important;
}

.btn-dark {
    background: #1f1f1f;
    color: var(--white) !important;
}
.btn-dark:hover {
    background: #0a0a0a;
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   SHARED COMPONENTS (Stats & Categories)
======================================= */
.stats-floating {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem 4rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.stat-text-group {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: var(--gray-light);
}

.modern-quote {
    background: var(--light-bg);
    padding: 6rem 0;
}

.quote-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.quote-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--secondary-color);
}

.quote-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.quote-contact-info {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-light);
}

.qc-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.qc-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.qc-item strong {
    display: block;
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.qc-item a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.qc-item a:hover {
    color: var(--primary-color);
}

.quote-box-modern.glass-panel-dark {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.03);
    width: 100%;
}

@media (max-width: 992px) {
    .stats-floating {
        flex-direction: column;
        gap: 2rem;
    }
    .stat-divider {
        width: 100%;
        height: 1px;
    }
    .quote-split {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

.services-categories {
    padding: 20px 0 40px;
    background: white;
}
.categories-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}
.category-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-normal);
}
.category-filter:hover, .category-filter.active {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-colored);
    border-color: transparent;
}
