@import url(https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap);
@import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css);

/* Général */

*{
    box-sizing: border-box;
}

body#content{
    width: 100%;
    font-family: 'Instrument Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url("../images/bgt.webp");
    background-color: #14121d;
    background-repeat: no-repeat;
    background-size: 100%;
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
}

body#home{
    width: 100%;
    font-family: 'Instrument Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #14121d;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
}

/* Galaxy background container - fits first viewport */
body#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 165vh;
    background-image: url("../images/bg1.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat; 
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    body#home::before {
        background-size: cover;
        background-position: center center;
    }
    
    p {
        margin-left: 20px;
        margin-right: 20px;
    }
    
    .img {
        margin-left: 20px;
        margin-right: 20px;
        max-width: calc(100% - 40px);
    }
}

body#home > * {
    position: relative;
    z-index: 1;
}

p {
    margin-left: 130px;
    font-weight: 300;
    letter-spacing: .8px;
    line-height: 25px;
    font-size: 14px;
    color: #fff;
}

.img {
    margin-left: 40px;
    display: block;
    max-width: 80%;
    max-height: auto;
}

/*Titre*/

.title{
    display: flex;
    justify-content: center;
    color: #ffffffd4
}

h1 {
    padding: 0px 30px;
    margin-top: 30px;
    text-align: center;
    width:fit-content;
    color: #ffffffd4;
}

h2 {
    margin-top: 30px;
    font-size: 80px;
    text-align: center;
    color: #ffffffd4;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 40px 0;
    padding-top: 80px;
    z-index: 1;
}

.hero-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    display: flex;
    padding-top: 80px;
    flex-direction: column;
    gap: 40px;
}

.hero-welcome {
    font-size: 200px;
    font-weight: 900;
    color: #fff;
    margin: 0;
    padding: 0;
    line-height: 1;
    text-align: left;
    font-family: 'Instrument Sans', sans-serif;
    letter-spacing: -2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    min-height: 150px;
    display: block;
    z-index: 1;
}

.word-animation {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(150px);
    white-space: nowrap;
    animation: wordCycle1 6s infinite;
    will-change: transform, opacity;
    --animation-distance: 150px;
}

.word-1 {
    animation-delay: 0s;
    animation-name: wordCycle1;
}

.word-2 {
    animation-delay: 1.5s;
    animation-name: wordCycle2;
}

.word-3 {
    animation-delay: 3s;
    animation-name: wordCycle3;
}

.word-4 {
    animation-delay: 4.5s;
    animation-name: wordCycle4;
}

@keyframes wordCycle1 {
    0% {
        opacity: 0;
        transform: translateY(-150px);
    }
    8% {
        opacity: 1;
        transform: translateY(0);
    }
    17% {
        opacity: 1;
        transform: translateY(0);
    }
    25% {
        opacity: 0;
        transform: translateY(-150px);
    }
    100% {
        opacity: 0;
        transform: translateY(-150px);
    }
}

@keyframes wordCycle2 {
    0% {
        opacity: 0;
        transform: translateY(150px);
    }
    8% {
        opacity: 1;
        transform: translateY(0);
    }
    17% {
        opacity: 1;
        transform: translateY(0);
    }
    25% {
        opacity: 0;
        transform: translateY(-150px);
    }
    100% {
        opacity: 0;
        transform: translateY(-150px);
    }
}

@keyframes wordCycle3 {
    0% {
        opacity: 0;
        transform: translateY(150px);
    }
    8% {
        opacity: 1;
        transform: translateY(0);
    }
    17% {
        opacity: 1;
        transform: translateY(0);
    }
    25% {
        opacity: 0;
        transform: translateY(-150px);
    }
    100% {
        opacity: 0;
        transform: translateY(-150px);
    }
}

@keyframes wordCycle4 {
    0% {
        opacity: 0;
        transform: translateY(150px);
    }
    8% {
        opacity: 1;
        transform: translateY(0);
    }
    17% {
        opacity: 1;
        transform: translateY(0);
    }
    25% {
        opacity: 0;
        transform: translateY(150px);
    }
    100% {
        opacity: 0;
        transform: translateY(150px);
    }
}

