
@font-face {
    font-family: 'Futura Condensed Extra';
    src: url('./fonts/Futura-Condensed-Extra-Bold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Inter */
@font-face {
    font-family: 'Inter';
    src: url('./fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('./fonts/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('./fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('./fonts/Inter-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

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

/* Phase 1 — fondu des blocs hors lectures (place conservée jusqu’à la phase finale) */
body.readings-phase-chrome-out .portrait-section,
body.readings-phase-chrome-out .introduction,
body.readings-phase-chrome-out .buttons-section,
body.readings-phase-chrome-out .subscribe-section,
body.readings-phase-chrome-out .images-section,
body.readings-phase-chrome-out main.container > .readings-section ~ .section,
body.readings-phase-chrome-out main.container > footer {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s cubic-bezier(0.47, 0.48, 0.1, 1);
}

/* « Tout voir » fin de séquence : retirer le chrome du flux */
body.readings-solo-mode .portrait-section,
body.readings-solo-mode .introduction,
body.readings-solo-mode .buttons-section,
body.readings-solo-mode .subscribe-section,
body.readings-solo-mode .images-section {
    display: none !important;
}

body.readings-solo-mode main.container > .readings-section ~ .section {
    display: none !important;
}

body.readings-solo-mode main.container > footer {
    display: none !important;
}

/* Après le fade des lectures : réintégration du chrome en fondu (display:none → visible + opacity) */
body.readings-solo-mode.readings-chrome-reveal .portrait-section,
body.readings-solo-mode.readings-chrome-reveal .introduction,
body.readings-solo-mode.readings-chrome-reveal .buttons-section,
body.readings-solo-mode.readings-chrome-reveal .subscribe-section,
body.readings-solo-mode.readings-chrome-reveal main.container > .readings-section ~ .section,
body.readings-solo-mode.readings-chrome-reveal main.container > footer {
    display: block !important;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

body.readings-solo-mode.readings-chrome-reveal .images-section {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

body.readings-solo-mode.readings-chrome-reveal.readings-chrome-reveal-active .portrait-section,
body.readings-solo-mode.readings-chrome-reveal.readings-chrome-reveal-active .introduction,
body.readings-solo-mode.readings-chrome-reveal.readings-chrome-reveal-active .buttons-section,
body.readings-solo-mode.readings-chrome-reveal.readings-chrome-reveal-active .subscribe-section,
body.readings-solo-mode.readings-chrome-reveal.readings-chrome-reveal-active .images-section,
body.readings-solo-mode.readings-chrome-reveal.readings-chrome-reveal-active main.container > .readings-section ~ .section,
body.readings-solo-mode.readings-chrome-reveal.readings-chrome-reveal-active main.container > footer {
    opacity: 1;
    pointer-events: auto;
}

/* Bouton Retour — dans #readings-section, au-dessus des filtres, sticky en haut du scroll */
.readings-solo-back {
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + 14px);
    z-index: 25;
    display: none;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin: 14px 0 10px 0;
    padding: 12px max(20px, env(safe-area-inset-left, 0px)) 12px max(20px, env(safe-area-inset-right, 0px));
    min-height: 44px;
    border: 1px solid rgba(218, 217, 214, 0.85);
    border-radius: 999px;
    background: rgba(254, 253, 249, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #131319;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s cubic-bezier(0.47, 0.48, 0.1, 1),
        box-shadow 0.2s cubic-bezier(0.47, 0.48, 0.1, 1),
        border-color 0.2s cubic-bezier(0.47, 0.48, 0.1, 1);
}

.readings-solo-back:hover {
    border-color: #131319;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.readings-solo-back:active {
    transform: scale(0.97);
}

body.readings-solo-mode .readings-solo-back[hidden] {
    display: none !important;
}

body.readings-solo-mode:not(.readings-solo-exiting) .readings-solo-back:not([hidden]) {
    display: flex;
}

@keyframes readings-solo-back-in {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

body.readings-expand-running:not(.readings-solo-exiting) .readings-solo-back:not([hidden]) {
    animation: readings-solo-back-in 1s cubic-bezier(0.47, 0.48, 0.1, 1) 0.05s both;
}

/* Sortie « Retour » : fondu simple sur la section + fondu explicite sur le bouton
   (sticky peut rester visible si seul le parent est animé selon le moteur). */
@keyframes readings-solo-section-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes readings-solo-back-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

body.readings-solo-exiting #readings-section {
    animation: readings-solo-section-out 0.36s ease forwards;
    pointer-events: none;
}

/* Pendant la sortie, garder display:flex : sans :not(.readings-solo-exiting) sur l’autre règle,
   le bouton retombe sur .readings-solo-back { display:none } et disparaît avant le fade. */
body.readings-solo-exiting .readings-solo-back:not([hidden]) {
    display: flex;
    animation: readings-solo-back-out 0.36s ease forwards;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    body.readings-expand-running:not(.readings-solo-exiting) .readings-solo-back:not([hidden]),
    body.readings-solo-exiting #readings-section,
    body.readings-solo-exiting .readings-solo-back {
        animation: none !important;
    }

    body.readings-phase-chrome-out .portrait-section,
    body.readings-phase-chrome-out .introduction,
    body.readings-phase-chrome-out .buttons-section,
    body.readings-phase-chrome-out .subscribe-section,
    body.readings-phase-chrome-out .images-section,
    body.readings-phase-chrome-out main.container > .readings-section ~ .section,
    body.readings-phase-chrome-out main.container > footer {
        transition: none;
    }

    body.readings-solo-mode.readings-chrome-reveal .portrait-section,
    body.readings-solo-mode.readings-chrome-reveal .introduction,
    body.readings-solo-mode.readings-chrome-reveal .buttons-section,
    body.readings-solo-mode.readings-chrome-reveal .subscribe-section,
    body.readings-solo-mode.readings-chrome-reveal .images-section,
    body.readings-solo-mode.readings-chrome-reveal main.container > .readings-section ~ .section,
    body.readings-solo-mode.readings-chrome-reveal main.container > footer {
        transition: none !important;
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #FEFDF9 url('./img/bg.webp') repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.loaded {
    opacity: 0;
    visibility: hidden;
}

.loading-gif {
    width: 200px;
    height: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    pointer-events: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #FEFDF9 url('./img/bg.webp') repeat;
    color: #000;
    line-height: 1.4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
}

main.container {
    overflow: visible;
}

.container {
    max-width: 400px;
    width: 100%;
    background: #FEFDF9 url('./img/bg.webp') repeat;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
    position: relative;
}

main::before {
    content: '';
    position: fixed;
    top: 0;
    transform: translateX(-55px);
    width: 31px;
    height: 100%;
    background: url('./img/plante_tc.svg') repeat;
}

main::after {
    content: '';
    position: fixed;
    top: 0;
    transform: translateX(431px);
    width: 31px;
    height: 100%;
    background: url('./img/plante_tc.svg') repeat;
}

.portrait-section {
    text-align: center;
    height: 295px;
    position: relative;
    overflow: hidden;
}

.portrait-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    display: block;
}

.portrait-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, #f4f4f4 0%, transparent 100%);
    pointer-events: none;
}

.introduction {
    text-align: center;
    position: relative;
    z-index: 1;
}

.name {
    font-family: 'Futura Condensed Extra', sans-serif;
    position: relative;
    z-index: 1;
    font-style: normal;
    font-weight: 700;
    font-size: 59px;
    line-height: 53px;
    text-align: center;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: #131319;
}

.name::before {
    content: 'THIBAUT';
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.4s ease-out 0.2s forwards;
    display: block;
}

.name::after {
    content: 'CHOURRÉ';
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.4s ease-out 0.6s forwards;
    display: block;
}

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

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    margin-bottom: 35px;
    opacity: 0;
    animation: fadeIn 0.3s ease-out 1s forwards;
    position: relative;
    z-index: 1;
    line-height: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    text-decoration: none;
    transition: transform 0.2s;
}

.social-icons svg {
    width: 22px;
    height: 22px;
    display: block;
    flex-shrink: 0;
}

.social-icons a:hover {
    transform: scale(1.1);
}

.buttons-section {
    padding: 0 20px;
    margin-bottom: 70px;
}

.button {
    font-family: 'Inter', sans-serif;
    width: 100%;
    padding: 20px;
    margin-bottom: 20px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -3%;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    text-align: center;
}

.button-primary {
    background: #000;
    color: #fff;
}

.button-primary:hover {
    background: #333;
    transform: translateY(-2px);
}

.button-secondary {
    background: #f5f5f5;
    color: #666;
    border: 2px dashed #ccc;
}

.button-secondary:hover {
    background: #e5e5e5;
}

.button-disabled {
    background: transparent;
    color: #9B9B9B;
    border: 2px dashed #DCDCDD;
    cursor: not-allowed;
}

.button-subscribe {
    background: linear-gradient(45deg,
        #FEDA75 0%,
        #FA7E1E 25%,
        #D62976 50%,
        #962FBF 75%,
        #4F5BD5 100%);
    background-size: 200% 200%;
    color: #fff;
    position: relative;
    overflow: hidden;
    animation: gradientShift 5s ease infinite;
    min-height: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(214, 41, 118, 0.28);
}

.button-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(214, 41, 118, 0.4);
}

.button-subscribe-static {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
}

/* Styles pour l'animation du texte du bouton */
.button-text-wrapper {
    position: relative;
    width: 100%;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.button-text {
    position: absolute;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(0);
    filter: blur(0);
    transition: opacity 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
                filter 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    font-size: 14px;
    line-height: 1.2;
    box-sizing: border-box;
    pointer-events: none;
    will-change: opacity, transform, filter;
}

.button-text.button-text-active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Le span "icone + texte" reste TOUJOURS en inline-flex,
   sinon l'icône SVG saute de la position flex centrée à la baseline
   du texte (display: block) à chaque transition enter/exit. */
.button-subscribe .button-text-with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
}

.button-subscribe .button-subscribe-icon {
    flex-shrink: 0;
    display: block;
    opacity: 0.92;
}

.button-text.button-text-exit {
    opacity: 0;
    transform: translateY(-4px);
    filter: blur(4px);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.6, 1),
                transform 0.35s cubic-bezier(0.4, 0, 0.6, 1),
                filter 0.35s cubic-bezier(0.4, 0, 0.6, 1);
}

.button-text.button-text-enter {
    opacity: 0;
    transform: translateY(4px);
    filter: blur(4px);
}

.button-text.button-text-enter.button-text-active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Animation progressive lettre par lettre — reveal flou premium */
.button-text.reveal-progressive {
    overflow: hidden;
    white-space: nowrap;
    filter: blur(0) !important;
}

.button-text.reveal-progressive .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px);
    filter: blur(6px);
    animation: reveal-char 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes reveal-char {
    0% {
        opacity: 0;
        transform: translateY(8px);
        filter: blur(6px);
    }
    60% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Ajustement de la taille de police pour le texte long */
.button-subscribe .button-text:last-child {
    font-size: 11px;
    line-height: 1.3;
}

@media (max-width: 480px) {
    .button-subscribe .button-text:last-child {
        font-size: 11px;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.construction-text {
    text-align: center;
    color: #9B9B9B;
    font-size: 10px;
    margin-top: -10px;
    margin-bottom: 20px;
}

.subscribe-caption {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #9B9B9B;
    text-align: center;
    margin: -12px 0 18px 0;
    letter-spacing: -0.02em;
    font-weight: 500;
}

.subscribe-section {
    padding: 0 20px;
}

@property --ig-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.subscribe-panel {
    position: relative;
    isolation: isolate;
    overflow: visible;
    border-radius: 20px;
    padding: 28px 24px 26px;
    text-align: center;
    border: 1.5px solid transparent;
    background-image:
        linear-gradient(#fff, #fff),
        conic-gradient(
            from var(--ig-angle),
            rgba(218, 217, 214, 0.6) 0deg,
            #FEDA75 16deg,
            #FA7E1E 30deg,
            #D62976 50deg,
            #962FBF 66deg,
            #4F5BD5 82deg,
            rgba(218, 217, 214, 0.6) 102deg,
            rgba(218, 217, 214, 0.6) 360deg
        );
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    animation: subscribeFiletSpin 3.5s linear infinite;
}

@keyframes subscribeFiletSpin {
    to { --ig-angle: 360deg; }
}

.subscribe-panel > * {
    position: relative;
    z-index: 1;
}

.subscribe-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 0 14px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #555;
}

.subscribe-kicker-lock {
    display: block;
    flex-shrink: 0;
}

.subscribe-stack {
    position: relative;
    width: 100%;
    height: 196px;
    margin: 0 auto 18px;
    z-index: 1;
    overflow: hidden;
}

.subscribe-stack-card {
    position: absolute;
    top: 14px;
    left: 50%;
    width: 88px;
    height: 156px;
    aspect-ratio: 9 / 16;
    border-radius: 16px;
    border: 2.5px solid #fff;
    box-shadow: 0 10px 24px rgba(19, 19, 25, 0.18);
    overflow: hidden;
    box-sizing: border-box;
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateX(-50%) translateZ(0);
}

.subscribe-stack-card img,
.subscribe-stack-card video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    display: block;
    transition: filter 0.4s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.subscribe-stack-fallback {
    display: none !important;
}

.subscribe-stack-card--left {
    transform: translateX(calc(-50% - 34px)) rotate(-12deg) translateZ(0);
    z-index: 1;
}

.subscribe-stack-card--left img {
    object-position: center;
}

.subscribe-stack-card--right {
    transform: translateX(calc(-50% + 34px)) rotate(12deg) translateZ(0);
    z-index: 1;
}

.subscribe-stack-card--right img {
    object-position: 70% 40%;
}

.subscribe-stack-card--front {
    width: 96px;
    height: 171px;
    top: 8px;
    transform: translateX(-50%) translateZ(0);
    z-index: 2;
}

.subscribe-stack-card--front img,
.subscribe-stack-card--front video {
    object-position: center 20%;
}

.subscribe-stack-card--locked img {
    filter: blur(7px) saturate(0.75);
    width: 112%;
    height: 112%;
    left: -6%;
    top: -6%;
}

.subscribe-stack-card--locked::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(19, 19, 25, 0.28);
    pointer-events: none;
}

.subscribe-stamp {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%) rotate(-8deg);
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #FEFDF9;
    border: 1.5px solid rgba(254, 253, 249, 0.85);
    border-radius: 3px;
    padding: 3px 6px 2px;
    line-height: 1;
    pointer-events: none;
}

.subscribe-panel:hover .subscribe-stack-card--left {
    transform: translateX(calc(-50% - 44px)) rotate(-15deg) translateZ(0);
}

.subscribe-panel:hover .subscribe-stack-card--right {
    transform: translateX(calc(-50% + 44px)) rotate(15deg) translateZ(0);
}

.subscribe-panel:hover .subscribe-stack-card--locked img {
    filter: blur(4px) saturate(0.85);
}

@media (prefers-reduced-motion: reduce) {
    .subscribe-stack-card,
    .subscribe-panel:hover .subscribe-stack-card--left,
    .subscribe-panel:hover .subscribe-stack-card--right {
        transition: none;
    }

    .subscribe-stack-card--front video {
        display: none;
    }

    .subscribe-stack-card--front .subscribe-stack-fallback {
        display: block !important;
    }

    .subscribe-panel {
        animation: none;
    }
}

.subscribe-section-title {
    margin-bottom: 10px;
}

.subscribe-lead {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    color: rgba(19, 19, 25, 0.48);
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}

.subscribe-section .button-subscribe {
    margin-bottom: 0;
}

/* Bouton "soft" — pour le don ponctuel : visible mais clairement secondaire vs Subscribe */
.button-soft {
    background: #fff;
    color: #131319;
    border: 1.5px solid rgba(218, 217, 214, 0.8);
    font-weight: 600;
    transition: all 0.3s ease;
}

.button-soft:hover {
    background: #fff;
    border-color: #131319;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.button-soft .emoji {
    margin-left: 6px;
}

.button-vinted {
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-vinted-logo {
    height: 24px;
    width: 42px;
    display: block;
    fill: currentColor;
}

.section {
    margin-bottom: 70px;
}

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

.section.disabled {
    display: none;
}

.section-title {
    font-family: 'Futura Condensed Extra', sans-serif;
    font-size: 26px;
    text-align: center;
    margin-bottom: 20px;
    color: #131319;
    text-transform: uppercase;
}

.images-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.images-section img {
    border-radius: 10px;
}

/* Styles Swiper généraux */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    width: auto !important;
}

.authors-swiper .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Swiper des catégories */
.categories-swiper {
    padding: 0 20px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 500px;
}

.category-btn {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    padding: 8px 16px;
    background: transparent;
    color: #9B9B9B;
    border: 0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 80px;
    flex-shrink: 0;
}

.category-btn:hover {
    color: #131319;
}

.category-btn.active {
    background: #dad9d6;
}

.category-btn.active:hover {
    color: #9B9B9B;
}

/* Swiper des livres */
.books-swiper {
    padding: 0 20px;
    width: 100%;
    max-width: 500px;
}

.book-card {
    width: 250px;
    text-decoration: none;
    color: inherit;
    display: block;
}

.book-image {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    background: #fdfdfd;
    border: 1px solid #dad9d6;
    padding: 20px;
    text-align: center;
}

.book-image img {
    width: auto;
    height: 100%;
    border-radius: 8px;
}

.book-title {
    font-family: 'Futura Condensed Extra', sans-serif;
    font-size: 22px;
    font-weight: bold;
    color: #131319;
    line-height: 1;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.book-author {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #9B9B9B;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.book-comment {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #131319;
    background: #fff;
    padding: 12px 16px;
    border-radius: 18px;
    margin-bottom: 12px;
    line-height: 1.4;
    letter-spacing: -0.03em;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.book-comment::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}

.emoji {
    margin-left: 8px;
}

/* ============================================
   SECTION LECTURES — NOUVEAU DESIGN (sans popup)
   Chips de filtre + grille tous-livres
   ============================================ */

/* Chips de filtre — scroll horizontal (tactile : swipe, pas de scrollbar) */
.readings-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 20px 6px;
    margin-bottom: 24px;
    margin-top: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.readings-filters::-webkit-scrollbar {
    display: none;
    height: 0;
}

/* PC uniquement — souris / trackpad (pas téléphone ni tablette au doigt) */
@media (hover: hover) and (pointer: fine) {
    .readings-filters.readings-filters--desktop-nav {
        scrollbar-width: thin;
        scrollbar-color: rgba(19, 19, 25, 0.35) transparent;
    }

    .readings-filters.readings-filters--desktop-nav::-webkit-scrollbar {
        display: block;
        height: 6px;
    }

    .readings-filters.readings-filters--desktop-nav::-webkit-scrollbar-thumb {
        background: rgba(19, 19, 25, 0.35);
        border-radius: 999px;
    }
}

.readings-chip {
    flex-shrink: 0;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(218, 217, 214, 0.7);
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #131319;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.47, 0.48, 0.1, 1);
    white-space: nowrap;
    letter-spacing: -0.02em;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.readings-chip:hover {
    border-color: #131319;
    background: rgba(255, 255, 255, 0.9);
}

.readings-chip.active {
    background: #131319;
    color: #fff;
    border-color: #131319;
    transform: scale(1.02);
}

/* Mode étendu : pas de h2 une fois la phase delay terminée.
   Pendant readings-delay-head, le h2 reste dans le flux (invisible) : sinon display:none
   retirait tout de suite la même hauteur qu’en aperçu et les 2 couvertures sautaient au clic. */
#readings-section.readings-section--expanded:not(.readings-delay-head) > .section-title {
    display: none !important;
}

#readings-section.readings-section--expanded.readings-delay-head > .section-title {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Ouverture immédiate des filtres au début du FLIP (sans attendre la fin du max-height). */
#readings-section.readings-skip-head-transition .readings-expanded-head {
    transition: none !important;
}

/* Aperçu : filtres masqués, seulement 2 couvertures + « Tout voir » sous la grille */
.readings-section--preview .readings-expanded-head {
    display: none;
}

.readings-section--preview #readings-grid .book-item:nth-child(n+3) {
    display: none;
}

.readings-section--expanded .readings-expanded-head {
    display: block;
    position: relative;
    z-index: 10;
    max-height: 720px;
    overflow: hidden;
}

/* Pendant la révélation / lift : replier le bloc filtres (hauteur 0) pour garder la même
   position verticale des 2 premières couvertures qu’en aperçu ; à la fin du lift, max-height
   repasse à la valeur étendue avec la courbe lectures. */
.readings-section--expanded.readings-delay-head .readings-expanded-head {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    max-height: 0 !important;
    margin-bottom: 0 !important;
}

.readings-expanded-head {
    margin-bottom: 8px;
    transition: max-height 1s cubic-bezier(0.47, 0.48, 0.1, 1),
        margin-bottom 1s cubic-bezier(0.47, 0.48, 0.1, 1),
        opacity 1s cubic-bezier(0.47, 0.48, 0.1, 1),
        visibility 1s cubic-bezier(0.47, 0.48, 0.1, 1);
}

/* Lift FLIP : pas de will-change permanent (évite un léger snap / sous-pixels sur les couvertures). */
.readings-lift-shell {
    position: relative;
    z-index: 0;
    overflow: visible;
    transform: translateZ(0);
}

/* Livres au-delà des 2 premiers : fondu seul (pas de translate pour garder la rotation des couvertures) */
.readings-section--expanded #readings-grid .book-item:nth-child(n+3) {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s cubic-bezier(0.47, 0.48, 0.1, 1);
}

.readings-section--expanded.readings-books-reveal #readings-grid .book-item:nth-child(n+3) {
    opacity: 1;
    pointer-events: auto;
    /* Opacity + transform (dont FLIP filtre via --flip-*) + hover couvertures */
    transition: opacity 1s cubic-bezier(0.47, 0.48, 0.1, 1),
        transform 0.38s cubic-bezier(0.47, 0.48, 0.1, 1),
        z-index 0s linear 0.35s;
}

/* Les deux premières couvertures restent sous le plan de la zone suivante (hit-test) ;
   à partir du 3e livre on remonte le calque pour éviter que la rangée 1 capte le hover des suivants. */
.readings-section--expanded.readings-books-reveal #readings-grid.readings-grid--covers > .book-item--cover-only:nth-child(n + 3) {
    position: relative;
    z-index: 1;
}

