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

:root {
    --primary-color: #1c2541;
    --secondary-color: #f4d35e;
    /* Assombri depuis #e63946 : porte du texte a plusieurs endroits et passait
       sous le seuil de lisibilite WCAG AA sur fond clair. */
    --accent-color: #d62839;
    --background-light: #fdfbf7;
    --background-white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #666;
    /* Assombri depuis #888 (3,29:1 sur fond creme, minimum requis 4,5:1). */
    --text-muted: #6b6b6b;
    --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;
}

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

.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 {
    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-purchase {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    z-index: 2;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* L'ancienne extremite #ff6b7a virait au rose clair : le texte blanc pose
       dessus finissait sous le seuil de lisibilite vers la droite du bandeau. */
    background: linear-gradient(45deg, #b31e35, #cf4257);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 20px;
    /* Comme le reste du hero, le badge fait son entree en fondu montant, puis
       enchaine sur le battement. Le `pulse` est retarde de 0.6s pour laisser
       l'entree se jouer d'abord : les deux animent `transform`, mais celle qui
       vient en dernier dans la liste l'emporte une fois l'entree terminee. */
    animation: fadeInUp 0.6s ease-out both, pulse 2s 0.6s 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 {
    /* L'ancienne extremite #ff6b7a virait au rose clair : le texte blanc pose
       dessus finissait sous le seuil de lisibilite vers la droite du bandeau. */
    background: linear-gradient(45deg, #b31e35, #cf4257);
    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;
    /* Comme .stat-number : l'interlignage de paragraphe creusait du vide autour
       du prix, qui se detachait de sa mention de frais de port. */
    line-height: 1.1;
}

.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;
}

/* Pulsation douce. L'ancienne version basculait entre 50% et 51%, soit ~15 ms
   sur un cycle de 1,5 s : un stroboscope, pas une pulsation. */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

.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;
}

/* Valeurs explicites plutot que les variables globales : ces deux etiquettes
   font 13,6px, ce qui exige 4,5:1. Les variables servent aussi de fond ailleurs. */
.quality-badge {
    color: #d02d3a;
}

.shipping-badge {
    color: #1e7e34;
}

/* 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;
}

/* Sans ces deux regles, les sous-titres sont moins gras que les mots en gras du
   texte courant : le poids contredit la hierarchie au lieu de la porter. */
h3 {
    font-weight: 700;
}

h4 {
    font-weight: 600;
}

.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;
}

/* Plafonne la longueur de ligne : sans cela le paragraphe atteignait une
   centaine de signes par ligne, l'oeil rate le debut de la ligne suivante. */
.about-text {
    max-width: 68ch;
}

.about-text p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 25px;
    /* Etait `justify` : seul bloc justifie du site, et sans coupure de mots le
       francais y creuse des espaces irreguliers, surtout sur telephone. */
    text-align: left;
}

.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 {
    /* Etait 3em fixe : sur telephone le chiffre devenait plus gros que le titre
       de la section qui le contient. */
    font-size: clamp(1.75em, 4vw, 2.5em);
    font-weight: 700;
    /* Etait var(--secondary-color), soit du jaune #f4d35e sur fond blanc : 1,46:1,
       la ou 3:1 est le minimum. Les trois chiffres cles etaient delaves. */
    color: #8f6b00;
    font-family: 'Playfair Display', serif;
    /* L'interlignage de paragraphe applique a du 48px creusait une trentaine de
       pixels de vide entre le chiffre et son libelle. */
    line-height: 1.1;
}

.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;
    /* 20px au lieu de 10 : laisse la place aux zones tactiles de 32px ci-dessous. */
    gap: 20px;
    margin-top: 15px;
}

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

/* Étend la cible tactile de 12x12 à 32x32 sans changer le rendu visuel.
   Un padding serait sans effet : `* { box-sizing: border-box }` le mangerait. */
.carousel-dot::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    transform: translate(-50%, -50%);
}

.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;
    will-change: transform;
}

