/* ===== VARIABLES & THEME ===== */
:root {
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;

    /* Light theme */
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #1a2440;
    --text-secondary: #4a6080;
    --text-muted: #7a90a8;
    --accent: #1f3263;
    --accent-light: #2a6a46;
    --accent-green: #2a6a46;
    --accent-bg: rgba(31, 50, 99, 0.08);
    --accent-green-bg: rgba(42, 106, 70, 0.08);
    --border: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --gradient-hero: linear-gradient(135deg, #f0f3fa 0%, #fafafa 50%, #f0faf3 100%);
    --gradient-accent: linear-gradient(135deg, #1f3263, #2a6a46);
}

[data-theme="dark"] {
    --bg-primary: #0f1820;
    --bg-secondary: #162030;
    --bg-card: #1a2640;
    --text-primary: #e4edf5;
    --text-secondary: #8aaccc;
    --text-muted: #5a7a9a;
    --accent: #4a7ec8;
    --accent-light: #4cb878;
    --accent-green: #4cb878;
    --accent-bg: rgba(74, 126, 200, 0.12);
    --accent-green-bg: rgba(76, 184, 120, 0.12);
    --border: rgba(255, 255, 255, 0.06);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
    --glass: rgba(15, 24, 32, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --gradient-hero: linear-gradient(135deg, #0a1628 0%, #0f1820 50%, #0d1f18 100%);
    --gradient-accent: linear-gradient(135deg, #2e6ab8, #3d9970);
}

/* ===== PAGE LOADER ===== */
#page-loader {
    position: fixed;
    inset: 0;
    background: #fafafa;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
    #page-loader { background: #0f1820; }
    .loader-blue  { color: #4a7ec8; }
    .loader-green { color: #4cb878; }
    .loader-track { background: rgba(74, 126, 200, 0.15); }
}

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

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: loader-appear 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes loader-appear {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.loader-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}

.loader-blue  { color: #1f3263; }
.loader-green { color: #2a6a46; }

.loader-track {
    width: 150px;
    height: 2px;
    background: rgba(31, 50, 99, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.loader-fill {
    height: 100%;
    background: linear-gradient(90deg, #1f3263, #2a6a46);
    border-radius: 2px;
    width: 0%;
    animation: loader-bar 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loader-bar {
    0%   { width: 0%; }
    40%  { width: 65%; }
    75%  { width: 85%; }
    100% { width: 100%; }
}

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

html {
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

a { text-decoration: none; color: inherit; transition: color 0.3s; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== ACCESSIBILITY ===== */

/* Skip to content link — visible only on focus (keyboard Tab) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 0 0 12px 12px;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Screen reader only — hidden visually but announced */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible — keyboard-only focus ring (not mouse click) */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Remove default focus outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* Respect reduced motion preference — only reduce background decorative shapes */
@media (prefers-reduced-motion: reduce) {
    .shape { animation: none !important; }
}

/* High contrast mode adjustments */
@media (forced-colors: active) {
    .btn-primary {
        border: 2px solid ButtonText;
    }
    .title-line {
        background: LinkText;
    }
    .ref-badge {
        border: 2px solid LinkText;
    }
}

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

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.navbar.scrolled {
    padding: 10px 0;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    width: 200px;
    height: 70px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    background: var(--accent-bg);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle,
.lang-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover,
.lang-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.theme-toggle svg { width: 18px; height: 18px; }

[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

.lang-toggle {
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-body);
}

.menu-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-burger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-burger.active span:nth-child(2) { opacity: 0; }
.menu-burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
    padding-top: 80px;
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    filter: blur(80px);
}

.shape-1 {
    width: 500px; height: 500px;
    background: var(--accent);
    opacity: 0.08;
    top: -100px; right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 300px; height: 300px;
    background: #3b82f6;
    opacity: 0.06;
    bottom: -50px; left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px; height: 200px;
    background: var(--accent-light);
    opacity: 0.06;
    top: 50%; left: 40%;
    animation: float 12s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-title span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--accent-light);
    color: #fff;
    box-shadow: 0 4px 20px rgba(42, 106, 70, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(42, 106, 70, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.btn-full { width: 100%; justify-content: center; }

/* Hero image */
.hero-image {
    display: flex;
    justify-content: center;
}

.hero-img-wrapper {
    position: relative;
    width: 380px;
    height: 460px;
    border-radius: 200px 200px 40px 40px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transform: scale(1.38);
    transform-origin: center top;
}

.hero-img-wrapper:has(.hero-logo-img) {
    border-radius: 30px;
    overflow: hidden;
}

.hero-img-wrapper img.hero-logo-img {
    object-fit: contain;
    padding: 30px;
}

.hero-img-accent {
    display: none;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--accent);
    border-radius: 3px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(8px); }
}

/* Hero secondary text */
.hero-desc-secondary {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
    max-width: 500px;
}

/* ===== REFERENTIELS BANNER ===== */
.referentiels {
    padding: 50px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ref-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 600;
}

.ref-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.ref-badge {
    padding: 10px 24px;
    background: var(--accent-bg);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.ref-badge:hover {
    background: var(--accent-light);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
}

.ref-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.ref-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 680px;
    margin: 20px auto 0;
    line-height: 1.7;
}

.ref-covers-title {
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 14px;
    animation: pulse-title 3s ease-in-out infinite;
}

@keyframes pulse-title {
    0%, 100% { color: var(--text-secondary); }
    50%       { color: var(--accent); }
}

.ref-covers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
    margin-bottom: 12px;
}

.ref-covers li {
    font-size: 0.84rem;
    color: var(--text-secondary);
    padding: 6px 16px;
    background: var(--bg-primary);
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: border-color 0.3s;
}

.ref-covers li:hover { border-color: var(--accent); }

.ref-note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 14px;
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
}

.section-title span {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
}

.title-line {
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-light);
    border-radius: 4px;
    margin: 16px auto 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 550px;
    margin: 0 auto 60px;
}

/* ===== ABOUT ===== */
.about {
    background: var(--bg-secondary);
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-wrapper img,
.about-img-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-img-dots {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(var(--accent) 2px, transparent 2px);
    background-size: 16px 16px;
    opacity: 0.3;
    pointer-events: none;
}

.about-heading {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.about-emphasis {
    color: var(--accent);
    font-weight: 500;
    font-style: italic;
    padding: 16px;
    background: var(--accent-bg);
    border-left: 3px solid var(--accent);
    border-radius: 0 12px 12px 0;
    margin-top: 8px;
}

.about-linkedin {
    margin-top: 24px;
    display: inline-flex;
}

/* ===== SERVICES ===== */
.services-tagline {
    display: block;
    margin-top: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 16px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px 28px 32px;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.service-card--primary   { border-top: 4px solid var(--accent-green); }
.service-card--secondary { border-top: 4px solid var(--accent); }

.service-card-image {
    display: flex;
    justify-content: center;
    margin-bottom: 2px;
    overflow: hidden;
    height: 120px;
}

.service-card-image img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    object-position: center top;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.015);
}
.service-card--primary:hover {
    box-shadow: 0 20px 44px rgba(42, 106, 70, 0.18);
    border-color: var(--accent-green);
}
.service-card--secondary:hover {
    box-shadow: 0 20px 44px rgba(31, 50, 99, 0.18);
    border-color: var(--accent);
}

.service-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--accent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.18) rotate(-8deg);
}
.service-card--primary:hover .service-icon {
    background: var(--accent-green);
    color: #fff;
}
.service-card--secondary:hover .service-icon {
    background: var(--accent);
    color: #fff;
}

.service-card:hover .service-card-image img {
    transform: translateY(-6px);
}

.service-card--secondary .service-icon {
    background: var(--accent-green-bg);
    color: var(--accent-green);
}

.service-icon svg { width: 26px; height: 26px; }

.service-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.service-card--primary .service-title   { color: var(--accent-green); }
.service-card--secondary .service-title { color: var(--accent); }

.service-title  { text-align: center; }
.service-subtitle { text-align: center; }

.service-subtitle {
    font-size: 0.84rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 10px;
}

.service-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.service-checklist li {
    position: relative;
    padding-left: 22px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.service-checklist li::before {
    content: '✓';
    font-weight: 700;
    font-size: 0.88rem;
    position: absolute;
    left: 0;
    top: 1px;
}

.service-card--primary   .service-checklist li::before { color: var(--accent-green); }
.service-card--secondary .service-checklist li::before { color: var(--accent); }

.service-card--primary .service-checklist li { color: #2a6a5a; }
[data-theme="dark"] .service-card--primary .service-checklist li { color: #4cbfa0; }


/* Modalités d'intervention */
.modalites {
    margin-top: 40px;
    padding: 32px 36px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.modalites h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.modalites-intro {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.modalites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.modalite-item {
    padding: 18px 16px;
    background: var(--bg-card);
    border-radius: 12px;
    border-left: 3px solid var(--accent);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modalite-item h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.modalite-item h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    transition: width 0.35s ease;
}

.modalite-item:hover h4::after {
    width: 100%;
}

.modalite-item p {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== PROCESS (Conduite d'un audit) ===== */
.process {
    background: var(--bg-secondary);
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
    position: relative;
}

/* Big arrow SVG — hidden, replaced by CSS arrows between cards */
.process-arrow { display: none; }

/* Arrows between process cards */
.process-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -26px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 16px solid var(--accent);
    opacity: 0.4;
    z-index: 3;
    filter: drop-shadow(0 0 6px var(--accent));
}

.process-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
}

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

/* Vanilla-tilt glare container fix */
.process-card .js-tilt-glare {
    border-radius: inherit;
}

.process-number {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 16px;
    line-height: 1;
    transform: translateZ(40px);
}

.process-content {
    transform: translateZ(30px);
}

.process-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.process-content p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Contact notice */
.contact-notice {
    background: var(--accent-bg);
    border: 1px solid var(--accent);
    border-radius: 16px;
    padding: 24px;
    margin-top: 8px;
}

.contact-notice h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
}

.contact-notice ul {
    list-style: none;
    padding: 0;
}

.contact-notice li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 4px 0 4px 20px;
    position: relative;
}

.contact-notice li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* Process note ISO 19011 */
.process-note {
    text-align: center;
    margin-top: 32px;
    font-size: 0.84rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ===== POURQUOI AUDIXA COMPLIANCE ===== */
.pourquoi {
    background: var(--bg-secondary);
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pourquoi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}


.pourquoi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.pourquoi-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 36px rgba(31, 50, 99, 0.14);
    border-color: var(--accent);
}

.pourquoi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, color 0.3s ease;
}

.pourquoi-card:hover .pourquoi-icon {
    transform: scale(1.2) rotate(8deg);
    background: var(--accent);
    color: #fff;
}

.pourquoi-icon svg { width: 22px; height: 22px; }

.pourquoi-card h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pourquoi-card p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-info {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 0;
    flex: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    background: var(--accent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.contact-icon svg { width: 24px; height: 24px; }

.contact-card h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.contact-card a,
.contact-card p {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

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

/* Form */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.contact-form .form-group {
    margin-bottom: 0;
}

.contact-form .form-group.full-width,
.contact-form button {
    grid-column: 1 / -1;
}

.form-group {
    position: relative;
    margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-primary);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-primary) inset;
    -webkit-text-fill-color: var(--text-primary);
    transition: background-color 5000s ease-in-out 0s;
}

/* Select dropdown */
.form-group select {
    width: 100%;
    padding: 16px 40px 16px 18px;
    background: var(--bg-primary);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a6080' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-bg);
}

/* Select — label flottant comme les inputs */
.form-group--select label {
    top: 16px;
    left: 18px;
    max-width: calc(100% - 56px); /* laisse la place au chevron (40px) + marge */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-group--select select:focus ~ label,
.form-group--select.has-value label {
    top: -9px;
    font-size: 0.75rem;
    color: var(--accent);
}

.form-group.error select {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* Critere "Autre" text field (hidden by default) */
.critere-autre-group {
    display: none;
    margin-top: 10px;
}

.critere-autre-group.visible { display: block; }

/* Confidentiality text under submit button */
.form-confidentiality {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: center;
    line-height: 1.5;
}

.form-confidentiality svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-bg);
}

.form-group label {
    position: absolute;
    left: 14px;
    top: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    padding: 0 6px;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -9px;
    font-size: 0.75rem;
    color: var(--accent);
}

/* Textarea fixed size */
.form-group textarea {
    resize: none;
    height: 120px;
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    padding-left: 4px;
}

/* Email validation error */
.form-error {
    display: none;
    font-size: 0.8rem;
    color: #ef4444;
    margin-top: 6px;
    padding-left: 4px;
    transition: all 0.3s ease;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-group.error .form-error {
    display: block;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* Character counter */
.char-counter {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 4px;
    transition: color 0.3s, opacity 0.3s, max-height 0.3s;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

.char-counter.visible {
    opacity: 1;
    max-height: 20px;
}
.char-counter.warning { color: #f59e0b; }
.char-counter.limit { color: #ef4444; font-weight: 600; }

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 40px 0;
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

/* Back to top button */
.back-to-top {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-bg);
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: var(--accent-light);
    color: #fff;
    border-color: transparent;
    transform: translateY(-50%) translateY(-3px);
    box-shadow: 0 4px 16px rgba(31, 50, 99, 0.3);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

.footer-logo span { color: var(--accent-light); }

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-socials a:hover {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-socials svg { width: 20px; height: 20px; }

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== FOOTER CREDIT - bapt-bout ===== */
.footer-credit {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: -16px;
}

.credit-name {
    font-weight: 600;
    background: linear-gradient(
        90deg,
        #1f3263, #2a6a46, #1f3263, #2a6a46, #1f3263
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gentle-shift 6s linear infinite;
    transition: opacity 0.3s ease;
}

.credit-name:hover {
    opacity: 0.75;
}

@keyframes gentle-shift {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* ===== SCROLL ANIMATIONS ===== */
[data-animate] {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate="fade-right"] { transform: translateX(-60px); }
[data-animate="fade-left"]  { transform: translateX(60px); }
[data-animate="fade-up"]    { transform: translateY(40px); }
[data-animate="fade-up-scale"] { transform: translateY(30px) scale(0.94); }

[data-animate].visible {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}

/* Service cards: glide in from sides — only during entry */
.service-card[data-animate]:not(.visible) {
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pourquoi cards: spring pop-up — only during entry */
.pourquoi-card[data-animate]:not(.visible) {
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1), transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Remove transform transition on process cards after reveal so vanilla-tilt works */
.process-card[data-animate].visible {
    transition: box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESPONSIVE ===== */

/* Large tablets / small laptops */
@media (max-width: 1024px) {
    .container { padding: 0 20px; }
    .hero-grid { gap: 40px; }
    .hero-img-wrapper { width: 320px; height: 400px; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .process-card:not(:last-child)::after { display: none; }
}

/* Tablets */
@media (max-width: 900px) {
    .services-grid { grid-template-columns: 1fr; }
    .modalites-grid { grid-template-columns: 1fr; gap: 14px; }
    .pourquoi-grid { grid-template-columns: repeat(2, 1fr); }

    .hero-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image { order: -1; }

    .hero-img-wrapper {
        width: 260px;
        height: 320px;
    }

    .hero-content { text-align: center; }
    .hero-desc,
    .hero-desc-secondary { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }

    .about-image { display: flex; justify-content: center; }
    .about-img-wrapper { max-width: 400px; }

    .contact-grid { gap: 32px; }
}

/* Mobile landscape / small tablets */
@media (max-width: 768px) {
    /* Navbar always visible with solid bg on mobile */
    .navbar {
        padding: 8px 0 !important;
        background: var(--bg-primary) !important;
        backdrop-filter: none !important;
        border-bottom: 1px solid var(--border);
        transition: none;
    }

    /* Fullscreen mobile menu overlay */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background-color: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.35s ease, visibility 0.35s ease;
        z-index: 9998;
        overflow-y: auto;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    .nav-link {
        font-size: 1.4rem;
        padding: 16px 32px;
        width: 80%;
        max-width: 320px;
        text-align: center;
        border-radius: 14px;
        color: var(--text-primary);
    }

    .nav-link:hover,
    .nav-link.active {
        background: var(--accent-bg);
        color: var(--accent);
    }

    .menu-burger {
        display: flex;
        z-index: 9999;
        position: relative;
    }

    .nav-actions {
        z-index: 9999;
        position: relative;
    }

    .scroll-indicator { display: none; }

    .section { padding: 70px 0; }
    .section-subtitle { margin-bottom: 40px; }

    .services-grid { grid-template-columns: 1fr; gap: 16px; }
    .service-card { padding: 24px 20px; }

    .process-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

    .contact-form { padding: 24px; grid-template-columns: 1fr 1fr; }
    .contact-info { flex-direction: column; }
    .contact-card { padding: 18px; gap: 14px; }
    .contact-icon { width: 44px; height: 44px; min-width: 44px; }

    .nav-logo-img { width: 140px; height: 50px; }

    .ref-badge { padding: 8px 18px; font-size: 0.8rem; }
}

/* Mobile portrait */
@media (max-width: 560px) {
    .pourquoi-grid { grid-template-columns: 1fr; }
    .modalites { padding: 24px 20px; }
    .container { padding: 0 16px; }

    .hero {
        padding-top: 80px;
        padding-bottom: 40px;
        min-height: auto;
    }
    .hero-title { font-size: 1.8rem; }
    .hero-desc { font-size: 0.9rem; }
    .hero-desc-secondary { font-size: 0.85rem; }
    .hero-buttons { flex-direction: column; align-items: center; width: 100%; }
    .hero-buttons .btn { width: 100%; justify-content: center; }

    .hero-img-wrapper { width: 200px; height: 250px; }

    .section { padding: 60px 0; }
    .section-title span { font-size: 1.8rem; }

    .process-grid { grid-template-columns: 1fr; }
    .process-card { padding: 24px 20px; }

    .contact-card h3 { font-size: 0.8rem; }
    .contact-card a, .contact-card p { font-size: 0.85rem; }
    .contact-form { grid-template-columns: 1fr; }

    .form-group textarea { height: 150px; }

    .footer { padding: 30px 0; }
    .footer-content { gap: 16px; }

    .back-to-top {
        position: static;
        transform: none;
        margin: 10px auto 0;
    }
    .back-to-top:hover {
        transform: translateY(-3px);
    }

    .nav-link { font-size: 1.2rem; padding: 12px 24px; }

    .referentiels { padding: 30px 0; }
    .ref-grid { gap: 10px; }
    .ref-badge { padding: 7px 14px; font-size: 0.75rem; }

    .about-linkedin { width: 100%; justify-content: center; }
}

/* Very small phones */
@media (max-width: 360px) {
    .hero-title { font-size: 1.6rem; }
    .hero-img-wrapper { width: 170px; height: 210px; }
    .btn { padding: 11px 22px; font-size: 0.85rem; }
    .nav-actions { gap: 4px; }
    .theme-toggle, .lang-toggle { width: 36px; height: 36px; border-radius: 10px; }
    .nav-logo-img { width: 120px; height: 42px; }
}

