/*
 * INOVATIO - Style principal v2
 * Design moderne, épuré et élégant pour tous les écrans
 */

/* Variables CSS */
:root {
    /* Couleurs principales */
    --primary-color: #1B3A6F;
    --secondary-color: #6c757d;
    --accent-color: #E67E22;
    --text-dark: #2c3e50;
    --text-gray: #6c757d;
    --text-light-gray: #adb5bd;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-light: #e9ecef;
    
    /* Couleurs pôles */
    --strategie-color: #007bff;
    --branding-color: #C23B22;
    --conception-color: #7E57C2;
    --realisation-color: #4E7D5A;
    --activation-color: #E67E22;
    
    /* Typographie */
    --font-primary: 'Sansation', Arial, sans-serif;
    --font-brand: 'Sansation', Arial, sans-serif;
    
    /* Transitions */
    --transition-fast: 150ms ease-out;
    --transition-medium: 300ms ease-out;
    --transition-slow: 500ms ease-out;
    
    /* Espacements et conteneurs */
    --section-padding: 100px 0;
    --container-max-width: 1400px;
    --content-max-width: 1200px;
    --narrow-max-width: 800px;
    
    /* Bordures et ombres */
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* CONTENEUR PRINCIPAL POUR GRANDS ÉCRANS */
.main-container {
    min-height: 100vh;
    background: var(--bg-white);
}

/* Sur les très grands écrans, créer un cadre centré */
@media (min-width: 1600px) {
    .main-container {
        max-width: 1600px;
        margin: 0 auto;
        background: var(--bg-white);
    }
}

/* Espaceur pour la navbar */
.navbar-spacer {
    height: 80px;
}

/* TYPOGRAPHIE */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-brand);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: var(--text-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

.display-1 { font-size: clamp(3rem, 6vw, 5rem); }
.display-4 { font-size: clamp(2.5rem, 5vw, 4rem); }
.display-5 { font-size: clamp(2rem, 4vw, 3rem); }

.lead {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 300;
    color: var(--text-gray);
}

.text-gray { color: var(--text-gray); }
.text-light-gray { color: var(--text-light-gray); }
.bg-light-gray { background-color: var(--bg-light); }

/* Classes utilitaires de police */
.font-brand { font-family: var(--font-brand); font-weight: 700; }
.font-light { font-weight: 300; }
.font-regular { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.fw-500 { font-weight: 500; }

/* NAVIGATION */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: all var(--transition-medium);
    z-index: 1050;
}

.navbar-brand img {
    transition: all var(--transition-fast);
}

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

/* Animation du logo */
.logo-wrapper {
    position: relative;
    display: inline-block;
}

.logo {
    display: block;
}

.logo-underline {
    margin: 6px auto 0;
    height: 3px;
    background-color: #2c3e50;
    width: 0;
    opacity: 0;
    animation: underlineInit 1.5s ease-out forwards, underlineBreathe 4s ease-in-out 1.5s infinite;
    border-radius: 2px;
    transition: all var(--transition-medium);
}

/* Animation 1 : étirement initial (one time) */
@keyframes underlineInit {
    0% {
        width: 0;
        opacity: 0;
    }
    40% {
        width: 20%;
        opacity: 1;
    }
    100% {
        width: 80%;
        opacity: 1;
    }
}

/* Animation 2 : respiration infinie */
@keyframes underlineBreathe {
    0%, 100% {
        width: 80%;
        opacity: 0.9;
    }
    50% {
        width: 90%;
        opacity: 1;
    }
}

/* Effet hover sur le logo complet */
.navbar-brand:hover .logo-underline {
    width: 100% !important;
    opacity: 1 !important;
    background-color: var(--primary-color);
}

/* Hero Section avec image */
.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: -1;
}

/* Hero video avec texte en bas à gauche */
.hero-text-overlay {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 10;
    max-width: 500px;
}

