/* ===== Body (hors colonne) ===== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #a0a0a0; /* gris foncé autour de la colonne */
    color: #1e1e1e;
    display: flex;
    justify-content: center; /* centre la colonne horizontalement */
    padding: 20px 0; /* un peu d’espace vertical */
}

/* ===== Colonne principale ===== */
.page-wrapper {
    width: 1000px; /* largeur fixe de la colonne */
    background-color: #d6d6d6; /* gris moyen pour la colonne */
    border-radius: 8px;
    overflow: hidden; /* coins arrondis appliqués à tout le bloc */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* léger relief */
}

/* ===== Header ===== */
header {
    background-color: #b0b0b0;
    color: #111111;
    padding: 20px;
    text-align: center;
    font-size: 1.8em;
    font-weight: bold;
    border-bottom: 1px solid #999;
}

/* Garde le style du lien dans le header */
header a {
    color: inherit;
    text-decoration: none;
    display: block; /* occupe tout le header */
    transition: color 0.3s ease;
}

/* Effet hover quand la souris est sur tout le header */
header:hover a {
    transform: scale(1.05);
}

/* ===== Hero Section ===== */
.hero {
    background-color: #9ab8c2;
    color: #fff;
    text-align: center;
    padding: 20px 20px;
}
.hero h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}
.hero p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== Container ===== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== Cartes de livres (compactes) ===== */
.book-advice {
    display: flex;
    background-color: #e0e0e0;
    border-radius: 8px;
    padding: 10px 15px; /* réduit l’espace interne */
    margin-bottom: 15px; /* réduit l’espace entre cartes */
    gap: 15px; /* réduit l’espace entre colonnes de la carte */
    align-items: flex-start;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ===== Gauche (+logos) ===== */
.left img {
    width: auto;
    height: 180px;
    border-radius: 8px;
    display: block;
}

.external-links {
    margin-top: 6px; /* réduit l’espace sous l’image */
    display: flex;
    gap: 6px; /* réduit l’espace entre logos */
    /*justify-content: center;  centre horizontalement */
}

.logo {
    width: 24px !important;
    height: 24px !important;
    opacity: 0.8;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.logo:hover {
    opacity: 1;
    transform: scale(1.5);
    /* box-shadow: 0 0 20px 10px gold;  Halo doré */
}

/* ===== Milieu ===== */
.middle {
    flex: 1 1 auto; /* prend tout l'espace restant */
    min-width: 0; /* évite que le texte force la largeur à s'agrandir */
}

.middle h2 {
    margin-top: 0;
    margin-bottom: 4px; /* plus compact */
    font-size: 1.3em;
    color: #005f99;
}

.middle .author,
.middle .year,
.middle .quote {
    margin-bottom: 4px; /* réduit l'espacement vertical */
}

.middle .quote {
    margin-top: 15px; /* légèrement réduit */
    font-style: italic;
    color: #444;
    margin-left: 30px;
}

/* ===== Droite ===== */

.video-card {
    width: 320px;
    margin: 0px;
    font-family: sans-serif;
    flex-shrink: 0;
}

.video-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.video-link:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
    width: 320px;
    height: 180px;
    display: block;
    border-radius: 8px 8px 0 0;
    transition: opacity 0.3s ease;
}

.video-caption {
    background-color: #e0e0e0;
    padding: 0px;
    display: flex;
    align-items: center;
    border-radius: 0 0 8px 8px;
    transition: background-color 0.3s ease;

    gap: 6px; /* espace entre le logo et le texte */
    margin-top: 4px; /* réduit l’espace au-dessus */
    font-size: 0.9em;
    font-weight: bold;
}

.ytlogo {
    width: 24px;
    height: 24px;
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.85em;
    color: #333;
    border-top: 1px solid #999;
    background-color: #b0b0b0;
    margin-top: 40px; /* espace entre le contenu et le footer */
}
