/* assets/css/42profile.css */

/* --- SECTION DÉROULANTE (ACCORDÉON) --- */
details.content-card {
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

summary.accordion-header {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    padding: 5px 0;
}

summary.accordion-header::-webkit-details-marker {
    display: none;
}

summary.accordion-header h2 {
    display: inline-block;
    margin: 0;
}

summary.accordion-header::after {
    content: "▼";
    font-size: 0.8rem;
    transition: transform 0.25s ease;
    opacity: 0.7;
    color: #00babc;
}

details[open] summary.accordion-header::after {
    transform: rotate(-180deg);
}

/* --- TOP COMPÉTENCES --- */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
}

.skill-name {
    font-weight: bold;
    color: #fff;
}

.skill-level {
    color: #00babc;
    font-weight: 600;
}

.skill-bar-bg {
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar-fill {
    background: #00babc;
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease-in-out;
}

/* --- GRILLE DES PROJETS --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 186, 188, 0.3);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: #00babc;
    box-shadow: 0 4px 15px rgba(0, 186, 188, 0.25);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.project-card-title {
    font-weight: bold;
    font-size: 1.1em;
    color: #fff;
}

.project-badge-mark {
    background: #00babc;
    color: #fff;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.85em;
}

/* --- BADGES --- */
.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90px;
    text-align: center;
    font-size: 0.8em;
    cursor: pointer;
}

.badge-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 5px;
    transition: transform 0.2s ease;
}

.badge-item:hover img {
    transform: scale(1.15);
}

/* --- ÉVÉNEMENTS --- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.event-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 186, 188, 0.3);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-card:hover {
    transform: translateY(-3px);
    border-color: #00babc;
    box-shadow: 0 4px 15px rgba(0, 186, 188, 0.25);
}

.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.event-title {
    font-weight: bold;
    font-size: 1.05em;
    color: #fff;
}

.event-kind {
    background: #00babc;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
}

/* --- PARTENARIATS --- */
.partnerships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.partnership-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 186, 188, 0.3);
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.partnership-card:hover {
    transform: translateY(-3px);
    border-color: #00babc;
    box-shadow: 0 4px 15px rgba(0, 186, 188, 0.25);
}

.partnership-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.partnership-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
}

.partnership-title {
    font-weight: bold;
    font-size: 1.05em;
    color: #fff;
}

.partnership-role {
    font-size: 0.85em;
    color: #00babc;
}

.partnership-desc {
    font-size: 0.85em;
    opacity: 0.8;
    line-height: 1.4;
    margin-top: 8px;
}

/* --- MODALES GENERIQUES & SPÉCIFIQUES --- */
.modal, 
.project-modal, 
.event-modal, 
.badge-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content, 
.project-modal-content, 
.event-modal-content {
    background: #1e1e1e;
    border: 1px solid #00babc;
    border-radius: 10px;
    padding: 25px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    color: #fff;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 186, 188, 0.3);
}

.modal-close, 
.project-modal-close, 
.event-modal-close, 
.badge-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #ccc;
    transition: color 0.2s;
}

.modal-close:hover, 
.project-modal-close:hover, 
.event-modal-close:hover, 
.badge-modal-close:hover {
    color: #00babc;
}

/* Détails internes Modales */
.evaluation-item {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #00babc;
    padding: 12px;
    margin-top: 12px;
    border-radius: 4px;
}

.eval-meta {
    font-size: 0.85em;
    opacity: 0.8;
    margin-bottom: 6px;
}

.eval-comment {
    font-style: italic;
    line-height: 1.4;
    white-space: pre-wrap;
}


.project-info-badge {
    margin: 10px 0 20px 0;
    display: flex;
    gap: 15px;
    font-size: 1.1em;
}

.status-success {
    color: #2ecc71;
    font-weight: bold;
}

.status-fail {
    color: #e74c3c;
    font-weight: bold;
}