/* ============================================
   RQSI CONGO — REDESIGN v2
   Palette: Navy Blue #0B1F3A + Crimson Red #C8102E
   Inspired by the new R-QSI Congo logo
   ============================================ */

/* ---- FONTS ---- */
/* Syne: display/headings - geometric, authoritative */
/* DM Sans: body - clean, modern readability */

:root {
    /* === LOGO-ALIGNED PALETTE === */
    --primary:       #0B1F3A;   /* Navy blue foncé (cercle extérieur du logo) */
    --primary-mid:   #0D2547;   /* Navy mid */
    --primary-light: #153060;   /* Navy clair */
    --red:           #C8102E;   /* Rouge vif du logo */
    --red-dim:       rgba(200, 16, 46, 0.15);
    --red-glow:      0 8px 32px rgba(200, 16, 46, 0.35);
    --accent:        #1A6FBF;   /* Bleu accent du logo */
    --accent-light:  #2E8DE8;
    --white:         #FFFFFF;
    --off-white:     #F5F7FA;
    --text-body:     #3D4F61;
    --text-muted:    #7A8FA3;
    --text-light:    #B0BEC8;
    --border:        rgba(11, 31, 58, 0.08);
    --border-dark:   rgba(255,255,255,0.10);

    /* Keep --secondary pointing to red for all accent usage */
    --secondary:     #C8102E;
    --secondary-dim: rgba(200, 16, 46, 0.15);
    --shadow-orange: 0 8px 32px rgba(200, 16, 46, 0.35);

    --font-display: 'Syne', sans-serif;
    --font-body:    'DM Sans', sans-serif;

    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out:    cubic-bezier(0.0, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

    --shadow-card:   0 2px 20px rgba(11,31,58,0.08), 0 1px 4px rgba(11,31,58,0.04);
    --shadow-lifted: 0 24px 48px rgba(11,31,58,0.14), 0 4px 8px rgba(11,31,58,0.06);

    --radius-sm:  8px;
    --radius-md:  16px;
    --radius-lg:  24px;
    --radius-xl:  32px;

    --nav-h: 80px;
    --section-pad: 120px;
}

/* ---- RESET ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--text-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ============================================
   PAGE LOADER
   ============================================ */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--primary);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transition: opacity 0.5s var(--ease-smooth), visibility 0.5s;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: loaderLogoIn 0.6s var(--ease-spring) forwards;
}

.loader-logo-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 0 24px rgba(200,16,46,0.4));
}

@keyframes loaderLogoIn {
    from { opacity: 0; transform: scale(0.7); }
    to   { opacity: 1; transform: scale(1); }
}

.loader-bar {
    width: 180px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 99px;
    overflow: hidden;
}

.loader-fill {
    height: 100%;
    width: 0;
    background: var(--red);
    border-radius: 99px;
    animation: loadFill 1.4s var(--ease-smooth) forwards;
}

@keyframes loadFill {
    to { width: 100%; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s var(--ease-smooth);
}

.main-header.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(11,31,58,0.06);
}

.main-header.hero-top {
    background: transparent;
}

.main-header.hero-top .nav-links a {
    color: rgba(255,255,255,0.85);
}

.main-header.hero-top .nav-links a:hover {
    color: var(--red);
}

.main-header.hero-top .logo img {
    /* Logo en couleur sur fond sombre — pas de filtre, il s'affiche naturellement */
    filter: none;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-h);
}

.logo img {
    height: 50px;
    width: auto;
    transition: all 0.3s var(--ease-smooth);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-links a {
    display: block;
    padding: 8px 16px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    color: var(--primary);
    transition: color 0.25s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease-smooth);
}

.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a.active { color: var(--red); }

.btn-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: var(--primary);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--ease-smooth);
    letter-spacing: 0.02em;
}

.btn-contact:hover {
    background: var(--red);
    transform: translateY(-1px);
    box-shadow: var(--red-glow);
}

.main-header.hero-top .btn-contact {
    background: var(--red);
    color: var(--white);
}

.main-header.hero-top .btn-contact:hover {
    background: #a50d24;
}

/* Burger */
.burger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.burger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-smooth);
    transform-origin: center;
}

.main-header.hero-top .burger-btn span { background: var(--white); }

.burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease-smooth);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
    margin-bottom: 40px;
}

