/* ============================================
   HACKER PRO - CSS UNIVERSELLEMENT RESPONSIVE
   Compatible mobile, tablette, desktop
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg: #0a0a0a;
    --bg-alt: #0d0d0d;
    --card: #111;
    --text: #f0ede8;
    --text2: #a09888;
    --gold: #c9a84c;
    --gold-light: #e0c878;
    --border: rgba(255,255,255,0.06);
    --border-gold: rgba(201,168,76,0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============ IMAGES AUTO-RESPONSIVES ============ */
img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ============ TYPOGRAPHIE FLUIDE ============ */
h1 { font-size: clamp(1.8rem, 6vw, 4rem); line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 4vw, 2.6rem); line-height: 1.2; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: clamp(0.95rem, 2vw, 1.1rem); }
p { font-size: clamp(0.85rem, 1.5vw, 1rem); }

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 600; }

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-gold);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8b6914, #c9a84c);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text);
    line-height: 1.2;
}

.logo-text span {
    display: block;
    font-size: 0.6rem;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

/* Menu desktop */
.nav-links {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--text2);
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    font-size: clamp(0.8rem, 1.2vw, 0.95rem);
    transition: 0.3s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--gold-light);
    background: rgba(201,168,76,0.05);
}

.btn-nav {
    background: linear-gradient(135deg, #8b6914, #c9a84c) !important;
    color: #000 !important;
    font-weight: 600 !important;
    padding: 0.5rem 1.2rem !important;
}

/* Burger menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============ HERO ============ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1rem 3rem;
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 0.3rem 1.2rem;
    border: 1px solid var(--border-gold);
    color: var(--gold);
    font-size: clamp(0.65rem, 1.2vw, 0.8rem);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero h1 {
    margin-bottom: 1rem;
}

.hero h1 .gold-text {
    background: linear-gradient(135deg, #e0c878, #c9a84c, #8b6914);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text2);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 2rem;
    padding: 0 0.5rem;
}

.hero-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============ BOUTONS ============ */
.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
    transition: 0.3s;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #8b6914, #c9a84c);
    color: #000;
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(201,168,76,0.3);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--border-gold);
    color: var(--gold);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(201,168,76,0.06);
}

/* ============ SECTIONS ============ */
.section {
    padding: clamp(3rem, 6vw, 6rem) 1rem;
}

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 4rem);
}

