/* assets/css/custom/tp.css */
/* TP (Travaux Pratiques) Styles - Version améliorée */

/* Forcer l'encodage UTF-8 */
@charset "UTF-8";

.single-tp-custom,
.single-quiz-custom,
.single-tuto-custom {
    font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
}


/* ========== RESET & BASE STYLES ========== */
.single-tp-custom .custom-article-style * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: inherit;
}

.single-tp-custom .custom-article-style {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8fafc;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-size: clamp(14px, 1.1vw, 16px);
}

/* Style principal pour les articles TP */
.single-tp-custom .article-tp-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    color: white;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.single-tp-custom .article-tp-custom::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    animation: tp-background 20s linear infinite;
}

@keyframes tp-background {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== TITRES ET BADGES ========== */
.single-tp-custom .tp-header {
    position: relative;
    z-index: 1;
}

.single-tp-custom .tp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.single-tp-custom .tp-badge-icon {
    font-size: 1.2rem;
}

.single-tp-custom .tp-badge-text {
    font-weight: 600;
    letter-spacing: 1px;
}

.single-tp-custom .tp-title {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.single-tp-custom .tp-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.single-tp-custom .tp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.single-tp-custom .tp-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.single-tp-custom .tp-meta-item i {
    font-size: 1.1rem;
    opacity: 0.8;
}

.single-tp-custom .tp-meta-item strong {
    font-weight: 600;
    opacity: 0.9;
}

.single-tp-custom .tp-objectives {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.single-tp-custom .tp-objectives h4 {
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.single-tp-custom .tp-objectives ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.single-tp-custom .tp-objectives li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding-left: 2rem;
}

.single-tp-custom .tp-objectives li:last-child {
    border-bottom: none;
}

.single-tp-custom .tp-objectives li::before {
    content: '?';
    position: absolute;
    left: 0;
    color: #4ade80;
    font-weight: bold;
}

.single-tp-custom .tp-content {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.single-tp-custom .tp-footer {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
}

.single-tp-custom .tp-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.single-tp-custom .tp-action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.single-tp-custom .tp-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.single-tp-custom .tp-action-btn:active {
    transform: translateY(0);
}

.single-tp-custom .tp-print-btn:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.single-tp-custom .tp-download-btn:hover {
    background: linear-gradient(135deg, #4ade80, #22d3ee);
}

.single-tp-custom .tp-complete-btn:hover {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

/* Difficulty indicators */
.single-tp-custom .difficulty-easy {
    color: #4ade80;
}

.single-tp-custom .difficulty-medium {
    color: #f59e0b;
}

.single-tp-custom .difficulty-hard {
    color: #ef4444;
}

.single-tp-custom .difficulty-expert {
    color: #8b5cf6;
}

/* ================= PROGRESSION TÂCHES ================= */
.single-tp-custom #task-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background: rgba(45, 45, 45, 0.95);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
}

.single-tp-custom #task-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3498db, #1abc9c);
    transition: width 0.3s ease;
}

.single-tp-custom #task-progress-label {
    position: relative;
    z-index: 2;
    margin-left: 20px;
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    white-space: nowrap;
}

/* ========== TASK HEADER WITH BACK TO SUMMARY ========== */
.single-tp-custom .task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #31a3af;
    flex-wrap: wrap;
    gap: 15px;
}

.single-tp-custom .task-title {
    color: #bd0310;
    font-size: clamp(18px, 1.5vw, 22px);
    margin: 0;
    flex: 1;
    min-width: 0;
}

.single-tp-custom .task-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Bouton Retour au sommaire amélioré */

.single-tp-custom .back-to-summary-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #31a3af;
    color: white; /* Texte blanc */
    text-decoration: none !important;
    padding: clamp(6px, 0.8vw, 8px) clamp(10px, 1.2vw, 15px);
    border-radius: 6px;
    font-size: clamp(12px, 0.9vw, 14px);
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 2px solid rgba(52, 152, 219, 0.3);
}

.single-tp-custom .back-to-summary-btn:hover {
    background: #2e8b94; /* Version plus foncée pour le survol */
    color: #f0f8ff; /* Texte bleu très clair au survol */
    border-color: #2e8b94;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 163, 175, 0.3);
}

.single-tp-custom .back-to-summary-text {
    color: white;
}

.single-tp-custom .back-to-summary-text:hover {
    color: yellow !important;
}

.single-tp-custom .back-to-summary-icon {
    color: white;
    font-size: 18px;
    font-weight: bold;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-tp-custom .back-to-summary-btn:hover .back-to-summary-icon {
    transform: rotate(360deg);
    transition: transform 0.5s ease;
}

/* Animation fluide pour le défilement */
.single-tp-custom html {
    scroll-behavior: smooth;
}

/* ========== QUESTION HEADER - CORRIGÉ POUR ALIGNEMENT PARFAIT ========== */
.single-tp-custom .question-header {
    display: flex;
    gap: clamp(10px, 1.5vw, 15px);
    margin-bottom: 15px;
    align-items: flex-start;
}

.single-tp-custom .question-actions {
    display: flex;
    align-items: flex-start;
    margin-left: auto;
    padding-left: 10px;
    flex-shrink: 0;
    height: clamp(40px, 4vw, 50px);
    justify-content: flex-start;
    padding-top: 0;
}

/* BOUTON CARRÉ - EXACTEMENT MÊME TAILLE QUE NUMÉRO */
.single-tp-custom .toggle-answer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: clamp(40px, 4vw, 50px);
    width: clamp(40px, 4vw, 50px);
    height: clamp(40px, 4vw, 50px);
    border-radius: 8px;
    border: none;
    background: #31a3af;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    flex-shrink: 0;
    margin: 0;
    line-height: 1;
    position: relative;
    top: 0;
    box-shadow: 0 4px 8px rgba(49, 163, 175, 0.3);
    font-weight: bold;
}

.single-tp-custom .toggle-answer-btn:hover {
    background: #2a8f9a;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(49, 163, 175, 0.4);
}

.single-tp-custom .toggle-answer-btn:active {
    transform: scale(0.98);
}

.single-tp-custom .toggle-icon {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: clamp(18px, 1.8vw, 22px);
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Animation de la flèche */
.single-tp-custom .toggle-answer-btn:hover .toggle-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* ========== SUMMARY SECTION ========== */
.single-tp-custom .summary-section {
    background: rgba(41, 128, 185, 0.08);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #2980b9;
}

.single-tp-custom .summary-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.single-tp-custom .summary-task {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid #31a3af;
    overflow: hidden;
}

.single-tp-custom .summary-task-link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 18px 20px;
    transition: background 0.2s;
}

.single-tp-custom .summary-task-link:hover {
    background: #f8fafc;
    text-decoration: none;
}

.single-tp-custom .summary-task-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.single-tp-custom .task-title-text {
    color: #2c3e50;
    font-size: clamp(14px, 1vw, 16px);
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.single-tp-custom .task-link-icon {
    color: #3498db;
    font-size: 16px;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.single-tp-custom .summary-task:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.single-tp-custom .summary-task:hover .task-link-icon {
    transform: translateX(3px);
    color: #2980b9;
}

/* Style pour la tâche active */
.single-tp-custom .task-container:target {
    animation: highlightTask 2s ease-out;
}

@keyframes highlightTask {
    0% { background-color: rgba(52, 152, 219, 0.2); }
    100% { background-color: transparent; }
}

/* ========== HEADER STYLES - NOUVEAU DESIGN ========== */
.single-tp-custom .document-header {
    background: linear-gradient(135deg, #1a2980 0%, #26a0da 100%);
    border-radius: 12px;
    padding: 25px 30px 30px 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(26, 41, 128, 0.15);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Première ligne : Logo, Titre, Version */
.single-tp-custom .header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: nowrap;
}

/* Logo à gauche */
.single-tp-custom .logo-container {
    flex: 0 0 auto;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.single-tp-custom .logo-container svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Titre juste à côté du logo */
.single-tp-custom .title-container {
    flex: 1;
    display: flex;
    align-items: center;
    margin-right: 20px;
    overflow: hidden;
}

.single-tp-custom .main-title {
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Version à droite */
.single-tp-custom .version-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.single-tp-custom .version-tag {
    padding: clamp(10px, 1.5vw, 14px) clamp(20px, 2.5vw, 30px);
    border-radius: 25px;
    font-weight: 800;
    font-size: clamp(14px, 1.1vw, 18px);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    text-align: center;
    min-width: min(200px, 30vw);
    color: white;
    font-family: 'Arial Black', 'Segoe UI', sans-serif;
}

.single-tp-custom .version-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

/* Séparateur entre l'en-tête et le tableau */
.single-tp-custom .header-separator {
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    margin: 20px 0 25px 0;
    border-radius: 2px;
}

/* Tableau d'informations */
.single-tp-custom .header-table-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.single-tp-custom .header-info-table {
    width: 100%;
    border-collapse: collapse;
}

.single-tp-custom .header-info-table th,
.single-tp-custom .header-info-table td {
    padding: clamp(10px, 1vw, 14px) clamp(12px, 1.2vw, 18px);
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    font-size: clamp(12px, 0.9vw, 14px);
}

.single-tp-custom .header-info-table th {
    width: 15%;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.single-tp-custom .header-info-table td {
    color: white;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
}

/* Supprimer la bordure droite sur la dernière colonne */
.single-tp-custom .header-info-table th:last-child,
.single-tp-custom .header-info-table td:last-child {
    border-right: none;
}

.single-tp-custom .header-info-table tr:last-child th,
.single-tp-custom .header-info-table tr:last-child td {
    border-bottom: none;
}

.single-tp-custom .header-info-table tr:hover td {
    background: rgba(255, 255, 255, 0.1);
}

/* ========== TOPOLOGY SECTION ========== */
.single-tp-custom .topology-section {
    background: rgba(41, 128, 185, 0.08);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #2980b9;
}

.single-tp-custom .topology-responsive-container {
    width: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 10px;
    position: relative;
}

.single-tp-custom .topology-responsive-container svg {
    display: block;
    min-width: 100%;
    width: auto;
    height: auto;
    max-width: none;
    transition: transform 0.3s ease;
    transform-origin: 0 0;
}

/* Contrôles de zoom */
.single-tp-custom .zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    border: 1px solid #ddd;
}

.single-tp-custom .zoom-btn {
    width: 50px;
    height: 40px;
    border: none;
    border-radius: 6px;
    background: #3498db;
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.single-tp-custom .zoom-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.single-tp-custom .zoom-btn.reset {
    background: #2ecc71;
}

.single-tp-custom .zoom-btn.reset:hover {
    background: #27ae60;
}

.single-tp-custom .zoom-btn.zoom-out {
    background: #e74c3c;
}

.single-tp-custom .zoom-btn.zoom-out:hover {
    background: #c0392b;
}

.single-tp-custom .zoom-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    display: none;
}

/* ========== OBJECTIVES SECTION ========== */
.single-tp-custom .objectives-section {
    background: rgba(255, 235, 59, 0.1);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #ff9800;
}

.single-tp-custom .section-title {
    color: #5d4037;
    font-size: clamp(16px, 1.3vw, 20px);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.single-tp-custom .title-icon {
    font-size: 24px;
}

.single-tp-custom .objectives-list {
    list-style: none;
    padding-left: 0;
}

.single-tp-custom .objective-item {
    padding: 10px 15px;
    margin-bottom: 8px;
    background: rgba(49, 162, 175, 0.5);
    border-radius: 6px;
    border-left: 3px solid #ff9800;
    transition: transform 0.2s, background-color 0.2s;
    color: #000000;
    font-size: clamp(13px, 1vw, 16px);
}

.single-tp-custom .objective-item:hover {
    transform: translateX(5px);
    background: rgba(255, 235, 59, 0.3);
}

/* ========== DATA TABLES SECTION ========== */
.single-tp-custom .tables-section {
    margin-bottom: 40px;
}

.single-tp-custom .data-table-container {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.single-tp-custom .table-title {
    color: #2c3e50;
    font-size: clamp(16px, 1.3vw, 20px);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.single-tp-custom .table-wrapper {
    overflow-x: auto;
}

.single-tp-custom .data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    border: 1px solid #e0e0e0;
}

.single-tp-custom .data-table th {
    background: #3498db;
    color: white;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: clamp(12px, 0.9vw, 14px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #2980b9;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

/* Supprimer la bordure droite sur la dernière colonne de l'en-tête */
.single-tp-custom .data-table th:last-child {
    border-right: none;
}

.single-tp-custom .data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    background: white;
    color: #333;
    border-right: 1px solid #e0e0e0;
    font-size: clamp(12px, 0.9vw, 14px);
}

/* Supprimer la bordure droite sur la dernière colonne des cellules */
.single-tp-custom .data-table td:last-child {
    border-right: none;
}

.single-tp-custom .data-table tr:nth-child(even) td {
    background: #f8f9fa;
}

.single-tp-custom .data-table tr:hover td {
    background: #e3f2fd;
}

.single-tp-custom .data-table tr:last-child td {
    border-bottom: none;
}

/* ========== TASK DESCRIPTION ========== */
.single-tp-custom .task-description {
    background: rgba(255, 182, 77, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 5px solid #ff9800;
    border-right: 2px solid rgba(255, 152, 0, 0.2);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    position: relative;
}

.single-tp-custom .task-description:before {
    content: "??";
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    background: #ff9800;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.3);
}

.single-tp-custom .description-content {
    color: #5d4037;
    font-size: clamp(13px, 1vw, 16px);
    line-height: 1.7;
    font-weight: 500;
    margin-left: 15px;
}

.single-tp-custom .description-content strong {
    color: #d84315;
    font-weight: 700;
}

.single-tp-custom .description-content br {
    margin-bottom: 10px;
    display: block;
    content: "";
}

/* Animation pour la description */
.single-tp-custom .task-description {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== TASKS & QUESTIONS ========== */
.single-tp-custom .global-answer-controls {
    margin-bottom: 25px;
    text-align: right;
}

.single-tp-custom .toggle-all-btn {
    padding: clamp(8px, 1vw, 10px) clamp(14px, 1.5vw, 18px);
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    font-weight: 700;
    cursor: pointer;
    font-size: clamp(12px, 0.9vw, 14px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.single-tp-custom .toggle-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.single-tp-custom .tasks-section {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.single-tp-custom .task-container {
    margin-bottom: 40px;
    background: rgba(49, 163, 175, 0.1);
    border-radius: 10px;
    padding: 25px;
    border-left: 4px solid #31a3af;
}

.single-tp-custom .task-container:last-child {
    margin-bottom: 0;
}

.single-tp-custom .question-container {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    transition: border-color 0.3s;
}

.single-tp-custom .question-container:hover {
    border-color: #31a3af;
}

/* NUMÉRO DE QUESTION - CARRÉ PARFAIT */
.single-tp-custom .question-number {
    min-width: clamp(40px, 4vw, 50px);
    width: clamp(40px, 4vw, 50px);
    height: clamp(40px, 4vw, 50px);
    background: #31a3af;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: clamp(14px, 1.2vw, 16px);
    box-shadow: 0 4px 8px rgba(49, 163, 175, 0.2);
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.single-tp-custom .question-text {
    flex: 1;
    color: #2c3e50;
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.5;
    padding: 0;
    font-weight: normal;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    align-self: flex-start;
    margin-top: 8px;
}

/* ========== ANSWERS ========== */
.single-tp-custom .answer-container {
    margin-top: 20px;
    display: none;
    width: 100%;
    padding: 0 20px;
    background: #1a1a1a;
    border-radius: 8px;
    border-left: 4px solid #2ecc71;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    box-sizing: border-box;
}

.single-tp-custom .answer-container.show {
    display: block;
    padding: 15px 20px;
}

.single-tp-custom .answer-label {
    color: #2ecc71;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: clamp(12px, 0.9vw, 14px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.single-tp-custom .answer-content {
    color: white;
    background: transparent;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: clamp(13px, 0.9vw, 14px);
    line-height: 1.5;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    max-width: 100%;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* Style pour les lignes de commandes spécifiques */
.single-tp-custom .answer-content pre {
    margin: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    white-space: pre-wrap;
    word-break: break-word;
    max-width: 100%;
    overflow-x: auto;
    width: 100%;
    box-sizing: border-box;
}

.single-tp-custom .ios-mode {
    color: #e5ff00;
    font-weight: 500;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* ========== FOOTER ========== */
.single-tp-custom footer {
    margin-top: 50px;
    padding: 25px;
    text-align: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: #666;
    font-size: clamp(12px, 0.9vw, 14px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.single-tp-custom .footer-logo-container {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    overflow: hidden;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 6px;
    padding: 5px;
}

.single-tp-custom .footer-logo {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    object-fit: contain;
}

.single-tp-custom .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.single-tp-custom footer span {
    color: #3498db;
    font-weight: 600;
    font-size: clamp(13px, 1vw, 15px);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .single-tp-custom .custom-article-style {
        padding: 15px;
    }

    .single-tp-custom .article-tp-custom {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .single-tp-custom .tp-title {
        font-size: 2rem;
    }

    .single-tp-custom .tp-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .single-tp-custom .tp-actions {
        flex-direction: column;
    }

    .single-tp-custom .tp-action-btn {
        width: 100%;
        justify-content: center;
    }

    .single-tp-custom .document-header {
        padding: 20px;
    }

    .single-tp-custom .header-top-row {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }

    .single-tp-custom .logo-container {
        width: 70px;
        height: 70px;
        margin-right: 15px;
        order: 1;
    }

    .single-tp-custom .title-container {
        order: 2;
        flex: 1;
        min-width: 0;
        margin-right: 0;
    }

    .single-tp-custom .version-container {
        order: 3;
        flex: 0 0 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .single-tp-custom .main-title {
        font-size: 22px;
        white-space: normal;
        text-align: left;
    }

    .single-tp-custom .version-tag {
        padding: 12px 25px;
        font-size: 16px;
        min-width: 180px;
    }

    .single-tp-custom .header-separator {
        margin: 15px 0 20px 0;
    }

    .single-tp-custom .header-table-container {
        padding: 12px;
    }

    .single-tp-custom .header-info-table th,
    .single-tp-custom .header-info-table td {
        padding: 12px;
        font-size: 14px;
    }

    /* ALIGNEMENT SUR MOBILE */
    .single-tp-custom .question-header {
        flex-direction: row;
        align-items: flex-start;
        flex-wrap: nowrap;
    }

    .single-tp-custom .question-actions {
        height: 40px;
        padding-top: 0;
        align-items: flex-start;
    }

    .single-tp-custom .toggle-answer-btn {
        min-width: 40px;
        width: 40px;
        height: 40px;
    }

    .single-tp-custom .toggle-icon {
        color: white;
        font-size: 18px;
    }

    .single-tp-custom .question-number {
        min-width: 40px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .single-tp-custom .question-text {
        font-size: 14px;
        margin-top: 8px;
    }

    .single-tp-custom .objectives-section,
    .single-tp-custom .data-table-container,
    .single-tp-custom .tasks-section {
        padding: 20px;
    }

    .single-tp-custom .task-container {
        padding: 20px;
    }

    .single-tp-custom footer {
        flex-direction: column;
        gap: 10px;
        padding: 20px;
    }

    .single-tp-custom .footer-logo-container {
        width: 40px;
        height: 40px;
    }

    .single-tp-custom .footer-content {
        order: 2;
    }

    /* Adaptation des réponses sur mobile */
    .single-tp-custom .answer-container {
        padding: 12px 15px;
        margin-top: 15px;
        min-width: 70%;
    }

    .single-tp-custom .answer-content {
        line-height: 2;
    }
    
    .single-tp-custom .task-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .single-tp-custom .task-title {
        font-size: 20px;
        width: 100%;
    }
    
    .single-tp-custom .task-header-actions {
        align-self: flex-end;
        gap: 10px;
    }
    
    .single-tp-custom .back-to-summary-btn {
	color : white;
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .single-tp-custom .back-to-summary-icon {
        width: 20px;
        height: 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .single-tp-custom .task-title {
        font-size: 18px;
    }
    
    .single-tp-custom .back-to-summary-btn {
	color: white;
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .single-tp-custom .back-to-summary-text {
	color: yellow;
        display: none;
    }
    
    .single-tp-custom .back-to-summary-btn .back-to-summary-icon {
	color: white;
        margin: 0;
    }
    
    .single-tp-custom .logo-container {
        width: 60px;
        height: 60px;
    }

    .single-tp-custom .main-title {
        font-size: 20px;
    }

    .single-tp-custom .header-info-table {
        font-size: 13px;
    }

    .single-tp-custom .header-info-table th,
    .single-tp-custom .header-info-table td {
        padding: 10px;
        display: block;
        width: 100%;
    }

    .single-tp-custom .header-info-table th {
        background: rgba(0, 0, 0, 0.15);
        font-size: 13px;
    }

    .single-tp-custom .header-info-table tr {
        display: block;
        margin-bottom: 10px;
    }

    .single-tp-custom .header-info-table th,
    .single-tp-custom .header-info-table td {
        border-right: none;
    }

    .single-tp-custom .footer-logo-container {
        width: 35px;
        height: 35px;
    }

    .single-tp-custom .answer-container {
        padding: 10px 12px;
        min-width: 80%;
    }

    .single-tp-custom .answer-label {
        font-size: 12px;
    }
    
    .single-tp-custom .question-header {
        gap: 8px;
    }
    
    .single-tp-custom .question-number {
        min-width: 35px;
        width: 35px;
        height: 35px;
        font-size: 13px;
    }
    
    .single-tp-custom .question-text {
        font-size: 13px;
        margin-top: 6px;
    }
    
    .single-tp-custom .question-actions {
        height: 35px;
    }
    
    .single-tp-custom .toggle-answer-btn {
        min-width: 35px;
        width: 35px;
        height: 35px;
    }
    
    .single-tp-custom .toggle-icon {
        color: white;
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .single-tp-custom .custom-article-style {
        font-size: 13px;
    }
    
    .single-tp-custom .question-header {
        gap: 5px;
    }
    
    .single-tp-custom .question-number {
        min-width: 30px;
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .single-tp-custom .question-text {
        font-size: 12px;
        margin-top: 4px;
    }
    
    .single-tp-custom .question-actions {
        height: 30px;
    }
    
    .single-tp-custom .toggle-answer-btn {
        color: white;
        min-width: 30px;
        width: 30px;
        height: 30px;
    }
    
    .single-tp-custom .toggle-icon {
        color: white;
        font-size: 14px;
    }
    
    .single-tp-custom .main-title {
        font-size: 18px;
    }
    
    .single-tp-custom .task-title {
        font-size: 16px;
    }
    
    .single-tp-custom .summary-section,
    .single-tp-custom .topology-section,
    .single-tp-custom .objectives-section,
    .single-tp-custom .data-table-container {
        padding: 15px;
    }
    
    .single-tp-custom .task-description {
        padding: 12px;
        margin-left: 10px;
        margin-right: 10px;
        border-left-width: 4px;
    }
    
    .single-tp-custom .task-description:before {
        left: -20px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .single-tp-custom .description-content {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* Media query pour les grands écrans */
@media (min-width: 1200px) {
    .single-tp-custom .answer-container {
        min-width: 600px;
        width: auto;
        display: none;
    }
    
    .single-tp-custom .answer-container.show {
        display: block;
    }
    
    .single-tp-custom .logo-container {
        width: 90px;
        height: 90px;
    }
    
    .single-tp-custom .main-title {
        font-size: 30px;
    }
    
    .single-tp-custom .version-tag {
        font-size: 20px;
        padding: 16px 35px;
    }
}

/* Print styles */
@media print {
    .single-tp-custom .article-tp-custom {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        border: 2px solid #333 !important;
    }
    
    .single-tp-custom .tp-action-btn,
    .single-tp-custom .toggle-answer-btn,
    .single-tp-custom .toggle-all-btn,
    .single-tp-custom .zoom-controls {
        display: none !important;
    }
}

/* ========== STYLES POUR SVG DE TOPOLOGIE ========== */
.single-tp-custom .topology-responsive-container svg {
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.single-tp-custom .topology-responsive-container svg .background {
    fill: none !important;
    stroke: none !important;
}

.single-tp-custom .topology-responsive-container svg .endpoint {
    fill: #03E262 !important;
    stroke: #03E262 !important;
    stroke-width: 2 !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
    z-index: 100 !important;
}

.single-tp-custom .topology-responsive-container svg .device-label-bg {
    fill: white !important;
    stroke: #3498db !important;
    stroke-width: 2 !important;
    rx: 8 !important;
    ry: 8 !important;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.1)) !important;
}

.single-tp-custom .topology-responsive-container svg .device-label {
    font-family: 'Segoe UI', Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    fill: #000000 !important;
    text-anchor: middle !important;
    dominant-baseline: middle !important;
    pointer-events: none !important;
}

.single-tp-custom .topology-responsive-container svg .interface-text-bg {
    fill: white !important;
    stroke: #bdc3c7 !important;
    stroke-width: 1 !important;
    rx: 3 !important;
    ry: 3 !important;
    opacity: 0.95 !important;
    transition: all 0.3s ease !important;
}

.single-tp-custom .topology-responsive-container svg .interface-text-middle {
    font-family: 'Consolas', 'Courier New', monospace !important;
    font-size: 11px !important;
    fill: #2c3e50 !important;
    font-weight: bold !important;
    text-anchor: middle !important;
    dominant-baseline: middle !important;
    pointer-events: none !important;
    transition: all 0.3s ease !important;
}

/* Styles pour les équipements réseau */
.single-tp-custom .topology-responsive-container svg .device-container {
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.single-tp-custom .topology-responsive-container svg .device-container:hover {
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.3)) !important;
}

.single-tp-custom .topology-responsive-container svg .device-icon {
    transition: all 0.3s ease !important;
}

.single-tp-custom .topology-responsive-container svg .device-container:hover .device-icon {
    opacity: 1 !important;
}

/* Styles pour les groupes de connexion */
.single-tp-custom .topology-responsive-container svg .connection-group {
    cursor: pointer !important;
}

.single-tp-custom .topology-responsive-container svg .connection-group:hover .cable-line {
    stroke-width: 6 !important;
    stroke: #3498db !important;
    opacity: 1 !important;
}

.single-tp-custom .topology-responsive-container svg .connection-group:hover .endpoint {
    fill: #02E363 !important;
    stroke: #02E363 !important;
    stroke-width: 3 !important;
    filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.5)) !important;
}

.single-tp-custom .topology-responsive-container svg .connection-group:hover .interface-text-bg {
    stroke: #ff0000 !important;
    stroke-width: 2 !important;
    fill: #fff9e6 !important;
}

.single-tp-custom .topology-responsive-container svg .connection-group:hover .interface-text-middle {
    fill: #ff0000 !important;
    font-weight: bold !important;
}

/* Câble Ethernet continu (défaut) */
.single-tp-custom .topology-responsive-container svg .ethernet-solid {
    stroke: #2c3e50 !important;
    stroke-width: 4 !important;
    fill: none !important;
    opacity: 0.9 !important;
    transition: stroke-width 0.3s, stroke 0.3s !important;
}

/* Câble Ethernet discontinu */
.single-tp-custom .topology-responsive-container svg .ethernet-dashed {
    stroke: #2c3e50 !important;
    stroke-width: 4 !important;
    stroke-dasharray: 5,5 !important;
    fill: none !important;
    opacity: 0.9 !important;
    transition: stroke-width 0.3s, stroke 0.3s !important;
}

/* Câble série/WAN (rouge vif, simple ligne droite) */
.single-tp-custom .topology-responsive-container svg .serial {
    stroke: #e74c3c !important;
    stroke-width: 4 !important;
    fill: none !important;
    opacity: 0.9 !important;
    transition: stroke-width 0.3s, stroke 0.3s !important;
}

/* Liaison sans fil (ondes) */
.single-tp-custom .topology-responsive-container svg .wireless {
    stroke: #9b59b6 !important;
    stroke-width: 4 !important;
    stroke-dasharray: 2,8 !important;
    fill: none !important;
    opacity: 0.7 !important;
    transition: stroke-width 0.3s, stroke 0.3s !important;
}

/* Styles supplémentaires pour améliorer l'affichage */
.single-tp-custom .topology-responsive-container svg .device-container {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.single-tp-custom .topology-responsive-container svg .connection-group:hover {
    z-index: 100 !important;
}

/* Animation pour les endpoints au survol */
@keyframes endpoint-pulse {
    0% { r: 6; }
    50% { r: 8; }
    100% { r: 6; }
}

.single-tp-custom .topology-responsive-container svg .connection-group:hover .endpoint {
    animation: endpoint-pulse 0.5s ease-in-out !important;
}

/* Effet de surbrillance pour les équipements */
.single-tp-custom .topology-responsive-container svg .device-container:hover .device-label-bg {
    stroke: #ff6b6b !important;
    fill: #fff5f5 !important;
}

.single-tp-custom .topology-responsive-container svg .device-container:hover .device-label {
    fill: #ff6b6b !important;
    font-weight: 700 !important;
}

/* Styles pour les câbles au survol */
.single-tp-custom .topology-responsive-container svg .connection-group:hover .ethernet-solid,
.single-tp-custom .topology-responsive-container svg .connection-group:hover .ethernet-dashed {
    filter: drop-shadow(0 0 8px rgba(52, 152, 219, 0.5)) !important;
}

/* Responsive pour SVG */
@media (max-width: 768px) {
    .single-tp-custom .topology-responsive-container svg .device-label {
        font-size: 12px !important;
    }
    
    .single-tp-custom .topology-responsive-container svg .interface-text-middle {
        font-size: 9px !important;
    }
    
    .single-tp-custom .topology-responsive-container svg .endpoint {
        r: 5 !important;
    }
    
    .single-tp-custom .topology-responsive-container svg .device-label-bg {
        stroke-width: 1.5 !important;
    }
}

@media (max-width: 480px) {
    .single-tp-custom .topology-responsive-container svg .device-label {
        font-size: 10px !important;
    }
    
    .single-tp-custom .topology-responsive-container svg .interface-text-middle {
        font-size: 8px !important;
    }
    
    .single-tp-custom .topology-responsive-container svg .endpoint {
        r: 4 !important;
    }
    
    .single-tp-custom .topology-responsive-container svg .ethernet-solid,
    .single-tp-custom .topology-responsive-container svg .ethernet-dashed,
    .single-tp-custom .topology-responsive-container svg .serial,
    .single-tp-custom .topology-responsive-container svg .wireless {
        stroke-width: 3 !important;
    }
}