.mobile-menu ul li { overflow: hidden; }

.mobile-nav-link {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    padding: 12px 40px;
    transition: color 0.2s;
}

.mobile-nav-link:hover { color: var(--red); }

.mobile-cta {
    display: inline-block;
    padding: 16px 40px;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    transition: all 0.3s;
}

.mobile-cta:hover { background: #a50d24; transform: translateY(-2px); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all 0.3s var(--ease-smooth);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    box-shadow: var(--red-glow);
}

.btn-primary:hover {
    background: #a50d24;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(200,16,46,0.45);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* ============================================
   HERO — NOUVEAU DESIGN CENTRÉ LOGO
   ============================================ */
.hero {
    position: relative;
    min-height: 100svh;
    padding-top: var(--nav-h);
    background: linear-gradient(160deg, #060e1c 0%, #0B1F3A 50%, #0D2547 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--white);
}

/* Hero background image overlay */
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(6, 14, 28, 0.80), rgba(11, 31, 58, 0.92)),
        url('../images/hero.jpg') center/cover no-repeat;
    z-index: 0;
}

/* Grain texture */
.hero-noise {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-size: 128px;
}

/* Glowing orbs — teinte rouge/bleu du logo */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200,16,46,0.14) 0%, transparent 70%);
    top: -150px;
    right: -150px;
    animation: orbFloat1 12s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26,111,191,0.15) 0%, transparent 70%);
    bottom: 0;
    left: -80px;
    animation: orbFloat2 15s ease-in-out infinite;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(200,16,46,0.07) 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation: orbFloat3 10s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 30px) scale(1.1); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(0.95); }
}
@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0); opacity: 0.6; }
    50% { transform: translate(15px, -15px); opacity: 1; }
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 0 40px;
}

/* ---- LOGO GÉANT dans le hero ---- */
.hero-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
}

.hero-logo-img {
    width: clamp(250px, 30vw, 400px);
    height: clamp(250px, 30vw, 400px);
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(200,16,46,0.35)) drop-shadow(0 0 80px rgba(11,31,58,0.5));
    transition: transform 0.4s var(--ease-smooth), filter 0.4s;
}

.hero-logo-img:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 0 56px rgba(200,16,46,0.50)) drop-shadow(0 0 100px rgba(11,31,58,0.6));
}

/* ---- NOM DE L'ENTREPRISE — très grand ---- */
.hero-company-name {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-logo-wrap{
    display:flex;
    justify-content:center;
    margin-bottom:30px;
}

.hero-logo-img{
    width:220px;
    height:auto;
    object-fit:contain;
}

.hero-company-name{
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    text-align: center;
    margin-bottom: 25px;
    text-transform: uppercase;
    max-width: 900px;
}

.hero-slogan{
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 500;
    line-height: 1.4;
    color: rgba(255,255,255,0.95);
    text-align: center;
    margin-bottom: 30px;
}

.main-header.hero-top .logo{
    opacity:0;
}

.main-header.scrolled .logo{
    opacity:1;
}

.name-highlight {
    color: var(--red);
    position: relative;
    display: inline-block;
}

.name-highlight::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red);
    opacity: 0.3;
    border-radius: 2px;
}

/* ---- TAGLINE — plus petit, élégant ---- */
.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    font-style: italic;
    color: rgba(255,255,255,0.60);
    letter-spacing: 0.04em;
    margin-bottom: 40px;
}

.tagline-accent {
    color: rgba(255,255,255,0.85);
    font-style: italic;
    font-weight: 400;
}

/* Badges */
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(255,255,255,0.8);
    transition: all 0.3s;
}

.badge:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(200,16,46,0.4);
    transform: translateY(-2px);
}

.badge-icon { font-size: 1rem; }

/* Buttons hero */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Stats Strip */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 28px 0;
    margin-top: 48px;
    overflow: hidden;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.stat-plus {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--red);
}

.stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    line-height: 1.4;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.35);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: scrollHint 2.5s ease-in-out infinite;
}

