/* ============================================================
   EASTERN ROLEPLAY — pages-design.css
   Design amélioré pour toutes les pages du site
   ============================================================ */

/* Fond global (même principe que le profil : image fixe, pas de bandes au dézoom) */
html {
    height: 100%;
}
body {
    min-height: 100%;
    background-color: var(--er-dark);
    background-image: url(/img/bg.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
}

/* ---- Variables ---- */
:root {
    --er-orange:     #ea7e33;
    --er-orange-dark:#c45d15;
    --er-red:        #c0392b;
    --er-dark:       #0009;
    --er-dark2:      #0009;
    --er-dark3:      #0009;
    --er-border:     rgba(234,126,51,0.25);
    --er-text-muted: rgba(255,255,255,0.55);
    --er-radius:     6px;
    --er-shadow:     0 4px 24px rgba(0,0,0,0.45);
    --er-gold:       #f5c518;
    --er-silver:     #c0c0c0;
    --er-bronze:     #cd7f32;
}

/* ============================================================
   PAGE HEADER (jumbotron) — amélioré pour toutes les pages
   ============================================================ */

.jumbotron.jumbotron-fluid {
    background: var(--er-dark2) !important;
    border-bottom: 3px solid var(--er-orange);
    padding: 3rem 0 2rem;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.jumbotron.jumbotron-fluid::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 120%, rgba(234,126,51,0.18) 0%, transparent 70%),
        linear-gradient(135deg, rgba(192,57,43,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.jumbotron.jumbotron-fluid::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,0.025) 39px, rgba(255,255,255,0.025) 40px),
        repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,0.025) 39px, rgba(255,255,255,0.025) 40px);
    pointer-events: none;
}

.jumbotron.jumbotron-fluid .animated-font {
    background: linear-gradient(-45deg,
        rgba(240,162,63,0.22),
        rgba(235,137,54,0.22),
        rgba(230,106,45,0.22),
        rgba(192,57,43,0.22)) !important;
    background-size: 400% 400% !important;
}

.jumbotron.jumbotron-fluid h1,
.jumbotron.jumbotron-fluid h1.display-3,
.jumbotron.jumbotron-fluid h1.display-4 {
    color: #fff !important;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.6);
    position: relative;
    z-index: 1;
}

.jumbotron.jumbotron-fluid h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--er-orange), var(--er-red));
    border-radius: 2px;
    margin-top: 12px;
}

.jumbotron.jumbotron-fluid .breadcrumb {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--er-radius);
    padding: 0.45rem 1rem;
    position: relative;
    z-index: 1;
    display: inline-flex;
}

.jumbotron.jumbotron-fluid .breadcrumb-item a {
    color: var(--er-orange);
}

.jumbotron.jumbotron-fluid .breadcrumb-item.active,
.jumbotron.jumbotron-fluid .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.6);
}

/* ============================================================
   SECTION FEATURES — fond & espacement
   ============================================================ */

/* Padding commun ; fond opaque sauf #articles (accueil) où l’image hero/body doit rester visible */
section#features.features,
section.features {
    padding: 2.5rem 0 3rem;
    min-height: 400px;
}

section#features.features,
section.features:not(#articles) {
    background: var(--er-dark) !important;
}

section#features.features .container,
section.features .container {
    color: rgba(255,255,255,0.88);
}

section#features.features p,
section.features p {
    color: rgba(255,255,255,0.75);
    line-height: 1.75;
}

section#features.features h2,
section#features.features h3,
section#features.features h4,
section#features.features h5 {
    color: #fff;
}

section#features.features hr {
    border-color: var(--er-border);
}

/* ============================================================
   PAGE VOTES — design spécifique
   ============================================================ */

/* Bloc objectifs */
.er-objectives-card {
    background: var(--er-dark3);
    border: 1px solid var(--er-border);
    border-radius: var(--er-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--er-shadow);
}

.er-objectives-card h4.alert-heading {
    color: var(--er-orange) !important;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.er-objectives-card p {
    color: var(--er-text-muted) !important;
    margin-bottom: 0.75rem;
}

.er-vote-count-badge {
    background: linear-gradient(135deg, var(--er-orange), var(--er-orange-dark));
    border: none;
    border-radius: var(--er-radius);
    color: #fff !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    margin-bottom: 1rem;
    display: inline-block;
}

/* Progress bars dans les objectifs */
.er-objectives-card .progress {
    background: rgba(255,255,255,0.08);
    border-radius: 50px;
    height: 10px;
    margin-top: 6px;
    overflow: hidden;
}

.er-objectives-card .progress-bar {
    background: linear-gradient(90deg, var(--er-orange), var(--er-red));
    border-radius: 50px;
    transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* Objectif atteint */
.er-objectives-card .alert-warning {
    background: rgba(245,197,24,0.12);
    border-color: rgba(245,197,24,0.3);
    color: #f5c518;
    border-radius: var(--er-radius);
}

/* Boutons classement & récompenses */
.er-btn-rank,
.er-btn-rewards {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--er-radius);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.er-btn-rank {
    background: linear-gradient(135deg, #27ae60, #1e8449);
    color: #fff;
}

.er-btn-rank:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39,174,96,0.35);
    color: #fff;
}

.er-btn-rewards {
    background: linear-gradient(135deg, var(--er-dark3), #333a46);
    color: rgba(255,255,255,0.85);
    border: 1px solid var(--er-border);
}

.er-btn-rewards:hover {
    background: linear-gradient(135deg, var(--er-orange), var(--er-orange-dark));
    color: #fff;
    border-color: var(--er-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234,126,51,0.3);
}

/* Table classement voteurs */
#voteurs {
    background: var(--er-dark2);
    border-radius: var(--er-radius);
    overflow: hidden;
    box-shadow: var(--er-shadow);
}

#voteurs thead th {
    background: linear-gradient(135deg, var(--er-orange), var(--er-orange-dark));
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border: none;
    padding: 0.85rem 1rem;
}

#voteurs tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
}

#voteurs tbody tr:hover {
    background: rgba(234,126,51,0.08) !important;
}

#voteurs tbody td {
    color: rgba(255,255,255,0.85);
    border-top: none;
    padding: 0.7rem 1rem;
    vertical-align: middle;
}

