/* ==============================
   MRC GROUPE — SITE VITRINE
   Brand: navy #1F3F73 + orange #EA7C2C + silver #9C9C9C
   ============================== */

:root {
    /* Palette extraite directement du logo MRC Groupe */
    --navy-900: #0F2547;
    --navy-800: #16315E;
    --navy-700: #1F3F73;     /* MRC text — navy principal */
    --navy-600: #2A4F88;
    --navy-500: #3661A0;
    --navy-400: #5A7EB8;
    --orange-600: #C2611C;
    --orange-500: #EA7C2C;   /* swoosh du logo — orange chaud */
    --orange-400: #F08D43;
    --orange-300: #F4A56C;
    --silver-600: #6F6F70;
    --silver-500: #9C9C9C;   /* GROUPE text — gris du logo */
    --silver-400: #B9B9BA;
    --silver-300: #D4D4D5;
    --gray-50: #F5F6F8;       /* fond doux proche du fond du logo */
    --gray-100: #EBEDF1;
    --gray-200: #D8DCE3;
    --gray-300: #B0B7C2;
    --gray-500: #6B7585;
    --gray-700: #38414F;
    --gray-900: #141C28;
    --white: #FFFFFF;

    --grad-primary: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-900) 100%);
    --grad-accent: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 100%);
    --grad-mix: linear-gradient(135deg, var(--orange-500) 0%, var(--navy-700) 100%);
    --grad-silver: linear-gradient(135deg, var(--silver-400) 0%, var(--silver-600) 100%);

    --shadow-sm: 0 2px 6px rgba(14, 35, 71, 0.06);
    --shadow-md: 0 8px 24px rgba(14, 35, 71, 0.10);
    --shadow-lg: 0 18px 48px rgba(14, 35, 71, 0.16);
    --shadow-glow: 0 0 40px rgba(234, 124, 44, 0.35);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 999px;

    --font-display: 'Montserrat', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --container: 1240px;
    --header-h: 80px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: all .25s ease; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--gray-900); line-height: 1.2; font-weight: 700; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--orange-500);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: ''; width: 28px; height: 2px; background: var(--orange-500);
}
.eyebrow-light { color: var(--orange-400); }
.eyebrow-light::before { background: var(--orange-400); }

/* ==============================
   PRELOADER
============================== */
.preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--grad-primary);
    display: flex; align-items: center; justify-content: center;
    transition: opacity .6s ease, visibility .6s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-content { text-align: center; }
.preloader-logo img { width: 380px; max-width: 80vw; margin: 0 auto 28px; filter: drop-shadow(0 10px 28px rgba(0,0,0,0.45)) brightness(1.05); animation: pulse 1.6s ease-in-out infinite; background: rgba(255,255,255,0.95); padding: 22px 30px; border-radius: 14px; }
.preloader-bar { width: 200px; height: 3px; background: rgba(255,255,255,0.15); border-radius: 4px; overflow: hidden; margin: 0 auto; }
.preloader-bar span { display: block; height: 100%; background: var(--orange-500); animation: loadBar 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes loadBar { 0% { width: 0; transform: translateX(0); } 50% { width: 80%; } 100% { width: 0; transform: translateX(200px); } }

/* ==============================
   HEADER
============================== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--header-h);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(31, 63, 115, 0.06);
    transition: all .3s ease;
}
.header.scrolled {
    background: rgba(255,255,255,0.96);
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 100%;
}
.brand {
    display: flex; align-items: center;
    transition: transform .3s ease;
}
.brand:hover { transform: translateY(-1px); }
.brand-logo {
    height: 50px; width: auto; max-width: 340px;
    filter: drop-shadow(0 2px 4px rgba(31, 63, 115, 0.12));
}

.nav ul { display: flex; align-items: center; gap: 6px; }
.nav-link {
    position: relative;
    padding: 10px 16px;
    font-family: var(--font-display);
    font-weight: 600; font-size: 14px;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
}
.nav-link:hover { color: var(--navy-700); background: var(--gray-100); }
.nav-link.active { color: var(--orange-500); }
.nav-cta {
    background: var(--grad-accent); color: var(--white) !important;
    padding: 11px 22px; box-shadow: 0 4px 14px rgba(234,124,44,0.35);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(234,124,44,0.45); background: var(--grad-accent); }

.burger {
    display: none; flex-direction: column; gap: 5px; padding: 8px;
}
.burger span {
    width: 26px; height: 2px; background: var(--navy-700); border-radius: 2px;
    transition: all .3s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==============================
   BUTTONS
============================== */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-display); font-weight: 600; font-size: 14px;
    border-radius: var(--radius-full);
    transition: all .3s cubic-bezier(.2,.7,.3,1);
    letter-spacing: 0.3px;
    cursor: pointer;
}
.btn-primary {
    background: var(--grad-accent); color: var(--white);
    box-shadow: 0 8px 22px rgba(234,124,44,0.40);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(234,124,44,0.55); }