.readings-section--expanded.readings-books-reveal #readings-grid .book-item:nth-child(3) {
    transition-delay: 0s;
}

.readings-section--expanded.readings-books-reveal #readings-grid .book-item:nth-child(4) {
    transition-delay: 0.03s;
}

.readings-section--expanded.readings-books-reveal #readings-grid .book-item:nth-child(5) {
    transition-delay: 0.06s;
}

.readings-section--expanded.readings-books-reveal #readings-grid .book-item:nth-child(n + 6) {
    transition-delay: 0.09s;
}

/* Filtre : ces règles doivent l’emporter sur `opacity: 1` des livres n+3 en mode étendu révélé */
#readings-section.readings-section--expanded.readings-books-reveal #readings-grid.readings-grid--covers > .book-item.book-item--cover-only.readings-book--filter-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.47, 0.48, 0.1, 1),
        transform 0.2s cubic-bezier(0.47, 0.48, 0.1, 1),
        z-index 0s;
}

#readings-section.readings-section--expanded.readings-books-reveal #readings-grid.readings-grid--covers > .book-item.book-item--cover-only.readings-book--filter-in {
    opacity: 0;
}

.readings-see-all-wrap {
    display: flex;
    justify-content: center;
    padding: 16px 20px 32px;
}

.readings-see-all-wrap[hidden] {
    display: none !important;
}