#voteurs tbody tr:first-child td:first-child .badge {
    background: var(--er-gold) !important;
    color: #000 !important;
}

#voteurs tbody tr:nth-child(2) td:first-child .badge {
    background: var(--er-silver) !important;
    color: #000 !important;
}

#voteurs tbody tr:nth-child(3) td:first-child .badge {
    background: var(--er-bronze) !important;
    color: #fff !important;
}

/* Table récompenses */
#recompense_liste {
    background: var(--er-dark2);
    border-radius: var(--er-radius);
    overflow: hidden;
    box-shadow: var(--er-shadow);
}

#recompense_liste thead th {
    background: linear-gradient(135deg, var(--er-dark3), #333a46);
    color: var(--er-orange) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border: none;
    border-bottom: 2px solid var(--er-orange);
    padding: 0.85rem 1rem;
}

#recompense_liste tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
}

#recompense_liste tbody tr:hover {
    background: rgba(234,126,51,0.08) !important;
}

#recompense_liste tbody td {
    color: rgba(255,255,255,0.85);
    border-top: none;
    padding: 0.7rem 1rem;
}

/* Vote box (1ère étape) */
.vote-box {
    background: var(--er-dark3) !important;
    border: 1px solid var(--er-border) !important;
    border-radius: var(--er-radius) !important;
    padding: 1.5rem !important;
    margin-top: 1.2rem !important;
}

.vote-box h3 {
    color: var(--er-orange) !important;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vote-box h3::before {
    content: '▶';
    font-size: 0.7em;
    opacity: 0.7;
}

/* Boutons de vote (liens sites) */
.liste_votes {
    background: linear-gradient(135deg, var(--er-dark3), #2e3440) !important;
    border: 1px solid var(--er-border) !important;
    color: rgba(255,255,255,0.9) !important;
    border-radius: var(--er-radius) !important;
    text-align: left !important;
    padding: 0.85rem 1.2rem !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 1rem !important;
}

.liste_votes:hover {
    background: linear-gradient(135deg, var(--er-orange), var(--er-orange-dark)) !important;
    border-color: var(--er-orange) !important;
    color: #fff !important;
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(234,126,51,0.35);
}

.liste_votes .badge-danger {
    background: rgba(192,57,43,0.85) !important;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============================================================
   BOUTIQUE — design produits
   ============================================================ */

.card {
    background: var(--er-dark3) !important;
    border: 1px solid var(--er-border) !important;
    border-radius: var(--er-radius) !important;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35);
    width: 100% !important;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 28px rgba(234,126,51,0.2);
    border-color: var(--er-orange) !important;
}

.card .card-text,
.card h5.card-text {
    color: #fff !important;
    font-weight: 600;
}

.card .card-body {
    background: transparent !important;
    padding: 1rem;
    position: relative !important;
    bottom: auto !important;
}

.card img {
    border-bottom: 2px solid var(--er-border);
    object-fit: cover;
    max-height: 200px;
    width: 100%;
}

/* Nav pills boutique (catégories) */
.nav-pills {
    background: var(--er-dark2) !important;
    border: 1px solid var(--er-border) !important;
    border-radius: var(--er-radius) !important;
    overflow: hidden;
    padding: 0 !important;
}

.nav-pills .nav-link {
    color: rgba(255,255,255,0.7) !important;
    border-radius: 0 !important;
    padding: 0.75rem 1.2rem;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-weight: 600;
}

.nav-pills .nav-link:hover {
    background: rgba(234,126,51,0.15) !important;
    color: var(--er-orange) !important;
}

.nav-pills .nav-link.active,
.show > .nav-pills .nav-link {
    background: linear-gradient(135deg, var(--er-orange), var(--er-orange-dark)) !important;
    color: #fff !important;
    border-radius: 0 !important;
}

/* ============================================================
   RÈGLEMENT — accordéon
   ============================================================ */

#accordion .card {
    margin-bottom: 0.5rem;
    border-radius: var(--er-radius) !important;
}

#accordion .card-header {
    background: var(--er-dark3) !important;
    border-bottom: 1px solid var(--er-border) !important;
    padding: 0;
}

#accordion .card-header .btn-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 700;
    width: 100%;
    text-align: left;
    padding: 1rem 1.2rem;
    text-decoration: none;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

#accordion .card-header .btn-link:not(.collapsed) {
    color: var(--er-orange) !important;
}

#accordion .card-header .btn-link:not(.collapsed)::before {
    content: '▼';
    font-size: 0.65em;
}

#accordion .card-header .btn-link.collapsed::before {
    content: '▶';
    font-size: 0.65em;
    opacity: 0.5;
}

#accordion .card-body {
    background: var(--er-dark2) !important;
    color: rgba(255,255,255,0.8) !important;
    border-top: 1px solid var(--er-border) !important;
    padding: 1.2rem 1.5rem;
    line-height: 1.8;
}

/* ============================================================
   PRÉSENTATION — images et texte
   ============================================================ */

