/**
 * CryptPeer - Main Stylesheet
 */

:root {
    --color-teal: #00c2a8;
    --color-midnight: #0a0e27;
    --color-republican-navy: #1a1a2e;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Ajuster le scroll pour compenser le header fixe */
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #0a0e27;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Padding-top uniquement pour la page d'accueil avec header fixe */
body.homepage,
body.cms-page {
    padding-top: 80px !important; /* Espace pour le header fixe */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

/* Header & Navigation */
.main-header {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0;
    position: fixed !important; /* Fixe au lieu de sticky */
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 10000 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    will-change: transform;
    transform: translateZ(0); /* Force GPU acceleration */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.main-nav {
    background: #fff;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
    gap: 2rem;
}

/* Cacher le bouton hamburger sur desktop */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #666;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

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

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #0a0e27;
    font-weight: 700;
    font-size: 1.25rem;
    transition: opacity 0.3s;
    flex-shrink: 0;
}

.logo:hover {
    opacity: 0.8;
}

/* Stylisation du nom CryptPeer : Crypt en noir, Peer en vert */
.brand-name,
.logo-text {
    font-weight: 700;
    display: inline-block;
    white-space: nowrap;
}

.brand-name .crypt,
.logo-text .crypt {
    color: #0a0e27;
}

.brand-name .peer,
.logo-text .peer {
    color: var(--color-teal);
}

/* Mobile navigation drawer header - force white text on green background */
.mobile-nav-header {
    background: linear-gradient(135deg, #00c2a8 0%, #008a7a 100%);
    color: #fff;
}

.mobile-nav-header .brand-name {
    color: #fff !important;
}

.mobile-nav-header .brand-name .crypt,
.mobile-nav-header .brand-name .peer {
    color: #fff !important;
}

/* Pour les cas où CryptPeer est écrit en une seule balise */
.brand-name-split {
    font-weight: 700;
}

.brand-name-split::before {
    content: "Crypt";
    color: #0a0e27;
}

.brand-name-split::after {
    content: "Peer";
    color: var(--color-teal);
}

.logo-img {
    width: 32px;
    height: 32px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
    background: transparent;
    border: none;
    outline: none;
    margin: 0;
    padding: 0;
    vertical-align: middle;
    line-height: 0;
    font-size: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
    align-items: center;
    flex: 1;
    justify-content: flex-start;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: #666;
    text-decoration: none;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s, background 0.3s;
    position: relative;
    white-space: nowrap;
}

.nav-links a i {
    font-size: 0.7rem;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* Ensure Font Awesome icons display correctly in sidebar */
.sidebar-link i,
.sidebar-links .sidebar-link i,
.page-sidebar .sidebar-link i,
aside .sidebar-link i {
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    margin-right: 0.75rem !important;
    width: 20px !important;
    text-align: center !important;
    color: #00c2a8 !important;
    font-size: 1rem !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    speak: none !important;
}

.sidebar-link.active i {
    color: #fff !important;
}

/* Ensure Font Awesome icons in navigation menu */
.nav-links a i,
.main-nav .nav-links a i {
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

/* Ensure Font Awesome icons display correctly in mobile drawer */
.mobile-nav-link i,
.mobile-nav-section-title i {
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

/* Global Font Awesome icon fix - applies to ALL icons */
.fas, .far, .fab, .fal, .fad,
i.fas, i.far, i.fab, i.fal, i.fad {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    line-height: 1 !important;
    speak: none !important;
}

/* Specific icon contexts - catch ALL Font Awesome icons */
i[class*="fa-"],
i[class^="fas"],
i[class^="far"],
i[class^="fab"],
i[class^="fal"],
i[class^="fad"],
[class*=" fa-"],
[class^="fas "],
[class^="far "],
[class^="fab "],
[class^="fal "],
[class^="fad "] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    line-height: 1 !important;
}

/* Force Font Awesome icons in ALL contexts - comprehensive fix */
.feature-card i,
.positioning-card i,
.security-card i,
.value-card i,
.comparison-card i,
.regalian-card i,
.partner-card i,
.contact-info-box i,
.hero-badge i,
.claim-badge i,
.innovation-card i,
.cryptpeer-defense-section i,
.why-cryptpeer-section i,
.partners-section i,
.contact i,
.hero i,
.architecture-step i,
section i,
article i,
div i,
span i,
h1 i,
h2 i,
h3 i,
h4 i,
p i,
a i,
button i {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    line-height: 1 !important;
}

.nav-links a:hover {
    color: var(--color-teal);
    background: rgba(0, 194, 168, 0.05);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-teal);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 80%;
}

/* Dropdown menus */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    min-width: 200px;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 0.75rem 1.25rem;
    color: #666;
    text-decoration: none;
    font-size: 0.875rem;
    text-transform: none;
    letter-spacing: normal;
    display: block;
    transition: background 0.3s, color 0.3s;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: rgba(0, 194, 168, 0.1);
    color: var(--color-teal);
}

.dropdown-menu a::after {
    display: none;
}

/* Sélecteur de langue dans le menu */
.lang-selector-wrapper {
    position: relative;
    margin-left: auto;
    flex-shrink: 0;
}

.lang-selector-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.lang-selector-btn[aria-expanded="true"] .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    min-width: 120px;
    z-index: 1000;
}

.lang-option {
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: transparent;
    color: #666;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.9375rem;
    transition: background 0.3s, color 0.3s;
}

.lang-option:hover {
    background: #f8f9fa;
}

.lang-option[data-lang].active {
    background: #00c2a8;
    color: #fff;
    font-weight: 600;
}

/* Responsive menu */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        margin-right: 1rem;
    }

    .nav-container {
        flex-wrap: wrap;
        padding: 1rem;
        position: relative;
    }

    .nav-links {
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .nav-links a:hover {
        background: rgba(0, 194, 168, 0.05);
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 0;
        margin-left: 1rem;
        padding-left: 0;
        pointer-events: auto;
        min-width: auto;
        width: calc(100% - 2rem);
    }

    .dropdown-menu a {
        padding-left: 2rem;
        font-size: 0.875rem;
        text-transform: none;
        letter-spacing: normal;
    }

    .lang-selector-wrapper {
        width: 100%;
    }

    .lang-selector-btn {
        width: 100%;
        justify-content: space-between;
    }

    .lang-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        border-top: 1px solid #e0e0e0;
        border-radius: 0;
    }
}

