/********** PROFI 5.0 - Modern Corporate Design **********/

/* ========== GLOBAL FONT OVERRIDE ========== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i:not([class*="fa"]):not([class*="bi"]), center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video, input, textarea, select, button {
    font-family: 'Times New Roman', serif !important;
}

/* Sélecteur universel excluant explicitement les icônes */
*:not([class*="fa"]):not([class*="bi"]):not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.fad):not(.fak):not(.bi):not([class^="bi-"]) {
    font-family: 'Times New Roman', serif !important;
}

/* ========== VARIABLES & COLOR SCHEME ========== */
:root {
    /* Modern Corporate Colors */
    --primary: #6BA3D8;
    --primary-dark: #4A8BC4;
    --primary-light: #8FC4E8;
    --secondary: #9BC4E8;
    --secondary-dark: #7AB3D8;
    --accent: #00A86B;
    --accent-light: #33B888;
    
    /* Bootstrap 5 Override */
    --bs-primary: #6BA3D8;
    --bs-primary-rgb: 107, 163, 216;
    --bs-font-sans-serif: 'Times New Roman', serif;
    --bs-font-monospace: 'Times New Roman', serif;
    
    /* Neutral Colors */
    --light: #F8F9FA;
    --light-gray: #E9ECEF;
    --medium-gray: #848E9F;
    --dark: #354F8E;
    --dark-blue: #0D1117;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6BA3D8 0%, #4A8BC4 100%);
    --gradient-secondary: linear-gradient(135deg, #9BC4E8 0%, #7AB3D8 100%);
    --gradient-accent: linear-gradient(135deg, #00A86B 0%, #007A4F 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(107, 163, 216, 0.95) 0%, rgba(74, 139, 196, 0.95) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
}

/* Ensure text-primary class uses the new soft blue color */
.text-primary {
    color: var(--primary) !important;
}

/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', serif !important;
}

body {
    font-family: 'Times New Roman', serif !important;
    line-height: 1.7;
    color: #848E9F;
    background: #FFFFFF;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure media and embeds scale on small screens */
img,
iframe {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Times New Roman', serif !important;
    font-weight: 700;
    line-height: 1.3;
    color: #354F8E;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.75rem; letter-spacing: -0.01em; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: #848E9F;
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    transition: var(--transition-normal);
}

/* ========== BUTTONS ========== */
.btn {
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 36px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: none;
    letter-spacing: 0.5px;
    font-family: 'Times New Roman', serif !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.btn-primary {
    background: var(--gradient-primary);
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(107, 163, 216, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(107, 163, 216, 0.4);
    background: var(--gradient-primary);
    color: #FFFFFF;
}

.btn-dark-blue {
    background: var(--dark);
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(53, 79, 142, 0.3);
    border: none;
}

.btn-dark-blue:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(53, 79, 142, 0.4);
    background: var(--dark);
    color: #FFFFFF;
}

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

.btn-outline-primary:hover {
    background: var(--primary);
    color: #FFFFFF;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(107, 163, 216, 0.3);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    border-color: #FFFFFF;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--dark);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--dark);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    width: auto;
    height: auto;
    padding: 14px;
    border-radius: 8px;
}

.btn-lg-square {
    padding: 18px;
}

/* ========== NAVBAR ========== */
.navbar {
    padding: 1.2rem 0;
    background: rgba(245, 249, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
    border-bottom: 1px solid rgba(107, 163, 216, 0.1);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
    background: rgba(245, 249, 255, 0.98) !important;
}

.navbar-logo {
    height: 90px;
    width: auto;
    max-width: 250px;
    transition: all var(--transition-normal);
    object-fit: contain;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

@media (max-width: 991.98px) {
    .navbar-logo {
        height: 45px;
        max-width: 200px;
    }
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Times New Roman', serif !important;
    position: relative;
    margin-left: 8px;
    margin-right: 8px;
    padding: 10px 18px !important;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark) !important;
    border-radius: 8px;
    transition: all var(--transition-normal);
    letter-spacing: 0.3px;
}

.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width var(--transition-normal);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary) !important;
    background: rgba(107, 163, 216, 0.08);
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
    width: 70%;
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin: 5px 0;
        padding: 12px 20px !important;
    }
    
    .navbar-light .navbar-nav .nav-link::after {
        display: none;
    }
}

/* ========== TOPBAR ========== */
.topbar {
    background: linear-gradient(135deg, #0D1117 0%, #1A1D29 100%);
    padding: 12px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(107, 163, 216, 0.1);
}

.topbar a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.topbar a:hover {
    color: var(--secondary);
}

.topbar .social-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 4px;
}

.topbar .social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(107, 163, 216, 0.3);
    border-color: transparent;
}