.readings-see-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(218, 217, 214, 0.85);
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #131319;
    cursor: pointer;
    transition: border-color 0.25s cubic-bezier(0.47, 0.48, 0.1, 1),
        background 0.25s cubic-bezier(0.47, 0.48, 0.1, 1),
        transform 0.2s cubic-bezier(0.47, 0.48, 0.1, 1),
        box-shadow 0.25s cubic-bezier(0.47, 0.48, 0.1, 1);
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.readings-see-all:hover {
    border-color: #131319;
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.readings-see-all:active {
    transform: translateY(0);
}

.readings-see-all-icon {
    transition: transform 0.35s cubic-bezier(0.47, 0.48, 0.1, 1);
}

@media (prefers-reduced-motion: reduce) {
    .readings-see-all,
    .readings-see-all-icon {
        transition: none;
    }

    .readings-expanded-head {
        transition: none;
    }

    .readings-lift-shell {
        transform: none !important;
    }

    .readings-section--expanded #readings-grid .book-item:nth-child(n+3) {
        transition: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .readings-grid--covers .book-item--cover-only.readings-book--filter-out,
    .readings-grid--covers .book-item--cover-only.readings-book--filter-in {
        transition: none !important;
    }
}

/* Grille des livres — 2 colonnes mobile */
.readings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding: 0 20px;
}