.section-title .overline {
    display: block;
    color: var(--gold);
    font-size: clamp(0.65rem, 1vw, 0.75rem);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title h2 { margin-bottom: 0.5rem; }

.section-title .gold-underline {
    display: block;
    width: 50px;
    height: 2px;
    background: var(--gold);
    margin: 1rem auto 0;
}

.section-title p {
    color: var(--text2);
    font-weight: 300;
    max-width: 550px;
    margin: 0.5rem auto 0;
    font-size: clamp(0.8rem, 1.4vw, 0.95rem);
}

/* ============ GRID AUTO-RESPONSIVE ============ */
.grid-2, .grid-3, .grid-4 {
    display: grid;
    gap: 1.2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============ CARDS ============ */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}

.card:hover {
    border-color: var(--border-gold);
    transform: translateY(-3px);
}

.card-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.card h3 {
    padding: 1rem 1rem 0.3rem;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.card p {
    padding: 0 1rem 1rem;
    color: var(--text2);
    font-weight: 300;
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
}

/* ============ STEPS ============ */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.step {
    text-align: center;
    padding: 1rem;
}

.step-number {
    width: clamp(45px, 6vw, 60px);
    height: clamp(45px, 6vw, 60px);
    border-radius: 50%;
    border: 2px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 600;
    color: var(--gold);
    margin: 0 auto 0.8rem;
}

.step h4 { margin-bottom: 0.4rem; }
.step p { color: var(--text2); font-weight: 300; font-size: clamp(0.8rem, 1.2vw, 0.9rem); }

/* ============ ADVANTAGES ============ */
.advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.advantage {
    padding: 1.2rem;
    background: var(--card);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.advantage h4 {
    color: var(--gold);
    margin-bottom: 0.3rem;
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
}

.advantage p {
    color: var(--text2);
    font-weight: 300;
    font-size: clamp(0.75rem, 1.1vw, 0.85rem);
}

/* ============ TESTIMONIALS ============ */
.testimonials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.testimonial {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 0.8rem;
    border: 2px solid var(--border-gold);
}

.testimonial .stars {
    color: var(--gold);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.testimonial p {
    color: var(--text2);
    font-style: italic;
    font-weight: 300;
    margin-bottom: 1rem;
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
}

.testimonial-author {
    color: var(--gold);
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

/* ============ CONTACT ============ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.contact-detail {
    padding: 0.8rem 1rem;
    background: var(--card);
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 0.8rem;
}

.contact-detail strong {
    color: var(--text);
    display: block;
    margin-bottom: 2px;
}

.contact-detail-text {
    color: var(--text2);
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
}

/* ============ FORMS ============ */
.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--text2);
    font-size: clamp(0.75rem, 1vw, 0.85rem);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
}

.form-group textarea { min-height: 100px; resize: vertical; }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
}

/* ============ FOOTER ============ */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 3rem 1rem 1.5rem;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.footer-links h4 {
    color: var(--gold);
    margin-bottom: 0.8rem;
    font-size: clamp(0.7rem, 1vw, 0.8rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Inter', sans-serif;
}

.footer-links li { margin-bottom: 0.4rem; }

.footer-links a {
    color: var(--text2);
    font-size: clamp(0.75rem, 1.1vw, 0.85rem);
    font-weight: 300;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text2);
    font-size: clamp(0.7rem, 1vw, 0.8rem);
}

/* ============ SERVICE BLOCKS ============ */
.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.service-block-text h2 { font-size: clamp(1.3rem, 2vw, 1.8rem); margin-bottom: 0.5rem; }
.service-block-text p { color: var(--text2); font-weight: 300; margin-bottom: 0.8rem; font-size: clamp(0.8rem, 1.2vw, 0.9rem); }

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    color: var(--text2);
    font-weight: 300;
    margin-bottom: 0.3rem;
    font-size: clamp(0.75rem, 1.1vw, 0.85rem);
}

.service-block-img img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    border-radius: 6px;
    border: 1px solid var(--border-gold);
}

/* ============ WHY US ============ */
.why-us-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.why-us-point {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.why-us-point:last-child { border-bottom: none; }

.why-us-point h3 { font-size: clamp(1rem, 1.5vw, 1.2rem); margin-bottom: 0.3rem; }
.why-us-point p { color: var(--text2); font-weight: 300; font-size: clamp(0.8rem, 1.2vw, 0.9rem); }

.why-us-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    border-radius: 8px;
    border: 1px solid var(--border-gold);
}

