/* ===================================================================
   A5E — Dedicated page styles
   Palette & fonts are shared with style.css (see RAZ Studio master).
   =================================================================== */

/* --------------------------- A5E FONTS --------------------------- */
@font-face {
    font-family: "Cormorant SC";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/cormorant-sc-v19-latin-regular.woff2') format('woff2');
}

/* Lien de compte volontairement discret dans la navigation A5E */
.a5e-account-nav .nav-link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.4rem;
    color: rgba(242, 240, 234, 0.68) !important;
    font-size: 0.92rem;
}
.a5e-account-nav .nav-link:hover,
.a5e-account-nav .nav-link:focus {
    color: #C58A3A !important;
}
.a5e-account-nav .fa {
    font-size: 0.86rem;
}
.a5e-account-menu {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 0.35rem;
}
.a5e-account-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: rgba(242, 240, 234, 0.76);
    background: rgba(13, 15, 18, 0.35);
    border: 1px solid rgba(197, 138, 58, 0.28);
    border-radius: 50%;
    cursor: pointer;
}
.a5e-account-trigger:hover,
.a5e-account-trigger:focus,
.a5e-account-trigger[aria-expanded="true"] {
    color: #DDBB77;
    border-color: rgba(197, 138, 58, 0.7);
}
.a5e-account-trigger img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.a5e-account-dropdown {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    z-index: 1000;
    min-width: 190px;
    padding: 0.45rem 0;
    background: rgba(13, 15, 18, 0.98);
    border: 1px solid rgba(197, 138, 58, 0.32);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.48);
}
.a5e-account-dropdown[hidden] { display: none; }
.a5e-account-name {
    margin: 0;
    padding: 0.55rem 0.9rem 0.7rem;
    color: #DDBB77;
    border-bottom: 1px solid rgba(197, 138, 58, 0.15);
    font-family: "Cormorant SC", serif;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
}
.a5e-account-dropdown a,
.a5e-account-dropdown button {
    display: block;
    width: 100%;
    padding: 0.65rem 0.9rem;
    color: rgba(242, 240, 234, 0.76);
    background: transparent;
    border: 0;
    font-size: 0.82rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.a5e-account-dropdown a:hover,
.a5e-account-dropdown a:focus,
.a5e-account-dropdown button:hover,
.a5e-account-dropdown button:focus {
    color: #C58A3A;
    background: rgba(197, 138, 58, 0.08);
    text-decoration: none;
}
.a5e-account-dropdown i { width: 1.2rem; }
.a5e-account-dropdown form { margin: 0; }
@font-face {
    font-family: "Cormorant SC";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/cormorant-sc-v19-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: "Cormorant SC";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/cormorant-sc-v19-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: "Cormorant SC";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/cormorant-sc-v19-latin-700.woff2') format('woff2');
}

/* --------------------------- A5E HERO --------------------------- */
.a5e-hero {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    background-color: #0D0F12;
}
/* Cinematic backdrop — swap the image here to change the hero visual */
.a5e-hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    background-image: url(../images/a5e_voyageur.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 32%;
}
/* Dark cinematic overlay (readability, consistent with RAZ Studio) */
.a5e-hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    background:
        linear-gradient(to right, rgba(13, 15, 18, 0.95) 0%, rgba(13, 15, 18, 0.75) 40%, rgba(13, 15, 18, 0.30) 75%, rgba(13, 15, 18, 0.10) 100%),
        linear-gradient(to bottom, rgba(13, 15, 18, 0.60) 0%, rgba(13, 15, 18, 0) 32%),
        linear-gradient(to top, #0D0F12 0%, rgba(13, 15, 18, 0) 24%);
}
.a5e-hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 7rem;
    padding-bottom: 5rem;
}
.a5e-hero-content {
    max-width: 660px;
    -webkit-animation: hero-fade-up 0.8s ease-out both;
    animation: hero-fade-up 0.8s ease-out both;
}
.a5e-hero-logo {
    display: block;
    margin: 0;
}
.a5e-hero-logo img {
    display: block;
    width: min(48vw, 700px);
    max-width: 700px;
    height: auto;
    margin-bottom: 1.25rem;
    transform: translateY(-14px);
    filter:
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.55))
        drop-shadow(0 0 12px rgba(210, 166, 83, 0.30))
        drop-shadow(0 0 28px rgba(210, 166, 83, 0.16));
}
@media (max-width : 900px) {
    .a5e-hero-logo img {
        width: min(70vw, 560px);
    }
}
@media (max-width : 600px) {
    .a5e-hero-logo img {
        width: 88vw;
        max-width: 460px;
    }
}
.a5e-hero-tagline {
    max-width: 34rem;
    margin: 0 0 2.2rem 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.7;
    color: rgba(242, 240, 234, 0.85);
}
.a5e-hero-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 1rem;
}
.a5e-hero-support-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
    width: -webkit-fit-content;
    width: fit-content;
    max-width: 26rem;
}
.a5e-cta-arrow {
    display: inline-block;
    font-size: 1.05em;
    transition: transform 0.2s ease;
}
.a5e-hero-support-btn:hover .a5e-cta-arrow,
.a5e-hero-support-btn:focus .a5e-cta-arrow {
    transform: translateX(6px);
}
.a5e-hero-contributors-link {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    margin-top: 1.15rem;
    color: #c58a3a;
    font-family: "Cormorant SC",serif;
    font-size: 1.18rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-decoration: none;
}
.a5e-hero-contributors-link:hover,
.a5e-hero-contributors-link:focus { color: #e4a34c; text-decoration: none; }
.a5e-hero-contributors-link:hover .a5e-cta-arrow,
.a5e-hero-contributors-link:focus .a5e-cta-arrow { transform: translateX(6px); }

/* --------------------------- A5E SECTIONS (consistent full-width bg) --------------------------- */
.a5e-section {
    padding: 100px 0;
    background-color: #0D0F12;
}
.a5e-section + .a5e-section {
    border-top: 1px solid rgba(197, 138, 58, 0.10);
}
.a5e-heading {
    margin-bottom: 3.2rem;
}
.a5e-heading h1 {
    font-family: "Cormorant SC", serif;
    font-weight: 600;
    text-transform: uppercase;
    color: #F2F0EA;
    letter-spacing: 0.08em;
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    line-height: 1.2;
}
.a5e-accent {
    color: #C58A3A;
}
.a5e-heading .heading-rule {
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
}
.a5e-lead {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(242, 240, 234, 0.85);
    max-width: 46rem;
    margin: 0 0 1.1rem 0;
    padding: 0;
}
.a5e-lead:last-child {
    margin-bottom: 0;
}
/* LE JEU — réduire l'espace vide après le texte avant la section suivante */
#game.a5e-section {
    padding-bottom: 75px;
}

