/* Thème Vaelor : base (dérivée de DarkWave) + accueil + pages */

:root {
    --bs-font-sans-serif: 'Rubik', sans-serif;
    --v-royal: #1f4fa8;
    --v-mid: #173a80;
    --v-night: #10245a;
    --v-deep: #0b1a3f;
    --v-ice: #9adcff;
    --v-text: #d6e6ff;
    --v-muted: #9fb4dc;
    --v-carmin: #d8323f;
    --v-card: #eaf1fb;
    --v-navy: #1b2447;
}

[data-bs-theme=dark] {
    --bs-body-bg: #10245a;
    --bs-body-bg-rgb: 16, 36, 90;
    --bs-body-color: #d6e6ff;
    --bs-primary-color-contrast: #ffffff !important;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--v-night);
    color: var(--v-text);
}

a {
    text-decoration: none;
}

.btn {
    font-weight: bold;
}

.btn-primary {
    --bs-btn-bg: #d8323f;
    --bs-btn-border-color: #d8323f;
    --bs-btn-color: #ffffff;
    --bs-btn-hover-bg: #ff4757;
    --bs-btn-hover-border-color: #ff4757;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-active-bg: #b5202c;
    --bs-btn-active-border-color: #b5202c;
    --bs-btn-active-color: #ffffff;
}

.btn-discord {
    --bs-btn-bg: #5865f2;
    --bs-btn-border-color: #5865f2;
    --bs-btn-color: #ffffff;
    --bs-btn-hover-bg: #4752c4;
    --bs-btn-hover-border-color: #4752c4;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-active-bg: #3c45a5;
    --bs-btn-active-border-color: #3c45a5;
    --bs-btn-active-color: #ffffff;
}

/* ===== Titres de page (h1 des vues Azuriom) ===== */
h1 {
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    padding: 0.5rem 0 0;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

h1::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin: 0.75rem auto 0;
    background: var(--v-carmin);
    border-radius: 2px;
}

/* ===== Navbar ===== */
.navbar .nav-item {
    margin-right: 0.25rem;
    margin-left: 0.25rem;
}

.navbar .nav-item .nav-link {
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
}

.navbar .nav-item .nav-link:hover,
.navbar .nav-item .nav-link.active,
.navbar .dropdown-toggle::after {
    color: var(--v-ice);
}

.navbar .dropdown-menu {
    background: var(--v-deep);
    border: 1px solid rgba(154, 220, 255, 0.15);
}

.navbar .dropdown-item {
    color: var(--v-text);
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item.active {
    background: rgba(154, 220, 255, 0.12);
    color: #fff;
}

/* ===== En-têtes ===== */
.top-header,
.home {
    position: relative;
}

.home {
    min-height: 100vh;
    padding-bottom: 6rem;
}

.home .navbar {
    margin-bottom: 4rem;
}

.home .logo {
    max-height: 175px;
}

.top-header .logo {
    max-height: 90px;
}

/* Voile bleu progressif sur l'image de fond, se terminant dans le bleu des sections */
.home::before {
    position: absolute;
    content: "";
    z-index: 0;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(14, 30, 70, 0.45) 0%, rgba(18, 40, 95, 0.62) 45%, rgba(31, 79, 168, 0.92) 85%, #1f4fa8 100%);
}

/* Grain léger contre le banding, estompé avant le bas pour ne pas créer de marche */
.home::after {
    position: absolute;
    content: "";
    z-index: 0;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
    opacity: 0.05;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 95%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 95%);
}

/* En-tête des pages secondaires : même image, voile qui finit dans le bleu du contenu */
.top-header::after {
    position: absolute;
    content: "";
    z-index: 0;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(14, 30, 70, 0.55) 0%, rgba(20, 45, 110, 0.8) 55%, #1f4fa8 100%);
}

.v-page-header {
    padding: 1rem 0 2.5rem;
}

.v-page-online {
    color: var(--v-text);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0.75rem 0 0;
}

.v-dot {
    display: inline-block;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 8px #4caf50;
    margin-right: 0.35rem;
    vertical-align: middle;
}

