/* =========================================================
   assets/css/accueil.css - Styles spécifiques à la page d'accueil
   ========================================================= */

/* --- Variables (Utilisation des variables de global.css) --- */
:root {
    --card-padding: 30px;
}

/* --- Section Héro (Bienvenue) --- */
.hero-section {
    min-height: 400px; /* Hauteur minimale pour l'espace visuel */
    padding: 0px 20px;
    padding-top: 20px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Aligner le titre principal à gauche */
.terminal-heading {
    text-align: left; /* FORCE LE TITRE À GAUCHE */
    margin-bottom: 20px;
    padding-left: 10px; /* Décalage pour l'effet */
}

/* Contenu Centré (H2, P, Boutons) */
.hero-content-centered {
    max-width: 850px; 
    margin: 40px auto; /* Centre le bloc de texte sous le titre */
    text-align: center;
    padding: 30px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.hero-content-centered h2 {
    font-family: var(--font-sans); 
    font-size: 2em; 
    color: var(--color-text-light); 
    margin-bottom: 25px;
    line-height: 1.4; 
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.hero-content-centered .intro-message {
    font-family: var(--font-terminal); 
    font-size: 1.1em;
    color: var(--color-text-grey);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* --- Styles de Boutons (Utilise les classes de global.css mais les stylise) --- */
.hero-buttons .btn {
    padding: 12px 25px;
    margin: 0 15px;
    text-transform: uppercase;
}
.hero-buttons .btn-primary { /* Bouton Vert Électrique */
    background-color: transparent;
    color: var(--color-dark);
    border: 2px solid var(--color-accent);
}
.hero-buttons .btn-primary:hover {
    background-color: rgba(25,25,25,1);

}
.hero-buttons .btn-secondary { /* Bouton Cyan (Bordure) */
    background-color: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
}

/* --- Section de Prévisualisation des Pages (Cards) --- */

.pages-preview {
    padding: 10px 20px;
}

.preview-card {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    padding: var(--card-padding);
    border: 1px solid rgba(0, 255, 65, 0.2);
    background-color: #1a1a1a;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 255, 65, 0.3);
}

.card-text, .card-image {
    flex: 1;
}

.card-text h3 {
    font-size: 1.8em; /* Réduit un peu la taille pour l'harmonie */
    margin-bottom: 15px;
    color: var(--color-secondary);
    font-family: var(--font-terminal);
}

.card-text p {
    margin-bottom: 20px;
    color: var(--color-text-grey);
    line-height: 1.5;
}

.card-text .label-info {
    font-family: var(--font-terminal);
    font-size: 0.9em;
    display: block;
    margin-bottom: 5px;
}

.card-image {
    min-height: 200px;
    background-color: #222; 
    border: 1px dashed var(--color-accent);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-text-grey);
    font-family: var(--font-terminal);
}

.row-reverse {
    flex-direction: row-reverse;
}

/* Bouton plus petit pour les cards (déjà défini en global.css, ici pour l'icône) */
.btn-accent-small i {
    margin-left: 5px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero-content-centered h2 {
        font-size: 1.6em;
    }
    .preview-card {
        flex-direction: column; 
        gap: 20px;
    }
    .row-reverse {
        flex-direction: column;
    }
    .card-image {
        min-height: 150px;
    }
    .hero-buttons .btn {
        display: block;
        margin: 10px auto;
    }
}

.terminal-heading .accent-text {
    color: var(--color-text-light, #ffffff); /* Utilise la variable de couleur blanche définie dans votre thème, sinon blanc pur */
    text-shadow: none; /* Supprime l'ombre de texte verte si elle existe */
}
/* --- NOUVEAU: Style de la Photo de Profil --- */

.profile-box {
    /* Conteneur principal */
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 30px auto; /* Centre la boîte et ajoute une marge en bas */
    border-radius: 50%;
    overflow: hidden; /* Cache tout ce qui dépasse du cercle */
    border: 3px solid var(--color-accent); /* Bordure principale */
}

.profile-img {
    /* La photo elle-même */
    position: relative;
    z-index: 2; /* S'assure que la photo est au-dessus du glow */
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* --- Effet de Fond Animé (Glow) --- */
.profile-glow {
    /* Le fond coloré animé */
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        var(--color-accent) 0%,
        var(--color-secondary) 50%,
        var(--color-accent) 100%
    );
    z-index: 1;
    animation: rotateGlow 5s linear infinite; /* Lance l'animation */
}

/* Keyframes pour l'animation de rotation */
@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}