@media (min-width: 480px) {
    .readings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

@media (min-width: 640px) {
    .readings-grid:not(.readings-grid--covers) {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* Mes lectures : 2 couvertures par ligne, couverture seule, léger penché */
.readings-section .readings-grid--covers {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px 35px;
    padding: 8px 20px 12px;
    align-items: start;
}

@media (min-width: 640px) {
    .readings-section .readings-grid--covers {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 35px;;
    }
}

.readings-grid--covers .book-item--cover-only {
    --flip-x: 0px;
    --flip-y: 0px;
    position: relative;
    z-index: 0;
    transform-origin: 50% 90%;
    transition: transform 0.35s cubic-bezier(0.47, 0.48, 0.1, 1),
        opacity 0.38s cubic-bezier(0.47, 0.48, 0.1, 1),
        z-index 0s linear 0.35s;
}

/* Filtre auteur : sortie en fondu (toujours en grille jusqu’à display:none côté JS) */
.readings-grid--covers .book-item--cover-only.readings-book--filter-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.47, 0.48, 0.1, 1),
        transform 0.2s cubic-bezier(0.47, 0.48, 0.1, 1),
        z-index 0s;
}

/* Filtre : réapparition en fondu (première frame avec la classe, puis retirée en JS) */
.readings-grid--covers .book-item--cover-only.readings-book--filter-in {
    opacity: 0;
}

/* Grille 2 colonnes : alternance par ligne — impairs « vers l’intérieur », pairs « vers l’extérieur » */
.readings-grid--covers .book-item--cover-only:nth-child(4n + 1) {
    transform: translate(var(--flip-x), var(--flip-y)) rotate(-3.2deg);
}

.readings-grid--covers .book-item--cover-only:nth-child(4n + 2) {
    transform: translate(var(--flip-x), var(--flip-y)) rotate(2.8deg);
}

.readings-grid--covers .book-item--cover-only:nth-child(4n + 3) {
    transform: translate(var(--flip-x), var(--flip-y)) rotate(3.2deg);
}

.readings-grid--covers .book-item--cover-only:nth-child(4n + 4) {
    transform: translate(var(--flip-x), var(--flip-y)) rotate(-2.8deg);
}

.readings-grid--covers .book-item--cover-only:hover,
.readings-grid--covers .book-item--cover-only:focus-visible {
    z-index: 2;
    transition: transform 0.35s cubic-bezier(0.47, 0.48, 0.1, 1),
        opacity 0.38s cubic-bezier(0.47, 0.48, 0.1, 1),
        z-index 0s;
    transform: translate(var(--flip-x), var(--flip-y)) rotate(0deg) translateY(-6px) scale(1.02);
}

.readings-grid--covers .book-item-image--cover {
    height: auto;
    aspect-ratio: 2 / 3;
    margin-bottom: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 3px solid #fff;
    border-radius: 12px;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.12),
        0 4px 10px rgba(0, 0, 0, 0.06),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    transition: box-shadow 0.35s cubic-bezier(0.47, 0.48, 0.1, 1);
}

