/**
 * ==========================================================
 * Programme Excellence
 * Nos éditions nationales — Ultra Premium V2
 * Partie 2 : Design et responsive
 * ==========================================================
 */

/* ----------------------------------------------------------
   Section principale
   ---------------------------------------------------------- */

.pe-editions {
    --pe-editions-navy: #031225;
    --pe-editions-navy-light: #0b2d58;
    --pe-editions-blue: #12477f;

    --pe-editions-gold: #d9a928;
    --pe-editions-gold-light: #f4d77c;
    --pe-editions-cream: #fff8df;

    --pe-editions-card-width: 220px;
    --pe-editions-gap: 28px;

    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 48px 0 34px;
    overflow: hidden;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 12% 15%,
            rgba(32, 101, 176, 0.28),
            transparent 31%
        ),
        radial-gradient(
            circle at 88% 80%,
            rgba(217, 169, 40, 0.15),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #020b17 0%,
            var(--pe-editions-navy) 48%,
            #061b35 100%
        );
}

/* Éléments décoratifs */

.pe-editions::before {
    position: absolute;
    inset: 0;
    z-index: -2;

    content: "";

    opacity: 0.18;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.055) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.055) 1px,
            transparent 1px
        );

    background-size: 64px 64px;

    -webkit-mask-image:
        linear-gradient(
            to bottom,
            transparent,
            #000 20%,
            #000 82%,
            transparent
        );

    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            #000 20%,
            #000 82%,
            transparent
        );
}

.pe-editions::after {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: -1;

    width: min(1100px, 94vw);
    height: 1px;

    content: "";

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(244, 215, 124, 0.85),
            transparent
        );

    box-shadow:
        0 0 22px rgba(217, 169, 40, 0.4);

    transform: translateX(-50%);
}

/* ----------------------------------------------------------
   Conteneur
   ---------------------------------------------------------- */

.pe-editions .pe-container {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* ----------------------------------------------------------
   En-tête
   ---------------------------------------------------------- */

/* ----------------------------------------------------------
   En-tête éditorial — discret, satiné, sur une seule ligne
   ---------------------------------------------------------- */

.pe-editions .pe-heading {
    position: relative;
    z-index: 3;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto 24px;
    text-align: center;
}

.pe-editions .pe-heading h2 {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 3vw, 46px);
    max-width: 100%;
    margin: 0;
    padding: 0;
    color: transparent;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(16px, 1.85vw, 27px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: clamp(.12em, .32vw, .28em);
    text-transform: uppercase;
    white-space: nowrap;
    background: linear-gradient(
        105deg,
        #a87318 0%,
        #d7aa45 23%,
        #fff1b7 48%,
        #d3a03b 72%,
        #946012 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 2px 9px rgba(218, 174, 75, .22));
}

.pe-editions .pe-heading h2::before,
.pe-editions .pe-heading h2::after {
    position: static;
    display: block;
    width: clamp(54px, 10vw, 150px);
    height: 1px;
    flex: 0 1 auto;
    content: "";
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #d5a744 72%, #f8df98);
    box-shadow: 0 0 10px rgba(213, 167, 68, .25);
    transform: none;
}

.pe-editions .pe-heading h2::after {
    background: linear-gradient(90deg, #f8df98, #d5a744 28%, transparent);
}

.pe-editions .pe-heading p,
.pe-editions .pe-label {
    display: none;
}

@media (max-width: 700px) {
    .pe-editions .pe-heading {
        width: calc(100% - 22px);
        margin-bottom: 18px;
    }

    .pe-editions .pe-heading h2 {
        gap: 10px;
        font-size: clamp(12px, 4vw, 17px);
        letter-spacing: .12em;
    }

    .pe-editions .pe-heading h2::before,
    .pe-editions .pe-heading h2::after {
        width: clamp(22px, 8vw, 48px);
    }
}

/* ----------------------------------------------------------
   Rangées
   ---------------------------------------------------------- */

.pe-editions .pe-row{
    position:relative;
    width:100%;
    overflow:hidden;
    margin:0;
    padding:0 58px;
}

.pe-editions .pe-row + .pe-row{
    margin-top:12px;
}

.pe-editions .pe-track{

    display:flex;
    align-items:flex-start;
    gap:var(--pe-editions-gap);

    width:max-content;
    max-width: 100%;

    padding:24px max(30px,calc((100vw - 1440px)/2));

    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;

    will-change:transform;
    transform:translate3d(0,0,0);
}

.pe-editions .pe-track::-webkit-scrollbar {
    display: none;
}

.pe-editions .pe-track .pe-card {
    scroll-snap-align: start;
}

.pe-editions .pe-row-right {
    justify-content: flex-start;
}

/* Fondu sur les bords */

.pe-editions .pe-container::before,
.pe-editions .pe-container::after {
    position: absolute;
    top: 123px;
    bottom: 0;
    z-index: 10;

    width: clamp(34px, 8vw, 150px);

    content: "";

    pointer-events: none;
}

.pe-editions .pe-container::before {
    left: 0;

    background:
        linear-gradient(
            90deg,
            rgba(2, 11, 23, 0.98) 0%,
            rgba(2, 11, 23, 0.8) 34%,
            transparent 100%
        );
}

.pe-editions .pe-container::after {
    right: 0;

    background:
        linear-gradient(
            270deg,
            rgba(6, 27, 53, 0.98) 0%,
            rgba(6, 27, 53, 0.8) 34%,
            transparent 100%
        );
}

/* ----------------------------------------------------------
   Flèches de navigation du carrousel
   ---------------------------------------------------------- */

.pe-editions .pe-arrow {
    position: absolute;
    top: 50%;
    z-index: 12;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    padding: 0;

    cursor: pointer;

    border: 1px solid rgba(244, 215, 124, 0.42);
    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.11),
            rgba(255, 255, 255, 0.035)
        );

    box-shadow:
        0 9px 22px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);

    color: var(--pe-editions-cream);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;

    transform: translateY(-50%);
}

