/* ============================================
   REVOLU - Style inspiré Château de Versailles
   Palette : Or/Bronze, Blanc, Anthracite
   ============================================ */

:root {
    --or: #D6BC93;
    --or-clair: #E5D4B5;
    --or-fonce: #BA9E66;
    --or-titre: #BA9E66;
    --creme: #F8F6F3;
    --creme-fonce: #EEEBE5;
    --anthracite: #2A2A2A;
    --anthracite-fonce: #1E1E1E;
    --noir: #1A1A1A;
    --noir-header: #141414;
    --gris: #6B6B6B;
    --gris-clair: #9A9A9A;
    --blanc: #FFFFFF;
    
    --font-titre: 'Cormorant Garamond', Georgia, serif;
    --font-texte: 'Source Sans 3', 'Segoe UI', sans-serif;
    
    --shadow-legere: 0 2px 8px rgba(26, 26, 26, 0.08);
    --shadow-moyenne: 0 4px 20px rgba(26, 26, 26, 0.12);
    --shadow-forte: 0 8px 40px rgba(26, 26, 26, 0.18);
    
    --transition: 0.3s ease;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-texte);
    font-size: 17px;
    line-height: 1.7;
    color: var(--noir);
    background-color: var(--blanc);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-titre);
    font-weight: 600;
    line-height: 1.3;
    color: var(--or-titre);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }

a {
    color: var(--or-fonce);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--or);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   OVERLAY
   ============================================ */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: var(--blanc);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--creme-fonce);
}

.sidebar-close {
    font-size: 0.9rem;
    color: var(--noir);
    cursor: pointer;
}

.sidebar-close-btn {
    width: 32px;
    height: 32px;
    background: none;
    border: 1px solid var(--noir);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.sidebar-close-btn:hover {
    background: var(--noir);
    color: var(--blanc);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-section {
    border-bottom: 1px solid var(--creme-fonce);
}

.sidebar-link-main {
    display: block;
    padding: 1.2rem 2rem;
    font-family: var(--font-texte);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--noir);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition);
}

.sidebar-link-main:hover {
    color: var(--or-fonce);
}

.sidebar-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.2rem 2rem;
    font-family: var(--font-texte);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--noir);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color var(--transition);
}

.sidebar-toggle:hover {
    color: var(--or-fonce);
}

.sidebar-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.sidebar-toggle.active .sidebar-arrow {
    transform: rotate(180deg);
}

.sidebar-submenu {
    display: none;
    padding: 0 2rem 1rem 2rem;
}

.sidebar-submenu.active {
    display: block;
}

.sidebar-submenu a {
    display: block;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: var(--gris);
    transition: color var(--transition);
}

.sidebar-submenu a:hover {
    color: var(--or-fonce);
}

.sidebar-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--creme-fonce);
}

.sidebar-footer a {
    font-size: 0.9rem;
    color: var(--gris);
}

/* Recherche dans sidebar */
.sidebar-search {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--creme-fonce);
}

.sidebar-search form {
    display: flex;
    border: 1px solid var(--creme-fonce);
}

.sidebar-search input {
    flex: 1;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    font-family: var(--font-texte);
    border: none;
    background: var(--blanc);
    color: var(--noir);
    outline: none;
}

.sidebar-search input::placeholder {
    color: var(--gris-clair);
}

.sidebar-search button {
    padding: 0.8rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
}

.sidebar-search button svg {
    width: 18px;
    height: 18px;
    stroke: var(--gris);
}

.sidebar-search button:hover svg {
    stroke: var(--or-fonce);
}

/* Partage dans sidebar */
.sidebar-share {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--creme-fonce);
}

.sidebar-share-icons {
    display: flex;
    gap: 1rem;
}

.sidebar-share-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--gris);
    transition: color var(--transition);
}

.sidebar-share-icons a:hover {
    color: var(--or-fonce);
}

.sidebar-share-icons svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: var(--noir-header);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Espace pour compenser le header fixe */
main {
    padding-top: 76px;
}

.header-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Menu hamburger */
.menu-toggle {
    position: absolute;
    left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: border-color var(--transition);
}

.menu-toggle:hover {
    border-color: var(--blanc);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--blanc);
}

