/* ========================================
   ACCUEIL.CSS - Avec nom sous la photo
   ======================================== */

/* ========================================
   🎨 SECTION PRINCIPALE - VERSION LÉGÈRE
   ======================================== */

.section-accueil {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0e1a 0%, #151b2e 50%, #1a1f3a 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

/* ========================================
   ✨ GRILLE SIMPLE (1 seule animation)
   ======================================== */

.section-accueil::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(13, 110, 253, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 110, 253, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.6;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(80px, 80px);
    }
}

/* ========================================
   💫 GLOW SUBTIL (statique, pas d'animation)
   ======================================== */

.section-accueil::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(
        circle,
        rgba(13, 110, 253, 0.08) 0%,
        transparent 60%
    );
    pointer-events: none;
    filter: blur(60px);
}

/* ========================================
   📦 WRAPPER PRINCIPAL
   ======================================== */

.accueil-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* ========================================
   ⚡ OPTIMISATIONS GPU
   ======================================== */

.section-accueil::before {
    will-change: transform;
    transform: translateZ(0);
}

/* ========================================
   📱 MOBILE (Animation encore plus lente)
   ======================================== */

@media (max-width: 768px) {
    .section-accueil::before {
        animation-duration: 40s;
        background-size: 100px 100px;
        opacity: 0.4;
    }
    
    .section-accueil::after {
        width: 500px;
        height: 500px;
    }
}

/* ========================================
   ♿ ACCESSIBILITÉ
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .section-accueil::before {
        animation: none;
    }
}



/* ========== AVATAR ========== */
.accueil-avatar {
    margin-bottom: 30px;
    animation: fadeInDown 1s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.avatar-container {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #0066ff;
    box-shadow: 
        0 0 40px rgba(0, 102, 255, 0.6),
        inset 0 0 30px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: avatarGlow 3s ease-in-out infinite;
    background: linear-gradient(135deg, #0066ff, #00ccff);
}

@keyframes avatarGlow {
    0%, 100% {
        box-shadow: 0 0 40px rgba(0, 102, 255, 0.6);
    }
    50% {
        box-shadow: 0 0 60px rgba(0, 102, 255, 1);
    }
}

.avatar-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s linear infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.avatar-container:hover img {
    transform: scale(1.1);
}

/* ========== ✅ IDENTITÉ (NOM + TITRE) ========== */
.accueil-identity {
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.3s backwards;
}

.accueil-name {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(0, 102, 255, 0.5);
    background: linear-gradient(135deg, #ffffff, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accueil-title {
    font-size: 1.3rem;
    font-weight: 400;
    color: #00ccff;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* ========== CLI ANIMATION ========== */
.accueil-cli {
    text-align: left;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(13, 110, 253, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    font-family: 'Courier New', 'Consolas', monospace;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.cli-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cli-line.active {
    opacity: 1;
}

.cli-line.finished {
    opacity: 1;
}

.cli-icon {
    color: #0d6efd;
    font-weight: bold;
    font-size: 1.2rem;
    min-width: 20px;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.cli-line.active .cli-icon {
    animation: fadeIn 0.3s ease forwards;
}

.cli-text {
    color: #00ff41;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.cli-cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background: #00ff41;
    margin-left: 3px;
    opacity: 0;
}

.cli-line.typing .cli-cursor {
    opacity: 1;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* ========== CONTENU STATIQUE ========== */
.accueil-content {
    opacity: 0;
    animation: fadeInUp 1s ease 3s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accueil-content .lead {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: center;
}

/* ========== BOUTONS ========== */
.accueil-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.accueil-buttons .btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    border: none;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.5);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: #0a0e1a;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* ========== RÉSEAUX SOCIAUX ========== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(13, 110, 253, 0.5);
    border-radius: 50%;
    color: white;
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: #0d6efd;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.social-icon i {
    position: relative;
    z-index: 1;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.5);
    border-color: #0d6efd;
}

.social-icon:hover::before {
    width: 100%;
    height: 100%;
}

/* ========== SCROLL INDICATOR ========== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #0d6efd;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-8px);
    }
}

.scroll-indicator:hover {
    color: #0dcaf0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .section-accueil {
        padding: 60px 15px;
    }

    .avatar-container {
        width: 150px;
        height: 150px;
    }

    /* ✅ Nom responsive */
    .accueil-name {
        font-size: 2.2rem;
    }

    .accueil-title {
        font-size: 1rem;
    }

    .accueil-cli {
        padding: 20px;
    }

    .cli-text {
        font-size: 0.95rem;
    }

    .accueil-content .lead {
        font-size: 1rem;
    }

    .accueil-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .accueil-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .social-links {
        gap: 15px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .avatar-container {
        width: 120px;
        height: 120px;
    }

    /* ✅ Nom très petit écran */
    .accueil-name {
        font-size: 1.8rem;
    }

    .accueil-title {
        font-size: 0.9rem;
    }

    .cli-text {
        font-size: 0.85rem;
    }

    .cli-icon {
        font-size: 1rem;
    }
}


