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

:root {
    --primary-color: #1c2541;
    --secondary-color: #f4d35e;
    --accent-color: #e63946;
    --background-light: #fdfbf7;
    --background-white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #666;
    --text-muted: #888;
    --border-light: #e0e0e0;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 25px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

html {
    min-width: 400px !important;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    min-width: 400px !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    padding: 15px 2%;
    background-color: var(--primary-color) !important;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.navbar-brand {
    padding: 0;
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

.responsive-text {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--secondary-color);
    margin-left: 12px;
}

.nav-link {
    color: #ffffff !important;
    text-decoration: none;
    margin: 0 8px;
    padding: 8px 16px !important;
    font-weight: 600;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.navbar-toggler {
    background-color: var(--secondary-color);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(244, 211, 94, 0.3);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 120px 5% 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-white) 50%, #f8f4f0 100%);
    gap: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(244, 211, 94, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    text-align: left;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, var(--accent-color), #ff6b7a);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5em, 6vw, 4em);
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.1;
}

.hero-text .subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.4em;
    color: var(--text-light);
    margin-bottom: 20px;
    font-style: italic;
    font-weight: 400;
}

.hero-text .description {
    font-size: 1.1em;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-features {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-features .feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-weight: 600;
}

.hero-features .feature i {
    color: var(--secondary-color);
    font-size: 1.2em;
}

.price {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    display: inline-block;
}

.discount-badge {
    background: linear-gradient(45deg, var(--accent-color), #ff6b7a);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-right: 15px;
    display: inline-block;
}

.new-price {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--accent-color);
    margin-right: 15px;
}

.old-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 1.3em;
}

.price-note {
    font-size: 0.9em;
    color: var(--text-light);
    margin-top: 8px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(45deg, var(--secondary-color), #ffed4a);
    color: var(--primary-color);
    border: none;
    padding: 18px 35px;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: var(--shadow-medium);
    text-align: center;
    width: fit-content;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #ffed4a, var(--secondary-color));
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
    color: var(--primary-color);
}

.stock-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95em;
}

.stock-info i {
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0.3;
    }
}

.hero-img {
    flex: 1;
    max-width: 450px;
    position: relative;
    z-index: 2;
}

.hero-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    transition: var(--transition);
}

.hero-img:hover img {
    transform: scale(1.05) rotate(2deg);
}

.hero-badges {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.hero-badges>div {
    background: var(--background-white);
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    font-size: 0.85em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quality-badge {
    color: var(--accent-color);
}

.shipping-badge {
    color: #28a745;
}

/* Sections générales */
section {
    padding: 80px 0;
    position: relative;
}

section:nth-of-type(even) {
    background-color: #f9f6f2;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2em, 5vw, 3em);
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary-color);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Section À propos */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 50px;
}

.about-text p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: justify;
}

.quote-highlight {
    background: linear-gradient(45deg, var(--secondary-color), #ffed4a);
    padding: 25px;
    border-radius: var(--border-radius);
    margin: 30px 0;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.3em;
    font-style: italic;
    color: var(--primary-color);
    position: relative;
}

.quote-highlight i {
    font-size: 1.5em;
    opacity: 0.7;
    margin-bottom: 10px;
    display: block;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.author-avatar i {
    font-size: 3em;
    color: var(--secondary-color);
}

.author-details h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.2em;
}

.author-details p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9em;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat {
    text-align: center;
    padding: 30px 20px;
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stat-number {
    font-size: 3em;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    color: var(--text-light);
    font-weight: 600;
    margin-top: 10px;
}

/* Section Caractéristiques */
.book-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
    align-items: start;
}

.book-images {
    position: relative;
}

.main-image {
    position: relative;
}

.image-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
    z-index: 1;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: var(--text-light);
}

/* Responsive pour le carrousel */
@media (max-width: 768px) {
    .image-carousel {
        height: 450px;
    }
}

@media (max-width: 480px) {
    .image-carousel {
        height: 350px;
    }
}

.book-specs h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
}

.spec-list {
    margin-bottom: 40px;
}

.spec {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.spec i {
    color: var(--secondary-color);
    font-size: 1.2em;
    width: 20px;
}

.book-features h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3em;
}

.book-features ul {
    list-style: none;
}

.book-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 1.05em;
}

.book-features li i {
    color: #28a745;
    font-size: 1.1em;
}