@keyframes scrollHint {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
    50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

.scroll-mouse {
    width: 22px;
    height: 34px;
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 11px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-wheel {
    width: 3px;
    height: 7px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
    animation: scrollWheel 2.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    80% { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* ============================================
   SECTION LABELS & HEADINGS (shared)
   ============================================ */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    color: var(--red);
    margin-bottom: 16px;
}

.label-line {
    display: inline-block;
    width: 32px;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.section-heading em {
    font-style: normal;
    color: var(--red);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 520px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    padding: var(--section-pad) 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text .section-heading { margin-bottom: 28px; }

.about-text p {
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-text strong { color: var(--primary); font-weight: 600; }

.about-pillars {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
}

.pillar {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--off-white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.pillar:hover {
    border-color: rgba(200,16,46,0.3);
    transform: translateX(4px);
    box-shadow: var(--shadow-card);
}

.pillar-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--red-dim);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillar div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pillar strong {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
}

.pillar span {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* About Media */
.about-media { position: relative; }

.media-frame {
    position: relative;
}

.media-decoration {
    position: absolute;
    top: -16px;
    right: -16px;
    bottom: 16px;
    left: 16px;
    border: 2px solid var(--red);
    border-radius: var(--radius-lg);
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.media-frame video {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lifted);
    display: block;
}

.media-badge-floating {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(11,31,58,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: 1px solid rgba(255,255,255,0.15);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    background: var(--off-white);
    overflow: hidden;
}

.services-header {
    padding: var(--section-pad) 0 72px;
    text-align: left;
}

.services-header .section-desc { max-width: 480px; }

.service-block {
    padding: 100px 0;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.service-block::before {
    content: attr(data-service);
    position: absolute;
    font-family: var(--font-display);
    font-size: 18rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.025;
    top: -40px;
    right: -20px;
    line-height: 1;
    pointer-events: none;
    letter-spacing: -8px;
}

.service-block--alt { background: var(--white); }
.service-block--alt::before { left: -20px; right: auto; }

.service-block-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.service-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.service-num {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--red);
    letter-spacing: 2px;
    border: 1.5px solid var(--red);
    padding: 4px 10px;
    border-radius: 4px;
}

.service-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 600;
}

.service-content h3 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.service-content p {
    font-size: 1rem;
    color: var(--text-body);
    margin-bottom: 28px;
    line-height: 1.75;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.service-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.65;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.service-list li:last-child { border-bottom: none; padding-bottom: 0; }

.list-icon {
    color: var(--red);
    font-size: 0.6rem;
    margin-top: 7px;
    flex-shrink: 0;
}

.service-list strong { color: var(--primary); font-weight: 600; }

/* Image frame */
.img-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lifted);
}

.img-frame img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-smooth);
}

.img-frame:hover img { transform: scale(1.03); }

.img-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(11,31,58,0.85));
    color: var(--white);
    padding: 40px 24px 20px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================
   PERSONNEL / CERTIFICATIONS / CONTACT
   ============================================ */
.personnel-section {
    padding: var(--section-pad) 0;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.personnel-section::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200,16,46,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.personnel-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    align-items: start;
}

/* Manager Card */
.manager-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    padding: 48px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
    scroll-margin-top: calc(var(--nav-h) + 24px);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.3s;
}

.manager-card:hover { border-color: rgba(200,16,46,0.25); }

.manager-photo-wrap { position: relative; }

.manager-photo img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius-md);
    display: block;
}

.manager-badge {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    background: var(--red);
    color: var(--white);
    text-align: center;
    padding: 8px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.manager-info h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.manager-info h2 span { color: var(--red); }

.manager-role {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    margin-bottom: 0;
}

.cert-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 24px 0;
}

.cert-title {
    font-family: var(--font-display);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--red);
    font-weight: 700;
    margin-bottom: 16px;
}

.cert-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cert-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
}

.cert-badge {
    display: inline-block;
    background: var(--red-dim);
    border: 1px solid rgba(200,16,46,0.25);
    color: var(--red);
    font-size: 0.67rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Contact Card */
.contact-card {
    background: var(--red);
    border-radius: var(--radius-xl);
    padding: 44px 40px;
    scroll-margin-top: calc(var(--nav-h) + 24px);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
}

.contact-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 140px;
    height: 140px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.contact-header { margin-bottom: 32px; position: relative; z-index: 1; }

.contact-icon-wrap {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--white);
}

.contact-header h2 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 10px;
}

.contact-header p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

.contact-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.contact-ico {
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-style: normal;
}

.contact-row div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.55);
    font-weight: 600;
}

