/* ============================================================================
   VARIABLES CSS
   ============================================================================ */

:root {
    /* Couleurs carte de visite - intégrées subtilement */
    --card-dark: #242937;
    --card-light: #f5f5f7;
    --card-black: #1d1d1f;
    --card-gray: #86868b;

    /* Palette Executive - avec rappels carte */
    --primary-dark: var(--card-black);
    --secondary-dark: #242937;
    --accent-primary: var(--card-dark);
    --accent-tech: #00d4aa;

    /* Couleurs de texte - Mode clair */
    --text-primary: var(--card-black);
    --text-secondary: var(--card-gray);
    --text-muted: #6a6a6a;

    /* Bordures - Mode clair */
    --border-subtle: #e8e8e8;
    --border-light: #f2f2f2;

    /* Arrière-plans - Mode clair */
    --bg-main: #ffffff;
    --bg-section: #f1f3f4;
    --bg-card: #ffffff;
    --bg-card-alt: #fcfcfd;
    --bg-subtle: var(--card-light);
    --bg-hero: #ffffff;
    --bg-expertise: var(--card-light);

    /* Ombres - Mode clair */
    --shadow-soft: 0 8px 32px rgba(10, 14, 23, 0.08);
    --shadow-hover: 0 16px 48px rgba(10, 14, 23, 0.12);
    --shadow-card: 0 2px 12px rgba(10, 14, 23, 0.04);
}

/* Mode sombre - Détection automatique des préférences système */
@media (prefers-color-scheme: dark) {
    :root {
        /* Couleurs de texte - Mode sombre */
        --text-primary: #e8e9ed;
        --text-secondary: #b0b3ba;
        --text-muted: #8a8d94;

        /* Bordures - Mode sombre */
        --border-subtle: #2e3342;
        --border-light: #363b4d;

        /* Arrière-plans - Mode sombre */
        --bg-main: #1a1d28;
        --bg-section: #1f2230;
        --bg-card: #242937;
        --bg-card-alt: #2a2f3f;
        --bg-subtle: #2e3342;
        --bg-hero: #1a1d28;
        --bg-expertise: #1f2230;

        /* Ombres - Mode sombre */
        --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4);
        --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.6);
        --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.3);
    }
}

