/* 
 * Editions Natal - Styles principaux
 * Design moderne, épuré et accessible
 */

/* Variables CSS */
:root {
    /* Couleur Principale */
    --primary-color: #FE6C2D;

    /* Couleurs Primaires (Dégradé d'oranges) */
    --primary-light-1: #FFE2C3;
    --primary-light-2: #FFC49E;
    --primary-light-3: #FFA778;
    --primary-base: #FE6C2D;
    --primary-dark-1: #E25C26;
    --primary-dark-2: #C94D22;
    --primary-dark-3: #A73E1C;
    --primary-dark-4: #852F16;

    /* Couleurs Secondaires (Turquoise/Bleus) - À utiliser avec parcimonie */
    --secondary-light-1: #7FDCC3;
    --secondary-light-2: #4EC6A9;
    --secondary-base: #0F6F7F;
    --secondary-dark-1: #2F4F68;
    --secondary-dark-2: #0A2A43;

    /* Couleurs Neutres */
    --black-1: #000000;
    --black-2: #111111;
    --black-3: #212121;
    --black-4: #1E1E1E;
    --gray-dark-1: #3c3c3c;
    --gray-dark-2: #4d4d4d;
    --gray-dark-3: #424242;
    --gray-dark-4: #606060;
    --gray-medium-1: #757575;
    --gray-medium-2: #9E9E9E;
    --gray-light-1: #BDBDBD;
    --gray-light-2: #E0E0E0;
    --cream-1: #f7f2dd;
    --cream-2: #F5F5F5;
    --cream-3: #FCFAF2;
    --white: #FFFFFF;

    /* Couleurs d'accent - À utiliser avec parcimonie */
    --accent-blue-1: #0d47a1;
    --accent-blue-2: #1e88e5;
    --accent-blue-3: #64b5f6;
    --accent-blue-4: #bbdefb;
    --accent-green-1: #1b5e20;
    --accent-green-2: #43a047;
    --accent-green-3: #66bb6a;
    --accent-green-4: #a5d6a7;
    --accent-brown-1: #4e342e;
    --accent-brown-2: #6d4c41;
    --accent-brown-3: #8d6e63;
    --accent-brown-4: #bcaaa4;
    --accent-red-1: #b71c1c;
    --accent-red-2: #e53935;
    --accent-red-3: #ef5350;
    --accent-red-4: #ef9a9a;
    --accent-red-5: #d50000;
    --accent-red-6: #ff8a80;

    /* Couleurs appliquées */
    --text-primary: #212121;
    --text-secondary: #424242;
    --text-light: #9E9E9E;
    --bg-primary: #FFFFFF;
    --bg-secondary: #FCFAF2;
    --bg-light: #F5F5F5;
    --border-color: #E0E0E0;
    --success-color: #43a047;
    --warning-color: #FE6C2D;
    --error-color: #e53935;

    /* Typographie */
    --font-heading: Arial, Helvetica, sans-serif;
    --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;

    /* Font Sizes - Laptop */
    --font-size-h1: 96px;
    --font-size-h2: 60px;
    --font-size-h3: 48px;
    --font-size-h4: 34px;
    --font-size-h5: 24px;
    --font-size-p: 16px;

    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Layout */
    --container-max-width: 1200px;
    --border-radius: 16px;
    --box-shadow: 0 4px 12px rgba(254, 108, 45, 0.15);
    --transition: all 0.3s ease;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-p);
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #FCFAF2;
}

/* Typographie Headings - Laptop (default) */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

h1 {
    font-size: var(--font-size-h1);
    font-weight: 100; /* light */
}

h2 {
    font-size: var(--font-size-h2);
    font-weight: 100; /* light */
}

h3 {
    font-size: var(--font-size-h3);
    font-weight: 300; /* regular */
}

h4 {
    font-size: var(--font-size-h4);
    font-weight: 300; /* regular */
}

h5 {
    font-size: var(--font-size-h5);
    font-weight: 300; /* regular */
}