/* ===== Contenu des pages secondaires ===== */
.v-main {
    background: linear-gradient(180deg, #1f4fa8 0%, #10245a 100%);
    padding-bottom: 2rem;
}

.content {
    padding-top: 2rem;
    margin-bottom: 3rem;
}

.content .card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(154, 220, 255, 0.15);
    color: var(--v-text);
    border-radius: 1rem;
}

.content .card .card-header {
    background: rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid rgba(154, 220, 255, 0.12);
    color: #fff;
}

.content .card .card-title,
.content h2,
.content h3,
.content h4 {
    color: #ffffff;
}

.content .table {
    --bs-table-bg: transparent;
    --bs-table-color: #d6e6ff;
    --bs-table-border-color: rgba(154, 220, 255, 0.15);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
    --bs-table-hover-bg: rgba(154, 220, 255, 0.08);
    --bs-table-hover-color: #ffffff;
    color: #d6e6ff;
}

.content .table thead th {
    background: rgba(0, 0, 0, 0.25);
    color: #ffffff;
}

.content .form-control,
.content .form-select {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(154, 220, 255, 0.25);
    color: #ffffff;
}

.content .form-control:focus,
.content .form-select:focus {
    border-color: var(--v-ice);
    box-shadow: 0 0 0 0.2rem rgba(154, 220, 255, 0.2);
}

.content .list-group-item {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(154, 220, 255, 0.12);
    color: var(--v-text);
}

.content .btn-secondary {
    --bs-btn-bg: rgba(154, 220, 255, 0.14);
    --bs-btn-border-color: rgba(154, 220, 255, 0.4);
    --bs-btn-color: #ffffff;
    --bs-btn-hover-bg: rgba(154, 220, 255, 0.28);
    --bs-btn-hover-border-color: #9adcff;
    --bs-btn-hover-color: #ffffff;
}