.hero-text-content {
    background: rgba(0, 0, 0, 0.7);
    padding: 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.hero-description {
    color: white;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

.hero-center-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

@media (max-width: 768px) {
    .hero-text-overlay {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
    
    .hero-text-content {
        padding: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
}

.navbar-nav {
    margin-left: auto;
}

.navbar-nav .nav-link {
    font-family: var(--font-brand);
    font-weight: 500;
    color: #2c3e50 !important;
    margin: 0 0.25rem;
    padding: 0.75rem 1rem !important;
    transition: all var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #2c3e50;
    transition: width var(--transition-medium);
}

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

.navbar-nav .nav-link:hover {
    color: #1a252f !important;
}

.nav-icon {
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
}

.nav-icon:hover {
    color: #1a252f !important;
    transform: none;
}

/* BARRE DE RECHERCHE */
.search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border-light);
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
    z-index: 1050;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.search-container .form-control {
    border: 1px solid #e0e6ed;
    border-radius: 0.375rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    flex: 1;
}

.search-container .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
    outline: 0;
}

.search-container .btn {
    white-space: nowrap;
    border-radius: 0.375rem;
}

.search-container .btn-primary {
    padding: 0.375rem 0.75rem;
}

.search-container .btn-outline-secondary {
    padding: 0.375rem 0.75rem;
    border-color: #6c757d;
}

.search-container .btn-outline-secondary:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.container-custom {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: var(--narrow-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* HERO SECTION AVEC VIDÉO - Plus horizontal */
.hero-section {
    position: relative;
    height: 60vh;
    min-height: 500px;
    max-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
}

.hero-content h1 {
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content .lead {
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
}

/* BOUTONS - Design rectangulaire avec bordures anthracite */
.btn {
    font-family: var(--font-brand);
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 0;
    transition: all var(--transition-medium);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid #2c3e50;
    background: white;
    color: #2c3e50;
}

.btn:hover {
    background: #2c3e50;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: white;
    border: 2px solid #2c3e50;
    color: #2c3e50;
}

.btn-primary:hover {
    background: #2c3e50;
    border-color: #2c3e50;
    color: white;
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid #2c3e50;
    color: #2c3e50;
}

.btn-outline-primary:hover {
    background: #2c3e50;
    color: white;
    transform: translateY(-2px);
}

.btn-light {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: #2c3e50;
}

.btn-light:hover {
    background: white;
    border-color: white;
    color: #2c3e50;
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: white;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

/* CARTES ET CONTENUS */
.card-modern {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-sm);
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    text-align: center;
    transition: all var(--transition-medium);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

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

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

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.service-emoji {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

/* PROJECT CARDS - Sans arrondis */
.project-card {
    background: var(--bg-white);
    border-radius: 0;
    overflow: hidden;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-actions {
    margin-top: auto;
    text-align: right;
}

/* Grille égale hauteur */
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.projects-grid .col-lg-4 {
    display: flex;
}

/* Section pôles alternés */
.pole-section {
    padding: 4rem 0;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pole-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
}

.pole-section .container {
    position: relative;
    z-index: 2;
}

.pole-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border: 1px solid var(--border-light);
}

.pole-left {
    margin-left: 0;
}

.pole-right {
    margin-left: auto;
}

/* COULEURS DES PÔLES - Classes réutilisables */
.pole-strategie { 
    --pole-color: #1B3A6F; 
}
.pole-branding { 
    --pole-color: #C23B22; 
}
.pole-conception { 
    --pole-color: #7E57C2; 
}
.pole-realisation { 
    --pole-color: #4E7D5A; 
}
.pole-activation { 
    --pole-color: #E67E22; 
}

/* Couleurs de texte pour chaque pôle */
.text-strategie { color: #1B3A6F !important; }
.text-branding { color: #C23B22 !important; }
.text-conception { color: #7E57C2 !important; }
.text-realisation { color: #4E7D5A !important; }
.text-activation { color: #E67E22 !important; }

/* Couleurs de fond pour chaque pôle */
.bg-strategie { background-color: #1B3A6F !important; }
.bg-branding { background-color: #C23B22 !important; }
.bg-conception { background-color: #7E57C2 !important; }
.bg-realisation { background-color: #4E7D5A !important; }
.bg-activation { background-color: #E67E22 !important; }

/* Bordures pour chaque pôle */
.border-strategie { border-color: #1B3A6F !important; }
.border-branding { border-color: #C23B22 !important; }
.border-conception { border-color: #7E57C2 !important; }
.border-realisation { border-color: #4E7D5A !important; }
.border-activation { border-color: #E67E22 !important; }

/* Traits colorés en haut des cartes */
.pole-card {
    position: relative;
    overflow: hidden;
}

.pole-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--pole-color);
    transform: scaleX(0);
    transition: transform var(--transition-medium);
}

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

/* ANIMATIONS */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* FORMULAIRES */
.form-control {
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(27, 58, 111, 0.1);
}

.form-label {
    font-family: var(--font-brand);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* FOOTER */
footer {
    background: #1a1a1a !important;
    color: white;
}

footer .footer-logo {
    filter: brightness(0) invert(1);
    transition: all var(--transition-fast);
}

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

footer .social-links a {
    display: inline-block;
    transition: all var(--transition-fast);
}

footer .social-links a:hover {
    transform: translateY(-3px);
    color: var(--primary-color) !important;
}

/* Titres footer en blanc */
footer h5,
footer h4,
footer h3 {
    color: #ffffff !important;
}

/* Liens et textes footer */
footer .text-light-gray {
    color: #b0b0b0 !important;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1199.98px) {
    :root {
        --section-padding: 80px 0;
        --content-max-width: 100%;
    }
}

@media (max-width: 991.98px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .hero-section {
        min-height: 80vh;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
    }
    
    .btn-cta {
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    :root {
        --section-padding: 40px 0;
    }
    
    .container-custom,
    .container-narrow {
        padding: 0 1rem;
    }
    
    .hero-section {
        min-height: 70vh;
    }
    
    .service-card,
    .card-modern {
        padding: 1.5rem;
    }
    
    .project-image img {
        height: 200px;
    }
}

@media (max-width: 575.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .service-card,
    .card-modern {
        padding: 1rem;
    }
}

/* UTILITAIRES */
.text-decoration-none { text-decoration: none !important; }
.border-0 { border: 0 !important; }
.shadow-custom { box-shadow: var(--shadow-md); }
.rounded-custom { border-radius: var(--border-radius-lg); }

/* GLASSMORPHISME (usage modéré) */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* EFFETS SPÉCIAUX */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* AMÉLIORATION DE L'ACCESSIBILITÉ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* CHATBOT STYLES */
.chatbot-cta-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
}

.chatbot-cta-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.chatbot-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

#chatbot-window {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 400px;
    max-width: calc(100vw - 60px);
    height: 600px;
    max-height: calc(100vh - 180px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1),
                0 8px 32px rgba(0, 0, 0, 0.08);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#chatbot-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 25px;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.chatbot-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.chatbot-header-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.chatbot-avatar i {
    font-size: 24px;
    color: white;
}

.chatbot-title {
    flex: 1;
}

.chatbot-title h4 {
    color: white;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Sansation Regular', sans-serif;
}

.chatbot-title p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 14px;
}

#chatbot-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

#chatbot-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

#chatbot-close i {
    color: white;
    font-size: 16px;
}

.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-toggle:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.chatbot-toggle.pulse {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    }
    50% { 
        box-shadow: 0 8px 32px rgba(102, 126, 234, 0.6), 
                    0 0 0 10px rgba(102, 126, 234, 0.1);
    }
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    position: relative;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.message {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-end;
    animation: slideInUp 0.3s ease-out;
}

.message.user {
    justify-content: flex-end;
}

.message.bot {
    justify-content: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 15px 20px;
    border-radius: 20px;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.message.user .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.message.bot .message-content {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom-left-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.chatbot-input-area {
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 0 0 20px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.input-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 25px;
    padding: 5px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-container:focus-within {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#chatbot-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 15px;
    font-size: 14px;
    outline: none;
    color: #333;
}

#chatbot-input::placeholder {
    color: #999;
}

#chatbot-send {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 5px;
}

#chatbot-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

#chatbot-send i {
    color: white;
    font-size: 16px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    #chatbot-toggle {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }
    
    #chatbot-toggle i {
        font-size: 24px;
    }
    
    #chatbot-window {
        bottom: 100px;
        right: 20px;
        left: 20px;
        width: auto;
        max-width: none;
        height: 500px;
    }
    
    .chatbot-header {
        padding: 15px 20px;
    }
    
    .chatbot-title h4 {
        font-size: 16px;
    }
    
    .message-content {
        max-width: 85%;
        padding: 12px 16px;
    }
}

/* EXPERTISE POLES STYLES */
.expertise-poles {
    margin-top: 3rem;
}

.expertise-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-sm);
    background: white;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.expertise-card:hover .expertise-bg {
    opacity: 0.6 !important;
}

.expertise-content {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(10px);
}

.expertise-emoji {
    display: inline-block;
    transition: transform var(--transition-medium);
}

.expertise-card:hover .expertise-emoji {
    transform: scale(1.2);
}

/* Responsive pour les pôles d'expertise */
@media (max-width: 991.98px) {
    .expertise-card {
        width: 85% !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 767.98px) {
    .expertise-card {
        width: 95% !important;
    }
    
    .expertise-content {
        padding: 2rem !important;
    }
}

/* CLASSES COULEURS PÔLES */
.pole-strategie { border-color: #1B3A6F !important; }
.text-strategie { color: #1B3A6F !important; }
.bg-strategie { background-color: #1B3A6F !important; }

.pole-branding { border-color: #C23B22 !important; }
.text-branding { color: #C23B22 !important; }
.bg-branding { background-color: #C23B22 !important; }

.pole-conception { border-color: #7E57C2 !important; }
.text-conception { color: #7E57C2 !important; }
.bg-conception { background-color: #7E57C2 !important; }

.pole-realisation { border-color: #4E7D5A !important; }
.text-realisation { color: #4E7D5A !important; }
.bg-realisation { background-color: #4E7D5A !important; }

.pole-activation { border-color: #E67E22 !important; }
.text-activation { color: #E67E22 !important; }
.bg-activation { background-color: #E67E22 !important; }

/* CLIENT CARDS */
.client-card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.client-logo-item {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.client-logo-item img:hover {
    filter: grayscale(0%) !important;
    transform: scale(1.05);
}

/* Grille clients page d'accueil */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
    align-items: center;
    justify-items: center;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.client-logo img {
    max-height: 210px;
    max-width: 200px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

@media (min-width: 1200px) {
    .clients-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
        padding: 0.5rem 0;
    }
    
    .client-logo {
        padding: 0.25rem;
    }
    
    .client-logo img {
        max-height: 100px;
        max-width: 170px;
    }
}

/* Page clients - Mobile 2 par ligne pour mainClients */
@media (max-width: 767px) {
    .clients-page .row.g-4 .col-lg-4.col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }
    
    .clients-page .client-card {
        padding: 1rem !important;
        margin-bottom: 0.5rem;
    }
    
    .clients-page .client-card .client-logo {
        max-height: 160px !important;
    }
    
    .clients-page .row.g-4 {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }
}

/* Bouton charger plus */
#load-more {
    min-width: 250px;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
}

#load-more:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(27, 58, 111, 0.3);
}

#load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#load-more.loading {
    pointer-events: none;
}

#load-more.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* PAGE PROJET */
.project-header-image {
    padding: 2rem 0;
}

.project-header-image img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-header-image img:hover {
    transform: translateY(-5px);
}

.project-carousel-section {
    margin: 3rem 0;
}

.project-carousel-section .carousel-item img {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-content {
    line-height: 1.8;
}

.project-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.project-content h2,
.project-content h3,
.project-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.project-content p {
    margin-bottom: 1.5rem;
}

.project-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-gray);
}

/* Client info sidebar */
.client-info .client-logo {
    text-align: center;
}

.client-info .client-logo img {
    filter: grayscale(10%);
    transition: all 0.3s ease;
    max-height: 120px !important;
    object-fit: contain;
}

.client-info .client-logo img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.client-info h5 {
    font-family: 'Sansation Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: normal !important;
    text-align: center;
    margin-bottom: 0.5rem;
}

.client-info a {
    display: block;
    text-align: center;
}

/* Projets similaires */
.similar-project {
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.similar-project:hover {
    background-color: var(--bg-light);
    transform: translateX(5px);
}

.similar-project:last-child {
    margin-bottom: 0 !important;
}

/* Tags/Badges de mots-clés */
.badge.bg-light {
    color: var(--text-dark) !important;
    border: 1px solid var(--border-light) !important;
    transition: all 0.3s ease;
}

.badge.bg-light:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-1px);
}

/* Tags de catégories avec emoji */
.badge.bg-light.text-dark {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: 20px;
}

.badge.bg-light.text-dark:hover {
    background-color: #e9ecef !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Carousel personnalisé */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.8);
}

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators button {
    width: 50px;
    height: 4px;
    border-radius: 2px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.carousel-indicators button.active {
    background-color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .project-carousel .carousel-item img,
    .project-main-image img {
        height: 300px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
}

/* BANNIÈRE COOKIES RGPD */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(33, 37, 41, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1.5rem 0;
    z-index: 1050;
    border-top: 3px solid var(--accent-color);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner .btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

/* Forcer la couleur blanche pour les textes dans la bannière cookies (sauf boutons) */
.cookie-banner h6,
.cookie-banner p,
.cookie-banner a:not(.btn) {
    color: white !important;
}

/* Assurer la visibilité des boutons cookies */
.cookie-banner .btn-warning {
    color: #000 !important;
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
}

.cookie-banner .btn-outline-light {
    color: white !important;
    border-color: rgba(255,255,255,0.5) !important;
    background-color: transparent !important;
}

@media (max-width: 767.98px) {
    .cookie-banner {
        padding: 1rem 0;
    }
    
    .cookie-banner .col-lg-4 {
        text-align: center !important;
    }
}