/* Mode sombre - Toggle manuel (override la détection système) */
.dark-mode {
    /* Couleurs de texte - Mode sombre */
    --text-primary: #e8e9ed;
    --text-secondary: #b0b3ba;
    --text-muted: #8a8d94;

    /* Bordures - Mode sombre */
    --border-subtle: #2e3342;
    --border-light: #363b4d;

    /* Arrière-plans - Mode sombre */
    --bg-main: #1a1d28;
    --bg-section: #1f2230;
    --bg-card: #242937;
    --bg-card-alt: #2a2f3f;
    --bg-subtle: #2e3342;
    --bg-hero: #1a1d28;
    --bg-expertise: #1f2230;

    /* Ombres - Mode sombre */
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.light-mode {
    /* Force le mode clair même si prefers-color-scheme: dark */
    --text-primary: var(--card-black);
    --text-secondary: var(--card-gray);
    --text-muted: #6a6a6a;

    --border-subtle: #e8e8e8;
    --border-light: #f2f2f2;

    --bg-main: #ffffff;
    --bg-section: #f1f3f4;
    --bg-card: #ffffff;
    --bg-card-alt: #fcfcfd;
    --bg-subtle: var(--card-light);
    --bg-hero: #ffffff;
    --bg-expertise: var(--card-light);

    --shadow-soft: 0 8px 32px rgba(10, 14, 23, 0.08);
    --shadow-hover: 0 16px 48px rgba(10, 14, 23, 0.12);
    --shadow-card: 0 2px 12px rgba(10, 14, 23, 0.04);
}

/* ============================================================================
   RESET ET BASE
   ============================================================================ */

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 300;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container, section, header, footer {
    position: relative;
    z-index: 1;
}

code, pre {
    background: var(--card-dark);
    color: var(--card-light);
    font-family: 'JetBrains Mono', monospace;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

/* ============================================================================
   LAYOUT ET STRUCTURE GLOBALE
   ============================================================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
}

.section-alt {
    background: var(--bg-section);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================================================
   HEADER ET NAVIGATION
   ============================================================================ */

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-subtle);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dark-mode header {
    background: rgba(26, 29, 40, 0.95);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    gap: 2rem;
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--card-dark);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.dark-mode .logo {
    color: #e8e9ed;
}

/* Navigation desktop */
.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links > li {
    position: relative;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.75rem 0;
    display: block;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.active {
    color: var(--text-primary);
    font-weight: 500;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 1px;
    background: var(--text-primary);
    opacity: 0.6;
}

.nav-links a.parent-active {
    color: var(--text-primary);
    font-weight: 500;
}

.nav-links a.parent-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 1px;
    background: var(--text-primary);
    opacity: 0.6;
}

/* Dropdown navigation */
.dropdown {
    position: relative;
    transition-delay: 0.1s;
}

.dropdown:hover {
    transition-delay: 0s;
}

.dropdown-toggle {
    display: inline-block;
    cursor: pointer;
    padding: 0.75rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: inherit;
    text-decoration: none;
}

.dropdown-toggle::after {
    content: '';
    display: none;
}


.dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    min-width: 240px;
    padding: 0.75rem 0;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    will-change: transform, opacity;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown:not(:hover) .dropdown-menu {
    transition-duration: 0.15s;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: -15px;
    right: -15px;
    height: 1rem;
    background: transparent;
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin: 0 0.25rem;
    border-radius: 4px;
    will-change: background, color;
}

.dropdown-menu a:hover {
    color: var(--text-primary);
    background: var(--bg-subtle);
    font-weight: 450;
}

.dropdown-menu a.current-page {
    color: var(--text-primary);
    background: var(--bg-subtle);
    font-weight: 500;
    position: relative;
}

.dropdown-menu a.current-page::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 16px;
    background: var(--text-primary);
    border-radius: 1px;
    opacity: 0.6;
}

.dropdown-menu a.current-page:hover {
    background: var(--bg-subtle);
    opacity: 0.9;
}

.dropdown-menu:hover .current-page {
    opacity: 0.7;
}

.dropdown-menu:hover .current-page::before {
    opacity: 0.4;
}

.dropdown-menu a.current-page:hover {
    opacity: 1 !important;
}

.dropdown-menu a.current-page:hover::before {
    opacity: 0.8 !important;
}

/* Accessibilité navigation */
.dropdown-toggle:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.dropdown-menu a:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: -2px;
}

/* Bouton toggle dark mode */
.logo-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--card-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(36, 41, 55, 0.3);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
    fill: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.theme-toggle .sun-icon {
    position: absolute;
}

.theme-toggle .moon-icon {
    position: absolute;
}

/* Mode sombre - fond blanc, icône noire */
.dark-mode .theme-toggle {
    background: white;
}

.dark-mode .theme-toggle svg {
    fill: var(--card-dark);
}

.dark-mode .theme-toggle:hover {
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

.dark-mode .theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(90deg);
}

.dark-mode .theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

body:not(.dark-mode) .theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

body:not(.dark-mode) .theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

/* Navigation mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

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

.dark-mode .menu-toggle span {
    background: var(--text-primary);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    position: fixed;
    top: 38px;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 38px);
    background: var(--bg-card);
    border-left: 1px solid var(--border-subtle);
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    list-style: none;
    padding: 2rem 0;
}

.mobile-nav-links li {
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav-links a {
    display: block;
    padding: 1rem 2rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: var(--text-primary);
    background: var(--bg-subtle);
}

.mobile-dropdown {
    display: none;
    background: var(--bg-subtle);
    list-style: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-dropdown li {
    border-bottom: 1px solid var(--border-light);
}

.mobile-dropdown a {
    padding-left: 3rem;
    font-size: 0.9rem;
}

.mobile-dropdown[style*="block"] {
    max-height: 300px;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-main);
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 6rem 0;
}

.terminal-line {
    font-family: 'JetBrains Mono', monospace;
    color: var(--card-gray);
    font-size: 0.85rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fade-in 1s ease 0.5s forwards;
}

.hero-title {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 3rem 0 2rem;
    max-width: 600px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    max-width: 650px;
    line-height: 1.8;
}

.typewriter-hidden {
    opacity: 0;
}

/* ============================================================================
   BOUTONS ET CTA
   ============================================================================ */

