/* Variable CSS */
:root {
    --primary: #0b1d3a;
    --primary-light: #182e50;
    --accent: #c59b27;
    --accent-hover: #a37f1e;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --font-heading: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Page Loader */
.page-loader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.loader-logo {
    height: 52px;
    width: auto;
    display: block;
    margin-bottom: 22px;
}

.loader-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 4px;
    line-height: 1.1;
}

.loader-sub {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 4px;
    margin-bottom: 22px;
}

.loader-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: loaderSpin 0.8s linear infinite;
}

@keyframes loaderSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Announcement Banner */
.announcement-banner {
    background-color: var(--accent);
    color: var(--white);
    text-align: center;
    padding: 9px 44px 9px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    position: relative;
}

.announcement-close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.announcement-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.3;
}

h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

p {
    margin-bottom: 15px;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

.mt-3 {
    margin-top: 15px;
}

.mt-4 {
    margin-top: 30px;
}

.mt-5 {
    margin-top: 40px;
}

.mb-5 {
    margin-bottom: 45px;
}

.p-4 {
    padding: 35px;
}

.w-100 {
    width: 100%;
}

.gold-border {
    border-top: 4px solid var(--accent);
}

.inline-link {
    color: var(--accent-hover);
    font-weight: 600;
    text-decoration: underline;
}

.inline-link:hover {
    color: var(--primary);
}

/* Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #e6c555);
    z-index: 1100;
    transition: width 0.1s ease-out;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 6px 20px rgba(11, 29, 58, 0.12);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height 0.3s ease;
}

.navbar.scrolled .nav-container {
    height: 68px;
}

.logo {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    height: 44px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

.navbar.scrolled .brand-logo {
    height: 38px;
}

/* Dans la barre de navigation claire, recolore la partie droite "PRIVATE EQUITY" (initialement blanche) en bleu marine #0b1d3a */
body:not(.dark-mode) .navbar .logo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/mvlf.png") no-repeat left center / contain;
    clip-path: inset(0 0 0 30.4%);
    filter: brightness(0) saturate(100%) invert(9%) sepia(43%) saturate(2848%) hue-rotate(197deg) brightness(93%) contrast(98%);
    pointer-events: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-menu a {
    position: relative;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 4px 0;
}

.nav-menu a:not(.btn-nav)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-menu a:not(.btn-nav):hover::after,
.nav-menu a:not(.btn-nav).active::after {
    width: 100%;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--accent);
}

.btn-nav {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 8px 18px !important;
    border-radius: 4px;
}

.btn-nav:hover {
    background-color: var(--accent);
}

/* Theme Toggle Button (Dark/Light Mode) */
.theme-toggle {
    background: var(--bg-light);
    border: 1px solid var(--border);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.theme-toggle:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

/* Language Switcher (FR / EN) */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 2px;
    gap: 2px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    color: var(--primary);
}

.lang-btn.active {
    background-color: var(--primary);
    color: var(--white);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    position: relative;
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    color: var(--white);
    padding: 135px 0 145px;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 29, 58, 0.92) 0%, rgba(26, 54, 93, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    color: var(--accent);
    letter-spacing: 3px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.hero h1 {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 2.8rem;
    max-width: 900px;
    margin: 0 auto 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.88);
}

.hero-scroll-down {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(197, 155, 39, 0.65);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    animation: heroBounce 2s infinite;
}

.hero-scroll-down:hover {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

@keyframes heroBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-7px);
    }
    60% {
        transform: translateX(-50%) translateY(-3px);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 10px;
}

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

/* Sections */
.section {
    padding: 80px 0;
}

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

.section-tag {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

/* Stats */
.stats-section {
    background-color: var(--primary);
    color: var(--white);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    scroll-margin-top: 68px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 20px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--accent);
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Cards & Service Boxes */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(11, 29, 58, 0.08);
}