.features .img-fluid {
    border-radius: var(--er-radius);
    border: 1px solid var(--er-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.features .embed-responsive {
    border-radius: var(--er-radius);
    overflow: hidden;
    border: 1px solid var(--er-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.features .text-primary { color: var(--er-orange) !important; }
.features .text-danger  { color: #e74c3c !important; }

/* ============================================================
   PAGE ARTICLES (news) — corps de l'article
   ============================================================ */

.article-body {
    background: var(--er-dark3);
    border: 1px solid var(--er-border);
    border-radius: var(--er-radius);
    padding: 2rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.85;
    box-shadow: var(--er-shadow);
    margin-top: 1rem;
}

.article-body h1, .article-body h2, .article-body h3,
.article-body h4, .article-body h5 {
    color: #fff;
    margin-top: 1.5rem;
}

.article-body p { color: rgba(255,255,255,0.8); }
.article-body a { color: var(--er-orange); }
.article-body a:hover { color: #fff; }
.article-body img { border-radius: var(--er-radius); max-width: 100%; }

/* Info auteur */
.features p > strong:first-child {
    color: var(--er-orange);
}

/* ============================================================
   PAGE INDEX — cartes articles (style Helix)
   ============================================================ */

.news-cards-section {
    background: var(--er-dark);
    color: var(--er-dark);
    border-style: solid;
    border-color: rgba(0,0,0,0.01);
    padding: 4rem 0 5rem;
}

#articles {
    box-sizing: content-box;
}

.news-cards-header {
    margin-bottom: 2.5rem;
}

.news-cards-title {
    color: #fff;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
}

.news-cards-title i {
    color: var(--er-orange);
}

/* Grille : 2 colonnes, responsive */
.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

/* Carte */
.news-card {
    display: flex;
    flex-direction: column;
    background: #0d0d0d;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    border-color: rgba(234, 126, 51, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    text-decoration: none !important;
    color: inherit;
}

/* Zone image */
.news-card__image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.85);
}

.news-card:hover .news-card__image img {
    transform: scale(1.06);
    filter: brightness(0.95);
}

.news-card__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}

/* Corps texte */
.news-card__body {
    padding: 1.6rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}

.news-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.25rem;
    flex-shrink: 0;
}

.news-card__title {
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.3;
}

.news-card__excerpt {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

.news-card__author {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.news-card__author i {
    color: var(--er-orange);
    font-size: 0.7rem;
}

/* Responsive */
@media (max-width: 767px) {
    .news-cards-grid {
        grid-template-columns: 1fr;
    }

    .news-card__image {
        height: 200px;
    }
}

@media (max-width: 575px) {
    .news-cards-section {
        padding: 2.5rem 0 3rem;
    }

    .news-card__image {
        height: 170px;
    }

    .news-card__body {
        padding: 1.25rem;
    }
}

/* ============================================================
   SECTION STATS — extra-features
   ============================================================ */

/* Ne pas utiliser le raccourci background ici : il effacerait background-image (sync hero / custom_orange) */
section#extra-features.extra-features {
    background-color: transparent !important;
    border-top: 3px solid var(--er-orange);
}

section#extra-features .item {
    background: var(--er-dark3);
    border: 1px solid var(--er-border);
    border-radius: var(--er-radius);
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
    transition: transform 0.25s, box-shadow 0.25s;
}

section#extra-features .item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(234,126,51,0.2);
    border-color: var(--er-orange);
}

section#extra-features .item .icon i {
    color: var(--er-orange) !important;
    font-size: 2rem;
}

section#extra-features h2,
section#extra-features header h2 {
    color: #fff !important;
    font-weight: 800;
}

section#extra-features .lead {
    color: rgba(255,255,255,0.7) !important;
}

/* ============================================================
   BOUTONS GLOBAUX — harmonisation
   ============================================================ */

.btn-primary,
.btn-gradient {
    background: linear-gradient(135deg, var(--er-orange), var(--er-orange-dark)) !important;
    border: none !important;
    border-radius: var(--er-radius) !important;
    color: #fff !important;
    font-weight: 700;
    transition: all 0.25s ease !important;
}

.btn-primary:hover,
.btn-gradient:hover {
    background: linear-gradient(135deg, #f59240, var(--er-orange)) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234,126,51,0.4) !important;
    color: #fff !important;
}

.btn-success {
    background: linear-gradient(135deg, #27ae60, #1e8449) !important;
    border: none !important;
    border-radius: var(--er-radius) !important;
    font-weight: 700;
    transition: all 0.25s ease !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39,174,96,0.35) !important;
}

.btn-secondary {
    background: var(--er-dark3) !important;
    border: 1px solid var(--er-border) !important;
    border-radius: var(--er-radius) !important;
    color: rgba(255,255,255,0.85) !important;
    font-weight: 600;
    transition: all 0.25s ease !important;
}

.btn-secondary:hover {
    background: var(--er-orange) !important;
    border-color: var(--er-orange) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* ============================================================
   ALERTES — adapt au fond sombre
   ============================================================ */

section#features .alert {
    border-radius: var(--er-radius);
}

section#features .alert-danger {
    background: rgba(192,57,43,0.15);
    border-color: rgba(192,57,43,0.4);
    color: #e87272;
}

section#features .alert-success {
    background: rgba(39,174,96,0.12);
    border-color: rgba(39,174,96,0.35);
    color: #6fdc9b;
}

section#features .alert-warning {
    background: rgba(245,197,24,0.1);
    border-color: rgba(245,197,24,0.3);
    color: #f5d76e;
}

section#features .alert-light {
    background: var(--er-dark3) !important;
    border-color: var(--er-border) !important;
    color: rgba(255,255,255,0.85) !important;
}

/* ============================================================
   MODALES — fond sombre
   ============================================================ */

.modal-content {
    background: var(--er-dark2) !important;
    border: 1px solid var(--er-border) !important;
    border-radius: var(--er-radius) !important;
    color: rgba(255,255,255,0.88) !important;
}

.modal-header {
    background: var(--er-dark3) !important;
    border-bottom: 1px solid var(--er-border) !important;
}

.modal-header .modal-title {
    color: #fff !important;
    font-weight: 700;
}

.modal-header .close {
    color: rgba(255,255,255,0.7) !important;
    text-shadow: none;
    opacity: 1;
}

.modal-footer {
    background: var(--er-dark3) !important;
    border-top: 1px solid var(--er-border) !important;
}

/* ============================================================
   FOOTER — adaptation
   ============================================================ */

.main-footer {
    border-top: 3px solid var(--er-orange) !important;
}

/* ============================================================
   REJOINDRE — icônes OS
   ============================================================ */

#features .row.text-center a img {
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
    transition: transform 0.3s ease, filter 0.3s ease;
}

#features .row.text-center a img:hover {
    transform: scale(1.08) translateY(-4px);
    filter: drop-shadow(0 8px 24px rgba(234,126,51,0.4));
}

/* ============================================================
   SCROLLTOP
   ============================================================ */

#scrollTop {
    background: linear-gradient(135deg, var(--er-orange), var(--er-orange-dark)) !important;
    border-radius: var(--er-radius) !important;
}

/* ============================================================
   RESPONSIVE — ajustements mobile
   ============================================================ */

