/* ================================================================
   RealCMB Group - Modern CSS
   Version: 2.0 - Merged Design
   ================================================================ */

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Colors */
    --primary: #0a1628;
    --accent: #0047c3;          /* Bleu du logo : boutons, icônes, fonds clairs */
    --accent-dark: #003a9e;     /* Survol */
    --accent-light: #6b9bff;    /* Même teinte, lisible sur fond bleu foncé */
    --accent-tint: rgba(0, 71, 195, 0.08);
    --accent-light-tint: rgba(107, 155, 255, 0.15);

    /* Text */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-white: #ffffff;

    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0a1628;
    --bg-gradient: linear-gradient(135deg, #0a1628 0%, #1e3a5f 100%);

    /* Borders & Shadows */
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);

    /* Spacing */
    --section-padding: 100px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul, ol {
    list-style: none;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

h2 {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.text-accent {
    color: var(--accent-light);
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-primary {
    --bs-btn-bg: var(--accent);
    --bs-btn-hover-bg: var(--accent-dark);
    --bs-btn-active-bg: var(--accent-dark);
    --bs-btn-active-border-color: transparent;
    --bs-btn-disabled-bg: var(--accent);
    color: var(--text-white);
    border-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 71, 195, 0.3);
    color: var(--text-white);
}

.btn-outline-light {
    background: transparent;
    color: var(--text-white);
    border-color: rgba(255,255,255,0.3);
}

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

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

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition-normal);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO - Better display like folder 4 */
.logo img {
    height: 80px;
    max-height: 80px;
    transition: var(--transition-normal);
}

.header.scrolled .logo img {
    height: 60px;
    max-height: 60px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-white);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.header.scrolled .nav-link {
    color: var(--text-primary);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    background: var(--accent);
    color: var(--text-white);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-white);
    transition: var(--transition-normal);
}

.header.scrolled .nav-toggle span {
    background: var(--text-primary);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.9) 0%, rgba(30, 58, 95, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 80px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    color: var(--accent-light);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero-title {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    max-width: 1000px;
}

.hero-title span {
    display: block;
}

.hero-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    max-width: 650px;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.hero-scroll a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-light);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

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

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

.section-dark .section-title,
.section-dark h3,
.section-dark h4 {
    color: var(--text-white);
}

.section-dark p {
    color: rgba(255, 255, 255, 0.7);
}

.section-gradient {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

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

.section-tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--accent-tint);
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.section-dark .section-tag {
    background: var(--accent-light-tint);
    color: var(--accent-light);
}

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

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ==================== POLE CARDS (About) ==================== */
.pole-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    height: 100%;
}

.pole-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.pole-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-white);
    transition: var(--transition-normal);
}

.pole-card:hover .pole-icon {
    transform: scale(1.1) rotate(5deg);
}

.pole-card h4 {
    margin-bottom: 0.5rem;
}

.pole-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Mission Box */
.mission-box {
    margin-top: 4rem;
    padding: 2.5rem;
    background: var(--bg-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.mission-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--accent-light);
}

.mission-content h3 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.mission-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* ==================== EXPERTISE BINDER (classeur défilant) ==================== */
.binder-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.binder-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-align: left;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-normal);
}

.binder-nav-item:hover {
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.25);
}

.binder-nav-item.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-light);
    color: var(--text-white);
}

.binder-nav-num {
    font-size: 0.85rem;
    color: var(--accent-light);
    font-variant-numeric: tabular-nums;
}

/* Barre de progression de l'onglet actif : sa fin déclenche le passage à la carte suivante (JS) */
.binder-nav-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-light);
    transform: scaleX(0);
    transform-origin: left;
}

.binder-nav-item.active .binder-nav-progress {
    animation: binder-progress 6s linear forwards;
}

.binder.is-paused .binder-nav-progress {
    animation-play-state: paused;
}

.binder.no-autoplay .binder-nav-progress {
    display: none;
}

@keyframes binder-progress {
    to { transform: scaleX(1); }
}

.binder-controls {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.binder-control {
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-white);
    cursor: pointer;
    transition: var(--transition-normal);
}

.binder-control:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* Pile de cartes : toutes dans la même cellule de grille (hauteur = carte la plus haute),
   décalées en diagonale selon leur rang --slot (0 = devant) */
.binder-stack {
    --dx: 36px;
    --dy: 30px;
    --dz: 60px;
    --card-bg: #132a4f;
    display: grid;
    padding-top: calc(2.5rem + var(--depth, 3) * var(--dy));   /* onglets + cartes en retrait */
    padding-right: calc(var(--depth, 3) * var(--dx));
    perspective: 1400px;
    touch-action: pan-y;
    user-select: none;
}