.highlight-card {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.highlight-card h3 {
    color: var(--accent);
    margin-bottom: 18px;
}

.icon-box {
    font-size: 2.2rem;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(197, 155, 39, 0.12);
    border-radius: 12px;
}

.service-emoji {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.check-list {
    list-style: none;
    margin: 15px 0;
    padding: 0;
}

.check-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
}

.check-list li:last-child {
    margin-bottom: 0;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
}

.service-card {
    background: var(--white);
    padding: 28px 25px;
    border-radius: 6px;
    border-left: 4px solid var(--accent);
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(11, 29, 58, 0.08);
}

.pillar-card {
    background: var(--white);
    padding: 25px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-top: 3px solid var(--accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(11, 29, 58, 0.08);
}

.pillar-num {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

/* Portfolio & Companies */
.portfolio-card-top,
.company-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.portfolio-card-top .company-badge,
.company-header-row .company-badge {
    margin-bottom: 0;
}

.company-logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 14px;
    height: 54px;
    box-shadow: 0 2px 6px rgba(11, 29, 58, 0.04);
}

.company-logo-box-lg {
    height: 66px;
    padding: 10px 18px;
}

.company-logo {
    max-height: 100%;
    max-width: 175px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.company-logo-box-lg .company-logo {
    max-width: 210px;
}

.company-badge {
    display: inline-block;
    background-color: rgba(197, 155, 39, 0.15);
    color: var(--accent-hover);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.portfolio-preview-card {
    border-top: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.portfolio-preview-card:hover {
    border-top-color: var(--accent);
}

.card-link-hint {
    margin-top: auto;
    padding-top: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-hover);
    transition: transform 0.3s ease;
}

.portfolio-preview-card:hover .card-link-hint {
    transform: translateX(4px);
    color: var(--primary);
}

.company-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 5px solid var(--accent);
    border-radius: 8px;
    padding: 35px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    scroll-margin-top: 100px;
}

.company-layout {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 35px;
    align-items: start;
}

.company-meta {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
}

.company-meta h4 {
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.meta-item {
    margin-bottom: 14px;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.meta-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.meta-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.company-card + .company-card {
    margin-top: 40px;
}

.company-card .btn {
    margin-top: 15px;
}

/* Contact boxes, Copy buttons & Forms */
.contact-box {
    background: var(--bg-light);
    padding: 20px 24px;
    border-radius: 6px;
    border-left: 4px solid var(--accent);
}

.contact-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.contact-box-header h4 {
    margin-bottom: 0;
}

.copy-btn {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--primary);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
}

.copy-btn.copied {
    background-color: #10b981;
    border-color: #10b981;
    color: var(--white);
}

.contact-box-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.focus-map-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    padding: 0;
    transition: color 0.25s ease;
}

.focus-map-btn:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.btn-vcard {
    width: 100%;
    background: var(--white);
    border: 1px dashed var(--accent);
    color: var(--primary);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 11px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-vcard:hover {
    background-color: rgba(197, 155, 39, 0.1);
    border-style: solid;
}

.contact-box a {
    color: var(--primary);
    font-weight: 600;
}

.contact-box a:hover {
    color: var(--accent);
}

.map-link {
    display: inline-block;
    font-size: 0.88rem;
    color: var(--accent-hover) !important;
}

.map-link:hover {
    color: var(--primary) !important;
    text-decoration: underline;
}

.map-section {
    scroll-margin-top: 68px;
}

.map-tabs {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.map-tab {
    background-color: var(--white);
    color: var(--primary);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-tab:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
}

.map-tab.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.map-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(11, 29, 58, 0.08);
    border: 1px solid var(--border);
    background: var(--white);
}

.map-wrapper iframe {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.form-header-row h3 {
    margin-bottom: 0;
}

.reset-form-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.reset-form-btn:hover {
    border-color: var(--accent);
    color: var(--primary);
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.label-with-counter {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.label-with-counter label {
    margin-bottom: 0;
}

.char-counter {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    background-color: var(--white);
    color: var(--text-dark);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.12);
}

.form-group input.valid-input, .form-group textarea.valid-input {
    border-color: #10b981;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--accent);
    cursor: pointer;
}

.checkbox-group label {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
    cursor: pointer;
}

/* Protection autonome Anti-Robot (Bouton Maintenir) */
.hold-verify-btn {
    position: relative;
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.hold-verify-btn:hover:not(.verified) {
    border-color: var(--accent);
}

.hold-verify-progress {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: linear-gradient(90deg, rgba(197, 155, 39, 0.22), rgba(197, 155, 39, 0.42));
    pointer-events: none;
}

.hold-verify-btn.verified {
    border-color: #10b981;
    background-color: #ecfdf5;
    color: #065f46;
    cursor: default;
}

.hold-verify-btn.verified .hold-verify-progress {
    width: 100% !important;
    background: rgba(16, 185, 129, 0.15);
}

.hold-verify-label {
    position: relative;
    z-index: 1;
}

.recaptcha-notice {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
    margin-bottom: 0;
}

/* Masque le badge flottant Google reCAPTCHA v3 puisque la mention officielle obligatoire est intégrée sous le formulaire */
.grecaptcha-badge {
    visibility: hidden;
}

.form-success {
    margin-top: 18px;
    padding: 14px 18px;
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-left: 4px solid #10b981;
    color: #065f46;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 500;
}

.form-error {
    margin-top: 18px;
    padding: 14px 18px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    color: #991b1b;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 500;
}

/* Maintenance Box (Form or Site Maintenance) */
.maintenance-box {
    background-color: rgba(197, 155, 39, 0.1);
    border: 1px solid rgba(197, 155, 39, 0.4);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 28px 24px;
    text-align: center;
    margin-top: 10px;
}

.maintenance-box h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.maintenance-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.site-maintenance-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 4000;
    text-align: center;
}

.site-maintenance-card {
    max-width: 560px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(197, 155, 39, 0.4);
    border-top: 4px solid var(--accent);
    border-radius: 12px;
    padding: 45px 35px;
    backdrop-filter: blur(6px);
}

.site-maintenance-card h1 {
    color: var(--white);
    font-size: 2rem;
    margin: 20px 0 12px;
}

.site-maintenance-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
}

/* 404 Error Page */
.error-404-section {
    min-height: 68vh;
    display: flex;
    align-items: center;
}

.error-404-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 50px 38px;
    border-top: 4px solid var(--accent);
}

.error-404-code {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    display: block;
    margin-bottom: 10px;
}

.missing-url-badge {
    display: inline-block;
    background-color: rgba(197, 155, 39, 0.12);
    border: 1px solid rgba(197, 155, 39, 0.35);
    color: var(--primary);
    font-family: monospace;
    font-size: 0.88rem;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
    word-break: break-all;
}

.error-404-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 26px 0 22px;
    text-align: left;
}

.error-404-link-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    transition: all 0.25s ease;
}

.error-404-link-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 6px 16px rgba(11, 29, 58, 0.08);
}

.error-404-link-icon {
    font-size: 1.35rem;
    margin-bottom: 2px;
}

.error-404-link-card strong {
    color: var(--primary);
    font-size: 1rem;
}

.error-404-link-card small {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.redirect-countdown-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.redirect-countdown-box strong {
    color: var(--accent-hover);
    font-size: 0.95rem;
}

.cancel-redirect-btn {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--primary);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    cursor: pointer;
    margin-left: 4px;
    transition: all 0.2s ease;
}

.cancel-redirect-btn:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
}