.pe-editions .pe-arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pe-editions .pe-arrow-prev {
    left: 0;
}

.pe-editions .pe-arrow-next {
    right: 0;
}

.pe-editions .pe-arrow:hover,
.pe-editions .pe-arrow:focus-visible {
    color: #071426;

    border-color: var(--pe-editions-gold-light);

    background:
        linear-gradient(
            135deg,
            #fff2b8,
            var(--pe-editions-gold)
        );

    box-shadow:
        0 13px 30px rgba(217, 169, 40, 0.28),
        0 0 22px rgba(244, 215, 124, 0.14);

    transform: translateY(-50%) scale(1.06);
}

.pe-editions .pe-arrow:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* ----------------------------------------------------------
   Carte
   ---------------------------------------------------------- */

.pe-editions .pe-card {
    position: relative;

    flex: 0 0 var(--pe-editions-card-width);

    width: var(--pe-editions-card-width);
    min-width: var(--pe-editions-card-width);
    margin: 0;
    padding: 0 0 17px;

    overflow: visible;

    border: 1px solid rgba(255, 231, 168, 0.16);
    border-radius: 20px;

    background:
        linear-gradient(
            155deg,
            rgba(255, 255, 255, 0.11),
            rgba(255, 255, 255, 0.035)
        );

    box-shadow:
        0 28px 58px rgba(0, 0, 0, 0.43),
        0 8px 18px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);

    text-align: center;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.4s ease,
        background 0.4s ease,
        box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);

    transform:
        perspective(1000px)
        translateY(0)
        rotateX(0)
        rotateY(0);
}

.pe-editions .pe-card::before {
    position: absolute;
    inset: -18px;
    z-index: -1;

    content: "";

    border-radius: 30px;

    opacity: 0;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(244, 215, 124, 0.3),
            transparent 68%
        );

    filter: blur(24px);

    transition:
        opacity 0.45s ease,
        transform 0.45s ease;

    transform: scale(0.85);
}

.pe-editions .pe-card::after {
    position: absolute;
    top: 0;
    left: -80%;

    width: 45%;
    height: calc(100% - 62px);

    content: "";

    pointer-events: none;

    opacity: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.24),
            transparent
        );

    transform: skewX(-15deg);

    transition:
        left 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.2s ease;
}

