/* ====== Thème sombre bordeaux — CSS pour profil.html ====== */

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1e1e1e;
    color: #f0f0f0;
    line-height: 1.6;
}

:root {
    --bordeaux: #8B0000;
    --bordeaux-hover: #a30000;
}

/* Lien retour */
.back-link {
    position: absolute;
    top: 20px;
    left: 20px;
    text-decoration: none;
}

.back-img {
    width: 32px;
    height: 32px;
    filter: invert(1);
}

/* ===== Profil header ===== */
header.profil {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 20px;
    border-bottom: 2px solid var(--bordeaux);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.user-block {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.pp {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bordeaux);
}

.user-info {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.user-info h2 {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.user-info h3 {
    font-size: 1.2rem;
    color: #aaa;
    margin-top: 0;
    margin-bottom: 4px;
}

.statut {
    color: #ccc;
    margin-top: 0;
}

.download-link {
    background-color: var(--bordeaux);
    padding: 10px 20px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
    margin-top: 10px;
    height: fit-content;
}

.download-link:hover {
    background-color: var(--bordeaux-hover);
}

.download-img {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

/* ===== Diplômes ===== */
.section-title {
    text-align: center;
    font-size: 25px;
    margin-top: 100px;
}

section.degrees {
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 0 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.degree {
    background-color: #1e1e1e;
    border-left: 5px solid var(--bordeaux);
    padding: 20px;
    border-radius: 8px;
    flex: 1 1 45%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    min-width: 300px;
}

.degree .text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.degree .text h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #ff5a5a;
}

.degree .text p {
    margin: 2px 0;
}

/* ===== Compétences ===== */
section.skills {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.skills-langage, .skills-software {
    margin-top: 20px;
}

.skill-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.skill-bar span {
    flex: 1;
}

.skill-bar progress {
    width: 60%;
    height: 16px;
    accent-color: var(--bordeaux);
    background-color: #444;
    border-radius: 8px;
    overflow: hidden;
}

progress::-webkit-progress-bar {
    background-color: #444;
    border-radius: 8px;
}

progress::-webkit-progress-value {
    background-color: var(--bordeaux);
    border-radius: 8px;
}

progress::-moz-progress-bar {
    background-color: var(--bordeaux);
    border-radius: 8px;
}

.skills-software h3 {
    margin-top: 40px;
    color: #ff5a5a;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.soft-box {
    background-color: #222;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid var(--bordeaux);
    font-size: 0.95rem;
}

span {
    font-size: 20px;
}