/* Visual Helper Mode for Text Variables (aideModificationTextes) */
.i18n-helper-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--accent);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.84rem;
    z-index: 3500;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.28);
    max-width: 380px;
    line-height: 1.4;
}

.i18n-helper-banner strong {
    color: var(--accent);
    display: block;
    margin-bottom: 2px;
}

.i18n-helper-hover {
    outline: 2px dashed var(--accent) !important;
    outline-offset: 3px !important;
    cursor: pointer !important;
}

.i18n-helper-tooltip {
    position: fixed;
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--accent);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.82rem;
    pointer-events: none;
    z-index: 4000;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
}

.i18n-helper-tooltip span {
    color: var(--accent);
    font-weight: 700;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 70px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 12px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto 28px;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(11, 29, 58, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s ease;
    z-index: 999;
}

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

.scroll-top-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 40px;
    padding-bottom: 40px;
}

footer h4 {
    color: var(--accent);
    font-size: 1.05rem;
    margin-bottom: 18px;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 10px;
}

footer a:hover {
    color: var(--accent);
}

footer p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    font-size: 0.85rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom-content p {
    margin-bottom: 0;
}

footer .privacy-trigger {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: underline;
    font-size: 0.85rem;
}

.inline-link.privacy-trigger {
    color: var(--accent-hover);
    font-weight: 600;
    text-decoration: underline;
}

.inline-link.privacy-trigger:hover {
    color: var(--primary);
}

/* Enriched Page Header & Breadcrumb */
.page-header {
    position: relative;
    background: linear-gradient(135deg, #0b1d3a 0%, #1a365d 100%);
    color: var(--white);
    padding: 70px 0 65px;
    text-align: center;
    border-bottom: 3px solid var(--accent);
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.07);
    padding: 5px 14px;
    border-radius: 50px;
}

.breadcrumb a {
    color: var(--accent);
    font-weight: 600;
}

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

.breadcrumb-sep {
    opacity: 0.6;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 14px;
}

.page-header-divider {
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    margin: 0 auto 16px;
    border-radius: 2px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
    max-width: 650px;
    margin: 0 auto;
}

/* Privacy Policy Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 29, 58, 0.72);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--white);
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 10px;
    padding: 35px;
    position: relative;
    border-top: 5px solid var(--accent);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(15px);
    transition: transform 0.3s ease;
}

.modal-overlay.open .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--primary);
    color: var(--white);
}

.modal-box h3 {
    font-size: 1.5rem;
    margin-bottom: 18px;
    padding-right: 40px;
}

.modal-box h4 {
    color: var(--primary);
    margin-top: 18px;
    margin-bottom: 6px;
}

.modal-box p {
    font-size: 0.93rem;
    color: var(--text-dark);
}

/* ============================================================================
   DARK MODE ("Private Equity" Theme)
   ============================================================================ */
body.dark-mode {
    background-color: #071122;
    color: #e2e8f0;
}