/* ===== Accueil : hero ===== */
.v-hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.v-hero-subtitle {
    text-transform: none;
    color: var(--v-text);
    font-size: 1.08rem;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.v-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.v-hero-video {
    width: 100%;
    max-width: 40rem;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(154, 220, 255, 0.35);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.v-hero-video video,
.v-hero-video iframe {
    object-fit: cover;
    border: 0;
}

.v-scroll-hint {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 1.25rem;
    color: #ffffff;
    font-size: 3.2rem;
    line-height: 1;
    animation: v-bob 2.8s ease-in-out infinite;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.v-scroll-hint:hover {
    color: #ffffff;
}

@keyframes v-bob {
    0%, 100% { opacity: 0.35; transform: translate(-50%, 0); }
    50% { opacity: 1; transform: translate(-50%, 12px); }
}

/* ===== Accueil : sections ===== */
.v-sections {
    background: linear-gradient(180deg, #1f4fa8 0%, #173a80 40%, #10245a 100%);
    padding: 3rem 0 2rem;
}

.v-title {
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1.25rem;
}

.v-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin: 0.75rem auto 0;
    background: var(--v-carmin);
    border-radius: 2px;
}

.v-steps {
    margin-bottom: 7rem;
}

.v-intro {
    margin-bottom: 1rem;
}

.v-lead {
    max-width: 780px;
    color: var(--v-text);
    font-size: 1.1rem;
    margin-bottom: 5rem;
}

.v-clips {
    margin-bottom: 4rem;
}

.v-clip {
    background: #0f1f47;
    border: 1px solid rgba(154, 220, 255, 0.25);
    border-radius: 1rem;
    overflow: hidden;
}

.v-clip video,
.v-clip iframe {
    object-fit: cover;
    border: 0;
}

/* ===== Bandeau d'annonce (alpha, maintenance…) ===== */
.v-alpha-banner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 1.25rem 1.75rem;
    background: rgba(216, 50, 63, 0.12);
    border: 1px solid rgba(216, 50, 63, 0.45);
    border-radius: 1rem;
}

.v-alpha-banner > i {
    font-size: 2rem;
    color: var(--v-carmin);
    flex-shrink: 0;
}

.v-alpha-banner strong {
    display: block;
    color: #ffffff;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
}

.v-alpha-banner p {
    margin: 0;
    color: var(--v-text);
    font-size: 0.98rem;
}

.v-alpha-banner .v-btn-primary {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .v-alpha-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== Article : image de couverture (centrée, taille contenue) ===== */
.content > img.img-fluid {
    display: block;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Accueil : dernières actualités ===== */
.v-news {
    margin-top: 6rem;
    margin-bottom: 2rem;
}

/* Cartes d'actualité : même rendu sombre que la page /news.
   Sélecteur doublé pour passer devant .v-card, défini plus bas. */
.v-card.v-news-card {
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(154, 220, 255, 0.15);
    color: var(--v-text);
    box-shadow: none;
}

.v-card.v-news-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--v-carmin);
    color: var(--v-text);
}

.v-news-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
    margin: 0;
}

.v-news-card .v-card-title,
.v-news-card .v-news-date,
.v-news-card .v-card-text,
.v-news-card .v-card-more {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.v-news-card .v-card-title {
    margin-top: 1.25rem;
    color: #ffffff;
    font-size: 1.1rem;
}

.v-news-card .v-card-text {
    color: var(--v-text);
}

.v-news-card .v-card-more {
    padding-bottom: 1.5rem;
}

.v-news-date {
    color: var(--v-carmin);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}

/* ===== Accueil : chat vocal de proximité ===== */
.v-voice {
    margin-bottom: 5rem;
}

.v-voice-card {
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
    max-width: 860px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(154, 220, 255, 0.25);
    border-radius: 1rem;
    padding: 2rem;
}

.v-voice-logo {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    margin-top: 0.25rem;
    image-rendering: pixelated;
}

.v-voice-title {
    text-align: left;
    font-size: 1.35rem;
}

.v-voice .v-title::after {
    margin-left: 0;
    width: 48px;
    height: 3px;
}

.v-voice-card p {
    color: var(--v-text);
    margin-bottom: 0.75rem;
}

.v-voice-card a {
    color: #ff7a85;
    font-weight: 600;
}

.v-voice-card a:hover {
    text-decoration: underline;
}

@media (max-width: 576px) {
    .v-voice-card {
        flex-direction: column;
    }
}

.v-features {
    margin-bottom: 1rem;
}

.v-card {
    background: var(--v-card);
    color: var(--v-navy);
    border: 1px solid transparent;
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    height: 100%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.v-card:hover {
    transform: translateY(-5px);
    border-color: var(--v-carmin);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.v-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--v-navy);
}

.v-card-link:hover {
    color: var(--v-navy);
}

.v-pixel {
    width: 44px;
    height: 44px;
    display: block;
    margin-bottom: 0.9rem;
    image-rendering: pixelated;
}

.v-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--v-navy);
    margin-bottom: 0.5rem;
}

.v-card-text {
    color: #3e4a6e;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.v-card-more {
    margin-top: auto;
    padding-top: 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--v-carmin);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.v-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--v-carmin);
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.v-modpack {
    max-width: 720px;
    margin: 2rem auto 0;
    color: var(--v-text);
}

.v-modpack a {
    color: #ff7a85;
    font-weight: 600;
}

.v-modpack a:hover {
    text-decoration: underline;
}

.v-cta {
    background: #10245a;
    color: #ffffff;
    padding: 4rem 0 5rem;
}

.v-cta-title {
    font-weight: 700;
    text-transform: uppercase;
}

.v-cta-text {
    color: var(--v-text);
    margin-bottom: 1.5rem;
}

.v-top {
    position: fixed;
    z-index: 1030;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 0;
    background: var(--v-carmin);
    color: #ffffff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.v-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.v-top:hover {
    background: #ff4757;
    color: #ffffff;
}

/* ===== Boutons Vaelor (pages vitrine, footer) =====
   Les :hover ne redéfinissent QUE la couleur : réappliquer le padding
   écrasait .v-btn-sm et faisait bouger les boutons voisins au survol. */