.readings-grid--covers .book-item--cover-only:hover .book-item-image--cover,
.readings-grid--covers .book-item--cover-only:focus-visible .book-item-image--cover {
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.16),
        0 8px 16px rgba(0, 0, 0, 0.08);
}

.readings-grid--covers .book-item:hover .book-item-image--cover {
    transform: none;
}

.readings-grid--covers .book-item-image--cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.readings-grid--covers .book-item.is-hidden {
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
}

/* Carte livre dans la grille */
.book-item {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    transition: opacity 1s cubic-bezier(0.47, 0.48, 0.1, 1),
                transform 1s cubic-bezier(0.47, 0.48, 0.1, 1);
    will-change: opacity, transform;
}

.book-item.is-hidden {
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
}

.book-item-image {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    margin-bottom: 12px;
    position: relative;
    overflow: visible;
    background: #fdfdfd;
    border: 1px solid rgba(218, 217, 214, 0.6);
    padding: 14px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.47, 0.48, 0.1, 1),
                box-shadow 0.3s cubic-bezier(0.47, 0.48, 0.1, 1);
}

.book-item:hover .book-item-image {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.book-item-image img {
    width: auto;
    height: 100%;
    border-radius: 6px;
    object-fit: contain;
}

.book-item-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #131319;
    line-height: 1.3;
    margin: 0 0 4px 0;
    letter-spacing: -0.03em;
}

.book-item-author {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #9B9B9B;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* Labels coup-de-coeur et beau-livre repris du popup, adaptés à la grille */
.book-item-label-coup-de-coeur {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #d3063d;
    color: #fff;
    padding: 4px 7px;
    border-radius: 30px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1.5px solid #d3063d;
}

.book-item-label-beau-livre {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #131319;
    color: #fff;
    padding: 4px 7px;
    border-radius: 30px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1.5px solid #131319;
}

.book-item-label-coup-de-coeur svg,
.book-item-label-beau-livre svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.book-item-label-text {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

/* ============================================
   SECTION LECTURES - REFONTE UX/UI MODERNE
   ============================================ */

/* Swiper des auteurs - Optimisé mobile */
.authors-swiper {
    padding: 0 20px;
    width: 100%;
    max-width: 500px;
    margin-top: 30px;
}

/* Wrapper avec alignement vertical */
#authors-wrapper {
    align-items: flex-start;
    padding-bottom: 10px;
}

/* Barre de séparation dans le swiper */
.categories-separator-slide {
    width: 1px !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 40px !important;
    height: 100%;
}

.categories-separator-bar {
    width: 1px;
    height: 100px;
    background-color: #ebebeb;
}

/* Slide wrapper pour alignement vertical */
.authors-swiper .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
}

