/* --- hero.css --- */
:root {
    --hero-bg-top: #e3f2fd;
    --hero-bg-bot: #64b5f6;
    --hero-text: #0d47a1;
    --hero-accent: #1565c0;
    --hero-card: #ffffff;
    --hero-border: #0d47a1;
}

body {
    background: linear-gradient(to bottom, var(--hero-bg-top), var(--hero-bg-bot));
    color: var(--hero-text);
}

#hero-section {
    padding: 100px 20px; min-height: 100vh; display: flex; flex-direction: column; align-items: center;
}

.stat-card {
    background: var(--hero-card); border: 4px solid var(--hero-border); border-radius: 15px; padding: 30px;
    max-width: 600px; width: 100%; box-shadow: 8px 8px 0px rgba(13, 71, 161, 0.2); position: relative;
}

.stat-header { display: flex; align-items: center; border-bottom: 2px solid var(--hero-border); padding-bottom: 20px; margin-bottom: 20px; }

.hero-avatar-placeholder {
    width: 80px; 
    height: 80px; 
    background-color: #bbdefb; 
    border: 2px solid var(--hero-border); 
    border-radius: 50%;
    margin-right: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 2rem; 
    color: var(--hero-text);
    overflow: hidden; /* <-- La ligne magique pour couper ce qui dépasse */
}

.hero-avatar-placeholder img {
    width: 100%;
    height: 100%;
    border: none; /* Supprime la bordure grise imposée par le sélecteur général */
    object-fit: cover;
}

.stat-info h2 { font-family: var(--pixel-font); font-size: 2.5rem; margin-bottom: 5px; color: var(--hero-text); }
.level-text { font-family: var(--pixel-font); font-size: 1.2rem; color: var(--hero-accent); font-weight: bold; }

.skills-list { list-style: none; padding: 0; }

.skill-btn {
    display: flex; align-items: center; background: #e3f2fd; border: 2px solid var(--hero-border); padding: 15px; margin-bottom: 15px; border-radius: 10px;
    text-decoration: none; color: var(--hero-text); font-family: var(--pixel-font); font-size: 1.4rem; transition: transform 0.2s, background 0.2s; cursor: pointer;
}
.skill-btn:hover { transform: translateX(10px); background: #bbdefb; }

/* Décos */
.pixel-pan { position: absolute; top: -40px; right: -40px; width: 100px; height: 100px; z-index: 10; animation: cook 3s ease-in-out infinite; }
@keyframes cook { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(10deg); } }

.pixel-spatula { position: absolute; bottom: -20px; left: -20px; width: 60px; height: 80px; z-index: 10; transform: rotate(-15deg); }

img {
    /* 1. Force l'image à prendre toute la largeur du cadre blanc */
    width: 80%; 
    
    /* 2. Définit une HAUTEUR FIXE. 
       Mets la valeur que tu veux (ex: 200px) pour qu'ils soient tous identiques */
    height: 70px; 
    
    /* 3. LA MAGIE : Coupe l'image proprement si elle dépasse, sans la déformer */
    object-fit: cover; 
    
    /* Tes bordures existantes */
    border: 1px solid #C9C9C9;
    
    /* Petit bonus : enlève l'espace vide parfois visible sous les images */
    display: block; 
}


.accueil-header { 
    text-align: center;
    top: 80px;
    margin-bottom: 50px; 
    position: relative; 
    z-index: 10; 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto;
    border-color: #342797;
    border-style: dotted;
}
.accueil-header h1 { 
    font-family: var(--pixel-font); 
    font-size: 4rem; 
    margin-bottom: 5px; 
    color: #342797; 
    line-height: 1;
} 

.accueil-header h2 {
    font-family: var(--pixel-font);
    font-size: 2rem; color: #555;
    margin-bottom: 20px; }