.v-btn-primary {
    display: inline-block;
    background: var(--v-carmin);
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.85rem 1.6rem;
    border-radius: 0.6rem;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.v-btn-primary:hover {
    background: #ff4757;
    color: #ffffff;
}

.v-btn-ghost {
    display: inline-block;
    border: 2px solid rgba(154, 220, 255, 0.6);
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.6rem;
    text-decoration: none;
}

.v-btn-ghost:hover {
    background: rgba(154, 220, 255, 0.12);
    color: #ffffff;
}

.v-btn-sm {
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
    margin: 0.25rem 0.25rem 0 0;
    box-shadow: none;
}

/* ===== Pages vitrine (.v-page) ===== */
.content .card:has(> .card-body > .v-page) {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.content .card:has(> .card-body > .v-page) .card-body {
    padding: 0;
}

.v-page {
    max-width: 960px;
    margin: 0 auto;
}

.v-page-kicker {
    text-align: center;
    color: #ff7a85;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.v-page-lead {
    text-align: center;
    font-size: 1.25rem;
    color: #ffffff;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.v-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

@media (max-width: 767px) {
    .v-page-grid {
        grid-template-columns: 1fr;
    }
}

.v-page-box {
    background: var(--v-card);
    color: var(--v-navy);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.v-page .v-page-box strong {
    display: block;
    font-size: 1.35rem;
    color: var(--v-carmin);
    margin-bottom: 0.35rem;
}

.v-page .v-page-box p {
    margin: 0;
    color: #3e4a6e;
    font-size: 0.95rem;
    line-height: 1.55;
}

.v-page h2 {
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.4rem;
    margin: 2.5rem 0 1rem;
}

.v-page h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 0.6rem;
    background: var(--v-carmin);
    border-radius: 2px;
}

.v-page p {
    color: var(--v-text);
    font-size: 1.05rem;
    line-height: 1.7;
}

.v-page-cta {
    text-align: center;
    margin: 4rem 0 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ===== Pages de texte (règlement…) =====
   Neutralise les styles inline collés depuis Word (couleurs sombres
   illisibles sur fond bleu, interlignes serrés) et aère le document. */
.content .western span,
.content li span {
    color: inherit !important;
}

.content h1.western span,
.content h2.western span,
.content h3.western span {
    font-size: inherit !important;
}

.content h1.western,
.content h2.western,
.content h3.western {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    margin: 2.75rem 0 1.1rem !important;
    padding: 0;
}

.content h1.western::after,
.content h2.western::after,
.content h3.western::after {
    margin: 0.6rem 0 0;
    width: 48px;
    height: 3px;
}

.content p.western {
    color: var(--v-text);
    line-height: 1.7 !important;
    margin-bottom: 0.9rem !important;
}

.content li {
    color: var(--v-text);
    margin-bottom: 0.4rem;
}

.content li p {
    line-height: 1.6 !important;
    margin-bottom: 0.3rem !important;
}

.content ul,
.content ol {
    margin-bottom: 1.4rem;
    padding-left: 1.5rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--v-deep);
    border-top: 1px solid rgba(154, 220, 255, 0.12);
    padding-top: 3.5rem;
}

.v-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.v-footer-logo {
    height: 56px;
    width: auto;
}

.v-footer-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
}

.v-footer-desc {
    color: var(--v-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.v-footer-social a {
    display: inline-flex;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    font-size: 1.1rem;
    transition: background 0.2s ease;
}

.v-footer-social a:hover {
    background: var(--v-carmin);
}

.v-footer-title {
    color: #ff7a85;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-bottom: 1rem;
}

.v-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.v-footer-list li {
    margin-bottom: 0.55rem;
}

.v-footer-list a {
    color: var(--v-text);
}

.v-footer-list a:hover {
    color: #ffffff;
}

.v-footer-list i {
    color: var(--v-ice);
    margin-right: 0.25rem;
}

.v-footer-bottom {
    margin-top: 3rem;
    padding: 1.25rem 0;
    background: #071230;
    color: #7f94c2;
    font-size: 0.85rem;
}

.v-footer-bottom a {
    color: var(--v-ice);
}
