/* ==========================================================================
   ROUGIER & FILS - Design System & Modern Stylesheet
   Expertise Gros Œuvre & Génie Civil depuis 1927
   ========================================================================== */

:root {
    --rf-dark: #0f1317;
    --rf-dark-soft: #181d22;
    --rf-dark-elevated: #222931;
    --rf-accent: #c49a45;
    --rf-accent-hover: #b08734;
    --rf-accent-light: rgba(196, 154, 69, 0.1);
    --rf-accent-glow: rgba(196, 154, 69, 0.25);
    --rf-gray-bg: #f7f9fb;
    --rf-gray-card: #ffffff;
    --rf-gray-light: #eef2f6;
    --rf-border: #e3e7ec;
    --rf-border-light: rgba(255, 255, 255, 0.12);
    --rf-text: #1a2027;
    --rf-text-muted: #626e7a;
    --rf-text-light: #9aa5b1;
    --rf-radius-sm: 4px;
    --rf-radius-md: 8px;
    --rf-radius-lg: 16px;
    --rf-shadow-sm: 0 4px 15px rgba(15, 19, 23, 0.04);
    --rf-shadow-md: 0 12px 35px rgba(15, 19, 23, 0.08);
    --rf-shadow-lg: 0 25px 60px rgba(15, 19, 23, 0.13);
    --rf-transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--rf-text);
    background-color: #ffffff;
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--rf-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Règle impérative de contraste pour les contextes sombres */
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.bg-dark-section h1, .bg-dark-section h2, .bg-dark-section h3, .bg-dark-section h4, .bg-dark-section h5, .bg-dark-section h6,
.hero-section h1, .hero-section h2, .hero-section h3, .hero-section h4, .hero-section h5, .hero-section h6,
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4, .site-footer h5, .site-footer h6,
.cta-section h1, .cta-section h2, .cta-section h3, .cta-section h4, .cta-section h5, .cta-section h6,
h1.text-white, h2.text-white, h3.text-white, h4.text-white, h5.text-white, h6.text-white {
    color: #ffffff !important;
}

