/* --- CONFIGURATION MISE EN PAGE TYPE PC OS --- */
.viewport-container-about {
    height: calc(100vh - 110px);
    width: 94%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.about-terminal-grid {
    display: grid;
    grid-template-columns: 72% 25%; /* Le texte prend la majorité, la galerie est rétrécie */
    gap: 3%;
    flex: 1;
    min-height: 0;
    align-items: stretch;
    margin-bottom: 20px;
}

/* --- LOOK INTERFACE ORDINATEUR (TERMINAL WINDOW) --- */
.terminal-window {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    position: relative;
    flex-shrink: 0; /* Empêche l'en-tête de se déformer */
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.t-btn {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}
.t-btn.red { background-color: #ff5f56; }
.t-btn.yellow { background-color: #ffbd2e; }
.t-btn.green { background-color: #27c93f; }

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #888;
}

.terminal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

/* Structure flexbox interne pour forcer l'agencement vertical à droite */
.setup-avatar-skills {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important; /* Laisse l'espace se calculer de façon fixe */
}

/* --- TITRE & REGLAGES TEXTES --- */
.about-title {
    font-size: 1.8rem;
    line-height: 1.3;
    margin: 0 0 25px 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 4px solid #fff;
    padding-left: 15px;
}

.terminal-body p {
    font-size: 14.5px;
    line-height: 1.8;
    color: #bbb;
    font-family: 'Courier New', monospace;
    margin-bottom: 20px;
}

/* COULEURS ACCENTS RACCORD SCRIPT */
.color { color: #ff00ff; font-weight: bold; }
.color1 { color: #00ffff; font-weight: bold; }
.color2 { color: #ffff00; font-weight: bold; }
.color3 { color: #00ff00; font-weight: bold; }

/* BOUTONS INTERACTIFS ACCORDÉS */
.about-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    background-color: transparent;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn:hover {
    background-color: #fff;
    color: #000;
}

/* --- ADAPTATION DYNAMIQUE DE L'AVATAR GÉANT --- */
.avatar-featured-flex {
    width: 100%;
    flex: 1; /* Remplit tout l'espace disponible vertical restant au-dessus des icônes */
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    background: #0d0d0d;
}

.avatar-featured-flex img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- GRILLE DE PICTOS VERROUILLÉE EN BAS --- */
.iphone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes de miniatures serrées */
    gap: 5px;
    width: 100%;
    flex-shrink: 0; /* Empêche les icônes de se faire écraser par l'avatar */
}

.iphone-pic {
    width: 100%;
    aspect-ratio: 1 / 1; /* Carré parfait */
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iphone-pic img {
    width: 68%; /* Format icône centré */
    height: 68%;
    object-fit: contain; /* Conserve le ratio natif des logos */
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.iphone-pic img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.6)); /* Halo néon cyan au survol */
}

/* --- RESPONSIVE SMARTPHONE --- */
@media (max-width: 1024px) {
    .viewport-container-about { 
        height: auto; 
    }
    .about-terminal-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    .terminal-window {
        height: auto;
    }
    .setup-avatar-skills {
        overflow: visible !important;
    }
    .avatar-featured-flex {
        height: 320px; /* Sur mobile, l'avatar adopte une hauteur fixe confortable */
        flex: none;
    }
}