/* ==========================================================================
   1. CONFIGURATION GÉNÉRALE & VARIABLES
   ========================================================================== */
:root {
    --primary-red: #A61F2E;   /* Rouge du logo */
    --gold: #C4A456;          /* Doré de la Menorah */
    --gold-light: #e0c582;
    --bg-cream: #fdfaf0;      /* Aspect parchemin */
    --white: #ffffff;
    --dark: #1a1a1a;
    --glass: rgba(255, 255, 255, 0.95);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-cream);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden; /* Empêche les glissements horizontaux indésirables sur mobile */
}

/* ==========================================================================
   2. NAVIGATION
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: var(--glass);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-bottom: 3px solid var(--primary-red);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 50px;
    border-radius: 5px;
}

.logo-text {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: var(--primary-red);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary-red);
}

.btn-nav {
    background: var(--primary-red);
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}

/* ==========================================================================
   3. HERO SECTION & INTEGRATION CAROUSEL
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 4% 60px 4%; /* Protection accrue contre la navbar fixe */
    box-sizing: border-box;
}

.video-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

.hero-video {
    width: 100%; height: 100%; object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(166, 31, 46, 0.4));
}

.hero-main-layout {
    position: relative;
    z-index: 3;
    display: flex;
    width: 100%;
    max-width: 1300px;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 50%;
    text-align: left;
    color: white;
    animation: fadeIn 1.5s ease;
}

.hero-logo-img {
    width: 130px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.4));
}

.brand-name {
    font-family: 'Merriweather', serif;
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.5);
}