.bg-dark-section {
    background: radial-gradient(circle at 20% 30%, #1e252e 0%, #0f1317 100%) !important;
    color: #ffffff !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bg-dark-section .text-white-50,
.bg-dark .text-white-50,
.text-white .text-white-50 {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ==========================================================================
   Navigation Bar (Preserved structure + Enhanced Glassmorphism)
   ========================================================================== */
.navbar {
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
    padding: 1.4rem 0;
    z-index: 1040;
}

.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.07);
    padding: 0.75rem 0;
}

.navbar-brand img {
    height: 58px;
    width: auto;
    transition: height 0.3s ease;
}

.navbar-scrolled .navbar-brand img,
.navbar-solid .navbar-brand img {
    height: 48px;
}

.navbar-solid {
    background-color: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
    padding: 0.75rem 0;
}

.nav-link {
    font-weight: 600;
    color: #ffffff !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-left: 1.15rem;
    letter-spacing: 0.07em;
    position: relative;
    padding: 0.5rem 0 !important;
    white-space: nowrap;
    transition: var(--rf-transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--rf-accent);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nav-link:hover {
    color: rgba(255, 255, 255, 0.85) !important;
}

.navbar-scrolled .nav-link,
.navbar-solid .nav-link {
    color: var(--rf-dark) !important;
}

.navbar-scrolled .nav-link:hover,
.navbar-scrolled .nav-link.active,
.navbar-solid .nav-link:hover,
.navbar-solid .nav-link.active {
    color: var(--rf-accent) !important;
}

/* Bouton Contact dans la navbar desktop */
@media (min-width: 1200px) {
    .nav-link.nav-link-cta {
        margin-left: 0.5rem;
        padding: 0.55rem 1.25rem !important;
        border: 1px solid rgba(255, 255, 255, 0.55);
        border-radius: var(--rf-radius-sm);
        background: rgba(255, 255, 255, 0.08);
    }
    .nav-link.nav-link-cta::after {
        display: none;
    }
    .nav-link.nav-link-cta:hover,
    .nav-link.nav-link-cta.active {
        background: var(--rf-accent);
        border-color: var(--rf-accent);
        color: #ffffff !important;
    }
    .navbar-scrolled .nav-link.nav-link-cta,
    .navbar-solid .nav-link.nav-link-cta {
        background: var(--rf-dark);
        border-color: var(--rf-dark);
        color: #ffffff !important;
    }
    .navbar-scrolled .nav-link.nav-link-cta:hover,
    .navbar-scrolled .nav-link.nav-link-cta.active,
    .navbar-solid .nav-link.nav-link-cta:hover,
    .navbar-solid .nav-link.nav-link-cta.active {
        background: var(--rf-accent);
        border-color: var(--rf-accent);
        color: #ffffff !important;
    }
}

/* Mobile & Tablet Menu (< 1200px) */
@media (max-width: 1199.98px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: radial-gradient(circle at center, #1b2128 0%, #0d1013 100%);
        z-index: 1050;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        transform: translateX(100%);
        overflow-y: auto;
        padding: 2rem 1.5rem;
    }

    .navbar-collapse.show {
        transform: translateX(0);
    }

    .navbar-nav {
        text-align: center;
        width: 100%;
    }

    .nav-item {
        margin: 8px 0;
    }

    .nav-link {
        font-size: 1.15rem;
        color: #ffffff !important;
        margin-left: 0;
        display: inline-block;
    }

    .navbar-scrolled .nav-link,
    .navbar-solid .nav-link {
        color: #ffffff !important;
    }

    .navbar-toggler {
        border: none;
        z-index: 1100;
        position: relative;
        padding: 8px;
    }
    .navbar-toggler:focus {
        box-shadow: none;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        display: inline-block;
        width: 1.6em;
        height: 1.6em;
        vertical-align: middle;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 100%;
    }

    .navbar-scrolled .navbar-toggler-icon,
    .navbar-solid .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(15, 19, 23, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }

    .mobile-contact-info {
        margin-top: 28px;
        text-align: center;
        color: rgba(255,255,255,0.7);
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 20px;
        width: 80%;
    }
    .mobile-contact-info a {
        color: #fff;
        text-decoration: none;
        display: block;
        margin-bottom: 10px;
        font-size: 0.95rem;
    }
    .mobile-contact-info i {
        margin-right: 10px;
        color: var(--rf-accent);
    }
}

/* ==========================================================================
   Hero Section (Preserved Video / Slider + Cinematic Finish)
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 650px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(12, 16, 20, 0.55) 0%, rgba(12, 16, 20, 0.35) 50%, rgba(12, 16, 20, 0.75) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 960px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 40px;
    margin-bottom: 1.8rem;
}

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.92);
    max-width: 720px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* Scroll prompt indicator */
.hero-scroll-prompt {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: var(--rf-transition);
}

.hero-scroll-prompt:hover {
    color: #ffffff;
}

.hero-scroll-prompt .mouse-icon {
    width: 22px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    position: relative;
    margin-bottom: 8px;
}

.hero-scroll-prompt .mouse-wheel {
    width: 3px;
    height: 7px;
    background: var(--rf-accent);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: mouseScroll 1.8s infinite ease-in-out;
}

@keyframes mouseScroll {
    0% { opacity: 1; transform: translate(-50%, 0); }
    50% { opacity: 0.3; transform: translate(-50%, 10px); }
    100% { opacity: 1; transform: translate(-50%, 0); }
}

/* ==========================================================================
   Typography, Section Headers & Badges
   ========================================================================== */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rf-accent);
    margin-bottom: 0.85rem;
}

.section-tag::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background-color: var(--rf-accent);
}

.section-tag.text-center-tag::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background-color: var(--rf-accent);
}