body.dark-mode .navbar {
    background-color: #0b1930;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode .logo-title,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
    color: #f8fafc;
}

body.dark-mode .nav-menu a {
    color: #cbd5e1;
}

body.dark-mode .nav-menu a:hover,
body.dark-mode .nav-menu a.active {
    color: var(--accent);
}

body.dark-mode .btn-nav {
    background-color: var(--accent);
}

body.dark-mode .btn-nav:hover {
    background-color: var(--accent-hover);
}

body.dark-mode .nav-toggle span {
    background-color: #f8fafc;
}

body.dark-mode .theme-toggle,
body.dark-mode .lang-switcher {
    background-color: #132644;
    border-color: #1e3a5f;
}

body.dark-mode .lang-btn {
    color: #94a3b8;
}

body.dark-mode .lang-btn:hover {
    color: #f8fafc;
}

body.dark-mode .lang-btn.active {
    background-color: var(--accent);
    color: var(--white);
}

body.dark-mode .bg-light {
    background-color: #0b1930;
}

body.dark-mode .card,
body.dark-mode .service-card,
body.dark-mode .pillar-card,
body.dark-mode .company-card,
body.dark-mode .modal-box {
    background-color: #112240;
    border-color: #1e3a5f;
    color: #e2e8f0;
}

body.dark-mode .highlight-card {
    background-color: #162c52;
}

body.dark-mode .highlight-card h3 {
    color: var(--accent);
}

body.dark-mode .company-meta,
body.dark-mode .contact-box,
body.dark-mode .hold-verify-btn:not(.verified) {
    background-color: #0b1930;
    border-color: #1e3a5f;
    color: #f8fafc;
}

body.dark-mode .meta-value,
body.dark-mode .modal-box p {
    color: #e2e8f0;
}

body.dark-mode .section-subtitle,
body.dark-mode .meta-label,
body.dark-mode .checkbox-group label,
body.dark-mode .char-counter {
    color: #94a3b8;
}

body.dark-mode .company-badge,
body.dark-mode .inline-link,
body.dark-mode .inline-link.privacy-trigger {
    color: #e6c555;
}

body.dark-mode .portfolio-preview-card {
    border-top-color: var(--accent);
}

body.dark-mode .portfolio-preview-card:hover .card-link-hint,
body.dark-mode .focus-map-btn,
body.dark-mode .contact-box a,
body.dark-mode .inline-link:hover,
body.dark-mode .inline-link.privacy-trigger:hover {
    color: #f8fafc;
}

body.dark-mode .copy-btn,
body.dark-mode .map-tab,
body.dark-mode .modal-close,
body.dark-mode .reset-form-btn,
body.dark-mode .btn-vcard,
body.dark-mode .cancel-redirect-btn {
    background-color: #162c52;
    border-color: #264673;
    color: #f8fafc;
}

body.dark-mode .error-404-link-card,
body.dark-mode .redirect-countdown-box {
    background-color: #0b1930;
    border-color: #1e3a5f;
}

body.dark-mode .error-404-link-card strong,
body.dark-mode .missing-url-badge {
    color: #f8fafc;
}

body.dark-mode .error-404-link-card small,
body.dark-mode .redirect-countdown-box {
    color: #94a3b8;
}

body.dark-mode .map-tab.active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background-color: #0b1930;
    border-color: #264673;
    color: #f8fafc;
}

body.dark-mode .maintenance-box h4 {
    color: var(--accent);
}

body.dark-mode .maintenance-box p {
    color: #cbd5e1;
}

body.dark-mode .nav-menu {
    background-color: transparent;
}

/* Responsive */
@media (max-width: 900px) {
    .grid-2, .grid-3, .grid-5, .stats-grid, .footer-grid, .company-layout, .form-row, .error-404-links {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.1rem;
    }
    .btn-outline {
        margin-left: 0;
        margin-top: 10px;
    }
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    body.dark-mode .nav-menu {
        background-color: #0b1930;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }
}

/* Print Styles */
@media print {
    .page-loader,
    .announcement-banner,
    .navbar,
    .scroll-progress,
    .scroll-top-btn,
    .hero-scroll-down,
    .hero-buttons,
    .cta-section,
    .map-section,
    .copy-btn,
    .focus-map-btn,
    .map-link,
    footer {
        display: none !important;
    }
    body {
        color: #000 !important;
        background: #fff !important;
    }
    .hero, .page-header {
        background: none !important;
        color: #000 !important;
        padding: 20px 0 !important;
        border-bottom: 2px solid #000;
    }
    .hero h1, .page-header h1, .hero-description, .page-header p {
        color: #000 !important;
    }
    .section {
        padding: 25px 0 !important;
    }
    .card, .service-card, .pillar-card, .company-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}