@media (max-width: 768px) {
    .jumbotron.jumbotron-fluid {
        padding: 2rem 0 1.5rem;
    }

    .jumbotron.jumbotron-fluid h1.display-3 {
        font-size: 2rem !important;
    }

    section#features.features {
        padding: 1.5rem 0 2rem;
    }

    .er-objectives-card {
        padding: 1rem;
    }

    #voteurs thead th,
    #recompense_liste thead th {
        font-size: 0.7rem;
        padding: 0.6rem 0.5rem;
    }
}

/* ============================================================
   ACCUEIL — Hero style Helix Life (node-app)
   ============================================================ */

body:has(#hero.hero-helix) {
    padding-top: 0 !important;
}

body:has(#hero.hero-helix) .header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

body:has(#hero.hero-helix) nav.navbar::before {
    background: rgba(0, 0, 0, 0.35);
}

#hero.hero-helix {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    min-height: 100vh;
}

#hero.hero-helix::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.35) 45%,
        rgba(0, 0, 0, 0.65) 100%
    );
    z-index: 1;
    pointer-events: none;
}

#hero.hero-helix .hero-inner {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding: 7rem 1.25rem 5rem;
}

#hero.hero-helix .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1.1rem;
    margin-bottom: 1.75rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(234, 126, 51, 0.12);
    border: 1px solid rgba(234, 126, 51, 0.65);
    border-radius: 4px;
    box-shadow: 0 0 24px var(--er-accent-glow);
}

#hero.hero-helix .hero-badge:has(.hero-badge-logo) {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

#hero.hero-helix .hero-badge-logo {
    height: 170px;
    width: auto;
    display: block;
}

#hero.hero-helix .hero-badge i {
    color: var(--er-orange);
}

#hero.hero-helix .hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 9vw, 6.5rem);
    font-weight: 400;
    line-height: 0.92;
    color: #fff;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

#hero.hero-helix .hero-title-line {
    display: block;
}

#hero.hero-helix .hero-text {
    max-width: 640px;
    margin: 0 auto 2.25rem;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88) !important;
}

#hero.hero-helix .hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

#hero.hero-helix .btn-helix {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 2rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#hero.hero-helix .btn-helix-primary {
    background: #fff;
    color: #111;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

#hero.hero-helix .btn-helix-primary:hover {
    background: #f5f5f5;
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

#hero.hero-helix .btn-helix-secondary {
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#hero.hero-helix .btn-helix-secondary:hover {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

#hero.hero-helix .hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.45rem;
}

#hero.hero-helix .hero-scroll-hint span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}

#hero.hero-helix .hero-scroll-hint span:first-child {
    background: #fff;
}

@media (max-width: 767px) {
    #hero.hero-helix .hero-inner {
        padding-top: 6rem;
    }

    #hero.hero-helix .hero-cta {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 320px;
    }

    #hero.hero-helix .btn-helix {
        justify-content: center;
    }
}

/* ============================================================
   GALERIE SCREENSHOTS — défilement infini style Helix
   ============================================================ */

.gallery-section {
    background: rgba(0, 0, 0, 0.6);
    padding: 3.5rem 0 3rem;
    overflow: hidden;
}

.gallery-inner {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* Conteneur masquant le débordement de chaque piste */
.gallery-track-wrap {
    overflow: hidden;
    width: 100%;
}

/* La piste défile : elle contient les cartes × 2 (original + copie) */
.gallery-track {
    display: flex;
    gap: 0.85rem;
    will-change: transform;
    /* La largeur totale est calculée par le contenu */
    width: max-content;
}

/* Défilement vers la gauche */
.gallery-track--left {
    animation: gallery-scroll-left 15s linear infinite;
}

/* Défilement vers la droite */
.gallery-track--right {
    animation: gallery-scroll-right 15s linear infinite;
}


@keyframes gallery-scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes gallery-scroll-right {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Cartes */
.gallery-card {
    position: relative;
    flex-shrink: 0;
    width: 280px;
    height: 200px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--er-dark2);
}

.gallery-card--wide {
    width: 460px;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.55s ease;
    filter: brightness(0.82) saturate(1.05);
    pointer-events: none;
    user-select: none;
}

.gallery-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 40%,
        rgba(0, 0, 0, 0.45) 100%
    );
    border-radius: 14px;
    pointer-events: none;
}

.gallery-track-wrap:hover .gallery-card img {
    filter: brightness(0.95) saturate(1.1);
}

/* Responsive */
@media (max-width: 991px) {
    .gallery-card        { width: 220px; height: 158px; }
    .gallery-card--wide  { width: 360px; }
    .gallery-track       { gap: 0.6rem; }
}

@media (max-width: 575px) {
    .gallery-card        { width: 160px; height: 115px; border-radius: 10px; }
    .gallery-card--wide  { width: 250px; }
    .gallery-track       { gap: 0.45rem; }
    .gallery-inner       { gap: 0.5rem; }
}

/* ============================================================
   PAGES LÉGALES — style Helix (CGU / CGV)
   ============================================================ */

body:has(.legal-page) {
    background-color: #000 !important;
    background-image: none !important;
    padding-top: 0 !important;
}

body:has(.legal-page) nav.navbar::before {
    background: rgba(0, 0, 0, 0.85) !important;
}

body:has(.legal-page) footer.main-footer {
    background-color: #000 !important;
    background-image: none !important;
}

body:has(.legal-page) footer.main-footer::before {
    background: rgba(0, 0, 0, 0.6) !important;
}

.legal-page {
    min-height: calc(100vh - 80px);
    padding: 7rem 1.5rem 5rem;
    color: rgba(255, 255, 255, 0.65);
}

.legal-page-header {
    max-width: 820px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 2rem;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
}

.legal-badge i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.legal-page-title {
    font-family: var(--font-display) !important;
    font-size: clamp(2.75rem, 7vw, 4.5rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 1rem;
}

.legal-page-date {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.42);
    margin: 0 0 2.5rem;
}

.legal-page-divider {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 100%;
}

.legal-page-divider-mark {
    flex-shrink: 0;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1;
    user-select: none;
}

.legal-page-divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
    margin: 0 0.75rem;
}

.legal-page-content {
    max-width: 720px;
    margin: 0 auto;
    font-family: var(--font-body);
    font-size: 0.97rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.62);
}

.legal-page-content h2 {
    font-family: var(--font-display) !important;
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    margin: 3rem 0 1.25rem;
    padding-top: 0.5rem;
}