.welcome-text {
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.slogan-french {
    font-size: 1.6rem;
    font-style: italic;
    color: var(--gold);
}

.slogan-verse {
    font-size: 1.1rem;
    color: var(--gold-light);
    margin-bottom: 20px;
}

.hero-btns {
    margin-top: 30px;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    border: 2px solid var(--gold);
    transition: 0.4s;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background: var(--gold);
    color: var(--dark);
    transform: scale(1.05);
}

/* --- STRUCTURE CAROUSEL (CÔTÉ HERO) --- */
.hero-carousel-side {
    flex: 1;
    max-width: 45%;
    display: flex;
    justify-content: center;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    background: rgba(13, 27, 42, 0.4);
    border: 2px solid rgba(196, 164, 86, 0.3);
}

.carousel-slide-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(166, 31, 46, 0.75);
    color: white;
    border: none;
    font-size: 20px;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
    z-index: 5;
}
.carousel-btn:hover { background: #C4A456; color: #1a1a1a; }
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}
.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
}
.dot.active { background: #C4A456; transform: scale(1.2); }

/* ==========================================================================
   4. FORMULAIRE D'INSCRIPTION & BADGE ÉTUDIANT
   ========================================================================== */
.registration-container {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto; /* Exit la marge négative qui écrase le contenu sur tablette */
    padding: 0 20px;
}

.form-card {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border-top: 8px solid var(--primary-red);
}

.form-header {
    text-align: center;
    margin-bottom: 35px;
}

.form-header .subtitle {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.form-header h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.2rem;
    margin: 10px 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group.full-width {
    grid-column: 1 / -1;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-red);
    font-size: 0.9rem;
}

input, select {
    padding: 14px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
    background-color: #fff;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--gold);
    background: #fffdf9;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    padding: 20px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #8a1926;
    box-shadow: 0 10px 20px rgba(166, 31, 46, 0.3);
}

/* Badge Étudiant */
.badge-design {
    width: 320px;
    background: #ffffff;
    border-radius: 15px;
    margin: 30px auto;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 4px solid var(--gold);
}

.badge-header {
    background: var(--primary-red);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 3px solid var(--gold);
}

.badge-header img { width: 45px; height: 45px; border-radius: 50%; border: 2px solid white; object-fit: cover; }
.badge-title { color: #ffffff; font-weight: 700; font-size: 1rem; letter-spacing: 1px; }
.badge-body { padding: 30px 20px; text-align: center; background: radial-gradient(circle, #ffffff 60%, #fffdf6 100%); }
.badge-body .label { font-size: 0.75rem; font-weight: 600; color: #888; letter-spacing: 2px; margin-bottom: 5px; }
#badge-full-name { font-family: 'Merriweather', serif; font-size: 1.4rem; color: var(--primary-red); margin-bottom: 15px; font-weight: 700; }
.badge-info-row { display: inline-block; background: var(--bg-cream); padding: 6px 16px; border-radius: 50px; border: 1px solid #eaddc5; }
#badge-vacation { font-size: 0.85rem; font-weight: 700; color: var(--dark); }
.badge-footer { background: var(--dark); color: var(--gold); text-align: center; padding: 10px; font-size: 0.75rem; font-weight: 600; letter-spacing: 1px; }

/* ==========================================================================
   5. ESPACE PANEL ADMINISTRATION
   ========================================================================== */
.admin-container {
    padding: 120px 5% 50px;
    background-color: #f8f5ee;
    min-height: 100vh;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--gold);
}

.stat-card h3 {
    font-size: 2.2rem;
    color: var(--primary-red);
}

/* PROTECTION RESPONSIVE TABLEAU : Permet un scroll horizontal interne propre */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 800px; /* Force le tableau à garder sa structure lisible sans écraser les cellules */
}

thead th {
    background: var(--primary-red);
    color: white;
    padding: 18px;
    text-align: left;
    font-family: 'Merriweather', serif;
}

table tbody td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle !important; 
}

.col-communaute {
    display: table-cell; 
    vertical-align: middle !important;
    text-align: left;
    line-height: 1.2;
}

.eglise-block {
    display: block;
    color: #000000;
    font-weight: 600;
    margin-bottom: 2px;
}

.titre-block {
    display: block;
    color: var(--gold) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-matin { background: #e3f2fd; color: #1565c0; }
.badge-soir { background: #fff3e0; color: #e65100; }

.pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination a {
    padding: 10px 16px;
    background: white;
    border: 1px solid #ddd;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    color: var(--dark);
}

.pagination a.active {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

/* ==========================================================================
   6. BIOGRAPHIE & PRÉSENTATIONS
   ========================================================================== */
.bio-section { 
    padding: 80px 5%; 
    background: #ffffff; 
}

.container-bio { 
    max-width: 1100px; 
    margin: 0 auto; 
}

.bio-grid { 
    display: grid; 
    grid-template-columns: 1fr 1.5fr; 
    gap: 40px; 
    align-items: center; 
}

.bio-image-wrapper { 
    position: relative; 
    text-align: center; 
}

.bio-img { 
    width: 100%; 
    max-width: 350px; 
    border-radius: 15px; 
    box-shadow: 20px 20px 0px var(--gold); 
    border: 4px solid var(--gold); 
    object-fit: cover;
}

.bio-experience-badge { 
    position: absolute; 
    bottom: -10px; 
    right: 20px; 
    background: var(--primary-red); 
    color: white; 
    padding: 10px 20px; 
    border-radius: 8px; 
    text-align: center; 
    border: 2px solid var(--gold); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.bio-experience-badge .years { 
    display: block; 
    font-size: 1.8rem; 
    font-weight: 700; 
    line-height: 1; 
    color: var(--gold); 
}

.bio-experience-badge .exp-text { 
    font-size: 0.75rem; 
    text-transform: uppercase; 
}

.underline-left { 
    width: 60px; 
    height: 3px; 
    background: var(--primary-red); 
    margin: 15px 0 25px; 
}

.bio-intro { 
    font-size: 1.2rem; 
    font-weight: 600; 
    color: var(--primary-red); 
    margin-bottom: 20px; 
}

.bio-text-main p { 
    margin-bottom: 15px; 
    text-align: justify; 
    font-size: 0.95rem; 
    color: #444; 
    line-height: 1.8;
}

.bio-quote { 
    margin-top: 25px; 
    padding-left: 20px; 
    border-left: 4px solid var(--gold); 
}

.bio-quote blockquote {
    font-family: 'Merriweather', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 0;
}

.info-section { 
    padding: 80px 5%; 
    background: #fff; 
}

.container-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 50px; 
    align-items: center; 
}

.img-styled { 
    width: 100%; 
    border-radius: 15px; 
    border-left: 10px solid #A61F2E; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}

/* ==========================================================================
   7. SECTIONS À THÈMES & CONTENUS EXTÉRIEURS
   ========================================================================== */
.dark-section { 
    padding: 80px 5%; 
    background: #2c3e50; 
    color: white; 
    text-align: center; 
}

.dark-section .section-header p {
    color: #ccc;
    margin-top: 10px;
}

.section-header h2 { 
    font-size: 2.5rem; 
    margin-bottom: 10px; 
}

.cards-container { 
    display: flex; 
    justify-content: center; 
    gap: 30px; 
    margin-top: 40px; 
    flex-wrap: wrap; 
}

.content-card { 
    background: rgba(255,255,255,0.1); 
    padding: 40px; 
    border-radius: 15px; 
    width: 300px; 
    transition: 0.3s;
    border-bottom: 5px solid #C4A456;
}

.content-card:hover { 
    transform: translateY(-10px); 
    background: rgba(255,255,255,0.2); 
}

.card-icon { 
    font-size: 3rem; 
    margin-bottom: 20px; 
}

/* ==========================================================================
   8. PRÉSENTATION DES OUVRAGES HORIZONTAUX
   ========================================================================== */
.published-books-container {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-title {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 35px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.books-horizontal-list {
    display: flex;
    flex-direction: column;
    gap: 30px; 
    max-width: 950px; 
    margin: 40px auto 0 auto;
    padding: 0 10px;
}

.book-horizontal-item {
    display: flex;
    flex-direction: row; 
    background: #1a1a1a; 
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, border-color 0.2s ease;
    height: 220px;
}

.book-horizontal-item:hover {
    transform: translateX(5px); 
    border-color: #A61F2E; 
}

.book-img-box {
    width: 160px;
    min-width: 160px; 
    height: 100%;
    background: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.book-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.book-text-box {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

/* ==========================================================================
   9. GESTION DES ARCHIVES MÉDIAS
   ========================================================================== */
.archive-section {
    padding: 80px 5%;
    background: #ffffff;
    border-top: 1px solid #eee;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.archive-item {
    display: flex;
    flex-direction: column;
    padding: 0 !important; 
    overflow: hidden;
    background: white;
    border: 1px solid #eaddc5;
    transition: 0.3s ease;
}

.archive-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.archive-details {
    padding: 20px;
}

.archive-item .year {
    display: inline-block;
    padding: 5px 15px;
    background: #C4A456;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 20px;
    margin-bottom: 15px;
}

.archive-item:hover .year {
    background: #ffffff;
    color: #A61F2E;
}

.archive-details h4 { 
    margin: 5px 0; 
    color: var(--dark); 
    font-family: 'Merriweather', serif; 
}

.archive-details p { 
    font-size: 0.85rem; 
    color: #666; 
}

.media-container, .audio-placeholder {
    width: 100%;
    height: 160px;
    background: #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.archive-video { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.audio-placeholder { 
    background: linear-gradient(135deg, #2c3e50, #34495e); 
    color: var(--gold); 
}

.wave-icon { 
    font-size: 2.5rem; 
    animation: pulse 2s infinite; 
}

.photo-grid-mini {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    height: 160px;
    margin-bottom: 15px;
}

.mini-photo { 
    width: 100%; 
    height: 77px; 
    object-fit: cover; 
    border-radius: 4px; 
}

.more-photos { 
    background: var(--primary-red); 
    color: white; 
    border-radius: 4px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 700; 
    font-size: 1.1rem; 
}

/* ==========================================================================
   10. CONTACT & PIED DE PAGE (FOOTER)
   ========================================================================== */
.contact-section { 
    padding: 80px 5%; 
    background: #fff; 
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    display: flex;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border-left: 4px solid var(--primary-red);
    transition: 0.3s;
}

.info-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.icon-circle {
    width: 50px;
    height: 50px;
    background: var(--bg-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border: 1px solid var(--gold);
}

.info-details h4 { 
    color: var(--primary-red); 
    margin-bottom: 3px; 
    font-weight: 600; 
}

.info-details p { 
    font-size: 0.9rem; 
    color: #444; 
    line-height: 1.4; 
}

.contact-map-placeholder {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('assets/img/ecole.jpeg') center/cover;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 40px 20px;
    text-align: center;
    border: 2px solid var(--gold);
    min-height: 300px;
}

.map-overlay h3 { 
    font-family: 'Merriweather', serif; 
    font-size: 1.6rem; 
    color: var(--gold); 
    margin-bottom: 10px; 
}

.map-overlay p { 
    font-size: 0.95rem; 
    margin-bottom: 20px; 
    max-width: 400px; 
}

.btn-secondary { 
    display: inline-block; 
    padding: 12px 25px; 
    background: white; 
    color: var(--primary-red); 
    text-decoration: none; 
    font-weight: 700; 
    border-radius: 5px; 
    transition: 0.3s; 
}

.btn-secondary:hover { 
    background: var(--gold); 
    color: white; 
}

.footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

/* ==========================================================================
   11. ANIMATIONS KEYFRAMES
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(196, 164, 86, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(196, 164, 86, 0); }
    100% { box-shadow: 0 0 0 0 rgba(196, 164, 86, 0); }
}

/* ==========================================================================
   12. ZONE IMPRESSION (MEDIA PRINT)
   ========================================================================== */
@media print {
    .navbar, .controls-row, .pagination, .stats-grid, .footer, .no-print, button {
        display: none !important;
    }
    body { background: white !important; }
    table { width: 100%; border: 1px solid #000 !important; }
    th, td { border: 1px solid #000 !important; color: black !important; }
}

/* ==========================================================================
   13. GRAND NETTOYAGE & MEDIA QUERIES RESPONSIVE (MOBILES & TABLETTES)
   ========================================================================== */

/* --- TABLETTES & PETITS ÉCRANS D'ORDINATEURS --- */
@media (max-width: 992px) {
    .hero { 
        min-height: 100vh; 
        height: auto;
        padding-top: 110px; 
    }
    .hero-main-layout {
        flex-direction: column; /* Le carrousel passe sous le texte */
        text-align: center;
        gap: 40px;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    .hero-carousel-side {
        max-width: 80%;
        width: 100%;
    }
    .bio-grid, .contact-wrapper, .container-grid { 
        grid-template-columns: 1fr; 
    }
    .bio-grid {
        text-align: center;
    }
    .bio-image-wrapper {
        max-width: 400px;
        margin: 0 auto 50px;
    }
    .underline-left {
        margin: 15px auto 25px;
    }
    .bio-quote {
        border-left: none;
        border-top: 2px solid #C4A456;
        padding-top: 20px;
    }
}

/* --- SMARTPHONES (ÉCRANS STANDARDS) --- */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 4%;
    }
    .logo-text {
        font-size: 0.95rem; /* Réduit la taille pour éviter que le texte de la navbar casse */
    }
    .nav-links { 
        display: none; /* Cache les liens de base, idéal pour accueillir un menu burger */
    } 
    .brand-name { 
        font-size: 2.2rem; 
    }
    .welcome-text {
        font-size: 1rem;
    }
    .slogan-french {
        font-size: 1.3rem;
    }
    .form-card { 
        padding: 30px 15px; 
    }
    .form-header h2 {
        font-size: 1.6rem;
    }
    .btn-primary {
        padding: 14px 24px;
        font-size: 0.85rem;
        width: 100%; /* Le gros bouton s'adapte à toute la largeur sur mobile */
    }
}

/* --- PETITS SMARTPHONES --- */
@media (max-width: 650px) {
    .book-horizontal-item {
        flex-direction: column; 
        height: auto; 
    }
    .book-img-box {
        width: 100%;
        height: 250px; 
    }
    .book-text-box {
        padding: 20px;
    }
}
/* ==========================================================================
   MODIFICATIONS POUR LE MENU MOBILE (SOUS 768px)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* 1. Configuration du bouton Burger */
    .burger-menu {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1100; /* Reste au-dessus du menu ouvert */
        padding: 5px;
    }

    .burger-menu .bar {
        width: 30px;
        height: 3px;
        background-color: var(--primary-red);
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    /* Animation du burger en "X" quand il est actif */
    .burger-menu.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .burger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* 2. Transformation du menu en panneau coulissant */
    .nav-links {
        display: flex; /* On réactive le flex */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px; /* Plus d'espace entre les liens sur mobile */
        
        /* Positionnement absolu pour couvrir l'écran */
        position: fixed;
        top: 0;
        right: -100%; /* Caché par défaut sur la droite */
        width: 80%; /* Prend 80% de la largeur de l'écran */
        height: 100vh;
        background: var(--glass);
        backdrop-filter: blur(10px); /* Effet flou moderne */
        -webkit-backdrop-filter: blur(10px);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        border-left: 3px solid var(--gold);
        
        transition: right 0.4s ease-in-out;
        z-index: 1050;
    }

    /* Classe qui sera ajoutée en JavaScript pour ouvrir le menu */
    .nav-links.active {
        right: 0; /* Le menu glisse vers l'intérieur */
    }

    /* Ajustement des liens pour le mobile */
    .nav-links a {
        font-size: 1.3rem;
        width: 100%;
        text-align: center;
    }

    .btn-nav {
        display: inline-block;
        width: auto;
        padding: 12px 30px;
    }
}