/* Défilement infini des citations.
   L'animation est confiée au CSS (donc au fil du compositeur) plutôt qu'à une
   boucle JavaScript : elle continue de tourner de façon fluide pendant que
   l'utilisateur fait défiler la page, sans les micro-freezes que provoquait
   l'écriture d'un transform à 60 fps sur le fil principal (surtout sur iOS).
   Le JS se contente de mesurer la largeur réelle d'un jeu de cartes et
   d'injecter la distance de bouclage (--marquee-distance) et la durée
   (--marquee-duration, calculée pour garder une vitesse constante). */
@keyframes extraits-scroll {
    to {
        transform: translate3d(calc(-1 * var(--marquee-distance, 0px)), 0, 0);
    }
}

.extraits.is-marquee {
    animation: extraits-scroll var(--marquee-duration, 40s) linear infinite;
}

.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;
    /* Etait space-between : les cartes n'ayant pas toutes la meme quantite de
       texte, les prenoms et les descriptions demarraient a des hauteurs
       differentes d'une carte a l'autre (jusqu'a 30px d'ecart). Le lien
       "Voir son portfolio" est pousse en bas par son propre margin-top: auto. */
    justify-content: flex-start;
}

.artist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    /* Etait `left: -100%` anime vers `left: 0` : animer `left` force le
       navigateur a refaire la mise en page a chaque image, ce qui hachait le
       survol. `translateX` fait glisser la barre sur la couche graphique, sans
       recalcul de mise en page. */
    transform: translateX(-100%);
    transition: transform 0.25s ease-out;
}

.artist-card:hover::before,
.artist-card-link:hover .artist-card::before {
    transform: translateX(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;
}

/* Survol des cartes artistes.
   Le selecteur ne visait que `.artist-card-link:hover .artist-card`, donc seules
   les deux cartes enveloppees dans un lien (Sandra, Rene) se soulevaient ; les
   huit autres, de simples <div>, ne reagissaient pas. On vise desormais la carte
   elle-meme, ce qui couvre les dix.
   !important requis : la regle de revelation `.artist-card.fade-in-up` impose
   `transform: translateY(0)` avec la meme specificite mais plus loin dans le
   fichier, et ecraserait sinon ce soulevement. */
.artist-card:hover,
.artist-card-link:hover .artist-card {
    transform: translateY(-8px) !important;
    box-shadow: var(--shadow-medium);
}

/* Duree du soulevement.
   Sans cette regle, `transform` herite des 0,6 s de la transition de revelation
   au scroll (`.js-anim .artist-card`) : le survol montait mollement, en donnant
   l'impression de trainer. On raccourcit `transform` et `box-shadow` a 0,25 s,
   identiques a l'aller et au retour, en gardant le fondu d'apparition a 0,6 s.
   Le selecteur porte `.js-anim` ET `.fade-in-up` (specificite 0,3,0) pour passer
   devant `.js-anim .artist-card` (0,2,0), declaree plus loin dans le fichier. */
.js-anim .artist-card.fade-in-up,
.artist-card {
    transition: opacity 0.6s ease-out, transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.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;
    /* `auto` colle le lien au bas de la carte quelle que soit la longueur de la
       description, ce que faisait auparavant le justify-content: space-between. */
    margin-top: auto;
    padding-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 {
    /* L'ancienne extremite #ff6b7a virait au rose clair : le texte blanc pose
       dessus finissait sous le seuil de lisibilite vers la droite du bandeau. */
    background: linear-gradient(45deg, #b31e35, #cf4257);
    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);
    /* Sans valeur explicite, ce titre heritait du h4 fluide de Bootstrap
       (~21,5px sur mobile, 24px au-dela de 1200px) et devenait plus gros que
       les noms d'artistes et les questions de FAQ, de meme niveau. */
    font-size: 1.2em;
}

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

/* Les regles .temp-order-btn a / :hover ont ete supprimees : elles
   redessinaient .btn-primary en plus plat et plus petit, alors que les deux
   liens portent deja la classe .btn-primary (index.html:584 et 592).
   Les trois boutons d'achat de la page sont desormais identiques. */

.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;
    /* Meme raison que .payment-placeholder h4 : sans valeur, Bootstrap impose
       une taille fluide qui bouge au redimensionnement de la fenetre. */
    font-size: 1.2em;
    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;
}

/* Ces deux prix sont poses sur un encadre translucide au-dessus d'un fond sombre.
   Le jaune et le vert d'origine s'y effacaient (2,46:1 pour le vert) : on les
   remonte en tres clair, ce qui garde la teinte tout en devenant lisible. */
.real-price {
    color: #f9edbe;
    text-decoration: line-through;
    font-size: 1.1em;
    opacity: 1;
    font-weight: 600;
}

.customer-price {
    color: #d6f7d8;
    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;
    /* Etait 1.1em, soit 1,6px de plus que la reponse : la question ne se
       distinguait quasiment pas de son texte. */
    font-size: 1.2em;
}

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

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

/* Bootstrap pose un margin-bottom sur tout <p> : le dernier paragraphe d'une
   carte y laissait un blanc sous lui, donnant l'impression que le contenu
   s'affaisse vers le bas. */
.faq-item p:last-child,
.contact-item p:last-child,
.payment-placeholder p:last-child {
    margin-bottom: 0;
}

/* 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;
    /* Meme raison que les deux autres h4 sans taille : defaut fluide Bootstrap. */
    font-size: 1.2em;
}