.section-title {
    font-size: clamp(1.9rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.22;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.12rem;
    color: var(--rf-text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Modern Buttons
   ========================================================================== */
.btn-rf-primary {
    background-color: var(--rf-accent);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 34px;
    border-radius: var(--rf-radius-sm);
    border: 1px solid var(--rf-accent);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(196, 154, 69, 0.28);
    transition: var(--rf-transition);
    text-decoration: none;
}

.btn-rf-primary:hover {
    background-color: var(--rf-accent-hover);
    border-color: var(--rf-accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(196, 154, 69, 0.4);
}

.btn-rf-outline-light {
    background-color: transparent;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 34px;
    border-radius: var(--rf-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--rf-transition);
    text-decoration: none;
}

.btn-rf-outline-light:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--rf-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-rf-dark {
    background-color: var(--rf-dark);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 34px;
    border-radius: var(--rf-radius-sm);
    border: 1px solid var(--rf-dark);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--rf-transition);
    text-decoration: none;
}

.btn-rf-dark:hover {
    background-color: var(--rf-dark-elevated);
    border-color: var(--rf-dark-elevated);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--rf-shadow-md);
}

.btn-rf-outline-dark {
    background-color: transparent;
    color: var(--rf-dark);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 34px;
    border-radius: var(--rf-radius-sm);
    border: 1px solid var(--rf-border);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--rf-transition);
    text-decoration: none;
}

.btn-rf-outline-dark:hover {
    background-color: var(--rf-dark);
    border-color: var(--rf-dark);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   Stat Counters & Highlight Strip
   ========================================================================== */
.stats-banner {
    position: relative;
    z-index: 5;
    margin-top: -60px;
    margin-bottom: 40px;
}

.stats-card-container {
    background: #ffffff;
    border-radius: var(--rf-radius-md);
    box-shadow: var(--rf-shadow-lg);
    border: 1px solid var(--rf-border);
    padding: 35px 25px;
}

.stat-item {
    text-align: center;
    position: relative;
    padding: 15px;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--rf-border);
}

@media (max-width: 991px) {
    .stats-banner {
        margin-top: 20px;
    }
    .stat-item:not(:last-child)::after {
        display: none;
    }
    .stat-item {
        border-bottom: 1px solid var(--rf-border);
        padding-bottom: 20px;
        margin-bottom: 15px;
    }
    .stat-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
}

.stat-number {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 800;
    color: var(--rf-dark);
    line-height: 1;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.stat-number .stat-unit {
    color: var(--rf-accent);
    font-weight: 700;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rf-dark);
    margin-bottom: 4px;
}

.stat-desc {
    font-size: 0.8rem;
    color: var(--rf-text-muted);
    margin-bottom: 0;
}

/* ==========================================================================
   Company Presentation Split Section
   ========================================================================== */
.about-image-wrapper {
    position: relative;
    border-radius: var(--rf-radius-md);
    overflow: hidden;
    box-shadow: var(--rf-shadow-lg);
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.about-image-wrapper:hover img {
    transform: scale(1.03);
}

.about-floating-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(15, 19, 23, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 20px 25px;
    border-radius: var(--rf-radius-sm);
    max-width: 280px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.about-floating-badge .badge-icon {
    font-size: 1.8rem;
    color: var(--rf-accent);
    margin-bottom: 10px;
}

.about-checklist {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.about-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--rf-text);
    font-weight: 500;
}

.about-checklist li i {
    color: var(--rf-accent);
    margin-top: 4px;
    font-size: 1.05rem;
}

/* ==========================================================================
   Expertise Cards (Interactive & Modern)
   ========================================================================== */
.expertise-grid-card {
    background: #ffffff;
    border-radius: var(--rf-radius-md);
    border: 1px solid var(--rf-border);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--rf-transition);
    position: relative;
    box-shadow: var(--rf-shadow-sm);
}

.expertise-grid-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--rf-shadow-lg);
    border-color: rgba(196, 154, 69, 0.4);
}

.expertise-card-img {
    height: 220px;
    position: relative;
    overflow: hidden;
    background-color: var(--rf-dark-soft);
}

.expertise-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.expertise-grid-card:hover .expertise-card-img img {
    transform: scale(1.08);
}

.expertise-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 19, 23, 0.7) 100%);
}

.expertise-card-icon-pill {
    position: absolute;
    bottom: 16px;
    left: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--rf-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--rf-transition);
}

.expertise-grid-card:hover .expertise-card-icon-pill {
    background: var(--rf-accent);
    color: #ffffff;
    transform: scale(1.1);
}

.expertise-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.expertise-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--rf-dark);
}

.expertise-card-desc {
    font-size: 0.92rem;
    color: var(--rf-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.expertise-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rf-dark);
    text-decoration: none;
    transition: var(--rf-transition);
}

.expertise-card-link i {
    transition: transform 0.3s ease;
}

.expertise-grid-card:hover .expertise-card-link {
    color: var(--rf-accent);
}

.expertise-grid-card:hover .expertise-card-link i {
    transform: translateX(4px);
}

/* ==========================================================================
   Project Cards (Showcase)
   ========================================================================== */
.project-card-modern {
    position: relative;
    border-radius: var(--rf-radius-md);
    overflow: hidden;
    background-color: var(--rf-dark-soft);
    box-shadow: var(--rf-shadow-sm);
    transition: var(--rf-transition);
    height: 100%;
}

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

.project-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/11;
    overflow: hidden;
}