p {
    font-family: var(--font-body);
    font-size: var(--font-size-p);
    font-weight: 400;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Header & Navigation */
.main-header {
    background-color: var(--primary-color);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 4px 12px rgba(254, 108, 45, 0.3);
    background-color: var(--primary-color);
}

.main-header.scrolled .main-logo {
    height: 50px;
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.logo-link {
    display: block;
    line-height: 0;
}

.main-logo {
    height: 70px;
    width: auto;
    transition: var(--transition);
}

.main-logo:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link {
    font-weight: 300;
    font-size: 14px;
    color: var(--cream-3);
    transition: var(--transition);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: white;
    opacity: 0.9;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: white;
}

.panier-link {
    background-color: white;
    color: var(--primary-color) !important;
    padding: 10px 16px;
    border-radius: var(--border-radius);
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    margin-left: var(--spacing-md);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.panier-link:hover {
    background-color: var(--cream-3);
    color: var(--primary-color) !important;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(254, 108, 45, 0.25);
}

.panier-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.panier-link .cart-count-badge {
    background-color: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 16px;
    min-width: 20px;
    text-align: center;
    line-height: 1;
    display: inline-block;
}

.panier-count {
    background-color: var(--primary-color);
    color: white;
    font-size: var(--font-size-xs);
    padding: 2px 6px;
    border-radius: 50%;
    margin-left: var(--spacing-xs);
    min-width: 20px;
    text-align: center;
}

/* Cart Count - inline dans le lien Panier */
.cart-count {
    font-weight: 600;
}

.cart-count:empty {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--cream-3);
    margin: 3px 0;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px; /* Accessibilité - taille minimale tactile */
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark-1);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--black-2);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--gray-dark-3);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-danger {
    background-color: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background-color: var(--accent-red-1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-light) 100%);
    padding: var(--spacing-3xl) 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.hero h2 {
    font-size: var(--font-size-4xl);
    font-weight: 100;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
section {
    padding: var(--spacing-3xl) 0;
}

section h2 {
    font-size: var(--font-size-3xl);
    font-weight: 100;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

/* Featured Books */
.featured-books {
    background-color: var(--bg-primary);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.book-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.book-image {
    aspect-ratio: 3/4;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-content {
    padding: var(--spacing-lg);
}

.book-title {
    font-size: var(--font-size-lg);
    font-weight: 100;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.book-author {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.book-description {
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: var(--spacing-lg);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.book-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.book-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.section-footer {
    text-align: center;
}

/* About Section */
.about-section {
    background-color: var(--bg-secondary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

/* Footer */
.main-footer {
    background-color: var(--black-2);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: var(--spacing-md);
    filter: brightness(1);
}

.footer-section h3 {
    font-size: var(--font-size-xl);
    font-weight: 100;
    margin-bottom: var(--spacing-md);
}

.footer-section h4 {
    font-size: var(--font-size-lg);
    font-weight: 100;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: var(--spacing-sm);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section ul li a {
    color: #bdc3c7;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

.social-links {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-lg);
    align-items: center;
}

.social-links a {
    color: var(--primary-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--primary-light-2);
    transform: scale(1.1);
}

.social-links svg {
    width: 32px;
    height: 32px;
}

/* États de stock */
.stock-unavailable {
    opacity: 0.6;
    position: relative;
}

.stock-unavailable::after {
    content: 'Rupture de stock';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--accent-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* Contact Section */
.contact-info-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--cream-3);
}

.contact-purposes-centered {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-purposes-centered h2 {
    color: var(--primary-color);
    font-size: 48px;
    margin-bottom: var(--spacing-xl);
    font-weight: 100;
}

.contact-purposes-centered ul {
    list-style: none;
    padding: 0;
    display: inline-block;
    text-align: left;
}

.contact-purposes-centered li {
    padding: var(--spacing-sm) 0;
    color: var(--text-primary);
    position: relative;
    padding-left: var(--spacing-xl);
    font-size: 18px;
}

.contact-purposes-centered li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 20px;
}

.contact-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--cream-3);
}

.contact-form-centered {
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Form */
.contact-form-container {
    background-color: white;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xl);
    font-size: var(--font-size-xl);
    text-align: center;
    font-weight: 100;
}

.contact-form .form-group {
    margin-bottom: var(--spacing-lg);
}

.contact-form textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
}

.captcha-group {
    background-color: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.captcha-group label {
    font-weight: 500;
    color: var(--primary-color);
}

.captcha-group input {
    max-width: 100px;
    margin-top: var(--spacing-xs);
}

/* Error States */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.error-message {
    color: var(--accent-color);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
    display: none;
}

/* Loading Button */
.btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Success Message */
.form-message.success {
    background-color: var(--success-color);
    color: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    text-align: center;
}

.form-message.success h4 {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-lg);
    font-weight: 100;
}

/* FAQ Section */
.faq-section {
    background-color: var(--bg-secondary);
    padding: var(--spacing-2xl) 0;
}

.faq-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: var(--spacing-2xl);
    font-size: var(--font-size-2xl);
    font-weight: 100;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.faq-item {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.faq-item h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-lg);
    font-weight: 100;
}

.faq-item p {
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */

/* Tablette Font Sizes (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    :root {
        --font-size-h1: 60px;
        --font-size-h2: 48px;
        --font-size-h3: 34px;
        --font-size-h4: 24px;
        --font-size-h5: 16px;
        --font-size-p: 16px;
    }

    h1 {
        font-size: var(--font-size-h1);
        font-weight: 100;
    }

    h2 {
        font-size: 48px;
        font-weight: 100;
    }

    h3 {
        font-size: 34px;
        font-weight: 300;
    }

    h4 {
        font-size: 24px;
        font-weight: 300;
    }

    h5 {
        font-size: 16px;
        font-weight: 300;
    }

    p {
        font-size: 16px;
        font-weight: 400;
    }

    /* Page header responsive */
    .page-header h1 {
        font-size: var(--font-size-h1);
        font-weight: 100;
    }

    .page-header h2 {
        font-size: 24px;
        font-weight: 100;
    }

    /* Sections spécifiques */
    .fondation-content h2 {
        font-size: 48px;
    }

    .contact-purposes-centered h2 {
        font-size: 48px;
    }

    .auteur-photo {
        max-width: 350px;
    }

    /* Cart layout en colonne sur tablette */
    .cart-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .order-summary {
        position: static;
        order: 2;
    }

    .cart-items {
        order: 1;
    }

    .rencontres-grid {
        grid-template-columns: 1fr;
    }

    .collections-grid {
        grid-template-columns: 1fr;
    }

    .presse-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .panier-link {
        padding: 10px 14px;
        font-size: 13px;
        margin-left: var(--spacing-sm);
    }

    .panier-link svg {
        width: 18px;
        height: 18px;
    }

    .panier-link .cart-count-badge {
        font-size: 11px;
        padding: 2px 7px;
        min-width: 18px;
    }

    /* Padding harmonisé pour tablettes (769px - 1024px) */
    .page-header h1,
    .page-header h2,
    .page-header p,
    .hero h1,
    .hero h2,
    .hero p,
    .fondation-content h2,
    .fondation-content h3,
    .fondation-content p,
    .contact-purposes-centered h2,
    .contact-purposes-centered h3,
    .contact-purposes-centered p,
    .latest-books h2,
    .latest-books h3,
    .news-section h2,
    .news-section h3,
    .newsletter-content h2,
    .newsletter-content h3,
    .newsletter-content p,
    .roman-hero-text h1,
    .roman-hero-text h2,
    .roman-hero-text h3,
    .roman-hero-text p,
    .extrait-section h2,
    .extrait-section h3,
    .presse-section h2,
    .presse-section h3,
    .presse-section p,
    .contact-presse-content h2,
    .contact-presse-content h3,
    .contact-presse-content p,
    .bio-content p,
    .bio-content h3,
    .biblio-content p,
    .biblio-content h3,
    .auteur-editions-content p,
    .auteur-editions-content h3,
    .auteur-livres h3,
    .container > h1,
    .container > h2,
    .container > h3,
    .container > p {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Mobile Font Sizes (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --font-size-h1: 48px;
        --font-size-h2: 34px;
        --font-size-h3: 24px;
        --font-size-h4: 20px;
        --font-size-h5: 16px;
        --font-size-p: 16px;
    }

    h1 {
        font-size: var(--font-size-h1);
        font-weight: 100;
    }

    h2 {
        font-size: 34px;
        font-weight: 100;
    }

    h3 {
        font-size: 24px;
        font-weight: 300;
    }

    h4 {
        font-size: 20px;
        font-weight: 300;
    }

    h5 {
        font-size: 16px;
        font-weight: 300;
    }

    p {
        font-size: 16px;
        font-weight: 400;
    }

    /* Page header responsive */
    .page-header h1 {
        font-size: var(--font-size-h1);
        font-weight: 100;
    }

    .page-header h2 {
        font-size: 20px;
        font-weight: 100;
    }

    /* Sections spécifiques */
    .fondation-content h2 {
        font-size: 34px;
    }

    .contact-purposes-centered h2 {
        font-size: 34px;
    }

    .auteur-photo {
        max-width: 250px;
    }

    /* Navigation mobile */
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-primary);
        border-top: 1px solid var(--border-color);
        padding: var(--spacing-lg);
        gap: var(--spacing-lg);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-link {
        color: var(--primary-color);
    }

    .nav-link:hover {
        color: var(--primary-dark-1);
        opacity: 1;
    }

    .panier-link {
        margin-left: 0;
        margin-top: var(--spacing-sm);
        padding: 12px 20px;
        justify-content: center;
        width: 100%;
        max-width: 280px;
    }

    .panier-link svg {
        width: 22px;
        height: 22px;
    }

    .panier-link .cart-count-badge {
        font-size: 13px;
        padding: 3px 10px;
    }

    .main-logo {
        height: 45px;
    }

    .cart-count {
        font-weight: 600;
    }

    .footer-logo {
        height: 60px;
    }

    /* Layout responsive */
    .hero h2 {
        font-size: 34px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .rencontres-grid {
        grid-template-columns: 1fr;
    }

    .collections-grid {
        grid-template-columns: 1fr;
    }

    .presse-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    /* Padding spécifique pour les containers des cards */
    .catalogue-section .container,
    .presse-section .container {
        padding: 0 var(--spacing-xl);
    }

    .biblio-item {
        grid-template-columns: 1fr;
    }

    .contact-purposes-centered ul {
        width: 100%;
    }
    
    /* Cart responsive */
    .cart-layout {
        display: flex !important;
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .cart-items {
        order: 1 !important;
        width: 100%;
        padding: var(--spacing-lg);
    }

    .cart-items h2 {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-lg);
    }

    .order-summary {
        position: static !important;
        order: 2 !important;
        width: 100%;
        padding: var(--spacing-lg);
    }

    .order-summary h3 {
        font-size: 1.35rem;
    }

    .cart-item {
        grid-template-columns: 100px 1fr;
        gap: var(--spacing-md);
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-md);
    }

    .item-image {
        width: 100px;
        height: 133px;
    }

    .item-details h4 {
        font-size: 1.1rem;
    }

    .item-author {
        font-size: 0.85rem;
    }

    .item-weight {
        font-size: 0.75rem;
    }

    .item-footer {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: stretch;
    }

    .item-quantity {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .item-price {
        align-items: flex-start;
    }

    .item-price .price {
        font-size: 1.3rem;
    }

    .item-actions {
        width: 100%;
    }

    .btn-remove-from-cart {
        width: 100%;
    }

    .summary-line span:last-child {
        font-size: 1rem;
    }

    .summary-line.total span {
        font-size: 1.3rem;
    }

    .btn-full {
        padding: var(--spacing-md);
        font-size: 1rem;
    }
    
    /* Contact responsive - removed as no longer needed with centered layout */
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    /* Modal responsive */
    .modal {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-content {
        width: 100%;
        margin: 0;
        max-height: 100vh;
        border-radius: 16px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
        z-index: 10001;
    }

    .modal-header {
        position: sticky;
        top: 0;
        background-color: var(--bg-secondary);
        z-index: 10002;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .form-actions {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    /* Amélioration de la checkbox sur mobile */
    .checkbox-label {
        padding: var(--spacing-lg);
        margin: var(--spacing-lg) 0;
        min-height: 60px;
        align-items: flex-start;
        gap: var(--spacing-lg);
        background-color: #f0f0f0;
        border: 2px solid var(--border-color);
        cursor: pointer;
    }

    .checkbox-label input[type="checkbox"] {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        margin: 0;
        margin-top: 0;
        cursor: pointer;
        flex-shrink: 0;
        accent-color: var(--primary-color);
    }

    .checkbox-label .checkbox-text {
        font-size: 16px;
        line-height: 1.5;
        flex: 1;
    }

    .checkbox-label .checkbox-text a {
        color: var(--primary-color);
        text-decoration: underline;
    }

    .custom-checkbox {
        padding: var(--spacing-sm);
        margin: var(--spacing-sm) 0;
        min-height: 48px;
        align-items: center;
        position: relative;
        z-index: 1;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }

    .custom-checkbox .checkmark {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
        position: relative;
        z-index: 2;
        pointer-events: auto;
    }

    .custom-checkbox input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        width: 28px;
        height: 28px;
        left: var(--spacing-sm);
        top: 50%;
        transform: translateY(-50%);
        z-index: 3;
        pointer-events: auto;
    }

    .custom-checkbox input[type="checkbox"]:checked ~ .checkmark::after {
        left: 8px;
        top: 3px;
        width: 6px;
        height: 12px;
    }

    /* Checkbox personnalisée plus grande pour mobile */
    .checkbox-group {
        margin: var(--spacing-lg) 0;
    }

    .checkbox-group .custom-checkbox {
        padding: var(--spacing-lg);
        min-height: 60px;
        align-items: center;
        background-color: #f5f5f5;
        border: 2px solid var(--border-color);
        border-radius: 16px;
    }

    .checkbox-group .custom-checkbox input[type="checkbox"] {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        margin-right: var(--spacing-md) !important;
    }

    .checkbox-group .custom-checkbox .checkbox-text {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Amélioration des champs de carte sur mobile */
    .stripe-element {
        padding: 16px 14px;
        min-height: 52px;
        font-size: 16px !important;
        touch-action: manipulation;
        position: relative;
        z-index: auto;
        pointer-events: auto !important;
        cursor: text;
        -webkit-user-select: text;
        user-select: text;
    }

    .stripe-element iframe {
        height: 44px !important;
        min-height: 44px !important;
        pointer-events: auto !important;
        position: relative;
        z-index: auto;
        width: 100% !important;
        border: none !important;
        touch-action: manipulation;
    }

    #card-prenom,
    #card-nom {
        padding: 16px 14px;
        min-height: 52px;
        font-size: 16px !important;
        touch-action: manipulation;
    }

    .form-group input,
    .form-group select {
        padding: 16px 14px;
        min-height: 52px;
        font-size: 16px !important;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        touch-action: manipulation;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: var(--spacing-sm);
    }

    /* Empêcher le zoom sur les inputs sur iOS */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }

    .card-fields-container {
        margin-top: var(--spacing-lg);
    }

    .checkout-form {
        padding: var(--spacing-md);
        position: relative;
        z-index: 1;
    }

    .form-section {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
        position: relative;
        z-index: 1;
    }

    /* Filters responsive */
    .filters {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: stretch;
    }

    .filter-group {
        min-width: auto;
    }

    /* Padding harmonisé pour tous les éléments textuels en mobile */
    .page-header h1,
    .page-header h2,
    .page-header p,
    .hero h1,
    .hero h2,
    .hero p,
    .fondation-content h2,
    .fondation-content h3,
    .fondation-content p,
    .contact-purposes-centered h2,
    .contact-purposes-centered h3,
    .contact-purposes-centered p,
    .latest-books h2,
    .latest-books h3,
    .news-section h2,
    .news-section h3,
    .newsletter-content h2,
    .newsletter-content h3,
    .newsletter-content p,
    .roman-hero-text h1,
    .roman-hero-text h2,
    .roman-hero-text h3,
    .roman-hero-text p,
    .extrait-section h2,
    .extrait-section h3,
    .presse-section h2,
    .presse-section h3,
    .presse-section p,
    .contact-presse-content h2,
    .contact-presse-content h3,
    .contact-presse-content p,
    .bio-content p,
    .bio-content h3,
    .biblio-content p,
    .biblio-content h3,
    .auteur-editions-content p,
    .auteur-editions-content h3,
    .auteur-livres h3,
    .container > h1,
    .container > h2,
    .container > h3,
    .container > p {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Très petits écrans (max-width: 480px) */
@media (max-width: 480px) {
    /* Même font sizes que mobile */
    h1 {
        font-size: var(--font-size-h1);
        font-weight: 100;
    }

    h2 {
        font-size: 28px;
        font-weight: 100;
    }

    h3 {
        font-size: 22px;
        font-weight: 300;
    }

    .page-header h1 {
        font-size: var(--font-size-h1);
    }

    /* Checkbox plus grande pour iPhone */
    .checkbox-group .custom-checkbox {
        padding: var(--spacing-xl);
        min-height: 70px;
        align-items: center;
        background-color: #f5f5f5;
        border: 2px solid var(--border-color);
        border-radius: 16px;
    }

    .checkbox-group .custom-checkbox input[type="checkbox"] {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        margin-right: var(--spacing-lg) !important;
    }

    .checkbox-group .custom-checkbox .checkbox-text {
        font-size: 15px;
        line-height: 1.6;
    }

    .page-header h2 {
        font-size: 18px;
    }

    .fondation-content h2 {
        font-size: 28px;
    }

    .contact-purposes-centered h2 {
        font-size: 28px;
    }

    .auteur-photo {
        max-width: 200px;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    .hero {
        padding: var(--spacing-2xl) 0;
    }

    .hero h2 {
        font-size: 28px;
    }

    section {
        padding: var(--spacing-2xl) 0;
    }

    .page-header {
        padding: var(--spacing-xl) 0;
    }

    .contact-form-container {
        padding: var(--spacing-lg);
    }

    .faq-item {
        padding: var(--spacing-md);
    }

    .rencontre-number {
        font-size: 36px;
    }

    .biblio-year {
        font-size: 20px;
    }

    /* Padding harmonisé pour tous les éléments textuels en mobile < 480px */
    .page-header h1,
    .page-header h2,
    .page-header p,
    .hero h1,
    .hero h2,
    .hero p,
    .fondation-content h2,
    .fondation-content h3,
    .fondation-content p,
    .contact-purposes-centered h2,
    .contact-purposes-centered h3,
    .contact-purposes-centered p,
    .latest-books h2,
    .latest-books h3,
    .news-section h2,
    .news-section h3,
    .newsletter-content h2,
    .newsletter-content h3,
    .newsletter-content p,
    .roman-hero-text h1,
    .roman-hero-text h2,
    .roman-hero-text h3,
    .roman-hero-text p,
    .extrait-section h2,
    .extrait-section h3,
    .presse-section h2,
    .presse-section h3,
    .presse-section p,
    .contact-presse-content h2,
    .contact-presse-content h3,
    .contact-presse-content p,
    .bio-content p,
    .bio-content h3,
    .biblio-content p,
    .biblio-content h3,
    .auteur-editions-content p,
    .auteur-editions-content h3,
    .auteur-livres h3,
    .container > h1,
    .container > h2,
    .container > h3,
    .container > p {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Page Headers */
.page-header {
    background: #FCFAF2;
    color: var(--primary-color);
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.page-header p {
    font-size: var(--font-size-lg);
    opacity: 0.9;
}

.page-header h2 {
    font-size: 24px;
    font-weight: 100;
    color: var(--primary-color);
}

/* Filters Section */
.filters-section {
    background-color: var(--bg-secondary);
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--border-color);
}

.filters {
    display: flex;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    min-width: 150px;
}

.filter-group label {
    font-weight: 500;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
}

.filter-select {
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: white;
    font-size: var(--font-size-base);
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Catalogue Section */
.catalogue-section {
    padding: var(--spacing-2xl) 0;
}

.catalogue-stats {
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.catalogue-stats p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* Stock Badge */
.stock-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background-color: var(--accent-color);
    color: white;
    font-size: var(--font-size-xs);
    padding: 4px 8px;
    border-radius: var(--border-radius);
    font-weight: 500;
}

/* Loading & No Results */
.loading, .no-results {
    text-align: center;
    padding: var(--spacing-3xl) 0;
    color: var(--text-secondary);
}

.no-results h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-weight: 100;
}

/* Cart Layout */
.cart-section {
    padding: var(--spacing-2xl) 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-3xl);
    max-width: 1200px;
    margin: 0 auto;
}

.cart-items {
    background-color: white;
    padding: var(--spacing-2xl);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.cart-items h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-2xl);
    font-weight: 600;
    position: relative;
    padding-bottom: var(--spacing-md);
}

.cart-items h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light-3));
    border-radius: 2px;
}

.order-summary {
    background: linear-gradient(135deg, #ffffff 0%, var(--cream-3) 100%);
    padding: var(--spacing-2xl);
    border-radius: 16px;
    border: 2px solid var(--primary-light-2);
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: 0 8px 32px rgba(254, 108, 45, 0.12);
    transition: all 0.3s ease;
}

.order-summary:hover {
    box-shadow: 0 12px 48px rgba(254, 108, 45, 0.18);
}

.order-summary h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xl);
    text-align: center;
    font-weight: 600;
    position: relative;
    padding-bottom: var(--spacing-md);
}

.order-summary h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light-3));
    border-radius: 2px;
}

/* Cart Items */
.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: var(--spacing-xl);
    align-items: start;
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(to right, #ffffff 0%, var(--cream-3) 100%);
    border: 2px solid transparent;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(254, 108, 45, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cart-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light-3));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.cart-item:hover {
    border-color: var(--primary-light-2);
    box-shadow: 0 8px 24px rgba(254, 108, 45, 0.15);
    transform: translateY(-2px);
}

.cart-item:hover::before {
    transform: scaleX(1);
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 120px;
    height: 160px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.cart-item:hover .item-image {
    transform: scale(1.05);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    width: 100%;
}

.item-details h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.item-author {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    font-style: italic;
}

.item-weight {
    font-size: 0.85rem;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.item-weight::before {
    content: '⚖️';
    font-size: 0.85rem;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
    margin-top: auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.item-quantity label {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
}

.quantity-select {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    background-color: white;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
}

.quantity-select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(254, 108, 45, 0.1);
}

.quantity-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(254, 108, 45, 0.1);
}

.item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.item-price .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.item-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.btn-remove-from-cart {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 16px;
    transition: all 0.2s ease;
}

.btn-remove-from-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

/* Summary Lines */
.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.summary-line:hover {
    background-color: rgba(254, 108, 45, 0.05);
    transform: translateX(2px);
}

.summary-line span:first-child {
    color: var(--text-secondary);
    font-weight: 500;
}

.summary-line span:last-child {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.summary-line.total {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg) var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-light-3) 0%, var(--primary-light-2) 100%);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(254, 108, 45, 0.2);
}

.summary-line.total strong {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.summary-line.total span {
    color: var(--primary-dark-2);
    font-size: 1.5rem;
    font-weight: 700;
}

.shipping-info {
    background-color: transparent !important;
    margin-top: var(--spacing-xs);
    padding: var(--spacing-xs) 0;
    justify-content: center;
}

.shipping-info:hover {
    transform: none;
}

.shipping-info small {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.shipping-info small::before {
    content: '🚚';
    font-size: 1rem;
}

/* Checkout Section */
.checkout-section {
    margin-top: var(--spacing-2xl);
}

.btn-full {
    width: 100%;
    padding: var(--spacing-lg);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark-1) 100%);
    box-shadow: 0 4px 16px rgba(254, 108, 45, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-full:hover::before {
    left: 100%;
}

.btn-full:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(254, 108, 45, 0.4);
}

.btn-full:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(254, 108, 45, 0.3);
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: var(--spacing-3xl);
    color: var(--text-secondary);
    background: linear-gradient(135deg, var(--cream-3) 0%, white 100%);
    border-radius: 16px;
    border: 2px dashed var(--border-color);
    margin: var(--spacing-xl) 0;
}

.empty-cart h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
    font-size: 1.75rem;
}

.empty-cart h3::before {
    content: '🛒';
    display: block;
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.empty-cart p {
    margin-bottom: var(--spacing-xl);
    font-size: 1.1rem;
}

/* Modal */
.modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.modal-header h2 {
    font-size: var(--font-size-xl);
    color: var(--primary-color);
    margin: 0;
    font-weight: 100;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: var(--spacing-xs);
    color: var(--text-secondary);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent-color);
}

/* Checkout Form */
.checkout-form {
    padding: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

/* Fieldset reset pour garantir l'accessibilité aux champs */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
    min-width: 0;
}

fieldset.form-section {
    margin-bottom: var(--spacing-xl);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    background-color: #fafafa;
    position: relative;
    z-index: auto;
    pointer-events: auto;
}

.form-section {
    margin-bottom: var(--spacing-xl);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    background-color: #fafafa;
    position: relative;
    z-index: auto;
    pointer-events: auto;
}

.form-section h4 {
    font-size: var(--font-size-lg);
    font-weight: 100;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--border-color);
}

