@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
    --noir: #0A0A0A;
    --noir-profond: #050505;
    --blanc: #FEFEFE;
    --or: #D1A959;
    --or-clair: #E8C547;
    --or-fonce: #B8860B;
    --gris: #1A1A1A;
    --gris-moyen: #2A2A2A;
    --gris-clair: #A0A0A0;
    --vert: #34C759;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--noir);
    color: var(--blanc);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

a {
    color: var(--or);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--or-clair);
}

/* ==================== NAVIGATION ==================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 5%;
    border-bottom: 1px solid rgba(209, 169, 89, 0.15);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo svg {
    height: 28px;
    width: auto;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--or);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

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

.nav-links a {
    color: var(--blanc);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--or);
    border-bottom-color: var(--or);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--or);
    transition: all 0.3s;
}

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

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

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

/* ==================== PAGE HEADER ==================== */
.page-header {
    padding: 8rem 5% 3rem;
    background: var(--noir);
    position: relative;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 0%, rgba(209, 169, 89, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--blanc);
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.page-header h1 span {
    color: var(--or);
}

.page-header p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--gris-clair);
    margin-top: 1rem;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* ==================== SECTION ==================== */
section {
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--or);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--blanc);
    font-weight: 600;
}

.section-subtitle {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--gris-clair);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

/* ==================== CONTENT BOX ==================== */
.content-box {
    background: var(--gris);
    border: 1px solid rgba(209, 169, 89, 0.15);
    border-radius: 8px;
    padding: 2rem;
    margin: 1.5rem 0;
}

.content-box h3 {
    color: var(--or);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 1rem;
    font-weight: 600;
}

.content-box h4 {
    color: var(--blanc);
    font-size: 1rem;
    margin: 1.5rem 0 0.8rem;
    font-weight: 600;
}

.content-box p {
    color: var(--blanc);
    line-height: 1.8;
    font-size: 0.95rem;
}

.content-box ul, .content-box ol {
    color: var(--blanc);
    margin-left: 1.5rem;
    line-height: 1.9;
    font-size: 0.95rem;
}

.content-box li {
    margin: 0.4rem 0;
}

/* ==================== CARDS GRID ==================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.card {
    background: var(--gris);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(209, 169, 89, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--or);
    transform: translateY(-2px);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(209, 169, 89, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--or);
    font-size: 1.2rem;
    font-weight: 600;
}

.card-number {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    color: var(--or);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.8rem;
    opacity: 0.5;
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--blanc);
    font-weight: 600;
}

.card p {
    color: var(--gris-clair);
    line-height: 1.7;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.card ul {
    list-style: none;
}

.card ul li {
    padding: 0.3rem 0;
    color: var(--blanc);
    position: relative;
    padding-left: 1rem;
    font-size: 0.85rem;
}

.card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--or);
}

/* ==================== TIMELINE ==================== */
.timeline {
    position: relative;
    margin: 2rem 0;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--or), rgba(209, 169, 89, 0.2));
}

.timeline-item {
    position: relative;
    margin: 2rem 0;
    padding-left: 1.5rem;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: var(--or);
    border-radius: 50%;
    position: absolute;
    left: -2.3rem;
    top: 0.5rem;
}

.timeline-content {
    background: var(--gris);
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(209, 169, 89, 0.1);
}

.phase-tag {
    display: inline-block;
    color: var(--or);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.timeline-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: var(--blanc);
    font-weight: 600;
}

.timeline-content p {
    color: var(--gris-clair);
    line-height: 1.6;
    font-size: 0.9rem;
}

.timeline-price {
    color: var(--or);
    font-weight: 600;
    margin-top: 0.8rem;
    font-size: 1rem;
}

/* ==================== TABLES ==================== */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.styled-table th,
.styled-table td {
    padding: 1rem 0.8rem;
    text-align: left;
    border-bottom: 1px solid rgba(209, 169, 89, 0.1);
}