.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;
    /* Seul titre de la page qui restait en Montserrat, avec une taille fluide
       heritee de Bootstrap qui bougeait au redimensionnement. */
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
}

.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;
    }

    /* Sur mobile, la marque (logo + titre) et le bouton hamburger partagent la
       premiere rangee flex de Bootstrap ; le menu deroulant, lui, s'enroule
       sur sa propre rangee pleine largeur (flex-basis:100%). Au format
       d'origine (logo 50px + titre 1.3em gras) la marque etait trop large : le
       hamburger passait sous le titre. On reduit simplement le logo et le
       titre pour que marque + hamburger tiennent sur une ligne, SANS toucher a
       l'enroulement (sinon le menu ouvert se coince a cote du titre). */
    .navbar-brand img {
        width: 42px;
        height: 42px;
    }

    .responsive-text {
        font-size: 1.1em;
        margin-left: 10px;
    }

    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) {
    /* Sur les plus petits ecrans, on resserre encore la marque pour que le
       titre complet tienne sur une ligne a cote du hamburger sans ellipse. */
    .navbar-brand img {
        width: 40px;
        height: 40px;
    }

    .responsive-text {
        font-size: 1.05em;
        margin-left: 8px;
    }

    .hero-text h1 {
        font-size: 2.5em;
    }

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

    .artists {
        /* Etait 1fr 1fr : sous 480px, deux colonnes reduisaient les descriptions
           d'artistes a une quinzaine de signes par ligne, soit deux ou trois
           mots, hachant le texte sur une dizaine de lignes. */
        grid-template-columns: 1fr;
    }

    .extrait {
        width: 250px;
        /* Sans ce min-width, le `min-width: 300px` de la règle de base l'emporte
           et cette règle ne sert à rien. Le JS mesure la largeur réelle, il suit. */
        min-width: 250px;
    }

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

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

    .contact-item i {
        width: auto;
    }

    .contact-form h3 {
        font-size: 1.5em;
    }
}

/* Tres petits ecrans (jusqu'aux ~320px type iPhone SE) : on reduit la marque
   d'un cran de plus pour que logo + titre + hamburger tiennent sur une seule
   ligne meme sur les plus petits telephones. */
@media (max-width: 360px) {
    .navbar-brand img {
        width: 34px;
        height: 34px;
    }

    .responsive-text {
        font-size: 0.9em;
        margin-left: 6px;
    }
}

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

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

/* Les cartes artistes sont exclues de cette animation : elles ont deja leur
   propre revelation, par transition (voir `.js-anim .artist-card` plus bas), qui
   produit exactement le meme effet. Cumuler les deux posait probleme : en mode
   `forwards`, l'animation garde la main sur `transform` une fois terminee, ce
   qui empechait la transition de survol de s'interpoler — la carte sautait d'un
   coup a sa position haute au lieu de monter progressivement. */
