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

#etienne {
    /* Sort le hero des gouttières de .container-fluid pour un affichage pleine largeur */
    position: relative;
    width: auto;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    padding: 90px 1.25rem 60px;
    min-height: 100vh;
    background-color: #0b1626;
    background-image: url("../images/cover-800-b08Zm_V.webp");
    background-position: top center;
    background-size: cover;
}

@media (min-width: 801px) {
    #etienne {
        background-image: url("../images/cover-1512-5z9TZUe.webp");
    }
}

#etienne:before {
    content: "";
    /* Voile sombre : garantit le contraste du texte blanc sur la photo */
    background: linear-gradient(100deg, rgba(5, 13, 24, 0.88) 0%, rgba(5, 13, 24, 0.7) 55%, rgba(5, 13, 24, 0.45) 100%);
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

#etienne .etienne-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

#etienne .hero-kicker {
    color: #8fd3f5;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

#etienne h1 {
    margin: 0 0 1.5rem 0;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}

#etienne p.hero-tagline {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #fff;
    max-width: 640px;
}

#etienne p.hero-location {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

#etienne p.hero-location .bi {
    color: #8fd3f5;
}

.hero-portrait {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

@media (min-width: 992px) {
    .hero-portrait {
        width: 260px;
        height: 260px;
    }
}

@media (min-width: 1025px) {
    #etienne {
        background-attachment: fixed;
        /* Laisse la place au menu latéral fixe */
        padding-left: calc(300px + 2.5rem);
        padding-right: 2.5rem;
    }
    #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 p.hero-tagline {
        font-size: 1.1rem;
    }
    .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;
}

.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-tagline {
    margin: 6px 0 0;
    color: #a8a9b4;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
}

/* Bouton d'appel à l'action en bas du menu latéral */
.nav-cta {
    padding: 10px 15px 30px;
}

.nav-cta .btn {
    white-space: normal;
    padding: 0.65rem 1rem;
}

/* Bouton d'appel à l'action visible sur mobile (menu latéral masqué) */
.mobile-cta {
    display: none;
    position: fixed;
    top: 14px;
    right: 66px;
    z-index: 9998;
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

@media (max-width: 1024px) {
    .mobile-cta {
        display: inline-block;
    }
}

.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-accroche {
    font-size: 1.35rem;
    font-weight: 700;
    color: #173b6c;
}

.about-atouts {
    list-style: none;
    padding: 1.5rem;
    margin: 0;
    background: #fff;
    border: 1px solid #e3eaf3;
    border-radius: 1rem;
}

.about-atouts li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.6rem 0;
}

.about-atouts li + li {
    border-top: 1px solid #eef2f7;
}

.about-atouts .bi {
    font-size: 1.3rem;
    color: #1d64c8;
    line-height: 1.2;
}

/* Technologies : badges compacts */
.technos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.technos li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: #173b6c;
}

.technos .bi {
    color: #1d64c8;
}

.technos .techno-ia {
    background: #1d64c8;
    border-color: #1d64c8;
    color: #fff;
}

.technos .techno-ia .bi {
    color: #fff;
}

/* Démo */
.demo-feature {
    background: #fff;
    border: 1px solid #e3eaf3;
}

.demo-feature > .bi {
    color: #1d64c8;
}

.demo-feature-titre {
    display: block;
    font-weight: 700;
    color: #173b6c;
    line-height: 1.3;
}

.demo-feature-detail {
    display: block;
    font-size: 0.82rem;
    color: #5a6577;
    margin-top: 0.2rem;
}

.demo-acces {
    background: #fff;
    border: 2px solid #1d64c8;
    border-radius: 1rem;
    padding: 1.75rem;
}

.demo-acces h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #173b6c;
}

/* 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;
}

/* ==========================================================================
   Vitrine — boutons contrastés et focus visibles
   (le thème Morph rend les boutons clairs avec un texte gris-bleu peu lisible)
   ========================================================================== */
.vitrine .btn-primary,
.vitrine .btn-primary:focus {
    background-color: #1d64c8;
    border: none;
    color: #fff;
    box-shadow: 0 6px 16px rgba(29, 100, 200, 0.3);
}

.vitrine .btn-primary:hover,
.vitrine .btn-primary:active {
    background-color: #174f9e;
    color: #fff;
}

.vitrine .btn-outline-light,
.vitrine .btn-outline-light:focus {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: #fff;
    box-shadow: none;
}

.vitrine .btn-outline-light:hover,
.vitrine .btn-outline-light:active {
    background-color: #fff;
    color: #0b1626;
}

.vitrine a:focus-visible,
.vitrine button:focus-visible,
.vitrine .btn:focus-visible,
.vitrine .form-control:focus-visible,
.vitrine .form-select:focus-visible {
    outline: 3px solid #f5b400;
    outline-offset: 3px;
}

/* ==========================================================================
   Vitrine — sections
   ========================================================================== */
.vitrine .section-title p {
    color: #4a5568;
    font-size: 1.05rem;
    max-width: 680px;
}

/* Placeholder de contenu à fournir — volontairement voyant */
.a-completer {
    display: inline-block;
    background: #fff3b0;
    color: #6b4e00;
    border: 2px dashed #d4a017;
    border-radius: 6px;
    padding: 0.1rem 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
}