@media (max-width: 1200px) {
    .hero-welcome {
        font-size: 100px;
    }
}

@media (max-width: 992px) {
    .hero-welcome {
        font-size: 80px;
    }
}

/* Greeting Section */
.greeting-section {
    width: 100%;
    padding: 0px 40px 100px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-greeting {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    text-align: center;
}

.greeting-text {
    font-size: 84px;
    font-weight: 900;
    color: #fff;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    text-align: center;
    font-family: 'Instrument Sans', sans-serif;
}

.nickname-text {
    font-size: 84px;
    font-weight: 900;
    color: #fff;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    text-align: center;
    font-family: 'Instrument Sans', sans-serif;
    letter-spacing: 0.5px;
}


.title h1{
    border-left: 1px solid #fff; 
    border-right: 1px solid #fff;
}

#home-title{
    font-size: 80px;
    /*margin-top: 100px;*/
    color: #ffffffd4;
    font-family: 'Instrument Sans', sans-serif;
}

h3 {
    font-size: 20px;
    color:#fff;
}

#intro{
    display: flex;
    justify-content: center;
}

#intro p{
    margin-left: 0px;
}


/* Header & Navigation */

.main-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 15px 40px;
    width: 100%;
    position: relative;
    z-index: 10000;
    background: transparent;
    gap: 20px;
    pointer-events: auto;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
    position: relative;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

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

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

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

/*.header-logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10002;
    pointer-events: auto;
}*/

.logo-image {
    height: 120px;
    width: auto;
    object-fit: contain;
    display: block;
}

.main-nav {
    margin-top: 0;
    padding: 0;
    text-align: center;
    width: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 102;
    pointer-events: auto;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.main-nav li {
    margin: 0;
    padding: 0 5px 0 5px;
    border: none;
    display: flex;
    align-items: center;
}

.nav-separator {
    color: #fff;
    font-size: 32px;
    font-weight: 400;
    padding: 0 16px;
    opacity: 0.8;
}

.main-nav a {
    text-decoration: none;
    color: #fff;
    font-size: 32px;
    font-weight: 500;
    padding: 5px 0;
    transition: all 0.3s ease;
    opacity: 0.85;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
}

.nav-link:hover {
    font-weight: 600;
    opacity: 1;
}

.nav-link.nav-active {
    font-weight: 900;
    opacity: 1;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Mobile Sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-sidebar {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #14121d;
    backdrop-filter: blur(10px);
    z-index: 9999;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: auto;
}

.mobile-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #14121d;
    z-index: -1;
}

.mobile-sidebar.active {
    right: 0;
}

.sidebar-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
}

.sidebar-close:hover {
    transform: rotate(90deg);
}

.sidebar-close span {
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.sidebar-close span:nth-child(1) {
    transform: rotate(45deg);
}

.sidebar-close span:nth-child(2) {
    transform: rotate(-45deg);
}

.sidebar-nav {
    padding: 80px 30px 30px;
    height: 100%;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-nav li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav a {
    display: block;
    padding: 20px 0;
    color: #fff;
    font-size: 20px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Instrument Sans', sans-serif;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
}

.sidebar-nav a:hover,
.sidebar-nav a.nav-active {
    font-weight: 700;
    color: #fff;
    padding-left: 15px;
}

/* Formulaire */

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    position: relative;
}

form{
    margin-top: 30px;
}

.formstyle {
    display: block;
    font-size: 11px;
    line-height: 1.78;
    color: #555;
    width: 70%;
    margin-left: 100px;
    padding: 8px 14px;
    background-color: #ffffff15;
    border: 1px solid #fff;
    border-radius: 0;
    transition: border-color 0.3s ease;
}

.formstyle:focus {
    border-color: #6d01fb;
    box-shadow: 0 0 10px #6d01fb29;
}

.btn{
    text-decoration: none;
    margin-left: 100px;
    color: #fff;
    background-color: transparent;
    border: solid 1px;
    border-color: #fff;
    padding: 10px 16px;
    font-size: 14px;
    line-height: 1.33333;
    border-radius: 0;
    transition: background-color 0.2s ease;
    margin-top: 20px;
}

.btn:hover {
    color: #fff;
    background-color: #ffffff59;
    border-color: #fff;
}


.fa-icon {
    transition: color 0.3s ease, transform 0.3s ease;
    margin-right: 10px;
}

.fa-icon:hover {
    color: #6d01fb;
    transform: scale(1.2);
}



ul {
    list-style-type: none;
    font-size: 14px;
    font-weight: 300;
    margin-top: 40px;
    padding-inline-start: 0px;
}

li {
    margin-top: 5px;
    color: #fff;
}

#socials a{
    text-decoration: none;
    color: #fff ;
}

