/* ===== Conteneur principal ===== */
.about {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem 4rem;
}

/* ===== En-tête ===== */
.about-header h1 {
    text-align: center;
    color: #0057B7;
    margin: 2rem 0 0.5rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.about-header .subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin: 0 0 2rem;
    font-weight: 400;
}

/* ===== Card intro (photo + texte) ===== */
.about-intro-card {
    background: #fff;
    border: 1px solid #e4e9f0;
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 87, 183, 0.08);
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.about-photo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #e3eefc;
    box-shadow: 0 4px 16px rgba(0, 87, 183, 0.15);
    float: right;
    margin: 0 0 1rem 1.8rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 87, 183, 0.25);
}

.about-intro-card p {
    color: #444;
    line-height: 1.85;
    font-size: 0.97rem;
    margin: 0;
}

.about-intro-card a {
    color: #1E90FF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.about-intro-card a:hover {
    color: #0057B7;
}

/* ===== Titres de section ===== */
.about h2 {
    text-align: center;
    color: #0057B7;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem;
}

.about h3 {
    color: #1E90FF;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
}

/* ===== Cursus ===== */
.cursus {
    margin-bottom: 1rem;
}

.cursus-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 750px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.cursus-item {
    background: #fff;
    border: 1px solid #e4e9f0;
    border-left: 4px solid #0057B7;
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 87, 183, 0.06);
    color: #444;
    font-size: 0.95rem;
    line-height: 1.7;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cursus-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 87, 183, 0.12);
}

.cursus-item strong {
    color: #0057B7;
    font-size: 1rem;
}

/* ===== Compétences & Outils ===== */
.competences {
    margin-bottom: 1rem;
}

.skills-list,
.tools-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.9rem;
    list-style: none;
    padding: 0;
    margin: 0 auto 1.5rem;
    max-width: 850px;
}

.skills-list li,
.tools-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: linear-gradient(145deg, #ffffff, #f7fbff);
    border: 1px solid #e3eefc;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    box-shadow: 0 3px 12px rgba(0, 87, 183, 0.07);
    font-weight: 600;
    font-size: 0.9rem;
    color: #1f2d3d;
    min-height: 60px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.skills-list li:hover,
.tools-list li:hover {
    transform: translateY(-4px);
    border-color: #b6d5ff;
    box-shadow: 0 8px 20px rgba(0, 87, 183, 0.13);
}

.skills-list li img,
.tools-list li img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ===== Certifications ===== */
.certifications {
    margin-bottom: 1rem;
}

.certif-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 750px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.certif-item {
    background: #fff;
    border: 1px solid #e4e9f0;
    border-top: 4px solid #1E90FF;
    border-radius: 12px;
    padding: 1.3rem 1.5rem;
    box-shadow: 0 3px 12px rgba(0, 87, 183, 0.07);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
}

.certif-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 87, 183, 0.12);
}

.certif-item strong {
    color: #0057B7;
}

.certif-item img {
    flex-shrink: 0;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .about-photo {
        float: none;
        display: block;
        margin: 0 auto 1.2rem;
        width: 120px;
        height: 120px;
    }

    .skills-list,
    .tools-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .certif-item {
        flex-direction: column;
        text-align: center;
    }

    .about h2 {
        font-size: 1.3rem;
    }
}