/* ========== HERO SECTION ========== */
.hero-header {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1723095469034-c3cf31e32730?q=80&w=870&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    padding: 140px 0 120px;
    overflow: hidden;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-header::after {
    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(0, 0, 0, 0.15) 0%, transparent 50%);
    z-index: 2;
    pointer-events: none;
}

.hero-no-overlay::before {
    display: none;
}

.hero-with-carousel {
    background-image: none !important;
    position: relative;
    overflow: hidden;
}

.hero-carousel-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-carousel {
    height: 100%;
}

.hero-slide {
    height: 100%;
    min-height: 600px;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(107, 163, 216, 0.5) 0%, rgba(74, 139, 196, 0.45) 50%, rgba(107, 163, 216, 0.5) 100%);
    z-index: 2;
}

.hero-header .container {
    position: relative;
    z-index: 3;
}

.hero-header h1 {
    color: #FFFFFF;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    animation: fadeInUp 0.8s ease;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.03em;
}

.hero-header p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
}

/* ========== SERVICE ITEMS ========== */
.service-item {
    position: relative;
    height: 100%;
    min-height: 400px;
    padding: 50px 35px;
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-slow);
    border: 1px solid rgba(107, 163, 216, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.service-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(107, 163, 216, 0.25);
    border-color: var(--primary);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBF0 100%);
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-item .service-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 20px;
    margin-bottom: 24px;
    transform: rotate(0deg);
    transition: all var(--transition-slow);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
}

.service-item:hover .service-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.service-item .service-icon i {
    transform: rotate(0deg);
    font-size: 2.5rem;
    color: #FFFFFF;
}

.service-item h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.service-item p {
    font-size: 1rem;
    color: var(--medium-gray);
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Service items with background images */
.service-item[style*="background-image"] h4,
.service-item[style*="background-image"] p {
    position: relative;
    z-index: 2;
}

.service-item .btn {
    margin-top: auto;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-slow);
    position: relative;
    z-index: 2;
}

.service-item:hover .btn {
    opacity: 1;
    transform: translateY(0);
}

/* ========== PRICING/REALISATIONS CARDS ========== */
.price-carousel {
    position: relative;
}

.price-item,
.realisation-item {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 0 !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all var(--transition-slow);
    border: 2px solid rgba(107, 163, 216, 0.1);
    height: 100%;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.realisation-item .position-relative {
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    left: 0;
    right: 0;
}

.realisation-item .position-absolute {
    overflow: hidden;
    word-wrap: break-word;
}

.realisation-item .position-absolute h1,
.realisation-item .position-absolute h3 {
    max-width: 100%;
    overflow-wrap: break-word;
}

.realisation-item img {
    width: 100%;
    height: auto;
    min-height: 280px;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    border-radius: 20px 20px 0 0;
    border: none;
}

.realisation-item > div:last-child {
    padding: 40px 30px;
    overflow: hidden;
    word-wrap: break-word;
    max-width: 100%;
}

.realisation-item ul {
    max-width: 100%;
    overflow: hidden;
}

.realisation-item li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.price-item:hover,
.realisation-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 60px rgba(107, 163, 216, 0.25);
    border-color: var(--primary);
}

/* ========== TEAM CARDS ========== */
.team-item {
    overflow: hidden;
}

.team-item .row {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    background: #FFFFFF;
}

.team-item:hover .row {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.team-item img {
    transition: transform var(--transition-slow);
}

.team-item:hover img {
    transform: scale(1.05);
}

/* ========== TESTIMONIALS ========== */
.testimonial-item {
    padding: 40px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.testimonial-item:hover {
    box-shadow: var(--shadow-md);
}

.testimonial-item img {
    border: 4px solid var(--primary);
    transition: all var(--transition-normal);
}

.testimonial-item:hover img {
    border-color: var(--secondary);
    transform: scale(1.05);
}

/* ========== FORMS ========== */
.form-control,
.form-select {
    border: 2px solid rgba(107, 163, 216, 0.2);
    border-radius: 14px;
    padding: 18px 24px;
    font-size: 1rem;
    transition: all var(--transition-normal);
    background: #FFFFFF;
    font-family: 'Times New Roman', serif !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 6px rgba(107, 163, 216, 0.15), 0 4px 20px rgba(107, 163, 216, 0.1);
    outline: none;
    transform: translateY(-2px);
    background: #FFFFFF;
}

.form-control::placeholder {
    color: var(--medium-gray);
    opacity: 0.7;
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 20px;
}

label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    display: block;
}

/* ========== CONTACT CARDS ========== */
.contact-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
    border-radius: 24px;
    padding: 45px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all var(--transition-slow);
    border: 2px solid rgba(107, 163, 216, 0.1);
    height: 100%;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(107, 163, 216, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(107, 163, 216, 0.25);
    border-color: var(--primary);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBF0 100%);
}