/* Organisation des boxs de contenue */

.content-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.content-column-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
    box-sizing: border-box;
    word-wrap: break-word;
}

.content-column-7 {
    flex: 0 0 58.3333%;
    max-width: 58.3333%;
    padding: 0 15px;
    box-sizing: border-box;
    word-wrap: break-word;
}

.content-column-5 {
    flex: 0 0 41.6667%;
    max-width: 41.6667%;
    padding: 0 15px;
    box-sizing: border-box;
    word-wrap: break-word;
}
.content-column-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 15px;
    box-sizing: border-box;
    word-wrap: break-word;
}
.content-column-2 {
    flex: 0 0 16.6667%;
    max-width: 16.6667%;
    padding: 0 15px;
    box-sizing: border-box;
    word-wrap: break-word;
}
.content-column-8 {
    flex: 0 0 66.6667%;
    max-width: 66.6667%;
    padding: 0 15px;
    box-sizing: border-box;
    word-wrap: break-word;
}
.content-column-4 {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    padding: 0 15px;
    box-sizing: border-box;
    margin: 30px 0px;
}

/* Works */

.img-container{
    text-align: center;
}

.card-img{
    display: block;
    max-width: 100%;
    height: auto;
}

.card-container{
    background-color: #1b2447;
    padding: 2rem 5rem;
    position: relative;
    width: 80%;
    margin: -8em auto 20px;
}

.card-container .btn{
    margin-left: 0px;
    position: relative;
}

.nulla-text{
    font-size: 11px;
    line-height: 1.9;
    width: 100%;
    color:#fff;
    margin:0px;
    padding-bottom:30px;
}
.black-image-mask{
    filter: contrast(200%) grayscale(100%);
    transition: all .1s linear;
}

.black-image-mask:hover{
    filter: none;
}

.display-img-haut{
    width: 300px;
    padding: 10px;
}

.display-img-larg{
    height: 400px;
    padding: 10px;
}

#illu {
    padding-top: 50px;
    padding-bottom: 50px;
}

#film {
    padding-top: 50px;
    padding-bottom: 50px;
}

#film img:hover{
    height: 420px;
}

#dessin{
    padding-top: 50px;
    padding-bottom: 50px;
}

/* Works discover */

.card {
  /* Add shadows to create the "card" effect */
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  transition: 0.3s;
  background-color: #fff;
}

/* On mouse-over, add a deeper shadow */
.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

/* Add some padding inside the card container */
.container {
  padding: 2px 16px;
}

/* Profil image sizing */

.pdp {
    width : 50%;
}

/* About Section - Two Column Layout */

.about-section {
    width: 100%;
    padding: 300px 0 80px;
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    box-sizing: border-box;
}

.about-content {
    display: flex;
    position: relative;
    text-align: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    font-family: 'Instrument Sans', sans-serif;
    justify-content: space-between;
}

