body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(120deg, #f4f6fa 80%, #eaf0fb 100%);
    color: #1a1a1a;
}
.container {
    max-width: 1000px;
    margin: 40px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(44,62,80,0.07);
    padding: 32px 20px 28px 20px;
}
h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}
p {
    text-align: center;
    margin-bottom: 26px;
    line-height: 1.5;
    color: #333;
}
.links {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 26px;
}
.link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: #f1f3f6;
    border-radius: 9px;
    padding: 12px 16px;
    font-weight: 500;
    font-size: 1.08rem;
    transition: background 0.2s, box-shadow 0.2s;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(44,62,80,0.03);
}
.link:hover {
    background: #dde6f6;
    box-shadow: 0 4px 16px rgba(44,62,80,0.10);
}
.link img {
    height: 26px;
    width: 26px;
    flex-shrink: 0;
    display: block;
}
/* Cards livres */
.livres-container {
    margin-top: 18px;
    margin-bottom: 24px;
}
.livres-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    justify-items: center;
}
.livre-card {
    background: #f6f9fc;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(44,62,80,0.06);
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 14px 20px 14px;
    transition: box-shadow 0.18s;
}
.livre-card:hover {
    box-shadow: 0 6px 16px rgba(44,62,80,0.12);
}
.livre-card img {
    width: 120px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.07);
    background: #fff;
}
.livre-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    width: 100%;
}
.livre-btn {
    flex: 1 1 0;
    width: 100%;
    display: flex;
    align-items: center;       /* centre vertical */
    justify-content: center;   /* centre horizontal */
    text-align: center;
    padding: 11px 0;
    border-radius: 7px;
    border: none;
    background: #2c3e50;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.16s;
    min-width: 0;
    box-sizing: border-box;
}
.livre-btn.amazon {
    background: #e6a800;
    color: #fff;
}
.livre-btn:hover {
    background: #25405b;
}
.livre-btn.amazon:hover {
    background: #cf9100;
}

/* Styles pour les titres de sections */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin: 32px 0 20px 0;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #2c3e50;
    margin: 8px auto 0;
    border-radius: 2px;
}

/* Section Articles */
.articles-container {
    margin-top: 24px;
    margin-bottom: 32px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
}

.article-card {
    background: #f6f9fc;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(44,62,80,0.06);
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    padding: 16px;
    transition: box-shadow 0.18s, transform 0.18s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    box-shadow: 0 6px 20px rgba(44,62,80,0.12);
    transform: translateY(-2px);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.07);
}

.article-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
}

.article-preview {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Section Vidéos */
.videos-container {
    margin-top: 24px;
    margin-bottom: 32px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    justify-items: center;
}

.video-card {
    background: #f6f9fc;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(44,62,80,0.06);
    width: 100%;
    max-width: 450px;
    padding: 16px;
    transition: box-shadow 0.18s;
}

.video-card:hover {
    box-shadow: 0 6px 20px rgba(44,62,80,0.12);
}

.video-card iframe {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    border: none;
    margin-bottom: 12px;
}

.video-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    text-align: center;
}

/* Modal pour les images */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: 3% auto;
    width: 90%;
    max-width: 900px;
    text-align: center;
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 1001;
}

.close:hover {
    color: #ccc;
}

.modal-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    color: #2c3e50;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    pointer-events: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-btn:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.modal-info {
    margin-top: 15px;
    color: #fff;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-counter {
    font-size: 1rem;
    color: #ccc;
}

/* Section Ressources complémentaires */
.ressources-container {
    margin: 32px 0 36px 0;
}
.ressources-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 18px;
    position: relative;
}
.ressources-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: #2c3e50;
    margin: 8px auto 0;
    border-radius: 2px;
}
.ressources-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 700px;
    margin: 0 auto;
}
.ressource-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #f6f9fc;
    border-radius: 11px;
    box-shadow: 0 2px 10px rgba(44,62,80,0.06);
    padding: 16px 18px;
    transition: box-shadow 0.18s, background 0.18s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.ressource-card:hover {
    background: #dde6f6;
    box-shadow: 0 4px 16px rgba(44,62,80,0.10);
}
.ressource-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    margin-top: 2px;
}
.ressource-content {
    flex: 1 1 0;
}
.ressource-title-link {
    font-size: 1.08rem;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.18s;
}
.ressource-card:hover .ressource-title-link {
    color: #1a5bb8;
}
.ressource-desc {
    font-size: 0.97rem;
    color: #555;
    margin-top: 2px;
}
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .close {
        top: -40px;
        font-size: 28px;
    }
    
    .ressources-list {
        gap: 11px;
        padding: 0 2px;
    }
    .ressource-card {
        padding: 12px 7px;
        gap: 10px;
    }
    .ressource-icon {
        width: 28px;
        height: 28px;
    }
    .ressources-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
}

/* Responsive : 2 colonnes tablette, 1 colonne mobile */
@media (max-width: 900px) {
    .container {
        max-width: 650px;
    }
    .livres-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .livre-card {
        width: 200px;
    }
    
    .articles-grid,
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .video-card iframe {
        height: 200px;
    }
}
@media (max-width: 600px) {
    .container {
        margin: 12px 2px;
        padding: 10px 3px 10px 3px;
        max-width: 99vw;
    }
    .livres-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }
    .livre-card {
        width: 100%;
        max-width: 310px;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin: 24px 0 16px 0;
    }
    
    .article-card img {
        height: 150px;
    }
    
    .video-card iframe {
        height: 180px;
    }
    
    .video-title {
        font-size: 1rem;
    }
}
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
        padding-left: 48px;
        padding-right: 48px;
    }
    .livres-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px 80px;
        justify-items: center;
    }
    .livre-card {
        width: 420px;
        max-width: 100%;
        padding: 32px 28px 36px 28px;
    }
    .livre-card img {
        width: 200px;
        height: 300px;
        margin-bottom: 18px;
    }
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    .ressources-list {
        max-width: 1000px;
    }
    .ressources-container {
        margin-top: 48px;
        margin-bottom: 56px;
    }
    .section-title, .ressources-title {
        margin-top: 48px;
        margin-bottom: 32px;
    }
}