/* Style pour l'image de couverture */
.hero-image
{
    width: 100%;
    height: 400px; /* Hauteur fixe sur PC */
    object-fit: cover; /* Remplit l'espace sans déformer */
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Adaptation pour les petits écrans (mobiles) */
@media (max-width: 600px)
{
    .hero-image
    {
        height: 250px; /* On réduit la hauteur sur mobile */
    }
}

/* Style pour le bloc de code */
pre
{
    padding: 1.5rem;
    border-left: 4px solid var(--primary);
}

/* IMAGES AVEC LEGENDE */

/* Centrage et espacement de l'image dans l'article */
.article-inset
{
    text-align: center;
    margin: 3rem auto;
    max-width: 100%;
}

.article-inset img
{
    max-width: 100%; /* S'ajuste si l'image est plus grande que l'article */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Style du cartouche pour la légende */
.article-inset figcaption
{
    display: inline-block; /* Pour que le fond épouse la largeur du texte */
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: #2d333b; /* Gris anthracite PicoCSS */
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* DOCUMENT */

/* Conteneur pour centrer le lien de téléchargement */
.download-container
{
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

/* Style du lien en mode "cartouche" */
.doc-link
{
    display: inline-flex;
    align-items: center;
    gap: 12px; /* Espace entre l'icône et le texte */
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--primary);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: transparent;
}

/* Taille contrôlée de la petite icône doc.png */
.doc-icon
{
    width: 32px;
    height: auto;
    display: block;
}

/* Effet au survol */
.doc-link:hover
{
    background-color: var(--primary-focus);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Adaptation pour le texte du lien */
.doc-link span
{
    font-weight: 500;
    font-size: 0.95rem;
}


/* CSS POUR IMAGE SIMPLE (SANS LEGENDE) */
.article-clean
{
    display: block;
    margin: 3rem auto; /* Espacement vertical entre les paragraphes */
    max-width: 100%;
    height: auto;
    text-align: center;
}

.article-clean img
{
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* CITATION */
blockquote
{
    margin: 3rem 0;
    padding: 2rem;
    /* Un gris plus marqué pour bien détacher la citation */
    background-color: #f0f2f5; 
    /* On garde la bordure colorée pour le rappel visuel */
    border-left: 5px solid var(--primary);
    border-radius: 4px 12px 12px 4px;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #374151; /* Un gris très foncé pour le texte pour une lecture reposante */
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02); /* Léger effet de profondeur */
}

blockquote cite
{
    display: block;
    margin-top: 1rem;
    font-size: 0.95rem;
    font-style: normal;
    font-weight: bold;
    text-align: right;
    color: var(--primary);
}

/* Classes de mise en évidence (Highlights) */
.hi-vert   { color: #2e7d32; font-weight: bold; }
.hi-rouge  { color: #c62828; font-weight: bold; }
.hi-bleu   { color: #1565c0; font-weight: bold; }
.hi-orange { color: #ef6c00; font-weight: bold; }

/* Conteneur pour TABLEAU */
.table-container
{
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Style spécifique pour l'en-tête du tableau */
table thead tr th
{
    background-color: #454d57; /* Gris bleuté élégant */
    color: white;
    border-bottom: none;
    padding: 1rem;
}

/* Arrondir les coins supérieurs du tableau */
table thead tr th:first-child { border-radius: 8px 0 0 0; }
table thead tr th:last-child  { border-radius: 0 8px 0 0; }

/* INCLUSION DE VIDEO Youtube Responsive */
.video-container
{
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    /*border-radius: 8px;*/
    margin: 2.5rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.video-container iframe
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
