@charset "utf-8";

/* Reset et police pour l'iframe */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 10px;
    background-color: #fffff;
    color: #333;
}

/* Titre centré (si vous en avez un) */
h1 {
    text-align: center;
}

/* Style des cartes d'expériences */
.card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Conteneur des lignes (empile les lignes verticalement) */
.card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Ligne 1 : Date (gras, rouge), Niveau (centré), Lien (droite) */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.card-date {
    font-weight: bold;
    color: #710a0c;
}

.card-niveau {
    font-weight: normal;
    color: #555;
}

.card-lien {
    font-size: 0.85rem;
    color: #0066cc;
    text-decoration: none;
}

.card-lien:hover {
    text-decoration: underline;
}

/* Ligne 2 : Espace Activité (gauche) / Objectif (droite) */
.card-middle {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.card-espace {
    font-weight: normal;
}

.card-objectif {
    font-weight: normal;
}

/* Ligne 3 : Déroulé (gras, multi-lignes) */
.card-deroule {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #eee;
}

.card-deroule-title {
    font-weight: bold;
    margin-bottom: 4px;
    color: #333;
}

.card-deroule-content {
    line-height: 1.5;
    white-space: pre-line;
}

/* Responsive : empile les éléments sur petits écrans */
@media (max-width: 600px) {
    .card-header, .card-middle {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .card-niveau, .card-objectif, .card-lien {
        text-align: left;
    }
}