/* ==============================================
   VARIABLES & RESET
   ============================================== */
:root {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    --color-bg: #0A1128;
    --color-bg-light: #1A2758;
    --color-bg-dark: #0E1B4D;
    --color-accent: #00D0FF;
    --color-accent-dark: #0061FF;
    --color-text: #FFFFFF;
    --color-text-muted: #B8C5E0;
    --color-text-subtle: #6B7280;

    --article-width: 900px;
    --page-width: 1200px;
}

html {
    max-width: 100vw;
    overflow-x: hidden;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    background: var(--color-bg);
}

/* ==============================================
   UTILITY CLASSES
   ============================================== */
.gradient-text {
    background: linear-gradient(135deg, #00D0FF 0%, #0080FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

section {
    width: 100%;
    padding: 100px 0;
}

/* ==============================================
   BUTTONS
   ============================================== */
.btn-container {
    width: 100%;
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(14px, 1vw, 16px);
    width: fit-content;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #0061FF 0%, #00D0FF 50%, #0061FF 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 208, 255, 0.4);
    transition: all 0.3s ease, background-position 0.4s ease;
    background-size: 200% 100%;
    background-position: 0% 0%;
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(0, 208, 255, 0.6);
    background-position: 100% 0%;
}

.btn-secondary {
    color: #0061FF;
    background: linear-gradient(135deg, #0061FF 50%, #fff0 50%);
    background-size: 250% 250%;
    background-position: 100% 100%;
    border: 2px solid #0061FF;
    transition: all 0.6s ease;
}

.btn-secondary:hover {
    background-position: 0% 0%;
    color: #fff;
}

/* ==============================================
   NAVIGATION
   ============================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background-color: var(--color-bg);
    border-bottom: 1px solid rgba(0, 208, 255, 0.1);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

header.nav-hidden {
    transform: translateY(-100%);
}

header.nav-scrolled {
    background: rgba(10, 17, 40, 0.98);
    box-shadow: 0 2px 20px rgba(0, 208, 255, 0.1);
}

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

.logo {
    height: 60px;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-desktop a:not(.btn-primary) {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.nav-desktop a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00D0FF;
    transition: width 0.3s ease;
}

.nav-desktop a:not(.btn-primary):hover {
    color: #00D0FF;
}

.nav-desktop a:not(.btn-primary):hover::after {
    width: 100%;
}

/* Burger Menu */
.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: white;
    flex-direction: column;
    gap: 5px;
    position: fixed;
    top: 26px;
    right: 24px;
    z-index: 1105;
}

.burger-menu span {
    width: 28px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
}

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

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

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

/* Sidebar mobile */
.sidebar-mobile {
    display: none;
}

.nav-overlay {
    display: none;
}

/* ==============================================
   FOOTER
   ============================================== */
footer {
    background: var(--color-bg);
    color: var(--color-text-muted);
    padding: 60px 24px 40px;
    border-top: 1px solid rgba(0, 208, 255, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    max-width: 250px;
}

.footer-subtitle {
    max-width: 300px;
    color: var(--color-text-muted);
    margin-top: 20px;
    font-size: 16px;
}

.links-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #FFFFFF;
}

.footer-links a {
    display: block;
    color: var(--color-text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #00D0FF;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 208, 255, 0.1);
    font-size: 14px;
}

/* ==============================================
   MAIN CONTENT & TYPOGRAPHY
   ============================================== */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 85px;
}

main img {
    width: 100%;
    position: relative;
}

h1 {
    font-size: clamp(45px, 5vw, 64px);
    line-height: 1.15;
}

h2 {
    font-size: clamp(38px, 3.5vw, 56px);
    line-height: 1.2;
}

h3 {
    font-size: clamp(20px, 2.5vw, 30px);
    line-height: 1.3;
}

p {
    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.6;
}

/* ==============================================
   SECTIONS BACKGROUNDS
   ============================================== */
.section-white{
    background: #FFFFFF;
}
.section-light {
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}

.section-gray {
    background: linear-gradient(180deg, #F1F5F9 0%, #E2E8F0 100%);
}

.section-blue-modern {
    background: linear-gradient(135deg, #1E3A8A 0%, var(--color-bg) 100%);
}

.section-dark {
    background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
}

.section-light h1, .section-light h2,
.section-white h1, .section-white h2,
.section-gray h1, .section-gray h2{
    color: #1E293B;
}

.section-light p,
.section-white p,
.section-gray p{
    color: #64748B;
}

.section-light .card,
.section-white .card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-light .card:hover,
.section-white .card:hover { 
    border-color: #3B82F6;
    box-shadow: 0 8px 40px rgba(59, 130, 246, 0.15);
}

.section-light .card h3,
.section-white .card h3{
    color: #1E293B;
}

.section-light .card p,
.section-white .card p{
    color: #64748B;
}

.section-blue-modern h1, .section-blue-modern h2,
.section-dark h1, .section-dark h2{
    color: white;
}

.section-blue-modern p, .section-dark p{
    color: #E0E7FF;
}

/* ==============================================
   PAGE HERO (pages internes)
   ============================================== */

.hero {
    padding: 190px 0 130px;
    position: relative;
    overflow: hidden;
}

.hero-bg-blur {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.hero-bg-blur:nth-child(1) {
    background: linear-gradient(135deg, #60A5FA, #E7F0FF);
    top: 10%;
    left: 10%;
}

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

.hero .split-content {
    text-align: left;
}

.hero .split-content h1 {
    font-weight: 800;
    margin-bottom: 24px;
}

.hero .split-content p {
    color: #475569;
    margin-bottom: 40px;
}

    
.page-hero {
    padding: 120px 0 80px;
    text-align: center;
}

.page-hero h1 {
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==============================================
   SECTION HEADER
   ============================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-weight: 800;
    margin-bottom: 20px;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==============================================
   CARDS
   ============================================== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.card {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    border: 1px solid #E2E8F0;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.card:hover {
    border-color: #3B82F6;
    box-shadow: 0 8px 40px rgba(59, 130, 246, 0.15);
    transform: translateY(-8px);
}

/* Override le fade-in pour le hover */
.fade-in.visible.card:hover {
    transform: translateY(-8px);
}

.card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1E293B;
}

.card p {
    color: #64748B;
    line-height: 1.7;
}

.card-image {
    margin-bottom: 20px;
}

.card-image img {
    border-radius: 20px;
}

/* Cards Dark (sur fond bleu) */
.cards-dark .card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cards-dark .card:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.cards-dark .card h3 {
    color: #FFFFFF;
}

.cards-dark .card p {
    color: #E0E7FF;
}

/* ==============================================
   SPLIT SECTION
   ============================================== */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split-section.reverse {
    direction: rtl;
}

.split-section.reverse > * {
    direction: ltr;
}

.split-content h2 {
    font-weight: 800;
    margin-bottom: 24px;
    color: #1E293B;
}

.split-content p {
    color: #64748B;
    margin-bottom: 32px;
}

.split-content ul {
    color: #64748B;
    margin: 20px 0;
    padding-left: 24px;
    line-height: 2;
}

.split-content ul li {
    margin-bottom: 8px;
}

.split-image img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* ==============================================
   FEATURE CARDS
   ============================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.feature-card:hover {
    border-color: #3B82F6;
    box-shadow: 0 8px 40px rgba(59, 130, 246, 0.15);
}

.fade-in.visible.feature-card:hover {
    transform: translateY(-8px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #00D0FF 0%, #0080FF 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1E293B;
}

.feature-card p {
    color: #64748B;
}

/* ==============================================
   FORMS
   ============================================== */
.form-group {
    margin-bottom: 1.25rem;
}

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

.form-group label .required {
    color: #3B82F6;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #FAFBFC;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: #1E293B;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.form-submit {
    margin-top: 1.5rem;
    text-align: center;
}

/* ==============================================
   ALERTS
   ============================================== */
.alert {
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    text-align: center;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==============================================
   LEGAL CONTENT (mentions légales, confidentialité)
   ============================================== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1E293B;
    margin: 2.5rem 0 1rem;
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content p,
.legal-content ul {
    color: #64748B;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-content ul {
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content strong {
    color: #1E293B;
}

.legal-content a {
    color: #3B82F6;
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* ==============================================
   ANIMATIONS
   ============================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================================
   FAQ
   ============================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-item:hover {
    border-color: #3B82F6;
}

.faq-question {
    font-size: 18px;
    padding: 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    color: #1E293B;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    color: #3B82F6;
}

.faq-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
    color: #3B82F6;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 24px 24px;
    color: #64748B;
    line-height: 1.7;
}

/* ==============================================
   RESPONSIVE - TABLETTE (768px)
   ============================================== */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .sidebar-mobile {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        height: 100dvh;
        background: var(--color-bg);
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 1100;
        overflow-y: auto;
    }

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

    .sidebar-mobile nav {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .sidebar-mobile a {
        display: block;
        font-size: 1.1rem;
        padding: 0.75rem 0;
        color: white;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s;
    }

    .sidebar-mobile a:hover {
        color: #00D0FF;
    }

    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 999;
    }

    .nav-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    .container {
        padding: 0 20px;
    }

    section {
        padding: 80px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .btn-container {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        padding: 14px 32px;
        font-size: 15px;
    }

    /* Split section responsive */
    .split-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .split-section.reverse {
        direction: ltr;
    }

    /* Cards responsive */
    .cards {
        grid-template-columns: 1fr;
    }
}

/* ==============================================
   RESPONSIVE - MOBILE (480px)
   ============================================== */
@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 14px;
    }
}