/* home.css */
* {
    box-sizing: border-box;
}

body{
    font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
    background-color: #0B3861;
    margin: 0;
    padding: 0;
    position: relative;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
}

.header {
    position: sticky;
    display: flex;
    height: 60px;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    top: 0;
    z-index: 10;
    background-color: rgba(11, 56, 97, 0.9);
    backdrop-filter: blur(4px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f0f0f0;
}

.logo:hover {
    color: #ffde7d;
    transition: color 0.3s ease;
}

.nav ul {
    display: flex;
    list-style-type: none;
    color: #f0f0f0;
    font-size: 16px;
    gap: 1rem;
}

.nav ul li a {
    text-decoration: none;
    color: #f0f0f0;
    border-radius: 5px;
    padding: 0.5rem 1rem;    
}

.nav ul li a:hover { /* tous liens lors du survol dans la balise nav */
    color: #ffde7d; /* couleur de fond */
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
}

/* Position de l'éclipse sous ton logo */
.eclipse-wrapper {
    position: absolute;
    top: 110px;
    left: 80px;
    width: 100px;
    height: 100px;
    z-index: 2;
}
.eclipse {
    position: relative;
    width: 50%;
    height: 50%;
}

/* 1) Disque central (ombre de la Terre) */
.core {
    position: absolute;
    inset: 0;
    z-index: 5;
    border-radius: 50%;
    background: radial-gradient(circle,
        #050505 25%,
        #0a0a0a 55%,
        #050505 80%,
        #000000 100%
    );
}

/* 2) MULTICOUCHE : Corona lumineuse pour un vrai effet d’éclipse */
.corona {
    position: absolute;
    inset: -40%;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

/* Couche externe large */
.corona-1 {
    position: absolute;
    inset: -35%;
    border-radius: 50%;
    z-index: 3;
    background: radial-gradient(circle,
        rgba(255,230,180,0) 35%,
        rgba(255,220,150,0.60) 55%,
        rgba(255,215,140,0.50) 68%,
        rgba(255,210,130,0.35) 78%,
        rgba(255,205,120,0.20) 90%,
        rgba(255,200,110,0) 100%,
    );
    filter: blur(35px);
    animation: coronaPulse 12s ease-in-out infinite;
}

/* Couche intermédiaire (halo dense) */
.corona-2 {
    position: absolute;
    inset: -18%;
    border-radius: 50%;
    z-index: 4;
    background: radial-gradient(circle,
        rgba(255,240,200,0) 30%,
        rgba(255,235,180,0.75) 48%,
        rgba(255,230,165,0.60) 60%,
        rgba(255,220,150,0.38) 70%
        rgba(255,215,140,0.15) 80%
        rgba(255,215,140,0) 90%
    );
    filter: blur(18px);
    animation: coronaPulse 8s ease-in-out infinite;
}

/* Couche interne (anneau fin, très lumineux) */
.corona-3 {
    position: absolute;
    inset: -20%;
    border-radius: 50%;
    z-index: 5;
    background: radial-gradient(circle,
        rgba(255,245,200,0) 32%,
        rgba(255,240,190,0.95) 50%,
        rgba(255,235,180,0.75) 57%,
        rgba(255,230,160,0.40) 64%,
        rgba(255,220,150,0.20) 70%,
        rgba(255,220,150,0) 78%
    );
    filter: blur(12px);
    animation: coronaPulse 6s ease-in-out infinite;
}

@keyframes coronaPulse {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.85;
    }
    50% {
        transform: scale(1.05) rotate(3deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.85;
    }
}

.sphere {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle,  #3498db, rgba(0, 0, 0, 0.8));
    animation-name: move;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes move {
    0% {
        transform: translate3d(0, 0, 0);
    }
    25% {
        transform: translate3d(-50px, 30px, -50px) rotate(-10deg);
    }
    50% {
        transform: translate3d(100px, -30px, 50px) rotate(10deg);
    }
    75% {
        transform: translate3d(-80px, -50px, 30px) rotate(15deg);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.content {
    grid-area: contenu;
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-subtitle {
    padding-top: 80px;
    font-size: 2rem;
    margin: 1rem;
    color: #fff;
}

.title {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.4em;
    color: #fff;
    margin: 0.5rem 0;
}

.subtitle {
    font-size: 1.4rem;
    color: #eaeaea;
    line-height: 1.6em; /* espacement entre lignes */
    margin-top: 10px;
}

.highlight {
    color: #f39c12;
    font-weight: bold;
}

.hero-buttons {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 10px;
    text-decoration: none;
    background: transparent;
    transition: all 0.3s ease-in-out;
}

.btn:hover { /* tous liens lors du survol */
    background: #fff; /* couleur de fond */
    transform: scale(1.05);
    color: #000;
    border-color: #fff;
}

/* tablette */
@media (max-width: 1024px) {
    .hero-subtitle {
        font-size: 1.8rem;
    }
    .title {
        font-size: 2rem;
    }
    .subtitle {
        font-size: 1.2rem;
    }
    .hero-buttons {
        gap: 1rem;
    }
}

/* mobile */
@media (max-width: 600px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 10px 15px;
    }
    .nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        grid-template-columns: 1fr;
        background-color: rgba(11, 56, 97, 0.95);
        padding: 0.5rem 1rem;
    }
    .nav ul li {
        width: 100%;
        text-align: left;
    }
    .hero-buttons {
        font-size: 1.5rem;
        padding-top: 100px;
    }
    .title {
        font-size: 1.8rem;
    }
    .subtitle {
        font-size: 1.8rem;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }
    .btn {
        width: 80%;
        margin: 0 auto;
    }
}