/* ========================================
KSI Partners - Styles compacts
Version: 1.2 | Logo rond + Hero aligné
======================================== */

/* --- Variables & Reset --- */
:root {
    --color-ksi-blue: #0F2C59;
    --color-light-blue: #3B82F6;
    --color-grey: #F3F4F6;
    --color-dark: #111827;
    --color-white: #ffffff;
    --color-text: #1f2937;
    --color-text-muted: #6b7280;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    --radius-lg: 0.75rem;
    --radius-full: 9999px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--color-white);
    color: var(--color-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* --- Utilitaires --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.hidden {
    display: none !important;
}

.visible {
    visibility: visible !important;
}

.opacity-0 {
    opacity: 0;
}

.opacity-100 {
    opacity: 1;
}

.transition {
    transition: all var(--transition-normal);
}

.transition-transform {
    transition: transform var(--transition-normal);
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:scale-110:hover {
    transform: scale(1.1);
}

/* --- Typographie --- */
.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-7xl {
    font-size: 4.5rem;
}

.font-light {
    font-weight: 300;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.leading-tight {
    line-height: 1.25;
}

.text-ksi-blue {
    color: var(--color-ksi-blue);
}

.text-white {
    color: var(--color-white);
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-900 {
    color: #111827;
}

.text-blue-100 {
    color: #dbeafe;
}

.text-blue-300 {
    color: #93c5fd;
}

.text-blue-500 {
    color: #3b82f6;
}

.text-blue-600 {
    color: #2563eb;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

/* --- Espacements --- */
.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.ml-4 {
    margin-left: 1rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.p-1 {
    padding: 0.25rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-1.5 {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-2.5 {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.pl-4 {
    padding-left: 1rem;
}

.pl-6 {
    padding-left: 1.5rem;
}

/* --- Layout & Positioning --- */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.top-0 {
    top: 0;
}

.left-0 {
    left: 0;
}

.left-4 {
    left: 1rem;
}

.right-4 {
    right: 1rem;
}

.top-4 {
    top: 1rem;
}

.bottom-6 {
    bottom: 1.5rem;
}

.right-6 {
    right: 1.5rem;
}

.z-0 {
    z-index: 0;
}

.z-10 {
    z-index: 10;
}

.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

.w-4 {
    width: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.w-7 {
    width: 1.75rem;
}

.w-8 {
    width: 2rem;
}

.w-12 {
    width: 3rem;
}

.w-20 {
    width: 5rem;
}

.w-24 {
    width: 6rem;
}

.w-32 {
    width: 8rem;
}

.w-40 {
    width: 10rem;
}

.w-80 {
    width: 20rem;
}

.w-full {
    width: 100%;
}

.w-\[46px\] {
    width: 46px;
}

.w-\[50px\] {
    width: 50px;
}

.w-\[75px\] {
    width: 75px;
}

.w-\[80px\] {
    width: 80px;
}

.h-0\.5 {
    height: 2px;
}

.h-4 {
    height: 1rem;
}

.h-5 {
    height: 1.25rem;
}

.h-6 {
    height: 1.5rem;
}

.h-7 {
    height: 1.75rem;
}

.h-8 {
    height: 2rem;
}

.h-12 {
    height: 3rem;
}

.h-24 {
    height: 6rem;
}

.h-32 {
    height: 8rem;
}

.h-48 {
    height: 12rem;
}

.h-\[30px\] {
    height: 30px;
}

.h-\[40px\] {
    height: 40px;
}

.h-\[50px\] {
    height: 50px;
}

.h-\[75px\] {
    height: 75px;
}

.h-full {
    height: 100%;
}

.h-screen {
    height: 100vh;
}

.min-h-\[600px\] {
    min-height: 600px;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-y-auto {
    overflow-y: auto;
}

.overflow-visible {
    overflow: visible;
}

/* --- Backgrounds & Borders --- */
.bg-white {
    background-color: var(--color-white);
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.bg-blue-200 {
    background-color: #bfdbfe;
}

.bg-ksi-blue {
    background-color: var(--color-ksi-blue);
}

.bg-ksi-dark {
    background-color: var(--color-dark);
}

.bg-black\/50 {
    background-color: rgba(0,0,0,0.5);
}

.bg-white\/90 {
    background-color: rgba(255,255,255,0.9);
}

.border {
    border-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-l-4 {
    border-left-width: 4px;
}

.border-gray-100 {
    border-color: #f3f4f6;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.border-gray-800 {
    border-color: #1f2937;
}

.border-ksi-blue\/20 {
    border-color: rgba(15,44,89,0.2);
}

.border-blue-400\/30 {
    border-color: rgba(96,165,250,0.3);
}

.border-blue-500 {
    border-color: #3b82f6;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: var(--radius-full);
}

.blur-xl {
    filter: blur(24px);
}

.blur-2xl {
    filter: blur(40px);
}

.opacity-10 {
    opacity: 0.1;
}

.opacity-50 {
    opacity: 0.5;
}

/* --- Flex & Grid --- */
.flex-shrink-0 {
    flex-shrink: 0;
}

.flex-1 {
    flex: 1;
}

.items-start {
    align-items: flex-start;
}

.gap-1\.5 {
    gap: 0.375rem;
}

.space-y-1 > * + * {
    margin-top: 0.25rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

/* ========================================
✅ COMPOSANTS : BOUTONS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.btn-primary {
    background: var(--color-white);
    color: var(--color-ksi-blue);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    background: #f0f9ff;
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: var(--color-ksi-blue);
    color: var(--color-white);
    padding: 0.625rem 2rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
}

.btn-secondary:hover {
    background: #0a1f40;
    transform: scale(1.05);
}

.btn-visio {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, var(--color-ksi-blue) 0%, #1e4a8a 50%, var(--color-ksi-blue) 100%);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
    color: var(--color-white);
    border-radius: var(--radius-full);
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(96,165,250,0.3);
    height: 40px;
    transition: all var(--transition-normal);
}

.btn-visio:hover {
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    transform: scale(1.05);
}

.btn-visio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, transparent 50%, rgba(255,255,255,0.2) 50%, transparent 50%, transparent 100%);
    transform: translateX(-100%);
    animation: shimmer 2.5s infinite;
    z-index: 1;
    pointer-events: none;
}

.btn-visio > * {
    position: relative;
    z-index: 2;
}

/* ✅ Hamburger menu - barres empilées */
.btn-icon {
    position: absolute;
    z-index: 0;
    left: 45px;
    top: 10px;
    width: 50px;
    height: 30px;
    background: rgba(255,255,255,0.9);
    border-radius: var(--radius-full);
    border: 1px solid rgba(15,44,89,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background var(--transition-fast), color var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.btn-icon span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-ksi-blue);
    border-radius: 9999px;
    transition: background var(--transition-fast);
}

.btn-icon:hover {
    background: var(--color-ksi-blue);
}

.btn-icon:hover span {
    background: var(--color-white);
}

/* ✅ Back-to-top button avec SVG visible */
.btn-backtotop {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    background: var(--color-white);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-ksi-blue);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem);
    transition: all var(--transition-normal);
    z-index: 50;
}

.btn-backtotop.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-backtotop:hover {
    box-shadow: var(--shadow-xl);
    transform: scale(1.1);
    border-color: var(--color-ksi-blue);
}

.btn-backtotop svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: currentColor;
    transition: stroke var(--transition-fast);
}

.btn-backtotop .btt-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--color-ksi-blue);
    color: var(--color-white);
    font-size: 0.75rem;
    border-radius: 0.5rem;
    opacity: 0;
    transition: opacity var(--transition-fast);
    white-space: nowrap;
    pointer-events: none;
    box-shadow: var(--shadow-md);
}

.btn-backtotop:hover .btt-tooltip {
    opacity: 1;
}

/* ========================================
✅ COMPOSANTS : MENU & NAVIGATION
======================================== */
.floating-container {
    position: fixed;
    z-index: 50;
    display: flex;
    align-items: center;
    transition: transform var(--transition-fast);
}

.floating-container.left {
    left: 1rem;
    top: 1rem;
}

.floating-container.right {
    right: 1rem;
    top: 1rem;
    gap: 0.75rem;
}

/* ✅ CORRECTION #1 : Logo KSI rond avec tooltip */
.menu-logo-wrapper {
    position: relative;
    width: 80px;
    height: 50px;
    display: flex;
    align-items: center;
}

.menu-logo-btn {
    position: relative;
    z-index: 10;
    width: 75px;
    height: 75px;
    background: var(--color-white);
    border-radius: var(--radius-full);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    padding: 7px;
    overflow: visible;
    transition: border-color var(--transition-fast);
    cursor: pointer;
}

.menu-logo-btn:hover {
    border-color: var(--color-ksi-blue);
}

.menu-logo-btn img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Tooltip "Menu principal" */
.menu-logo-btn .menu-tooltip {
    position: absolute;
    left: 100%;
    margin-left: 1rem;
    padding: 0.375rem 0.75rem;
    background: var(--color-ksi-blue);
    color: var(--color-white);
    font-size: 0.75rem;
    border-radius: 0.5rem;
    opacity: 0;
    transition: opacity var(--transition-fast);
    white-space: nowrap;
    pointer-events: none;
    box-shadow: var(--shadow-md);
}

.menu-logo-btn:hover .menu-tooltip {
    opacity: 1;
}

.lang-selector {
    background: rgba(255,255,255,0.9);
    border-radius: var(--radius-full);
    padding: 0 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 40px;
    backdrop-filter: blur(4px);
}

.lang-selector span {
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: color var(--transition-fast);
}

.lang-selector .current {
    color: var(--color-ksi-blue);
}

.lang-selector .alt {
    color: var(--color-text-muted);
}

.lang-selector .alt:hover {
    color: var(--color-ksi-blue);
}

.lang-selector .separator {
    color: #d1d5db;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 20rem;
    background: var(--color-white);
    box-shadow: var(--shadow-xl);
    z-index: 50;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    will-change: transform;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header .logo-link {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-ksi-blue);
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-header .logo-link img {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: cover;
}

.sidebar-header .close-btn {
    color: #9ca3af;
    padding: 0.25rem;
    transition: color var(--transition-fast);
}

.sidebar-header .close-btn:hover {
    color: #4b5563;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0.75rem;
}

.sidebar-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-nav .nav-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-text);
    border-radius: var(--radius-lg);
    transition: background var(--transition-fast), color var(--transition-fast);
    font-weight: 500;
}

.sidebar-nav .nav-item:hover {
    background: #f9fafb;
    color: var(--color-ksi-blue);
}

.sidebar-nav .dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    color: var(--color-text);
    border-radius: var(--radius-lg);
    transition: background var(--transition-fast), color var(--transition-fast);
    text-align: left;
    font-weight: 500;
}

.sidebar-nav .dropdown-toggle:hover {
    background: #f9fafb;
    color: var(--color-ksi-blue);
}

.sidebar-nav .dropdown-icon {
    width: 1rem;
    height: 1rem;
    color: #9ca3af;
    transition: transform var(--transition-normal);
}

.sidebar-nav .dropdown-icon.rotate {
    transform: rotate(180deg);
}

.sidebar-nav .submenu {
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.sidebar-nav .submenu.open {
    max-height: 500px;
}

.sidebar-nav .submenu-link {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    border-radius: 0.375rem;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.sidebar-nav .submenu-link:hover {
    background: #f9fafb;
    color: var(--color-ksi-blue);
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #f3f4f6;
}

.sidebar-footer .btn-extranet {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--color-ksi-blue);
    color: var(--color-white);
    font-weight: 600;
    padding: 0.625rem;
    border-radius: var(--radius-lg);
    transition: background var(--transition-fast);
}

.sidebar-footer .btn-extranet:hover {
    background: #0a1f40;
}

/* ========================================
✅ COMPOSANTS : HERO SECTION (CORRIGÉ)
======================================== */
.hero {
    position: relative;
    min-height: 600px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: auto;
    overflow: visible;
    padding-top: 5rem;
}

.hero .container-full {
    width: 100%;
    max-width: none;
    padding: 0 2rem;
    margin: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15,44,89,0.9), rgba(15,44,89,0.4));
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--color-white);
    padding-top: 5rem;
    max-width: 48rem;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    text-align: left;
}

.hero-title .highlight {
    color: #93c5fd;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    color: #dbeafe;
    border-left: 4px solid #60a5fa;
    padding-left: 1.5rem;
    text-align: left;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: flex-start;
}

.hero-calendar-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
}

/* ========================================
✅ COMPOSANTS : SECTIONS CONTENU
======================================== */
.section {
    padding: 5rem 0;
}

.section.bg-light {
    background: #f9fafb;
}

.section.bg-white {
    background: var(--color-white);
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-ksi-blue);
    margin-bottom: 1.5rem;
}

.section-title.with-divider {
    position: relative;
    padding-bottom: 1rem;
}

.section-title.with-divider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 5rem;
    height: 0.25rem;
    background: var(--color-light-blue);
}

.section-subtitle {
    color: var(--color-text-muted);
    max-width: 42rem;
    margin: 1rem auto 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header.with-actions {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.section-header .view-all {
    color: var(--color-ksi-blue);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.section-header .view-all:hover {
    color: #1e40af;
}

/* ========================================
✅ COMPOSANTS : CARDS & FEATURES
======================================== */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: #dbeafe;
    color: var(--color-ksi-blue);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.feature-desc {
    color: var(--color-text-muted);
}

.card {
    background: var(--color-white);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: box-shadow var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-xl);
}

.card-media {
    height: 12rem;
    overflow: hidden;
}

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

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

.card-content {
    padding: 2rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-ksi-blue);
    margin-bottom: 0.75rem;
}

.card-desc {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.card-link {
    color: #2563eb;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition-fast);
}

.card-link:hover {
    color: #1e40af;
}

.news-card {
    background: var(--color-white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: box-shadow var(--transition-normal);
}

.news-card:hover {
    box-shadow: var(--shadow-xl);
}

.news-card .tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-light-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-card .title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0.5rem 0;
}

.news-card .excerpt {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .read-more {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-ksi-blue);
    transition: text-decoration var(--transition-fast);
}

.news-card .read-more:hover {
    text-decoration: underline;
}

/* === SECTORS === */
/* Sector Buttons Hero - Animation */
.sector-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.sector-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.sector-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sector-btn:hover::after {
    opacity: 1;
}

/* Section Cards */
.sector-card {
    transition: all 0.4s ease;
    border-left: 4px solid transparent;
}

.sector-card:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.sector-card.finance {
    border-left-color: #1E3A8A;
}

.sector-card.insurance {
    border-left-color: #0C4A6E;
}

.sector-card.credit {
    border-left-color: #1E40AF;
}

.sector-card.distribution {
    border-left-color: #0D9488;
}

.sector-card.telecom {
    border-left-color: #0891B2;
}

.sector-card.services {
    border-left-color: #7C3AED;
}

.sector-card.utilities {
    border-left-color: #EA580C;
}

.sector-card.agri {
    border-left-color: #16A34A;
}

/* Decorative blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.15;
    z-index: 0;
    animation: pulse-slow 8s ease-in-out infinite;
}

/* === IFRAME CONTAINER === */
.iframe-container {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ========================================
✅ COMPOSANTS : Missions buton hero
======================================== */
.mission-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
}
.mission-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.mission-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mission-btn:hover::after { opacity: 1; }

/* Mission Cards */
.mission-card {
  transition: all 0.4s ease;
  border-left: 4px solid transparent;
}
.mission-card:hover {
  transform: translateX(8px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.mission-card.strategie { border-left-color: #1E3A8A; }
.mission-card.marche { border-left-color: #0D9488; }
.mission-card.transformation { border-left-color: #7C3AED; }
.mission-card.performance { border-left-color: #EA580C; }
.mission-card.commercial { border-left-color: #DC2626; }
.mission-card.client { border-left-color: #059669; }
.mission-card.digital { border-left-color: #2563EB; }
.mission-card.data { border-left-color: #0891B2; }

/* Decorative blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.15;
  z-index: 0;
  animation: pulse-slow 8s ease-in-out infinite;
}

/* Interactive Diagram Styles */
.mission-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}
.group:hover .mission-content {
  max-height: 500px;
}

/* ========================================
✅ COMPOSANTS : Mentions légales
======================================== */
.legal-content {
    max-width: 48rem;
    margin: 0 auto;
}

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

.legal-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.legal-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-list li {
    margin-bottom: 0.5rem;
    color: #374151;
}

.legal-link {
    color: #2563eb;
    text-decoration: none;
}

.legal-link:hover {
    text-decoration: underline;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.legal-table th {
    background: var(--color-ksi-blue);
    color: white;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
}

.legal-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: #374151;
}

.legal-table tr:last-child td {
    border-bottom: none;
}

.legal-summary {
    max-width: 48rem;
    margin: 0 auto;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 3rem;
}

.legal-summary h2 {
    color: var(--color-ksi-blue);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.legal-summary ul {
    list-style: none;
    padding: 0;
}

.legal-summary li {
    margin-bottom: 0.5rem;
}

.legal-summary a {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.875rem;
}

.legal-summary a:hover {
    text-decoration: underline;
}

.legal-contact-box {
    background: var(--color-ksi-blue);
    color: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 4rem;
}

.legal-contact-box h2 {
    color: white;
    margin-bottom: 1rem;
}

.legal-contact-box p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.legal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.legal-btn-white {
    background: white;
    color: var(--color-ksi-blue);
}

.legal-btn-white:hover {
    background: #f0f9ff;
}

.legal-btn-outline {
    border: 2px solid white;
    color: white;
}

.legal-btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

.legal-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}
.legal-btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    }
.legal-last-update {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}
.legal-last-update strong {
    color: var(--color-ksi-blue);
}

/* ========================================
✅ COMPOSANTS : FOOTER
======================================== */
.footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo-link {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-brand .logo-link img {
    width: 2rem;
    height: 2rem;
    object-fit: cover;
}

.footer-brand .desc {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.625;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: #9ca3af;
    transition: color var(--transition-fast);
}

.footer-social a:hover {
    color: var(--color-white);
}

.footer-col-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #9ca3af;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-contact a {
    color: #9ca3af;
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.footer-bottom .langs {
    display: flex;
    gap: 1rem;
}

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

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* ========================================
✅ RESPONSIVE
======================================== */
/* Tablettes et plus */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: row;
    }

    .section-header.with-actions {
        text-align: left;
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-bottom .langs {
        margin-top: 0;
    }

    .grid-cols-1 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:flex-row {
        flex-direction: row;
    }

    .md\:w-1\/2 {
        width: 50%;
    }

    .md\:block {
        display: block;
    }

    .md\:hidden {
        display: none;
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .md\:text-2xl {
        font-size: 1.5rem;
    }

    .md\:text-4xl {
        font-size: 2.25rem;
    }

    .md\:text-7xl {
        font-size: 4.5rem;
    }

    .md\:mt-0 {
        margin-top: 0;
    }
}

/* Desktop : layout hero 2 colonnes */
@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        align-items: start;
    }

    .hero-content {
        padding-right: 1rem;
    }

    .hero-calendar-card {
        max-width: 100%;
        margin-left: 0;
    }
}

/* Mobile uniquement */
@media (max-width: 767px) {
    .md\:hidden {
        display: none;
    }

    .hero-calendar-card {
        margin: 0 auto;  /* Centrer la carte sur mobile */
    }
}

/* ========================================
✅ ACCESSIBILITÉ
======================================== */
:focus-visible {
    outline: 2px solid var(--color-ksi-blue);
    outline-offset: 2px;
}

[aria-hidden="true"] {
    pointer-events: none;
}