.styled-table th {
    background: rgba(209, 169, 89, 0.08);
    color: var(--or);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.styled-table td {
    color: var(--blanc);
}

.styled-table tr:hover {
    background: rgba(209, 169, 89, 0.03);
}

.price-cell {
    color: var(--or) !important;
    font-weight: 600;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ==================== CODE BLOCK ==================== */
.code-block {
    background: var(--noir-profond);
    border: 1px solid rgba(209, 169, 89, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.code-block pre {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--gris-clair);
    line-height: 1.6;
    white-space: pre;
}

.code-block .keyword { color: var(--or); }
.code-block .string { color: #98c379; }
.code-block .comment { color: #5c6370; font-style: italic; }

/* ==================== SCREEN CARDS ==================== */
.screen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.screen-card {
    background: var(--gris);
    border: 1px solid rgba(209, 169, 89, 0.1);
    border-radius: 8px;
    padding: 1.2rem;
    transition: all 0.3s;
}

.screen-card:hover {
    border-color: var(--or);
}

.screen-number {
    display: inline-block;
    background: var(--or);
    color: var(--noir);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.screen-card h4 {
    color: var(--blanc);
    font-size: 1rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.screen-card p {
    color: var(--gris-clair);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ==================== PRICING ==================== */
.price-box {
    background: rgba(209, 169, 89, 0.05);
    border: 2px solid var(--or);
    padding: 2rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin: 1.5rem 0;
}

.price-label {
    color: var(--or);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 7vw, 3rem);
    color: var(--or);
    font-weight: 700;
    margin: 0.5rem 0;
}

.price-ttc {
    color: var(--gris-clair);
    font-size: 0.9rem;
}

.price-desc {
    color: var(--blanc);
    font-size: 0.9rem;
    margin-top: 1rem;
    line-height: 1.6;
}

/* ==================== COMPARATIF ==================== */
.comparatif-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.comparatif-card {
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.comparatif-card.old {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparatif-card.new {
    background: rgba(209, 169, 89, 0.08);
    border: 2px solid var(--or);
}

.comparatif-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.comparatif-card.old .comparatif-label { color: var(--gris-clair); }
.comparatif-card.new .comparatif-label { color: var(--or); }

.comparatif-amount {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.comparatif-card.old .comparatif-amount {
    color: var(--gris-clair);
    text-decoration: line-through;
}

.comparatif-card.new .comparatif-amount { color: var(--or); }

.comparatif-desc {
    font-size: 0.8rem;
    color: var(--gris-clair);
    line-height: 1.4;
}

.savings-badge {
    display: inline-block;
    background: var(--vert);
    color: var(--blanc);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* ==================== CTA BUTTON ==================== */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--or);
    color: var(--noir);
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0.5rem;
}

.cta-button:hover {
    background: var(--or-clair);
    color: var(--noir);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    border: 1px solid var(--or);
    color: var(--or);
}

.cta-button.secondary:hover {
    background: rgba(209, 169, 89, 0.1);
    color: var(--or);
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--noir-profond);
    padding: 3rem 5%;
    border-top: 1px solid rgba(209, 169, 89, 0.1);
    text-align: center;
}

.footer-logo {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--or);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.contact-item {
    text-align: center;
}

.contact-item h4 {
    color: var(--blanc);
    font-size: 1rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.footer-note {
    margin-top: 2rem;
    color: var(--gris-clair);
    font-size: 0.8rem;
    line-height: 1.7;
}

/* ==================== TWO COLUMN ==================== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* ==================== UTILITIES ==================== */
.highlight { color: var(--or); }

.badge {
    display: inline-block;
    background: var(--or);
    color: var(--noir);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.4rem;
}

/* ==================== ANIMATIONS ==================== */
html {
    scroll-behavior: smooth;
}

/* ==================== GRID 2 COLONNES ==================== */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* ==================== RESPONSIVE - TABLET ==================== */
@media (max-width: 1024px) {
    section {
        padding: 3rem 4%;
    }
    
    .content-box {
        padding: 1.5rem;
    }
}

/* ==================== RESPONSIVE - MOBILE ==================== */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--noir);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(209, 169, 89, 0.2);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        border-bottom: 1px solid rgba(209, 169, 89, 0.1);
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 0.9rem;
    }
    
    .page-header {
        padding: 6rem 5% 2rem;
    }
    
    section {
        padding: 2.5rem 4%;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .content-box {
        padding: 1.2rem;
        margin: 1rem 0;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card {
        padding: 1.2rem;
    }
    
    .screen-grid {
        grid-template-columns: 1fr;
    }
    
    .comparatif-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .two-col {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-dot {
        left: -1.8rem;
        width: 10px;
        height: 10px;
    }
    
    .styled-table {
        font-size: 0.8rem;
    }
    
    .styled-table th,
    .styled-table td {
        padding: 0.7rem 0.5rem;
    }
    
    .code-block pre {
        font-size: 0.7rem;
    }
    
    .cta-button {
        display: block;
        text-align: center;
        margin: 0.5rem 0;
    }
    
    footer {
        padding: 2rem 5%;
    }
    
    .contact-grid {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* Hero avec image de fond */
    .hero {
        background-position: center center !important;
        background-size: cover !important;
    }
    
    /* Grilles 2 colonnes -> 1 colonne */
    .two-col-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Images responsives */
    .content-box img,
    section img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* ==================== RESPONSIVE - SMALL MOBILE ==================== */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    nav {
        padding: 0.8rem 4%;
    }
    
    .logo svg {
        height: 20px;
    }
    
    .logo-text {
        font-size: 0.75rem;
    }
    
    .page-header {
        padding: 5.5rem 4% 1.5rem;
    }
    
    section {
        padding: 2rem 4%;
    }
    
    .content-box, .card, .screen-card {
        padding: 1rem;
    }
    
    .code-block {
        padding: 1rem;
    }
    
    .code-block pre {
        font-size: 0.65rem;
    }
}