/* Logo central */
.logo-center {
    padding: 0.8rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-center img {
    height: 60px;
    width: auto;
}

/* Navigation */
.nav {
    display: flex;
    gap: 0;
    position: absolute;
}

.nav-left {
    left: 100px;
}

.nav-right {
    right: 2rem;
}

.nav > a,
.nav-dropdown > a {
    display: block;
    padding: 1.5rem 1.5rem;
    color: var(--creme);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color var(--transition);
}

.nav > a:hover,
.nav > a.active,
.nav-dropdown > a:hover,
.nav-dropdown > a.active {
    color: var(--or);
}

/* Dropdown Catalogue - Pleine largeur */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    position: relative;
    display: block;
}

/* Pont invisible sous le lien pour connecter au dropdown */
.nav-dropdown > a::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.dropdown-menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    width: 100vw;
    background: var(--anthracite-fonce);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease, visibility 0s 0.4s;
    z-index: 999;
}

.nav-dropdown:hover .dropdown-menu {
    max-height: 350px;
    opacity: 1;
    padding: 2rem 0;
    visibility: visible;
    pointer-events: auto;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease, visibility 0s 0s;
}

/* Désactiver dropdown quand recherche ouverte */
.header.search-open .dropdown-menu {
    display: none !important;
}

.dropdown-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.3rem 2.5rem;
}

.dropdown-menu a {
    display: block;
    padding: 0.35rem 0;
    color: var(--creme);
    font-size: 0.88rem;
    transition: color var(--transition);
    white-space: nowrap;
}

.dropdown-menu a:hover {
    color: var(--or);
}

/* ============================================
   RECHERCHE
   ============================================ */
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
}

.search-toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--creme);
    transition: stroke var(--transition);
}

.search-toggle:hover svg {
    stroke: var(--or);
}

/* Loupe mobile */
.search-toggle-mobile {
    display: none;
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.search-toggle-mobile svg {
    width: 22px;
    height: 22px;
    stroke: var(--blanc);
    transition: stroke var(--transition);
}

.search-toggle-mobile:hover svg {
    stroke: var(--blanc);
}

.search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--noir-header);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.search-bar.active {
    max-height: 80px;
    padding: 1rem 2rem;
}

.search-form {
    display: flex;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    gap: 1rem;
}

.search-form input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    font-family: var(--font-texte);
    border: 1px solid rgba(214, 188, 147, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: var(--creme);
    outline: none;
    transition: border-color var(--transition);
}

.search-form input::placeholder {
    color: var(--gris-clair);
}

.search-form input:focus {
    border-color: var(--or);
}

.search-form button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
}

.search-form button svg {
    width: 24px;
    height: 24px;
    stroke: var(--or);
    transition: stroke var(--transition);
}

.search-form button:hover svg {
    stroke: var(--or-clair);
}

.search-close {
    margin-left: 0.5rem;
}

/* Formulaire recherche page */
.search-page-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-page-form input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    font-family: var(--font-texte);
    border: 1px solid var(--creme-fonce);
    background: var(--blanc);
    color: var(--noir);
    outline: none;
    transition: border-color var(--transition);
}

.search-page-form input:focus {
    border-color: var(--or-fonce);
}

/* Hero mini */
.hero-mini {
    background: var(--or);
    padding: 3rem 0;
    text-align: center;
}

.hero-mini h1 {
    font-family: var(--font-titre);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--anthracite);
    margin-bottom: 0.5rem;
}

.hero-mini p {
    color: var(--anthracite);
    opacity: 0.8;
}

/* Newsletter */
.newsletter-form {
    margin-top: 2rem;
}

.newsletter-form .form-groupe {
    margin-bottom: 1.5rem;
}

.newsletter-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--noir);
}

.newsletter-form input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    font-family: var(--font-texte);
    border: 1px solid var(--creme-fonce);
    background: var(--blanc);
    color: var(--noir);
    outline: none;
    transition: border-color var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--or-fonce);
}

.requis {
    color: var(--or-fonce);
}

.mentions-form {
    font-size: 0.85rem;
    color: var(--gris);
    line-height: 1.6;
}

.message-succes {
    text-align: center;
    padding: 2rem;
    background: var(--creme);
    border-radius: 4px;
}

.message-succes h2 {
    margin-bottom: 1rem;
}

.message-erreur {
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 4px;
    text-align: center;
}

/* Formulaire sur mesure */
.form-sur-mesure {
    margin-top: 2rem;
}

.form-sur-mesure .form-groupe {
    margin-bottom: 1.5rem;
}

.form-sur-mesure label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--noir);
}

.form-sur-mesure input,
.form-sur-mesure select,
.form-sur-mesure textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    font-family: var(--font-texte);
    border: 1px solid var(--creme-fonce);
    background: var(--blanc);
    color: var(--noir);
    outline: none;
    transition: border-color var(--transition);
}

