/* --- SYSTEME DE DESIGN APPLE BENTO --- */
:root {
    --bg-main: #000000;
    --card-bg: #121217;
    --card-border: rgba(255, 255, 255, 0.1);
    --card-hover-border: rgba(255, 255, 255, 0.25);
    
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --text-tertiary: #6e6e73;
    
    --accent-blue: #2997ff;
    --accent-purple: #bf5af2;
    --accent-green: #30d158;
    --accent-red: #ff453a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    background-image:
        radial-gradient(circle at 15% 20%, rgba(191, 90, 242, 0.35), transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(41, 151, 255, 0.35), transparent 45%),
        radial-gradient(circle at 50% 85%, rgba(48, 209, 88, 0.18), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 69, 58, 0.15), transparent 50%);
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- NAVIGATION GLASS --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid var(--card-border);
}

.nav-content {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 2rem;
}

.logo {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

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

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 7rem 2rem 3rem 2rem;
}

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

.badge-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.8rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    background: rgba(41, 151, 255, 0.1);
    border: 1px solid rgba(41, 151, 255, 0.25);
    border-radius: 30px;
    color: var(--accent-blue);
    font-size: 0.82rem;
    font-weight: 600;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-blue);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
    100% { opacity: 1; transform: scale(1); }
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-blue) 70%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    color: var(--text-secondary);
    font-weight: 400;
    margin: 0 auto 2.5rem auto;
    max-width: 680px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.95rem 2.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-main);
}

.btn-primary:hover {
    transform: scale(1.04);
    background-color: #ffffff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.04);
}

/* --- SECTIONS BENTO --- */
.section {
    padding: 6rem 2rem;
    max-width: 1140px;
    margin: 0 auto;
}

.section-tag {
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent-blue);
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 3rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
    max-width: 600px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 1.25rem;
}

.bento-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.card-header.space-between {
    justify-content: space-between;
    width: 100%;
}

.card-icon {
    font-size: 1.4rem;
}

.bento-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
}

.card-subtitle {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-blue);
    font-weight: 700;
    margin-bottom: 0.4rem;
    display: block;
}

.big-stat {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    letter-spacing: -0.03em;
}

/* --- SIMULATEUR PENTEST INTERACTIF --- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(48, 209, 88, 0.1);
    border: 1px solid rgba(48, 209, 88, 0.25);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent-green);
    font-weight: 600;
    transition: all 0.3s ease;
}

.status-badge.danger {
    background: rgba(255, 69, 58, 0.1);
    border-color: rgba(255, 69, 58, 0.3);
    color: var(--accent-red);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
    transition: all 0.3s ease;
}

.status-badge.danger .status-dot {
    background-color: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red);
}

.simulator-intro {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.scenario-tabs {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 0.6rem 1.1rem;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.tab-btn.active {
    background: rgba(41, 151, 255, 0.15);
    border-color: rgba(41, 151, 255, 0.4);
    color: var(--accent-blue);
    font-weight: 600;
}

.control-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.8rem 1.2rem;
    border-radius: 18px;
    margin-bottom: 1.2rem;
}

.control-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

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

.toggle-status-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

.toggle-status-label.vulnerable.active {
    color: var(--accent-red);
}

.toggle-status-label.protected.active {
    color: var(--accent-green);
}

/* Switch Apple Style */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--accent-red);
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
}

input:checked + .slider {
    background-color: var(--accent-green);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Écran de Simulation */
.simulation-screen {
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.4s ease;
}

.simulation-screen.protected {
    background: rgba(48, 209, 88, 0.05);
    border: 1px solid rgba(48, 209, 88, 0.25);
}

.simulation-screen.vulnerable {
    background: rgba(255, 69, 58, 0.05);
    border: 1px solid rgba(255, 69, 58, 0.25);
}

.sim-header {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.sim-pill {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
}

.simulation-screen.protected .sim-pill {
    background: rgba(48, 209, 88, 0.15);
    color: var(--accent-green);
}

.simulation-screen.vulnerable .sim-pill {
    background: rgba(255, 69, 58, 0.15);
    color: var(--accent-red);
}

.sim-header h4 {
    font-size: 1.15rem;
    font-weight: 700;
}

.sim-description {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.sim-solution-box {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sim-solution-box strong {
    color: var(--accent-blue);
}

/* TAGS */
.tech-tags {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.35rem 0.8rem;
    border-radius: 12px;
    font-size: 0.78rem;
    color: var(--text-primary);
    font-weight: 500;
}

.tag-accent {
    background: rgba(41, 151, 255, 0.15);
    border-color: rgba(41, 151, 255, 0.3);
    color: var(--accent-blue);
}

/* LINKS */
.inline-link {
    margin-top: auto;
    padding-top: 1.2rem;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.inline-link:hover {
    text-decoration: underline;
}

/* SPAN GRILLE */
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }

/* INTERACTIVE CARD */
.bento-card-interactive {
    text-decoration: none;
    color: inherit;
    border-color: rgba(41, 151, 255, 0.25);
}

.bento-card-interactive:hover h3 {
    color: var(--accent-blue);
}

.arrow-glow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.bento-card-interactive:hover .arrow-glow {
    transform: translateX(6px);
}

/* --- CONTACT SECTION & LOGOS SVG --- */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 750px;
}

.contact-box {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1.4rem 2rem;
    border-radius: 22px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-box:hover {
    transform: translateX(8px);
    border-color: var(--card-hover-border);
    background: #181820;
}

.contact-icon-wrapper {
    background: rgba(255, 255, 255, 0.06);
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.4rem;
    color: var(--accent-blue);
    transition: color 0.3s ease;
}

.contact-box:hover .contact-icon-wrapper {
    color: #ffffff;
    background: rgba(41, 151, 255, 0.2);
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-type {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.contact-value {
    font-size: 1.05rem;
    font-weight: 600;
}

.contact-action {
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--accent-blue);
    font-weight: 500;
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid var(--card-border);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 5rem;
}

.footer-container p {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* --- ANIMATIONS DE SCROLL --- */
.fade-in {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .span-2, .span-3 {
        grid-column: span 2;
    }
}

@media (max-width: 650px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .span-2, .span-3 {
        grid-column: span 1;
    }
    .nav-links {
        display: none;
    }
    .control-panel {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }
}