/* Section Extraits améliorée */
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    margin-top: 50px;
    height: 280px;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f9f6f2 0%, rgba(249, 246, 242, 0.8) 50%, transparent 100%);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #f9f6f2 0%, rgba(249, 246, 242, 0.8) 50%, transparent 100%);
}

.extraits {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    /* Pas d'animation CSS - gérée par JavaScript */
    will-change: transform;
}

.extrait {
    width: 300px;
    min-width: 300px;
    height: 240px;
    background: var(--background-white);
    border-radius: var(--border-radius);
    padding: 30px 25px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border-top: 4px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

.extrait:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.quote-icon {
    position: absolute;
    top: -15px;
    left: 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quote {
    font-style: italic;
    color: var(--text-dark);
    font-size: 1.05em;
    line-height: 1.5;
    margin-top: 15px;
    margin-bottom: auto;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.source {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9em;
    text-align: right;
    border-top: 1px solid var(--border-light);
    padding-top: 15px;
    margin-top: 15px;
}

/* Section Artistes */
.artists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    align-items: stretch;
}

.artist-card {
    background: var(--background-white);
    padding: 30px 25px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.artist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: var(--transition);
}

.artist-card:hover::before {
    left: 0;
}



.artist-card.featured {
    border: 2px solid var(--secondary-color);
    position: relative;
}

.artist-card.featured::after {
    content: 'VEDETTE';
    position: absolute;
    top: 15px;
    right: -25px;
    background: var(--accent-color);
    color: white;
    padding: 5px 30px;
    font-size: 0.7em;
    font-weight: 700;
    transform: rotate(45deg);
}

.artist-image {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(45deg, var(--secondary-color), #ffed4a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: var(--primary-color);
}

.artist-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.artist-desc {
    color: var(--text-light);
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 15px;
}

.artist-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition);
    height: 100%;
}

.artist-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.artist-card-link:hover .artist-card {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.artist-card-link .artist-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.artist-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: var(--transition);
    display: block;
    margin-top: 15px;
}

.artist-card-link:hover .artist-link {
    color: var(--primary-color);
}

/* Section Commander */
.order-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a3b5c 100%);
    color: white;
}

.order-section h2 {
    color: white;
}

.order-header {
    text-align: center;
    margin-bottom: 60px;
}

.order-subtitle {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 15px;
}

.order-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.order-left {
    position: sticky;
    top: 100px;
    align-self: flex-start;
    /* Pour que le sticky fonctionne correctement */
    height: fit-content;
    /* Hauteur automatique */
}

.price-box {
    background: var(--background-white);
    color: var(--text-dark);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-heavy);
    margin-bottom: 30px;
    /* Espacement avec order-features */
}

.price-header {
    text-align: center;
    margin-bottom: 20px;
}

.price-main {
    text-align: center;
    margin-bottom: 25px;
}

.price-main .new-price {
    font-size: 3em;
    font-weight: 700;
    color: var(--accent-color);
    margin-right: 15px;
}

.price-main .old-price {
    font-size: 1.5em;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-details {
    border-top: 2px solid var(--border-light);
    padding-top: 20px;
}

.price-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.price-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary-color);
    border-top: 2px solid var(--border-light);
    padding-top: 15px;
    margin-top: 15px;
}

.order-features {
    margin-top: 30px;
}

.order-features .feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    /* Blanc visible sur fond sombre */
    font-weight: 500;
}

.order-features .feature i {
    color: var(--secondary-color);
    /* Jaune doré pour ressortir */
    font-size: 1.1em;
}

.urgency-box {
    background: linear-gradient(45deg, var(--accent-color), #ff6b7a);
    color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    text-align: center;
}

.urgency-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 15px;
}

.urgency-header i {
    animation: pulse 1.5s infinite;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.3);
    height: 8px;
    border-radius: 4px;
    margin: 15px 0;
    overflow: hidden;
}