/* ============ STATS ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.2rem;
    text-align: center;
}

.stat-value {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--gold);
}

.stat-label {
    color: var(--text2);
    font-size: clamp(0.7rem, 1vw, 0.85rem);
}

/* ============ BLOG ============ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.blog-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.blog-card-image {
    height: auto;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content { padding: 1rem; }

.blog-card-date {
    color: var(--gold);
    font-size: clamp(0.65rem, 0.9vw, 0.75rem);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.blog-card h3 { font-size: clamp(0.95rem, 1.3vw, 1.1rem); margin-bottom: 0.4rem; }

.blog-card p {
    color: var(--text2);
    font-weight: 300;
    font-size: clamp(0.75rem, 1vw, 0.85rem);
    margin-bottom: 0.6rem;
}

.blog-read-more {
    color: var(--gold);
    font-weight: 600;
    font-size: clamp(0.75rem, 1vw, 0.85rem);
}

/* ============ TERMINAL ============ */
.terminal-card {
    background: #050505;
    border: 1px solid #00ff41;
    border-radius: 6px;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    max-width: 700px;
    margin: 0 auto;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 0.8rem;
    background: #0a0a0a;
    border-bottom: 1px solid rgba(0,255,65,0.15);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
    color: #555;
    font-size: clamp(0.6rem, 1vw, 0.7rem);
    margin-left: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.terminal-body { padding: 0.8rem; }

.terminal-line {
    font-size: clamp(0.65rem, 1vw, 0.8rem);
    line-height: 1.7;
    color: #aaa;
    word-break: break-all;
}

.prompt { color: #00ff41; font-weight: bold; }
.cmd { color: #fff; }
.output { color: #008f11; padding-left: 0.5rem; }
.label { color: #888; }
.data { color: #00ff41; font-weight: bold; }
.cursor { color: #00ff41; animation: blink 1s infinite; }

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ============ BROWSER REVEAL ============ */
.browser-reveal-card {
    background: #0d0d0d;
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
}

.browser-reveal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    background: #0a0a0a;
    border-bottom: 1px solid var(--border);
    font-size: clamp(0.7rem, 1vw, 0.8rem);
    color: var(--text2);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.reveal-status {
    background: rgba(39,174,96,0.15);
    color: #27ae60;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: clamp(0.6rem, 0.8vw, 0.7rem);
    font-weight: 600;
}

.browser-reveal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.03);
}

.reveal-item { background: #0d0d0d; padding: 0.8rem 1rem; }

.reveal-label {
    color: var(--text2);
    font-size: clamp(0.6rem, 0.8vw, 0.7rem);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reveal-value {
    color: var(--gold);
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 600;
    font-family: 'Courier New', monospace;
    margin-top: 0.2rem;
    word-break: break-all;
}

.reveal-highlight { background: rgba(201,168,76,0.03); }
.reveal-highlight .reveal-value { color: #e0c878; }

.browser-reveal-warning {
    padding: 0.8rem 1rem;
    background: rgba(201,168,76,0.04);
    border-top: 1px solid var(--border-gold);
    color: var(--text2);
    font-size: clamp(0.7rem, 1vw, 0.8rem);
    text-align: center;
}

/* ============ TEAM IMG ============ */
.team-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 8px;
    border: 1px solid var(--border-gold);
}

/* ============ TOAST ============ */
.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.7rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
    font-size: clamp(0.8rem, 1vw, 0.9rem);
}

.toast.success { background: #27ae60; color: #fff; }
.toast.error { background: #c0392b; color: #fff; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================
   BREAKPOINTS UNIQUES
   ============================================ */

/* Tablette */
@media (max-width: 900px) {
    .grid-3, .grid-4, .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-2, .testimonials, .contact-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
    .advantages { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .service-block, .why-us-layout { grid-template-columns: 1fr; }
    .why-us-image { order: -1; }
}

/* Mobile */
@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4, .blog-grid, .testimonials,
    .advantages, .stats-grid, .footer-content, .steps,
    .contact-grid, .service-block, .why-us-layout {
        grid-template-columns: 1fr !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #0a0a0a;
        flex-direction: column;
        padding: 5rem 1rem 2rem;
        transition: right 0.3s ease;
        gap: 0.3rem;
        z-index: 999;
    }

    .nav-links.active { right: 0; }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 0.7rem;
        font-size: 0.95rem;
    }

    .mobile-toggle { display: flex; }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .btn {
        width: 100%;
        max-width: 350px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .btn-nav {
        width: auto;
        display: inline-block;
    }

    .browser-reveal-grid {
        grid-template-columns: 1fr;
    }

    .terminal-line {
        font-size: 0.7rem;
    }
}
/* ============================================
   CORRECTION FOOTER - CENTRAGE PARFAIT
   ============================================ */

.footer {
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    text-align: center;
    justify-items: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.footer-brand .logo {
    justify-content: center;
}

.footer-brand p {
    max-width: 300px;
    text-align: center;
}

.footer-links {
    text-align: center;
}

.footer-links h4 {
    text-align: center;
}

.footer-links ul {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links li {
    text-align: center;
}

.footer-bottom {
    text-align: center;
}

/* Mobile : tout en une colonne centrée */
@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }

    .footer-brand {
        align-items: center !important;
    }

    .footer-links ul {
        align-items: center !important;
    }

    .footer-bottom {
        text-align: center !important;
    }
}