.legal-page-content h2:first-child {
    margin-top: 0;
}

.legal-page-content p {
    margin-bottom: 1.15rem;
    color: rgba(255, 255, 255, 0.62);
}

.legal-page-content strong {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
}

.legal-page-content a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.25);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.legal-page-content a:hover {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.6);
}

.legal-page-content ul {
    margin: 0 0 1.25rem;
    padding-left: 1.25rem;
    list-style: none;
}

.legal-page-content ul li {
    position: relative;
    margin-bottom: 0.65rem;
    padding-left: 0.5rem;
    color: rgba(255, 255, 255, 0.62);
}

.legal-page-content ul li::before {
    content: '—';
    position: absolute;
    left: -1rem;
    color: rgba(255, 255, 255, 0.28);
}

@media (max-width: 767px) {
    .legal-page {
        padding: 6rem 1.15rem 3.5rem;
    }

    .legal-page-header {
        margin-bottom: 2.5rem;
    }

    .legal-page-content h2 {
        font-size: 1.15rem;
        margin-top: 2.25rem;
    }
}

/* ============================================================
   PAGE PRÉSENTATION — style Helix
   ============================================================ */

body:has(.presentation-page) {
    background-color: #000 !important;
    background-image: none !important;
    padding-top: 0 !important;
}

body:has(.presentation-page) nav.navbar::before {
    background: rgba(0, 0, 0, 0.85) !important;
}

body:has(.presentation-page) footer.main-footer,
body:has(.presentation-page) section#extra-features.extra-features {
    background-color: #000 !important;
    background-image: none !important;
}

body:has(.presentation-page) footer.main-footer::before {
    background: rgba(0, 0, 0, 0.6) !important;
}

.presentation-page {
    color: rgba(255, 255, 255, 0.65);
}

.pres-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero */
.pres-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 55vh;
    padding: 7rem 1.5rem 4rem;
    overflow: hidden;
}

.pres-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.85) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.pres-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.pres-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1.75rem;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
}

.pres-badge i {
    font-size: 0.75rem;
    color: var(--er-orange);
    opacity: 0.85;
}

.pres-hero-title {
    font-family: var(--font-display) !important;
    font-size: clamp(2.5rem, 7vw, 4.25rem);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 1.25rem;
}

.pres-hero-line {
    display: block;
}

.pres-hero-subtitle {
    max-width: 560px;
    margin: 0 auto 2rem;
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.62);
}

.pres-divider {
    display: flex;
    align-items: center;
    max-width: 100%;
}

.pres-divider-mark {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
    user-select: none;
}

.pres-divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
    margin: 0 0.75rem;
}

/* Sections communes */
.pres-section {
    padding: 4.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pres-section-title {
    font-family: var(--font-display) !important;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    margin: 0 0 2.75rem;
}

/* Intro */
.pres-intro p {
    font-family: var(--font-body);
    font-size: 0.97rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 1.15rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.pres-intro .pres-lead {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.78);
}

.pres-intro strong {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

/* Feature cards */
.pres-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.pres-feature-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.pres-feature-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(234, 126, 51, 0.4);
    transform: translateY(-3px);
}

.pres-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 1.15rem;
    border-radius: 8px;
    background: rgba(234, 126, 51, 0.12);
    border: 1px solid rgba(234, 126, 51, 0.25);
}

.pres-feature-icon i {
    font-size: 1.15rem;
    color: var(--er-orange);
}

.pres-feature-card h3 {
    font-family: var(--font-display) !important;
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 0.65rem;
}

.pres-feature-card p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.pres-note {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    max-width: 720px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(234, 126, 51, 0.08);
    border: 1px solid rgba(234, 126, 51, 0.2);
    border-radius: 6px;
}

.pres-note i {
    color: var(--er-orange);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* Steps */
.pres-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.pres-step-card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none !important;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.pres-step-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(234, 126, 51, 0.45);
    transform: translateY(-3px);
    text-decoration: none !important;
}

.pres-step-num {
    font-family: var(--font-display) !important;
    font-size: 2rem;
    color: rgba(234, 126, 51, 0.5);
    line-height: 1;
    margin-bottom: 1rem;
}

.pres-step-card h3 {
    font-family: var(--font-display) !important;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 0.65rem;
}

.pres-step-card p {
    flex: 1;
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 1.25rem;
}

.pres-step-link {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--er-orange);
}

