* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    padding-top: 0;
    margin-top: 0;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 2000;
}

.header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    z-index: 1000;
    z-index: 1000;
    padding: 5px 20px 0 20px;
    background-color: #121212;
    backdrop-filter: none;
    transition: all 0.3s ease;
}

.header-container::after {
    content: '';
    position: absolute;
    bottom: 20px;
    /* Remonte la ligne de 20px */
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}



.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #121212;
}

.background-image img {
    display: none;
}

.Présentation {
    font-family: 'Roboto', sans-serif;
    font-size: 40px;
    color: hsl(0, 0%, 100%);
    transition: all 0.3s ease;
}

.Présentation:hover {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

.Présentation.perso {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    color: hsl(0, 0%, 100%);
}

.Présentation.perso p {
    transition: all 0.3s ease;
}

.Présentation.perso p:hover {
    transform: translateX(10px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Sections générales */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px 20px 100px 20px;
    scroll-margin-top: 150px;
    position: relative;
}

/* Section Accueil - commence juste sous le header */
.section-accueil {
    padding-top: 200px;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    padding: 40px;
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

.hero-name {
    font-family: 'Roboto', sans-serif;
    font-size: 72px;
    font-weight: bold;
    margin: 0 0 20px 0;
    margin: 0 0 20px 0;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.hero-name:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.hero-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 28px;
    font-weight: 300;
    color: hsl(0, 0%, 100%);
    margin: 0 0 30px 0;
    letter-spacing: 2px;
}

.hero-description {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    color: hsl(0, 0%, 85%);
    line-height: 1.8;
    margin: 0 0 40px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #ffffff;
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.5);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: hsl(0, 0%, 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn span {
    position: relative;
    z-index: 1;
}

.rectangle-presentation,
.rectangle-projet,
.rectangle-competences,
.rectangle-contact {
    width: 60vw;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    padding: 40px;
    margin: 0 auto;
    border: 2px solid white;
    border-radius: 50px;
    background-color: transparent;
    backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.rectangle-presentation:hover,
.rectangle-projet:hover,
.rectangle-competences:hover,
.rectangle-contact:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2),
        0 0 30px rgba(255, 255, 255, 0.1),
        inset 0 0 30px rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.1);
}

.rectangle-presentation {
    width: 60vw;
}

.rectangle-projet {
    width: 60vw;
}

.rectangle-competences {
    width: 60vw;
}

.rectangle-contact {
    width: 60vw;
}

.projects-title {
    font-family: 'Roboto', sans-serif;
    font-size: 40px;
    color: hsl(0, 0%, 100%);
    transition: all 0.3s ease;
}

.projects-title:hover {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}


.projects-perso {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    color: hsl(0, 0%, 100%);
}

.projects-perso p {
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.projects-perso p:hover {
    transform: translateX(10px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}


.competences-title {
    font-family: 'Roboto', sans-serif;
    font-size: 40px;
    color: hsl(0, 0%, 100%);
    transition: all 0.3s ease;
}

.competences-title:hover {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

.competences-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.competence-item {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.competence-item:hover {
    transform: translateX(15px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2),
        0 0 20px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.15);
}

.competence-item:hover h3 {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
}

.competence-item h3 {
    transition: all 0.3s ease;
}

.competence-item h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    color: hsl(0, 0%, 100%);
    margin-bottom: 10px;
}

.competence-item p {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    color: hsl(0, 0%, 90%);
}

/* Section Contact */
.contact-title {
    font-family: 'Roboto', sans-serif;
    font-size: 40px;
    color: hsl(0, 0%, 100%);
    transition: all 0.3s ease;
}

.contact-title:hover {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

.contact-content {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    color: hsl(0, 0%, 100%);
    line-height: 1.6;
}

.contact-content p {
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.contact-content p:hover {
    transform: translateX(10px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.contact-info {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.contact-info:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2),
        0 0 20px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.15);
}

.contact-info p {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    color: hsl(0, 0%, 90%);
    margin-bottom: 10px;
}

.background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ppayroz {
    width: 10%;
    height: 25vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ppayroz img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px black solid;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.ppayroz:hover img {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4),
        0 0 20px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}



.titre {
    display: inline-block;
    white-space: nowrap;
    overflow: visible;
    font-family: 'roboto', sans-serif;
    font-size: 62px;
    color: hsl(0, 0%, 100%);
    position: relative;
}

.titre strong {
    position: relative;
}

.titre strong::after {
    content: '|';
    display: inline-block;
    margin-left: 3px;
    animation: cursorBlink 0.8s step-end infinite;
    font-weight: normal;
    color: hsl(0, 0%, 100%);
    opacity: 1;
}

.titre.typing-complete strong::after {
    animation: cursorBlink 0.8s step-end infinite;
}

@keyframes cursorBlink {

    0%,
    45% {
        opacity: 1;
    }

    46%,
    100% {
        opacity: 0;
    }
}

.navbar {

    position: absolute;
    padding: 50px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.navbar .navbar-link ul {
    display: flex;
}

.navbar .navbar-link ul li {
    display: flex;
    align-items: center;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0 25px;
}


.navbar {
    position: absolute;
    right: 20px;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    width: auto;
    box-sizing: border-box;
    background-color: transparent;
}

.navbar-link {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    padding: 10px 30px;
    margin: 0;
    border: 2px solid white;
    border-radius: 50px;
    background-color: transparent;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.navbar-link:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-link li {
    margin: 0 25px;
}

.navbar a,
.navbar-link li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}


.navbar-link li a::before,
.navbar-link li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.navbar-link li a::before {
    right: 50%;
}

.navbar-link li a::after {
    left: 50%;
}


.navbar-link li a:hover::before,
.navbar-link li a:hover::after {
    width: 50%;
}

.navbar-link li a:hover {
    transform: translateY(-3px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpCentered {
    from {
        opacity: 0;
        transform: translate(-50%, 30px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.ppayroz,
.titre,
.navbar,
.Présentation {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.ppayroz {
    animation-delay: 0.2s;
}

.titre {
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

.navbar {
    animation-delay: 0.6s;
}

.footer {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 1s;
}

.rectangle-presentation,
.rectangle-projet,
.rectangle-competences,
.rectangle-contact {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.8s;
}

.Présentation,
.Présentation.perso {
    opacity: 1;
    animation: none;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        background: rgba(0, 0, 0, 0.5);
        padding: 10px;
        border-radius: 50%;
        border: 2px solid white;
        transition: transform 0.3s ease;
    }

    .mobile-menu-toggle:active {
        transform: rotate(90deg);
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
    }

    .ppayroz,
    .titre {
        display: none;
    }

    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1500;

        /* Hidden state */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: scale(0.9) translateY(20px);
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);

        /* Reset margins/paddings */
        margin: 0;
        padding: 0;
        right: auto;
    }

    .navbar.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: scale(1) translateY(0);
    }

    .navbar-link {
        width: 100%;
        height: auto;
        border: none;
        background: transparent;
        backdrop-filter: none;
        padding: 0;
        display: flex;
        justify-content: center;
    }

    .navbar-link ul {
        flex-direction: column;
        gap: 40px;
        align-items: center;
        width: 100%;
    }

    .navbar-link li {
        margin: 0;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .navbar.active .navbar-link li {
        opacity: 1;
        transform: translateY(0);
    }

    .navbar.active .navbar-link li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .navbar.active .navbar-link li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .navbar.active .navbar-link li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .navbar.active .navbar-link li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .navbar.active .navbar-link li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .navbar-link li a {
        font-size: 24px;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .navbar .navbar-link ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0;
        width: 100%;
    }

    .navbar-link li {
        margin: 0;
    }

    section {
        min-height: auto;
        padding: 50px 20px;
    }

    .rectangle-presentation,
    .rectangle-projet,
    .rectangle-competences,
    .rectangle-contact {
        width: 90%;
        padding: 30px;
        animation-name: fadeInUp;
        animation-delay: 0.4s;
    }

    .section-accueil {
        padding-top: 150px;
        min-height: auto;
    }

    .hero-content {
        padding: 20px;
    }

    .hero-name {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .competences-title,
    .contact-title {
        font-size: 30px;
    }

    .contact-content {
        font-size: 16px;
    }

    .competence-item h3 {
        font-size: 20px;
    }

    .competence-item p {
        font-size: 16px;
    }

    .Présentation {
        font-size: 30px;
    }

    .Présentation.perso {
        font-size: 16px;
    }



}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    text-align: center;
    color: white;
    background-color: transparent;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}