.form-section legend {
    font-weight: 100;
    font-size: var(--font-size-lg);
    color: var(--primary-color);
    padding: 0 var(--spacing-sm);
    float: none;
    width: auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
    background-color: white;
}

.form-group input:hover,
.form-group select:hover {
    border-color: var(--secondary-color);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(150, 111, 51, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.payment-method {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.payment-method:hover {
    border-color: var(--secondary-color);
}

.payment-method input[type="radio"] {
    margin-right: var(--spacing-md);
    width: auto;
}

.payment-method input[type="radio"]:checked + .payment-label {
    color: var(--secondary-color);
}

.payment-label {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.payment-label strong {
    font-weight: 600;
}

.payment-label small {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* Stripe Elements */
.payment-security-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 16px;
    color: #0369a1;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: var(--spacing-lg);
}

.payment-security-note svg {
    flex-shrink: 0;
    color: #0284c7;
}

.card-fields-container {
    margin-top: var(--spacing-md);
    position: relative;
    z-index: auto;
    pointer-events: auto;
}

/* S'assurer que tous les conteneurs permettent les interactions */
#stripeSection {
    position: relative;
    z-index: auto;
    pointer-events: auto;
}

#stripeSection * {
    pointer-events: auto;
}

.stripe-element {
    padding: 18px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: #ffffff !important;
    transition: all 0.3s ease;
    min-height: 60px;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: auto;
    pointer-events: auto !important;
    cursor: text;
}

.stripe-element:hover {
    border-color: var(--secondary-color);
    background-color: #f8f8f8 !important;
}

.stripe-element.StripeElement--focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(150, 111, 51, 0.12);
    background-color: #ffffff !important;
}

.stripe-element.StripeElement--invalid {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.1);
}