.contact-row a,
.contact-row span {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    line-height: 1.5;
    transition: color 0.2s;
    display: block;
}

.contact-row a:hover { color: var(--white); }

.btn-contact-send {
    width: 100%;
    justify-content: center;
    background: var(--white);
    color: var(--red);
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.btn-contact-send:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-section {
    padding: var(--section-pad) 0;
    background: var(--white);
    scroll-margin-top: var(--nav-h);
    overflow: hidden;
}

.gallery-section .container { margin-bottom: 60px; }

.carousel-wrapper {
    position: relative;
}

.carousel-wrapper::before,
.carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--white), transparent);
}

.carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--white), transparent);
}

.carousel { overflow: hidden; }

.carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollGallery 100s linear infinite;
}

.carousel:hover .carousel-track { animation-play-state: paused; }

.carousel-item {
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.carousel-item img {
    width: 300px;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease-smooth);
}

.carousel-item:hover img { transform: scale(1.06); }

@keyframes scrollGallery {
    0%  { transform: translateX(0); }
    100%{ transform: translateX(-50%); }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--primary-mid);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 40px 0 32px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-brand img {
    height: 48px;
    width: auto;
    /* Logo en couleur dans le footer */
    opacity: 0.85;
}

.footer-brand p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
    font-style: italic;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--red); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

.back-top {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: all 0.3s;
}

.back-top:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    :root { --section-pad: 90px; }

    .about-grid { grid-template-columns: 1fr; gap: 56px; }
    .media-frame video { height: 380px; }

    .service-block-inner { gap: 50px; }
    .img-frame img { height: 400px; }

    .personnel-grid { grid-template-columns: 1fr; }
    .manager-card {
        grid-template-columns: 200px 1fr;
        gap: 32px;
        padding: 36px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 72px;
        --nav-h: 70px;
    }

    /* Nav */
    .nav-links, .nav-actions { display: none; }
    .burger-btn { display: flex; }
    .mobile-menu { display: flex; }

    /* Hero */
    .hero-content { padding: 40px 0 32px; }
    .hero-logo-img {
        width: clamp(140px, 40vw, 200px);
        height: clamp(140px, 40vw, 200px);
    }
    .hero-company-name { font-size: clamp(1.7rem, 7vw, 2.4rem); }
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
        text-align: center;
    }
    .stat-divider { width: 60px; height: 1px; }
    .hero-scroll-hint { display: none; }

    /* Services */
    .service-block { padding: 72px 0; }
    .service-block-inner { grid-template-columns: 1fr; gap: 40px; }
    .service-block--alt .service-visual { order: -1; }
    .img-frame img { height: 280px; }
    .service-block::before { font-size: 10rem; }

    /* Manager */
    .manager-card {
        grid-template-columns: 1fr;
        padding: 28px;
    }
    .manager-photo img { height: 250px; object-position: center top; }

    /* Gallery */
    .carousel-item img { width: 240px; height: 180px; }
    .carousel-wrapper::before,
    .carousel-wrapper::after { width: 60px; }

    /* Footer */
    .footer-brand { flex-direction: column; align-items: flex-start; gap: 12px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .footer-links { justify-content: center; }

    /* Buttons */
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; max-width: 320px; justify-content: center; }
}

@media (max-width: 480px) {
    .hero-badges { flex-direction: column; align-items: center; }
    .personnel-section { padding: 60px 0; }
    .contact-card { padding: 32px 28px; }
    .manager-card { padding: 24px 20px; }
}

/* ============================================
   SCROLL INDICATOR BAR (top of page)
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--red);
    z-index: 2000;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s linear;
}

/* ============================================
   ABOUT SECTION SCROLL MARGIN
   ============================================ */
#about, #services, #gallery {
    scroll-margin-top: var(--nav-h);
}

/* ==========================================
   HERO COMPANY NAME
   ========================================== */

.hero-company-name{
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    text-align: center;
    margin-bottom: 25px;
    text-transform: uppercase;
    max-width: 900px;
}

.hero-slogan{
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    text-align: center;
    margin-bottom: 30px;
}

/* Centre parfaitement le contenu du Hero */
.hero-content{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.social-row a {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    transition: all 0.25s ease;
}

.social-row a:hover {
    color: #fff;
    transform: translateX(4px);
}

.social-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}