/* Carte auteur - Design moderne avec micro-interactions */
.author-card {
    width: 200px;
    height: 200px;
    cursor: pointer;
    display: block;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #fdfdfd;
    border: 1px solid rgba(218, 217, 214, 0.5);
    margin-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    /* Optimisation performance */
    will-change: transform;
    backface-visibility: hidden;
}

/* Effet hover/tap - Élévation sans zoom */
.author-card:hover,
.author-card:active {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(218, 217, 214, 0.8);
}

/* Overlay gradient pour meilleure lisibilité du badge */
.author-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.author-card:hover::before {
    opacity: 1;
}

.author-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Zoom subtil de l'image au hover */
.author-card:hover .author-image {
    transform: scale(1.05);
}

/* Badge nombre de livres - Design moderne */
.author-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #131319;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 12px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.02em;
}

.author-card:hover .author-badge {
    opacity: 1;
    transform: translateY(0);
}

/* Nom de l'auteur - Typographie soignée */
.author-name {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #131319;
    line-height: 1.3;
    margin: 0;
    text-align: center;
    width: 200px;
    padding: 0 8px;
    letter-spacing: -0.03em;
    transition: color 0.2s ease;
}

.author-card:hover + .author-name {
    color: #000;
}

/* ============================================
   MODAL DES LIVRES - DESIGN MODERNE
   ============================================ */

/* Pop-up des livres d'un auteur - Refonte UX */
.author-books-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    background-color: rgba(255, 255, 255, 0.85);
    /* Optimisation performance */
    will-change: opacity;
}

.author-books-popup.show {
    display: flex;
    opacity: 1;
}

.author-books-popup.show .author-books-popup-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Container scroll optimisé */
.author-books-popup-scroll {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 20px 40px;
    /* Scrollbar personnalisée pour mobile */
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar personnalisée (desktop) */
.author-books-popup-scroll::-webkit-scrollbar {
    width: 6px;
}

.author-books-popup-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.author-books-popup-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.author-books-popup-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Contenu de la modal - Animation d'entrée fluide */
.author-books-popup-content {
    position: relative;
    border-radius: 24px;
    padding: 50px 30px;
    max-width: 800px;
    width: 100%;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    /* Optimisation performance */
    will-change: transform, opacity;
}

.author-books-popup-close {
    position: fixed;
    top: 15px;
    right: 30px;
    background: none;
    border: none;
    font-size: 60px;
    color: #131319;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    font-weight: 200;
    font-family: 'Inter', sans-serif;
}

.author-books-popup-close:hover {
    color: #131319;
    opacity: 0.7;
}

/* Titre de la modal - Typographie moderne */
.author-books-popup-title {
    font-family: 'Futura Condensed Extra', sans-serif;
    font-size: 32px;
    color: #131319;
    margin-bottom: 40px;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Grille des livres - Responsive et optimisée */
.author-books-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    /* Mobile-first : 2 colonnes par défaut */
}

@media (min-width: 480px) {
    .author-books-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 640px) {
    .author-books-list {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 24px;
    }
}

@media (min-width: 768px) {
    .author-books-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 28px;
    }
}

/* Carte livre dans la modal - Design moderne */
.author-book-item {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Optimisation performance */
    will-change: transform;
    /* Animation d'entrée initiale */
    opacity: 0;
    transform: translateY(20px);
}

/* Effet hover/tap sur la carte livre */
.author-book-item:hover,
.author-book-item:active {
    transform: translateY(-6px);
}

/* Image du livre - Design soigné */
.author-book-image {
    width: 100%;
    height: 240px;
    border-radius: 12px;
    margin-bottom: 14px;
    position: relative;
    overflow: visible;
    background: #fdfdfd;
    border: 1px solid rgba(218, 217, 214, 0.6);
    padding: 16px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.author-book-image img {
    width: auto;
    height: 100%;
    border-radius: 8px;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.author-book-item:hover .author-book-image img {
    transform: scale(1.03);
}


/* Titre du livre - Typographie optimisée */
.author-book-title {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #131319;
    line-height: 1.3;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
    transition: color 0.2s ease;
}

.author-book-item:hover .author-book-title {
    color: #000;
}

/* Auteur du livre */
.author-book-author {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #9B9B9B;
    margin: 0;
    line-height: 1.3;
    margin-top: 4px;
    letter-spacing: -0.03em;
}


/* ============================================
   MODAL SÉLECTION LIBRAIRIE - DESIGN MODERNE
   ============================================ */

/* Pop-up de sélection de librairie - Refonte UX */
.book-store-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Optimisation performance */
    will-change: opacity;
}

.book-store-popup.show {
    display: flex;
    opacity: 1;
}

.book-store-popup.show .book-store-popup-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Contenu de la modal librairie */
.book-store-popup-content {
    position: relative;
    background: #FEFDF9;
    border-radius: 24px;
    padding: 50px 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Optimisation performance */
    will-change: transform, opacity;
}

.book-store-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(254, 253, 249, 0.92);
    border: 1px solid rgba(218, 217, 214, 0.85);
    border-radius: 50%;
    font-size: 28px;
    color: #131319;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    -webkit-tap-highlight-color: transparent;
}

.book-store-popup-close:hover {
    color: #131319;
    border-color: #131319;
}

.book-store-popup-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #131319;
    text-align: center;
    line-height: 1.3;
    letter-spacing: -0.03em;
}

/* Labels dans la popup de librairie */
.book-store-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 0 0 20px 0;
}

.book-label-coup-de-coeur svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: currentColor;
}