.stripe-element.StripeElement--complete {
    border-color: #22c55e;
}

.stripe-element iframe {
    pointer-events: auto !important;
    position: relative;
    z-index: auto;
    width: 100% !important;
    min-height: 24px !important;
    border: none !important;
}

#card-errors {
    color: var(--accent-color);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-sm);
    min-height: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

#card-errors:before {
    content: '⚠';
    font-size: 16px;
}

/* Champs de nom sur la carte - style cohérent avec Stripe Elements */
#card-prenom,
#card-nom {
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: white;
    transition: all 0.3s ease;
    min-height: 48px;
    font-size: 16px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #212121;
}

#card-prenom:hover,
#card-nom:hover {
    border-color: var(--secondary-color);
    background-color: #fafafa;
}

#card-prenom:focus,
#card-nom:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(150, 111, 51, 0.12);
    background-color: white;
}

#card-prenom::placeholder,
#card-nom::placeholder {
    color: #9E9E9E;
}

#card-prenom:invalid:not(:placeholder-shown),
#card-nom:invalid:not(:placeholder-shown) {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.1);
}

#card-prenom:valid:not(:placeholder-shown),
#card-nom:valid:not(:placeholder-shown) {
    border-color: #22c55e;
}

/* Payment Security Badge */
.payment-security {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 16px;
    color: #0369a1;
    font-size: 14px;
    line-height: 1.5;
    margin-top: var(--spacing-md);
}