/* Left Column: Text Content */
.about-text-column {
    flex: 1;
    min-width: 300px;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-text {
    margin: 0 0 32px 0;
    padding-bottom: 30px;
    font-size: 22px;
    line-height: 1.2;
    color: #ffffff;
    font-weight: 300;
    font-family: 'Instrument Sans', sans-serif;
    text-align: left;
    width: 109%;
}

/* CTA Button */
.cv-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background-color: #e8e8e8;
    color: #2a2a2a;
    text-decoration: none;
    border-radius: 50px;
    font-size: 25px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

.cv-icon {
    width: 32px;
    height: 32px;
    margin-top: 8px;
    display: inline-block;
}

.mail-icon {
    width: 20px;
    height: auto;
    margin : 8px 8px 0 8px ;
}

.cv-button .fa {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.cv-button:hover {
    background-color: #f5f5f5;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cv-button:hover .fa {
    transform: translateY(2px);
}

/* Right Column: Avatar */
.about-image-column {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 300px;
    margin-right: -20px;
}

.about-avatar {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-avatar:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Responsive: Tablet and Below */
@media (max-width: 1024px) {
    .hero-welcome {
        font-size: 100px;
    }

    .greeting-text {
        font-size: 64px;
    }

    .nickname-text {
        font-size: 64px;
    }

    .about-container {
        padding: 0 30px;
    }

    .about-text-column {
        max-width: 600px;
    }
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    .main-header {
        padding: 15px 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .header-logo {
        position: relative;
        z-index: 102;
    }

    .logo-image {
        height: 60px;
    }

    .hamburger-menu {
        display: flex;
    }

    .main-nav {
        display: none;
    }

    .mobile-sidebar {
        display: block;
    }

    .sidebar-overlay {
        display: block;
    }

    .hero-section {
        padding: 20px 20px 0;
        min-height: 70vh;
    }

    .hero-content {
        padding: 0;
    }

    .hero-welcome {
        font-size: 50px;
        min-height: 80px;
    }

    .word-animation {
        font-size: 50px;
    }

    .word-1,
    .word-2,
    .word-3,
    .word-4 {
        --animation-distance: 100px;
    }

    .greeting-section {
        padding: 0px 20px 15px;
        margin-top: -30px;
        background-size: cover;
        background-position: center top;
    }

    .greeting-text {
        font-size: 48px;
    }

    .nickname-text {
        font-size: 48px;
    }

    .about-section {
        padding: 20px 0 60px;
    }

    .about-container {
        padding: 0 20px;
        max-width: 100%;
    }
    
    .about-content {
        flex-direction: column;
        gap: 40px;
        align-items: stretch;
    }
    
    .about-text-column {
        max-width: 100%;
        align-items: center;
        padding: 0 10px;
    }
    
    .about-text {
        font-size: 18px;
        text-align: left;
        margin-bottom: 30px;
    }

    .cv-button {
        font-size: 14px;
        padding: 12px 24px;
        margin-top: 15px;
        align-self: center;
    }
    
    .about-image-column {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }
    
    .about-avatar {
        max-width: 100%;
        max-width: 350px;
    }

    .footer-text{
    font-size: 22px;
    }

    .footer-info-row {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
        position: absolute;
        top: 8px;
        left: 16px;
    }

    .footer-info-block {
        padding-left: 0;
        max-width: 100%;
    }

    .decorative-footer::before {
        height: 250px;
        filter: blur(40px);
    }
}

/* Responsive: Small Mobile */
@media (max-width: 480px) {
    .main-header {
        padding: 12px 15px;
    }

    .logo-image {
        height: 50px;
    }

    .nav-separator {
        padding: 0 6px;
        font-size: 16px;
    }

    .main-nav a {
        font-size: 16px;
    }

    .hero-section {
        padding: 15px 15px 0;
        min-height: 60vh;
    }

    .hero-welcome {
        font-size: 36px;
        min-height: 60px;
    }

    .word-animation {
        font-size: 36px;
    }

    .word-1,
    .word-2,
    .word-3,
    .word-4 {
        --animation-distance: 80px;
    }

    .greeting-section {
        padding: 0px 15px 10px;
        margin-top: -20px;
        background-size: cover;
        background-position: center top;
    }

    .greeting-text {
        font-size: 36px;
    }

    .nickname-text {
        font-size: 36px;
    }

    .about-section {
        padding: 15px 0 40px;
    }

    .about-container {
        padding: 0 15px;
        max-width: 100%;
    }

    .about-content {
        gap: 30px;
    }
        
    /* Maintain order: Image first, then text, then button */
    .about-image-column {
        order: 1;
    }
    
    .about-text-column {
        order: 2;
        display: flex;
        flex-direction: column;
    }

    .about-text {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .cv-button {
        font-size: 13px;
        padding: 10px 20px;
        margin-top: 10px;
        align-self: center;
    }

    .about-avatar {
        max-width: 100%;
        max-width: 280px;
    }

    .footer-info-row {
        gap: 25px;
        padding: 0 15px;
    }

    .footer-heading {
        font-size: 14px;
    }

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

    .footer-accent-star {
        right: 5%;
        bottom: 15%;
    }

    .footer-accent-star img {
        width: 40px;
        height: 40px;
    }

    .decorative-footer::before {
        height: 200px;
        filter: blur(35px);
    }
}

/* Responsive: Extra Small Mobile */
@media (max-width: 360px) {
    .hero-welcome {
        font-size: 28px;
        min-height: 50px;
    }

    .word-animation {
        font-size: 28px;
    }

    .greeting-text {
        font-size: 28px;
    }

    .nickname-text {
        font-size: 28px;
    }

    .about-text {
        font-size: 14px;
    }

    .cv-button {
        font-size: 12px;
        padding: 8px 16px;
        align-self: center;
    }
    
    .decorative-footer {
        padding: 25px 0 0;
    }
    
    .decorative-footer .about-content {
        padding: 0 12px;
    }
    
    .footer-info-row {
        gap: 20px;
        padding: 0;
        margin-bottom: 20px;
    }
    
    .footer-info-block {
        padding-left: 0;
    }

    .footer-heading {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .footer-text {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .footer-image-wrapper {
        min-height: 100px;
        margin-top: 0;
        margin-bottom: 0;
        padding-bottom: 0;
        align-items: flex-end;
    }

    
    .footer-accent-star {
        font-size: 14px;
        right: 5%;
        bottom: 10%;
    }
    
    .footer-image-wrapper::before {
        width: 100%;
        height: 80px;
    }
    
    .footer-image-wrapper::after {
        width: 75%;
        height: 60px;
        bottom: 15px;
    }
}

/* Decorative Footer Section */

.decorative-footer {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.decorative-footer .about-content {
    padding: 0;
    max-width: 100%;
    margin: 0;
    padding-bottom: 0;
}

.decorative-footer .footer-image-wrapper {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.footer-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Top Info Row */
.footer-info-row {
    position: absolute;
    top: 80px;
    left: 60px; 
    z-index: 10;
    
    display: flex;
    justify-content: flex-start; 
    gap: 100px; 
    flex-wrap: wrap;
    width: calc(100% - 120px); 
}


.footer-info-block {
    text-align: left;
    flex: 0 0 auto;      
    min-width: 200px;   
    max-width: 350px; 
}

.footer-heading {
    text-align: left;
    font-size: 30px;
    font-weight: 500;
    color: #e8e8e8;
    margin: 0 0 16px 0;
    letter-spacing: 0.5px;
    font-family: 'Instrument Sans', sans-serif;
}

.footer-text {
    text-align: left;
    font-size: 20px;
    line-height: 1.7;
    color: #d0d0d0;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.3px;
    font-family: 'Instrument Sans', sans-serif;
}

/* Decorative Divider */
.footer-divider {
    width: 100%;
    max-width: 900px;
    height: 1px;
    background: linear-gradient(to right, transparent, #6d01fb, transparent);
    margin: 0 auto 100px;
    opacity: 0.4;
}

/* Large Decorative Image Wrapper */
.footer-image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 200px;
    margin: 0;
    padding: 0;
    margin-bottom: 0;
}

/* Shadow Box - Base Layer (::before) */
.footer-image-wrapper::before {
    content: '';
    position: absolute;
    bottom: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 250px;
    
    border-radius: 5px;

    z-index: 0;
    pointer-events: none;
}


.footer-decorative-image {
    width: 100%;
    max-width: 97%;
    padding-bottom: 1.5%;
    height: auto;
}


/* Responsive: Mobile */
@media (max-width: 768px) {
    .decorative-footer {
        padding: 40px 0 0;
    }
    
    .decorative-footer .about-content {
        padding: 0 20px;
    }
    
    .footer-info-row {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 30px;
        padding: 0;
    }
    
    .footer-info-block {
        max-width: 100%;
        padding-left: 0;
        text-align: left;
    }
    
    .footer-heading {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .footer-text {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .footer-divider {
        margin-bottom: 50px;
    }
    
    .footer-image-wrapper {
        min-height: 150px;
        margin-top: 0;
        margin-bottom: 0;
        padding-bottom: 0;
        align-items: flex-end;
    }
    
    .footer-accent-star {
        right: 10%;
        bottom: 15%;
        font-size: 20px;
    }
    
    /* Adjust shadow box and glow for mobile */
    .footer-image-wrapper::before {
        width: 100%;
        height: 120px;
    }
    
    .footer-image-wrapper::after {
        width: 85%;
        height: 90px;
        bottom: 25px;
    }

    
}

@media (max-width: 480px) {
    .decorative-footer {
        padding: 30px 0 0;
    }
    
    .decorative-footer .about-content {
        padding: 0 15px;
    }
    
    .footer-info-row {
        top: 8px;
        gap: 25px;
        margin-bottom: 25px;
    }
    
    .footer-heading {
        font-size: 10px;
        margin-bottom: 10px;
    }
    
    .footer-text {
        font-size: 8px;
    }
    
    .footer-image-wrapper {
        min-height: 120px;
        margin-top: 0;
        margin-bottom: 0;
        padding-bottom: 0;
        align-items: flex-end;
    }
    
    .footer-accent-star {
        font-size: 16px;
        right: 8%;
        bottom: 12%;
    }
    
    /* Adjust shadow box and glow for small mobile */
    .footer-image-wrapper::before {
        width: 100%;
        height: 100px;
    }
    
    .footer-image-wrapper::after {
        width: 80%;
        height: 70px;
        bottom: 20px;
    }
}


/* Ensure all links and buttons are touchable */
a, button {
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
}

/* Ensure navigation links are always clickable */
.nav-link,
.main-nav a,
.sidebar-nav a {
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
}

/* Ensure all buttons are touchable */
.hamburger-menu,
.sidebar-close,
.cv-button,
.submit-btn,
.try-it-btn,
.discover-btn,
.view-profile-btn {
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
}

/* Ensure header and navigation have highest z-index */
.main-header {
    z-index: 10000 !important;
}

.main-nav {
    z-index: 10001 !important;
}

.header-logo {
    z-index: 10002 !important;
}

.hamburger-menu {
    z-index: 10003 !important;
}

/* Ensure decorative elements don't block touches */
body#home::before,
.decorative-footer::before,
.footer-image-wrapper::before,
.footer-image-wrapper::after,
.footer-decorative-image,
.footer-accent-star,
.mobile-sidebar::before {
    pointer-events: none !important;
}

/* Ensure overlay only blocks when active */
.sidebar-overlay {
    pointer-events: none;
}

.sidebar-overlay.active {
    pointer-events: all;
}

/* Ensure mobile sidebar and its content are interactive */
.mobile-sidebar,
.mobile-sidebar * {
    pointer-events: auto;
}

.mobile-sidebar::before {
    pointer-events: none;
}

/* ============================================
   MOBILE BOTTOM NAVIGATION BAR
   Floating bottom nav for mobile devices only
   ============================================ */

.mobile-bottom-nav {
    display: none;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    padding: 0 20px 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    pointer-events: none;
    box-sizing: border-box;
    transform: none !important;
    margin: 0 !important;
}

.mobile-bottom-nav-container {
    max-width: 100%;
    width: auto;
    margin: 0 auto;
    background-color: rgba(20, 18, 29, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 12px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    position: relative;
}

.mobile-bottom-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
}

.mobile-bottom-nav-item {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.mobile-bottom-nav-separator {
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    padding: 0 12px;
    opacity: 0.6;
    font-family: 'Instrument Sans', sans-serif;
}

.mobile-bottom-nav-link {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    padding: 8px 12px;
    transition: all 0.3s ease;
    opacity: 0.7;
    font-family: 'Instrument Sans', sans-serif;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-bottom-nav-link:hover {
    opacity: 1;
    font-weight: 500;
}

.mobile-bottom-nav-link.mobile-nav-active {
    font-weight: 700;
    opacity: 1;
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Show bottom nav only on mobile */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    /* Add bottom padding to body to prevent content from being hidden behind nav */
    body#home,
    body#content {
        padding-bottom: calc(90px + env(safe-area-inset-bottom));
    }
    
    /* Hide hamburger menu on mobile since we have bottom nav */
    .hamburger-menu {
        display: none;
    }
    
    /* Hide mobile sidebar on mobile since we have bottom nav */
    .mobile-sidebar {
        display: none !important;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
}

/* Adjust for smaller mobile screens */
@media (max-width: 480px) {
    .mobile-bottom-nav {
        padding: 0 16px 12px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
        position: fixed !important;
        bottom: 0 !important;
    }
    
    .mobile-bottom-nav-container {
        padding: 10px 16px;
        border-radius: 20px;
    }
    
    .mobile-bottom-nav-link {
        font-size: 14px;
        padding: 8px 10px;
    }
    
    .mobile-bottom-nav-separator {
        font-size: 16px;
        padding: 0 8px;
    }
    
    body#home,
    body#content {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

/* Extra small mobile */
@media (max-width: 360px) {
    .mobile-bottom-nav-link {
        font-size: 13px;
        padding: 8px 8px;
    }
    
    .mobile-bottom-nav-separator {
        font-size: 14px;
        padding: 0 6px;
    }
}


@media (max-width: 768px) {
    .mail-icon {
        width: 12px; /* Encore plus petit mobile */
        height: 12px;
        margin: 5px 6px 0 6px;
    }

    .footer-info-row {
        left: 30px; /* +8px (10px → 18px) */
    }
}

@media (max-width: 480px) {
    .mail-icon {
        width: 11px; /* Mini sur petit écran */
        height: 11px;
    }

    .footer-info-row {
        left: 30px;
    }
}

@media (max-width: 1200px) {
    .hero-welcome {
        font-size: 190px;
        text-align: center;
        margin-top: 25px; /* **Descend 25px** */
    }
}

@media (max-width: 992px) {
    .hero-welcome {
        font-size: 140px;
        text-align: center;
        margin-top: 30px; /* **+5px plus bas** */
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 60px;
    }
    .hero-welcome {
        font-size: 72px;
        min-height: 95px;
        padding-bottom: 12px;
        margin-top: 20px; /* **Descend texte** */
        text-align: center;
    }
    .word-animation {
        font-size: 72px;
    }
    .word-1, .word-2, .word-3, .word-4 {
        --animation-distance: 140px;
    }
}

@media (max-width: 480px) {
    .hero-welcome {
        font-size: 55px;
        min-height: 75px;
        margin-top: 25px; /* **Descend mobile** */
        text-align: center;
    }
}


@media (max-width: 768px) {
    body#home::before {
        top: -30vh;
        height: 200vh;
        background-size: cover;
        background-position: -600px  top;
    }
}

@media (max-width: 480px) {
    body#home::before {
        top: -25vh;
        height: 195vh;
        background-size: cover;
        background-position: -600px top;
    }
}

@media (max-width: 768px) {
    .greeting-section {
        padding: 30px 20px 80px;
        margin-top: 25px; /* **+ mobile** */
    }
    
    .hero-greeting {
        padding: 15px 0;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .greeting-section {
        padding: 20px 15px 60px;
        margin-top: 30px;
    }
    
    .hero-greeting {
        margin-top: 25px;
    }
}

@media (max-width: 768px) {
    .about-text {
        margin: 30px 20px 40px 20px; /* **20px bords mobile** */
        font-size: 18px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .about-text {
        margin: 25px 15px 35px 15px; /* **15px petit écran** */
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .logo-image {
        height: 85px; /* **+42% (60px → 85px)** */
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 75px; /* **+50% (50px → 75px)** */
    }
}