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: #f7f4ed !important;
    line-height: 1.6;
}

/* ==================================================
   2. EN-TÊTE ÉPURÉ & LOGO FIXE EN HAUT À GAUCHE
================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #f7f4ed !important;
    border-bottom: 1px solid #e3decb !important;
    z-index: 1000;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 30px;
    background-color: #f7f4ed !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: 80px !important;
    width: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.site-nav a {
    text-decoration: none;
    color: #555555;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: #ba372a;
}

.header-search form {
    display: flex;
    gap: 5px;
}

.header-search input[type="text"] {
    padding: 5px 8px;
    border: 1px solid #e3decb !important;
    background-color: #fdfcf9 !important;
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    color: #222222 !important;
}

.header-search input[type="submit"] {
    padding: 5px 10px;
    background: #111;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
}

/* ==================================================
   3. CONTENU PRINCIPAL & GRILLE DE CATALOGUE
================================================== */
.site-content {
    max-width: 1300px;
    margin: 120px 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: #f7f4ed !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 : ORDINATEUR (CÔTE À CÔTE)
================================================== */
.accueil-editorial {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    background-color: transparent !important;
}

.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: #f7f4ed !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 UNIQUE ET CENTRÉE
========================================================== */
/* ==========================================================
   VERSION SMARTPHONE — ACCUEIL
   ========================================================== */

@media screen and (max-width: 768px) {

    /* ---------- BASE ---------- */

    html,
    body {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }


    /* ---------- HEADER ---------- */

    .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 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .site-branding {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
    }

    .logo-header-img {
        width: auto !important;
        height: auto !important;
        max-width: 80%;
        max-height: 60px;
        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 12px;
        margin: 0;
        padding: 0;
    }

    .site-nav a {
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .header-search {
        width: 100%;
    }

    .header-search form {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }

    .header-search input[type="text"] {
        width: 100%;
        min-width: 0;
    }


    /* ---------- CONTENU ---------- */

    .site-content {
        width: 100%;
        max-width: 100%;
        margin: 220px 0 40px 0;
        padding: 0 12px;
    }


    /* ======================================================
       ACCUEIL
       ====================================================== */

    .accueil-editorial {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }


    /* ---------- HERO ---------- */

    .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;
    }


    /* ---------- PRÉSENTATION ---------- */

    .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;
    }


    /* ---------- NOUVEAUTÉS ---------- */

    .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;
    }


    /* ---------- LIVRES (Grille générale standard) ---------- */

    .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;
    }


    /* ---------- CATÉGORIES ---------- */

    .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;
    }


    /* ---------- TEXTES ---------- */

    h1,
    h2,
    h3,
    p {
        max-width: 100%;
        overflow-wrap: break-word;
    }


    /* ---------- FOOTER ---------- */

    .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;
    }


    /* ---------- OUVRAGES COMPLÉMENTAIRES ---------- */

    .ouvrages-complementaires {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        margin: 20px 0 !important;
    }
    
    .ouvrages-complementaires img {
        display: block !important;
        max-width: 100% !important;
        height: auto !important;
    }


    /* ---------- CARROUSEL NOUVEAUTÉS (CORRIGÉ) ---------- */

   /* ---------- CARROUSEL NOUVEAUTÉS (FORCAGE RADICAL IOS) ---------- */

    .site-content {
        overflow-x: hidden; /* S'assure que le contenu global ne crée pas de barre de défilement de page entière */
    }

    .grille-catalogue.grille-nouveautes-accueil {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        
        /* Astuce clé pour Safari : forcer le conteneur à s'étaler au-delà de l'écran */
        width: max-content !important; 
        max-width: none !important;
        min-width: 100% !important;
        
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        
        gap: 15px !important;
        padding: 5px 10px 20px 10px !important;
        margin: 0 !important;
    }

    .grille-nouveautes-accueil .carte-livre {
        /* On fige la largeur exacte de chaque carte sur mobile pour forcer le dépassement */
        flex: 0 0 260px !important;
        width: 260px !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;
    }
	
}

/* ==================================================
   LOGO EN FILIGRANE EN FOND DE PAGE
================================================== */

.page-maison {
    position: relative;
    z-index: 1;
}

.page-maison::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    
    width: min(520px, 70vw);
    height: 180px;

    background-image: url("RESSOURCES/newlogo.png");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;

    opacity: 0.07;
    pointer-events: none;
    z-index: -1;
}