.payment-security svg {
    flex-shrink: 0;
    color: #0284c7;
}

/* CGV Section */
.cgv-section {
    margin: var(--spacing-md) 0;
}

.cgv-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: var(--spacing-md);
    background-color: #fafafa;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.cgv-checkbox:hover {
    background-color: #f5f5f5;
    border-color: var(--secondary-color);
}

.cgv-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    margin: 2px 0 0 0;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--primary-color);
}

.cgv-checkbox label {
    cursor: pointer;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    font-size: 14px;
}

.cgv-checkbox label a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.cgv-checkbox label a:hover {
    color: var(--secondary-color);
}

/* Custom Checkbox */
.checkbox-group {
    margin-top: var(--spacing-lg);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    cursor: pointer;
    line-height: 1.6;
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    background-color: #fafafa;
    border-radius: var(--border-radius);
}

.checkbox-label input[type="checkbox"] {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    margin: 0;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--primary-color);
}

.checkbox-label .checkbox-text {
    flex: 1;
    user-select: none;
}

.checkbox-label .checkbox-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.checkbox-label .checkbox-text a:hover {
    color: var(--primary-dark-1);
}

/* S'assurer que l'input checkbox est toujours visible et cliquable */
.form-group input[type="checkbox"] {
    position: static !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    cursor: pointer;
    line-height: 1.6;
    position: relative;
    padding: var(--spacing-md);
    margin: var(--spacing-sm) 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    border-radius: 16px;
    transition: background-color 0.2s ease;
}