/* --------------------------- FEATURES --------------------------- */
.a5e-features-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.a5e-feature {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 300px;
    flex: 1 1 300px;
    max-width: 360px;
    background-color: #12151A;
    border: 1px solid rgba(197, 138, 58, 0.16);
    padding: 1.8rem 1.6rem;
    -webkit-transition: border-color 0.22s ease, background-color 0.22s ease, -webkit-transform 0.22s ease, box-shadow 0.22s ease;
    transition: border-color 0.22s ease, background-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.a5e-feature:hover {
    border-color: rgba(197, 138, 58, 0.42);
    background-color: #161A20;
    -webkit-transform: translateY(-3px);
    transform: translateY(-3px);
    -webkit-box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.a5e-feature-icon {
    display: block;
    font-size: 1.4rem;
    color: #C58A3A;
    margin-bottom: 1rem;
}
.a5e-feature-title {
    font-family: "Cormorant SC", serif;
    font-weight: 600;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #F2F0EA;
    margin: 0 0 0.7rem 0;
}
.a5e-feature-desc {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(242, 240, 234, 0.8);
    margin: 0;
    padding: 0;
}

/* --------------------------- GALLERY — CARD STACK --------------------------- */
.a5e-gallery {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.a5e-gallery-stage {
    position: relative;
    height: 0;
    padding-bottom: 61%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.a5e-gallery-card {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background-color: #12151A;
    border: 1px solid rgba(197, 138, 58, 0.20);
    opacity: 0;
    -webkit-transform: translateX(-120px) rotate(-5deg) scale(0.95);
    transform: translateX(-120px) rotate(-5deg) scale(0.95);
    -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease, box-shadow 0.5s ease;
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
    pointer-events: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.30);
}
.a5e-gallery-card.is-back-3 {
    z-index: 1;
    opacity: 0.35;
    -webkit-transform: translateX(45px) translateY(-24px) rotate(2deg) scale(0.925);
    transform: translateX(45px) translateY(-24px) rotate(2deg) scale(0.925);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}
.a5e-gallery-card.is-back-2 {
    z-index: 2;
    opacity: 0.50;
    -webkit-transform: translateX(40px) translateY(-24px) rotate(-1.5deg) scale(0.95);
    transform: translateX(40px) translateY(-24px) rotate(-1.5deg) scale(0.95);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}
.a5e-gallery-card.is-back-1 {
    z-index: 3;
    opacity: 0.70;
    -webkit-transform: translateX(24px) translateY(-14px) rotate(1.5deg) scale(0.975);
    transform: translateX(24px) translateY(-14px) rotate(1.5deg) scale(0.975);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
    cursor: pointer;
}
.a5e-gallery-card.is-active {
    z-index: 4;
    opacity: 1;
    -webkit-transform: translateX(0) translateY(0) rotate(0deg) scale(1);
    transform: translateX(0) translateY(0) rotate(0deg) scale(1);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
    pointer-events: auto;
}
.a5e-gallery-card.is-leaving {
    z-index: 5;
    opacity: 0;
    -webkit-transform: translateX(-120px) rotate(-5deg) scale(0.95);
    transform: translateX(-120px) rotate(-5deg) scale(0.95);
    pointer-events: none;
}
.a5e-gallery-card.is-no-transition {
    -webkit-transition: none;
    transition: none;
}
.a5e-gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}
.a5e-gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 3rem 1.5rem 1.4rem 1.5rem;
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(13, 15, 18, 0)), to(rgba(13, 15, 18, 0.92)));
    background: linear-gradient(to top, rgba(13, 15, 18, 0.92) 0%, rgba(13, 15, 18, 0) 100%);
}
.a5e-gallery-cat {
    font-family: "Cormorant SC", serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #C58A3A;
    margin: 0 0 0.3rem 0;
    padding: 0;
}
.a5e-gallery-title {
    font-family: "Cormorant SC", serif;
    font-weight: 600;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #F2F0EA;
    margin: 0;
}
.a5e-gallery-caption-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    line-height: 1.55;
    color: rgba(242, 240, 234, 0.75);
    margin: 0.3rem 0 0 0;
    padding: 0;
}
.a5e-gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background-color: rgba(13, 15, 18, 0.75);
    border: 1px solid rgba(197, 138, 58, 0.45);
    color: #F2F0EA;
    font-size: 1.1rem;
    cursor: pointer;
    -webkit-transition: background-color 0.2s ease, border-color 0.2s ease;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.a5e-gallery-nav:hover {
    background-color: rgba(197, 138, 58, 0.22);
    border-color: #C58A3A;
}
.a5e-gallery-prev {
    left: -64px;
}
.a5e-gallery-next {
    right: -78px;
}
.a5e-gallery-hint {
    text-align: center;
    font-family: "Cormorant SC", serif;
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(242, 240, 234, 0.55);
    margin-top: 1.4rem;
}

