CSS
/* ==================================================
   1. STYLES GÉNÉRAUX ET RÉINITIALISATION
================================================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Georgia', serif;
    color: #222222;
    background-color: #faf8f5 !important;
    line-height: 1.6;
}

/* ==================================================
   2. EN-TÊTE ÉPURÉ & LOGO FIXE EN HAUT
================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #faf8f5 !important;
    border-bottom: 2px solid #e3decb !important;
    z-index: 1000;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background-color: #faf8f5 !important;
}

.site-branding {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 0;
}

.site-branding a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-header-img {
    height: 75px !important;
    width: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.site-nav a {
    text-decoration: none;
    color: #333333;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: #ba372a;
}

.header-search form {
    display: flex;
    gap: 6px;
}

.header-search input[type="text"] {
    padding: 6px 12px;
    border: 1px solid #dcd5c0 !important;
    background-color: #ffffff !important;
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    color: #222222 !important;
    border-radius: 3px;
}

.header-search input[type="submit"] {
    padding: 6px 14px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    border-radius: 3px;
    transition: background 0.2s;
}

.header-search input[type="submit"]:hover {
    background: #ba372a;
}

/* ==================================================
   3. CONTENU PRINCIPAL & GRILLE DE CATALOGUE
================================================== */
.site-content {
    max-width: 1300px;
    margin: 125px auto 60px auto;
    padding: 0 20px;
    min-height: 60vh;
    background-color: transparent !important;
}

.grille-catalogue {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    align-items: start; 
    background-color: transparent !important;
}

.carte-livre {
    background-color: #faf8f5 !important;
    border: 1px solid #e3decb !important;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-shadow: none !important;
    margin-bottom: 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carte-livre:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.couverture-container {
    display: block;
    text-align: center;
    margin: 0 0 10px 0;
    padding: 0;
    width: 100%;
    line-height: 0; 
    background-color: transparent !important;
}

.carte-livre img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    padding: 0;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}

.infos-livre {
    display: block;
    margin-top: 5px;
    background-color: transparent !important;
}

.genre-tag {
    font-size: 0.8rem;
    color: #ba372a !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    display: block;
    margin: 0 0 5px 0;
}

.titre-livre {
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    color: #111;
    margin: 0 0 10px 0;
}