.book-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: -0.02em;
    border: 1.5px solid;
}

.book-label-coup-de-coeur {
    color: #fff;
    border-color: #d3063d;
    background: #d3063d;
}

.book-label-coup-de-coeur svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.book-label-beau-livre {
    color: #fff;
    border-color: #131319;
    background: #131319;
}

.book-label-beau-livre svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    fill: currentColor;
}

/* Image du livre dans la popup de librairie */
.book-store-popup-image {
    width: 160px;
    height: 240px;
    margin: 0 auto 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-store-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Auteur dans la popup */
.book-store-popup-author {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #9B9B9B;
    margin: 0 0 20px 0;
    text-align: center;
    letter-spacing: -0.03em;
}

/* Label "Coup de coeur" sur les cartes de livre dans la liste */
.author-book-label-coup-de-coeur {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #d3063d;
    color: #fff;
    padding: 5px 8px;
    border-radius: 40px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1.5px solid #d3063d;
}

.author-book-label-coup-de-coeur svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.author-book-label-text {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

/* Label "Beau livre" sur les cartes de livre dans la liste */
.author-book-label-beau-livre {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #131319;
    color: #fff;
    padding: 5px 8px;
    border-radius: 40px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1.5px solid #131319;
}

/* Si les deux labels sont présents, "Beau livre" reste à gauche, "Coup de coeur" à droite */
.author-book-image:has(.author-book-label-coup-de-coeur) .author-book-label-beau-livre {
    top: 8px;
    left: 8px;
}

.author-book-label-beau-livre svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.author-book-label-beau-livre .author-book-label-text {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

/* Commentaire dans la popup de librairie */
.book-store-comment {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #555555;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: left;
    text-align: center;
}

/* Séparateur HR entre commentaire et boutons */
.book-store-separator {
    border: none;
    border-top: 1px solid #ebebeb;
    margin: 20px 0;
    width: 100%;
}

.book-store-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.book-store-btn-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: #fff;
    border: 1.5px solid rgba(218, 217, 214, 0.6);
    border-radius: 16px;
    text-decoration: none;
    color: #131319;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    will-change: transform;
}

.book-store-btn-logo {
    width: 90px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}



/* .book-store-btn-logo-amazon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff9900'%3E%3Cpath d='M16.5 18c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zm-9 0c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zm9-13c-1.4 0-2.5-1.1-2.5-2.5S15.1 0 16.5 0 19 1.1 19 2.5 17.9 5 16.5 5zm-9 0C6.1 5 5 3.9 5 2.5S6.1 0 7.5 0 10 1.1 10 2.5 8.9 5 7.5 5z'/%3E%3Cpath d='M12 8l-1.5 3L8 12l2.5 1L12 16l1.5-3L16 12l-2.5-1L12 8z'/%3E%3C/svg%3E");
    background-color: #ff9900;
    padding: 8px;
} */

.book-store-btn-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #131319;
}

.book-store-btn-action {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #131319;
    padding: 10px 20px 10px 24px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.book-store-btn-wrapper:hover .book-store-btn-action {
    background: #4a4a4a;
}

.book-store-btn-tab-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.8;
}

.book-store-btn-wrapper[style*="display: none"] {
    display: none !important;
}

/* ============================================
   SECTION NEWSLETTER
   ============================================ */

.newsletter-section {
    padding: 0 20px;
    content-visibility: auto;
    contain-intrinsic-size: auto 280px;
}

.newsletter-card {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(218, 217, 214, 0.6);
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.newsletter-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #555;
    margin-bottom: 18px;
    line-height: 1.5;
    letter-spacing: -0.02em;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.newsletter-input {
    width: 100%;
    padding: 16px 20px;
    border: 1.5px solid rgba(218, 217, 214, 0.9);
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background: #fff;
    color: #131319;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    text-align: center;
    letter-spacing: -0.02em;
}

.newsletter-input::placeholder {
    color: #9B9B9B;
}

.newsletter-input:focus {
    border-color: #131319;
    box-shadow: 0 0 0 4px rgba(19, 19, 25, 0.06);
}

.newsletter-submit {
    width: 100%;
    padding: 16px 20px;
    background: #131319;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: -0.02em;
}

.newsletter-submit:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.newsletter-submit:active {
    transform: translateY(0);
}

.newsletter-privacy {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #9B9B9B;
    margin-top: 14px;
    margin-bottom: 0;
    letter-spacing: -0.02em;
}

/* Helper d'accessibilité — label invisible mais lu par les lecteurs d'écran */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Footer */
footer {
    text-align: center;
    padding-bottom: 55px;
}

/* Popup de donation */
:root {
    --modal-open-dur: 250ms;
    --modal-close-dur: 150ms;
    --modal-scale: 0.96;
    --modal-scale-close: 0.96;
    --modal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.donation-popup {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--modal-open-dur) var(--modal-ease),
        visibility var(--modal-open-dur) var(--modal-ease);
}

.donation-popup.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.donation-popup.is-closing {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--modal-close-dur) var(--modal-ease),
        visibility var(--modal-close-dur) var(--modal-ease);
}

.donation-popup-content {
    position: relative;
    background: #FEFDF9;
    border-radius: 24px;
    padding: 48px 28px 28px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    transform: scale(var(--modal-scale));
    opacity: 0;
    transition: transform var(--modal-open-dur) var(--modal-ease),
        opacity var(--modal-open-dur) var(--modal-ease);
}

.donation-popup.is-open .donation-popup-content {
    transform: scale(1);
    opacity: 1;
}

.donation-popup.is-closing .donation-popup-content {
    transform: scale(var(--modal-scale-close));
    opacity: 0;
    transition: transform var(--modal-close-dur) var(--modal-ease),
        opacity var(--modal-close-dur) var(--modal-ease);
}

.donation-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(254, 253, 249, 0.92);
    border: 1px solid rgba(218, 217, 214, 0.85);
    border-radius: 50%;
    font-size: 28px;
    color: #131319;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    -webkit-tap-highlight-color: transparent;
}

.donation-popup-close:hover {
    border-color: #131319;
}