.contact-card .icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-15deg);
    transition: all var(--transition-slow);
    box-shadow: var(--shadow-md);
}

.contact-card:hover .icon-wrapper {
    transform: rotate(0deg) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.contact-card .icon-wrapper i {
    font-size: 2.5rem;
    color: #FFFFFF;
    transform: rotate(15deg);
    transition: transform var(--transition-slow);
}

.contact-card:hover .icon-wrapper i {
    transform: rotate(0deg);
}

.contact-card h6 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

/* ========== FOOTER ========== */
footer,
.container-fluid.bg-dark {
    background: linear-gradient(135deg, #E8F4F8 0%, #D6E8F0 100%);
    color: #000 !important;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer-watermark {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    opacity: 0.08;
    pointer-events: none;
    background-image: url('../img/logo_t.png');
    background-repeat: repeat;
    background-size: 250px auto;
    background-position: center center;
}

.footer-with-watermark .container {
    position: relative;
    z-index: 1;
}

.container-fluid.bg-dark p,
.container-fluid.bg-dark h4,
.container-fluid.bg-dark h6,
.container-fluid.bg-dark a:not(.text-primary):not(.btn) {
    color: #000 !important;
}

.container-fluid.bg-dark .text-primary {
    color: #000 !important;
}

.container-fluid.bg-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(107, 163, 216, 0.5), transparent);
}

footer h4,
.container-fluid.bg-dark h4 {
    color: #000 !important;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 16px;
}

footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
}

.footer-title-border {
    border-color: var(--dark) !important;
}

footer a,
footer .text-light,
footer .bg-dark a,
.container-fluid.bg-dark a:not(.btn):not(.text-primary) {
    color: #000 !important;
    transition: var(--transition-fast);
    display: inline-block;
}

footer a:hover,
footer .bg-dark a:hover,
.container-fluid.bg-dark a:hover:not(.btn) {
    color: #333 !important;
    transform: translateX(5px);
}

footer .bg-dark,
.container-fluid.bg-dark {
    color: #000 !important;
}

footer .bg-dark p,
.container-fluid.bg-dark p {
    color: #000 !important;
}

footer .social-links a {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(107, 163, 216, 0.15);
    border-radius: 14px;
    margin-right: 12px;
    transition: all var(--transition-normal);
    border: 2px solid rgba(107, 163, 216, 0.3);
    color: #354F8E;
}

footer .social-links a:hover {
    background: var(--gradient-primary);
    color: #FFFFFF;
    transform: translateY(-6px) rotate(5deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(107, 163, 216, 0.4);
    border-color: transparent;
}

/* ========== SECTIONS ========== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h5 {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(107, 163, 216, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #354F8E;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--medium-gray);
}

/* ========== CAROUSELS ========== */
.owl-carousel .owl-nav {
    margin-top: 40px;
}

.owl-carousel .owl-nav button {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary) !important;
    border-radius: 16px;
    color: #FFFFFF !important;
    font-size: 22px;
    transition: all var(--transition-normal);
    margin: 0 10px;
    box-shadow: 0 6px 20px rgba(107, 163, 216, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.owl-carousel .owl-nav button:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(107, 163, 216, 0.4);
    background: var(--gradient-primary) !important;
}

.owl-carousel .owl-dots {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.owl-carousel .owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light-gray);
    transition: all var(--transition-normal);
}

.owl-carousel .owl-dot.active {
    width: 36px;
    border-radius: 8px;
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(107, 163, 216, 0.4);
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    color: #FFFFFF;
    border-radius: 16px;
    z-index: 99;
    box-shadow: 0 8px 25px rgba(107, 163, 216, 0.4);
    transition: all var(--transition-normal);
    border: none;
    backdrop-filter: blur(10px);
}

.back-to-top:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 12px 35px rgba(107, 163, 216, 0.5);
}