.project-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card-modern:hover .project-card-thumb img {
    transform: scale(1.08);
}

.project-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 19, 23, 0.1) 0%, rgba(15, 19, 23, 0.85) 90%);
    transition: opacity 0.3s ease;
}

.project-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    color: #ffffff;
    z-index: 2;
}

.project-category-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.3;
}

.project-card-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   Advantages / Strength Section
   ========================================================================== */
.advantage-card {
    background: #ffffff;
    padding: 36px 30px;
    border-radius: var(--rf-radius-md);
    border: 1px solid var(--rf-border);
    transition: var(--rf-transition);
    height: 100%;
    box-shadow: var(--rf-shadow-sm);
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--rf-accent);
    transition: height 0.4s ease;
}

.advantage-card:hover::before {
    height: 100%;
}

.advantage-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--rf-shadow-lg);
    border-color: rgba(196, 154, 69, 0.3);
}

.advantage-icon-box {
    width: 64px;
    height: 64px;
    border-radius: var(--rf-radius-sm);
    background: var(--rf-gray-bg);
    border: 1px solid var(--rf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--rf-dark);
    margin-bottom: 22px;
    transition: var(--rf-transition);
}

.advantage-card:hover .advantage-icon-box {
    background: var(--rf-dark);
    color: var(--rf-accent);
    border-color: var(--rf-dark);
}

.advantage-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--rf-dark);
}

.advantage-desc {
    font-size: 0.92rem;
    color: var(--rf-text-muted);
    line-height: 1.65;
    margin-bottom: 0;
}

/* ==========================================================================
   Partners Carousel Section
   ========================================================================== */
.partner-logo-item {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.partner-logo-item img {
    max-height: 60px;
    max-width: 140px;
    width: auto !important;
    filter: grayscale(100%) opacity(60%);
    transition: filter 0.3s ease, transform 0.3s ease;
    object-fit: contain;
}

.partner-logo-item:hover img {
    filter: grayscale(0%) opacity(100%);
    transform: scale(1.06);
}

/* ==========================================================================
   Call To Action (CTA) Banner
   ========================================================================== */
.cta-section {
    background: radial-gradient(circle at 10% 20%, #1f2730 0%, #0d1013 90%);
    color: #ffffff;
    position: relative;
    padding: 90px 0;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100px;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 154, 69, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.cta-tag {
    color: var(--rf-accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 18px;
}

.cta-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 30px;
    line-height: 1.7;
}

.cta-quick-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 25px;
}

.cta-contact-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.cta-contact-link i {
    color: var(--rf-accent);
    font-size: 1.1rem;
}

.cta-contact-link:hover {
    color: #ffffff;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--rf-dark);
    color: #9aa5b1;
    font-size: 0.92rem;
    padding-top: 80px;
    padding-bottom: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer h5 {
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    position: relative;
    padding-bottom: 10px;
}

.site-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--rf-accent);
}

.site-footer a {
    color: #9aa5b1;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li {
    margin-bottom: 12px;
}

.footer-nav-list li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-nav-list li a:hover {
    transform: translateX(4px);
    color: var(--rf-accent);
}

.footer-contact-item {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
}

.footer-contact-icon {
    color: var(--rf-accent);
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-badge-pill {
    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: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    color: #ffffff;
    margin-right: 8px;
    margin-bottom: 8px;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 50px;
    padding-top: 30px;
}

.social-link-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    margin-left: 8px;
    transition: var(--rf-transition);
}

.social-link-btn:hover {
    background: var(--rf-accent);
    border-color: var(--rf-accent);
    transform: translateY(-3px);
}

/* ==========================================================================
   Filter Buttons & Realisations Grid (Retaining backwards compatibility)
   ========================================================================== */
.filter-btn {
    border: 1px solid var(--rf-border) !important;
    border-radius: 30px !important;
    padding: 8px 22px !important;
    margin: 5px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    transition: var(--rf-transition) !important;
    background-color: #ffffff !important;
    color: var(--rf-text) !important;
}

.filter-btn:hover {
    background-color: var(--rf-gray-bg) !important;
    border-color: var(--rf-dark) !important;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: var(--rf-dark) !important;
    color: #ffffff !important;
    border-color: var(--rf-dark) !important;
    box-shadow: 0 4px 15px rgba(15, 19, 23, 0.2);
}

.project-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.project-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 19, 23, 0.88);
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 25px;
    color: #ffffff;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-item:hover img {
    transform: scale(1.08);
}