/* ----------------------------------------------------------
   Image de couverture
   ---------------------------------------------------------- */

.pe-editions .pe-card img {
    display: block;

    width: 100%;
    height: auto;
    aspect-ratio: 0.71;

    margin: 0;

    object-fit: cover;
    object-position: center top;

    border: 0;
    border-radius: 19px 19px 13px 13px;

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);

    transition:
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.45s ease;
}

/* ----------------------------------------------------------
   Bouton Découvrir
   ---------------------------------------------------------- */

.pe-editions .pe-button {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-width: 128px;
    min-height: 40px;

    margin: 16px auto 0;
    padding: 11px 19px;

    overflow: hidden;

    border: 1px solid rgba(244, 215, 124, 0.42);
    border-radius: 999px;

    color: var(--pe-editions-cream);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.11),
            rgba(255, 255, 255, 0.035)
        );

    box-shadow:
        0 9px 22px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);

    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.065em;
    text-decoration: none;
    text-transform: uppercase;

    transition:
        color 0.35s ease,
        border-color 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.35s ease;
}

.pe-editions .pe-button::after {
    content: "→";

    font-size: 15px;
    font-weight: 500;

    transition: transform 0.35s ease;
}

/* ----------------------------------------------------------
   Survol
   ---------------------------------------------------------- */

@media (hover: hover) and (pointer: fine) {

    .pe-editions .pe-card:hover {
        z-index: 6;

        border-color: rgba(244, 215, 124, 0.5);

        background:
            linear-gradient(
                155deg,
                rgba(255, 255, 255, 0.15),
                rgba(255, 255, 255, 0.05)
            );

        box-shadow:
            0 42px 78px rgba(0, 0, 0, 0.56),
            0 16px 32px rgba(0, 0, 0, 0.3),
            0 0 42px rgba(217, 169, 40, 0.13),
            inset 0 1px 0 rgba(255, 255, 255, 0.21);

        transform:
            perspective(1000px)
            translateY(-12px)
            rotateX(1.5deg)
            rotateY(-1.5deg)
            scale(1.025);
    }

    .pe-editions .pe-card:nth-child(even):hover {
        transform:
            perspective(1000px)
            translateY(-12px)
            rotateX(1.5deg)
            rotateY(1.5deg)
            scale(1.025);
    }

    .pe-editions .pe-card:hover::before {
        opacity: 1;
        transform: scale(1.1);
    }

    .pe-editions .pe-card:hover::after {
        left: 135%;
        opacity: 1;
    }

    .pe-editions .pe-card:hover img {
        filter:
            saturate(1.06)
            contrast(1.025)
            brightness(1.025);

        transform: scale(1.018);
    }

    .pe-editions .pe-button:hover,
    .pe-editions .pe-button:focus-visible {
        color: #071426;

        border-color: var(--pe-editions-gold-light);

        background:
            linear-gradient(
                135deg,
                #fff2b8,
                var(--pe-editions-gold)
            );

        box-shadow:
            0 13px 30px rgba(217, 169, 40, 0.28),
            0 0 22px rgba(244, 215, 124, 0.14);

        transform: translateY(-3px);
    }

    .pe-editions .pe-button:hover::after,
    .pe-editions .pe-button:focus-visible::after {
        transform: translateX(4px);
    }
}

/* Navigation clavier */

.pe-editions .pe-button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 5px;
}

/* ----------------------------------------------------------
   Tablette
   ---------------------------------------------------------- */