.custom-checkbox:hover {
    background-color: #f9f9f9;
}

.checkbox-group .custom-checkbox input[type="checkbox"] {
    position: relative !important;
    opacity: 1 !important;
    cursor: pointer;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
    accent-color: var(--secondary-color);
}

.checkbox-group .custom-checkbox .checkmark {
    display: none !important;
}

.custom-checkbox:hover .checkmark {
    border-color: var(--secondary-color);
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkmark {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    display: block;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox .checkbox-text {
    flex: 1;
}

.custom-checkbox .checkbox-text a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.custom-checkbox .checkbox-text a:hover {
    color: var(--primary-color);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

/* Processing */
.processing {
    text-align: center;
    padding: var(--spacing-3xl);
}

.spinner {
    border: 4px solid var(--bg-light);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-lg);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus states pour l'accessibilité */
*:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ============================================
   PAGE NOUVEAUTÉS
============================================ */

.fnac-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--cream-3);
}

.fnac-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.fnac-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto var(--spacing-lg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border-radius: 16px;
}

.fnac-text {
    font-size: 20px;
    color: #000000;
    font-weight: 500;
    line-height: 1.6;
}

.latest-books {
    padding: var(--spacing-3xl) 0;
    background-color: var(--bg-secondary);
}

.latest-books h2 {
    font-family: 'Century', Georgia, serif;
    font-size: 60px;
}

.latest-books .books-grid {
    display: flex;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
}

.latest-books .book-card {
    max-width: 350px;
}

.news-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--bg-secondary);
}

.news-section h2 {
    font-family: 'Century', Georgia, serif;
    font-size: 60px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.news-card {
    background-color: white;
    padding: var(--spacing-xl);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow);
}

.news-date {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.news-card h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 100;
}

.news-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

/* Responsive Nouveautés */
@media (max-width: 768px) {
    .latest-books h2 {
        font-size: 34px !important;
    }

    .news-section h2 {
        font-size: 34px !important;
    }
}

@media (max-width: 480px) {
    .latest-books h2 {
        font-size: 28px !important;
    }

    .news-section h2 {
        font-size: 28px !important;
    }
}

/* Newsletter Section */
.newsletter-section {
    background-color: var(--primary-color);
    padding: var(--spacing-3xl) 0;
    color: white;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    color: white;
    margin-bottom: var(--spacing-md);
    font-weight: 100;
}

.newsletter-content p {
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-md);
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: var(--spacing-md);
    border: none;
    font-size: 16px;
}

.newsletter-form button {
    background-color: var(--black-2);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background-color: var(--gray-dark-3);
}

/* ============================================
   PAGE ROMAN
============================================ */

.roman-hero {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-light) 100%);
}

.roman-hero-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.roman-hero-image {
    position: sticky;
    top: 120px;
}

.roman-hero-image img {
    width: 100%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.roman-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 4px 12px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.roman-hero-text h1 {
    font-size: var(--font-size-h1);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 100;
}

.roman-author {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.roman-author a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.roman-author a:hover {
    color: var(--primary-dark-1);
}

.roman-intro {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
}

.roman-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.roman-price {
    font-size: 32px;
    font-weight: 100;
    color: var(--primary-color);
}

/* Extrait Section */
.roman-extrait {
    padding: var(--spacing-3xl) 0;
    background-color: var(--bg-primary);
}

.extrait-content {
    max-width: 800px;
    margin: 0 auto;
}

.extrait-text {
    background-color: var(--bg-secondary);
    padding: var(--spacing-2xl);
    border-left: 4px solid var(--primary-color);
    font-size: 18px;
    line-height: 1.8;
    font-style: italic;
    color: var(--text-primary);
}

.extrait-text p {
    margin-bottom: var(--spacing-md);
}

.extrait-text p:last-child {
    margin-bottom: 0;
}

/* À propos du roman */
.roman-about {
    padding: var(--spacing-3xl) 0;
    background-color: var(--bg-secondary);
}

.roman-about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-3xl);
}

.roman-about-text h2 {
    text-align: left;
    margin-bottom: var(--spacing-lg);
    font-weight: 100;
}

.roman-about-text p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.roman-about-details {
    background-color: white;
    padding: var(--spacing-xl);
    border: 1px solid var(--border-color);
    height: fit-content;
}

.roman-about-details h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    font-weight: 100;
}

.roman-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-xl) 0;
}

.roman-info-list li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 16px;
}

.roman-info-list li:last-child {
    border-bottom: none;
}

.roman-info-list strong {
    color: var(--text-primary);
}

.roman-cta {
    margin-top: var(--spacing-lg);
}

.roman-cta .btn {
    width: 100%;
}

/* Autres romans */
.autres-romans {
    padding: var(--spacing-3xl) 0;
    background-color: var(--bg-primary);
}

/* Responsive Roman Page */
@media (max-width: 1024px) {
    .roman-hero-content {
        grid-template-columns: 300px 1fr;
        gap: var(--spacing-xl);
    }

    .roman-hero-text h1 {
        font-size: var(--font-size-h1);
    }

    .roman-about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    /* Padding harmonisé pour écrans < 1024px */
    .page-header h1,
    .page-header h2,
    .page-header p,
    .hero h1,
    .hero h2,
    .hero p,
    .fondation-content h2,
    .fondation-content h3,
    .fondation-content p,
    .contact-purposes-centered h2,
    .contact-purposes-centered h3,
    .contact-purposes-centered p,
    .latest-books h2,
    .latest-books h3,
    .news-section h2,
    .news-section h3,
    .newsletter-content h2,
    .newsletter-content h3,
    .newsletter-content p,
    .roman-hero-text h1,
    .roman-hero-text h2,
    .roman-hero-text h3,
    .roman-hero-text p,
    .extrait-section h2,
    .extrait-section h3,
    .presse-section h2,
    .presse-section h3,
    .presse-section p,
    .contact-presse-content h2,
    .contact-presse-content h3,
    .contact-presse-content p,
    .bio-content p,
    .bio-content h3,
    .biblio-content p,
    .biblio-content h3,
    .auteur-editions-content p,
    .auteur-editions-content h3,
    .auteur-livres h3,
    .container > h1,
    .container > h2,
    .container > h3,
    .container > p {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .roman-hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .roman-hero-image {
        position: static;
        max-width: 300px;
        margin: 0 auto;
    }

    .roman-hero-text h1 {
        font-size: var(--font-size-h1);
    }

    .roman-price {
        font-size: 24px;
    }

    .roman-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .roman-meta .btn {
        width: 100%;
    }

    .extrait-text {
        padding: var(--spacing-lg);
        font-size: 16px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}

/* ============================================
   PAGE REVUE DE PRESSE
============================================ */

.presse-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--cream-3);
}

