.justify-text {
    text-align: justify;
}

#etienne {
    /* Sort le hero des gouttières de .container-fluid pour un affichage pleine largeur */
    width: auto;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    padding: 60px 1.25rem;
    min-height: 100vh;
    background: url("../images/cover_front-Njq-kz4.jpg") top center;
    background-size: cover;
}

#etienne:before {
    content: "";
    background: rgba(5, 13, 24, 0.2);
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

#etienne .etienne-container {
    position: relative;
    z-index: 2;
    min-width: 300px;
}

#etienne h1 {
    margin: 0 0 10px 0;
    font-size: 64px;
    font-weight: 700;
    line-height: 56px;
    color: #fff;
}

#etienne p {
    color: #fff;
    margin-bottom: 50px;
    font-size: 26px;
    font-family: "Poppins", sans-serif;
}

#etienne p span {
    color: #fff;
    padding-bottom: 4px;
    letter-spacing: 1px;
    border-bottom: 3px solid #149ddd;
}

#etienne p.hero-tagline {
    font-size: 18px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.88);
    max-width: 520px;
}

@media (min-width: 1025px) {
    #etienne {
        background-attachment: fixed;
    }
    #main {
        margin-left: 300px;
    }
}

@media (max-width: 1024px) {
    #header-navbar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 9999;
    }
    #header-navbar.mobile-open {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    #etienne h1 {
        font-size: 28px;
        line-height: 36px;
    }
    #etienne h2 {
        font-size: 18px;
        line-height: 24px;
        margin-bottom: 30px;
    }
    .hero-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
        margin-right: 0 !important;
    }
}

section {
    padding: 60px 0;
    overflow: hidden;
}

a {
    text-decoration: none;
}

.section-bg {
    background: #f5f8fd;
}

.section-title {
    padding-bottom: 30px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
    color: #173b6c;
}

.section-title h2::after {
    content: "";
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: #149ddd;
    bottom: 0;
    left: 0;
}

.section-title p {
    margin-bottom: 0;
}

/* Section Technologies : titres en blanc sur fond sombre */
#technologies .section-title h2 {
    color: #fff;
    letter-spacing: 1px;
}

#technologies .section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

#technologies .section-title p {
    color: rgba(255, 255, 255, 0.6);
}

.profile img {
    margin: 15px auto;
    display: block;
    width: 120px;
    border: 8px solid #2c2f3f;
}

.profile-name {
    font-size: 24px;
    margin: 0;
    padding: 0;
    font-weight: 600;
    -moz-text-align-last: center;
    text-align-last: center;
    font-family: "Poppins", sans-serif;
}

.profile-name a,
.profile-name a:hover {
    color: #fff;
    text-decoration: none;
}

.profile .social-links a {
    font-size: 18px;
    display: inline-block;
    background: #212431;
    color: #fff;
    line-height: 1;
    padding: 8px 0;
    margin-right: 4px;
    border-radius: 50%;
    text-align: center;
    width: 36px;
    height: 36px;
    transition: 0.3s;
}

.profile .social-links a:hover {
    background: #149ddd;
    color: #fff;
    text-decoration: none;
}

#header-navbar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    transition: all ease-in-out 0.5s;
    z-index: 9997;
    transition: all 0.5s;
    padding: 0 15px;
    background: #040b14;
    overflow-y: auto;
}

.nav-menu {
    padding: 30px 0 0 0;
}

.nav-menu * {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu>ul>li {
    position: relative;
    white-space: nowrap;
}

.nav-menu a,
.nav-menu a:focus {
    display: flex;
    align-items: center;
    color: #a8a9b4;
    padding: 12px 15px;
    margin-bottom: 8px;
    transition: 0.3s;
    font-size: 15px;
}

.nav-menu a i,
.nav-menu a:focus i {
    font-size: 24px;
    padding-right: 8px;
    color: #6f7180;
}

.nav-menu a:hover,
.nav-menu .active,
.nav-menu .active:focus,
.nav-menu li:hover>a {
    text-decoration: none;
    color: #fff;
}

.nav-menu a:hover i,
.nav-menu .active i,
.nav-menu .active:focus i,
.nav-menu li:hover>a i {
    color: #149ddd;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    position: fixed;
    right: 15px;
    top: 15px;
    z-index: 9998;
    border: 0;
    font-size: 24px;
    transition: all 0.4s;
    outline: none !important;
    background-color: #149ddd;
    color: #fff;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    border-radius: 50px;
    cursor: pointer;
}

.mobile-nav-active {
    overflow: hidden;
}

.mobile-nav-active #header {
    left: 0;
}

#dev-typed {
    font-size: 24px;
    font-weight: bold;
    color: white;
    opacity: 70%;
    margin: 20px;
}

/* À propos */
.about-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 4px solid #149ddd;
}

/* Démo */
.demo-feature {
    background: #f8f9fa;
    transition: background 0.2s;
}

.demo-feature:hover {
    background: #e9f0ff;
}

/* Technologies */
.tech-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.2);
}

.tech-icon i {
    color: #0d6efd;
    transition: color 0.3s ease, transform 0.3s ease;
}

.tech-card:hover .tech-icon i {
    color: #61dafb;
    transform: scale(1.1);
}

/* Mobile nav toggle — caché par défaut (desktop), visible sur mobile */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 10000;
    background: #149ddd;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

@media (max-width: 1024px) {
    .mobile-nav-toggle {
        display: flex;
    }
}

.mobile-nav-toggle .bi {
    font-size: 1.4rem;
    color: #fff;
    line-height: 1;
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 300px;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.nav-overlay.active {
    display: block;
}