/* Hero Section */
.hero {
    padding: 8rem 0 6rem;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 194, 168, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 194, 168, 0.1);
    border: 1px solid rgba(0, 194, 168, 0.3);
    border-radius: 50px;
    color: var(--color-teal);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #0a0e27;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.375rem;
    color: #666;
    max-width: 900px;
    margin: 0 auto 1rem;
    font-weight: 400;
    line-height: 1.7;
}

.hero-description {
    font-size: 1.125rem;
    color: #999;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hero-claims {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.claim-badge {
    padding: 0.625rem 1.25rem;
    background: rgba(0, 194, 168, 0.1);
    border: 1px solid rgba(0, 194, 168, 0.3);
    border-radius: 25px;
    color: var(--color-teal);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s;
}

.claim-badge:hover {
    background: rgba(0, 194, 168, 0.2);
    transform: translateY(-2px);
}

.hero-cta {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background: transparent;
    color: var(--color-teal);
    border: 2px solid var(--color-teal);
}

.btn-secondary:hover {
    background: var(--color-teal);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--color-teal);
    border: 2px solid var(--color-teal);
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--color-teal);
    color: #fff;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: #0a0e27;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Positioning Section */
.positioning-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.positioning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.positioning-card {
    padding: 2.5rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.positioning-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 194, 168, 0.15);
    border-color: var(--color-teal);
}

.positioning-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.positioning-icon i,
.positioning-icon .fas,
.positioning-icon .far,
.positioning-icon .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    line-height: 1 !important;
}

.positioning-card h3 {
    color: #0a0e27;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.positioning-card p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    padding: 2.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-teal) 0%, rgba(0, 194, 168, 0.5) 100%);
    transform: scaleX(0);
    transition: transform 0.3s;
}

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

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 194, 168, 0.15);
    border-color: var(--color-teal);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-icon i,
.feature-icon .fas,
.feature-icon .far,
.feature-icon .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    line-height: 1 !important;
}

.feature-card h3 {
    color: #0a0e27;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.features-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Architecture Section */
.architecture-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.architecture-steps {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.architecture-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.architecture-step:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 24px rgba(0, 194, 168, 0.15);
    border-color: var(--color-teal);
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-teal) 0%, rgba(0, 194, 168, 0.8) 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 194, 168, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: #0a0e27;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 600;
}

.step-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.step-details {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--color-teal);
}

.step-details strong {
    color: #0a0e27;
    display: block;
    margin-bottom: 0.5rem;
}