.form-sur-mesure input:focus,
.form-sur-mesure select:focus,
.form-sur-mesure textarea:focus {
    border-color: var(--or-fonce);
}

.form-sur-mesure textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-separator {
    border: none;
    border-top: 1px solid var(--creme-fonce);
    margin: 2rem 0;
}

/* ============================================
   BANNIÈRE RGPD
   ============================================ */
.rgpd-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--anthracite);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    z-index: 2000;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.rgpd-banner.active {
    max-height: 200px;
    padding: 1.5rem 2rem;
}

.rgpd-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.rgpd-content p {
    color: var(--creme);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.rgpd-content a {
    color: var(--or);
    text-decoration: underline;
}

.rgpd-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-rgpd {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    font-family: var(--font-texte);
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-rgpd-accept {
    background: var(--or);
    color: var(--anthracite);
}

.btn-rgpd-accept:hover {
    background: var(--or-clair);
}

.btn-rgpd-refuse {
    background: transparent;
    color: var(--creme);
    border: 1px solid var(--creme);
}

.btn-rgpd-refuse:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .rgpd-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .rgpd-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   SLIDER
   ============================================ */
.slider {
    position: relative;
    width: 100%;
    background: var(--anthracite);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.slider-track {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide picture,
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Flèches navigation */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 10;
    opacity: 0.6;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.35);
    opacity: 1;
}

.slider-arrow svg {
    width: 20px;
    height: 20px;
    color: var(--blanc);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

/* Points navigation */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--blanc);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.slider-dot:hover,
.slider-dot.active {
    background: var(--blanc);
}

/* Bandeau statistiques slider */
.slider-stats {
    background: #141414;
    padding: 1.1rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3.5rem;
}

.stat-item {
    color: var(--blanc);
    font-family: 'Crimson Pro', serif;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .slider-stats {
        gap: 1.5rem;
        padding: 1rem 0.8rem;
    }
    
    .stat-item {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
    }
}

/* ============================================
   HERO (conservé pour autres pages)
   ============================================ */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--or-fonce);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(186, 158, 102, 0.95) 0%, rgba(166, 138, 82, 0.98) 100%);
}

.hero-contenu {
    position: relative;
    text-align: center;
    padding: 4rem 2rem;
    max-width: 900px;
}

.hero h1 {
    color: var(--blanc);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero h1 span {
    color: var(--blanc);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--blanc);
    opacity: 0.95;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ornement {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.hero-ornement::before,
.hero-ornement::after {
    content: '';
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blanc), transparent);
}

.hero-ornement span {
    color: var(--blanc);
    font-size: 1.5rem;
}

/* ============================================
   BOUTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-texte);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-principal {
    background: var(--anthracite);
    color: var(--blanc);
}

.btn-principal:hover {
    background: var(--noir);
    color: var(--blanc);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(42, 42, 42, 0.35);
}

.btn-secondaire {
    background: transparent;
    color: var(--blanc);
    border: 1px solid var(--blanc);
}

.btn-secondaire:hover {
    background: var(--blanc);
    color: var(--anthracite);
}

.btn-or {
    background: var(--or-fonce);
    color: var(--blanc);
}

.btn-or:hover {
    background: var(--or);
    color: var(--anthracite);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 5rem 0;
}

.section-anthracite {
    background: var(--anthracite);
    color: var(--creme);
}

.section-anthracite h2,
.section-anthracite h3 {
    color: var(--or);
}

.section-creme {
    background: var(--creme);
}

.section-titre {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-titre h2 {
    margin-bottom: 1rem;
}

.section-titre p {
    color: var(--gris);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-anthracite .section-titre p {
    color: var(--creme);
    opacity: 0.8;
}

.ornement {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.ornement::before,
.ornement::after {
    content: '';
    width: 60px;
    height: 1px;
    background: var(--or);
}

.ornement span {
    width: 8px;
    height: 8px;
    background: var(--or);
    transform: rotate(45deg);
}

/* ============================================
   GRILLE DE LIVRES
   ============================================ */
.grille-livres {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2.5rem;
}

.carte-livre {
    background: var(--blanc);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-legere);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carte-livre:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(26, 26, 26, 0.12);
}

.carte-livre-image {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--creme-fonce);
}

.carte-livre-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.carte-livre-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.carte-livre:hover .carte-livre-image img {
    filter: grayscale(0%);
}