.btn-primary i { transition: transform .3s ease; }
.btn-primary:hover i { transform: translateX(4px); }
.btn-ghost {
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--white); color: var(--navy-700); border-color: var(--white); }
.btn-full { width: 100%; justify-content: center; }

/* ==============================
   HERO — Central diagram
============================== */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 80px;
    background: var(--grad-primary);
    color: var(--white);
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; pointer-events: none;
}
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-glow {
    position: absolute; width: 520px; height: 520px; border-radius: 50%;
    filter: blur(120px); opacity: 0.45;
}
.hero-glow-1 { background: var(--orange-500); top: -150px; right: -100px; }
.hero-glow-2 { background: var(--navy-500); bottom: -200px; left: -100px; opacity: 0.55; }

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 60px;
    align-items: center;
}
.hero-text .eyebrow { color: var(--orange-400); }
.hero-text .eyebrow::before { background: var(--orange-400); }
.hero-title {
    font-size: clamp(34px, 4.6vw, 60px);
    line-height: 1.08;
    color: var(--white);
    font-weight: 800;
    margin-bottom: 22px;
    letter-spacing: -1px;
}
.hero-sub {
    font-size: 18px; line-height: 1.7;
    color: rgba(255,255,255,0.78);
    margin-bottom: 38px;
    max-width: 520px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-tagline {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin-top: 42px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.85);
}
.hero-tagline .dot {
    color: var(--orange-400);
    font-size: 18px;
    line-height: 1;
}
.hero-tagline span:not(.dot) {
    position: relative;
    transition: color .3s ease;
}
.hero-tagline span:not(.dot):hover { color: var(--orange-400); }

/* === Diagram === */
.diagram-wrap {
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.diagram {
    position: relative;
    width: min(700px, 100%);
    aspect-ratio: 1;
    max-width: 700px;
}
.diagram-cables {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: 1;
    overflow: visible;
}
.cable-path {
    fill: none;
    stroke: rgba(255,255,255,0.18);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 6 6;
    animation: dashFlow 22s linear infinite;
}
.cable-path-glow {
    fill: none;
    stroke: url(#cableGrad);
    stroke-width: 3;
    stroke-linecap: round;
    opacity: 0.55;
    filter: url(#cableGlow);
}
@keyframes dashFlow {
    to { stroke-dashoffset: -200; }
}
.pulse-dot {
    fill: var(--orange-500);
    filter: drop-shadow(0 0 8px var(--orange-500));
}

/* Central Hub */
.hub {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 36%;
    aspect-ratio: 1;
    z-index: 5;
}
.hub-inner {
    position: relative;
    width: 100%; height: 100%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, var(--white) 0%, #F5F6F8 60%, #EBEDF1 100%);
    box-shadow:
        0 0 0 6px rgba(255,255,255,0.10),
        0 0 0 7px rgba(234,124,44,0.30),
        0 0 0 14px rgba(255,255,255,0.06),
        0 25px 70px rgba(0,0,0,0.50),
        inset 0 -12px 30px rgba(31,63,115,0.08);
    display: flex; align-items: center; justify-content: center;
    z-index: 3;
    animation: hubFloat 6s ease-in-out infinite;
}
.hub-logo {
    width: 88%;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(31,63,115,0.25));
}
.hub-pulse {
    position: absolute; inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--orange-500);
    opacity: 0;
    animation: hubPulse 3s ease-out infinite;
    z-index: 2;
}
.hub-pulse-2 { animation-delay: 1s; border-color: rgba(255,255,255,0.5); }
.hub-pulse-3 { animation-delay: 2s; border-color: var(--orange-400); }
@keyframes hubPulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.8); opacity: 0; }
}
@keyframes hubFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Node circles */
.node {
    position: absolute;
    width: 22%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255,255,255,0.18);
    box-shadow:
        0 12px 32px rgba(0,0,0,0.30),
        inset 0 1px 0 rgba(255,255,255,0.15);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 10px;
    text-align: center;
    color: var(--white);
    z-index: 4;
    transition: all .4s cubic-bezier(.2,.7,.3,1);
    animation: nodeFloat 7s ease-in-out infinite;
}
.node:hover {
    transform: scale(1.12);
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.45);
    box-shadow: 0 20px 50px rgba(234,124,44,0.45);
    z-index: 6;
}
.node-icon {
    width: 42%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--grad-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: clamp(14px, 2.4vw, 22px);
    margin-bottom: 6px;
    box-shadow: 0 6px 18px rgba(234,124,44,0.45);
}
.node[data-color="#1F3F73"] .node-icon {
    background: linear-gradient(135deg, var(--navy-400) 0%, var(--navy-600) 100%);
    box-shadow: 0 6px 18px rgba(31,63,115,0.55);
}
.node-label {
    display: flex; flex-direction: column; line-height: 1.1;
    font-family: var(--font-display);
}
.node-label strong {
    font-size: clamp(11px, 1.2vw, 14px);
    font-weight: 700;
    letter-spacing: 0.3px;
}
.node-label span {
    font-size: clamp(9px, 0.85vw, 11px);
    opacity: 0.75;
    margin-top: 2px;
    font-weight: 400;
}