.pres-step-link i {
    margin-left: 0.35rem;
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.pres-step-card:hover .pres-step-link i {
    transform: translateX(4px);
}

/* Gallery */
.pres-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.pres-gallery-item {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    aspect-ratio: 16 / 10;
}

.pres-gallery-item--wide {
    grid-column: span 2;
}

.pres-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.pres-gallery-item:hover img {
    transform: scale(1.04);
}

/* Video */
.pres-video-wrap {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.pres-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* CTA */
.pres-cta {
    padding-bottom: 5rem;
}

.pres-cta-inner {
    text-align: center;
    max-width: 640px;
}

.pres-cta-title {
    font-family: var(--font-display) !important;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 0.85rem;
}

.pres-cta-inner > p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 2rem;
}

.pres-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.presentation-page .btn-helix {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 2rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.presentation-page .btn-helix-primary {
    background: #fff;
    color: #111;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.presentation-page .btn-helix-primary:hover {
    background: #f5f5f5;
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.presentation-page .btn-helix-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.presentation-page .btn-helix-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 991px) {
    .pres-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pres-steps-grid {
        grid-template-columns: 1fr;
    }

    .pres-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pres-gallery-item--wide {
        grid-column: span 2;
    }
}

@media (max-width: 575px) {
    .pres-hero {
        padding-top: 6rem;
        min-height: 45vh;
    }

    .pres-section {
        padding: 3rem 0;
    }

    .pres-features-grid {
        grid-template-columns: 1fr;
    }

    .pres-gallery-grid {
        grid-template-columns: 1fr;
    }

    .pres-gallery-item--wide {
        grid-column: span 1;
    }

    .pres-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .presentation-page .btn-helix {
        justify-content: center;
    }
}

/* ============================================================
   BOUTONS HELIX GLOBAUX (utilisables sur toutes les pages)
   ============================================================ */

.btn-helix {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-body, inherit);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    border-radius: 0 !important;
    line-height: 1;
}

.btn-helix-primary {
    background: #fff;
    color: #111 !important;
    box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.btn-helix-primary:hover {
    background: #f0f0f0;
    color: #111 !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}

.btn-helix-secondary {
    background: rgba(255,255,255,0.07);
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.22) !important;
}
.btn-helix-secondary:hover {
    background: rgba(255,255,255,0.14);
    color: #fff !important;
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.4) !important;
}

.btn-helix-orange {
    background: var(--er-orange);
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(234,126,51,0.4);
}
.btn-helix-orange:hover {
    background: var(--er-orange-dark);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(234,126,51,0.55);
}

.btn-helix-danger {
    background: var(--er-red);
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(192,57,43,0.35);
}
.btn-helix-danger:hover {
    background: #a93226;
    color: #fff !important;
    transform: translateY(-2px);
}

.btn-helix-discord {
    background: #5865F2;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(88,101,242,0.4);
}
.btn-helix-discord:hover {
    background: #4752c4;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(88,101,242,0.55);
}

.btn-helix-sm {
    padding: 0.45rem 1.1rem;
    font-size: 0.72rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}

/* ── Override Bootstrap .btn globally ── */
.btn:not(.close):not(.navbar-toggler):not(.pf-notif-read-all-btn) {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    border-radius: 0 !important;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-size: 0.78rem !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary:not(.close) {
    background: var(--er-orange) !important;
    border-color: var(--er-orange) !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(234,126,51,0.35);
}
.btn-primary:not(.close):hover,
.btn-primary:not(.close):focus {
    background: var(--er-orange-dark) !important;
    border-color: var(--er-orange-dark) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(234,126,51,0.5);
}

.btn-success:not(.close) {
    background: #27ae60 !important;
    border-color: #27ae60 !important;
    color: #fff !important;
}
.btn-success:not(.close):hover {
    background: #1e8449 !important;
    border-color: #1e8449 !important;
    transform: translateY(-2px);
}

.btn-danger:not(.close) {
    background: var(--er-red) !important;
    border-color: var(--er-red) !important;
    color: #fff !important;
}
.btn-danger:not(.close):hover {
    background: #a93226 !important;
    border-color: #a93226 !important;
    transform: translateY(-2px);
}

.btn-secondary:not(.close),
.btn-default:not(.close) {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.2) !important;
    color: rgba(255,255,255,0.85) !important;
}
.btn-secondary:not(.close):hover,
.btn-default:not(.close):hover {
    background: rgba(255,255,255,0.16) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.btn-warning:not(.close) {
    background: #f39c12 !important;
    border-color: #f39c12 !important;
    color: #fff !important;
}
.btn-warning:not(.close):hover {
    background: #d68910 !important;
    border-color: #d68910 !important;
    transform: translateY(-2px);
}

/* ── Navbar buttons spécifiques ── */
.btn-profil {
    background: var(--er-orange) !important;
    border-color: var(--er-orange) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(234,126,51,0.35) !important;
}
.btn-profil:hover {
    background: var(--er-orange-dark) !important;
    border-color: var(--er-orange-dark) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.btn-disconnect {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.22) !important;
    color: rgba(255,255,255,0.8) !important;
}
.btn-disconnect:hover {
    background: rgba(192,57,43,0.25) !important;
    border-color: var(--er-red) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* ============================================================
   SECTION "QU'EST-CE QU'EASTERN ROLEPLAY ?" — accueil
   ============================================================ */

.whatis-section {
    padding: 5rem 0 4rem;
    background: var(--er-dark);
    position: relative;
    overflow: hidden;
}

.whatis-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(234,126,51,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.whatis-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
}

.whatis-title {
    font-family: var(--font-display, 'Rajdhani', sans-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    margin-bottom: 1rem;
}

.whatis-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--er-orange), var(--er-red));
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

.whatis-subtitle {
    color: var(--er-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

/* Grille 2×2 */
.whatis-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

/* Carte individuelle */
.whatis-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    min-height: 280px;
    cursor: default;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatis-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}

.whatis-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    will-change: transform;
}

.whatis-card:hover .whatis-card__bg {
    transform: scale(1.04);
}

.whatis-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10,12,16,0.92) 0%,
        rgba(10,12,16,0.55) 50%,
        rgba(10,12,16,0.2) 100%
    );
    transition: background 0.3s ease;
}

.whatis-card:hover .whatis-card__overlay {
    background: linear-gradient(
        to top,
        rgba(10,12,16,0.96) 0%,
        rgba(10,12,16,0.65) 55%,
        rgba(10,12,16,0.25) 100%
    );
}

.whatis-card__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem 1.5rem;
    z-index: 2;
}

.whatis-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(234,126,51,0.15);
    border: 1px solid rgba(234,126,51,0.35);
    margin-bottom: 0.85rem;
    transition: background 0.25s ease;
}

.whatis-card:hover .whatis-card__icon {
    background: rgba(234,126,51,0.28);
}

.whatis-card__icon i {
    font-size: 1.1rem;
    color: var(--er-orange);
}

.whatis-card__title {
    font-family: var(--font-display, 'Rajdhani', sans-serif);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    margin: 0 0 0.5rem;
}

.whatis-card__desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
    margin: 0;
    max-width: 340px;
}

/* Responsive */
@media (max-width: 767px) {
    .whatis-grid {
        grid-template-columns: 1fr;
    }

    .whatis-card {
        min-height: 240px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .whatis-card {
        min-height: 240px;
    }
}

/* ============================================================
   SECTION FAQ — accueil
   ============================================================ */

.faq-section {
    padding: 5rem 0 4rem;
    background: var(--er-dark2);
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(234,126,51,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.faq-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.faq-title {
    font-family: var(--font-display, 'Rajdhani', sans-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    margin-bottom: 0.75rem;
}

.faq-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--er-orange), var(--er-red));
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

.faq-subtitle {
    color: var(--er-text-muted);
    font-size: 1rem;
    margin: 0;
}

/* Grille 2 colonnes indépendantes */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 1.25rem;
    align-items: start;
}

.faq-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Item */
.faq-item {
    background: var(--er-dark3);
    border: 1px solid rgba(255,255,255,0.07);
    transition: border-color 0.25s ease;
}

.faq-item.is-open {
    border-color: rgba(234,126,51,0.3);
}

/* Bouton d'accordéon */
.faq-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    /* on réinitialise les overrides Bootstrap globaux pour ce bouton */
    clip-path: none !important;
    border-radius: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    transition: color 0.2s ease;
    line-height: 1.4;
}