.cta-container {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 2px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.02em;
    display: inline-block;
}

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

.btn-primary:hover {
    background: #050b14;
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

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

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-1px);
}

.final-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.final-cta-buttons .btn {
    flex: 0 1 auto;
    min-width: 180px;
}

@media (max-width: 768px) {
    .final-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .final-cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Mobile très petit */
@media (max-width: 480px) {
    .final-cta-buttons .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ============================================================================
   GRILLES ET CARTES
   ============================================================================ */

/* Grille expertise */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 6rem;
}

.expertise-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 3rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.expertise-card:nth-child(1) {
    background: var(--bg-card);
    border-left: 3px solid var(--card-dark);
}

.expertise-card:nth-child(2) {
    background: var(--bg-card);
    border-left: 3px solid var(--card-dark);
}

.expertise-card:nth-child(3) {
    background: var(--bg-card);
    border-left: 3px solid var(--card-dark);
}

.expertise-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-primary);
    background: var(--bg-main);
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.expertise-card:hover::before {
    transform: scaleX(1);
}

.card-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--card-gray);
    margin-bottom: 2rem;
    font-weight: 500;
}

.expertise-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.expertise-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.expertise-card .highlight {
    color: var(--text-primary);
    font-weight: 500;
}

/* Grille différenciation */
.difference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 6rem;
}

.difference-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 3rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
}

.difference-card:nth-child(1) {
    background: var(--bg-card);
}

.difference-card:nth-child(2) {
    background: var(--bg-card);
}

.difference-card:nth-child(3) {
    background: var(--bg-subtle);
}

.difference-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    background: var(--bg-main);
}

.difference-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.difference-card .subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.difference-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.result-block {
    background: rgba(10, 14, 23, 0.03);
    border-left: 3px solid var(--card-gray);
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 4px;
}

.result-block p {
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
}

/* ============================================================================
   COMPOSANTS SPÉCIAUX
   ============================================================================ */

/* Timeline demo */
.demo-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 3rem;
}

.demo-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-subtle);
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3rem;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    background: var(--bg-card);
    border: 2px solid var(--accent-tech);
    border-radius: 50%;
}

.timeline-item.alert::before {
    background: #dc3545;
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.2);
}

.time {
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    width: 60px;
}

.event strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-item.alert .event strong {
    color: #dc3545;
}

.event p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Grille installation */
.installation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.install-phase {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.06);
}

body.dark-mode .install-phase {
    border-color: var(--border-subtle);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.2);
}

.install-phase h3 {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.install-phase ul {
    list-style: none;
    padding: 0;
}

.install-phase li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    line-height: 1.6;
}

.install-phase li:last-child {
    border-bottom: none;
}

.install-phase strong {
    color: var(--text-primary);
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    background: #050b14;
    transform: translateY(-2px);
}

/* ============================================================================
   CTA FINALE
   ============================================================================ */

.final-cta {
    text-align: center;
    padding: 8rem 0;
    background: var(--bg-main);
    border-top: 1px solid var(--border-light);
}

.final-cta h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.final-cta p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* ============================================================================
   TECH PARTNERS SECTION
   ============================================================================ */

.tech-partners {
    background: var(--bg-main);
    padding: 3rem 0;
    border-top: 1px solid var(--border-subtle);
    margin-top: 0;
}

