/* Variables globales */
:root {
    --primary-color: #000000;
    --text-color: #333;
    --white: #ffffff;
    --accent-color: #0066cc;
    --gradient-start: rgba(139, 69, 69, 0.9);
    --gradient-end: rgba(45, 45, 45, 0.9);
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #000000;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Header et Navigation */
header {
    background-color: #000000;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Section Hero */
.hero {
    min-height: 100vh;
    width: 100vw;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-color: #000000;
    overflow: hidden;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #000000;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
    margin-top: 60px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s forwards;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    color: var(--white);
    text-decoration: none;
    border: 2px solid var(--white);
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s forwards;
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.1);
}

.cta-button:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
        white-space: normal;
    }
}

/* Sections communes */
section {
    position: relative;
    padding: 4rem 5%;
    max-width: 100vw;
    overflow: hidden;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

/* Section Projets */
.projects {
    background-color: #f8f9fa;
    padding: 5rem 0;
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.project-content {
    padding: 1.5rem;
}

.project-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.project-card h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.project-card:hover h3::after {
    width: 100px;
}

.project-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.project-link:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .project-card {
        margin-bottom: 1rem;
    }
}

/* Section Contact */
.contact {
    background-color: var(--white);
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
}

#contact-form textarea {
    height: 150px;
    resize: vertical;
}

#contact-form button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

#contact-form button:hover {
    background-color: var(--accent-color);
}

/* Footer */
footer {
    background-color: var(--white);
    border-top: 1px solid #eee;
    padding: 2rem 5%;
    text-align: center;
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--primary-color);
    margin: 0 1rem;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Section À propos */
.about {
    background-color: var(--white);
    color: var(--text-color);
    padding: 8rem 5% 5rem;
    max-width: 100vw;
    overflow: hidden;
}

.about h1 {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-color);
    font-size: 2.5rem;
}

.about-content {
    display: flex;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: flex-start;
}

.profile-image {
    flex: 0 0 300px;
}

.profile-image img {
    width: 100%;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
    text-align: left;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

.skills-list {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
}

.skills-list li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    color: #666;
    font-size: 1.1rem;
}

.skills-list i {
    color: #6c5ce7;
    margin-right: 1rem;
    font-size: 1rem;
}

/* Style pour les sous-compétences (indentées) */
.skills-list li li {
    margin-left: 2rem;
    margin-bottom: 0.8rem;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .profile-image {
        flex: 0 0 250px;
        margin-bottom: 2rem;
    }

    .about-text {
        text-align: center;
    }

    .skills-list {
        display: inline-block;
        text-align: left;
    }
}

/* Section CV */
.cv-section {
    background-color: #000000;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.cv-container {
    text-align: center;
}

.download-cv {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1.8rem;
    font-size: 1.1rem;
    color: var(--white);
    background-color: transparent;
    border: 2px solid var(--white);
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-cv:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.2);
}

.download-cv i {
    font-size: 1.1rem;
}

/* Media Queries */
/* Mobile First Approach */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .projects h2, .about h1 {
        font-size: 2rem;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .form-row {
        flex-direction: column;
    }

    .form-row > * {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    section {
        padding: 4rem 2rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        gap: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ajustements pour la navigation responsive */
.hamburger {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Ajustements pour les images responsives */
img {
    max-width: 100%;
    height: auto;
}

/* Ajustements pour les formulaires responsifs */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Ajustements pour la section hero */
@media (max-width: 576px) {
    .hero {
        min-height: calc(100vh - 60px);
        padding-top: 60px;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Ajustements pour la section projets */
@media (max-width: 576px) {
    .projects {
        padding: 3rem 0;
    }

    .project-card {
        margin: 0 1rem;
    }
}

/* Ajustements pour la section à propos */
@media (max-width: 576px) {
    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-image {
        width: 200px;
        margin-bottom: 2rem;
    }

    .skills-list {
        padding-left: 0;
    }
}

/* Ajustements pour le footer */
@media (max-width: 576px) {
    footer {
        padding: 2rem 1rem;
    }

    .social-links a {
        margin: 0 0.5rem;
    }
} 