/* Variables CSS */
:root {
    --primary-color: #ffffff;
    --secondary-color: #1a1a1a;
    --accent-color: #4a9eff;
    --text-color: #f0f0f0;
    --light-bg: #333333;
    --border-color: #444444;
    --transition: all 0.3s ease;
}

/* Reset et styles globaux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(26, 26, 26, 0.95);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
    transition: var(--transition);
}

.profile-pic:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(74, 158, 255, 0.5);
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: 2px;
}

/* Menu Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 3rem 0;
    text-align: center;
    background: transparent;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    letter-spacing: -1px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

.hero .tagline {
    font-size: 0.95rem;
    color: #e0e0e0;
    margin-bottom: 0;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

.hero h1 {
    animation-delay: 0.1s;
}

.hero .subtitle {
    animation-delay: 0.3s;
}

.hero .tagline {
    animation-delay: 0.5s;
}

/* Sections */
.section {
    padding: 6rem 0;
}

/* Réduit l'espace au-dessus/au-dessous de la section Compétences */
#skills.section {
    padding: 4rem 0;
}

.section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
}

.section-alt {
    background-color: var(--light-bg);
}

/* About Section */
.about-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 2.5rem;
    background: rgba(26, 26, 26, 0.7);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.about-text {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-align: justify;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-card {
    padding: 2rem;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.1);
    border-color: var(--accent-color);
}

.skill-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.skill-card p {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Tech Stack */
.tech-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tech-category {
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.tech-category h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.tech-list {
    list-style: none;
}

.tech-list li {
    padding: 0.25rem 0;
    color: #e0e0e0;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.tech-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Certifications Section */
.certifications-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 3rem;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.certification-card {
    padding: 2rem;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.certification-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 35px rgba(74, 158, 255, 0.15);
}

.cert-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.certification-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.certification-card p {
    font-size: 0.95rem;
    color: #b0b0b0;
    line-height: 1.5;
}

/* Realizations Section */
.realizations-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 3rem;
}

.realizations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.realization-card {
    padding: 1.5rem;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.realization-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 35px rgba(74, 158, 255, 0.15);
}

.pdf-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.realization-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.realization-card p {
    font-size: 0.95rem;
    color: #b0b0b0;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.realization-card .btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
}

/* Contact Section */
#contact.section {
    padding: 2rem 0;
}

#contact h2 {
    margin-bottom: 1rem;
}

.contact-subtitle {
    text-align: center;
    font-size: 1rem;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
}

.contact-options {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background: #6ab3ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 158, 255, 0.3);
}

.btn-secondary {
    background: var(--light-bg);
    color: var(--primary-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Responsive Design */

/* Tablets et petits écrans (≤ 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 4rem 0;
    }

    .section h2 {
        font-size: 2.3rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .skills-grid,
    .tech-matrix {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile et tablets (≤ 768px) */
@media (max-width: 768px) {
    /* Navigation */
    .hamburger {
        display: flex;
    }

    .navbar .container {
        flex-wrap: wrap;
        position: relative;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(26, 26, 26, 0.98);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links.active {
        max-height: 400px;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
        font-size: 0.95rem;
    }

    .nav-links a::after {
        display: none;
    }

    /* Hero */
    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .hero .tagline {
        font-size: 0.9rem;
    }

    /* Sections */
    .section {
        padding: 3rem 0;
    }

    .section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    /* About */
    .about-content {
        padding: 1.5rem;
        max-width: 100%;
    }

    .about-text {
        font-size: 1rem;
        text-align: left;
    }

    /* Grid */
    .skills-grid,
    .tech-matrix {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-options {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Petits mobiles (≤ 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    /* Logo et navigation */
    .logo-container {
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .profile-pic {
        width: 35px;
        height: 35px;
    }

    .hamburger {
        width: 30px;
    }

    .hamburger span {
        width: 20px;
        height: 2.5px;
    }

    /* Hero */
    .hero {
        padding: 1.5rem 0;
    }

    .hero h1 {
        font-size: 1.6rem;
        margin-bottom: 0.2rem;
    }

    .hero .subtitle {
        font-size: 0.95rem;
    }

    .hero .tagline {
        font-size: 0.8rem;
        word-spacing: 0.1em;
    }

    /* Sections */
    .section {
        padding: 2rem 0;
    }

    .section h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    /* About */
    .about-content {
        padding: 1rem;
        border-radius: 8px;
    }

    .about-text {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }

    /* Cards */
    .skill-card,
    .tech-category {
        padding: 1.5rem 1rem;
    }

    .skill-card h3,
    .tech-category h3 {
        font-size: 1.1rem;
    }

    .skill-card p {
        font-size: 0.85rem;
    }

    /* Buttons */
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Autres */
    .contact-options {
        flex-direction: column;
    }
}
