/* ============================================================================
   FORCE MODE CLAIR - PRIORITY
   ============================================================================ */

/* Bloque toute tentative de mode sombre */
*, html, body {
    color-scheme: light !important;
}

/* Override pour navigateurs qui essaient le mode sombre */
@media (prefers-color-scheme: dark) {
    *, html, body {
        color-scheme: light !important;
    }
}

/* Force les inputs/selects/textarea en mode clair */
input, select, textarea, button {
    color-scheme: light !important;
}

/* Bloque les classes/attributs dark mode courants */
html[data-theme="dark"],
body[data-theme="dark"],
.dark-mode,
[data-bs-theme="dark"],
[data-theme="dark"] {
    color-scheme: light !important;
}

/* ============================================================================
   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 */
    --text-primary: var(--card-black);
    --text-secondary: var(--card-gray);
    --text-muted: #6a6a6a;
    
    /* Bordures */
    --border-subtle: #e8e8e8;
    --border-light: #f2f2f2;
    
    /* Arrière-plans */
    --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 */
    --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);

    /* Fonts-fallback */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Cascadia Code', monospace;
}

/* Inter - Font principale */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/inter-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-700.woff2') format('woff2');
}

/* JetBrains Mono - Font monospace pour code */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-400.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-500.woff2') format('woff2');
}

/* ============================================================================
   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;
}

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(--card-light);
    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);
}

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

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

/* 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(--card-dark);
    opacity: 0.8;
}

.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(--card-dark);
    opacity: 0.8;
}

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

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

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    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: ''; 
    font-size: 0.8rem;
    margin-left: 0.25rem;
    margin-top: 0;
    opacity: 0.7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: none;  
    border: none;
    width: auto;
    height: auto;
    will-change: transform;
}

.dropdown:hover .dropdown-toggle::after {
    opacity: 1;
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    min-width: 240px;
    padding: 0.75rem 0;
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.08),
        0 4px 6px -2px rgba(0, 0, 0, 0.03);
    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(--card-dark);
    background: linear-gradient(90deg, 
        rgba(36, 41, 55, 0.06) 0%, 
        transparent 100%);
    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(--card-dark);
    border-radius: 1px;
    opacity: 0.8;
}

.dropdown-menu a.current-page:hover {
    background: linear-gradient(90deg, 
        rgba(36, 41, 55, 0.08) 0%, 
        transparent 100%);
}

.dropdown-menu:hover .current-page {
    background: linear-gradient(90deg, 
        rgba(36, 41, 55, 0.03) 0%, 
        transparent 100%);
    opacity: 0.7;
}

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

.dropdown-menu a.current-page:hover {
    background: linear-gradient(90deg, 
        rgba(36, 41, 55, 0.06) 0%, 
        transparent 100%) !important;
    opacity: 1 !important;
}

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

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

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

/* 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;
}

.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: 73px;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 73px);
    background: var(--card-light);
    border-left: 1px solid rgba(134, 134, 139, 0.3);
    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(--card-dark);
    background: rgba(10, 14, 23, 0.04);
}

.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: linear-gradient(135deg, var(--bg-hero) 0%, var(--bg-main) 100%);
    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;
    gap: 3rem;
    margin-top: 6rem;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.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-alt);
    border-left: 3px solid var(--card-dark);
}

.expertise-card:nth-child(2) {
    background: var(--card-light);
}

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

/* 1 carte = centrée */
.expertise-grid:has(.expertise-card:nth-child(1):nth-last-child(1)) {
    grid-template-columns: 1fr;
    max-width: 400px;
}

/* 2 cartes = côte à côte, centrées */
.expertise-grid:has(.expertise-card:nth-child(2):nth-last-child(1)) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
}

/* 3 cartes = côte à côte, pleine largeur */
.expertise-grid:has(.expertise-card:nth-child(3):nth-last-child(1)) {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
}

/* 4+ cartes = toujours 3 par ligne */
.expertise-grid:has(.expertise-card:nth-child(4)) {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
}

.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-alt);
}

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

.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(--accent-primary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.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-subtle);
    padding: 2.5rem;
    border-radius: 8px;
}

.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 li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

.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: linear-gradient(180deg, var(--bg-main) 0%, var(--card-light) 100%);
    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;
    align-items: center;
    justify-content: center;
}

.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);
}

/* Tooltips */
.partner-logo::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -32px;               
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-dark);
    color: white;
    padding: 0.4rem 0.6rem;      
    border-radius: 3px;          
    font-size: 0.7rem;           
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    font-weight: 400;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12); 
}

.partner-logo::before {
    content: '';
    position: absolute;
    bottom: -22px;               
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 3px solid transparent;   
    border-right: 3px solid transparent;
    border-bottom: 3px solid var(--card-dark);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.partner-logo:hover::after,
.partner-logo:hover::before {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .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;
    }
    
    /* Masquer tooltips sur mobile pour éviter les conflits tactiles */
    .partner-logo::after,
    .partner-logo::before {
        display: none;
    }
    .expertise-grid {
        max-width: 100% !important;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .tech-partners {
        padding: 2rem 0;
    }
    
    .partners-grid {
        gap: 2rem;
        justify-content: space-around;
    }
    
    .partner-logo img {
        height: 32px;
    }
    
    .tech-partners h3 {
        font-size: 1rem;
    }
    .expertise-grid {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        gap: 2rem;
    }
}

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

footer {
    background: linear-gradient(135deg, var(--card-light) 0%, var(--bg-subtle) 100%);
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    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%);
}

/* ============================================================================
   MOYENS DE PAIEMENT - CENTRAGE
   ============================================================================ */

.payment-methods {
    text-align: center;
    padding: 1.5rem 1rem;
    border-top: 1px solid var(--border-light);
}

.payment-methods h3 {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.payment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.payment-item:hover {
    background: var(--bg-subtle);
    transform: translateY(-1px);
}

.payment-icon {
    width: 24px;
    height: 24px;
    /* Pas de couleur imposée - garde les styles existants */
}

.payment-item span {
    font-size: 0.8rem;
    font-weight: 500;
    /* Pas de couleur imposée - garde les styles existants */
}

.payment-bitcoin {
    color: #f7931a; /* Orange Bitcoin conventionnel */
}

.payment-bitcoin .payment-icon,
.payment-bitcoin span {
    color: #f7931a;
}

/* Responsive pour mobiles */
@media (max-width: 768px) {
    .payment-icons {
        gap: 1rem;
    }
    
    .payment-methods h3 {
        font-size: 0.85rem;
    }
    
    .payment-icon {
        width: 20px;
        height: 20px;
    }
    
    .payment-item span {
        font-size: 0.75rem;
    }
}

/* ============================================================================
   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: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

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

    footer {
        padding: 3rem 0 1.5rem;
    }
    
    /* 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;
    }
}