/* --------------------------- COMPANIONS --------------------------- */
.a5e-companions {
    max-width: 60rem;
    margin: 0 auto;
}
.a5e-companions .a5e-heading {
    text-align: center;
}
.a5e-companion-layout {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.a5e-companion-text .a5e-lead {
    margin-left: 0;
    margin-right: 0;
}
.a5e-companion-kicker {
    font-family: "Cormorant SC", serif;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #C58A3A;
    margin: 0 0 1.2rem 0;
    padding: 0;
}
.a5e-companion-visual {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    min-height: 320px;
    /* Pour utiliser une vraie image plus tard : ajouter background-image: url(...) ; background-size: contain ; background-repeat: no-repeat ; background-position: center ; sur ce conteneur */
}
.a5e-companion-orb {
    position: relative;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: -webkit-radial-gradient(circle at 50% 40%, rgba(197, 138, 58, 0.14), rgba(13, 15, 18, 0) 60%), -webkit-radial-gradient(circle, rgba(18, 21, 26, 0.9), rgba(13, 15, 18, 0.6));
    background: radial-gradient(circle at 50% 40%, rgba(197, 138, 58, 0.14), rgba(13, 15, 18, 0) 60%), radial-gradient(circle, rgba(18, 21, 26, 0.9), rgba(13, 15, 18, 0.6));
    border: 1px solid rgba(197, 138, 58, 0.35);
    -webkit-box-shadow: 0 0 40px rgba(197, 138, 58, 0.12), inset 0 0 40px rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 40px rgba(197, 138, 58, 0.12), inset 0 0 40px rgba(0, 0, 0, 0.4);
    color: #C58A3A;
    font-size: 3.2rem;
}
.a5e-companion-orb::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 1px solid rgba(197, 138, 58, 0.18);
}