/* Position nodes around the hub (hexagonal layout) */
.node-1 { top: 2%;  left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.node-2 { top: 25%; right: 0%; animation-delay: 0.8s; }
.node-3 { bottom: 25%; right: 0%; animation-delay: 1.6s; }
.node-4 { bottom: 2%; left: 50%; transform: translateX(-50%); animation-delay: 2.4s; }
.node-5 { bottom: 25%; left: 0%; animation-delay: 3.2s; }
.node-6 { top: 25%; left: 0%; animation-delay: 4s; }

.node-1:hover, .node-4:hover { transform: translateX(-50%) scale(1.12); }

@keyframes nodeFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
}

/* Scroll-down indicator */
.scroll-down {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    width: 28px; height: 46px;
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 16px;
    display: flex; justify-content: center;
    padding-top: 8px;
    z-index: 5;
}
.scroll-down span {
    display: block;
    width: 4px; height: 8px;
    background: var(--orange-400);
    border-radius: 4px;
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(14px); opacity: 0; }
}

/* ==============================
   SECTIONS — common
============================== */
.section {
    position: relative;
    padding: 110px 0;
}
.section-head { text-align: center; max-width: 760px; margin: 0 auto 70px; }
.section-head-light .section-title,
.section-head-light .section-sub { color: var(--white); }
.section-title {
    font-size: clamp(30px, 3.5vw, 46px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.section-sub {
    font-size: 17px; line-height: 1.7; color: var(--gray-500);
}
.section-sub-light { color: rgba(255,255,255,0.75); }

/* ==============================
   ABOUT
============================== */
.section-about { background: var(--gray-50); }
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
    margin-bottom: 70px;
}
.about-block {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}
.about-block:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.about-block::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--grad-mix);
}
.about-block-accent::before { background: var(--grad-accent); }
.about-icon {
    width: 60px; height: 60px;
    border-radius: var(--radius-md);
    background: var(--grad-primary);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin-bottom: 22px;
    box-shadow: 0 8px 22px rgba(31,63,115,0.30);
}
.about-block-accent .about-icon { background: var(--grad-accent); box-shadow: 0 8px 22px rgba(234,124,44,0.35); }
.about-block h3 { font-size: 24px; margin-bottom: 14px; color: var(--navy-700); }
.about-block p { font-size: 16px; line-height: 1.75; }

.stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    padding: 50px 40px;
    background: var(--grad-primary);
    border-radius: var(--radius-lg);
    color: var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.stats::before {
    content: ''; position: absolute; top: -50%; right: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(234,124,44,0.25), transparent 70%);
    pointer-events: none;
}
.stat { text-align: center; position: relative; z-index: 1; }
.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 56px; font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--orange-400) 0%, var(--orange-500) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}
.stat-num::after { content: '+'; font-size: 36px; vertical-align: top; }
.stat-label {
    font-family: var(--font-display);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

/* ==============================
   FILIALES detail
============================== */
.section-filiales { background: var(--white); }
.filiale {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    transition: all .35s ease;
    scroll-margin-top: 100px;
}
.filiale:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.filiale-head {
    display: flex; align-items: center; gap: 24px;
    padding: 32px 40px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--gray-100);
}
.filiale-icon {
    width: 72px; height: 72px;
    border-radius: var(--radius-md);
    background: var(--grad-primary);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: 0 10px 28px rgba(31,63,115,0.30);
    position: relative;
}
.filiale-icon::after {
    content: ''; position: absolute; bottom: -6px; right: -6px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--orange-500);
    border: 3px solid var(--white);
}
.filiale-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 12px; font-weight: 600;
    color: var(--orange-500);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}
