:root {
    --primary-bg: #000000;
    --card-bg: rgba(255, 255, 255, 0.05);
    --accent-color: #ff004f;
    --error-color: #ff004f;
    --success-color: #4caf50;
    --text-color: #ffffff;
    --grid-gap: 30px;
    --border-radius: 10px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

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

body {
    background-color: var(--primary-bg);
    color: var(--text-color);
    font-family: "Share Tech Mono", monospace;
    line-height: 1.6;
    font-size: 14px;
}

.security-system {
    max-width: 1200px;
    margin: 80px auto 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
}

.system-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-bottom: 1px solid var(--accent-color);
}

.system-title h1 {
    font-size: 36px;
    letter-spacing: 2px;
    margin: 0;
    color: var(--accent-color);
}

.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: "BILAN";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.glitch-text::before {
    left: -1px;
    text-shadow: 1px 0 var(--error-color);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: 1px;
    text-shadow: -1px 0 var(--accent-color);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.subtitle {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 8px;
}

.status-alert {
    color: var(--success-color);
    font-weight: bold;
}

.status-panel {
    display: flex;
    gap: 20px;
}

.status-item {
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 8px 15px;
    border-radius: 5px;
}

.status-label {
    opacity: 0.8;
    margin-right: 5px;
}

.status-value {
    color: var(--accent-color);
    font-weight: bold;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--grid-gap);
    margin-top: 20px;
}

.content-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    z-index: 10;
}

.card-header {
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.card-status {
    color: var(--success-color);
}

.card-content {
    padding: 20px;
}

.card-content ul {
    list-style: none;
}

.card-content li {
    margin: 10px 0;
    padding-left: 25px;
    position: relative;
    color: #ababab;
}

.card-content li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.control-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    margin-top: 20px;
}

.log-terminal {
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 0, 79, 0.3);
    height: 200px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--accent-color);
}

.terminal-controls {
    display: flex;
    gap: 10px;
}

.terminal-info {
    display: flex;
    gap: 20px;
    color: var(--text-color);
    font-family: 'Courier New', monospace;
}

.uptime {
    color: var(--accent-color);
    font-weight: bold;
}

.current-time {
    color: var(--text-color);
}

.terminal-content {
    padding: 15px;
    font-size: 14px;
    line-height: 1.6;
    overflow-y: auto;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-btn {
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: var(--border-radius);
    padding: 12px 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s;
}

.control-btn:hover {
    background-color: var(--accent-color);
    color: #000;
}

@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(40% 0 61% 0);
        transform: translate(-2px, 2px);
    }
    20% {
        clip-path: inset(72% 0 28% 0);
        transform: translate(-1px, 1px);
    }
    40% {
        clip-path: inset(54% 0 46% 0);
        transform: translate(1px, 3px);
    }
    60% {
        clip-path: inset(20% 0 80% 0);
        transform: translate(3px, -1px);
    }
    80% {
        clip-path: inset(66% 0 34% 0);
        transform: translate(-3px, -2px);
    }
    100% {
        clip-path: inset(91% 0 9% 0);
        transform: translate(2px, 2px);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(13% 0 87% 0);
        transform: translate(3px, -1px);
    }
    20% {
        clip-path: inset(25% 0 75% 0);
        transform: translate(-3px, 1px);
    }
    40% {
        clip-path: inset(63% 0 37% 0);
        transform: translate(1px, 3px);
    }
    60% {
        clip-path: inset(42% 0 58% 0);
        transform: translate(3px, 2px);
    }
    80% {
        clip-path: inset(74% 0 26% 0);
        transform: translate(2px, -3px);
    }
    100% {
        clip-path: inset(50% 0 50% 0);
        transform: translate(-2px, 2px);
    }
}

@media (max-width: 768px) {
    .security-system {
        margin-top: 60px;
        padding: 0 15px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .control-panel {
        grid-template-columns: 1fr;
    }
    
    .system-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .status-panel {
        width: 100%;
        justify-content: space-between;
    }

    .system-title h1 {
        font-size: 28px;
    }
}

.year-navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 0, 79, 0.3);
}

.year-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--accent-color);
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
}

.year-btn:hover {
    background-color: rgba(255, 0, 79, 0.1);
}

.year-btn.active {
    background-color: var(--accent-color);
    color: #000;
}

.year-section {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.year-section.active {
    display: block;
    opacity: 1;
}

.year-experience {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 4px solid #ff004f;
}

.year-experience h3 {
    color: #ff004f;
    margin: 20px 0 10px;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.year-experience ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.year-experience li {
    color: #fff;
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.year-experience li:before {
    content: ">";
    position: absolute;
    left: 0;
    color: #ff004f;
}

.progress-section {
    margin-bottom: 20px;
}

.progress-section h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 16px;
}

.progress-bar {
    height: 30px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.progress {
    height: 100%;
    background-color: var(--accent-color);
    position: relative;
    transition: width 0.3s ease;
}

.progress::after {
    content: attr(style);
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #000;
}

.stats-section {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    min-width: 120px;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .stats-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .year-experience {
        padding: 15px;
    }
    
    .year-experience h3 {
        font-size: 1.1em;
    }
}

.ressenti-text {
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    border: 1px solid rgba(255, 0, 79, 0.2);
}

.cyber-text {
    margin: 5px 0;
    font-family: "Share Tech Mono", monospace;
    font-size: 13px;
    color: #ababab;
    text-shadow: 0 0 5px rgba(255, 0, 79, 0.3);
    animation: textFlicker 0.5s infinite alternate;
}

.cyber-text.success {
    color: var(--accent-color);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 0, 79, 0.5);
    margin-top: 10px;
}

@keyframes textFlicker {
    0% {
        opacity: 0.8;
        text-shadow: 0 0 5px rgba(255, 0, 79, 0.3);
    }
    100% {
        opacity: 1;
        text-shadow: 0 0 8px rgba(255, 0, 79, 0.5);
    }
}

@media (max-width: 768px) {
    .status-panel {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .status-item {
        flex: 1 1 calc(50% - 10px);
        text-align: center;
    }
}

/* Styles responsifs pour la page de bilan */
@media screen and (max-width: 768px) {
    #bilan {
        padding: 60px 0;
    }

    .section-title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .terminal-container {
        padding: 20px;
    }

    .terminal-header {
        padding: 15px;
    }

    .terminal-controls {
        gap: 10px;
    }

    .terminal-info {
        font-size: 14px;
    }

    .content-card {
        padding: 20px;
    }

    .year-buttons {
        flex-wrap: wrap;
        gap: 10px;
    }

    .year-button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    #bilan {
        padding: 40px 0;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .terminal-container {
        padding: 15px;
    }

    .terminal-header {
        padding: 12px;
    }

    .terminal-info {
        font-size: 12px;
    }

    .content-card {
        padding: 15px;
    }

    .year-button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media screen and (max-width: 320px) {
    #bilan {
        padding: 30px 0;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .terminal-container {
        padding: 10px;
    }

    .terminal-header {
        padding: 10px;
    }

    .terminal-info {
        font-size: 10px;
    }

    .content-card {
        padding: 12px;
    }

    .year-button {
        padding: 5px 10px;
        font-size: 10px;
    }
} 