/* Styles pour le menu hamburger, l'animation des Laure et les effets hacker */

/* Styles pour la galerie Laure dans la navbar */
.navbar-laure-gallery {
    display: flex;
    align-items: center;
    margin-left: 20px;
    height: 50px;
}

.navbar-laure-gallery .laure-item {
    width: 40px;
    height: 40px;
    margin: 0 5px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.navbar-laure-gallery .laure-item:hover {
    transform: scale(1.1);
}

.navbar-laure-gallery .laure-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.navbar-laure-gallery .laure-item:hover img {
    transform: scale(1.1);
    box-shadow: 0 0 8px var(--main-decor-color);
}

.navbar-laure-gallery .laure-item .score {
    position: absolute;
    bottom: -3px;
    right: -3px;
    background-color: var(--main-decor-color);
    color: white;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    font-size: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    opacity: 0.9;
    z-index: 1;
}

/* Styles pour les items Laure */
.laure-item {
    width: 80px;
    margin: 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.laure-item:hover {
    transform: scale(1.05);
}

.laure-item img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.laure-item img:hover {
    box-shadow: 0 0 15px var(--main-decor-color);
}

/* Styles pour la nav-bar */
.nav-bar {
    list-style: none;
    position: relative;
    display: inline-flex;
}

/* Animation pour les liens de navigation */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translatex(50px);
    }
    to {
        opacity: 1;
        transform: translatex(0);
    }
}

/* Styles pour le menu hamburger */
.hamburger {
    display: none;
}

.hamburger div {
    width: 30px;
    height: 3px;
    background: #5d4037;
    margin: 5px;
    transition: all 0.3s ease;
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Styles pour le footer */
footer {
    width: 100%;
    height: 180%;
    background-color: var(--main-header-background);
    position: relative;
}

.copyright {
    color: #fff;
    font-size: 1.2rem;
    line-height: 40px;
    font-family: var(--main-font-family);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-image {
    width: 100%;
    overflow: hidden;
    max-height: 200%;
    position: relative;
}

@media only screen and (min-width: 1025px) {
    .footer-image {
        max-height: 800px;
    }

    .footer-image img {
        object-position: center bottom;
        height: auto;
        max-height: 100%;
        object-fit: cover;
    }

    .footer-text {
        height: 800px;
    }
}

.footer-image img {
    width: 100%;
    object-fit: cover;
    object-position: center bottom;
    max-height: 100vh;
    filter: sepia(80%) hue-rotate(330deg) saturate(120%) brightness(90%);
}

.footer-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(93, 64, 55, 0.2), rgba(161, 136, 127, 0.4));
    pointer-events: none;
}

.footer-text {
    padding: 20px 0;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    color: #f8f3e9;
    text-shadow: 0 0 20px var(--main-decor-color);
}

.footer-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
    gap: 20px;
}

.footer-contact h3 {
    color: #f8f3e9;
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--main-decor-color);
    position: relative;
    display: inline-block;
}

.footer-contact h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: var(--main-decor-color);
    transform: scaleX(0.7);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.footer-contact h3:hover::after {
    transform: scaleX(1);
}

.footer-contact p {
    color: #f8f3e9;
    font-size: 0.9rem;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    text-shadow: 0 0 20px var(--main-decor-color);
}

.footer-contact i {
    margin-right: 8px;
    color: var(--main-decor-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
}

.contact-info p {
    text-align: center;
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.contact-info p:hover {
    transform: translateX(5px);
}

.footer-social-media {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.footer-social-media a {
    font-size: 1.8rem;
    margin: 0 10px;
    color: #f8f3e9;
    transition: all 0.3s ease;
}

.footer-social-media a:hover {
    transform: scale(1.2);
    color: var(--main-decor-color);
}

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

.copyright a {
    color: #fff;
    font-size: 1rem;
    letter-spacing: 1px;
    text-decoration: none;
}

.copyright a:hover {
    color: var(--main-decor-color);
}

/* Styles pour les médias queries */
@media only screen and (max-width: 1024px) {
    /* Ajustements pour le footer sur tablette */
    .footer-image {
        max-height: 600px;
    }
    
    .footer-text {
        height: 600px;
    }
}

@media only screen and (max-width: 768px) {
    /* Menu hamburger pour mobile */
    .hamburger {
        position: absolute;
        top: 17px;
        right: 20px;
        display: block;
        cursor: pointer;
        z-index: 101;
    }
    
    .nav-bar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        height: 100vh;
        background: #f8f3e9;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.5s ease-in;
        z-index: 100;
    }
    
    .nav-bar li {
        margin: 15px 0;
        opacity: 0;
    }
    
    /* Styles spécifiques pour la photo de profil sur mobile */
    .profile-picture {
        width: 200px;
        height: 200px;
        max-width: 80%;
        max-height: unset;
        aspect-ratio: 1/1;
    }
    
    .profile-picture img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        aspect-ratio: 1/1;
    }
    
    /* Classe active pour le menu mobile */
    .nav-active {
        right: 0;
    }
    
    /* Ajustements du footer pour mobile */
    .footer-image {
        max-height: 500px;
    }
    
    .footer-text {
        height: 500px;
        padding: 10px 0;
    }
    
    .footer-contact {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .footer-contact p {
        font-size: 0.8rem;
    }
}

/* Styles pour l'effet typing */
.typing-effect {
    position: relative;
    display: inline-block;
}

.typing-effect::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: var(--main-decor-color);
}

.typing-active::after {
    animation: typing-cursor 0.8s infinite;
}

@keyframes typing-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Animation modifiée pour mobile (affichage inline par défaut) */
@media (min-width: 769px) {
    .typing-active::after {
        animation: typing-cursor 0.8s infinite, retype 8s 1s infinite;
    }
    
    @keyframes retype {
        0%, 20% { content: 'Typescript'; }
        25% { content: 'Typescrip'; }
        30% { content: 'Typescri'; }
        45% { content: 'Typescr'; }
        50% { content: 'Types'; }
        65% { content: 'Type'; }
        70% { content: 'Typ'; }
        75% { content: 'Ty'; }
        90% { content: 'T'; }
        95%, 100% { content: ''; }
    }
}

/* Effet typewriter pour le titre */
.typewriter h3 {
  overflow: hidden;
  border-right: .15em solid var(--main-decor-color);
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: .15em;
  width: 0; /* Commence avec une largeur nulle pour l'animation */
}

/* Animation native pour le typewriter */
.typewriter h3.typing-animation {
  animation: typing 3.5s steps(40, end) forwards, blink-caret .75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--main-decor-color); }
}

/* Styles pour l'effet hacker de la photo de profil */
.matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.7;
    z-index: 5;
}

/* Styles pour la photo de profil */
.profile-picture {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--main-decor-color);
    transition: all 0.5s ease;
    cursor: pointer;
    aspect-ratio: 1/1;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 0;
    transition: all 0.5s ease;
    display: block;
}

.profile-picture:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--main-decor-color);
}

.profile-picture:hover img {
    transform: scale(1.1);
}

/* Animations des icônes sociales */
.social-media a i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-media a i.hover-effect {
    transform: scale(1.2);
    color: var(--main-decor-color);
}