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

/* Ajout de la typographie Poppins pour les paragraphes */
p {
    font-family: 'Poppins', sans-serif;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #FFFAF0;
    color: #333;
}

/* Header */
header {
    background-color: #FFFAF0;
    padding: 20px 50px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #2C26E8;
}

.btn-contact {
    background-color: #2C26E8;
    color: white !important;
    padding: 10px 25px;
    transition: background-color 0.3s;
    box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.30);
}

.btn-contact:hover {
    background-color: #0000CC;
}

/* Burger Menu - caché par défaut */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    margin-left: auto;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #2C26E8;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Hero mobile - visible sur desktop ET mobile */
.hero-mobile {
    display: block;
    width: 100%;
    margin-bottom: 100px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Centrer .hero-mobile img horizontalement */
.hero-mobile img {
    display: block;
    margin: 0 auto;
    width: 80%;
    height: auto;
    object-fit: cover;
}

/* Main Content */
main {
    margin-top: 100px;
    padding: 0 50px;
}

/* Hero Section - désactivée */
.hero {
    display: none;
}

/* About Section */
.about {
    max-width: 1400px;
    margin: 0 auto 100px;
    position: relative;
}

.about-title {
    margin-bottom: 40px;
    margin-left: 80px;
}

.about-title .blue {
    font-family: 'Bayon', sans-serif;
    font-size: 50px;
    font-weight: normal;
    color: #2C26E8;
    text-transform: lowercase;
    display: block;
    margin-bottom: -60px;
}

.about-title .script {
    font-family: 'Caveat', cursive;
    font-size: 50px;
    color: #333;
    font-weight: 400;
    margin-left: 80px;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 1100px;
    margin-left: 80px;
    font-family: 'Poppins';
}

/* Alignement centré pour les icônes et le texte dans la section skills */
.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 80px;
    margin-top: 50px;
}

.skill-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Bayon', sans-serif;
    font-size: 18px;
    color: #0000FF;
    text-transform: uppercase;
    background-color: transparent;
    border: none;
    cursor: default;
}

.skill-icon {
    width: 50px;
    height: 100%;
}

.skill-text {
    font-family: "Bayon", sans-serif;
    font-size: 20px;
    position: relative;
    left: -15px;
}

.contact-section {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 100px;
    margin-left: 80px;
    gap: 150px;
    font-family: 'Poppins';
}

.contact-text {
    max-width: 60%;
    line-height: 1.6;
}

.contact-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.star-button {
    border: 2px solid #0000FF;
    padding: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
    font-family: "Bayon", sans-serif;
    font-size: 20px;
    box-shadow: 4px 4px 6.8px rgba(0, 0, 0, 0.35);
}

.star-button:hover {
    transform: scale(1.1) rotate(5deg);
}

.star-text {
    font-family: 'Bayon', sans-serif;
    position: absolute;
    color: white;
    font-weight: normal;
    font-size: 16px;
    text-align: center;
    text-transform: uppercase;
    max-width: 120px;
    line-height: 1.3;
}

/* Footer */
footer {
    background-color: #2C26E8;
    color: white;
    padding: 15px 50px;
    margin-top: 100px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.social-icon:hover {
    opacity: 0.7;
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.connexion-link {
    color: #2C26E8;
    text-decoration: none;
    font-size: 14px;
    margin-left: 0px;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .portfolio {
        font-size: 80px;
    }

    .louanne {
        font-size: 40px;
    }

    .contact-section {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    body {
        background-color: #FFFAF0;
    }

    header {
        padding: 15px 20px;
    }

    /* Afficher le menu burger */
    .burger-menu {
        display: flex;
    }

    /* Menu navigation en mobile */
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #FFFAF0;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        gap: 30px;
        transition: right 0.3s ease;
    }

    .nav-menu.active {
        right: 0;
        display: flex;
    }

    .nav-menu a {
        font-size: 18px;
    }

    /* Hero mobile en responsive */
    .hero-mobile {
        margin-bottom: 40px;
        margin-top: 100px;
    }

    main {
        margin-top: 70px;
        padding: 0 20px;
    }

    .about {
        margin: 20px auto;
        padding: 0 20px;
    }

    .about-title {
        margin-left: 0;
    }

    .about-title .blue {
        font-size: 30px;
        margin-bottom: -30px;
    }

    .about-title .script {
        font-size: 30px;
        margin-left: 40px;
    }

    .about-text {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 50px;
        margin-left: 0;
    }

    .skills {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        justify-content: center;
        margin-top: 20px;
        margin-bottom: 50px;
    }

    .skill-box {
        align-items: center;
        gap: 5px;
    }

    .skill-icon {
        width: 30px;
    }

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

    .contact-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 20px auto;
        padding: 0 20px;
        margin-left: 0;
        gap: 30px;
    }

    .contact-text {
        max-width: 100%;
        font-size: 14px;
        text-align: left;
    }

    .star-button {
        font-size: 16px;
        padding: 10px 15px;
    }

    footer {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .footer-container {
        gap: 15px;
        flex-direction: column;
    }

    .social-links {
        justify-content: center;
        gap: 10px;
    }

    .footer-text p {
        font-size: 12px;
    }

    .footer-links a {
        font-size: 12px;
    }

    .portfolio::before,
    .portfolio::after {
        width: 30px;
        height: 60px;
        background-size: 40px 40px;
    }

    p {
        font-size: 14px !important;
    }
}