/* Reset CSS et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    transition: background-color 0.8s ease;
}

/* Container principal qui occupe toute la page */
.fullpage-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header minimaliste */
header {
    padding: 30px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.5s ease;
}

.menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
}

/* Slider qui prend toute la page */
.fullpage-slider {
    display: flex;
    width: 100%;
    height: 100vh;
    position: relative;
}

/* Chaque option du slider occupe 50% de l'écran */
.option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.option-content {
    z-index: 2;
    text-align: center;
    padding: 30px;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(20px);
}

.option h2 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.option p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 400px;
    text-align: center;
}

.btn {
    padding: 15px 40px;
    background-color: transparent;
    border: 2px solid;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.4s ease;
    display: inline-block;
    font-size: 1.1rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-5px);
}

/* Overlay pour l'effet de profondeur */
.option-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
    opacity: 0.7;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.option:hover .option-overlay {
    opacity: 0.5;
}

/* Icônes représentatives */
.option-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    transition: transform 0.5s ease;
}

.option:hover .option-icon {
    transform: scale(1.2) rotate(5deg);
}

/* Footer */
footer {
    padding: 20px;
    text-align: center;
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 10;
    color: rgba(255, 255, 255, 0.7);
}

/* Animation d'entrée */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.option-content {
    animation: fadeIn 1s ease forwards;
}

.developer-option .option-content {
    animation-delay: 0.3s;
}

.creative-option .option-content {
    animation-delay: 0.6s;
}

/* Responsive */
@media (max-width: 768px) {
    .fullpage-slider {
        flex-direction: column;
    }
    
    .option h2 {
        font-size: 2.5rem;
    }
}

/* MASQUAGE DU CONTENU - CORRIGÉ */

.fullpage-slider:hover .option:not(:hover) .option-content p,
.fullpage-slider:hover .option:not(:hover) .option-content .btn {
    opacity: 0 !important;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;

}

.fullpage-slider:hover .option:not(:hover) .option-content .option-icon,
.fullpage-slider:hover .option:not(:hover) .option-content h2 {
    font-size: 30px;
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(0.8);
    margin-bottom: 0px;
}

.option:hover .option-content {
    opacity: 1 !important;
    visibility: visible;
    transform: translateY(0);
}

.option:hover .option-content .option-icon {
    transform: scale(1.2) rotate(5deg);
    margin-bottom: 20px;
}

/* Répartition 80/20 au survol */
.option:hover {
    flex: 4; /* 80% de l'espace */
}

.option:not(:hover) {
    flex: 1; /* 20% de l'espace */
}

/* Transition plus douce pour le changement de flex */
.option {
    transition: flex 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Assurer que le logo reste toujours visible */
header {
    z-index: 100;
}

/* Images de fond pour chaque option */
.developer-option {
    background: linear-gradient(rgba(22, 33, 62, 0.7), rgba(15, 52, 96, 0.7)), url('../sources/dev-mode-back.jpg') center/cover no-repeat !important;
}

.creative-option {
    background: linear-gradient(rgba(255, 94, 91, 0.7), rgba(255, 142, 114, 0.7)), url('../sources/creatif-mode-back.jpg') center/cover no-repeat !important;
}

/* Ajustements pour mieux voir le contenu sur l'image de fond */
.option-content {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.btn {
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.1) !important;
}
