/* ============================================
   KORSO MARITIME - Stylesheet Principal Complet
   Version: 3.4 - Bannières groupées par thème
   ============================================ */

/* ===== VARIABLES CSS ===== */
:root {
    /* Couleurs principales */
    --primary-blue: #006A9A;
    --primary-dark: #004d73;
    --secondary-blue: #2F5496;
    --accent-blue: #0088cc;
    
    /* Texte */
    --text-dark: #2F3133;
    --text-light: #666666;
    --text-white: #ffffff;
    
    /* Fonds */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-blue-light: #f0f4ff;
    
    /* Bordures et ombres */
    --border-color: #eaeaea;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;
    
    /* Layout */
    --navbar-height: 70px;
    --container-max-width: 1200px;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', 'Calibri', 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    padding-top: var(--navbar-height);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-normal);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ===== UTILITAIRES ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.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;
}

/* ============================================
   HEADER & NAVIGATION - STRUCTURE COMMUNE
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: background-color var(--transition-fast), 
                box-shadow var(--transition-fast);
    isolation: isolate;
}

.navbar.scrolled {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
    z-index: 1001;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: height var(--transition-normal);
}

/* ============================================
   NAVIGATION DESKTOP (Mega Menu)
   Visible uniquement sur ≥993px
   ============================================ */

.desktop-nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.desktop-menu {
    display: flex;
    list-style: none;
    align-items: center;
    height: 100%;
    gap: 30px;
}

.desktop-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.desktop-link {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 100%;
    cursor: pointer;
    transition: color var(--transition-normal);
}

.desktop-link:hover,
.desktop-link.active {
    color: var(--primary-blue);
}

.desktop-link i {
    font-size: 0.75rem;
    transition: transform var(--transition-normal);
}

/* Mega Menu Panel */
.has-megamenu {
    position: static;
}

.megamenu-panel {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--primary-blue);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 999;
    padding: 40px 0;
    pointer-events: none;
}

.has-megamenu:hover .megamenu-panel,
.has-megamenu:focus-within .megamenu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    max-height: 600px;
}

.has-megamenu:hover .desktop-link i,
.has-megamenu:focus-within .desktop-link i {
    transform: rotate(180deg);
}

.megamenu-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 40px;
}

.megamenu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.megamenu-column {
    padding-right: 20px;
}

.megamenu-column h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--bg-blue-light);
    padding-bottom: 10px;
}

.megamenu-column h4 a {
    color: var(--primary-blue);
    transition: color var(--transition-normal);
}

.megamenu-column h4 a:hover {
    color: var(--primary-dark);
}

.megamenu-column h4 a.active {
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 2px;
}

.megamenu-column p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.6;
}

.megamenu-column .quote {
    font-style: italic;
    color: var(--primary-blue);
    margin: 10px 0 15px 0;
    padding-left: 15px;
    border-left: 3px solid var(--bg-blue-light);
    font-size: 0.9rem;
}

/* ============================================
   NAVIGATION MOBILE (Drawer)
   Visible uniquement sur ≤992px
   ============================================ */

.mobile-nav {
    display: none;
}

/* HAMBURGER OPTIMISÉ - Fin (3px) avec espacement 8px */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 48px;
    z-index: 1002;
    position: relative;
    margin-right: -10px;
    gap: 8px;
}

.bar {
    height: 3px;
    width: 28px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all var(--transition-normal);
    display: block;
    flex-shrink: 0;
}

/* Animation hamburger → X */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* ============================================
   HERO SECTION - ACCUEIL
   ============================================ */