.description-livre {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

.lien-extrait {
    font-size: 0.85rem;
    color: #000099;
    text-decoration: underline;
    display: inline-block;
    margin-bottom: 15px;
}

.form-panier {
    margin-top: auto;
    width: 100%;
}

/* ==================================================
   4. PIED DE PAGE (FOOTER)
================================================== */
.site-footer {
    background-color: #1a1a1a;
    color: #cccccc;
    padding: 60px 20px 20px 20px;
    border-top: 3px solid #ba372a;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-col p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #aaaaaa;
    margin: 0 0 10px 0;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid #333333;
    text-align: center;
    font-size: 0.8rem;
    color: #777777;
}

/* ==================================================
   ACCUEIL ÉDITORIAL & GRILLE DES CATÉGORIES
================================================== */
.accueil-editorial {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    background-color: transparent !important;
}

/* Grille des 5 catégories en haut */
.grille-categories-accueil {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 10px 0 40px 0;
}

.card-cat {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 150px;
    padding: 15px;
    border-radius: 6px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}

.card-cat:hover {
    transform: translateY(-3px);
}

.card-cat-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.card-cat-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Caractères agrandis pour les titres des catégories */
.card-cat-content h3 {
    color: #ffffff;
    font-family: 'Georgia', serif;
    font-size: 1.15rem; 
    letter-spacing: 0.8px;
    margin: 0 0 6px 0;
    text-transform: uppercase;
}

/* Caractères agrandis pour les descriptions des catégories */
.card-cat-content p {
    color: #f0f0f0;
    font-size: 0.85rem; 
    line-height: 1.35;
    margin: 0;
}

/* Section Nouveautes */
.section-nouveautes {
    margin-top: 40px;
    margin-bottom: 40px;
}

.en-tete-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.en-tete-section h2 {
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lien-voir-total {
    color: #ba372a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Héro / À la une */
.hero-accueil {
    background: #1a1a1a url('RESSOURCES/hero-bg.jpg') center/cover no-repeat;
    color: #ffffff;
    padding: 50px 40px;
    margin-bottom: 50px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-image-lien {
    flex: 1;
    max-width: 45%;
    display: block;
}

.img-gengenbach-hero {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hero-contenu {
    flex: 1;
    text-align: left;
}

.hero-accueil h1 {
    font-size: 2.3rem;
    font-family: 'Georgia', serif;
    margin: 10px 0;
    line-height: 1.2;
}

.tag-or {
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: bold;
}

.sous-titre-hero {
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.9;
    margin: 5px 0;
}

.auteur-hero {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 10px 0 20px 0;
}

.btn-decouvrir {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.btn-decouvrir:hover {
    background: #ffffff;
    color: #000000;
}

/* ==========================================================
   STYLE DU BLOC PRÉSENTATION "UNE MAISON POUR LES VOIX"
========================================================== */
.section-presentation-maison {
    background-color: #faf8f5 !important;
    border: 1px solid #e3decb !important;
    padding: 30px;
    margin: 30px 0;
    border-radius: 4px;
    text-align: left;
}

.section-presentation-maison h2 {
    font-family: 'Georgia', serif;
    font-size: 1.4rem;
    color: #111111;
    line-height: 1.3;
    margin-bottom: 15px;
}

.puce-etoile {
    width: 32px !important;
    height: auto !important;
    vertical-align: middle !important;
    margin-right: 10px !important;
}

.sous-titre-maison {
    display: block;
    font-size: 1.2rem;
    color: #111111;
    margin-top: 2px;
}

.texte-presentation {
    font-size: 0.95rem;
    color: #444444;
    line-height: 1.6;
    margin-bottom: 20px;
}

.lien-decouvrir-maison {
    display: inline-block;
    color: #111111;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    border-bottom: 1px solid #d4af37;
    padding-bottom: 2px;
    transition: color 0.2s ease;
}

.lien-decouvrir-maison:hover {
    color: #ba372a;
}

/* ==========================================================
   6. ADAPTATION MOBILE
========================================================== */
@media screen and (max-width: 768px) {

    html,
    body {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        z-index: 1000;
    }

    .header-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 12px 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .site-branding {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
    }

    .logo-header-img {
        width: auto !important;
        height: 65px !important;
        max-width: 90%;
        margin: 0 auto;
    }

    .site-nav {
        width: 100%;
        max-width: 100%;
    }

    .site-nav ul {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px 15px;
        margin: 0;
        padding: 0;
    }

    .site-nav a {
        font-size: 0.82rem;
        white-space: nowrap;
        font-weight: 500;
    }

    .header-search {
        width: 100%;
        margin-top: 2px;
    }

    .header-search form {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }

    .header-search input[type="text"] {
        width: 100%;
        min-width: 0;
        background-color: #ffffff !important;
    }

    .site-content {
        width: 100%;
        max-width: 100%;
        margin: 220px 0 40px 0;
        padding: 0 12px;
    }

    .accueil-editorial {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .hero-accueil {
        width: 100%;
        max-width: 100%;
        margin: 0 0 25px 0;
        padding: 20px 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        text-align: center;
        border-radius: 4px;
    }

    .hero-image-lien {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        display: block;
        flex: none;
    }

    .img-gengenbach-hero {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }

    .hero-contenu {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        flex: none;
        text-align: center;
    }

    .hero-accueil h1 {
        width: 100%;
        max-width: 100%;
        margin: 8px 0;
        font-size: 1.35rem;
        line-height: 1.25;
        text-align: center;
    }

    .sous-titre-hero,
    .auteur-hero {
        max-width: 100%;
        text-align: center;
    }

    .section-presentation-maison {
        width: 100%;
        max-width: 100%;
        margin: 0 0 25px 0;
        padding: 20px 15px;
        text-align: center;
    }

    .section-presentation-maison h2 {
        text-align: center;
    }

    .texte-presentation {
        text-align: center;
    }

    .section-nouveautes {
        width: 100%;
        max-width: 100%;
        margin: 0 !important;
        padding: 0;
    }

    .en-tete-section {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px;
        margin-bottom: 20px !important;
    }

    .en-tete-section h2,
    .en-tete-section .lien-voir-total {
        max-width: 100%;
        text-align: center;
        white-space: normal;
    }

    .grille-catalogue {
        width: 100%;
        max-width: 100%;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px;
        margin: 0;
        padding: 0;
    }

    .carte-livre {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 15px;
    }

    .couverture-container {
        width: 100%;
        max-width: 100%;
    }

    .carte-livre img {
        display: block;
        max-width: 100%;
        width: auto;
        height: auto;
        margin: 0 auto;
    }

    .grille-categories-accueil {
        width: 100%;
        max-width: 100%;
        margin: 25px 0 0 0;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px;
    }

    .card-cat {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    h1, h2, h3, p {
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .site-footer {
        width: 100%;
        max-width: 100%;
    }

    .footer-container {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .grille-catalogue.grille-nouveautes-accueil {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: scroll !important; /* Force l'affichage de la barre et du défilement tactile */
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important; /* Fluidnalise le scroll sur iOS/iPhone */
        scroll-snap-type: x mandatory !important;
        gap: 15px !important;
        padding: 5px 5px 20px 5px !important;
        margin: 0 !important;
    }

    .grille-nouveautes-accueil .carte-livre {
        flex: 0 0 75% !important; /* Occupe 75% de la largeur de l'écran par carte pour inciter visuellement au swipe */
        width: 75% !important;
        max-width: 260px !important;
        scroll-snap-align: start !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    }

    .grille-nouveautes-accueil .infos-livre {
        padding: 10px 0 !important;
    }

    .grille-nouveautes-accueil .titre-livre {
        font-size: 1rem !important;
        margin: 5px 0 !important;
    }
}