.presse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.presse-card {
    background-color: white;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
}

.presse-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow);
}

.presse-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--bg-light);
    border-radius: 16px 16px 0 0;
}

.presse-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.presse-card:hover .presse-card-image img {
    transform: scale(1.05);
}

.presse-card-content {
    padding: var(--spacing-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.presse-source {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: var(--spacing-xs);
}

.presse-date {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: var(--spacing-lg);
}

.presse-card h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    font-weight: 100;
}

.presse-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

/* Iframes dans les cartes de presse */
.presse-card-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    margin-bottom: var(--spacing-lg);
}

/* Affichage conditionnel desktop/mobile pour les PDFs */
.btn-mobile-fullscreen {
    display: none;
}

.btn-desktop-download {
    display: inline-block;
}

.pdf-iframe-desktop {
    display: block;
}

/* Images dans le contenu des cartes (même dimension que les iframes) */
.presse-card-content img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    margin-top: 0;
    margin-bottom: var(--spacing-lg);
}

/* Boutons dans les cartes de presse */
.presse-card-content .btn {
    margin-top: 0;
}

/* Audio player dans les cartes de presse */
.presse-card-content .custom-audio-player {
    margin-bottom: var(--spacing-lg);
}

/* ====================================
   LECTEUR AUDIO PERSONNALISÉ
   ==================================== */
.custom-audio-player {
    width: 100%;
    margin-top: 0px;
    background-color: #FFFFFF;
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: var(--spacing-sm) 15px;
    min-height: 44px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.custom-audio-player audio {
    display: none;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* Bouton Play/Pause */
.play-pause-btn {
    min-height: 25px;
    height: 25px;
    width: 25px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.play-pause-btn:hover {
    background-color: var(--primary-dark-1);
    transform: translateY(-2px);
}

.play-pause-btn svg {
    width: 20px;
    height: 20px;
    color: white;
}

/* Affichage du temps */
.time-display {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 45px;
    text-align: center;
}

/* Barre de progression */
.progress-container {
    flex: 1;
    height: 8px;
    background-color: var(--gray-light-2);
    border-radius: 16px;
    cursor: pointer;
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 100%;
    position: relative;
}

.progress-filled {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.progress-filled::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-container:hover .progress-filled::after {
    opacity: 1;
}

/* Bouton Volume */
.volume-btn {
    min-height: 25px;
    height: 25px;
    width: 25px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.volume-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.volume-btn:hover svg {
    color: white;
}

.volume-btn svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .audio-controls {
        gap: 8px;
    }

    .play-pause-btn,
    .volume-btn {
        min-height: 40px;
        height: 40px;
        width: 40px;
    }

    .play-pause-btn svg,
    .volume-btn svg {
        width: 18px;
        height: 18px;
    }

    .time-display {
        font-size: 12px;
        min-width: 40px;
    }

    .custom-audio-player {
        padding: 10px 12px;
    }

    /* Sur mobile : cacher l'iframe PDF et afficher le bouton plein écran */
    .pdf-iframe-desktop {
        display: none;
    }

    .btn-mobile-fullscreen {
        display: inline-block;
    }

    .btn-desktop-download {
        display: none;
    }
}

.contact-presse {
    background-color: var(--bg-secondary);
    padding: var(--spacing-3xl) 0;
    text-align: center;
}

.contact-presse-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-presse-content h2 {
    margin-bottom: var(--spacing-md);
    font-weight: 100;
}

.contact-presse-content p {
    font-size: 18px;
    margin-bottom: var(--spacing-lg);
}

.contact-presse-info {
    background-color: white;
    padding: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    border: 1px solid var(--border-color);
}

.contact-presse-info p {
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   PAGE LES EDITIONS NATAL
============================================ */

.editions-histoire {
    padding: var(--spacing-3xl) 0;
    background-color: var(--cream-3);
}

.rencontres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.rencontre-card {
    background-color: var(--bg-secondary);
    padding: var(--spacing-xl);
    border-left: 4px solid var(--primary-color);
}

.rencontre-number {
    font-size: 48px;
    font-weight: 100;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.rencontre-card h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 100;
}

.rencontre-card p {
    color: var(--text-primary);
    line-height: 1.7;
}

.editions-philosophie {
    background-color: var(--cream-3);
    padding: var(--spacing-3xl) 0;
}

.philosophie-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.philosophie-text {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-primary);
}

.editions-fondation {
    padding: var(--spacing-3xl) 0;
    background-color: var(--cream-3);
}

.fondation-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.fondation-content h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    font-size: 48px;
}

.fondation-content p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.fondation-logo {
    max-width: 300px;
    height: auto;
    margin: var(--spacing-xl) auto;
    display: block;
}

.editions-collections {
    padding: var(--spacing-3xl) 0;
    background-color: var(--cream-3);
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.collection-card {
    background-color: white;
    padding: var(--spacing-xl);
    border: 1px solid var(--border-color);
}

.collection-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-weight: 100;
}

.collection-card p {
    line-height: 1.7;
}

.editions-cta {
    background-color: var(--cream-3);
    padding: var(--spacing-3xl) 0;
    text-align: center;
}

.cta-content h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-weight: 100;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
}

/* ============================================
   PAGE ANDRÉ ZAMOFING
============================================ */

.auteur-photo-section {
    padding: var(--spacing-md) 0;
    background-color: var(--cream-3);
}

.auteur-photo-container {
    text-align: center;
}

.auteur-photo {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: inline-block;
}

.auteur-bio {
    padding: var(--spacing-3xl) 0;
    background-color: var(--cream-3);
}

.bio-content {
    max-width: 900px;
    margin: 0 auto;
}

.bio-content h3 {
    color: var(--primary-color);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    font-weight: 100;
}

.bio-content p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.auteur-biblio {
    padding: var(--spacing-3xl) 0;
    background-color: var(--cream-3);
}

.biblio-timeline {
    max-width: 800px;
    margin: var(--spacing-xl) auto 0;
    position: relative;
    padding-left: 60px;
}

.biblio-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
}

.biblio-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    position: relative;
}