.filiale-head h3 { font-size: 28px; color: var(--navy-700); }

.filiale-body { padding: 40px; }
.filiale-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.filiale-col h4 {
    font-size: 15px;
    color: var(--orange-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-100);
}
.filiale-col ul li {
    padding: 8px 0 8px 22px;
    position: relative;
    font-size: 15px;
}
.filiale-col ul li::before {
    content: ''; position: absolute; left: 0; top: 16px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--orange-500);
}

/* Tech grid (filiale 2) */
.filiale-body-tech {
    grid-template-columns: repeat(3, 1fr);
}
.tech-card {
    padding: 28px 24px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-100);
    transition: all .3s ease;
}
.tech-card:hover {
    transform: translateY(-5px);
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-color: var(--orange-300);
}
.tech-card-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-sm);
    background: var(--grad-accent);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
    box-shadow: 0 6px 16px rgba(234,124,44,0.30);
}
.tech-card h4 {
    font-size: 17px;
    color: var(--navy-700);
    margin-bottom: 10px;
    text-transform: none;
    letter-spacing: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.tech-card p { font-size: 14px; line-height: 1.6; color: var(--gray-500); }

/* Simple filiale (single list) */
.filiale-body-simple { grid-template-columns: 1fr; }
.filiale-list li {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 16px;
}
.filiale-list li:last-child { border-bottom: none; }
.filiale-list li i {
    color: var(--white);
    background: var(--grad-accent);
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

/* ==============================
   VALEURS
============================== */
.section-valeurs {
    background: var(--grad-primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.section-valeurs::before {
    content: ''; position: absolute;
    top: 10%; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(234,124,44,0.20), transparent 70%);
    pointer-events: none;
}
.valeurs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.valeur {
    position: relative;
    padding: 36px 28px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-lg);
    transition: all .4s ease;
    overflow: hidden;
}
.valeur:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.10);
    border-color: var(--orange-500);
    box-shadow: 0 20px 50px rgba(0,0,0,0.30), 0 0 30px rgba(234,124,44,0.20);
}
.valeur-num {
    position: absolute;
    top: 20px; right: 24px;
    font-family: var(--font-display);
    font-size: 56px; font-weight: 800;
    line-height: 1;
    color: rgba(255,255,255,0.06);
    transition: color .3s ease;
}
.valeur:hover .valeur-num { color: rgba(234,124,44,0.30); }
.valeur-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    background: var(--grad-accent);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
    box-shadow: 0 8px 22px rgba(234,124,44,0.35);
}
.valeur h3 {
    color: var(--white);
    font-size: 22px;
    margin-bottom: 12px;
}
.valeur p {
    color: rgba(255,255,255,0.78);
    font-size: 15px;
    line-height: 1.65;
}

/* ==============================
   PARTENAIRES
============================== */
.section-partenaires { background: var(--gray-50); }
.partners-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.partner {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid var(--gray-100);
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}
.partner::before {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 0; height: 4px;
    background: var(--grad-accent);
    transition: width .4s ease;
}
.partner:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.partner:hover::before { width: 100%; }
.partner-flag {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-display);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--orange-500);
    font-weight: 600;
    background: rgba(234,124,44,0.08);
    padding: 5px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 14px;
}
.partner h4 {
    font-size: 19px;
    color: var(--navy-700);
    margin-bottom: 8px;
}
.partner p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--gray-500);
}

/* ==============================
   REFERENCES
============================== */
.section-references {
    background: var(--navy-900);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.section-references::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at top right, rgba(234,124,44,0.18), transparent 60%);
    pointer-events: none;
}
.refs-tabs {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
    margin-bottom: 40px;
}
.refs-tab {
    padding: 12px 24px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-full);
    transition: all .3s ease;
}
.refs-tab:hover { color: var(--white); background: rgba(255,255,255,0.10); }
.refs-tab.active {
    background: var(--grad-accent);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 8px 22px rgba(234,124,44,0.40);
}
.refs-panel { display: none; animation: fadeUp .5s ease; }
.refs-panel.active { display: block; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.refs-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.ref-item {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 22px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    font-size: 14.5px;
    color: rgba(255,255,255,0.88);
    transition: all .3s ease;
}
.ref-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--orange-500);
    transform: translateX(6px);
}
.ref-item i {
    color: var(--orange-500);
    font-size: 18px;
    flex-shrink: 0;
}