.binder-card {
    --slot: 0;
    grid-area: 1 / 1;
    position: relative;
    background: var(--card-bg);
    border: 1px solid rgba(107, 155, 255, 0.25);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    transform: translate3d(calc(var(--slot) * var(--dx) * var(--dir, 1)), calc(var(--slot) * var(--dy) * -1), calc(var(--slot) * var(--dz) * -1));
    filter: brightness(calc(1 - var(--slot) * 0.12));
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.6s ease, opacity 0.45s ease;
    cursor: pointer;
}

.binder-card[aria-hidden="false"] {
    cursor: auto;
    user-select: text;
}

/* Variante miroir : cartes en retrait décalées vers la gauche */
.binder-stack-mirror {
    --dir: -1;
    padding-right: 0;
    padding-left: calc(var(--depth, 3) * var(--dx));
}

/* Carte qui quitte l'avant : elle tombe et s'efface avant de repasser derrière */
.binder-card.is-leaving {
    transform: translate3d(0, 60%, 0) rotate(-3deg);
    opacity: 0;
}

.binder-card.no-transition {
    transition: none;
}

/* Onglet d'intercalaire, à une position horizontale propre à chaque carte */
.folder-tab {
    position: absolute;
    bottom: calc(100% - 1px);
    left: calc(1.5rem + var(--i) * var(--tab-step, 22%));
    padding: 0.4rem 1rem;
    background: var(--card-bg);
    border: 1px solid rgba(107, 155, 255, 0.25);
    border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    color: var(--accent-light);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.binder-watermark {
    position: absolute;
    right: 1.5rem;
    bottom: 0.5rem;
    font-size: 6rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.binder-card-header {
    margin-bottom: 1.5rem;
}

.binder-card-icon {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.binder-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.expertise-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--accent-light-tint);
    color: var(--accent-light);
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.expertise-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.expertise-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.expertise-item i {
    color: var(--accent-light);
    flex-shrink: 0;
}

/* ==================== MARQUEE (bandeaux défilants) ==================== */
.marquee {
    overflow: hidden;
    padding-block: 1.5rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 45s linear infinite;
}

.marquee-reverse .marquee-track {
    animation-direction: reverse;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

/* Les deux groupes sont identiques : décaler d'un groupe (-50%) boucle sans saut */
.marquee-group {
    display: flex;
    gap: 1.5rem;
    padding-right: 1.5rem;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ==================== CLIENTS ==================== */
.client-logo {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    flex: 0 0 180px;
    height: 100px;
}

.client-logo-text {
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
}

.client-logo:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.client-logo img {
    max-height: 50px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition-normal);
}

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

.contrib-card {
    position: relative;
    height: 100%;
    padding: 2rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.contrib-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--accent);
}

.contrib-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contrib-badge {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--accent-tint);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent);
}

.contrib-header h4 {
    margin-bottom: 0.15rem;
}

.contrib-header p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.contrib-links {
    display: grid;
    gap: 0.75rem;
}

