html, body {
    margin: 0;
    padding: 0;
    background: #f1f1f1;
    font-family: 'Segoe UI', sans-serif;
    height: 100vh;
    overflow: hidden;
    width: 100%;
    overflow-x: hidden; /* très important pour éviter les scrolls horizontaux fantômes */
    }

}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    z-index: 10;
    transition: opacity 0.8s ease;
}

header.hidden {
    opacity: 0;
    pointer-events: none;
}


.nav-links button {
    background: none;
    border: none;
    margin-left: 20px;
    font-size: 16px;
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
}
.nav-links button:hover {
    color: #aa00ff;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    box-sizing: border-box;
    position: relative;
    transition: opacity 1s ease;
}

.hero.hidden {
    opacity: 0;
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem;
    color: #333;
    z-index: 5;
    transition: opacity 1s ease;
}

.hero h1.fade-out {
    opacity: 0;
}

canvas {
    display: block;
    z-index: 0;
    transition: transform 3s ease-in-out;
    will-change: transform;
}

.scroll-hint {
    position: absolute;
    bottom: 5%;
    right: 10%;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1rem;
    animation: fadeIn 1.5s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 5;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.overlay-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #333;
    opacity: 0;
    pointer-events: none;
    transition: opacity 2s ease;
    z-index: 20;
}

.overlay-message.show {
    opacity: 1;
    pointer-events: auto;
}

.realisations-section {
    background: white;
    height: 100vh;
    width: 100vw;
    padding: 60px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.5s ease, transform 1.5s ease;
    z-index: 30;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

.realisations-section.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.site-footer {
    background-color: #111;
    color: #f5f5f5;
    padding: 20px 40px;
    margin-top: 60px;
}

.site-footer {
    background-color: #111;
    color: #f5f5f5;
    padding: 20px 40px;
    width: 100%;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.footer-left {
    font-size: 0.95rem;
}

.footer-right a {
    margin-left: 20px;
    text-decoration: none;
    color: #f5f5f5;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-right a:hover {
    color: #aaa;
}









.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0; /* pas d’espace entre */
    max-width: 400px;
    line-height: 1; /* réduit la hauteur de ligne globale */
}

.hero-text span {
    display: block; /* chaque span est un bloc, donc saut à la ligne */
    margin: 0;
    padding: 0;
}

.hero-text .subtitle {
    font-weight: 300;
    font-size: 1.4rem;
    color: #555;
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.1;
}

.hero-text .name {
    font-weight: 700;
    font-size: 3.5rem;
    color: #333;
    line-height: 1;
    margin-top: -0.15em; /* remonte un peu pour coller plus avec la subtitle */
    margin-bottom: -0.15em; /* réduit espace sous le nom */
}

.hero-text .caption {
    font-weight: 400;
    font-size: 1rem;
    color: #777;
    font-family: 'Segoe UI', sans-serif;
    line-height: 1;
}





