/* ========================================
   STYLES PERSONNALISÉS DIGISUP - THÈME CLAIR
   ======================================== */

:root {
    --primary-color: #4A90E2;
    --primary-light: #6BA8F5;
    --secondary-color: #8B7FC8;
    --accent-color: #00BCD4;
    --success-color: #4CAF50;
    --warning-color: #FFB74D;
    --info-color: #4FC3F7;
    --light-bg: #F5F7FA;
    --white: #FFFFFF;
    --text-dark: #2C3E50;
    --text-muted: #6C757D;
    --border-light: #E0E6ED;
    --shadow-sm: 0 2px 8px rgba(74, 144, 226, 0.08);
    --shadow-md: 0 4px 16px rgba(74, 144, 226, 0.12);
    --shadow-lg: 0 8px 24px rgba(74, 144, 226, 0.15);
}

/* ===== GÉNÉRAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ===== HEADER & NAVIGATION ===== */
.navbar {
    background-color: var(--white) !important;
    box-shadow: 0 2px 12px rgba(74, 144, 226, 0.08);
    border-bottom: 1px solid var(--border-light);
}

.navbar-dark {
    background-color: var(--white) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    color: var(--primary-color) !important;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: var(--primary-light) !important;
}

.navbar-nav .nav-link {
    margin: 0 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text-dark) !important;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--primary-color);
}

.navbar-toggler {
    border-color: var(--primary-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%234A90E2' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #4A90E2 0%, #8B7FC8 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-weight: 700;
    letter-spacing: 1px;
    animation: slideInDown 0.8s ease;
    color: white;
}

.hero-subtitle {
    font-weight: 400;
    opacity: 0.95;
    animation: slideInUp 0.8s ease;
    color: white;
}

/* ===== ANIMATIONS ===== */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border-light);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: scaleIn 0.6s ease;
}

.feature-card .card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card .card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg) !important;
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(139, 127, 200, 0.1));
    border-radius: 50%;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: scale(1.1) rotate(10deg);
}

.service-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.service-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* ===== SERVICE DETAIL CARDS ===== */
.service-detail-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.service-detail-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md) !important;
}

.service-detail-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-detail-card h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-detail-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-detail-card ul li {
    color: var(--text-dark);
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stars {
    color: var(--warning-color);
    font-size: 1.2rem;
}

.testimonial-text {
    color: var(--text-muted);
    font-style: italic;
    margin: 1rem 0;
    line-height: 1.8;
}

.testimonial-author {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1rem;
}

/* ===== VALUE CARDS ===== */
.value-card {
    padding: 2rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: var(--white);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.value-card:hover {
    background: var(--light-bg);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.15) rotate(-10deg);
    color: var(--secondary-color);
}

.value-title {
    color: var(--primary-color);
    font-weight: 600;
    margin: 1rem 0;
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== EXPERTISE ITEMS ===== */
.expertise-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #0056b3;
    transition: all 0.3s ease;
}

.expertise-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.1);
}

.expertise-item h5 {
    color: #0056b3;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.expertise-item i {
    margin-right: 0.5rem;
}

/* ===== CONTACT FORM ===== */
.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.cta-message {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.08), rgba(139, 127, 200, 0.08));
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.cta-message h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta-message p {
    color: var(--text-muted);
    margin: 0;
}

.form-label {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.15);
    background-color: white;
}

.btn-primary {
    background: linear-gradient(135deg, #0056b3, #6f42c1);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.75rem 2rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 86, 179, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ===== CONTACT INFO ===== */
.contact-info-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    font-size: 1.5rem;
    color: #0056b3;
    min-width: 40px;
    text-align: center;
}

.contact-details h5 {
    color: #0056b3;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #666;
    margin: 0;
}

/* ===== PROCESS STEPS ===== */
.process-step {
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.process-step:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.process-step h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ===== ACCORDION ===== */
.accordion-button:not(.collapsed) {
    background-color: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(74, 144, 226, 0.15);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234A90E2'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--text-dark);
    color: #fff;
    margin-top: 3rem;
}

footer h5 {
    color: var(--primary-light);
    font-weight: 600;
}

footer .text-muted {
    color: #b8b8b8 !important;
}

footer a {
    color: var(--primary-light) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

footer a:hover {
    color: var(--accent-color) !important;
    text-decoration: underline !important;
}

footer .list-unstyled a {
    color: var(--primary-light) !important;
}

footer .list-unstyled a:hover {
    color: var(--accent-color) !important;
}

/* ===== BOUTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.75rem 2rem;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

.btn-light:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-section {
        min-height: 300px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .contact-info-box {
        margin-top: 2rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .container-lg {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .service-detail-card,
    .service-card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .service-icon {
        font-size: 2.5rem;
        width: 70px;
        height: 70px;
        line-height: 70px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.5rem;
    }

    .section-title::after {
        width: 40px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .contact-form-wrapper {
        padding: 1rem;
    }

    .testimonial-card,
    .value-card,
    .service-detail-card {
        padding: 1rem;
    }
}

/* ===== UTILITAIRES ===== */
.text-muted a {
    color: var(--text-muted);
}

.text-success {
    color: var(--success-color) !important;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

/* ===== CTA SECTIONS ===== */
section.bg-primary {
    background: linear-gradient(135deg, #E3F2FD 0%, #F3E5F5 100%) !important;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

section.bg-primary h2,
section.bg-primary .lead {
    color: var(--text-dark) !important;
}

section.bg-primary .btn-light {
    background: var(--primary-color);
    color: white;
    border: none;
}

section.bg-primary .btn-light:hover {
    background: var(--primary-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

section.bg-primary .btn-outline-light {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: white;
}

section.bg-primary .btn-outline-light:hover {
    background: var(--primary-color);
    color: white;
}

/* Animations au scroll */
@media (prefers-reduced-motion: no-preference) {
    .feature-card,
    .service-card,
    .testimonial-card,
    .value-card {
        animation: fadeIn 0.6s ease;
    }
}

/* ===== PORTFOLIO CARDS ===== */
.portfolio-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-light);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.portfolio-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-icon {
    font-size: 3rem;
    opacity: 0.9;
}

.project-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.project-badges .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
}

.portfolio-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.portfolio-category {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.portfolio-description {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.project-objectives {
    list-style: none;
    padding: 0;
}

.project-objectives li {
    color: var(--text-muted);
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.project-objectives li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.portfolio-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.stat i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===== RECENT PROJECTS SECTION ===== */
.project-preview-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.project-preview-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.project-preview-header {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-preview-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-preview-badge {
    margin-bottom: 1rem;
}

.project-preview-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== CLASSE ACTIVE FOOTER ===== */
.nav-link.active {
    color: #0056b3 !important;
}