.step-details ul {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
    color: #666;
}

.step-details li {
    margin-bottom: 0.25rem;
}

.architecture-cta {
    text-align: center;
}

/* Values Section */
.values-section {
    padding: 6rem 0;
    background: #fff;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.value-card {
    padding: 2.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 194, 168, 0.1);
    border-color: var(--color-teal);
}

.value-card h3 {
    color: #0a0e27;
    font-size: 1.375rem;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.value-card p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.contact-info-box {
    max-width: 800px;
    margin: 0 auto 3rem;
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.contact-info-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.contact-info-header h3 {
    color: #0a0e27;
    font-size: 1.75rem;
    margin: 0;
    font-weight: 700;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-info-item strong {
    color: #0a0e27;
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.contact-info-item p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

h2 {
    color: var(--color-teal);
}

h1 {
    color: #0a0e27;
}

/* Page Content Styles (CMS Pages) */
.page-content {
    color: #0a0e27;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    color: #0a0e27;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.page-content h2 {
    color: var(--color-teal);
    font-size: 2rem;
    border-bottom: 2px solid rgba(0, 194, 168, 0.2);
    padding-bottom: 0.5rem;
}

.page-content h3 {
    color: #0a0e27;
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

.page-content h4 {
    color: #0a0e27;
    font-size: 1.25rem;
    margin-top: 1.25rem;
}

.page-content p {
    color: #0a0e27;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.page-content ul,
.page-content ol {
    color: #0a0e27;
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.page-content li {
    color: #0a0e27;
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.page-content strong {
    color: #0a0e27;
    font-weight: 600;
}

.page-content em {
    color: #666;
    font-style: italic;
}

.page-content a {
    color: var(--color-teal);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 194, 168, 0.3);
    transition: all 0.3s;
}

.page-content a:hover {
    color: #00a890;
    border-bottom-color: var(--color-teal);
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    color: #0a0e27;
}

.page-content table th {
    background: #f8f9fa;
    color: #0a0e27;
    font-weight: 600;
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.page-content table td {
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    color: #0a0e27;
}

.page-content table tr:nth-child(even) {
    background: #f8f9fa;
}

.page-content blockquote {
    border-left: 4px solid var(--color-teal);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: #666;
    font-style: italic;
}

.page-content code {
    background: #f8f9fa;
    color: #0a0e27;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.page-content pre {
    background: #f8f9fa;
    color: #0a0e27;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    border: 1px solid #e0e0e0;
}

.page-content pre code {
    background: transparent;
    padding: 0;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.page-content hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 2rem 0;
}

/* Boutons dans le contenu des pages CMS */
.page-content .btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--color-teal);
    color: #fff !important;
    border: none;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0.5rem 0.5rem 0.5rem 0;
    border-bottom: none !important;
}

.page-content .btn:hover {
    background: #00a890;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 194, 168, 0.3);
}

.page-content .btn-primary {
    background: var(--color-teal);
    color: #fff !important;
}

.page-content .btn-primary:hover {
    background: #00a890;
    color: #fff !important;
}

.page-content .btn-secondary {
    background: transparent;
    color: var(--color-teal) !important;
    border: 2px solid var(--color-teal);
    border-bottom: 2px solid var(--color-teal) !important;
}

.page-content .btn-secondary:hover {
    background: var(--color-teal);
    color: #fff !important;
    border-bottom-color: var(--color-teal) !important;
}

/* P2P Signup Section */
.p2p-signup {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.p2p-header {
    text-align: center;
    margin-bottom: 3rem;
}

.p2p-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.p2p-subtitle {
    font-size: 1.2rem;
    color: #999;
}

.p2p-intro {
    margin-bottom: 3rem;
    display: grid;
    gap: 2rem;
}

.p2p-info-box,
.p2p-services,
.p2p-process {
    padding: 2rem;
    background: rgba(0, 194, 168, 0.05);
    border: 1px solid rgba(0, 194, 168, 0.2);
    border-radius: 8px;
}

.p2p-info-box h3,
.p2p-services h3,
.p2p-process h3 {
    color: var(--color-teal);
    margin-top: 0;
    margin-bottom: 1rem;
}

.services-list {
    list-style: none;
    padding: 0;
}

.services-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.process-steps {
    padding-left: 1.5rem;
}

.process-steps li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.p2p-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid rgba(0, 194, 168, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.p2p-form-container h3 {
    color: var(--color-teal);
    margin-top: 0;
    margin-bottom: 2rem;
}

.p2p-signup-form {
    max-width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #0a0e27;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    background: #fff;
    color: #0a0e27;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px rgba(0, 194, 168, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.required {
    color: #ff6b6b;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #999;
}

.form-status {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    display: none;
}

.form-status.success {
    background: rgba(0, 194, 168, 0.2);
    border: 1px solid var(--color-teal);
    color: var(--color-teal);
    display: block;
}

.form-status.error {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    display: block;
}

/* Honeypot field (hidden from users) */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
    overflow: hidden;
}

.btn {
    padding: 0.75rem 2rem;
    background: var(--color-teal);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.btn:hover {
    background: #00a890;
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.125rem;
    }

    .architecture-step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Security Section */
.security {
    padding: 6rem 0;
    background: #fff;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.security-card {
    padding: 2.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    position: relative;
}

.security-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-teal);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.security-card:hover::after {
    transform: scaleY(1);
}

.security-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 194, 168, 0.15);
    border-color: var(--color-teal);
}

.security-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.security-icon i,
.security-icon .fas,
.security-icon .far,
.security-icon .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    line-height: 1 !important;
}

.security-card h3 {
    color: #0a0e27;
    font-size: 1.375rem;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 600;
}

.security-card p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.security-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Footer */
.main-footer {
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 4rem;
    padding: 3rem 0 1.5rem;
    clear: both;
    position: relative;
    z-index: 1;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Ajuster pour les écrans moyens */
@media (max-width: 1200px) {
    .footer-content {
        gap: 1rem;
    }
}

/* Passer à 2 colonnes sur tablettes */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.footer-section h3 {
    color: #0a0e27;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-section h4 {
    color: #0a0e27;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    color: #666;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.3s, padding-left 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--color-teal);
    padding-left: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: #999;
    font-size: 0.875rem;
    margin: 0;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Sidebar and main layout fixes */
.page-sidebar {
    position: fixed;
    left: 0;
    top: 80px;
    width: 280px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    background: #fff;
    border-right: 1px solid #e0e0e0;
    z-index: 100;
    padding: 2rem 0;
}

@media (max-width: 1024px) {
    .page-sidebar {
        z-index: 10002;
    }
}

.main-with-sidebar {
    margin-left: 280px;
    min-height: calc(100vh - 80px);
    padding: 2rem;
}

/* ✅ CORRECTION: applique le décalage du footer uniquement quand on est dans un layout "avec sidebar" */
.main-with-sidebar ~ .main-footer {
    margin-left: 280px;
}

@media (max-width: 1024px) {
    .page-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 10002;
    }

    .page-sidebar.active {
        transform: translateX(0);
    }

    .main-with-sidebar,
    .main-with-sidebar.container {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* ✅ CORRECTION: footer full width sur tablette/mobile */
    .main-with-sidebar ~ .main-footer {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .main-with-sidebar,
    .main-with-sidebar.container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .main-footer .footer-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* =========================================================
   AJOUTS
   - Overlay sidebar (mobile/tablette)
   - Bouton flottant "Retour au début"
   ========================================================= */

/* Overlay pour la sidebar (mobile/tablette)
   ✅ CORRECTION: z-index sous le header (10000) pour laisser le bouton menu cliquable */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 39, 0.45); /* midnight semi-transparent */
    z-index: 9999; /* sous le header (10000) et sous la sidebar mobile (10002) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Sur desktop, on ne montre pas l’overlay */
@media (min-width: 1025px) {
    .sidebar-overlay {
        display: none !important;
    }
}

/* Bouton flottant "Retour en haut" */
.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 10050; /* au-dessus header/sidebar/overlay */
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 999px;
    background: var(--color-teal);
    color: #fff;
    display: none; /* caché par défaut */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
    opacity: 0;
    -webkit-tap-highlight-color: transparent;
}

.back-to-top.show {
    display: inline-flex;
    opacity: 1;
}

.back-to-top:hover,
.back-to-top:focus {
    background: #00a890; /* cohérent avec tes hover */
    transform: translateY(-2px);
    outline: none;
}

@media (max-width: 768px) {
    .back-to-top {
        right: 1rem;
        bottom: 1rem;
        width: 44px;
        height: 44px;
    }
}

/* Accessibilité : respecte "réduire les animations" */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .back-to-top {
        transition: none;
    }
    .sidebar-overlay {
        transition: none;
    }
}