.faq-btn:hover {
    color: var(--er-orange);
    transform: none !important;
}

.faq-item.is-open .faq-btn {
    color: var(--er-orange);
}

.faq-icon {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    transition: transform 0.3s ease, color 0.2s ease;
}

.faq-item.is-open .faq-icon {
    transform: rotate(90deg);
    color: var(--er-orange);
}

/* Réponse */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 1.4rem;
}

.faq-item.is-open .faq-answer {
    max-height: 300px;
    padding: 0 1.4rem 1.2rem;
}

.faq-answer p {
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 0;
}

.faq-answer a {
    color: var(--er-orange);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 767px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-col + .faq-col {
        margin-top: 0;
    }
}

/* ============================================================
   AUTH PAGES — /connexion/ & /inscription/
   ============================================================ */

.auth-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
    background-image: url(/img/bg.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    background-color: #111418;
}

.auth-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.82) 0%, rgba(10,10,18,0.75) 100%);
    pointer-events: none;
    z-index: 0;
}

.auth-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Card principale ── */
.auth-card {
    background: rgba(10, 10, 18, 0.88);
    border: 1px solid rgba(234, 126, 51, 0.3);
    border-top: 3px solid var(--er-orange);
    border-radius: 0 0 6px 6px;
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(234,126,51,0.06);
    overflow: hidden;
    flex-shrink: 0;
}

.auth-card__header {
    padding: 2.25rem 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.auth-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--er-orange), var(--er-orange-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    box-shadow: 0 6px 20px rgba(234,126,51,0.4);
}

.auth-card__icon--register {
    background: linear-gradient(135deg, #5865F2, #4752c4);
    box-shadow: 0 6px 20px rgba(88,101,242,0.4);
}

.auth-card__title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.auth-card__subtitle {
    font-size: 0.88rem;
    color: var(--er-text-muted);
    margin: 0;
}

/* ── Divider ── */
.auth-card__divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 2rem;
    margin: 1.25rem 0;
}

.auth-card__divider::before,
.auth-card__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

.auth-card__divider span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