/* --------------------------- PREVIEW BAND --------------------------- */
.a5e-preview {
    max-width: 46rem;
    margin: 0 auto;
    text-align: center;
}
.a5e-preview .a5e-lead {
    margin-left: auto;
    margin-right: auto;
}
.a5e-preview-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* --------------------------- SOCIALS --------------------------- */
.a5e-socials {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 1.5rem;
}
.a5e-social {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: rgba(242, 240, 234, 0.85);
    text-decoration: none;
    padding: 0.85rem 1.6rem;
    background-color: #12151A;
    border: 1px solid rgba(197, 138, 58, 0.18);
    -webkit-transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.a5e-social i {
    color: #C58A3A;
}
.a5e-social:hover {
    color: #C58A3A;
    border-color: rgba(197, 138, 58, 0.45);
    background-color: #161A20;
    text-decoration: none;
}

/* --------------------------- SUPPORT / CONTRIBUTIONS (Stripe-ready, pas encore activé) ---------------------------
   Boutons des paliers : .a5e-tier-btn + data-stripe-tier / data-stripe-mode.
   Le JS (js/a5e.js, bloc A5E SUPPORT) gère le futur appel vers l'endpoint serveur. */
.a5e-support .a5e-support-inner {
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
}
.a5e-support-anchor {
    scroll-margin-top: 92px;
}
.a5e-support .a5e-support-inner > .a5e-lead {
    margin-left: auto;
    margin-right: auto;
}
/* Grille des paliers : 3 colonnes égales sur desktop, empilées sur mobile */
.a5e-tiers {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    margin-top: 2.8rem;
    text-align: left;
}
.a5e-tier {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
    background-color: #12151A;
    border: 1px solid rgba(197, 138, 58, 0.16);
    padding: 2.1rem 1.8rem 1.8rem;
    transition: border-color 0.22s ease, background-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.a5e-tier:hover {
    border-color: rgba(197, 138, 58, 0.42);
    background-color: #161A20;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
/* Palier mis en avant (Pionnier / Pioneer) */
.a5e-tier--featured {
    background-color: #161A20;
    border-color: rgba(197, 138, 58, 0.45);
    box-shadow: 0 0 34px rgba(197, 138, 58, 0.10);
}
.a5e-tier--featured:hover {
    border-color: rgba(197, 138, 58, 0.70);
    background-color: #1A1F26;
}
/* Palier premium (Gardien / Guardian) — légèrement plus distingué, sans en faire trop */
.a5e-tier--premium {
    background-image: linear-gradient(to bottom, rgba(197, 138, 58, 0.08) 0%, rgba(197, 138, 58, 0) 38%);
    border-color: rgba(197, 138, 58, 0.30);
}
.a5e-tier--premium:hover {
    background-color: #161A20;
    border-color: rgba(197, 138, 58, 0.55);
}
.a5e-tier--premium .a5e-tier-name {
    color: #DDBB77;
}
.a5e-tier-kicker {
    font-family: "Cormorant SC", serif;
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #C58A3A;
    margin: 0 0 0.55rem 0;
}
.a5e-tier-name {
    font-family: "Cormorant SC", serif;
    font-weight: 600;
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.25;
    color: #F2F0EA;
    margin: 0 0 0.35rem 0;
}
.a5e-tier-type {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(242, 240, 234, 0.55);
    margin: 0 0 1.15rem 0;
}
.a5e-tier-price,
.a5e-monthly-price {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    line-height: 1;
    margin: 0 0 1.15rem 0;
}
.a5e-price-amount {
    font-family: "Cormorant SC", serif;
    font-weight: 600;
    font-size: 2.7rem;
    color: #C58A3A;
}
.a5e-price-currency {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(242, 240, 234, 0.60);
}
.a5e-tier-desc {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(242, 240, 234, 0.80);
    margin: 0 0 1.4rem 0;
}
.a5e-tier-benefits {
    list-style: none;
    margin: 0 0 1.75rem 0;
    padding: 1.15rem 0 0;
    border-top: 1px solid rgba(197, 138, 58, 0.16);
}
.a5e-tier-benefits li {
    position: relative;
    padding: 0.3rem 0 0.3rem 1.15rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(242, 240, 234, 0.82);
}
.a5e-tier-benefits li::before {
    content: "\25C6"; /* petit losange bronze */
    position: absolute;
    left: 0;
    top: 0.5em;
    font-size: 0.5em;
    line-height: 1;
    color: #C58A3A;
}
/* Badges décoratifs des cartes de soutien — assets images/*.png (transparence native,
   glow déjà intégré aux PNG : uniquement un léger drop-shadow chaud, pas de fond,
   pas de bordure, ratio d'origine préservé) */
.a5e-tier-badge {
    display: block;
    width: 100%;
    height: auto;
    max-width: 120px;
    margin: 0 auto 1.2rem;
    filter: drop-shadow(0 4px 12px rgba(197, 138, 58, 0.20));
}
/* Pionnier : badge bien séparé du label « Recommandé » */
.a5e-tier--featured .a5e-tier-badge {
    margin-bottom: 0.9rem;
}
/* Boutons des paliers : pleine largeur, collés au bas de la carte (hauteurs alignées) */
.a5e-tier-btn {
    width: 100%;
    margin-top: auto;
    cursor: pointer;
}
/* Badge mensuel — volontairement plus petit que les badges des paliers */
.a5e-monthly-badge {
    display: block;
    width: 100%;
    height: auto;
    max-width: 80px;
    margin: 0 auto 1.1rem;
    filter: drop-shadow(0 3px 10px rgba(197, 138, 58, 0.18));
}
/* Soutien mensuel — bloc plus discret, sous les paliers */
.a5e-monthly {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2.6rem;
    padding: 2.3rem 1.8rem;
    background-color: rgba(18, 21, 26, 0.55);
    border: 1px solid rgba(197, 138, 58, 0.14);
}
.a5e-monthly-title {
    font-family: "Cormorant SC", serif;
    font-weight: 600;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #F2F0EA;
    margin: 0 0 1.1rem 0;
}
.a5e-monthly-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(242, 240, 234, 0.80);
    max-width: 44rem;
    margin: 0 0 0.85rem 0;
}
.a5e-monthly-price {
    margin-top: 1.3rem;
}
.a5e-monthly .a5e-price-amount {
    font-size: 2.1rem;
}
.a5e-monthly .a5e-tier-btn {
    width: 100%;
    max-width: 320px;
    margin-top: 1.5rem;
}
/* Avantages du soutien mensuel — même style de liste que les paliers :
   bloc centré dans le panneau, texte de la liste aligné à gauche
   (le container de la section impose text-align: center) */
.a5e-monthly .a5e-tier-benefits {
    align-self: center;
    width: 100%;
    max-width: 32rem;
    margin-bottom: 0;
    text-align: left;
}
/* Note discrète sous les paliers */
.a5e-support-note {
    margin: 2.3rem auto 0;
    max-width: 46rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.78rem;
    line-height: 1.6;
    color: rgba(242, 240, 234, 0.45);
}
/* Responsive — soutien */
@media (max-width : 991px) {
    .a5e-tiers {
        flex-direction: column;
        margin-top: 2.2rem;
    }
    .a5e-tier {
        flex: 0 0 auto;
        width: 100%;
        max-width: 640px;
        margin: 0 auto;
    }
}
@media (max-width : 767px) {
    .a5e-tier { padding: 1.8rem 1.4rem 1.5rem; }
    .a5e-monthly { padding: 1.9rem 1.3rem; }
    .a5e-tier-btn { padding-left: 1rem; padding-right: 1rem; }
    /* Badges plus compacts sur mobile */
    .a5e-tier-badge { max-width: 96px; margin-bottom: 1rem; }
    .a5e-tier--featured .a5e-tier-badge { margin-bottom: 0.7rem; }
    .a5e-monthly-badge { max-width: 64px; margin-bottom: 0.9rem; }
}

/* --------------------------- RESPONSIVE --------------------------- */
@media (max-width : 1199px) {
    .a5e-gallery-prev { left: -20px; }
    .a5e-gallery-next { right: -20px; }
}
@media (max-width : 991px) {
    .a5e-section { padding: 80px 0; }
    .a5e-hero-inner { padding-top: 8rem; }
    .a5e-hero-content { max-width: 100%; }
    .a5e-gallery-prev { left: 10px; }
    .a5e-gallery-next { right: 10px; }
    .a5e-heading h1 { font-size: 1.6rem; }
}
@media (max-width : 767px) {
    .a5e-section { padding: 60px 0; }
    .a5e-hero-support-btn { max-width: 100%; }
    .a5e-hero { min-height: 92vh; }
    .a5e-hero::before { background-position: center 22%; }
    .a5e-hero-inner { padding-top: 6.5rem; padding-bottom: 2.5rem; }
    .a5e-hero-tagline { font-size: 1rem; }
    .a5e-gallery-stage { padding-bottom: 78%; }
    .a5e-gallery-nav { width: 40px; height: 40px; }
    .a5e-social { width: 100%; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; }
    .a5e-heading h1 { font-size: 1.35rem; letter-spacing: 0.05em; }
    /* Card stack — compact offsets so the pile stays framed on mobile */
    .a5e-gallery-card.is-back-3 { -webkit-transform: translateX(22px) translateY(-12px) rotate(1.5deg) scale(0.93); transform: translateX(22px) translateY(-12px) rotate(1.5deg) scale(0.93); }
    .a5e-gallery-card.is-back-2 { -webkit-transform: translateX(14px) translateY(-8px) rotate(-1deg) scale(0.95); transform: translateX(14px) translateY(-8px) rotate(-1deg) scale(0.95); }
    .a5e-gallery-card.is-back-1 { -webkit-transform: translateX(7px) translateY(-4px) rotate(0.8deg) scale(0.975); transform: translateX(7px) translateY(-4px) rotate(0.8deg) scale(0.975); }
    .a5e-gallery-card { -webkit-transform: translateX(-90px) rotate(-5deg) scale(0.95); transform: translateX(-90px) rotate(-5deg) scale(0.95); }
    .a5e-gallery-card.is-leaving { -webkit-transform: translateX(-90px) rotate(-5deg) scale(0.95); transform: translateX(-90px) rotate(-5deg) scale(0.95); }
    .a5e-companion-visual { min-height: 0; padding-bottom: 1.5rem; }
    .a5e-companion-orb { width: 200px; height: 200px; font-size: 2.4rem; }
    .a5e-companion-text { text-align: center; }
    .a5e-companion-text .a5e-lead { margin-left: auto; margin-right: auto; }
}

/* --------------------------- MOBILE NAV (plein écran, opaque) ---------------------------
   A5E only : le menu mobile ouvert devient un vrai panneau qui couvre le hero.
   (a5e.css est chargé après style.css -> ces règles ont priorité sur le style global) */
@media (max-width : 991px) {
    /* Header : garder logo + X visibles et au-dessus du panneau */
    #main-header .navbar {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-flow: row nowrap;
        flex-flow: row nowrap;
        -ms-flex-preferred-size: auto;
        flex-basis: auto;
        z-index: 1100;
    }
    #main-header .navbar .container {
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }
    #main-header #logo {
        z-index: 1101;
    }
    #main-header #hamburger {
        margin-left: auto;
        z-index: 1101;
        -webkit-tap-highlight-color: transparent;
    }
    #main-header #hamburger .icon-bar {
        background-color: #F2F0EA;
    }

    /* Panneau de navigation ouvert : plein écran, très sombre, quasi opaque */
    #main-header .navbar-collapse.show {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        min-height: 100vh;
        min-height: 100dvh;
        width: 100%;
        z-index: 1090;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background-color: rgba(10, 12, 14, 0.97);
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -ms-flex-pack: start;
        -webkit-box-pack: start;
        justify-content: flex-start;
        padding: 5.5rem 1.6rem 2.2rem;
    }
    /* Le hero derrière ne doit plus être visible */
    #main-header .navbar-collapse.show .navbar-nav {
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        padding-top: 0;
    }
    #main-header .navbar-collapse.show .nav-item {
        width: 100%;
        text-align: center;
        margin: 0.35rem 0;
    }
    #main-header .navbar-collapse.show .nav-link {
        display: block;
        width: 100%;
        padding: 0.9rem 1rem;
        font-size: 1.2rem;
        font-weight: 500;
        letter-spacing: 0.03em;
        color: #F2F0EA;
        -webkit-transition: color 0.2s ease, background-color 0.2s ease;
        transition: color 0.2s ease, background-color 0.2s ease;
    }
    #main-header .navbar-collapse.show .nav-link:hover,
    #main-header .navbar-collapse.show .nav-link:focus,
    #main-header .navbar-collapse.show .nav-link:active {
        color: #E48632;
        background-color: transparent;
    }
    #main-header .navbar-collapse.show .nav-link::first-letter {
        color: inherit;
    }
    /* Compte (déconnecté) : l'icône + label restent un seul élément flex,
       centré comme les autres liens, avec un gap stable (~8px) */
    #main-header .navbar-collapse.show .a5e-account-nav .nav-link {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        gap: 0.5rem;
    }
    #main-header .navbar-collapse.show .a5e-account-nav .fa {
        font-size: 1.05rem;
    }
    /* Compte (connecté) : rangée en colonne — bouton centré,
       sous-menu intégré SOUS le bouton dans le flux vertical (plus de dropdown flottant) */
    #main-header .navbar-collapse.show .a5e-account-menu {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        padding: 0.15rem 0;
    }
    /* Sous-menu compte mobile : bloc du flux, 85 % du menu, centré */
    #main-header .navbar-collapse.show .a5e-account-dropdown {
        position: static;
        top: auto;
        right: auto;
        z-index: auto;
        width: 85%;
        max-width: 320px;
        min-width: 0;
        margin: 0.75rem auto 0.25rem;
        background: #12161c;
        border: 1px solid rgba(197, 138, 58, 0.32);
        border-radius: 4px;
        box-shadow: none;
        padding: 0.4rem 0;
    }
    #main-header .navbar-collapse.show .a5e-account-name {
        padding: 0.65rem 1rem 0.7rem;
    }
    #main-header .navbar-collapse.show .a5e-account-dropdown a,
    #main-header .navbar-collapse.show .a5e-account-dropdown button {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
        border-bottom: 1px solid rgba(197, 138, 58, 0.1);
    }
    #main-header .navbar-collapse.show .a5e-account-dropdown form {
        margin: 0.45rem 0 0;
    }
    #main-header .navbar-collapse.show .a5e-account-dropdown form button {
        color: rgba(242, 240, 234, 0.62);
        border-bottom: 0;
    }
    #main-header .navbar-collapse.show .a5e-account-dropdown form button:hover,
    #main-header .navbar-collapse.show .a5e-account-dropdown form button:focus,
    #main-header .navbar-collapse.show .a5e-account-dropdown form button:active {
        color: #C58A3A;
        background-color: rgba(197, 138, 58, 0.08);
    }
    /* FR | EN : repoussé en bas, bien séparé des autres liens */
    #main-header .navbar-collapse.show .lang-switcher {
        margin-top: auto;
        padding-top: 1.8rem;
        border-top: 1px solid rgba(228, 134, 50, 0.22);
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -ms-flex-align: center;
        -webkit-box-align: center;
        align-items: center;
        font-size: 1rem;
    }
    #main-header .navbar-collapse.show .lang-switcher .lang-link {
        display: -webkit-inline-box;
        display: -ms-inline-flexbox;
        display: inline-flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        width: auto;
        -webkit-box-flex: 0;
        -ms-flex: none;
        flex: none;
        padding: 0.5rem 0.9rem;
        margin-top: 0;
    }
    #main-header .navbar-collapse.show .lang-switcher .current-lang {
        color: #E48632;
    }
    #main-header .navbar-collapse.show .lang-sep {
        color: rgba(255, 255, 255, 0.35);
        margin: 0 0.35rem;
    }
}
.a5e-payment-open { overflow: hidden; }
.a5e-payment-modal {
    position: fixed;
    z-index: 12000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.a5e-payment-modal[hidden] { display: none; }
.a5e-payment-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(3, 5, 7, 0.86);
    backdrop-filter: blur(7px);
}
.a5e-payment-dialog {
    position: relative;
    width: min(100%, 470px);
    padding: 2.6rem 2.4rem 2.2rem;
    color: #f2f0ea;
    text-align: center;
    background: linear-gradient(145deg, rgba(21, 24, 28, 0.99), rgba(8, 10, 13, 0.99));
    border: 1px solid rgba(197, 138, 58, 0.58);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.7), inset 0 0 45px rgba(197, 138, 58, 0.04);
}
.a5e-payment-dialog::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18%;
    right: 18%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e09a3c, transparent);
}
.a5e-payment-close {
    position: absolute;
    top: 0.65rem;
    right: 0.85rem;
    color: rgba(242, 240, 234, 0.62);
    font-size: 1.8rem;
    line-height: 1;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.a5e-payment-close:hover { color: #e09a3c; }
.a5e-payment-badge { width: 92px; height: 92px; object-fit: contain; margin-bottom: 0.75rem; }
.a5e-payment-kicker { margin: 0 0 0.45rem; color: #e09a3c; font-size: 0.72rem; letter-spacing: 0.28em; }
.a5e-payment-dialog h2 { margin: 0 0 1rem; font-family: "Cormorant SC", serif; font-size: 2rem; color: #fff; }
.a5e-payment-summary { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; margin-bottom: 1rem; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.a5e-payment-summary strong { color: #e8b467; white-space: nowrap; }
.a5e-payment-status { min-height: 1.5rem; margin-bottom: 0.65rem; color: rgba(242,240,234,.72); font-size: .85rem; }
.a5e-payment-status.is-success { color: #79c99e; }
.a5e-payment-status.is-error { color: #ef8c83; }
.a5e-paypal-buttons { min-height: 46px; }
.a5e-paypal-buttons paypal-button { display: block; width: 100%; }
.a5e-paypal-subscribe {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 5px;
    background: #ffc439;
    color: #003087;
    cursor: pointer;
    transition: filter 160ms ease, transform 160ms ease;
}
.a5e-paypal-subscribe:hover { filter: brightness(1.04); transform: translateY(-1px); }
.a5e-paypal-subscribe:focus-visible { outline: 2px solid #f0a42b; outline-offset: 3px; }
.a5e-paypal-subscribe:disabled { cursor: wait; filter: grayscale(0.35); opacity: 0.7; }
.a5e-paypal-wordmark { font-size: 1.55rem; font-weight: 800; font-style: italic; letter-spacing: -0.08em; }
.a5e-payment-security { margin: 1rem 0 0; color: rgba(242,240,234,.48); font-size: .72rem; }
.a5e-payment-security i { margin-right: .35rem; color: #c58a3a; }
@media (max-width: 520px) {
    .a5e-payment-dialog { padding: 2.2rem 1.25rem 1.6rem; }
    .a5e-payment-summary { font-size: .88rem; }
}
.a5e-admin-server-menu summary {
  display: block; padding: 0.65rem 0.9rem; color: rgba(242, 240, 234, 0.76);
  font-size: 0.82rem; cursor: pointer; list-style: none;
}
.a5e-admin-server-menu, .a5e-admin-download-menu { position: relative; }
.a5e-admin-server-menu summary::-webkit-details-marker { display: none; }
.a5e-admin-server-menu summary::after { content: "\f105"; float: right; font-family: FontAwesome; }
.a5e-admin-server-menu[open] > summary::after, .a5e-admin-download-menu[open] > summary::after { content: "\f107"; }
.a5e-admin-server-menu summary:hover { color: #C58A3A; background: rgba(197, 138, 58, 0.08); }
.a5e-admin-server-menu > .a5e-admin-server-flyout, .a5e-admin-download-menu > form {
  position: absolute; top: 0; left: calc(100% + 1px); z-index: 1002;
  min-width: 285px; padding: .35rem 0; background: rgba(13, 15, 18, .99);
  border: 1px solid rgba(197, 138, 58, .32); box-shadow: 10px 12px 28px rgba(0, 0, 0, .48);
}
.a5e-admin-server-flyout > form { margin: 0; }
.a5e-admin-server-flyout > form button, .a5e-admin-download-menu > form button { white-space: normal; line-height: 1.45; }
.a5e-admin-server-menu .server-online { color: #35c66b; }
.a5e-admin-server-menu .server-offline { color: #e05252; }
.a5e-admin-server-menu .server-maintenance { color: #d8a43b; }
.a5e-admin-menu-separator { height: 1px; margin: .35rem .9rem; background: rgba(197, 138, 58, .24); }
.a5e-admin-download-menu summary { padding-left: .9rem; color: #C58A3A; }
.a5e-admin-download-menu .download-enabled { color: #35c66b; }
.a5e-admin-download-menu .download-disabled { color: #e05252; }
