* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Import des polices */
@font-face {
    font-family: 'Manifesto';
    src: url('./typos/MANIFESTO.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'IBM Plex Mono';
    src: url('./typos/IBMPlexMono-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'IBM Plex Mono';
    src: url('./typos/IBMPlexMono-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

body {
    font-family: 'IBM Plex Mono', monospace;
    line-height: 1.6;
    color: #faffe9;
    background: #1b1d19;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.random-image-container {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.random-image-container img {
    width: 100%;
    height: auto;
    max-height: 800px;
    object-fit:cover;
    display: block;
    image-rendering: pixelated;
}

@media (max-width: 768px) {
    .random-image-container img {
        max-height: none;
    }
}

/* Header */
header {
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(27, 29, 25, 0.95);
    z-index: 1000;
    border-bottom: 1px solid #31352c;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #faffe9;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #faffe9;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: bold;
}

.nav-links a:hover {
    color: #31352c;
    background: #faffe9;
    padding: 0.2rem 0.5rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
     margin-top: 80px; /* Ou adapte à la hauteur réelle de ton header */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%2331352c" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 100;
    margin-bottom: 1rem;
    color: #faffe9;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-text .tagline {
    font-size: 1.5rem;
    color: #31352c;
    background: #faffe9;
    margin-bottom: 1.5rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    display: inline-block;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #faffe9;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    background: #31352c;
    color: #faffe9;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 2px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #31352c;
}

.cta-button:hover {
    background: #faffe9;
    color: #31352c;
    border-color: #faffe9;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.usb-mockup {
    width: 300px;
    height: 400px;
    background: #31352c;
    border-radius: 2px;
    padding: 2rem;
    border: 2px solid #faffe9;
    position: relative;
    overflow: hidden;
}

.usb-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: #faffe9;
    border-radius: 0;
}

.file-structure {
    margin-top: 2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #faffe9;
}

.file-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #1b1d19;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-icon {
    width: 12px;
    height: 12px;
    background: #faffe9;
    border-radius: 1px;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: #31352c;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #faffe9;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #1b1d19;
    padding: 2rem;
    border-radius: 2px;
    border: 1px solid #faffe9;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: #faffe9;
    color: #1b1d19;
}

.feature-card h3 {
    color: #faffe9;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
      letter-spacing: 0.1em;
}

.feature-card:hover h3 {
    color: #1b1d19;
}

.feature-card p {
    color: #faffe9;
    line-height: 1.6;
}

.feature-card:hover p {
    color: #1b1d19;
}

/* Content Categories */
.categories {
    padding: 6rem 0;
}

.categories h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #faffe9;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.categories-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-item {
    background: #31352c;
    padding: 1.5rem;
    border-radius: 2px;
    border: 1px solid #faffe9;
    text-align: center;
    transition: all 0.3s ease;
}

.category-item:hover {
    background: #faffe9;
    color: #31352c;
}

.category-item h4 {
    color: #faffe9;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.category-item:hover h4 {
    color: #31352c;
}

.category-item p {
    color: #faffe9;
}

.category-item:hover p {
    color: #31352c;
}


.pixelated-img {
    image-rendering: pixelated;
    display: block;
    max-width: 100%;
}
.cta-button.footer {
    display: inline-block;
    background: #faffe9;
    color: #1b1d19;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #faffe9;
    transition: background 0.3s ease, color 0.3s ease, transform 0.1s ease;
    box-sizing: border-box;
}

.cta-button.footer:hover {
    background: #1b1d19;
        padding: 1rem 2rem;
    color: #faffe9;
    border-color: #31352c;
    transform: translateY(-1px);
}

.cta-button.footer:active {
    background: #1b1d19;
        padding: 1rem 2rem;
    color: #faffe9;
    border-color: #1b1d19;
    transform: translateY(0);
}

.cta-button.footer:focus-visible {
    outline: 3px dashed #faffe9;
        padding: 1rem 2rem;
    outline-offset: 4px;
}


/* Footer */
footer {
    background: #31352c;
    padding: 3rem 0 6rem;
    border-top: 2px solid #faffe9;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #faffe9;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
        font-size:2em;

}

.footer-section p,
.footer-section a {
    color: #faffe9;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    background: #faffe9;
    color: #31352c;
    padding: 0.2rem 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #faffe9;
    color: #faffe9;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .usb-mockup {
        width: 250px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 5rem; /* Ajuste cette valeur si nécessaire */
    }

    header {
        padding: 0.5rem 0;
    }

    .logo img {
        height: 2.2em !important; /* Réduit un peu le logo sur mobile */
    }
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.usb-mockup {
    animation: none;
}

.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: #31352c;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: #faffe9;
    z-index: -2;
}

@keyframes glitch-1 {
    0%   { transform: translate(0, 0); }
    10%  { transform: translate(-2px, 0); }
    20%  { transform: translate(2px, 1px); }
    30%  { transform: translate(-1px, -1px); }
    40%  { transform: translate(1px, 0); }
    50%  { transform: translate(-2px, 1px); }
    60%  { transform: translate(0, 0); }
    70%  { transform: translate(1px, -1px); }
    80%  { transform: translate(-1px, 1px); }
    90%  { transform: translate(1px, 0); }
    100% { transform: translate(0, 0); }
}

@keyframes glitch-2 {
    0%   { transform: translate(0, 0); }
    10%  { transform: translate(1px, 0); }
    20%  { transform: translate(-1px, 1px); }
    30%  { transform: translate(1px, -1px); }
    40%  { transform: translate(-1px, 0); }
    50%  { transform: translate(1px, 1px); }
    60%  { transform: translate(0, 0); }
    70%  { transform: translate(-1px, -1px); }
    80%  { transform: translate(1px, 0); }
    90%  { transform: translate(-1px, 1px); }
    100% { transform: translate(0, 0); }
}



/* Appliquer Manifesto aux titres */
h1, h2, h3, h4 {
    font-family: 'Manifesto', sans-serif;

}