/* ── Body ── */
.auth-card__body {
    padding: 0 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ── Bouton Discord ── */
.auth-discord-btn {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: #5865F2;
    color: #fff !important;
    text-decoration: none !important;
    padding: 0.9rem 1.4rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 20px rgba(88,101,242,0.4);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.auth-discord-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(88,101,242,0.55);
    color: #fff !important;
}

.auth-discord-btn__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.auth-discord-btn__arrow {
    margin-left: auto;
    opacity: 0.7;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.auth-discord-btn:hover .auth-discord-btn__arrow {
    transform: translateX(3px);
    opacity: 1;
}

/* ── Features (inscription) ── */
.auth-features {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.83rem;
    color: rgba(255,255,255,0.7);
}

.auth-feature-item .fa-check-circle {
    color: #4aff73;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ── Note ── */
.auth-card__note {
    font-size: 0.77rem;
    color: rgba(255,255,255,0.38);
    margin: 0;
    line-height: 1.5;
    display: flex;
    gap: 0.45rem;
    align-items: flex-start;
}

.auth-card__note i {
    margin-top: 2px;
    flex-shrink: 0;
    color: rgba(234,126,51,0.55);
}

/* ── Footer ── */
.auth-card__footer {
    padding: 1.25rem 2rem 1.75rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
}

.auth-card__footer p {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

/* ── Links ── */
.auth-link {
    color: var(--er-orange) !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #ffaa66 !important;
}

.auth-link--muted {
    color: rgba(255,255,255,0.28) !important;
    font-size: 0.78rem;
}

.auth-link--muted:hover {
    color: rgba(255,255,255,0.55) !important;
}

/* ── Side info panel ── */
.auth-side-info {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 0.5rem;
}

.auth-side-info__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--er-orange);
    border-left: 3px solid var(--er-orange);
    padding-left: 0.75rem;
}

.auth-side-info__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.auth-side-info__icon {
    width: 38px;
    height: 38px;
    background: rgba(234,126,51,0.1);
    border: 1px solid rgba(234,126,51,0.25);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--er-orange);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.auth-side-info__item strong {
    display: block;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.auth-side-info__item span {
    font-size: 0.78rem;
    color: var(--er-text-muted);
    line-height: 1.45;
}

/* ═══════════════════════════════════════════════════════════════
   PAGE TÉLÉCHARGEMENT LAUNCHER
   ═══════════════════════════════════════════════════════════════ */
.dl-page {
  min-height: 100vh; padding: 7rem 0 4rem;
  position: relative; display: flex; align-items: flex-start;
}
.dl-page__bg {
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at 50% 20%, rgba(91,124,250,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.dl-page__container { position: relative; z-index: 1; }

.dl-page__notfound {
  text-align: center; padding: 4rem 2rem;
  color: rgba(255,255,255,0.6);
}
.dl-page__notfound-icon {
  font-size: 3rem; color: rgba(247,184,75,0.6); display: block; margin-bottom: 1rem;
}
.dl-page__notfound h1 { font-size: 1.6rem; color: #fff; margin-bottom: 0.5rem; }

.dl-card {
  background: rgba(10,10,18,0.88);
  border: 1px solid rgba(91,124,250,0.2);
  border-top: 3px solid #5b7cfa;
  border-radius: 0 0 12px 12px;
  max-width: 680px; margin: 0 auto;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  overflow: hidden;
}
.dl-card__header {
  display: flex; align-items: flex-start; gap: 1.25rem;
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dl-card__logo {
  width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex-shrink: 0;
}
.dl-card__logo-placeholder {
  width: 72px; height: 72px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(91,124,250,0.2), rgba(167,139,250,0.2));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #a78bfa;
}
.dl-card__title-wrap { flex: 1; }
.dl-card__title { font-size: 1.55rem; font-weight: 700; color: #fff; margin: 0 0 0.6rem; }
.dl-card__meta { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.dl-card__tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 99px; padding: 0.25rem 0.7rem;
  font-size: 0.75rem; color: rgba(255,255,255,0.65);
}
.dl-card__tag--both { background: rgba(91,124,250,0.15); border-color: rgba(91,124,250,0.3); color: #7aa0ff; }
.dl-card__tag--premium { background: rgba(74,207,115,0.1); border-color: rgba(74,207,115,0.3); color: #4aff73; }
.dl-card__tag--crack { background: rgba(192,57,43,0.1); border-color: rgba(192,57,43,0.3); color: #ff6b6b; }

.dl-card__body { padding: 1.75rem 2rem; }

.dl-card__info-grid {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.dl-card__info-item { display: flex; align-items: flex-start; gap: 0.7rem; }
.dl-card__info-icon {
  width: 32px; height: 32px;
  background: rgba(91,124,250,0.12); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: #5b7cfa; font-size: 0.85rem; flex-shrink: 0;
}
.dl-card__info-label { font-size: 0.72rem; color: rgba(255,255,255,0.38); margin-bottom: 0.15rem; }
.dl-card__info-val { font-size: 0.85rem; color: rgba(255,255,255,0.8); font-weight: 600; }
.dl-card__info-val code {
  background: rgba(255,255,255,0.07); padding: 0.1rem 0.4rem;
  border-radius: 3px; font-size: 0.78rem; color: rgba(255,255,255,0.65);
}

.dl-versions__title {
  font-size: 0.95rem; font-weight: 700; color: rgba(255,255,255,0.8);
  margin-bottom: 0.9rem; display: flex; align-items: center; gap: 0.5rem;
}
.dl-versions__title i { color: #5b7cfa; }
.dl-versions__list { display: flex; flex-direction: column; gap: 0.6rem; }
.dl-version-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px; padding: 0.8rem 1rem;
}
.dl-version-row__info { display: flex; align-items: center; gap: 0.75rem; }
.dl-version-row__os { font-size: 0.88rem; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 0.4rem; }
.dl-version-row__ver { font-size: 0.75rem; color: rgba(255,255,255,0.38); }

.dl-card__unavailable {
  text-align: center; padding: 2rem;
  color: rgba(255,255,255,0.4); font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 0.5rem;
}
.dl-card__unavailable i { font-size: 2rem; color: rgba(255,255,255,0.2); }

.dl-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2rem; border-top: 1px solid rgba(255,255,255,0.06);
}
.dl-card__footer-brand { font-size: 0.75rem; color: rgba(255,255,255,0.25); }
.dl-card__footer-brand strong { color: rgba(255,255,255,0.5); }

.dl-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.85rem; font-weight: 700;
  padding: 0.65rem 1.3rem; border-radius: 6px;
  text-decoration: none !important; cursor: pointer;
  transition: filter 0.18s, transform 0.18s;
}
.dl-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.dl-btn--primary {
  background: linear-gradient(135deg, #5b7cfa, #a78bfa); color: #fff !important;
  box-shadow: 0 4px 18px rgba(91,124,250,0.35);
}
.dl-btn--ghost {
  background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.65) !important;
  border: 1px solid rgba(255,255,255,0.1);
}
.dl-btn--download {
  background: linear-gradient(135deg, #4aff73, #22c55e); color: #000 !important;
  box-shadow: 0 4px 14px rgba(74,255,115,0.3);
}

@media (max-width: 600px) {
  .dl-card__header { flex-direction: column; }
  .dl-card__footer { flex-direction: column; gap: 0.75rem; text-align: center; }
}

/* ── Bouton Discord secondaire (plus discret) ── */
.auth-discord-btn--secondary {
    background: rgba(88,101,242,0.15);
    border: 1px solid rgba(88,101,242,0.4);
    box-shadow: none;
    color: rgba(255,255,255,0.8) !important;
}
.auth-discord-btn--secondary:hover {
    background: rgba(88,101,242,0.3);
    box-shadow: 0 4px 16px rgba(88,101,242,0.3);
    color: #fff !important;
}

/* ── Formulaire email/password ── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.auth-form__group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-form__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.auth-form__label i {
    color: var(--er-orange);
    font-size: 0.75rem;
}

.auth-form__input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    color: #fff;
    font-size: 0.92rem;
    padding: 0.65rem 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.auth-form__input::placeholder {
    color: rgba(255,255,255,0.25);
}

.auth-form__input:focus {
    border-color: var(--er-orange);
    background: rgba(234,126,51,0.06);
}

.auth-form__input-wrap {
    position: relative;
}

.auth-form__input-wrap .auth-form__input {
    padding-right: 2.8rem;
}

.auth-form__eye {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.35);
    cursor: pointer;
    padding: 0;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.auth-form__eye:hover {
    color: var(--er-orange);
}

.auth-form__hint {
    font-size: 0.73rem;
    color: rgba(255,255,255,0.3);
}

.auth-form__cgu {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.35);
    margin: 0;
}

.auth-form__submit {
    background: linear-gradient(135deg, var(--er-orange), var(--er-orange-dark));
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.8rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 18px rgba(234,126,51,0.4);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.auth-form__submit:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(234,126,51,0.55);
}

/* ── Alertes auth ── */
.auth-alert {
    margin: 0 2rem;
    padding: 0.7rem 1rem;
    border-radius: 4px;
    font-size: 0.83rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.auth-alert--error {
    background: rgba(192,57,43,0.18);
    border: 1px solid rgba(192,57,43,0.45);
    color: #ff6b6b;
}

.auth-alert--success {
    background: rgba(74,207,115,0.12);
    border: 1px solid rgba(74,207,115,0.35);
    color: #4aff73;
}

.auth-alert--warning {
    background: rgba(243,156,18,0.14);
    border: 1px solid rgba(243,156,18,0.4);
    color: #f5c518;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .auth-page {
        padding: 5rem 0 3rem;
        align-items: flex-start;
    }

    .auth-container {
        gap: 2rem;
    }

    .auth-card {
        max-width: 100%;
    }

    .auth-side-info {
        max-width: 100%;
        gap: 1.2rem;
    }

    .auth-alert {
        margin: 0 1rem;
    }
}