.fade-in-up:not(.artist-card) {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Animation d'entrée du hero.
   Remplace animateOnLoad()/simpleAnimateOnLoad() qui étaient accrochées à
   window.load : le hero s'affichait, puis le JS le cachait plusieurs secondes
   plus tard (une fois les images téléchargées) pour le ré-animer. En CSS,
   l'animation démarre à la première frame peinte, sans jamais rien re-cacher.
   `both` fige l'état final à opacity 1 : si le JS échoue, le hero reste visible.
   .hero-badge est exclu ICI parce qu'il combine lui-même l'entrée et le battement
   (voir sa règle plus haut) : le réinclure écraserait son `pulse`. */
.hero-text > *:not(.hero-badge),
.hero-img {
    animation: fadeInUp 0.6s ease-out both;
}

.hero-text > *:nth-child(2) { animation-delay: 0.06s; }
.hero-text > *:nth-child(3) { animation-delay: 0.12s; }
.hero-text > *:nth-child(4) { animation-delay: 0.18s; }
.hero-text > *:nth-child(5) { animation-delay: 0.24s; }
.hero-text > *:nth-child(6) { animation-delay: 0.30s; }
.hero-img { animation-delay: 0.12s; }



/* 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;
        will-change: auto !important;
    }

    /* Le transform étant neutralisé ci-dessus, le bandeau ne défile plus : sans
       ces règles, 2 à 3 citations sur 6 restaient définitivement hors cadre.
       On rend le bandeau scrollable à la main et on masque les dégradés latéraux,
       qui sont en position absolute et défileraient avec le contenu. */
    .marquee-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        height: auto;
    }

    .marquee-wrapper::before,
    .marquee-wrapper::after {
        display: none;
    }
}

/* 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 {
        /* On garde l'animation d'entree (jouee une seule fois, peu couteuse)
           mais on coupe le battement infini `pulse` sur mobile pour menager
           les appareils peu performants. */
        animation: fadeInUp 0.6s ease-out both !important;
    }

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

/* États de focus pour l'accessibilité.
   `:focus-visible` plutôt que `:focus` : l'anneau n'apparaît qu'à la navigation
   clavier, pas au clic souris. Couleur passée du jaune (1,42:1 sur le fond crème,
   sous le minimum de 3:1) au navy foncé, lisible partout. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Sur les fonds navy (navbar et footer), le navy serait invisible. */
.navbar a:focus-visible,
.navbar-toggler:focus-visible,
footer a:focus-visible {
    outline-color: #ffffff;
}

/* Les champs du formulaire posent `outline: none` avec une spécificité
   supérieure : il faut les cibler explicitement. */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Animation d'apparition au scroll - État initial.
   Préfixé par `.js-anim`, classe posée sur <html> par script.js au moment où
   l'IntersectionObserver est réellement en place. Sans ce garde-fou, la moindre
   exception JS laissait toute la page sous le hero à opacity 0 : ni le livre,
   ni les artistes, ni le bon de commande. */
.js-anim section:not(.hero),
.js-anim .artist-card,
.js-anim .faq-item,
.js-anim .stat {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease;
}

/* É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);
}

/* Sans ces deux règles, le survol des 3 stats et des 6 items de FAQ est mort
   dès que `fade-in-up` est posée : le transform ci-dessus l'emporte. */
.stat.fade-in-up:hover {
    transform: translateY(-5px);
}

.faq-item.fade-in-up:hover {
    transform: translateY(-3px);
}

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

/* La classe posée par script.js est `fade-in-up`, jamais `visible` : avec
   l'ancien sélecteur, tout le contenu restait invisible sur ces appareils. */
.low-performance-device section.fade-in-up,
.low-performance-device .artist-card.fade-in-up,
.low-performance-device .faq-item.fade-in-up,
.low-performance-device .stat.fade-in-up {
    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;
    /* Ce sont les textes les plus longs du site (jusqu'a ~24 lignes) : ils ne
       doivent pas etre plus petits que le paragraphe qui les introduit. */
    font-size: 1rem;
}

.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;
    }

    /* La regle qui redescendait ces paragraphes a 0.9em sur mobile a ete retiree :
       elle les ramenait a 14,4px en italique, plus petits que tout ce qui les
       entoure, alors que ce sont les textes les plus longs a lire. */
}
/* 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;
    }
}