/* ========== SMOOTH SCROLLING ========== */
html {
    scroll-behavior: smooth;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

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

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

/* ========== UTILITIES ========== */
.text-gradient {
    color: #354F8E;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.shadow-custom {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.rounded-custom {
    border-radius: 24px;
}

/* ========== LOADING STATES ========== */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

/* ========== SELECTION STYLES ========== */
::selection {
    background: var(--primary);
    color: #FFFFFF;
}

::-moz-selection {
    background: var(--primary);
    color: #FFFFFF;
}

/* ========== SECTION TITLES ========== */
.section-badge {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, rgba(107, 163, 216, 0.12) 0%, rgba(74, 139, 196, 0.12) 100%);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    border: 2px solid rgba(107, 163, 216, 0.25);
    transition: all var(--transition-normal);
    font-family: 'Times New Roman', serif !important;
    box-shadow: 0 4px 15px rgba(107, 163, 216, 0.1);
}

.section-badge:hover {
    background: var(--gradient-primary);
    color: #FFFFFF;
    border-color: transparent;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(107, 163, 216, 0.3);
}

.section-heading {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #354F8E;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 10px rgba(53, 79, 142, 0.1);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--medium-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========== ABOUT SECTION ========== */
.about-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-slow);
    border: 4px solid rgba(107, 163, 216, 0.1);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-slow);
    z-index: 1;
}

.about-image:hover::before {
    opacity: 0.1;
}

.about-image img {
    transition: transform var(--transition-slow);
}

.about-image:hover {
    box-shadow: 0 25px 70px rgba(107, 163, 216, 0.3);
    border-color: rgba(107, 163, 216, 0.3);
}

.about-image:hover img {
    transform: scale(1.08);
}

/* ========== SECTORS CAROUSEL ========== */
.about-image-carousel {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 4px solid rgba(107, 163, 216, 0.1);
}

.sectors-carousel {
    height: 100%;
    min-height: 500px;
}

.sector-slide {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 24px;
}

.sector-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.sector-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    padding: 30px 25px 25px;
    transform: translateY(0);
    transition: all var(--transition-normal);
}

.sector-slide:hover .sector-overlay {
    background: linear-gradient(to top, rgba(107, 163, 216, 0.95) 0%, rgba(74, 139, 196, 0.85) 50%, rgba(0, 0, 0, 0.3) 100%);
}

.sector-slide:hover img {
    transform: scale(1.1);
}

.sector-overlay h5 {
    font-family: 'Times New Roman', serif !important;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.sectors-carousel .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.sectors-carousel .owl-nav button {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50%;
    color: var(--primary) !important;
    font-size: 20px;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(107, 163, 216, 0.3);
}

.sectors-carousel .owl-nav button:hover {
    background: var(--gradient-primary) !important;
    color: #FFFFFF !important;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(107, 163, 216, 0.4);
}

.sectors-carousel .owl-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.sectors-carousel .owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all var(--transition-normal);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.sectors-carousel .owl-dot.active {
    width: 32px;
    border-radius: 6px;
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(107, 163, 216, 0.4);
}

.stats-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    border-radius: 24px;
    padding: 35px 20px;
    text-align: center;
    transition: all var(--transition-slow);
    border: 2px solid rgba(107, 163, 216, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: 180px;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.stats-card:hover::before {
    transform: scaleX(1);
}

.stats-card i {
    font-size: 2.5rem;
    color: #354F8E;
    margin-bottom: 12px;
    transition: transform var(--transition-normal);
    flex-shrink: 0;
}

.stats-card:hover i {
    transform: scale(1.15) rotate(5deg);
}

.stats-card h6 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    width: 100%;
}

.stats-card small {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
    margin-top: 4px;
}

/* ========== PRICING/REALISATIONS CARDS ENHANCED ========== */
.price-item,
.realisation-item {
    position: relative;
    overflow: hidden;
}

.price-item::after,
.realisation-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.price-item:hover::after,
.realisation-item:hover::after {
    transform: scaleX(1);
}

/* ========== HERO ENHANCED ========== */
.hero-header::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    top: -250px;
    right: -250px;
    z-index: 1;
}