.tech-partners h3 {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.partners-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.partner-logo {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 0.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.partner-logo:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.partner-logo img {
    height: 42px;
    width: auto;
    filter: grayscale(100%) brightness(0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-logo:hover img {
    filter: grayscale(0%) brightness(1);
}

/* Label sous le logo */
.partner-logo-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-logo:hover .partner-logo-label {
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .tech-partners {
        padding: 2.5rem 0;
    }
    
    .partners-grid {
        gap: 2.5rem;
    }
    
    .partner-logo img {
        height: 36px;
    }
    
    .tech-partners h3 {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .partner-logo-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .tech-partners {
        padding: 2rem 0;
    }
    
    .partners-grid {
        gap: 2rem;
        justify-content: space-around;
    }
    
    .partner-logo img {
        height: 32px;
    }
    
    .tech-partners h3 {
        font-size: 1rem;
    }

    .partner-logo-label {
        font-size: 0.65rem;
    }
}

/* ============================================================================
   FOOTER
   ============================================================================ */

/* Footer minimaliste */
footer.footer-minimal {
    background: var(--bg-main);
    border-top: 1px solid var(--border-subtle);
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer-minimal-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    line-height: 1;
    padding: 0.5rem 0;
}

.footer-minimal-logo {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 1rem;
    color: var(--card-dark);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.footer-minimal-content a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.footer-minimal-content a:hover {
    color: var(--accent-primary);
}

.footer-separator {
    color: var(--border-subtle);
    font-size: 0.75rem;
}

.footer-minimal-bottom {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: 0.75rem;
}

.footer-minimal-bottom a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-minimal-bottom a:hover {
    color: var(--accent-primary);
}

/* Ancien footer (gardé pour compatibilité des autres pages) */
footer:not(.footer-minimal) {
    background: var(--bg-main);
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

.footer-section h3 {
    color: var(--accent-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Section branding */
.footer-brand {
    max-width: 350px;
}

.footer-brand .logo {
    color: var(--accent-primary);
    font-size: 1.6rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 1.75rem;
    display: block;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-info {
    list-style: none;
    margin-bottom: 4rem;
}

.contact-info li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.contact-info li::before {
    content: "▸";
    color: var(--accent-tech);
    margin-right: 0.75rem;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Liens de navigation */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.25rem 0;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-primary);
    transform: translateX(4px);
}

/* Liens sociaux */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    border-color: var(--accent-primary);
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom-left {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom-right {
    display: flex;
    gap: 2rem;
}

.footer-bottom-right a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-right a:hover {
    color: var(--accent-primary);
}

.footer-divider {
    margin: 2rem 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--border-subtle) 20%, 
        var(--border-subtle) 80%, 
        transparent 100%);
}

.payment-methods {
    margin-top: 1rem;
}

.payment-methods h3 {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.payment-icons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
}

.payment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: default;
    min-width: 50px;
    flex-shrink: 0;
}

.payment-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.payment-icon {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
}

.payment-item span {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

/* Bitcoin highlight */
.payment-bitcoin .payment-icon {
    color: #f7931a;
}

.payment-bitcoin span {
    color: #f7931a;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .payment-icons {
        gap: 1rem;
        justify-content: center;
    }
    
    .payment-item {
        padding: 0.4rem;
        min-width: 50px;
    }
    
    .payment-icon {
        width: 20px;
        height: 20px;
    }
    
    .payment-item span {
        font-size: 0.7rem;
    }

    .payment-methods h3 {
        text-align: center;
    }
}

/* ============================================================================
   PAGES LÉGALES
   ============================================================================ */

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.legal-content {
    background: var(--bg-main);
    padding: 4rem 0;
}

.legal-toc {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 4rem;
}

.legal-toc h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.legal-toc ol {
    list-style: none;
    counter-reset: section-counter;
    padding: 0;
}

.legal-toc li {
    counter-increment: section-counter;
    margin-bottom: 0.75rem;
}

.legal-toc a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    position: relative;
    padding-left: 2rem;
}

.legal-toc a::before {
    content: counter(section-counter) ".";
    position: absolute;
    left: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--card-gray);
    font-weight: 500;
    width: 1.5rem;
}

.legal-toc a:hover {
    color: var(--accent-primary);
}

.legal-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-light);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--card-gray);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
}

.section-content {
    line-height: 1.8;
}

.section-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.section-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem 0;
}

.section-content ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.section-content li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-highlight {
    background: var(--bg-subtle);
    border-left: 3px solid var(--card-dark);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 6px 6px 0;
}

.legal-highlight p {
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
}

.legal-table {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.legal-table h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem 2rem;
    margin: 1rem 0;
}

.info-label {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.info-value {
    color: var(--text-secondary);
}

.rights-list {
    background: var(--bg-card-alt);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.rights-list h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

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

.rights-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.rights-list li:last-child {
    border-bottom: none;
}

.rights-list .right-icon {
    color: var(--accent-primary);
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.rights-list .right-content {
    flex: 1;
}

.rights-list .right-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.rights-list .right-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================================
   MEDIA QUERIES
   ============================================================================ */

/* Tablettes */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Mobile */
@media (max-width: 900px) {
    /* Navigation mobile */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        background: var(--bg-subtle);
        border: none;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none;
        margin-top: 0.5rem;
    }
    
    .dropdown.mobile-open .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding: 0.75rem 1rem;
        margin: 0 0.5rem;
        border-radius: 6px;
    }
    
    .dropdown-menu a.current-page::before {
        display: none;
    }
    
    /* Layout mobile */
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 4rem 0;
    }

    .hero-content {
        padding: 4rem 0;
    }

    .cta-container {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
    }
    
    /* Grilles mobile */
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .installation-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .difference-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Footer mobile */
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem 1rem;
    }

    .footer-section h3 {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .footer-brand {
        margin-bottom: 0;
    }

    .footer-brand .logo {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .contact-info {
        margin-bottom: 0;
    }

    .contact-info li {
        margin-bottom: 0.5rem;
        font-size: 0.8rem;
    }

    .footer-section:nth-child(4),
    .footer-section:nth-child(5) {
        grid-column: span 1.5;
    }

    .footer-links li {
        margin-bottom: 0.4rem;
    }

    .footer-links a {
        font-size: 0.8rem;
        padding: 0.1rem 0;
    }

    .footer-divider {
        margin: 1.5rem 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding-top: 1.5rem;
    }

    .footer-bottom-left {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .footer-bottom-right {
        flex-direction: column;
        gap: 0.6rem;
    }

    .footer-bottom-right a {
        font-size: 0.8rem;
    }

    footer {
        padding: 2rem 0 1rem;
    }
    
    /* Pages légales mobile */
    .legal-container {
        padding: 0 1rem;
    }

    .legal-toc {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .legal-content {
        padding: 2rem 0;
    }

    .legal-section {
        margin-bottom: 3rem;
        padding-bottom: 2rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .info-label {
        font-weight: 600;
        margin-bottom: 0.25rem;
    }

    .rights-list li {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
    }

    .rights-list .right-icon {
        align-self: flex-start;
    }
}

/* ============================================================================
   BREADCRUMB (FIL D'ARIANE)
   ============================================================================ */

.breadcrumb {
    display: none; /* Masqué par défaut en desktop */
    position: fixed;
    top: 38px;
    left: 0;
    right: 0;
    padding: 1.5rem 0 1rem;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-light);
    z-index: 999;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: flex-start;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.breadcrumb-item a:hover {
    color: var(--accent-primary);
    background: var(--bg-subtle);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 500;
}

.breadcrumb-separator {
    color: var(--text-muted);
    margin: 0 0.25rem;
    font-size: 0.75rem;
    opacity: 0.5;
}

/* Responsive breadcrumb - Visible uniquement en mobile */
@media (max-width: 768px) {
    .breadcrumb {
        display: block; /* Visible en mobile */
        padding: 1rem 0 0.75rem;
    }

    .breadcrumb-container {
        padding: 0 1rem;
    }

    .breadcrumb-item {
        font-size: 0.85rem;
    }

    .breadcrumb-item a {
        padding: 0.2rem 0.4rem;
    }
}