.project-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* ==========================================================================
   Secondary Pages Styling
   ========================================================================== */
.page-hero-mini {
    position: relative;
    padding: 140px 0 60px;
    background: linear-gradient(180deg, #111518 0%, #1a2128 100%);
    color: #ffffff;
    text-align: center;
}

.page-hero-mini h1 {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.page-hero-mini p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
}

/* ==========================================================================
   Page Header Dynamic Banner (Unified Architectural Finish)
   ========================================================================== */
.page-header-banner {
    height: 48vh !important;
    min-height: 390px !important;
    padding-top: 85px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header-media {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.page-header-overlay {
    z-index: 1;
    background: linear-gradient(180deg, rgba(12, 16, 20, 0.72) 0%, rgba(12, 16, 20, 0.56) 55%, rgba(12, 16, 20, 0.85) 100%);
}

.page-header-content {
    z-index: 2;
    max-width: 880px;
}

.page-header-kicker {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rf-accent);
    margin-bottom: 0.9rem;
}

.page-header-banner .hero-title {
    font-size: clamp(2.1rem, 4.2vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.85rem;
}

.page-header-subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.88);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.55;
}

/* ==========================================================================
   Editorial Refonte Components (ROUGIER & FILS 2026)
   ========================================================================== */
.hero-signature {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rf-accent);
    margin-bottom: 0.5rem;
}

.editorial-lead {
    font-size: 1.2rem;
    line-height: 1.75;
    color: var(--rf-text);
    font-weight: 400;
}

.editorial-body {
    font-size: 1.03rem;
    line-height: 1.85;
    color: var(--rf-text-muted);
}

.editorial-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--rf-dark);
    text-decoration: none;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--rf-accent);
    transition: var(--rf-transition);
}

.editorial-link:hover {
    color: var(--rf-accent);
    gap: 14px;
}

.editorial-link-light {
    color: #ffffff;
    border-bottom-color: var(--rf-accent);
}

.editorial-link-light:hover {
    color: var(--rf-accent);
}

/* 2x2 Visual Pillar Cards (L'entreprise) */
.pillar-photo-card {
    background: #ffffff;
    border-radius: var(--rf-radius-lg);
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--rf-border);
    box-shadow: var(--rf-shadow-sm);
    transition: var(--rf-transition);
    display: flex;
    flex-direction: column;
}

.pillar-photo-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--rf-shadow-lg);
    border-color: rgba(196, 154, 69, 0.35);
}

.pillar-photo-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--rf-dark);
}

.pillar-photo-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-photo-card:hover .pillar-photo-media img {
    transform: scale(1.05);
}

.pillar-photo-num {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(15, 19, 23, 0.82);
    backdrop-filter: blur(8px);
    color: var(--rf-accent);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 5px 12px;
    border-radius: 999px;
}

.pillar-photo-body {
    padding: 28px 30px 32px;
    flex: 1;
}

.pillar-photo-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--rf-dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.pillar-photo-desc {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--rf-text-muted);
    margin-bottom: 0;
}

/* Manifesto Band */
.manifesto-band {
    background: var(--rf-dark);
    color: #ffffff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.manifesto-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(196, 154, 69, 0.14) 0%, transparent 55%);
    pointer-events: none;
}

/* Mot du Président */
.president-letter-wrap {
    background: #ffffff;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    padding: clamp(28px, 4vw, 56px);
    box-shadow: var(--rf-shadow-md);
}

.president-portrait-frame {
    position: relative;
    border-radius: var(--rf-radius-md);
    overflow: hidden;
    box-shadow: var(--rf-shadow-lg);
    background: var(--rf-dark);
}

.president-portrait-frame img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.president-signature-box {
    border-left: 3px solid var(--rf-accent);
    padding-left: 20px;
    margin-top: 28px;
}

/* Timeline 4 générations */
.generation-step {
    background: #ffffff;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-md);
    padding: 28px 24px;
    height: 100%;
    position: relative;
    transition: var(--rf-transition);
}

.generation-step:hover {
    border-color: var(--rf-accent);
    box-shadow: var(--rf-shadow-md);
    transform: translateY(-4px);
}

.generation-year {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--rf-accent);
    margin-bottom: 8px;
    display: block;
}

/* Metiers 4-pillar navigation pills & detail blocks */
.metier-anchor-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--rf-border);
    position: sticky;
    top: 68px;
    z-index: 900;
    box-shadow: 0 4px 18px rgba(15, 19, 23, 0.04);
}