/* ==============================
   CONTACT
============================== */
.section-contact { background: var(--gray-50); padding-bottom: 130px; }
.contact-wrap {
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px;
    align-items: start;
}
.contact-info .section-title { text-align: left; }
.contact-intro { font-size: 17px; line-height: 1.7; margin-bottom: 36px; }
.contact-list { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
    display: flex; align-items: center; gap: 18px;
    padding: 20px 26px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: all .3s ease;
}
.contact-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    border-color: var(--orange-300);
}
.contact-item-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-sm);
    background: var(--grad-accent);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(234,124,44,0.35);
}
.contact-item span {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: 2px;
}
.contact-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--navy-700);
    font-weight: 600;
}

.contact-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 44px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
}
.contact-form h3 {
    font-size: 24px;
    color: var(--navy-700);
    margin-bottom: 28px;
}
.form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
    margin-bottom: 18px;
}
.form-field { display: flex; flex-direction: column; margin-bottom: 18px; }
.form-field label {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-700);
    margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
    font: inherit;
    padding: 14px 16px;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius-sm);
    color: var(--gray-900);
    transition: all .25s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--orange-500);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(234,124,44,0.10);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-success {
    display: none;
    padding: 14px;
    margin-top: 16px;
    background: rgba(34, 139, 34, 0.08);
    color: #1d6b1d;
    border: 1px solid rgba(34, 139, 34, 0.2);
    border-radius: var(--radius-sm);
    font-size: 14px;
    text-align: center;
}
.form-success.show { display: block; }

/* ==============================
   FOOTER
============================== */
.footer {
    background: var(--navy-900);
    color: rgba(255,255,255,0.75);
    padding-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
    height: 70px; width: auto; max-width: 100%;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.96);
    padding: 12px 18px;
    border-radius: 10px;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.35));
}
.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 22px;
    max-width: 340px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.8);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    transition: all .3s ease;
}
.footer-social a:hover {
    background: var(--orange-500);
    color: var(--white);
    transform: translateY(-3px);
}
.footer-col h5 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}
.footer-col h5::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 28px; height: 2px;
    background: var(--orange-500);
}
.footer-col ul li {
    margin-bottom: 10px;
    font-size: 14px;
}
.footer-col ul a:hover { color: var(--orange-400); padding-left: 4px; }
.footer-contact li {
    display: flex; align-items: center; gap: 10px;
    color: rgba(255,255,255,0.75);
}
.footer-contact i {
    color: var(--orange-500);
    font-size: 13px;
    width: 18px;
}
.footer-bottom {
    padding: 24px 0;
    background: rgba(0,0,0,0.25);
}
.footer-bottom-inner {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
}

/* Back to top */
.back-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--grad-accent);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    box-shadow: 0 8px 22px rgba(234,124,44,0.40);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all .3s ease;
    z-index: 999;
}
.back-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(234,124,44,0.55); }

/* ==============================
   ANIMATIONS (intersection)
============================== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 1100px) {
    .hero-content { grid-template-columns: 1fr; gap: 60px; }
    .diagram { max-width: 560px; margin: 0 auto; }
    .hero { min-height: auto; padding-bottom: 100px; }
    .filiale-body, .filiale-body-tech { grid-template-columns: repeat(2, 1fr); }
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .valeurs-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-wrap { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .nav { position: fixed; top: var(--header-h); left: 0; right: 0;
        background: var(--white); padding: 20px; box-shadow: var(--shadow-md);
        transform: translateY(-150%); transition: transform .3s ease;
    }
    .nav.open { transform: translateY(0); }
    .nav ul { flex-direction: column; gap: 4px; align-items: stretch; }
    .nav-link { display: block; padding: 14px 18px; }
    .burger { display: flex; }
    .hero-title { font-size: 32px; }
    .hero-sub { font-size: 16px; }
    .about-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; padding: 36px 20px; gap: 30px; }
    .stat-num { font-size: 42px; }
    .filiale-head { flex-direction: column; align-items: flex-start; padding: 26px; }
    .filiale-body, .filiale-body-tech { grid-template-columns: 1fr; padding: 26px; }
    .valeurs-grid { grid-template-columns: 1fr; }
    .partners-grid { grid-template-columns: 1fr; }
    .refs-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 28px; }
    .brand-logo { height: 36px; max-width: 220px; }
    .diagram { max-width: 380px; }
    .node-label span { display: none; }
}

@media (max-width: 480px) {
    .hero { padding-top: calc(var(--header-h) + 20px); }
    .hero-title { font-size: 28px; }
    .section-title { font-size: 26px; }
    .btn { padding: 12px 20px; font-size: 13px; }
    .diagram { max-width: 320px; }
    .node-label strong { font-size: 9px; }
    .filiale-head h3 { font-size: 22px; }
}
