/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier Prime', monospace;
    color: #000;
    background-color: #fff;
    line-height: 1.6;
}

/* Typographie */
h1, h2, h3 {
    font-weight: 700;
}

.typewriter h2 {
    overflow: hidden;
    border-right: .15em solid #000;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation: 
        typing 3.5s steps(40, end),
        blink-caret .75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #000; }
}

/* Layout */
header {
    padding: 1rem;
    border-bottom: 1px solid #000;
}

nav ul {
    display: flex;
    list-style: none;
    margin-top: 1rem;
}

nav li {
    margin-right: 1.5rem;
}

nav a {
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
}

nav .active a {
    text-decoration: underline;
}

main {
    padding: 2rem;
    min-height: 80vh;
}

footer {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid #000;
}

/* Portfolio */
.portfolio-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.category {
    border: 1px solid #000;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category:hover {
    background-color: #f0f0f0;
}

/* Carousel */
.carousel {
    position: relative;
    max-width: 1000px;
    margin: 2rem auto;
    overflow: hidden;
}

.carousel-track-container {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    position: relative;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    z-index: 10;
}

.carousel-button.prev {
    left: 0;
}

.carousel-button.next {
    right: 0;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.carousel-indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 5px;
    cursor: pointer;
}

.carousel-indicator.active {
    background: #000;
}

/* Contact */
form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

input, textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #000;
    font-family: 'Courier Prime', monospace;
}

button {
    background: #000;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: 'Courier Prime', monospace;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-track-container {
        height: 300px;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav li {
        margin: 0.5rem 0;
    }
}