.metier-anchor-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 18px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--rf-text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: var(--rf-transition);
    white-space: nowrap;
}

.metier-anchor-link:hover {
    color: var(--rf-dark);
    border-bottom-color: var(--rf-accent);
}

.metier-anchor-num {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--rf-accent);
}

.metier-block {
    padding: 96px 0;
    scroll-margin-top: 130px;
}

.metier-tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--rf-gray-bg);
    border: 1px solid var(--rf-border);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--rf-dark);
}

.metier-image-frame {
    border-radius: var(--rf-radius-lg);
    overflow: hidden;
    box-shadow: var(--rf-shadow-lg);
    background: var(--rf-dark);
}

.metier-image-frame img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.metier-block:hover .metier-image-frame img {
    transform: scale(1.03);
}

/* Home 4-metiers cards */
.home-metier-card {
    background: #ffffff;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-md);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--rf-transition);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--rf-shadow-sm);
}

.home-metier-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--rf-shadow-lg);
    border-color: rgba(196, 154, 69, 0.45);
    color: inherit;
}

.home-metier-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.home-metier-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-metier-card:hover .home-metier-thumb img {
    transform: scale(1.07);
}

/* Le Bastion Spotlight & Page */
.bastion-home-section {
    background: radial-gradient(circle at 15% 25%, #1d242d 0%, #0d1014 85%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.bastion-media-frame {
    border-radius: var(--rf-radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.bastion-media-frame img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    display: block;
}

.bastion-quote-box {
    background: rgba(196, 154, 69, 0.08);
    border-left: 4px solid var(--rf-accent);
    border-radius: 0 var(--rf-radius-md) var(--rf-radius-md) 0;
    padding: 32px 36px;
}

/* Nos engagements (RSE) */
.rse-pillar-card {
    background: #ffffff;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-md);
    padding: 36px;
    transition: var(--rf-transition);
    box-shadow: var(--rf-shadow-sm);
}

.rse-pillar-card:hover {
    border-color: rgba(196, 154, 69, 0.45);
    box-shadow: var(--rf-shadow-md);
}

.rse-pillar-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--rf-accent);
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.rse-kpi-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--rf-radius-md);
    padding: 32px 26px;
    height: 100%;
    transition: var(--rf-transition);
}

.rse-kpi-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(196, 154, 69, 0.45);
    transform: translateY(-4px);
}

.rse-kpi-value {
    font-size: clamp(1.9rem, 3vw, 2.55rem);
    font-weight: 800;
    color: var(--rf-accent);
    line-height: 1.15;
    margin-bottom: 10px;
}

/* Nous rejoindre */
.career-role-card {
    background: #ffffff;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-md);
    padding: 28px 26px;
    height: 100%;
    transition: var(--rf-transition);
    box-shadow: var(--rf-shadow-sm);
}

.career-role-card:hover {
    transform: translateY(-5px);
    border-color: var(--rf-accent);
    box-shadow: var(--rf-shadow-md);
}

/* Search bar Realisations */
.realisations-search-wrap {
    max-width: 460px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.realisations-search-wrap i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rf-text-muted);
}

.realisations-search-input {
    width: 100%;
    padding: 12px 18px 12px 46px;
    border-radius: 999px;
    border: 1px solid var(--rf-border);
    background: #ffffff;
    font-size: 0.94rem;
    color: var(--rf-text);
    transition: var(--rf-transition);
}

.realisations-search-input:focus {
    outline: none;
    border-color: var(--rf-accent);
    box-shadow: 0 0 0 4px var(--rf-accent-light);
}

/* Contact choice pills */
.contact-intent-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--rf-border);
    background: #ffffff;
    color: var(--rf-text);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--rf-transition);
}

.contact-intent-pill:hover {
    border-color: var(--rf-dark);
}

.contact-intent-pill.active {
    background: var(--rf-dark);
    border-color: var(--rf-dark);
    color: #ffffff;
}

.contact-form-control {
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-sm);
    padding: 13px 16px;
    background: #ffffff;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    color: var(--rf-text);
}

.contact-form-control:focus {
    box-shadow: 0 0 0 4px var(--rf-accent-light);
    border-color: var(--rf-accent);
    background: #ffffff;
    outline: none;
}

.contact-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--rf-dark);
    margin-bottom: 8px;
    display: block;
}