.hero {
    position: relative;
    color: var(--text-white);
    padding: 100px 0 80px;
    text-align: center;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 0;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slideshow .slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 106, 154, 0.7) 0%,
        rgba(0, 106, 154, 0.4) 30%,
        rgba(0, 106, 154, 0.15) 50%,
        rgba(0, 106, 154, 0.05) 65%,
        transparent 75%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    color: var(--text-white);
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    color: var(--text-white);
    font-size: 1.4rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto 40px;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.hero-button {
    background-color: var(--bg-white);
    color: var(--primary-blue);
    padding: 16px 35px;
    border-radius: 4px;
    font-weight: 400;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-normal);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hero-button:hover {
    background-color: var(--primary-blue);
    color: var(--text-white);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.hero-button.secondary {
    background-color: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.hero-button.secondary:hover {
    background-color: var(--bg-white);
    color: var(--primary-blue);
}

/* ============================================
   HERO PAGES INTERNES
   ============================================ */

/* Style de base pour toutes les bannières internes */
.page-hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--text-white);
    padding: 100px 0 80px;
    text-align: center;
    width: 100%;
    min-height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

/* Gradient overlay (commun à toutes les pages) */
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 106, 154, 0.7) 0%,
        rgba(0, 106, 154, 0.4) 30%,
        rgba(0, 106, 154, 0.15) 50%,
        rgba(0, 106, 154, 0.05) 65%,
        transparent 75%
    );
    z-index: 1;
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.page-hero h1 {
    color: var(--text-white);
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-hero .subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 600;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* ============================================
   BANNIÈRES PAR GROUPE DE PAGES
   ============================================ */

/* Groupe 1: Pages institutionnelles (ban-about.webp) */
.page-hero.who-we-are-page,
.page-hero.forensic-mindset-page,
.page-hero.methodology-page {
    background-image: url('../assets/images/ban-about.webp');
}

/* Groupe 2: Pages fondateur & credentials (ban-founder.webp) */
.page-hero.founder-vision-page,
.page-hero.credentials-page {
    background-image: url('../assets/images/ban-founder.webp');
}

/* Groupe 3: Pages services techniques (ban-service.webp) */
.page-hero.forensic-investigations-page,
.page-hero.accident-reconstruction-page,
.page-hero.standard-surveys-page {
    background-image: url('../assets/images/ban-service.webp');
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
    background: var(--bg-white);
    padding: 60px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    width: 100%;
    margin: 40px auto 0;
    text-align: center;
}

.stat-item {
    padding: 30px 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   SECTIONS DE CONTENU - PAGES INTERNES
   ============================================ */

.content-section {
    padding: 60px 0;
    width: 100%;
}

.content-section.alt-bg {
    background-color: var(--bg-light);
}

.section-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    color: var(--primary-blue);
    font-size: 1.6rem;
    margin: 0 0 25px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-blue-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.section-text {
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.section-text strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* ============================================
   MISE EN VALEUR - HIGHLIGHT BOX
   ============================================ */

.differentiation-highlight {
    background: var(--bg-blue-light);
    padding: 25px;
    border-left: 4px solid var(--primary-blue);
    margin: 30px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ============================================
   CARTES DE CONTENU (Key Points, Steps, etc.)
   ============================================ */

.content-card {
    background: var(--bg-blue-light);
    padding: 25px 30px;
    margin: 25px 0;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
}

.content-card h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content-card p {
    margin-bottom: 0;
    color: var(--text-dark);
}

.content-card .step-number {
    color: var(--primary-blue);
    font-size: 1.6rem;
    margin-right: 10px;
    font-weight: 700;
}

/* Variante avec bordure plus épaisse */
.content-card--thick {
    border-left-width: 6px;
    padding: 30px;
}

/* ============================================
   CITATIONS
   ============================================ */

.section-quote {
    font-style: italic;
    color: var(--primary-blue);
    padding: 25px 30px;
    margin: 30px 0;
    background: var(--bg-blue-light);
    border-left: 4px solid var(--primary-blue);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.6;
    border-radius: 0 8px 8px 0;
}

.section-quote--bold {
    font-style: normal;
    font-weight: 700;
    color: var(--text-dark);
}

/* ============================================
   LISTES
   ============================================ */

/* Liste à puces standard */
.content-list {
    margin: 20px 0 25px 40px;
    list-style: disc;
}

.content-list li {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* Liste numérotée stylisée */
.content-list-numbered {
    margin: 20px 0 25px 0;
    list-style: none;
    counter-reset: item;
}

.content-list-numbered li {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 1.1rem;
    color: var(--text-dark);
    padding-left: 50px;
    position: relative;
    font-weight: 600;
}

.content-list-numbered li::before {
    content: counter(item);
    counter-increment: item;
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ============================================
   PRINCIPES (Layout 2+2)
   ============================================ */

.principles-container {
    text-align: center;
    padding: 30px 0;
    border-top: 2px solid var(--bg-blue-light);
}

.principles-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.principles-row:last-child {
    margin-bottom: 0;
}

.principle-item {
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 600;
    white-space: nowrap;
}

.principle-separator {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.1rem;
}

.principles-intro {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* ============================================
   CTA SECTIONS
   ============================================ */

/* CTA Accueil */
.final-cta {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    color: var(--text-white);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.final-cta h2 {
    color: var(--text-white);
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.final-cta p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Pages internes */
.page-cta {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    color: var(--text-white);
    padding: 60px 0;
    text-align: center;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.page-cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-cta h2 {
    color: var(--text-white);
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-cta p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Bouton CTA */
.cta-big-button {
    background-color: var(--bg-white);
    color: var(--primary-blue);
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    display: inline-block;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-big-button:hover {
    background-color: var(--bg-blue-light);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   DIFFERENTIATION SECTION (Accueil)
   ============================================ */

.differentiation {
    background: var(--bg-white);
    padding: 80px 0 80px;
    text-align: center;
}

.differentiation h2 {
    color: var(--primary-blue);
    font-size: 2.2rem;
    margin-bottom: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.differentiation-fulltext {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: left;
    color: var(--text-dark);
    line-height: 1.7;
}

.differentiation-fulltext p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.differentiation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: var(--container-max-width);
    margin: 50px auto 0;
}

.diff-card-image {
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: all var(--transition-normal);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.diff-card-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.diff-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 106, 154, 0.25), rgba(0, 106, 154, 0.25));
    z-index: 1;
}

.diff-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-slow);
}

.diff-card-image:hover .diff-card-bg {
    transform: scale(1.05);
}

.diff-card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px;
    color: var(--text-white);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.diff-card-content h3 {
    color: var(--text-white);
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    max-width: 90%;
}

.diff-card-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    max-width: 85%;
}

.diff-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform var(--transition-normal);
}

.diff-card-link:hover .diff-card-image {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: #f5f5f5;
    color: var(--text-dark);
    padding: 25px 0;
    text-align: right;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    color: var(--primary-blue);
}

.footer-tagline,
.footer-coverage,
.footer-copyright {
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CREDENTIALS PAGE SPECIFIC
   ============================================ */

.credential-link {
    color: var(--primary-blue);
    font-size: 1rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
    transition: color var(--transition-normal);
}

.credential-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.credential-link i {
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Logos section */
.logos-section {
    text-align: center;
    margin: 50px 0;
    padding: 30px 0;
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.logos-image {
    max-width: 510px;
    width: 85%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

/* ============================================
   COMPARISON TABLE (Accident Reconstruction)
   ============================================ */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th {
    background-color: var(--primary-blue);
    color: var(--text-white);
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1.1rem;
}

.comparison-table td {
    padding: 16px 15px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.comparison-table tr:nth-child(even) {
    background-color: var(--bg-light);
}

.comparison-table tr:hover {
    background-color: var(--bg-blue-light);
}

/* ============================================
   SERVICE NAVIGATION (Liens entre services)
   ============================================ */

.service-navigation {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    margin: 40px 0;
    text-align: center;
    border: 2px solid var(--border-color);
}

.service-navigation a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color var(--transition-normal);
}

.service-navigation a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ============================================
   SIGNATURE SECTION (Founder's Vision, etc.)
   ============================================ */

.signature-section {
    padding: 40px 0;
    text-align: center;
    border-top: 2px solid var(--bg-blue-light);
    margin-top: 40px;
}

.signature-name {
    color: var(--text-dark);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.signature-title {
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.signature-specialty {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0;
}

/* ============================================
   RESPONSIVE DESIGN - TABLET & MOBILE
   ============================================ */

@media (max-width: 992px) {
    /* Ajustements généraux */
    body {
        padding-top: 0;
    }
    
    .navbar {
        height: 80px;
        position: relative;
        background-color: var(--bg-white);
    }
    
    .nav-container {
        height: 80px;
        padding: 0 20px;
    }
    
    /* Masquer la navigation desktop */
    .desktop-nav {
        display: none;
    }
    
    /* Afficher et styler la navigation mobile */
    .mobile-nav {
        display: block;
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--bg-white);
        box-shadow: var(--shadow-lg);
        transition: left var(--transition-normal);
        z-index: 999;
        overflow-y: auto;
        padding-top: 100px;
    }
    
    .mobile-nav.active {
        left: 0;
    }
    
    /* Overlay sombre quand menu ouvert */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        z-index: 998;
    }
    
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Menu mobile - structure simple */
    .mobile-menu {
        list-style: none;
        padding: 0;
    }
    
    .mobile-item {
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-link {
        display: block;
        padding: 22px 25px;
        color: var(--text-dark);
        font-weight: 600;
        font-size: 1.1rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all var(--transition-normal);
        position: relative;
        line-height: 1.4;
    }
    
    .mobile-link:hover,
    .mobile-link.active {
        background-color: var(--bg-blue-light);
        color: var(--primary-blue);
        padding-left: 30px;
    }
    
    /* Sous-menu mobile (accordéon) */
    .mobile-submenu {
        max-height: 0;
        overflow: hidden;
        background-color: #f9f9f9;
        transition: max-height var(--transition-normal);
    }
    
    .mobile-submenu.active {
        max-height: 500px;
    }
    
    .mobile-submenu-item {
        border-bottom: 1px solid #eee;
    }
    
    .mobile-submenu-item:last-child {
        border-bottom: none;
    }
    
    .mobile-submenu-link {
        display: block;
        padding: 18px 25px 18px 40px;
        color: var(--text-light);
        font-size: 0.95rem;
        font-weight: 500;
        transition: all var(--transition-normal);
        line-height: 1.4;
    }
    
    .mobile-submenu-link:hover,
    .mobile-submenu-link.active {
        background-color: var(--bg-blue-light);
        color: var(--primary-blue);
        padding-left: 45px;
    }
    
    /* Indicateur de sous-menu */
    .has-submenu .mobile-link::after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        right: 25px;
        top: 50%;
        transform: translateY(-50%);
        transition: transform var(--transition-normal);
        font-size: 0.8rem;
    }
    
    .has-submenu.active .mobile-link::after {
        transform: translateY(-50%) rotate(180deg);
    }
    
    /* Hamburger visible */
    .hamburger {
        display: flex;
    }
    
    .logo-img {
        height: 55px;
    }
    
    /* Hero ajustements */
    .hero {
        margin-top: 0;
        padding: 80px 0 60px;
        min-height: 70vh;
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        font-weight: 400;
    }
    
    /* Page hero */
    .page-hero {
        padding: 80px 0 60px;
        min-height: 40vh;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .page-hero .subtitle {
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    /* Content sections */
    .content-section {
        padding: 50px 0;
    }
    
    .section-header {
        font-size: 1.4rem;
    }
    
    .section-text,
    .content-list li {
        font-size: 1.05rem;
    }
    
    .content-list-numbered li {
        font-size: 1.05rem;
        padding-left: 45px;
    }
    
    .content-list-numbered li::before {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
    
    /* Cards */
    .content-card {
        padding: 20px;
    }
    
    .content-card h3 {
        font-size: 1.2rem;
    }
    
    /* Quotes */
    .section-quote,
    .section-quote--bold {
        padding: 20px;
        font-size: 1.1rem;
        margin: 20px 0;
    }
    
    /* Principles */
    .principle-item {
        font-size: 1.1rem;
    }
    
    /* CTA */
    .final-cta h2 {
        font-size: 2rem;
    }
    
    .page-cta h2 {
        font-size: 1.6rem;
    }
    
    .page-cta p {
        font-size: 1.1rem;
    }
    
    /* Differentiation grid */
    .differentiation-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
    
    .diff-card-image {
        height: 280px;
    }
    
    /* Layout spécial pour 3 cartes sur tablet */
    .differentiation-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 30px;
    }
    
    .diff-card-image:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    
    .diff-card-image:nth-child(2) {
        grid-column: 2;
        grid-row: 1 / span 2;
        height: calc(560px + 30px);
    }
    
    .diff-card-image:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
    }
    
    /* Credentials page */
    .logos-image {
        max-width: 425px;
    }
    
    /* Signature section */
    .signature-name {
        font-size: 1.4rem;
    }
    
    /* Comparison table */
    .comparison-table {
        display: block;
        overflow-x: auto;
    }
    
    .service-navigation {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 50px;
    }
    
    .hero {
        min-height: 50vh;
        padding: 60px 0 50px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
        font-weight: 400;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .hero-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .differentiation {
        padding: 60px 0 60px;
    }
    
    .differentiation-fulltext p {
        font-size: 1.1rem;
    }
    
    .differentiation-highlight {
        padding: 20px;
        font-size: 1.1rem;
    }
    
    /* CORRECTION : Forcer 1 colonne avec les 3 cartes visibles */
    .differentiation-grid {
        display: flex;
        flex-direction: column;
        max-width: 500px;
        gap: 25px;
    }
    
    .diff-card-image {
        height: 280px;
        width: 100%;
    }
    
    .diff-card-image:nth-child(2) {
        height: 280px;
    }
    
    .diff-card-content {
        padding: 25px;
    }
    
    .diff-card-content h3 {
        font-size: 1.4rem;
    }
    
    /* Page hero */
    .page-hero h1 {
        font-size: 1.8rem;
    }
    
    .page-hero .subtitle {
        font-size: 1rem;
        font-weight: 600;
    }
    
    /* Content */
    .content-card h3 {
        font-size: 1.2rem;
    }
    
    .content-card .step-number {
        font-size: 1.4rem;
    }
    
    /* Principles */
    .principles-row {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .principle-separator {
        display: none;
    }
    
    .principle-item {
        font-size: 1.05rem;
    }
    
    .principles-intro {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    /* CTA */
    .final-cta h2 {
        font-size: 2rem;
    }
    
    .page-cta h2 {
        font-size: 1.6rem;
    }
    
    .page-cta p {
        font-size: 1.1rem;
    }
    
    /* Footer */
    .footer {
        text-align: center;
    }
    
    .footer-content {
        align-items: center;
        gap: 6px;
    }
    
    /* Navigation mobile pleine largeur sur petits écrans */
    .mobile-nav {
        width: 100%;
        max-width: none;
    }
    
    /* Credentials page */
    .logos-section {
        margin: 40px 0;
        padding: 20px 0;
    }
    
    .logos-image {
        max-width: 340px;
    }
    
    /* Signature section */
    .signature-section {
        padding: 30px 0;
        margin-top: 30px;
    }
    
    .signature-name {
        font-size: 1.3rem;
    }
    
    .signature-title {
        font-size: 1rem;
    }
    
    .signature-specialty {
        font-size: 0.95rem;
    }
    
    /* Comparison table */
    .comparison-table th,
    .comparison-table td {
        padding: 12px 10px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        height: 70px;
    }
    
    .nav-container {
        height: 70px;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .hero {
        min-height: 40vh;
        padding: 50px 0 40px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        font-weight: 400;
    }
    
    .differentiation h2,
    .final-cta h2 {
        font-size: 1.8rem;
    }
    
    .differentiation-fulltext {
        text-align: center;
    }
    
    .diff-card-image {
        height: 260px;
    }
    
    .diff-card-content {
        padding: 20px;
    }
    
    .diff-card-content h3 {
        font-size: 1.3rem;
    }
    
    .diff-card-content p {
        font-size: 1rem;
        max-width: 90%;
    }
    
    .final-cta {
        padding: 40px 0;
    }
    
    .final-cta h2 {
        margin-bottom: 15px;
    }
    
    .final-cta p {
        margin-bottom: 30px;
        font-size: 1.1rem;
    }
    
    /* Page hero */
    .page-hero h1 {
        font-size: 1.6rem;
    }
    
    .page-hero .subtitle {
        font-size: 1rem;
        font-weight: 600;
    }
    
    /* Content */
    .content-section {
        padding: 40px 0;
    }
    
    .section-header {
        font-size: 1.3rem;
    }
    
    .section-container {
        padding: 0 15px;
    }
    
    .content-card {
        padding: 18px;
        margin: 20px 0;
    }
    
    .content-card h3 {
        font-size: 1.1rem;
    }
    
    .content-card .step-number {
        font-size: 1.3rem;
        display: block;
        margin-bottom: 5px;
    }
    
    .content-list {
        margin-left: 25px;
    }
    
    .content-list-numbered {
        margin-left: 0;
    }
    
    .content-list-numbered li {
        padding-left: 40px;
    }
    
    .content-list-numbered li::before {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }
    
    .section-quote,
    .section-quote--bold {
        padding: 15px;
        font-size: 1rem;
    }
    
    .differentiation-highlight {
        padding: 18px;
        font-size: 1rem;
        margin: 20px 0;
    }
    
    /* Principles */
    .principle-item {
        font-size: 1rem;
    }
    
    .principles-intro {
        font-size: 1rem;
    }
    
    /* CTA */
    .page-cta {
        padding: 40px 0;
    }
    
    .page-cta h2 {
        font-size: 1.4rem;
    }
    
    .page-cta p {
        font-size: 1rem;
    }
    
    .cta-big-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 18px 0;
    }
    
    .footer-logo {
        font-size: 1.1rem;
    }
    
    .footer-tagline,
    .footer-coverage,
    .footer-copyright {
        font-size: 0.9rem;
    }
    
    /* Credentials page */
    .logos-section {
        margin: 30px 0;
        padding: 18px 15px;
    }
    
    .logos-image {
        max-width: 255px;
    }
    
    .credential-link {
        font-size: 0.95rem;
    }
    
    /* Signature section */
    .signature-name {
        font-size: 1.2rem;
    }
    
    /* Comparison table */
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th {
        font-size: 1rem;
        padding: 10px 8px;
    }
    
    .service-navigation {
        padding: 18px 15px;
    }
}