/* ============================================================
   PARTIE 1 : TON CODE DE BASE (DESKTOP)
   ============================================================ */

   .about-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px; 
    padding-bottom: 60px;
    margin-bottom: 0;
}

.about-title {
    font-family: var(--font-light);
    /* Utilisation de clamp pour une taille fluide entre 32px et 60px */
    font-size: clamp(32px, 4vw, 60px); 
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    text-align: center;
    margin-bottom: 40px;
}

/* Conteneur d'image */
.profile-img-container {
    position: relative; 
    width: 569px; 
    height: auto; 
    overflow: hidden;
    border-radius: 2px; 
    z-index: 1;
}

.profile-img {
    width: 100%; 
    height: auto; 
    object-fit: cover; 
    object-position: 30% 20%; 
    transform: scale(1.0); 
}

/* GRILLE DE PRÉSENTATION */
.about-grid {
    max-width: 1400px; 
    margin: 0 auto 200px;
    padding: 0 40px; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    gap: 130px; 
}

.about-photo-wrapper {
    flex-shrink: 0;
    width: 669px; 
    margin-top: 40px; 
}

.about-item.monobloc {
    flex-grow: 1; 
    width: 100%; 
    max-width: 600px; 
    text-align: left;
}

.item-text {
    font-family: var(--font-light);
    font-size: clamp(15px, 1.2vw, 17px); /* Texte fluide */
    line-height: 1.7;
    color: #000;
    opacity: 0.8;
}

.item-text strong {
    font-family: var(--font-main);
    font-weight: 900;
    color: #000;
    opacity: 1;
}

/* BOUTON COMPÉTENCES */
.about-cta-wrapper {
    margin-top: 40px;
}

.about-skills-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    color: #000;
    padding-bottom: 5px;
    border-bottom: 2px solid #000;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.about-skills-btn span {
    transition: transform 0.3s ease;
}

.about-skills-btn:hover {
    opacity: 0.6;
}

.about-skills-btn:hover span {
    transform: translateX(5px);
}

.navbar, .about-header, .about-grid, .footer {
    visibility: visible;
    opacity: 1;
}


/* ============================================================
   PARTIE 2 : SYSTÈME RESPONSIVE (TABLETTE & MOBILE)
   ============================================================ */

/* --- 1. SEUIL TABLETTE (Jusqu'à 1024px) --- 
   Cible l'iPad Air (820px) et iPad Pro. 
   Ici on règle le bug de la photo et du texte décalé. */
@media (max-width: 1024px) {
    
    .about-header {
        padding-top: 120px; /* Plus d'espace pour la nav */
    }

    .about-grid {
        flex-direction: column; /* On passe en une colonne */
        gap: 60px; /* Espace entre photo et texte */
        padding: 0 50px;
        margin-bottom: 120px;
    }

    .about-photo-wrapper, 
    .profile-img-container {
        width: 100%; /* La photo prend la largeur disponible */
        max-width: 600px; /* Mais ne devient pas géante */
        margin-top: 0;
    }

    .profile-img {
        object-position: center 20%; /* On recentre pour voir ta tête */
    }

    .about-item.monobloc {
        max-width: 100%; /* Le texte prend toute la largeur */
        text-align: center; /* On centre le texte pour l'équilibre visuel */
    }

    .about-cta-wrapper {
        justify-content: center;
        display: flex;
    }
}

/* --- 2. SEUIL MOBILE (Jusqu'à 768px) --- */
@media (max-width: 768px) {
    
    .about-grid {
        padding: 0 30px;
        gap: 40px;
    }

    .about-title {
        font-size: 32px; /* Taille fixe nette pour mobile */
        padding: 0 20px;
    }

    .item-text {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* --- 3. PETITS MOBILES (Jusqu'à 480px) --- */
@media (max-width: 480px) {
    
    .about-header {
        padding-top: 100px;
        padding-bottom: 20px;
    }

    .about-grid {
        padding: 0 24px;
        margin-bottom: 80px;
    }

    .about-skills-btn {
        font-size: 12px;
    }
}