/* ===== VARIABLES ===== */
:root {
    /* Couleurs principales */
    --primary: #FF6B00;
    --primary-dark: #E55A00;
    --primary-light: #FF8E42;
    --secondary: #1A237E;
    --secondary-dark: #121858;
    --secondary-light: #2D38A5;
    
    /* Couleurs neutres */
    --light: #F8F9FA;
    --dark: #212529;
    --gray: #6C757D;
    --gray-light: #E9ECEF;
    --gray-dark: #495057;
    
    /* Typographie */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Espacements */
    --section-padding: 100px 0;
    --container-max: 1200px;
    
    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    
    /* Bordures */
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

h2.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--secondary) !important;
}

.navbar-brand span {
    color: var(--primary);
}

.nav-link {
    font-weight: 500;
    color: var(--dark) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.nav-link.active {
    color: var(--primary) !important;
    font-weight: 600;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(255, 107, 0, 0.1) 0%, transparent 70%);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--primary);
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(255, 107, 0, 0.2);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--section-padding);
}

.section-title {
    margin-bottom: 3rem;
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg) !important;
}

.service-card {
    height: 100%;
    border: 1px solid var(--gray-light);
    background: white;
}

.service-card .card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: white;
}

.value-card {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    height: 100%;
}

.value-card .value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* ===== MÉTHODOLOGIE ===== */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 0;
    width: 15px;
    height: 15px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary);
}

.timeline-step {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: 700;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* ===== CONTACT FORM ===== */
.contact-form .form-control {
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    padding: 12px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 0, 0.25);
}

.contact-form .form-floating label {
    padding: 0.75rem 1.25rem;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--dark) 100%);
    color: white;
    padding: 80px 0 30px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    display: inline-block;
    text-decoration: none;
}

.footer-logo span {
    color: var(--primary);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ===== BOUTONS ===== */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 24px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.3);
}

.btn-outline-light:hover {
    background: white;
    color: var(--secondary);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ===== BADGES ===== */
.badge {
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
}

.badge-primary {
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .navbar-nav {
        background: white;
        padding: 1rem;
        border-radius: var(--border-radius);
        margin-top: 1rem;
    }
}

@media (max-width: 992px) {
    .hero-section::before {
        width: 100%;
        opacity: 0.05;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== UTILITIES ===== */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-hover {
    transition: all 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg) !important;
}

/* ===== SWEETALERT2 CUSTOM STYLES ===== */
.success-globally-swal {
    font-family: 'Inter', sans-serif !important;
    border-radius: 15px !important;
    border: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

.success-globally-swal .swal2-title {
    font-weight: 700 !important;
    color: #1A237E !important;
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
}

.success-globally-swal .swal2-html-container {
    color: #495057 !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

.success-globally-swal .swal2-confirm {
    font-weight: 600 !important;
    padding: 12px 30px !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #FF6B00 0%, #FF8E42 100%) !important;
    border: none !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
}

.success-globally-swal .swal2-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.3) !important;
}

.success-globally-swal .swal2-cancel {
    font-weight: 600 !important;
    padding: 12px 30px !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
}

.success-globally-swal .swal2-cancel:hover {
    transform: translateY(-2px) !important;
}

.success-globally-swal .swal2-icon {
    border-width: 4px !important;
}

.success-globally-swal .swal2-success [class^=swal2-success-line] {
    background-color: #28a745 !important;
}

.success-globally-swal .swal2-error [class^=swal2-x-mark-line] {
    background-color: #dc3545 !important;
}

.success-globally-swal .swal2-warning {
    border-color: #ffc107 !important;
    color: #ffc107 !important;
}

.success-globally-swal .swal2-info {
    border-color: #17a2b8 !important;
    color: #17a2b8 !important;
}

/* Animation d'entrée */
.swal2-show {
    animation: swal2-show 0.3s !important;
}

@keyframes swal2-show {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Cartes Applications */
.app-card {
    transition: all 0.3s ease;
    border: 1px solid var(--bs-border-color-translucent);
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border-color: var(--primary);
}

/* Badges */
.badge-tech {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Gradient pour la section CTA */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* Animation pour les statistiques */
.stat-number {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}
/* <!-- CSS à ajouter dans style.css --> */
.announcement-bar {
    position: relative;
    z-index: 1030;
    font-size: 0.9rem;
}

/* Styles pour la section certifications */
.partner-logo-card {
    border: 2px solid rgba(255, 107, 0, 0.2);
    transition: all 0.3s ease;
}

.partner-logo-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

/* Badge partenaire */
.badge-partner {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Bande d'annonce */
.announcement-bar {
    background: linear-gradient(90deg, #FF6B00 0%, #FF8E42 50%, #FF6B00 100%);
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Cartes certifications */
.cert-card {
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.cert-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Optimisations pour Core Web Vitals */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Styles pour le back-to-top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 12px 15px;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(10px);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Skip link pour accessibilité */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0d6efd;
    color: white;
    padding: 8px;
    z-index: 1001;
    text-decoration: none;
}

.skip-to-content:focus {
    top: 0;
}

/* ===== STYLES POUR LES SERVICES - EFFET HOVER ===== */

.service-card {
    position: relative;
    background: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(13, 110, 253, 0.1);
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    min-height: 300px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.15);
    border-color: rgba(13, 110, 253, 0.3);
}

/* Image de fond */
.service-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none; /* Empêche l'image de bloquer les clics */
}

/* Lors du hover sur la carte, l'image devient visible */
.service-card:hover .service-bg-image {
    opacity: 0.15;
}

/* Contenu au-dessus de l'image */
.service-card .card-body {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    transition: background 0.3s ease;
}

.service-card:hover .card-body {
    background: rgba(255, 255, 255, 0.85);
}

/* Icône agrandie au hover */
.service-card .card-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-card:hover .card-icon {
    transform: scale(1.1);
    color: var(--primary-dark) !important;
}

/* Boutons */
.service-card .btn {
    transition: all 0.3s ease;
}

.service-card:hover .btn-outline-primary {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Pour le lien "En savoir plus" */
.service-card .card-text {
    transition: color 0.3s ease;
}

.service-card:hover .card-text {
    color: #333;
}

/* Animation d'entrée */
.service-card[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .service-card {
        min-height: 250px;
    }
    
    .service-card .card-body {
        padding: 1.5rem !important;
    }
    
    .service-bg-image {
        opacity: 0.05; /* Légèrement visible même sur mobile */
    }
}