/* Ce que je résous pour vous */
.service-card {
    background: #fff;
    border: 1px solid #e3eaf3;
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: 0 6px 20px rgba(23, 59, 108, 0.06);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #e6f0fd;
    color: #1d64c8;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card h3,
.argument h3,
.offre-card h3,
.frise-etape h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #173b6c;
    margin-bottom: 0.6rem;
}

.service-card p,
.argument p,
.offre-card p,
.frise-etape p {
    color: #3f4a5a;
    margin-bottom: 0;
}

/* Pourquoi travailler avec moi */
.argument > .bi {
    display: block;
    font-size: 1.75rem;
    color: #1d64c8;
    margin-bottom: 0.75rem;
}

/* Offres */
.offre-card {
    background: #fff;
    border: 1px solid #e3eaf3;
    border-radius: 1rem;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
}

.offre-card--mise-en-avant {
    border: 2px solid #1d64c8;
    box-shadow: 0 10px 30px rgba(29, 100, 200, 0.12);
}

.offre-card .offre-prix {
    font-size: 1.5rem;
    font-weight: 700;
    color: #173b6c;
    margin-bottom: 1rem;
}

.offre-prix-prefixe {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #5a6577;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offre-prix-suffixe {
    font-size: 1rem;
    color: #5a6577;
    margin-left: 0.15rem;
}

.offres-mention {
    margin: 2rem 0 0;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    background: #e6f0fd;
    color: #173b6c;
    font-weight: 600;
}

.offres-mention a {
    color: #1d64c8;
    text-decoration: underline;
}

/* Comment ça se passe : frise verticale sur mobile, horizontale sur grand écran */
.frise {
    list-style: none;
    margin: 0;
    padding: 0 0 0 2.75rem;
    position: relative;
}

.frise::before {
    content: "";
    position: absolute;
    left: 1.1rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 3px;
    background: #bcd3f2;
}

.frise-etape {
    position: relative;
    padding-bottom: 1.75rem;
}

.frise-etape:last-child {
    padding-bottom: 0;
}

.frise-numero {
    position: absolute;
    left: -2.75rem;
    top: -0.2rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: #1d64c8;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 5px #f5f8fd;
}

@media (min-width: 992px) {
    .frise {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        padding: 0;
    }

    .frise::before {
        left: 1.1rem;
        right: 1.1rem;
        top: 1.05rem;
        bottom: auto;
        width: auto;
        height: 3px;
    }

    .frise-etape {
        padding: 3.25rem 0 0;
    }

    .frise-numero {
        left: 0;
        top: 0;
    }
}

/* Réalisations */
.projet-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e3eaf3;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(23, 59, 108, 0.06);
}

.projet-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: top;
    border-bottom: 1px solid #e3eaf3;
}

.projet-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
}

.projet-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #173b6c;
    margin-bottom: 0.5rem;
}

.projet-resultat {
    font-weight: 700;
    color: #1d64c8;
}

.projet-body p {
    color: #3f4a5a;
}

.temoignage {
    margin: 0 0 1rem;
    padding-left: 0.9rem;
    border-left: 3px solid #bcd3f2;
    font-style: italic;
}

.projet-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

/* Badges techniques volontairement discrets */
.projet-badges li {
    font-size: 0.78rem;
    color: #4a5568;
    background: #f1f4f9;
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
}

.projet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.projet-modal .modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #173b6c;
}

.projet-modal h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #173b6c;
    margin-top: 1.25rem;
}

.projet-modal .modal-body li {
    margin-bottom: 0.5rem;
}

.projet-badges--discret {
    margin: 1.25rem 0 0;
}

.vitrine .btn-dark,
.vitrine .btn-dark:focus {
    background-color: #1b2433;
    border: none;
    color: #fff;
    box-shadow: none;
}

.vitrine .btn-dark:hover,
.vitrine .btn-dark:active {
    background-color: #000;
    color: #fff;
}

.vitrine .btn-outline-dark,
.vitrine .btn-outline-dark:focus {
    background-color: transparent;
    border: 2px solid #1b2433;
    color: #1b2433;
    box-shadow: none;
}

.vitrine .btn-outline-dark:hover,
.vitrine .btn-outline-dark:active {
    background-color: #1b2433;
    color: #fff;
}

.projet-actions .btn {
    padding: 0.55rem 1.1rem;
}

/* Les modales doivent passer au-dessus du menu latéral fixe (z-index 9997) */
.vitrine .modal-backdrop {
    z-index: 10040;
}

.vitrine .modal {
    z-index: 10050;
}

/* Texte courant plus contrasté que celui du thème Morph (#7b8ab8) */
body.vitrine {
    --bs-body-color: #36404f;
    --bs-body-color-rgb: 54, 64, 79;
    --bs-secondary-color: #4a5568;
    color: var(--bs-body-color);
}

.vitrine .text-muted {
    color: #4a5568 !important;
}

.vitrine .projet-modal .modal-content {
    background-color: #fff;
    color: #36404f;
    backdrop-filter: none;
}

/* Contact */
.contact-promesse {
    font-weight: 600;
    color: #173b6c !important;
}

.contact-form,
.contact-alternatives {
    background: #fff;
    border: 1px solid #e3eaf3;
    border-radius: 1rem;
    padding: 1.75rem;
}

.vitrine .contact-form .form-label,
.vitrine .demo-acces .form-label {
    font-weight: 700;
    color: #173b6c;
}

.vitrine .form-control::placeholder {
    color: #6b7584;
}