/* Effet couleur au scroll sur mobile */
@media (max-width: 768px) {
    .carte-livre.in-view .carte-livre-image img {
        filter: grayscale(0%);
    }
}

.carte-livre-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--anthracite);
    color: var(--or);
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 2;
}

.carte-livre-infos {
    padding: 1.5rem;
}

.carte-livre-categorie {
    font-size: 0.75rem;
    color: var(--or-fonce);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.carte-livre-titre {
    font-family: var(--font-titre);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carte-livre-titre a {
    color: var(--noir);
}

.carte-livre-titre a:hover {
    color: var(--or-fonce);
}

.carte-livre-auteur {
    font-size: 0.9rem;
    color: var(--gris);
    margin-bottom: 1rem;
}

.carte-livre-prix {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.prix-principal {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--anthracite);
}

.prix-kindle {
    font-size: 0.85rem;
    color: var(--gris);
}

.note-etoiles {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.etoiles {
    color: var(--or-fonce);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.nb-avis {
    font-size: 0.8rem;
    color: var(--gris);
}

/* ============================================
   GRILLE COLLECTIONS (style texte)
   ============================================ */
.grille-collections {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 3rem;
}

.collection-item {
    display: block;
    text-decoration: none;
}

.collection-item h3 {
    font-family: var(--font-titre);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--creme);
    margin-bottom: 0.3rem;
    transition: color var(--transition);
}

.collection-item:hover h3 {
    color: var(--or);
}

.collection-item p {
    font-size: 0.9rem;
    color: var(--gris-clair);
    margin-bottom: 0.6rem;
}

.collection-lien {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--or);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color var(--transition);
}

.collection-item:hover .collection-lien {
    color: var(--or-clair);
}

/* ============================================
   GRILLE CATÉGORIES (avec images)
   ============================================ */
.grille-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.carte-categorie {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 4px;
    overflow: hidden;
    background: var(--anthracite);
}

.carte-categorie::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(42, 42, 42, 0.95) 0%, rgba(42, 42, 42, 0.3) 100%);
    z-index: 1;
    transition: background var(--transition);
}

.carte-categorie:hover::before {
    background: linear-gradient(to top, rgba(186, 158, 102, 0.9) 0%, rgba(42, 42, 42, 0.4) 100%);
}

.carte-categorie img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carte-categorie:hover img {
    transform: scale(1.1);
}

.carte-categorie-contenu {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
}

.carte-categorie h3 {
    color: var(--blanc);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.carte-categorie p {
    color: var(--creme);
    opacity: 0.8;
    font-size: 0.9rem;
}

.carte-categorie-lien {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--or);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.carte-categorie-lien::after {
    content: '→';
    transition: transform var(--transition);
}

.carte-categorie:hover .carte-categorie-lien::after {
    transform: translateX(5px);
}

/* ============================================
   PAGE LIVRE (FICHE)
   ============================================ */
.fiche-livre {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    padding: 4rem 0;
}

.fiche-livre-image {
    position: sticky;
    top: 100px;
    align-self: start;
}

.fiche-livre-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: var(--shadow-forte);
}

.fiche-livre-contenu h1 {
    color: var(--noir);
    margin-bottom: 0.5rem;
}

.fiche-livre-sous-titre {
    font-size: 1.3rem;
    color: var(--gris);
    margin-bottom: 1.5rem;
    font-family: var(--font-titre);
    font-style: italic;
}

.fiche-livre-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--creme-fonce);
}