.contrib-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem 0.75rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.contrib-link:hover {
    border-color: var(--accent);
    background: var(--accent-tint);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.contrib-logo {
    flex: 0 0 104px;
    height: 60px;
    padding: 0.4rem;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contrib-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.contrib-name {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.contrib-name small {
    display: block;
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.contrib-link .bi-arrow-up-right {
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.contrib-link:hover .bi-arrow-up-right {
    color: var(--accent);
    transform: translate(3px, -3px);
}

/* ==================== COMMITMENTS ==================== */
.commitment-card {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.commitment-text {
    max-width: 30ch;
    margin-bottom: 0;
    font-size: 1.25rem;
}

/* ==================== INDUSTRIES ==================== */
.industry-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--accent-tint);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    transition: var(--transition-normal);
}

.industry-card:hover .industry-icon {
    background: var(--accent);
    color: var(--text-white);
}

.industry-card {
    flex: 0 0 180px;
    background: var(--bg-white);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.industry-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.industry-card h4 {
    font-size: 1rem;
    margin-bottom: 0;
}

/* ==================== INTERNATIONAL ==================== */
.feature-list {
    margin-top: 1.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list i {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    flex-shrink: 0;
}

.world-map {
    position: relative;
}

.world-map img,
.world-map-overlay {
    display: block;
    width: 100%;
    height: auto;
}

.world-map-overlay {
    position: absolute;
    inset: 0;
    overflow: visible;
}

.map-lines path {
    fill: none;
    stroke: var(--accent-light);
    stroke-width: 1.5;
    stroke-dasharray: 4 6;
    opacity: 0.6;
    animation: map-dash 1.2s linear infinite;
}

@keyframes map-dash {
    to { stroke-dashoffset: -20; }
}

.map-dots .dot {
    fill: var(--accent-light);
}

.map-dots .dot-active {
    fill: var(--text-white);
    stroke: var(--accent-light);
    stroke-width: 3;
}

.map-dots .dot-pulse {
    fill: var(--accent-light);
    transform-box: fill-box;
    transform-origin: center;
    animation: map-pulse 2s ease-out infinite;
}

@keyframes map-pulse {
    from { transform: scale(0.5); opacity: 0.6; }
    to { transform: scale(2.5); opacity: 0; }
}

/* ==================== CONTACT ==================== */
.contact-info {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    height: 100%;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-white);
    flex-shrink: 0;
}

.contact-item h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-item p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

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

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--accent);
    color: var(--text-white);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-floating > .form-control {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.form-floating > .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-tint);
}

.form-floating > label {
    padding: 1rem;
}

/* ==================== MAP ==================== */
.map-section {
    line-height: 0;
}

.map-section iframe {
    filter: grayscale(20%);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 5rem 0 2rem;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-brand .sitename {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

.footer h5 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-fast);
}

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

.footer p {
    color: rgba(255, 255, 255, 0.6);
}

/* Newsletter Form */
.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-light);
    box-shadow: none;
    color: var(--text-white);
}

.newsletter-form .btn {
    padding: 0.75rem 1.25rem;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

/* Mention d'information sous les formulaires */
.form-notice {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    line-height: 1.5;
}

.form-notice a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ==================== LEGAL PAGES ==================== */
.page-hero {
    background: var(--bg-gradient);
    padding: 180px 0 80px;
}

.page-hero h1 {
    color: var(--text-white);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    margin-bottom: 0.75rem;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-nav a:hover {
    color: var(--accent-light);
}

.breadcrumb-nav i {
    font-size: 0.7rem;
}

.legal-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 110px;
    padding: 1.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.legal-toc h2 {
    margin-bottom: 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.legal-toc ol {
    display: grid;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
}

.legal-toc a {
    display: block;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.legal-toc a:hover {
    background: var(--accent-tint);
    color: var(--accent);
}

.legal-content {
    max-width: 760px;
}

.legal-content h2 {
    margin: 3rem 0 1rem;
    font-size: 1.5rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

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

.legal-content li {
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
}

.legal-content li strong,
.legal-content p strong {
    color: var(--text-primary);
}

.legal-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-card {
    margin-bottom: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-light);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-md);
}

.legal-card dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.5rem 1.5rem;
    margin: 0;
}

.legal-card dt {
    font-weight: 600;
    color: var(--text-primary);
}

.legal-card dd {
    margin: 0;
    color: var(--text-secondary);
}

.legal-todo {
    padding: 0 0.25rem;
    background: #fff3cd;
    color: #856404;
    border-radius: 4px;
}

.legal-table-wrap {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
    color: var(--text-secondary);
}

.legal-table th {
    background: var(--bg-light);
    color: var(--text-primary);
}

.legal-see-also {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* ==================== SCROLL TO TOP ==================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

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

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    color: var(--text-white);
}

/* ==================== ANIMATIONS ==================== */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
    :root {
        --section-padding: 80px;
    }

    /* Expertises : onglets en ligne au-dessus de la pile */
    .binder-nav {
        flex-direction: row;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .binder-nav-item {
        flex: 0 0 auto;
        width: auto;
        white-space: nowrap;
    }

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

    /* Pages légales : sommaire au-dessus du contenu */
    .legal-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .legal-toc {
        position: static;
    }

    /* Mobile Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        padding: 100px 2rem 2rem;
        gap: 0;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-xl);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        color: var(--text-primary);
        border-bottom: 1px solid var(--border-color);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span {
        background: var(--text-primary);
    }

    /* Mission Box */
    .mission-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 767px) {
    :root {
        --section-padding: 60px;
    }

    /* Logo */
    .logo img {
        height: 60px;
        max-height: 60px;
    }

    .header.scrolled .logo img {
        height: 50px;
        max-height: 50px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-scroll {
        display: none;
    }

    .pole-card {
        padding: 1.5rem;
    }

    .binder-stack {
        --dx: 12px;
        --dy: 22px;
        --dz: 30px;
    }

    .binder-card {
        padding: 1.5rem;
    }

    .folder-tab {
        left: calc(1rem + var(--i) * 2.75rem);
        padding: 0.35rem 0.75rem;
    }

    .folder-tab-label {
        display: none;
    }

    .binder-watermark {
        font-size: 4rem;
    }

    .expertise-list {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }

    .footer {
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer .social-links {
        justify-content: center;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 575px) {
    .section-header {
        margin-bottom: 2.5rem;
    }

    .client-logo,
    .industry-card {
        flex-basis: 150px;
    }

    .client-logo {
        height: 80px;
        padding: 1rem;
    }

    .industry-card {
        padding: 1.25rem 1rem;
    }

    .industry-icon {
        width: 64px;
        height: 64px;
        font-size: 1.6rem;
    }
}

/* ==================== PREFERS REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .marquee {
        overflow-x: auto;
    }

    .marquee-track {
        animation: none;
    }

    .marquee-group[aria-hidden="true"] {
        display: none;
    }
}