.donation-kicker {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9B9B9B;
    margin: 0 0 10px;
}

.donation-step[hidden] {
    display: none !important;
}

.donation-popup-title {
    font-family: 'Futura Condensed Extra', sans-serif;
    font-size: 28px;
    color: #131319;
    line-height: 1.05;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    text-align: center;
    margin: 0 0 10px;
}

.donation-lead {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    color: rgba(19, 19, 25, 0.48);
    letter-spacing: -0.02em;
    margin: 0 0 24px;
}

.donation-method {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 18px 20px;
    margin: 0 0 10px;
    background: #fff;
    border: 1.5px solid rgba(218, 217, 214, 0.7);
    border-radius: 16px;
    text-decoration: none;
    color: #131319;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    text-align: left;
    transition: border-color 0.25s cubic-bezier(0.47, 0.48, 0.1, 1),
        transform 0.2s cubic-bezier(0.47, 0.48, 0.1, 1),
        box-shadow 0.25s cubic-bezier(0.47, 0.48, 0.1, 1);
    -webkit-tap-highlight-color: transparent;
}

.donation-method:last-child {
    margin-bottom: 0;
}

.donation-method:hover {
    border-color: #131319;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.donation-method-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.donation-method-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.donation-method-hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #9B9B9B;
    letter-spacing: -0.02em;
}

.donation-revolut-logo {
    display: block;
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.donation-method-cta {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #131319;
    padding: 10px 16px;
    border-radius: 12px;
    letter-spacing: -0.02em;
}

.donation-method-cta--ghost {
    background: transparent;
    color: #131319;
    border: 1px solid rgba(218, 217, 214, 0.9);
}

.donation-back {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    margin: 0 0 16px;
    padding: 0;
    border: none;
    background: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #131319;
    cursor: pointer;
    letter-spacing: -0.02em;
    -webkit-tap-highlight-color: transparent;
}

.donation-back svg {
    display: block;
}

.donation-rib {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.donation-rib-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: #fff;
    border: 1.5px solid rgba(218, 217, 214, 0.7);
    border-radius: 14px;
    text-align: left;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    color: #131319;
    transition: border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.donation-rib-row:hover,
.donation-rib-row.copied {
    border-color: #131319;
}

.donation-rib-label {
    grid-column: 1;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9B9B9B;
}

.donation-rib-value {
    grid-column: 1;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.02em;
    word-break: break-all;
    margin-top: 2px;
}

.donation-rib-action {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #131319;
}

.donation-rib-icon {
    display: block;
    flex-shrink: 0;
}

.donation-rib-icon--check {
    display: none;
}

.donation-rib-row.copied .donation-rib-action {
    color: #1a7a3a;
}

.donation-rib-row.copied .donation-rib-icon--copy {
    display: none;
}

.donation-rib-row.copied .donation-rib-icon--check {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .donation-popup,
    .donation-popup.is-closing,
    .donation-popup-content,
    .donation-popup.is-closing .donation-popup-content,
    .donation-method {
        transition: none !important;
    }
}

/* Mobile - Full width */
@media (max-width: 768px) {
    main.container {
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    main::before,
    main::after {
        display: none;
    }
    
    .buttons-section {
        padding: 0 20px;
    }
    
    .categories-container {
        flex-direction: column;
    }
    
    .categories-swiper,
    .books-swiper {
        padding: 0 20px;
    }
    
    .donation-popup {
        padding: 0;
        align-items: stretch;
    }

    .donation-popup-content {
        width: 100%;
        height: 100%;
        min-height: 100dvh;
        max-height: 100dvh;
        max-width: none;
        border-radius: 0;
        margin: 0;
        padding:
            calc(env(safe-area-inset-top, 0px) + 60px)
            max(20px, env(safe-area-inset-right, 0px))
            calc(env(safe-area-inset-bottom, 0px) + 24px)
            max(20px, env(safe-area-inset-left, 0px));
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

    .donation-popup-close {
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + 12px);
        right: calc(env(safe-area-inset-right, 0px) + 12px);
        z-index: 10001;
        width: 44px;
        height: 44px;
        font-size: 30px;
    }

    .donation-method {
        padding: 16px 16px 16px 18px;
    }

    /* Pop-up des livres d'un auteur sur mobile */
    .author-books-popup {
        padding: 0;
    }
    
    .author-books-popup-scroll {
        padding: 0;
    }
    
    .author-books-popup-content {
        width: 100%;
        max-width: none;
        border-radius: 0;
        padding: 60px 20px 20px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        box-sizing: border-box;
    }
    
    .author-books-popup-close {
        top: 20px;
        right: 20px;
        font-size: 40px;
        width: 40px;
        height: 40px;
    }

    .author-books-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        width: 100%;
    }
    
    .author-book-image {
        height: 200px;
        padding: 12px;
    }
    
    .author-book-title {
        font-size: 14px;
    }
    
    .author-book-author {
        font-size: 12px;
    }

    /* Pop-up de sélection de librairie sur mobile */
    .book-store-popup {
        padding: 0;
        align-items: stretch;
    }
    
    .book-store-popup-content {
        width: 100%;
        height: 100%;
        min-height: 100dvh;
        max-height: 100dvh;
        max-width: none;
        border-radius: 0;
        margin: 0;
        padding:
            calc(env(safe-area-inset-top, 0px) + 60px)
            max(20px, env(safe-area-inset-right, 0px))
            calc(env(safe-area-inset-bottom, 0px) + 24px)
            max(20px, env(safe-area-inset-left, 0px));
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }
    
    .book-store-popup-close {
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + 12px);
        right: calc(env(safe-area-inset-right, 0px) + 12px);
        z-index: 10001;
        width: 44px;
        height: 44px;
        font-size: 30px;
    }
    
    /* Blocs d'affiliation pleine largeur sur mobile */
    .book-store-buttons {
        width: 100%;
        max-width: 100%;
    }
    
    .book-store-btn-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 18px 20px;
    }
    
    .book-store-btn-logo {
        width: 80px;
    }
    
    .book-store-btn-action {
        font-size: 13px;
        padding: 8px 16px 8px 20px;
    }
}