/* Styles personnalisés pour le tutoriel - Ne pas inclure les styles généraux */
.tutorial-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin-bottom: 30px;
}

.chapter-header {
    background: #ff000038;
    padding: 30px;
    text-align: center;
    color: white;
}

.chapter-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.chapter-header .subtitle {
    color: black;
    font-size: 18px;
    opacity: 0.9;
}

.tp-header {
    background: #20c9973d;
    padding: 25px;
    text-align: center;
    color: white;
}

.tp-header h2 {
    font-size: 24px;
    font-weight: 600;
}

.content-section {
    padding: 30px;
}

.main-image {
    text-align: center;
    margin: 30px 0;
}

.main-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid #e9ecef;
}

.info-box {
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
    border-left: 5px solid;
}

.objective {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-left-color: #2196f3;
}

.prerequisites {
    background: linear-gradient(135deg, #fff3cd, #ffecb3);
    border-left-color: #ffc107;
}

.info-box h3 {
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.info-box h3 .icon {
    margin-right: 10px;
    font-size: 24px;
}

.prerequisites ul {
    list-style: none;
    padding-left: 0;
}

.prerequisites li {
    padding: 8px 0;
    font-size: 17px;
    border-bottom: 1px dashed #dee2e6;
}

.prerequisites li:last-child {
    border-bottom: none;
}

.prerequisites li::before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    margin-right: 10px;
}

.task-section {
    margin: 40px 0;
}

.task-header {
    background: #007bff33;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    color: white;
}

.task-header h3 {
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.task-header .icon {
    margin-right: 10px;
    font-size: 24px;
}

.step {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.step-number {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 15px;
    box-shadow: 0 3px 6px rgba(0, 123, 255, 0.3);
}

.step-content {
    flex: 1;
}

.step-content p {
    font-size: 17px;
    margin-bottom: 15px;
    line-height: 1.7;
}

.step-image {
    text-align: left;
    margin: 25px 0;
}

.step-image img {
    max-width: 70%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.08);
    border: 2px solid #ffffff;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
    margin-left: 0;
    margin-right: auto;
    object-fit: contain;
    background-color: #f8f9fa;
    padding: 2px;
}

.step-image img:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.12);
    border-color: #e9ecef;
}

.step-image figcaption {
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
    margin-top: 8px;
    padding: 0 10px;
    line-height: 1.4;
}

.step-image.zoomable {
    cursor: zoom-in;
}

.step-image.zoomable:hover::after {
    content: "🔍 Cliquez pour agrandir";
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.step-image.zoomable:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .step-image img {
        border-radius: 10px;
        border-width: 2px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }
    
    .step-image figcaption {
        font-size: 13px;
        margin-top: 6px;
    }
}

/* Pour les images dans les notes */
.note-box .step-image img {
    border: 2px solid #fff3cd;
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.15);
}

/* Pour les images dans les info-box */
.info-box .step-image img {
    border: 2px solid #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.note-box {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.note-box strong {
    color: #856404;
}

.download-section {
    text-align: center;
    margin: 50px 0 20px 0;
    padding: 30px;
    background: linear-gradient(135deg, #6c757d, #495057);
    border-radius: 15px;
}

.download-btn {
    display: inline-block;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 18px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #218838, #1e7e34);
}

.requirement-highlight {
    background: #e9ecef;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 15px;
}

.code {
    font-family: 'Consolas', monospace;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

@media (max-width: 768px) {
    .content-section {
        padding: 20px;
    }
    
    .chapter-header h1 {
        font-size: 24px;
    }
    
    .tp-header h2 {
        font-size: 20px;
    }
    
    .step {
        padding: 20px;
    }
    
    .download-btn {
        padding: 15px 25px;
        font-size: 18px;
    }
}

/* ----------------------------------------------------------------- */
/* Style du terminal – calqué sur .step-image img                   */
/* Alignement à gauche, marges identiques, animations et ombres     */
/* ----------------------------------------------------------------- */
.terminal {
    /* Alignement à gauche, marges identiques à .step-image */
    display: block;
    width: fit-content;
    margin: 25px 0;              /* même marge verticale que .step-image */
    margin-left: 0;              /* forcé à gauche */

    /* Intérieur : garde l’identité du terminal (couleurs, polices, espacement) */
    background-color: #ebe8de;
    color: black;
    font-family: 'Courier New', Courier, 'Fira Code', Consolas, monospace;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.6;
    padding: 24px 28px;
    white-space: nowrap;

    /* Apparence extérieure : copie conforme de .step-image img */
    border: 2px solid #ffffff;    /* blanc, comme l’image */
    border-radius: 6px;           /* identique à l’image */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-image: none;       /* suppression des scanlines */
}

/* Hover : exactement le comportement de l’image */
.terminal:hover {
    transform: scale(1.05);       /* léger zoom, similaire à l’image */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.12);
    border-color: #e9ecef;        /* comme l’image au hover */
}

/* Style de l’invite de commande (inchangé) */
.prompt {
    color: black;
    font-weight: 700;
    margin-right: 8px;
    text-shadow: 0 0 5px rgba(111, 207, 151, 0.3);
}

/* Chaque ligne de commande */
.line {
    margin: 0;
    padding: 2px 0;
}
.single .entry-content img {
	display: block;
	margin: 0px !important;
}