.hero-header::before {
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 14px 36px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 28px;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    font-family: 'Times New Roman', serif !important;
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* ========== CARD ENHANCEMENTS ========== */
.card-modern {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
    border-radius: 24px;
    padding: 45px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all var(--transition-slow);
    border: 2px solid rgba(107, 163, 216, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.card-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(107, 163, 216, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.card-modern:hover::before {
    opacity: 1;
}

.card-modern:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 20px 60px rgba(107, 163, 216, 0.25);
    border-color: var(--primary);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBF0 100%);
}

/* Override card-modern padding for realisation items */
.card-modern.realisation-item {
    padding: 0 !important;
}

/* Card modern with background images */
.card-modern[style*="background-image"] {
    color: #FFFFFF;
}

.card-modern[style*="background-image"]::before {
    display: none;
}

.card-modern[style*="background-image"] h4,
.card-modern[style*="background-image"] p,
.card-modern[style*="background-image"] i {
    position: relative;
    z-index: 2;
}

/* ========== PARTNERS SECTION ========== */
.partner-carousel {
    position: relative;
}

.partner-item {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
    border-radius: 20px;
    padding: 35px 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-slow);
    border: 2px solid rgba(107, 163, 216, 0.1);
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.partner-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 40px rgba(107, 163, 216, 0.2);
    border-color: var(--primary);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBF0 100%);
}

.partner-item img {
    max-width: 100%;
    max-height: 110px;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.9);
    opacity: 0.6;
    transition: all var(--transition-normal);
}

.partner-item:hover img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.15);
}

/* ========== BACKGROUND PATTERNS ========== */
.bg-pattern {
    position: relative;
    background: linear-gradient(135deg, #FAFAFA 0%, #FFFFFF 50%, #F8F9FA 100%);
}

.bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(107, 163, 216, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 168, 107, 0.08) 0%, transparent 40%),
        linear-gradient(135deg, transparent 0%, rgba(107, 163, 216, 0.02) 50%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.bg-pattern > * {
    position: relative;
    z-index: 1;
}

/* ========== SECTIONS SPACING ========== */
.section-padding {
    padding: 120px 0;
}

.section-padding-sm {
    padding: 80px 0;
}

/* ========== ENHANCED CONTAINER ========== */
.container-enhanced {
    position: relative;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .hero-header {
        padding: 100px 0 80px;
        background-attachment: scroll;
    }
    
    .hero-header h1 {
        font-size: 2.75rem;
    }
    
    .section-title h1,
    .section-heading {
        font-size: 2.25rem;
    }
    
    .service-item {
        min-height: auto;
        margin-bottom: 30px;
        padding: 40px 25px;
    }
    
    .section-padding {
        padding: 80px 0;
    }
    
    .section-padding-sm {
        padding: 60px 0;
    }
    
    .stats-card {
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
    
    .back-to-top {
        width: 48px;
        height: 48px;
        right: 20px;
        bottom: 20px;
    }
}

/* Extra small devices (phones < 576px) */
@media (max-width: 575.98px) {
    .hero-header .display-1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-header p {
        font-size: 1rem;
    }

    .section-heading {
        font-size: 2rem;
    }

    .card-modern {
        padding: 28px 20px;
    }

    .price-carousel,
    .partner-carousel {
        padding: 0 15px 30px 15px !important;
    }

    .stats-card {
        padding: 28px 18px;
    }

    .about-image-carousel {
        min-height: 320px;
    }

    .navbar .container {
        padding-left: 0;
        padding-right: 0;
    }

    img.about-logo {
        max-width: 140px;
        min-width: 0;
        height: auto;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .navbar,
    .topbar,
    footer,
    .back-to-top {
        display: none !important;
    }
}

/* ========== ICONS FONT FIX ========== */
/* Restaurer les polices d'icônes - doit être à la fin pour surcharger toutes les règles précédentes */
i[class*="fa"],
i[class*="bi"],
[class*="fa-"],
[class*="bi-"],
.fa, .fas, .far, .fal, .fab, .fad, .fak,
.bi, [class^="bi-"], [class*=" bi-"] {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands", "Font Awesome 5 Pro", "bootstrap-icons" !important;
}

i[class*="fa"]::before,
i[class*="bi"]::before,
[class*="fa-"]::before,
[class*="bi-"]::before,
.fa::before, .fas::before, .far::before, .fal::before, .fab::before, .fad::before, .fak::before,
.bi::before, [class^="bi-"]::before, [class*=" bi-"]::before {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands", "Font Awesome 5 Pro", "bootstrap-icons" !important;
}

i[class*="fa"]::after,
i[class*="bi"]::after,
[class*="fa-"]::after,
[class*="bi-"]::after,
.fa::after, .fas::after, .far::after, .fal::after, .fab::after, .fad::after, .fak::after,
.bi::after, [class^="bi-"]::after, [class*=" bi-"]::after {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands", "Font Awesome 5 Pro", "bootstrap-icons" !important;
}