.progress-fill {
    background: white;
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.urgency-text {
    font-size: 0.95em;
    margin-top: 10px;
}

.paypal-container {
    background: var(--background-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 30px;
}

.payment-placeholder {
    text-align: center;
    color: var(--text-dark);
}

.payment-placeholder i {
    font-size: 2em;
    color: #FF9900; /* Amazon orange */
}

.payment-placeholder h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.temp-order-btn {
    margin-top: 20px;
}

.temp-order-btn a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.temp-order-btn a:hover {
    background: #ffed4a;
    transform: translateY(-2px);
}

.shipping-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shipping-info h4 {
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shipping-zones .zone {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.shipping-zones .zone.france-special {
    background: linear-gradient(45deg, rgba(244, 211, 94, 0.2), rgba(46, 125, 50, 0.2));
    border: 2px solid var(--secondary-color);
    position: relative;
    padding: 18px 15px;
}

.shipping-zones .zone.europe-special {
    background: linear-gradient(45deg, rgba(244, 211, 94, 0.2), rgba(33, 150, 243, 0.2));
    border: 2px solid #2196f3;
    position: relative;
    padding: 18px 15px;
}

.shipping-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 8px 0;
}

.real-price {
    color: var(--secondary-color);
    text-decoration: line-through;
    font-size: 1.1em;
    opacity: 1;
    font-weight: 600;
}

.customer-price {
    color: #4caf50;
    font-weight: 700;
    font-size: 1.1em;
}

.shipping-time {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
}

.shipping-note {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    margin-top: 8px;
    display: inline-block;
}

/* Section FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.faq-item {
    background: var(--background-white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
}

.faq-item:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-3px);
}

.faq-item h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
}

.faq-item h4 i {
    color: var(--secondary-color);
}

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

/* Section Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    height: fit-content;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.contact-item i {
    font-size: 2em;
    color: var(--secondary-color);
    width: 60px;
    text-align: center;
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: var(--background-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: var(--transition);
    background: #fafafa;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 50px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(244, 211, 94, 0.2);
}

.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: white url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4d35e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 15px center;
    background-size: 20px;
    box-shadow: 0 0 0 3px rgba(244, 211, 94, 0.2);
}

/* Message de statut pour le formulaire */
.message-status {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    animation: fadeIn 0.3s ease-in;
}

.message-status.success {
    background-color: #d1edff;
    color: #0066cc;
    border: 1px solid #0066cc;
}

.message-status.error {
    background-color: #ffe6e6;
    color: #cc0000;
    border: 1px solid #cc0000;
}

.message-status.loading {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#submitBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo span {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--secondary-color);
}

.footer-left p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 400px;
}

.footer-links {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-social p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 5% 60px;
    }

    .hero-text {
        max-width: 100%;
        order: 2;
    }

    .hero-img {
        order: 1;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }

    .book-details {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .order-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }

    .hero {

        gap: 40px;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-badges {
        align-items: center;
    }

    .price {
        text-align: center;
    }

    .new-price {
        font-size: 2em !important;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .artists {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .extrait {
        width: 280px;
    }

    .about-stats {
        flex-direction: column;
    }

    .order-left {
        position: static;

    }

    .contact-info {
        position: static;

    }

    .price-box {
        margin-bottom: 30px;
    }

    .contact-form {
        padding: 25px;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.5em;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

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

    .extrait {
        width: 250px;
    }

    .marquee-wrapper::before,
    .marquee-wrapper::after {
        width: 40px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-item i {
        width: auto;
    }
}

/* Animations personnalisées */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}



/* Amélioration de l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .extraits {
        animation: none !important;
        transform: none !important;
    }
}

/* Optimisation pour appareils peu performants */
@media screen and (max-width: 768px) {

    /* Désactiver certaines animations sur mobile pour améliorer les performances */
    .hero::before {
        display: none;
        /* Supprimer l'effet de fond animé */
    }

    .hero-img:hover img {
        transform: none;
        /* Désactiver l'effet hover sur l'image */
    }

    .nav-link:hover,
    .nav-link.active {
        transform: none;
        /* Simplifier les transformations */
    }

    .btn-primary:hover {
        transform: none;
        /* Simplifier les transformations */
    }

    /* Simplifier les ombres */
    .extrait {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    }
}

/* Optimisation supplémentaire pour très petits écrans */
@media screen and (max-width: 480px) {

    
    .hero-img img {
        filter: none;
    }

    
    .hero-badge {
        animation: none !important;
    }

    .stock-info i {
        animation: none !important;
    }
}

/* États de focus pour l'accessibilité */
a:focus,
button:focus,
input:focus,

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

/* Animation d'apparition au scroll - État initial */
section:not(.hero),
.artist-card,
.faq-item,
.stat {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* État visible après intersection */
section.fade-in-up,
.artist-card.fade-in-up,
.faq-item.fade-in-up,
.stat.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

/* Pour les appareils peu performants, simplifier */
.low-performance-device section:not(.hero),
.low-performance-device .artist-card,
.low-performance-device .faq-item,
.low-performance-device .stat {
    opacity: 0;
    transform: none;
    transition: opacity 0.3s ease;
}

.low-performance-device section.visible,
.low-performance-device .artist-card.visible,
.low-performance-device .faq-item.visible,
.low-performance-device .stat.visible {
    opacity: 1;
}

/* Optimisations pour l'impression */
@media print {

    .navbar,
    .hero-badges,
    .order-section,
    footer {
        display: none;
    }

    section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .hero {
        padding: 20px 0;
    }

    body {
        background: white;
        color: black;
    }
}

/* Modal Partager la Lumière */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    /* keep layout always ready so opacity/visibility transitions smoothly */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.32s cubic-bezier(.2,.9,.2,1), visibility 0.32s ease;
    overflow-y: auto;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background: var(--background-white);
    border-radius: var(--border-radius);
    max-width: 1000px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(8px) scale(0.96);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(.2,.9,.2,1), opacity 0.28s ease;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
    z-index: 10;
    box-shadow: var(--shadow-medium);
}

.modal-close:hover {
    background: #d32f3c;
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    padding: 40px;
    overflow-y: auto;
    flex: 1;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--background-light);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.modal-left {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: sticky;
    top: 0;
    align-self: flex-start;
}

.modal-cover {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    object-fit: cover;
}

.modal-right h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

/* Onglets de la modal */
.modal-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 0;
}

.modal-tab {
    flex: 1;
    padding: 12px 15px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
}

.modal-tab i {
    font-size: 1.1em;
}

.modal-tab:hover {
    color: var(--primary-color);
    background: var(--background-light);
}

.modal-tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    background: var(--background-light);
}

.tab-badge {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 700;
    margin-left: 4px;
}

.modal-tab.active .tab-badge {
    background: var(--accent-color);
    color: white;
}

/* Contenu des onglets */
.modal-tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

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

/* Encadré de présentation */
.book-highlight {
    background: linear-gradient(135deg, var(--background-light) 0%, #fff9e6 100%);
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
    margin-top: 20px;
}

.book-highlight h4 {
    font-size: 1.2em;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.book-highlight h4 i {
    color: var(--accent-color);
}

.book-highlight p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--text-dark);
}

.book-highlight p:last-child {
    margin-bottom: 0;
}

.modal-intro {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding: 15px;
    background: var(--background-light);
    border-left: 4px solid var(--secondary-color);
    border-radius: 8px;
}

.modal-section {
    margin-bottom: 25px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h4 {
    font-size: 1.2em;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.modal-section h4 i {
    color: var(--secondary-color);
}

.testimonial, .press-review {
    background: var(--background-light);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 3px solid var(--accent-color);
}

.testimonial:last-child, .press-review:last-child {
    margin-bottom: 0;
}

.testimonial p, .press-review p {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 0.95em;
}

.testimonial-author, .press-source {
    display: block;
    font-size: 0.9em;
    color: var(--text-muted);
    font-weight: 600;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
        padding: 25px 20px;
        gap: 25px;
    }
    
    .modal-left {
        position: static;
    }
    
    .modal-cover {
        max-width: 200px;
    }
    
    .modal-right h3 {
        font-size: 1.5em;
    }
    
    .modal-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .modal-tab {
        font-size: 0.9em;
        padding: 10px 12px;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .modal-content {
        max-height: 90vh;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .modal-body {
        padding: 20px 15px;
    }
    
    .modal-intro {
        font-size: 0.95em;
        padding: 12px;
    }
    
    .modal-section h4 {
        font-size: 1.05em;
    }
    
    .testimonial, .press-review {
        padding: 12px;
    }
    
    .testimonial p, .press-review p {
        font-size: 0.9em;
    }
}
/* Optimisations spécifiques pour appareils peu performants */
.low-performance-device .hero::before,
.low-performance-device .parallax {
    display: none !important;
}

.low-performance-device .extrait:hover {
    transform: none !important;
}

.low-performance-device .artist-card:hover {
    transform: none !important;
}

.navbar-shrink {
    padding: 10px 2% !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1) !important;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #e63946;
    background-color: #fff5f5;
}

.form-group input.valid,
.form-group textarea.valid,
.form-group select.valid {
    border-color: #28a745;
    background-color: #f8fff8;
}

.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.low-performance-device .hero-img img {
    filter: none;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