.biblio-item::before {
    content: '';
    position: absolute;
    left: -49px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.biblio-year {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
}

.biblio-content {
    background-color: white;
    padding: var(--spacing-lg);
    border: 1px solid var(--border-color);
}

.biblio-content h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 100;
}

.biblio-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.auteur-editions {
    padding: var(--spacing-3xl) 0;
    background-color: var(--cream-3);
}

.auteur-editions-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.auteur-editions-content p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.auteur-livres {
    padding: var(--spacing-3xl) 0;
    background-color: var(--cream-3);
}

/* Responsive Pages Spéciales */
@media (max-width: 768px) {
    .biblio-timeline {
        padding-left: 40px;
    }

    .biblio-timeline::before {
        left: 10px;
    }

    .biblio-item {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .biblio-item::before {
        left: -39px;
    }

    .presse-grid {
        grid-template-columns: 1fr;
    }

    /* Padding harmonisé pour toute la page en mobile */
    .bio-content p,
    .bio-content h3,
    .biblio-content p,
    .biblio-content h3,
    .auteur-editions-content p,
    .auteur-editions-content h3,
    .auteur-livres h3,
    .page-header h1,
    .page-header h2,
    .page-header p,
    .fondation-content h2,
    .fondation-content h3,
    .fondation-content p,
    .contact-purposes-centered h2,
    .contact-purposes-centered h3,
    .contact-purposes-centered p,
    .hero h1,
    .hero h2,
    .hero p,
    .latest-books h2,
    .latest-books h3,
    .news-section h2,
    .news-section h3,
    .newsletter-content h2,
    .newsletter-content h3,
    .newsletter-content p,
    .roman-hero-text h1,
    .roman-hero-text h2,
    .roman-hero-text h3,
    .roman-hero-text p,
    .extrait-section h2,
    .extrait-section h3,
    .presse-section h2,
    .presse-section h3,
    .presse-section p,
    .contact-presse-content h2,
    .contact-presse-content h3,
    .contact-presse-content p,
    .container > h1,
    .container > h2,
    .container > h3,
    .container > p {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ====================================
   BANNIÈRE COOKIES
   ==================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--black-2) 0%, var(--black-3) 100%);
    color: var(--white);
    padding: 1.5rem 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid var(--primary-color);
}

.cookie-banner.show {
    transform: translateY(0);
}

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

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.cookie-banner-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray-light-1);
    margin: 0;
}

.cookie-banner-text a {
    color: var(--primary-light-2);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-banner-text a:hover {
    color: var(--primary-color);
}

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
}

.cookie-banner-actions .btn {
    white-space: nowrap;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-accept-cookies {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark-1) 100%);
    color: var(--white);
}

.btn-accept-cookies:hover {
    background: linear-gradient(135deg, var(--primary-dark-1) 0%, var(--primary-dark-2) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(254, 108, 45, 0.3);
}

.btn-decline-cookies {
    background: transparent;
    color: var(--gray-light-1);
    border: 2px solid var(--gray-dark-4);
}

.btn-decline-cookies:hover {
    background: var(--gray-dark-4);
    color: var(--white);
    border-color: var(--gray-dark-4);
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.25rem 1.5rem;
    }

    .cookie-banner-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cookie-banner-text h3 {
        font-size: 1.1rem;
    }

    .cookie-banner-text p {
        font-size: 0.9rem;
    }

    .cookie-banner-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-banner-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* ==============================================
   PAGE LOADER
   ============================================== */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Logo avec animation de pulsation (petit-gros-petit-gros) */
.loader-logo {
    width: 120px;
    height: auto;
    animation: pulse-loader 3s ease-in-out infinite;
}

@keyframes pulse-loader {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* Barre de progression */
.loader-bar-container {
    width: 200px;
    height: 4px;
    background: var(--gray-light-2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    animation: progress-loader 2s ease-in-out forwards;
    width: 0;
}

@keyframes progress-loader {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .loader-logo {
        width: 80px;
    }

    .loader-bar-container {
        width: 150px;
    }
}

/* ============================================
   SYSTÈME D'ANIMATIONS
============================================ */

/* ===== ANIMATIONS AU SCROLL ===== */

/* État initial des éléments à animer */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* État animé quand visible */
.fade-in-element.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Animation stagger pour les grilles */
.stagger-animate {
    animation: staggerFadeIn 0.6s ease-out forwards;
}

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

/* ===== HOVER EFFECTS AMÉLIORÉS ===== */

/* Cards avec transitions smooth */
.book-card,
.presse-card,
.news-card,
.collection-card,
.rencontre-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    will-change: transform;
}

/* Images avec overflow hidden pour le zoom */
.book-image,
.presse-card-image {
    overflow: hidden;
    position: relative;
}

.book-image img,
.presse-card-image img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1.05);
    will-change: transform;
}

/* Shadow glow au hover des cards */
.book-card:hover,
.presse-card:hover,
.news-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15),
                0 0 25px rgba(239, 173, 78, 0.2);
}

/* ===== ANIMATIONS BOUTONS ===== */

/* Container pour l'effet ripple */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
}

/* Effet ripple */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Boutons avec hover scale */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

/* Effet glow pour les boutons primaires */
.btn-primary {
    box-shadow: 0 4px 15px rgba(239, 173, 78, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(239, 173, 78, 0.5);
    transform: translateY(-3px);
}

/* ===== ANIMATIONS FORMULAIRES ===== */

/* Container input animé */
.input-animated {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-animated input,
.input-animated textarea {
    transition: all 0.3s ease;
}

.input-animated.input-focused input,
.input-animated.input-focused textarea {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(239, 173, 78, 0.1);
    transform: translateY(-2px);
}

/* Labels flottants */
.input-animated label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.5rem;
    pointer-events: none;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.input-animated.input-focused label {
    transform: translateY(-150%) scale(0.85);
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== ANIMATIONS DE TEXTE ===== */

/* Effet typing pour les titres */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Effet slide-in pour les headers */
.page-header h1 {
    animation: slideInDown 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MICRO-INTERACTIONS ===== */

/* Links avec underline animé */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(0);
}

/* Compteur panier avec pulse */
.panier-count {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ===== SMOOTH SCROLL ===== */
html {
    scroll-behavior: smooth;
}

/* ===== PERFORMANCE & ACCESSIBILITY ===== */

/* Désactiver les animations pour ceux qui préfèrent reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-in-element {
        opacity: 1;
        transform: none;
    }
}

/* Optimisation GPU */
.book-card,
.presse-card,
.news-card,
.btn,
.book-image img {
    transform: translateZ(0);
    backface-visibility: hidden;
}

