.gc-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gc-field {
    margin-bottom: 18px;
}

.gc-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1d2327;
}

.gc-field select,
.gc-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
}

.gc-field textarea {
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

.gc-word-count {
    text-align: right;
    font-size: 12px;
    color: #757575;
    margin: 4px 0 0;
}

.gc-btn {
    background: #2c3e91;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.gc-btn:hover {
    background: #1f2c6e;
}

.gc-btn:disabled {
    background: #9aa0c4;
    cursor: not-allowed;
}

#gc-loading {
    margin-top: 20px;
    padding: 16px;
    background: #f0f0f5;
    border-radius: 6px;
    text-align: center;
    color: #444;
}

#gc-result {
    margin-top: 30px;
    border-top: 2px solid #2c3e91;
    padding-top: 20px;
}

.gc-note-globale {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e91;
    text-align: center;
    margin-bottom: 20px;
}

.gc-criteres {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.gc-critere {
    background: #f7f7fb;
    border-radius: 6px;
    padding: 12px 14px;
    border-left: 4px solid #2c3e91;
}

.gc-critere h4 {
    margin: 0 0 4px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #2c3e91;
}

.gc-critere .gc-note-detail {
    font-weight: 700;
    font-size: 18px;
}

.gc-critere p {
    margin: 6px 0 0;
    font-size: 13px;
    color: #444;
}

.gc-section-title {
    font-size: 17px;
    font-weight: 700;
    margin: 24px 0 10px;
    color: #1d2327;
}

.gc-erreur {
    background: #fff8f6;
    border-left: 4px solid #d63638;
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 10px;
}

.gc-erreur .gc-original {
    text-decoration: line-through;
    color: #d63638;
}

.gc-erreur .gc-correction {
    color: #1a7a3a;
    font-weight: 600;
}

.gc-erreur .gc-explication {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #555;
}

.gc-liste-points {
    padding-left: 20px;
}

.gc-liste-points li {
    margin-bottom: 6px;
}

.gc-texte-modele {
    background: #f0f6ff;
    border-radius: 6px;
    padding: 16px;
    white-space: pre-wrap;
    line-height: 1.6;
    border: 1px solid #cfe0fa;
}

.gc-examen-apercu {
    margin-bottom: 20px;
}

.gc-apercu-liste {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gc-apercu-liste li {
    background: #f7f7fb;
    border-left: 3px solid #2c3e91;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

#gc-ouvrir-examen {
    margin-right: 10px;
}

#gc-ouvrir-examen:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.gc-examen-titre {
    font-size: 22px;
    color: #1d2327;
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #2c3e91;
}

.gc-partie-bloc {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px dashed #d5d5e0;
}

.gc-partie-bloc:last-child {
    border-bottom: none;
}

.gc-page-reponse {
    background: #fff;
    border: 1px solid #e0e0e8;
    border-radius: 8px;
    padding: 18px;
    margin-top: 14px;
}

.gc-page-reponse label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d2327;
}

.gc-page-reponse textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.5;
    box-sizing: border-box;
    resize: vertical;
}

.gc-page-reponse .gc-word-count {
    text-align: right;
    font-size: 12px;
    color: #757575;
    margin: 4px 0 12px;
    font-weight: 600;
    transition: color 0.2s;
}

.gc-page-reponse .gc-word-count.gc-word-count-insuffisant {
    color: #d63638;
}

.gc-page-reponse .gc-word-count.gc-word-count-insuffisant::after {
    content: " — minimum non atteint";
    font-weight: 400;
}

.gc-loading-partie {
    margin-top: 14px;
    padding: 12px;
    background: #f0f0f5;
    border-radius: 6px;
    text-align: center;
    color: #444;
    font-size: 14px;
}

.gc-result-partie {
    margin-top: 20px;
    border-top: 2px solid #2c3e91;
    padding-top: 18px;
}

.gc-enonce-consigne p {
    margin: 0 0 10px;
}

.gc-enonce-consigne ul {
    margin: 0 0 10px;
    padding-left: 22px;
}

.gc-enonce-consigne li {
    margin-bottom: 6px;
}

.gc-examen-header {
    margin-bottom: 24px;
}

.gc-examen-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin: 10px 0 14px;
    flex-wrap: wrap;
}

.gc-examen-surtitre {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #757575;
    margin-bottom: 4px;
}

.gc-minuteur-bloc {
    text-align: center;
    background: #f7f7fb;
    border-radius: 8px;
    padding: 8px 20px;
    min-width: 110px;
}