@media (max-width: 1024px) {

    .pe-editions {
        --pe-editions-card-width: 196px;
        --pe-editions-gap: 23px;

        padding-top: 42px;
        padding-bottom: 82px;
    }

    .pe-editions .pe-heading {
        margin-bottom: 34px;
    }

    .pe-editions .pe-heading h2 {
        font-size: clamp(28px, 4.6vw, 44px);
    }

    .pe-editions .pe-track {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .pe-editions .pe-row {
        padding: 0 48px;
    }

    .pe-editions .pe-arrow {
        width: 40px;
        height: 40px;
    }
}

/* ----------------------------------------------------------
   Mobile
   ---------------------------------------------------------- */

@media (max-width: 767px) {

    .pe-editions {
        --pe-editions-card-width: 164px;
        --pe-editions-gap: 17px;

        padding: 34px 0 70px;
    }

    .pe-editions .pe-heading {
        width: calc(100% - 32px);
        margin-bottom: 26px;
    }

    .pe-editions .pe-label {
        gap: 8px;

        margin-bottom: 12px;

        font-size: 9px;
        letter-spacing: 0.18em;
    }

    .pe-editions .pe-label::before,
    .pe-editions .pe-label::after {
        width: 18px;
    }

    .pe-editions .pe-heading h2 {
        padding-bottom: 23px;

        font-size: clamp(24px, 8vw, 34px);
        line-height: 1.12;

        white-space: normal;
    }

    .pe-editions .pe-heading p {
        margin-top: 20px;

        font-size: 14px;
        line-height: 1.65;
    }

    .pe-editions .pe-row {
        padding: 0 38px;
    }

    .pe-editions .pe-track {
        padding:
            16px
            18px;
    }

    .pe-editions .pe-row + .pe-row {
        margin-top: 5px;
    }

    .pe-editions .pe-card {
        padding-bottom: 13px;

        border-radius: 16px;
    }

    .pe-editions .pe-card img {
        border-radius: 15px 15px 10px 10px;
    }

    .pe-editions .pe-button {
        min-width: 112px;
        min-height: 36px;

        margin-top: 13px;
        padding: 9px 14px;

        font-size: 10px;
        letter-spacing: 0.045em;
    }

    .pe-editions .pe-arrow {
        width: 34px;
        height: 34px;
    }

    .pe-editions .pe-arrow svg {
        width: 14px;
        height: 14px;
    }

    .pe-editions .pe-container::before,
    .pe-editions .pe-container::after {
        width: 34px;
    }
}

/* ----------------------------------------------------------
   Très petits écrans
   ---------------------------------------------------------- */

@media (max-width: 390px) {

    .pe-editions {
        --pe-editions-card-width: 148px;
        --pe-editions-gap: 14px;
    }

    .pe-editions .pe-heading h2 {
        font-size: 26px;
    }

    .pe-editions .pe-row {
        padding: 0 32px;
    }

    .pe-editions .pe-track {
        padding-right: 14px;
        padding-left: 14px;
    }
}

/* ----------------------------------------------------------
   Réduction des animations
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .pe-editions .pe-card,
    .pe-editions .pe-card::before,
    .pe-editions .pe-card::after,
    .pe-editions .pe-card img,
    .pe-editions .pe-button,
    .pe-editions .pe-button::after,
    .pe-editions .pe-arrow,
    .pe-editions .pe-track {
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* En-tête épuré : éviter les répétitions */
.pe-editions .pe-heading{margin-bottom:30px}
.pe-editions .pe-label,.pe-editions .pe-heading p{display:none!important}
.pe-editions .pe-heading h2{padding-bottom:24px}

/* 2026 refinement — titre éditorial fin et doré */
.pe-editions .pe-heading{margin-bottom:34px!important}
.pe-editions .pe-heading h2{display:flex!important;align-items:center;justify-content:center;gap:24px;margin:0!important;padding:0!important;color:#e9bd55!important;font-family:Georgia,"Times New Roman",serif!important;font-size:clamp(24px,2.6vw,38px)!important;font-weight:400!important;line-height:1.15!important;letter-spacing:.16em!important;text-transform:uppercase!important;text-shadow:0 0 18px rgba(233,189,85,.18)!important}
.pe-editions .pe-heading h2:before,.pe-editions .pe-heading h2:after{content:""!important;position:static!important;display:block!important;width:min(180px,16vw)!important;height:1px!important;margin:0!important;background:linear-gradient(90deg,transparent,#e9bd55)!important;box-shadow:none!important;transform:none!important}
.pe-editions .pe-heading h2:after{background:linear-gradient(90deg,#e9bd55,transparent)!important}
@media(max-width:700px){.pe-editions .pe-heading h2{gap:12px!important;font-size:22px!important;letter-spacing:.1em!important}.pe-editions .pe-heading h2:before,.pe-editions .pe-heading h2:after{width:42px!important}}
