@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body{
    background-color: black;
    color: white;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    max-width: 100vw;
}

main {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}


/* === Section intro === */
.page-title {
    font-size: 60px;
    font-weight: 700;
    color: #FFEE00;
    margin: 0px 0 60px;
    text-align: right;
    margin-right: 90px;
}



.intro-content {
    display: flex;
    gap: 80px;
    align-items: flex-end;
    margin-left: 5%;
    margin-top: 8%;
}

.photo-placeholder {
    width: 420px;
    height: 520px;
    border: 3px solid #FFEE00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #d0d0d0;
    overflow: hidden;
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-text {
    max-width: 600px;
    font-size: 18px;
    line-height: 1.7;
}

.intro-text p + p {
    margin-top: 1.2rem;
}

span{
    font-weight: bold;
    color: #FFEE00  ;
}

/* === Section compétences === */
.skills-section {
    margin-top: 150px;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 60px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #FFEE00;
    margin-bottom: 40px;
}

.skill-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 80px;
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.skill-row.in-view {
    opacity: 1;
    transform: translateY(0);
}

.skill-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.7;
}

.skill-text h3 {
    font-size: 30px;
    margin-bottom: 1rem;
    color: #FFEE00;
}

.skill-image {
    flex: 1;
    height: 420px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: none;
}

.skill-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.65));
}

.view-more {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    color: #000;
    width: 180px;
    height: 3rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-more:hover {
    transform: translate(-50%, -52%);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.55);
}

header {
    background-color: #000;
    padding: 1rem 2rem;
}

.header-container {
    max-width: 1880px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    padding: 0 1rem;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

header nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 120px;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: none;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 12px;
    cursor: pointer;
    padding: 8px;
    z-index: 3;
}

.burger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

header.nav-open .burger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
header.nav-open .burger span:nth-child(2) {
    opacity: 0;
}
header.nav-open .burger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

header nav a {
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

header nav a:hover {
    color: #FFEE00;
    filter: drop-shadow(0 0 8px rgba(255, 238, 0, 0.5));
}

header nav a.active {
    color: #FFEE00;
    filter: drop-shadow(0 0 8px rgba(255, 238, 0, 0.8));
}
.spacer {
    width: 4rem;
}

/* === Footer === */
footer {
    background-color: #000;
    padding: 1.5rem 2rem;
    border-top: 1px solid #333;
    margin-top: 100px;
    width: 100%;
}

.footer-container {
    max-width: 1880px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: #FFEE00;
    transform: translateY(-3px);
}

footer nav {
    display: flex;
    gap: 2rem;
    position: static;
    transform: none;
}

footer nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

footer nav a:hover {
    color: #FFEE00;
}

/* Bouton CTA style outline (footers) */
.cta-button {
    min-width: 260px;
    height: 3em;
    padding: 0 1.6rem;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    background: transparent;
    border: 3px solid #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #fff;
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* Menu burger mobile */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    .header-container {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .logo img {
        height: 45px;
    }

    header nav {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.96);
        padding: 80px 1.5rem 2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        display: none;
        z-index: 10;
        transform: none;
        overflow-y: auto;
    }

    header.nav-open nav {
        display: flex;
    }

    header nav a {
        font-size: 0.95rem;
    }

    .spacer {
        display: none;
    }

    .burger {
        display: flex;
        z-index: 11;
    }
}

/* === Responsive === */

/* Tablettes (768px - 1024px) */
@media (max-width: 1024px) {
    .page-title {
        font-size: 48px;
        margin-right: 40px;
        text-align: center;
        margin-left: 40px;
    }

    .intro-content {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        margin-left: 0;
        margin-top: 5%;
        padding: 0 2rem;
    }

    .photo-placeholder {
        width: 100%;
        max-width: 380px;
        height: auto;
        aspect-ratio: 420 / 520;
    }

    .intro-text {
        max-width: 100%;
        text-align: center;
        font-size: 17px;
    }

    .skills-section {
        padding: 0 2rem;
    }

    .skill-row {
        gap: 40px;
    }

    header nav {
        gap: 60px;
    }

    footer nav {
        gap: 1.5rem;
    }
}

/* Tablettes petites et téléphones (max 768px) */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    header {
        padding: 1rem;
    }

    .header-container {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .logo img {
        height: 45px;
    }

    header nav {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.96);
        padding: 80px 1.5rem 2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        display: none;
        z-index: 10;
        transform: none;
        overflow-y: auto;
    }

    header.nav-open nav {
        display: flex;
    }

    header nav a {
        font-size: 0.95rem;
    }

    .spacer {
        display: none;
    }

    .burger {
        display: flex;
        z-index: 11;
    }

    .page-title {
        font-size: 32px;
        margin: 20px 1rem 40px;
        text-align: center;
    }

    .intro-content {
        margin-top: 3%;
        padding: 0 1rem;
        gap: 30px;
    }

    .photo-placeholder {
        max-width: 100%;
        width: 100%;
    }

    .intro-text {
        font-size: 15px;
        text-align: left;
    }

    .skills-section {
        margin-top: 80px;
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
        text-align: center;
    }

    .skill-row {
        flex-direction: column !important;
        gap: 25px;
        margin-bottom: 50px;
    }

    .skill-row.reverse {
        flex-direction: column !important;
    }

    .skill-row.reverse .skill-text {
        order: 1;
    }

    .skill-row.reverse .skill-image {
        order: 2;
    }

    .skill-text {
        width: 100%;
        text-align: center;
    }

    .skill-text h3 {
        font-size: 22px;
    }

    .skill-text p {
        font-size: 15px;
    }

    .skill-image {
        width: 100%;
        height: 250px;
    }

    .view-more {
        width: 150px;
        height: 2.5rem;
        font-size: 0.85rem;
    }

    footer {
        padding: 1.5rem 1rem;
        margin-top: 60px;
    }

    .footer-container {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
        gap: 1.2rem;
    }

    footer nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .cta-button {
        width: 100%;
        max-width: 280px;
        font-size: 14px;
        white-space: normal;
        height: auto;
        min-height: 3em;
        padding: 0.8rem 1.2rem;
    }
}

/* Petits téléphones (max 480px) */
@media (max-width: 480px) {
    .page-title {
        font-size: 26px;
        padding: 0 1rem;
    }

    .intro-content {
        padding: 0 1rem;
    }

    .intro-text {
        font-size: 14px;
    }

    .skills-section {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .skill-text h3 {
        font-size: 19px;
    }

    .skill-text p {
        font-size: 14px;
    }

    .skill-image {
        height: 200px;
    }

    .view-more {
        width: 130px;
        height: 2.25rem;
        font-size: 0.8rem;
    }

    header nav {
        gap: 15px;
    }

    header nav a {
        font-size: 0.85rem;
    }

    .social-links a {
        font-size: 1.25rem;
    }

    footer nav a {
        font-size: 0.9rem;
    }

    .cta-button {
        font-size: 13px;
    }
}