.fiche-livre-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.fiche-livre-meta-label {
    font-size: 0.75rem;
    color: var(--gris);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.fiche-livre-meta-valeur {
    font-weight: 600;
    color: var(--noir);
}

.fiche-livre-prix-bloc {
    background: var(--creme);
    padding: 2rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.fiche-livre-prix-ligne {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.fiche-livre-prix-ligne:last-child {
    margin-bottom: 0;
}

.format-label {
    font-weight: 600;
}

.format-prix {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--anthracite);
}

.fiche-livre-description {
    margin-bottom: 2rem;
    line-height: 1.9;
}

.fiche-livre-description p {
    margin-bottom: 1rem;
}

.fiche-livre-acheter {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Boutons de partage */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--creme-fonce);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--gris);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.share-btn:hover {
    color: var(--or-fonce);
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   CATALOGUE
   ============================================ */
.catalogue-header {
    background: var(--or-fonce);
    padding: 4rem 0;
    text-align: center;
}

.catalogue-header h1 {
    color: var(--blanc);
    margin-bottom: 1rem;
}

.catalogue-header p {
    color: var(--blanc);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.catalogue-contenu {
    padding: 3rem 0;
}

.catalogue-resultats {
    margin-bottom: 2rem;
    color: var(--gris);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    background: var(--blanc);
    border: 1px solid var(--creme-fonce);
    color: var(--noir);
    font-weight: 500;
    transition: all var(--transition);
}

.pagination a:hover {
    background: var(--creme);
    border-color: var(--or);
    color: var(--noir);
}

.pagination .active {
    background: var(--anthracite);
    border-color: var(--anthracite);
    color: var(--blanc);
}

.pagination-arrow {
    font-size: 1.2rem;
    padding: 0 0.8rem;
}

@media (max-width: 480px) {
    .pagination {
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    
    .pagination a,
    .pagination span {
        min-width: 38px;
        height: 38px;
        padding: 0 0.6rem;
        font-size: 0.9rem;
    }
    
    .pagination-arrow {
        font-size: 1.1rem;
        padding: 0 0.7rem;
    }
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    background: var(--or-fonce);
    padding: 5rem 0;
    text-align: center;
}

.page-header h1 {
    color: var(--blanc);
}

.contenu-page {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.contenu-page p {
    margin-bottom: 1.5rem;
}

.contenu-page h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.citation {
    padding: 2rem 3rem;
    margin: 3rem 0;
    background: var(--creme);
    border-left: 4px solid var(--or);
    font-family: var(--font-titre);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--anthracite);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grille {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-infos h3 {
    margin-bottom: 1.5rem;
}

.contact-infos p {
    margin-bottom: 1rem;
    color: var(--gris);
}

.contact-formulaire {
    background: var(--blanc);
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow-legere);
}

.form-groupe {
    margin-bottom: 1.5rem;
}

.form-groupe label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-groupe input,
.form-groupe textarea,
.form-groupe select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--creme-fonce);
    background: var(--creme);
    font-family: var(--font-texte);
    font-size: 1rem;
    transition: border-color var(--transition);
}

.form-groupe input:focus,
.form-groupe textarea:focus,
.form-groupe select:focus {
    outline: none;
    border-color: var(--or);
}

.form-groupe textarea {
    min-height: 150px;
    resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--anthracite);
    color: var(--creme);
    padding: 4rem 0 2rem;
}

.footer-grille {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-titre);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--or);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--creme);
    opacity: 0.7;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer h4 {
    color: var(--or);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-liens {
    list-style: none;
}

.footer-liens li {
    margin-bottom: 0.7rem;
}

.footer-liens a {
    color: var(--creme);
    opacity: 0.7;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.footer-liens a:hover {
    opacity: 1;
    color: var(--or);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(214, 188, 147, 0.2);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .dropdown-menu {
        display: none;
    }
    
    .search-toggle-mobile {
        display: block;
    }
}

@media (max-width: 1024px) {
    .fiche-livre {
        grid-template-columns: 300px 1fr;
        gap: 3rem;
    }
    
    .footer-grille {
        grid-template-columns: 1fr 1fr;
    }
    
    .dropdown-inner {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .grille-collections {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 1rem;
    }
    
    .menu-toggle {
        left: 1rem;
    }
    
    .logo-center {
        padding: 0.5rem 0;
    }
    
    .logo-center img {
        height: 45px;
    }
    
    main {
        padding-top: 61px;
    }
    
    .slider-container {
        height: 350px;
    }
    
    .slider-arrow {
        width: 36px;
        height: 36px;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
    
    .slider-arrow svg {
        width: 16px;
        height: 16px;
    }
    
    .hero {
        min-height: 50vh;
    }
    
    .fiche-livre {
        grid-template-columns: 1fr;
    }
    
    .fiche-livre-image {
        position: static;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .contact-grille {
        grid-template-columns: 1fr;
    }
    
    .footer-grille {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .grille-livres {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .grille-collections {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 2rem;
    }
    
    .share-buttons {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .sidebar {
        width: 320px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .grille-livres {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .grille-collections {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .fiche-livre-acheter {
        flex-direction: column;
    }
    
    .carte-livre-infos {
        padding: 1rem;
    }
    
    .carte-livre-titre {
        font-size: 1rem;
    }
    
    .search-page-form {
        flex-direction: column;
    }
    
    .search-page-form input {
        width: 100%;
    }
}

/* ============================================
   UTILITAIRES
   ============================================ */
.text-center { text-align: center; }
.text-or { color: var(--or); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }

@keyframes nFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: nFadeIn 0.6s ease forwards;
}