.gc-minuteur-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #757575;
    margin-bottom: 2px;
}

.gc-minuteur {
    font-size: 26px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #2c3e91;
}

.gc-minuteur.gc-minuteur-alerte {
    color: #d63638;
}

.gc-examen-instructions {
    background: #eef0fb;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    margin: 0;
}

.gc-numero-tache {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2c3e91;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.gc-sujet-affiche-titres {
    flex-grow: 1;
}

.gc-partie-label {
    font-weight: 700;
    font-size: 15px;
    color: #1d2327;
}

.gc-mots-cible {
    font-size: 12px;
    color: #757575;
    margin-top: 2px;
}

.gc-examen-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #2c3e91;
}

.gc-btn-large {
    padding: 14px 40px;
    font-size: 17px;
}

.gc-examen-footer-note {
    font-size: 13px;
    color: #757575;
    margin-top: 10px;
}

.gc-redirection-msg {
    text-align: center;
    padding: 16px;
    background: #eef0fb;
    border-radius: 8px;
    margin-top: 20px;
    color: #2c3e91;
    font-weight: 600;
}

.gc-recap-titre {
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
    margin: 30px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2c3e91;
}

.gc-catalogue-filtres {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.gc-sujets-liste {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.gc-sujet-card {
    background: #fff;
    border: 1px solid #e0e0e8;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.gc-sujet-card h4 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #1d2327;
    line-height: 1.3;
}

.gc-sujet-apercu {
    font-size: 13px;
    color: #666;
    flex-grow: 1;
    margin: 0 0 10px;
    line-height: 1.4;
}

.gc-sujet-mots {
    display: inline-block;
    font-size: 11px;
    color: #2c3e91;
    background: #eef0fb;
    padding: 3px 8px;
    border-radius: 12px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.gc-btn-small {
    padding: 8px 14px;
    font-size: 13px;
}

.gc-catalogue-vide {
    grid-column: 1 / -1;
    color: #666;
    font-style: italic;
    padding: 20px;
    text-align: center;
    background: #f7f7fb;
    border-radius: 8px;
}

.gc-lien-retour {
    background: none;
    border: none;
    color: #2c3e91;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 16px;
    text-decoration: underline;
}

.gc-lien-retour:hover {
    color: #1f2c6e;
}

.gc-sujet-affiche {
    background: #fffbe6;
    border: 1px solid #f0d97a;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
}

.gc-sujet-affiche-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.gc-badge {
    display: inline-block;
    background: #2c3e91;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    margin-right: 6px;
}

.gc-badge-secondary {
    background: #e0b400;
    color: #3a3000;
}

.gc-sujet-affiche h3 {
    margin: 8px 0 12px;
    font-size: 18px;
    color: #1d2327;
}

.gc-sujet-affiche .gc-consigne-box {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 15px;
}

.gc-sujet-affiche .gc-consigne-box p {
    margin: 0 0 10px;
}

.gc-sujet-affiche .gc-consigne-box ul {
    margin: 0 0 10px;
    padding-left: 22px;
}

.gc-sujet-affiche .gc-consigne-box li {
    margin-bottom: 6px;
}

.gc-alerte-longueur {
    background: #fff4e5;
    border-left: 4px solid #e0a000;
    color: #7a5200;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}

.gc-consigne-box {
    background: #fffbe6;
    border: 1px solid #f0d97a;
    border-left: 4px solid #e0b400;
    border-radius: 6px;
    padding: 12px 14px;
    white-space: pre-wrap;
    line-height: 1.5;
    font-size: 14px;
    color: #3a3000;
}

.gc-btn-secondary {
    background: #fff;
    color: #2c3e91;
    border: 1px solid #2c3e91;
    margin-bottom: 16px;
}

.gc-btn-secondary:hover {
    background: #f0f2fb;
}

.gc-progression-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gc-progression-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.gc-stat-box {
    background: #f7f7fb;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    border-top: 3px solid #2c3e91;
}

.gc-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e91;
}

.gc-stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.gc-progression-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
    font-size: 14px;
}

.gc-progression-table th,
.gc-progression-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #e5e5e5;
}

.gc-progression-table th {
    background: #f7f7fb;
    font-weight: 600;
    color: #2c3e91;
}

.gc-error-msg {
    background: #fcf0f1;
    border-left: 4px solid #d63638;
    padding: 12px 14px;
    border-radius: 4px;
    color: #8a1f1f;
}
