/* Reset et variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --text: #0f172a;
    --text-muted: #64748b;
    --accent: #405379;
    --accent-dark: #0284c7;
    --border: #e2e8f0;
    --card-bg: #ffffff;
    --container-width: 1200px;
}

/* Typographie */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--bg-light);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Topbar */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: inline-block;
    height: 60px;
    transform: translateX(100px);
}

.logo img {
    height: 100%;
    width: auto;
    display: block;
}

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    margin-top: -20px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
    font-size: 1rem;
}

nav a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1.5rem;
    background-color: var(--bg);
}

.hero-content {
    max-width: 800px;
}

.hero-image {
    transform: scale(1.2) translateY(50px);
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

/* Section Box - Cards */
.box {
    padding: 5rem 0;
    background-color: var(--bg);
}

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

.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.card p {
    color: var(--text-muted);
    line-height: 1.7;
}

.box_header {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-family: 'JetBrains Mono', monospace;
    text-align: center;
}

.box_subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

body.scrolled .topbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

.section-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* How It Works */
.how-it-works {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.25rem;
}

.step h3 {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.step p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Specifications */
.specs-section {
    margin: 90px;
}

.specs {
    padding: 6rem 0;
    background-color: var(--bg);
    margin-bottom: 40px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.spec-item {
    padding: 1.25rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
}

.spec-item strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.spec-item span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #0f172a 0%, #0c1120 100%);
    color: #e2e8f0;
    padding: 4.5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
}

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

.footer-brand img {
    margin-bottom: 1rem;
    border-radius: 10px;
}

.footer-tagline {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-personal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
}

.footer-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.linkedin-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(10, 102, 194, 0.15);
    color: #0a66c2;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    border: 1px solid rgba(10, 102, 194, 0.3);
    margin: 0.4rem 0;
}

.linkedin-button:hover {
    background: rgba(10, 102, 194, 0.25);
    color: #ffffff;
    transform: translateY(-2px);
    border-color: rgba(10, 102, 194, 0.5);
}

.linkedin-button svg {
    width: 18px;
    height: 18px;
}

.location {
    font-size: 0.9rem;
    color: white;
    margin-top: 0.3rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #64748b;
    font-size: 0.9rem;
}

html {
    scroll-behavior: smooth;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    color: white !important;
}

/* ============================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ============================================ */

/* Tablettes et petits écrans (max 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .logo {
        transform: translateX(0);
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-image {
        transform: scale(1) translateY(20px);
    }
    
    .specs-section {
        margin: 60px 40px;
    }
    
    nav ul {
        gap: 1.5rem;
    }
    
    nav a {
        font-size: 0.95rem;
    }
}

/* Tablettes portrait (max 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Topbar */
    .topbar .container {
        height: 70px;
    }
    
    .logo {
        height: 45px;
        transform: translateX(0);
    }
    
    nav ul {
        display: none;
    }
    
    /* Hero */
    .hero {
        min-height: 100vh;
        height: auto;
        padding: 100px 1rem 2rem;
    }
    
    .hero h1 {
        font-size: 2.25rem !important;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-image {
        transform: scale(0.9) translateY(10px);
        margin-top: 2rem;
    }
    
    .hero-image img {
        max-height: 300px;
    }
    
    /* Sections */
    .box {
        padding: 3rem 0;
    }
    
    .section-title, .box_header {
        font-size: 2rem;
    }
    
    .section-subtitle, .box_subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    /* Cards */
    .cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card {
        padding: 2rem;
    }
    
    /* How it works */
    .how-it-works {
        padding: 4rem 0;
    }
    
    .steps {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .step {
        min-width: 100%;
    }
    
    /* Specifications */
    .specs-section {
        margin: 40px 20px;
    }
    
    .specs {
        padding: 4rem 0;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand,
    .footer-personal {
        align-items: center;
    }
    
    .footer-personal {
        align-items: center;
    }
}

/* Mobiles (max 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Topbar */
    .topbar .container {
        height: 60px;
        padding: 0 1rem;
    }
    
    .logo {
        height: 40px;
    }
    
    /* Hero */
    .hero {
        padding: 80px 1rem 2rem;
    }
    
    .hero h1 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-image {
        transform: scale(0.85) translateY(0);
        margin-top: 1.5rem;
    }
    
    .hero-image img {
        max-height: 250px;
    }
    
    /* Sections */
    .box {
        padding: 2.5rem 0;
    }
    
    .section-title, .box_header {
        font-size: 1.75rem;
        padding: 0 0.5rem;
    }
    
    .section-subtitle, .box_subtitle {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    
    /* Cards */
    .cards {
        gap: 1.25rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .card h3 {
        font-size: 1.25rem;
    }
    
    .card p {
        font-size: 0.95rem;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
    }
    
    .card-icon svg {
        width: 24px;
        height: 24px;
    }
    
    /* How it works */
    .how-it-works {
        padding: 3rem 0;
    }
    
    .step h3 {
        font-size: 1.2rem;
    }
    
    .step p {
        font-size: 0.95rem;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* Specifications */
    .specs-section {
        margin: 30px 15px;
    }
    
    .specs {
        padding: 3rem 0;
    }
    
    .spec-item {
        padding: 1rem;
    }
    
    .spec-item strong {
        font-size: 0.95rem;
    }
    
    .spec-item span {
        font-size: 0.875rem;
    }
    
    /* Footer */
    .footer {
        padding: 2.5rem 0 1rem;
    }
    
    .footer-grid {
        gap: 2rem;
    }
    
    .footer-brand img {
        height: 35px;
    }
    
    .footer-tagline {
        font-size: 0.875rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .footer-section a {
        font-size: 0.875rem;
    }
    
    .linkedin-button {
        padding: 0.65rem 1rem;
        font-size: 0.875rem;
    }
    
    .linkedin-button svg {
        width: 16px;
        height: 16px;
    }
    
    .footer-name {
        font-size: 1rem;
    }
    
    .location {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 1.5rem;
    }
    
    /* Button primary responsive */
    .btn-primary {
        padding: 0.45rem 1rem;
        font-size: 0.9rem;
    }
}

/* Très petits mobiles (max 360px) */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.5rem !important;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .section-title, .box_header {
        font-size: 1.5rem;
    }
    
    .card {
        padding: 1.25rem;
    }
    
    .specs-section {
        margin: 20px 10px;
    }
}