/* ============================= */
/*            GLOBAL            */
/* ============================= */

:root {
    --primary: #F4760F;
    --secondary: #134834;
    --tertiary: #4A0001;
    --background: rgba(244, 118, 15, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Work Sans", sans-serif;
    transition: background-color 0.5s ease, color 0.5s ease;
}

span {
    font-weight: bold;
}

h1 {
    font-weight: 700;
    font-size: 2rem;
}

h2 {
    font-weight: 500;
    font-size: 1.8rem;
    color: var(--primary);
    text-align: center;
}

h3 {
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--tertiary);
}

p {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.85;
    line-height: 1.6;
}

a {
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    color: white;
}

/* ============================= */
/*            HEADER            */
/* ============================= */

header {
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    padding: 20px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: top 0.4s ease;
    z-index: 9999;
}

.mdi-arrow-right {
    color: white;
}
header.visible {
    top: 0;
}

/* ============================= */
/*             HERO             */
/* ============================= */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem;
    background:
            linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)),
            url("./img/img-hero.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    width: 100%;
    display: flex;
    align-items: center;
}

.hero-content::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background-image: url("./img/img-hero-content.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-text-wrapper {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: white;
    margin-left: 20px;
}

.hero-text-wrapper img {
    max-width: 270px;
    margin-bottom: 1rem;
}

.hero-text {
    color: white;
    text-align: left;
}

.cta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 16px 24px !important;
    border-radius: 8px !important;
    background: var(--primary) !important;
    transition: transform 0.25s ease !important;
    cursor: pointer !important;
}

.cta:hover {
    transform: translateY(-3px) !important;
}

/* ============================= */
/*        HERO ANIMATION        */
/* ============================= */

.hero-text-wrapper > * {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
    margin-right: 20px;
}

/* Délais en cascade */
.hero-text-wrapper img {
    animation-delay: 0.2s;
}

.hero-text-wrapper h1 {
    animation-delay: 0.4s;
}

.hero-text-wrapper p {
    animation-delay: 0.6s;
}
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ============================= */
/*             ABOUT            */
/* ============================= */

.about {
    padding: 4rem 2rem;
    background-color: var(--background);
}

.about-container {
    max-width: 1200px;
    margin: 3rem auto 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.about-container img {
    max-width: 300px;
    width: 100%;
}

.about-text {
    flex: 1;
    min-width: 280px;
}

/* ============================= */
/*             SKILLS           */
/* ============================= */

.skills-container {
    padding: 4rem 0;
}

.skills-grid {
    display: flex;
    flex-direction: column;
}

.skill-block {
    display: flex;
    align-items: start;
    justify-content: center;
    gap: 3rem;
    padding: 4rem 2rem;
    flex-wrap: wrap;
}

.skill-block .bullet {
    max-width: 100px !important;
    width: 100%;
}

.skill-block:nth-child(odd) {
    background: white;
}

.skill-block:nth-child(even) {
    background: var(--background);
}

.skill-block img {
    max-width: 400px;
    width: 100%;
    height: auto;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-out;
}

.skill-text {
    max-width: 500px;
}

.skill-text h3 {
    margin-bottom: 1rem;
}


.skill-block .skill-text {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease-out;
}

.skill-block.animate img,
.skill-block.animate .skill-text {
    opacity: 1;
    transform: translateX(0);
}

/* ============================= */
/*            CONTACT           */
/* ============================= */

.contact {
    padding: 4rem 4rem;
    margin-bottom: 4rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.contact-row {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    max-width: 500px;
}

.contact-row img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

.contact-text h3 {
    margin-bottom: 0.5rem;
}

.contact-links a {
    position: relative;
    color: var(--primary);
    font-weight: 400;
    text-decoration: none;
}

.contact-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.contact-links a:hover::after {
    width: 100%;
}

.mdi-mail, .mdi-link {
    color: var(--primary);
    font-size: 1.2rem;
}

/* ============================= */
/*            FOOTER            */
/* ============================= */

footer {
    padding: 2rem;
    text-align: center;
    background-color: var(--background);
}

/* ============================= */
/*            ANIMATION          */
/* ============================= */

section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================= */
/*          RESPONSIVE          */
/* ============================= */

@media (max-width: 1024px) {

    header {
        height: 70px;
        padding: 10px 16px;
    }

    header img {
        height: 40px;
        margin-right: 16px;
    }

    header .cta {
        padding: 8px 12px;
        font-size: 0.8rem;
        gap: 6px;
    }

    header .cta i {
        font-size: 1rem;
    }

    .hero {
        background:
                linear-gradient(rgba(0,0,0,0.70), rgba(0,0,0,0.70)),
                url("./img/img-hero.jpg");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }


    .hero-content {
    }

    .hero-content::before {
        display: none;
    }

    .hero-text-wrapper {
        max-width: 100%;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .skill-block {
        flex-direction: column;
        display: flex;
        align-items: center;
        text-align: center;
        justify-content: center !important;
        align-content: center !important;
    }


    .skill-text {
        text-align: center;
    }

    .contact-row {
        flex-direction: column;
        text-align: center;
    }

}