/*
 * Nuvalis — thème Azuriom
 *
 * Direction artistique : « une journée dans le ciel de Nuvalis ».
 * Le défilement suit la course du soleil : plein jour sur le premier écran,
 * ciel clair pour l'information, lumière dorée pour la communauté,
 * crépuscule pour le dernier appel et nuit étoilée en pied de page.
 * Les sections sont reliées par des couches de nuages.
 *
 * Règles de couleur
 *   - Turquoise      : uniquement les actions « Jouer / Rejoindre » (texte bleu nuit dessus, contraste ≈ 7,6:1).
 *   - Bleu « ciel »  : les autres actions (formulaires, liens, navigation).
 *   - Libellés       : Rubik en petites majuscules espacées, pour les repères (sections, étiquettes).
 *
 * Sommaire
 *   1. Polices      2. Tokens       3. Bootstrap → tokens   4. Base
 *   5. Composants   6. En-tête      7. Pages génériques     8. Accueil
 *   9. Pied de page 10. Mouvement
 */

/* 1. Polices ------------------------------------------------------------ */

@font-face {
    font-family: "Rubik";
    src: url("../fonts/rubik-latin-wght-normal.woff2") format("woff2-variations"),
         url("../fonts/rubik-latin-wght-normal.woff2") format("woff2");
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

/* 2. Tokens ------------------------------------------------------------- */

:root {
    /* Ciel */
    --nv-sky-50: #f3f9ff;
    --nv-sky-100: #e4f2fd;
    --nv-sky-200: #c9e2f8;
    --nv-sky-300: #9fcdf3;
    --nv-sky-500: #3b8fe8;
    --nv-sky-600: #1769e0;
    --nv-sky-600-rgb: 23, 105, 224;
    --nv-sky-700: #1257bd;
    --nv-sky-800: #0f4592;
    --nv-cyan: #8fd6e3; /* cyan du logo */

    /* Nuit (pied de page) */
    --nv-night: #0b1d33;
    --nv-night-rgb: 11, 29, 51;

    /* Texte sur fond clair */
    --nv-ink: #0f2540;
    --nv-text: #26405e;
    --nv-text-2: #4a6383;
    --nv-text-3: #546b88;

    /* Turquoise : couleur des actions « Jouer » */
    --nv-turq: #2ec4c9;
    --nv-turq-hover: #52d4d8;
    --nv-turq-edge: #17949a;
    --nv-turq-ink: #04262b;
    --nv-turq-light: #7fe6e8; /* sur fonds sombres */

    /* États */
    --nv-success: #1f7a34;
    --nv-danger: #c4352c;

    /* Formes et ombres */
    --nv-radius-sm: 10px;
    --nv-radius: 14px;
    --nv-radius-lg: 20px;
    --nv-shadow: 0 18px 40px -22px rgba(15, 69, 146, 0.45);
    --nv-shadow-lg: 0 30px 60px -28px rgba(15, 50, 100, 0.55);

    /* Typographie */
    --nv-font: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Rythme */
    --nv-section: clamp(4rem, 8vw, 6.5rem);
    /* Le SVG fait 2880×140 : jusqu'à ~2500 px de large, les nuages restent entiers */
    --nv-clouds-h: clamp(56px, 6.5vw, 120px);
    --nv-header-h: 84px;
    --nv-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 3. Bootstrap → tokens ------------------------------------------------- */

body[data-bs-theme=light] {
    --bs-body-font-family: var(--nv-font);
    --bs-body-font-size: 1rem;
    --bs-body-line-height: 1.6;
    --bs-body-bg: var(--nv-sky-50);
    --bs-body-color: var(--nv-text);
    --bs-emphasis-color: var(--nv-ink);
    --bs-heading-color: var(--nv-ink);
    --bs-secondary-color: var(--nv-text-2);
    --bs-tertiary-color: var(--nv-text-3);
    --bs-secondary-bg: var(--nv-sky-100);
    --bs-tertiary-bg: var(--nv-sky-50);
    --bs-border-color: var(--nv-sky-200);
    --bs-border-radius: var(--nv-radius-sm);
    --bs-border-radius-lg: var(--nv-radius);
    --bs-border-radius-xl: var(--nv-radius-lg);
    --bs-link-color: var(--nv-sky-600);
    --bs-link-color-rgb: var(--nv-sky-600-rgb);
    --bs-link-hover-color: var(--nv-sky-800);
    --bs-link-hover-color-rgb: 15, 69, 146;
    --bs-focus-ring-color: rgba(var(--nv-sky-600-rgb), 0.3);
}

/* 4. Base --------------------------------------------------------------- */

html {
    scroll-padding-top: calc(var(--nv-header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--nv-sky-50);
    -webkit-font-smoothing: antialiased;
}

#app {
    flex: 1 0 auto;
}

body:not(.page-home) #app {
    background: linear-gradient(180deg, #cbe5fb 0, var(--nv-sky-100) 360px, var(--nv-sky-50) 760px);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.12;
}

a {
    text-underline-offset: 0.18em;
}

p a:not(.btn) {
    font-weight: 600;
}

::selection {
    background: var(--nv-turq);
    color: var(--nv-turq-ink);
}

:focus-visible {
    outline: 3px solid var(--nv-sky-600);
    outline-offset: 2px;
}

.hero :focus-visible,
.site-footer :focus-visible,
.tile--photo :focus-visible,
.final :focus-visible {
    outline-color: #fff;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 2000;
    padding: 0.75rem 1.1rem;
    border-radius: var(--nv-radius-sm);
    background: var(--nv-ink);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

main:focus {
    outline: none;
}

@media (max-width: 575.98px) {
    .container,
    .container-fluid {
        --bs-gutter-x: 2rem;
    }
}

/* Petits repères « jeu » */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nv-sky-700);
}

.kicker::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: var(--nv-turq);
    box-shadow: 2px 2px 0 var(--nv-turq-edge);
}

.kicker.text-center {
    display: flex;
    justify-content: center;
}

.kicker--light {
    color: #7a300a;
}

.text-sky {
    color: var(--nv-sky-700);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.chips li {
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--nv-sky-200);
    border-radius: 8px;
    background: var(--nv-sky-100);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--nv-sky-800);
}

/* 5. Composants --------------------------------------------------------- */

/* Boutons : arête inférieure plus sombre, comme un bloc qu'on enfonce */
.btn {
    --bs-btn-font-weight: 700;
    --bs-btn-padding-x: 1.15rem;
    --bs-btn-padding-y: 0.6rem;
    --bs-btn-border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
    transform: translateY(1px);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.16);
}

.btn:focus-visible {
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16);
}

.btn-sm {
    --bs-btn-padding-x: 0.85rem;
    --bs-btn-padding-y: 0.4rem;
    --bs-btn-border-radius: 10px;
}

.btn-lg {
    --bs-btn-padding-x: 1.4rem;
    --bs-btn-padding-y: 0.75rem;
    --bs-btn-font-size: 1.05rem;
    --bs-btn-border-radius: 14px;
}

.btn-xl {
    --bs-btn-padding-x: 1.6rem;
    --bs-btn-padding-y: 0.9rem;
    --bs-btn-font-size: 1.08rem;
    --bs-btn-border-radius: 16px;
    min-height: 64px;
    box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.16);
}

.btn-link,
.btn-close {
    box-shadow: none;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--nv-sky-600);
    --bs-btn-border-color: var(--nv-sky-600);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--nv-sky-700);
    --bs-btn-hover-border-color: var(--nv-sky-700);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--nv-sky-800);
    --bs-btn-active-border-color: var(--nv-sky-800);
}

.btn-cloud,
.btn-secondary,
.btn-outline-secondary,
.btn-outline-primary {
    --bs-btn-color: var(--nv-ink);
    --bs-btn-bg: #fff;
    --bs-btn-border-color: var(--nv-sky-200);
    --bs-btn-hover-color: var(--nv-sky-700);
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-border-color: var(--nv-sky-300);
    --bs-btn-active-color: var(--nv-sky-800);
    --bs-btn-active-bg: var(--nv-sky-100);
    --bs-btn-active-border-color: var(--nv-sky-300);
}

.btn-cloud {
    --bs-btn-bg: rgba(255, 255, 255, 0.94);
    --bs-btn-border-color: rgba(255, 255, 255, 0.94);
    --bs-btn-hover-border-color: #fff;
}

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

.btn-danger {
    --bs-btn-bg: var(--nv-danger);
    --bs-btn-border-color: var(--nv-danger);
}

.btn .bi-arrow-down {
    transition: transform 0.2s var(--nv-ease);
}

.btn:hover .bi-arrow-down {
    transform: translateY(2px);
}

/* Copie de l'adresse */
.copy-address {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 100%;
    border: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.copy-address__value {
    font-weight: 600;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
}

.copy-address__action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: none;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Bouton principal « Rejoindre Nuvalis » */
.copy-address--cta,
.btn-play {
    gap: 0.9rem;
    min-height: 68px;
    padding: 0.7rem 1.6rem 0.7rem 1.2rem;
    border: 0;
    border-radius: 16px;
    background: var(--nv-turq);
    color: var(--nv-turq-ink);
    box-shadow: inset 0 -4px 0 var(--nv-turq-edge), 0 16px 32px -14px rgba(4, 60, 70, 0.6);
}

.copy-address--cta:hover,
.btn-play:hover {
    background: var(--nv-turq-hover);
    color: var(--nv-turq-ink);
}

.copy-address--cta:active {
    transform: translateY(2px);
    box-shadow: inset 0 -2px 0 var(--nv-turq-edge), 0 10px 22px -14px rgba(4, 60, 70, 0.6);
}

.copy-address__icon {
    font-size: 1.45rem;
    line-height: 1;
}

.copy-address__main {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.copy-address__title {
    font-size: 1.15rem;
    font-weight: 800;
}

.copy-address--cta .copy-address__value {
    font-size: 0.92rem;
    font-weight: 600;
    opacity: 0.8;
}

.copy-address.is-copied .copy-address__action {
    background: var(--nv-success);
    color: #fff;
}

/* Variante navigation */
.copy-address--nav {
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.3rem 0.35rem 0.3rem 0.85rem;
    border-radius: 12px;
    background: var(--nv-turq);
    color: var(--nv-turq-ink);
    box-shadow: inset 0 -3px 0 var(--nv-turq-edge);
}

.copy-address--nav:hover {
    background: var(--nv-turq-hover);
}

.copy-address--nav .copy-address__action {
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    background: rgba(43, 22, 8, 0.12);
}

.copy-address--nav [data-copy-text] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Variante en ligne (pied de page) */
.copy-address--inline {
    min-height: 48px;
    padding: 0.35rem 0.4rem 0.35rem 1rem;
    border: 1px solid var(--nv-sky-200);
    border-radius: 12px;
    background: #fff;
    color: var(--nv-ink);
}

.copy-address--inline .copy-address__action {
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
    background: var(--nv-turq);
    color: var(--nv-turq-ink);
}

/* Boutons façon interface Minecraft */
.mc-button,
.copy-address--mc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 50px;
    padding: 0.5rem 1rem;
    border: 2px solid #0d1117;
    border-radius: 4px;
    background: #4a5868;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.22), inset 0 -4px 0 rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

.mc-button:hover,
.copy-address--mc:hover {
    background: #5b6c80;
    color: #fff;
}

/* Action « Jouer » : turquoise, texte foncé pour le contraste */
.copy-address--mc,
.mc-button--primary {
    background: var(--nv-turq);
    color: var(--nv-turq-ink);
    text-shadow: none;
}

.copy-address--mc:hover,
.mc-button--primary:hover {
    background: var(--nv-turq-hover);
    color: var(--nv-turq-ink);
}

.copy-address--mc .copy-address__action {
    font-size: inherit;
    font-weight: inherit;
}

.copy-address--mc.is-copied {
    background: var(--nv-success);
    color: #fff;
}

.copy-address--mc.is-copied .copy-address__action {
    background: none;
}

/* Statut serveur (affiché seulement si un serveur est relié à Azuriom) */
.server-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.server-status__dot {
    width: 10px;
    height: 10px;
    background: #9aa8b8;
}

.server-status.is-online .server-status__dot {
    background: #4cd964;
    box-shadow: 0 0 0 3px rgba(76, 217, 100, 0.3);
}

/* Cartes et formulaires (pages Azuriom) */
.card {
    --bs-card-bg: #fff;
    --bs-card-border-color: var(--nv-sky-200);
    --bs-card-border-radius: var(--nv-radius-lg);
    --bs-card-inner-border-radius: calc(var(--nv-radius-lg) - 1px);
    --bs-card-cap-bg: var(--nv-sky-50);
    --bs-card-spacer-y: 1.5rem;
    --bs-card-spacer-x: 1.5rem;
    box-shadow: var(--nv-shadow);
}

.card-title a {
    color: var(--nv-ink);
    text-decoration: none;
}

.card-title a:hover {
    color: var(--nv-sky-600);
}

.card-img-top {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.form-label {
    font-weight: 600;
    color: var(--nv-ink);
}

.form-control,
.form-select {
    min-height: 48px;
    border-color: #b7d2ec;
    border-radius: 12px;
    color: var(--nv-ink);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--nv-sky-600);
    box-shadow: 0 0 0 3px rgba(var(--nv-sky-600-rgb), 0.22);
}

.form-check-input {
    border-color: #9dbbd8;
}

.alert {
    --bs-alert-border-radius: var(--nv-radius);
    border-width: 1px 1px 1px 4px;
}

.dropdown-menu {
    --bs-dropdown-border-color: var(--nv-sky-200);
    --bs-dropdown-border-radius: var(--nv-radius);
    --bs-dropdown-padding-x: 0.4rem;
    --bs-dropdown-padding-y: 0.4rem;
    --bs-dropdown-link-color: var(--nv-ink);
    --bs-dropdown-link-hover-bg: var(--nv-sky-100);
    --bs-dropdown-link-hover-color: var(--nv-sky-800);
    --bs-dropdown-link-active-bg: var(--nv-sky-600);
    --bs-dropdown-item-padding-y: 0.55rem;
    box-shadow: var(--nv-shadow);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 8px;
    font-weight: 600;
}

.modal {
    --bs-modal-border-radius: var(--nv-radius-lg);
}

.pagination {
    --bs-pagination-active-bg: var(--nv-sky-600);
    --bs-pagination-active-border-color: var(--nv-sky-600);
}

.progress {
    --bs-progress-bar-bg: var(--nv-sky-600);
}

.notice {
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--nv-sky-200);
    border-left: 4px solid var(--nv-turq);
    border-radius: var(--nv-radius);
    background: #fff;
}

/* 6. En-tête : barre flottante ----------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding-top: 0.75rem;
    pointer-events: none;
}

.site-header--overlay {
    position: fixed;
    inset: 0 0 auto;
}

.site-nav {
    --bs-navbar-padding-x: 0.5rem;
    --bs-navbar-padding-y: 0.5rem;
    --bs-navbar-nav-link-padding-x: 0.85rem;
    --bs-navbar-color: var(--nv-text);
    --bs-navbar-hover-color: var(--nv-sky-700);
    --bs-navbar-active-color: var(--nv-sky-800);
    pointer-events: auto;
    padding-left: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 30px -14px rgba(15, 69, 146, 0.45);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header.is-scrolled .site-nav {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 14px 34px -14px rgba(15, 69, 146, 0.55);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-right: 1.25rem;
    padding: 0;
    color: var(--nv-ink);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.brand:hover {
    color: var(--nv-sky-700);
}

.brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.site-nav .brand {
    margin-right: 1rem;
}

.site-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 0;
    border-radius: 10px;
    background: none;
    font-weight: 600;
}

.site-nav .nav-link:hover {
    background: var(--nv-sky-50);
}

.site-nav .nav-link.active,
.site-nav .nav-link[aria-current="page"] {
    background: var(--nv-sky-100);
    color: var(--nv-sky-800);
}

.nav-user__avatar {
    border-radius: 6px;
    image-rendering: pixelated;
}

.notifications-dropdown .badge {
    position: absolute;
    top: 0.1rem;
    right: 0.1rem;
    font-size: 0.65rem;
}

.notifications-dropdown .dropdown-toggle::after {
    display: none;
}

.navbar-toggler {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--nv-sky-200);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler__bars,
.navbar-toggler__bars::before,
.navbar-toggler__bars::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--nv-ink);
    transition: transform 0.25s var(--nv-ease);
}

.navbar-toggler__bars {
    position: relative;
}

.navbar-toggler__bars::before,
.navbar-toggler__bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.navbar-toggler__bars::before { top: -6px; }
.navbar-toggler__bars::after { top: 6px; }

.navbar-toggler[aria-expanded="true"] .navbar-toggler__bars {
    background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler__bars::before {
    transform: translateY(6px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler__bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

@media (min-width: 992px) {
    .main-nav {
        margin-inline: auto;
        gap: 0.2rem;
    }

    .nav-actions {
        align-items: center;
        gap: 0.2rem;
    }

    .nav-play {
        margin-left: 0.6rem;
    }
}

@media (max-width: 991.98px) {
    .site-nav .navbar-collapse {
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        padding: 0.5rem 0.25rem 0.75rem 0;
    }

    .site-nav .navbar-nav {
        border-top: 1px solid var(--nv-sky-100);
        padding-top: 0.5rem;
        margin-top: 0.5rem;
    }

    .site-nav .nav-link {
        width: 100%;
        min-height: 48px;
        font-size: 1.05rem;
    }

    .site-nav .dropdown-menu {
        box-shadow: none;
    }

    .nav-play {
        margin-top: 0.75rem;
    }

    .nav-play .copy-address {
        width: 100%;
        justify-content: space-between;
        min-height: 52px;
    }

    .nav-play .copy-address__value {
        flex: 1;
    }

    .notifications-dropdown .badge {
        position: static;
    }
}

/* 7. Pages génériques (connexion, profil, articles, pages, erreurs…) ---- */

.page {
    padding-block: clamp(2rem, 5vw, 3.5rem) calc(var(--nv-clouds-h) + 3rem);
}

.page h1 {
    margin-bottom: 1.75rem;
    font-size: clamp(2rem, 4.2vw, 3rem);
}

/* Barre pixel sous le titre de page */
.page h1::after {
    content: "";
    display: block;
    width: 48px;
    height: 8px;
    margin-top: 0.75rem;
    background: repeating-linear-gradient(90deg, var(--nv-turq) 0 12px, var(--nv-turq-edge) 12px 24px);
}

.page .card h1::after,
.page .text-center > h1::after {
    margin-inline: auto;
}

.page .card-text,
.page .page-content {
    line-height: 1.75;
}

.page .card-text img {
    border-radius: var(--nv-radius);
}

.page blockquote {
    margin: 1.5rem 0;
    padding: 0.25rem 0 0.25rem 1.25rem;
    border-left: 4px solid var(--nv-turq);
    color: var(--nv-text-2);
}

.post-preview {
    height: 100%;
}

.posts-search {
    width: min(100%, 320px);
}

.page .section__head {
    align-items: flex-end;
}

.empty-state {
    max-width: 34rem;
    margin: 1rem auto;
    padding: clamp(2rem, 6vw, 3.5rem) 1.5rem;
    border: 2px dashed var(--nv-sky-300);
    border-radius: var(--nv-radius-lg);
    background: rgba(255, 255, 255, 0.6);
    text-align: center;
    color: var(--nv-text-2);
}

.empty-state .bi {
    display: block;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--nv-sky-600);
}

.empty-state p {
    margin: 0;
}

.post-card {
    position: relative;
    height: 100%;
    border: 1px solid var(--nv-sky-200);
    border-radius: var(--nv-radius-lg);
    background: #fff;
    overflow: hidden;
    box-shadow: var(--nv-shadow);
    transition: transform 0.2s var(--nv-ease), border-color 0.2s ease;
}

.post-card:hover,
.post-card:focus-within {
    transform: translateY(-3px);
    border-color: var(--nv-sky-300);
}

.post-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.post-card__body {
    padding: 1.25rem 1.35rem 1.5rem;
}

.post-card__meta {
    margin: 0 0 0.4rem;
    font-size: 0.85rem;
    color: var(--nv-text-3);
}

.post-card__title {
    margin: 0 0 0.6rem;
    font-size: 1.25rem;
}

.post-card__title a {
    color: var(--nv-ink);
    text-decoration: none;
}

.post-card__excerpt {
    margin: 0;
    font-size: 0.95rem;
    color: var(--nv-text-2);
}

/* 8. Accueil ------------------------------------------------------------ */

/* Couches de nuages entre les sections */
.clouds {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 1;
    height: var(--nv-clouds-h);
    pointer-events: none;
}

.clouds svg {
    display: block;
    width: 100%;
    height: 100%;
}

.clouds__back {
    fill: currentColor;
    opacity: 0.6;
}

/* Ombre douce sous la première rangée : donne du volume aux nuages */
.clouds__front {
    filter: drop-shadow(0 -6px 10px rgba(15, 69, 146, 0.12));
}

.clouds__front {
    fill: currentColor;
}

.clouds--sky { color: var(--nv-sky-100); }
.clouds--white { color: #fff; }
.clouds--night { color: var(--nv-night); }

/* Au crépuscule, la rangée du fond prend une teinte bleu-mauve plutôt qu'un gris transparent */
.clouds--night .clouds__back {
    fill: #2c4670;
    opacity: 1;
}

.clouds--overlap {
    position: relative;
    bottom: auto;
    margin-top: calc(-1 * var(--nv-clouds-h) + 1px);
}

/* Sections */
.section {
    position: relative;
    padding-block: var(--nv-section);
}

.section-sky {
    background: var(--nv-sky-100);
}

.section-white {
    background: #fff;
}

.section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 3rem;
    margin-bottom: 2.25rem;
}

.section__title {
    margin: 0;
    font-size: clamp(2rem, 3.8vw, 3rem);
    line-height: 1.06;
    letter-spacing: -0.025em;
    color: var(--nv-ink);
    text-wrap: balance;
}

.section__intro {
    max-width: 26rem;
    margin: 0;
    font-size: 1.08rem;
    color: var(--nv-text-2);
}

/* Écran-titre */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--nv-header-h) + 1rem) 0 calc(var(--nv-clouds-h) + 4rem);
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.hero picture {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero__bg {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 50% 45%;
}

/* Voile bleuté : garde la lumière du jour tout en assurant la lisibilité */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 60% 55% at 50% 52%, rgba(10, 45, 95, 0.5), rgba(10, 45, 95, 0) 72%),
        linear-gradient(180deg, rgba(10, 45, 95, 0.35) 0%, rgba(10, 45, 95, 0) 30%);
}

.hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__logo {
    margin: 0;
    line-height: 0;
}

.hero__logo img {
    width: clamp(260px, 34vw, 620px);
    height: auto;
    filter: drop-shadow(0 14px 30px rgba(5, 30, 70, 0.45));
}

.hero__tagline {
    margin: 0.5rem 0 1.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 10px rgba(5, 30, 70, 0.8);
}

@media (max-width: 359.98px) {
    .hero__tagline {
        font-size: 0.9rem;
    }
}

/* Bouton principal + « aile » du nombre de joueurs en ligne */
.hero__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.hero__cta .copy-address--cta,
.hero__cta .btn-play {
    position: relative;
    z-index: 1;
}

/* L'aile est une plume : le texte reste droit, la forme est dessinée en SVG derrière lui */
.cta-wing {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 200px;
    min-height: 58px;
    margin: 0 0 0 -22px;
    padding: 0.95rem 3rem 0.75rem 2.6rem;
    color: var(--nv-ink);
    line-height: 1;
    transform: rotate(-5deg);
    transform-origin: left center;
}

.cta-wing__feather {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 10px 14px rgba(5, 30, 70, 0.35));
}

.cta-wing__vane {
    fill: url(#nv-feather-fill);
}

.cta-wing__barbs {
    fill: none;
    stroke: #8fd6e3;
    stroke-width: 1.4;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    opacity: 0.8;
}

.cta-wing__rachis {
    fill: none;
    stroke: #8fd6e3;
    stroke-width: 1.6;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.cta-wing__dot {
    width: 9px;
    height: 9px;
    flex: none;
    border-radius: 50%;
    background: #22b04b;
    box-shadow: 0 0 0 3px rgba(34, 176, 75, 0.22);
}

.cta-wing__count {
    font-size: 1.15rem;
    font-weight: 800;
}

/* Hors ligne ou serveur non relié : point gris, aucun chiffre inventé */
.cta-wing--offline .cta-wing__dot,
.cta-wing--unknown .cta-wing__dot {
    background: #9aa8b8;
    box-shadow: 0 0 0 3px rgba(154, 168, 184, 0.25);
}

.cta-wing--offline .cta-wing__label {
    font-size: 0.78rem;
}

.cta-wing__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--nv-text-2);
}

/* Écrans étroits : une plume plus petite se pose sur le coin supérieur droit du bouton */
@media (max-width: 479.98px) {
    .hero__cta.has-wing {
        margin-top: 1.6rem;
    }

    .cta-wing {
        position: absolute;
        top: -44px;
        right: -14px;
        z-index: 2;
        min-width: 168px;
        min-height: 46px;
        margin: 0;
        padding: 0.75rem 2.4rem 0.55rem 2rem;
        gap: 0.35rem;
        transform: rotate(-6deg);
        transform-origin: center;
    }

    .cta-wing__count {
        font-size: 0.95rem;
    }

    .cta-wing__label {
        font-size: 0.62rem;
    }
}

/* Invitation discrète à défiler, juste au-dessus des nuages */
.hero__more {
    position: absolute;
    left: 50%;
    bottom: calc(var(--nv-clouds-h) + 0.75rem);
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0.4rem 0.75rem;
    border-radius: 10px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    text-decoration: none;
    text-shadow: 0 1px 8px rgba(5, 30, 70, 0.9);
    transform: translateX(-50%);
}

.hero__more:hover {
    color: var(--nv-turq-light);
}

.hero__more .bi {
    font-size: 1.1rem;
    transition: transform 0.2s var(--nv-ease);
}

.hero__more:hover .bi {
    transform: translateY(3px);
}

@media (max-height: 640px) {
    .hero__more {
        display: none;
    }
}

/* Rejoindre */
.join {
    padding-top: calc(var(--nv-section) * 0.6);
}

.join__grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .join__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        gap: 4.5rem;
    }
}

.steps {
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.steps li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.steps li + li {
    margin-top: 1.4rem;
}

.steps__num {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 10px;
    background: var(--nv-sky-600);
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.22);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
}

.steps h3 {
    margin: 0.1rem 0 0.25rem;
    font-size: 1.2rem;
}

.steps p {
    margin: 0;
    color: var(--nv-text-2);
}

.steps strong {
    color: var(--nv-ink);
}

/* Liste des serveurs, inspirée de l'écran multijoueur du jeu */
.server-list {
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: var(--nv-radius-lg);
    background: #2c3846 url("../img/stone.png") repeat;
    background-size: 64px;
    image-rendering: pixelated;
    box-shadow: var(--nv-shadow-lg), inset 0 0 0 3px rgba(0, 0, 0, 0.25);
    color: #fff;
}

.server-list__title {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.server-entry {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.55);
    image-rendering: auto;
}

.server-entry p {
    margin: 0;
}

.server-entry__icon {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
}

.server-entry__name {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.server-entry__players {
    font-size: 0.95rem;
    color: #c9d3de;
}

.server-entry__motd {
    font-size: 0.95rem;
    color: #c9d3de;
}

.server-entry__address {
    font-size: 1rem;
    color: var(--nv-cyan);
}

.server-entry__version {
    align-self: start;
    font-size: 0.9rem;
    color: #c9d3de;
}

.server-list__actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
}

@media (max-width: 575.98px) {
    .server-entry {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .server-entry__icon {
        width: 56px;
        height: 56px;
    }

    .server-entry__version {
        grid-column: 2;
    }
}

/* Panorama du monde */
.panorama {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: clamp(560px, 88vh, 840px);
    padding: 6rem 0 calc(var(--nv-clouds-h) + 2.5rem);
    overflow: hidden;
}

.panorama__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 50% 55%;
}

.panorama::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(10, 45, 95, 0) 45%, rgba(10, 45, 95, 0.35) 100%);
}

.panorama__inner {
    position: relative;
    z-index: 2;
}

@media (max-width: 767.98px) {
    /* Sur mobile, le haut de la section reste réservé au paysage */
    .panorama {
        display: block;
        min-height: 0;
        padding-top: 62vw;
    }

    .panorama__bg {
        object-position: 72% 75%;
    }
}

.panorama__card {
    max-width: 34rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: var(--nv-radius-lg);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--nv-shadow-lg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.panorama__card p:not(.kicker) {
    margin: 1rem 0 0;
    font-size: 1.08rem;
    color: var(--nv-text);
}

/* Mosaïque des fonctionnalités */
.bento {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tile--elytra,
    .tile--rp {
        grid-column: span 2;
    }
}

@media (min-width: 992px) {
    .bento {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-auto-rows: minmax(250px, auto);
    }

    .tile--elytra { grid-column: 1 / 5; grid-row: span 2; }
    .tile--peoples,
    .tile--guilds { grid-column: 5 / 7; }
    .tile--chat { grid-column: 1 / 4; }
    .tile--rp { grid-column: 4 / 7; }
}

.tile {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: 280px;
    border-radius: var(--nv-radius-lg);
    overflow: hidden;
}

.tile__body {
    position: relative;
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.tile h3 {
    margin: 0 0 0.45rem;
    font-size: 1.45rem;
}

.tile p {
    margin: 0;
}

.tile .tile__tag {
    margin-bottom: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tile--photo {
    color: #fff;
}

.tile--photo img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--nv-ease);
}

.tile--photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(8, 28, 58, 0.92) 0%, rgba(8, 28, 58, 0.55) 40%, rgba(8, 28, 58, 0) 70%);
}

.tile--photo:hover img {
    transform: scale(1.04);
}

.tile--photo h3 {
    color: #fff;
}

.tile--photo .tile__tag {
    color: var(--nv-turq-light);
}

.tile--photo p:not(.tile__tag) {
    color: #e3eefa;
}

.tile--elytra h3 {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.tile--elytra p:not(.tile__tag) {
    max-width: 34rem;
    font-size: 1.05rem;
}

.tile--chat {
    background: linear-gradient(150deg, var(--nv-sky-500), var(--nv-sky-800));
    color: #fff;
}

.tile--chat h3 {
    color: #fff;
}

.tile--chat .tile__tag {
    color: #c8f6f7;
}

.tile--chat p:not(.tile__tag) {
    color: #e6f0fc;
}

.tile--chat .tile__body {
    max-width: 24rem;
}

/* Schéma du tchat de proximité : les joueurs proches s'entendent, les autres non */
.range {
    position: absolute;
    top: 50%;
    right: -60px;
    width: 300px;
    height: 300px;
    transform: translateY(-62%);
    opacity: 0.9;
}

.range span {
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(255, 255, 255, 0.35);
    border-radius: 50%;
}

.range span:nth-child(2) { inset: 50px; border-color: rgba(255, 255, 255, 0.5); }
.range span:nth-child(3) { inset: 100px; border-style: solid; border-color: rgba(255, 255, 255, 0.6); }

.range i {
    position: absolute;
    width: 16px;
    height: 16px;
}

.range__you { top: 142px; left: 142px; background: var(--nv-turq); box-shadow: 3px 3px 0 var(--nv-turq-edge); }
.range__near { top: 112px; left: 186px; background: #fff; }
.range__far { top: 30px; left: 40px; background: rgba(255, 255, 255, 0.35); }

.tile--rp p:not(.tile__tag) {
    max-width: 36rem;
}

.video {
    border-radius: var(--nv-radius-lg);
    overflow: hidden;
    box-shadow: var(--nv-shadow-lg);
}

.video iframe {
    border: 0;
}

/* Communauté à l'heure dorée */
.golden {
    --golden-ink: #2b1608;
    padding-bottom: calc(var(--nv-section) + var(--nv-clouds-h));
    background:
        radial-gradient(circle at 86% 18%, rgba(255, 246, 214, 0.95) 0, rgba(255, 246, 214, 0) 22%),
        linear-gradient(165deg, #ffd27a 0%, #fbb066 45%, #f2907a 100%);
    color: var(--golden-ink);
}

.golden .section__title {
    color: var(--golden-ink);
}

.golden .kicker::before {
    background: #fff;
    box-shadow: 3px 3px 0 #c4642a;
}

.golden__grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 992px) {
    .golden__grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 4rem;
    }
}

.golden .golden__grid--solo {
    grid-template-columns: minmax(0, 1fr);
    max-width: 46rem;
    margin-inline: auto;
    text-align: center;
}

.golden__grid--solo .kicker {
    justify-content: center;
}

.golden__text {
    max-width: 34rem;
    margin: 1rem 0 0;
    font-size: 1.12rem;
    color: #3d2311;
}

.golden__grid--solo .golden__text {
    margin-inline: auto;
}

.golden__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.golden__grid--solo .golden__actions {
    justify-content: center;
}

.news {
    padding: 1.5rem;
    border-radius: var(--nv-radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--nv-shadow-lg);
}

.news__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
}

.news__head h3 {
    margin: 0;
    font-size: 1.25rem;
}

.news__head a {
    font-weight: 700;
}

.news__item {
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 0;
    border-top: 1px solid var(--nv-sky-100);
}

.news__item img {
    width: 96px;
    height: 64px;
    flex: none;
    border-radius: 10px;
    object-fit: cover;
}

.news__item h4 {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
}

.news__item h4 a {
    color: var(--nv-ink);
    text-decoration: none;
}

.news__item p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--nv-text-3);
}

/* FAQ */
.faq {
    padding-top: calc(var(--nv-section) * 0.5);
}

.faq__container {
    max-width: 840px;
}

.faq__list {
    margin-top: 2rem;
}

.faq__item {
    margin-bottom: 0.75rem;
    border: 1px solid var(--nv-sky-200);
    border-radius: var(--nv-radius);
    background: #fff;
    box-shadow: 0 8px 20px -16px rgba(15, 69, 146, 0.4);
}

.faq__item summary {
    position: relative;
    display: block;
    padding: 1.15rem 3.5rem 1.15rem 1.35rem;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--nv-ink);
    cursor: pointer;
    list-style: none;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 1.25rem;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--nv-sky-600);
    transform: translateY(-50%);
    transition: transform 0.2s var(--nv-ease);
}

.faq__item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq__answer {
    padding: 0 1.35rem 1.35rem;
    color: var(--nv-text);
    line-height: 1.7;
}

.faq__answer p {
    margin: 0 0 0.75rem;
}

.faq__answer ol,
.faq__answer ul {
    margin: 0 0 0.85rem;
    padding-left: 1.4rem;
}

.faq__answer li {
    margin-bottom: 0.4rem;
    padding-left: 0.2rem;
}

.faq__answer li::marker {
    color: var(--nv-sky-700);
    font-weight: 700;
}

.faq__answer strong {
    color: var(--nv-ink);
}

.faq__answer > :last-child {
    margin-bottom: 0;
}

/* Dernier appel, au crépuscule */
.final {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: 460px;
    padding: 5rem 0 calc(var(--nv-clouds-h) + 4rem);
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.final__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.final::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(242, 144, 122, 0.45) 0%, rgba(60, 50, 110, 0.55) 45%, rgba(var(--nv-night-rgb), 0.92) 100%);
}

.final__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}

.final__title {
    margin: 0;
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    color: #fff;
    text-shadow: 0 2px 18px rgba(5, 20, 50, 0.6);
    text-wrap: balance;
}

/* 9. Pied de page : la nuit -------------------------------------------- */

.site-footer {
    position: relative;
    flex-shrink: 0;
    padding-bottom: 2rem;
    background-color: var(--nv-night);
    background-image:
        radial-gradient(1.5px 1.5px at 24px 40px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 130px 90px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 210px 30px, rgba(255, 228, 160, 0.9), transparent),
        radial-gradient(1px 1px at 300px 140px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 380px 70px, rgba(255, 255, 255, 0.8), transparent);
    background-size: 420px 180px;
    color: #c4d3e6;
}

.site-footer__inner {
    position: relative;
    padding-top: 1.5rem;
}

.site-footer .brand {
    margin-bottom: 1rem;
    color: #fff;
}

.brand--footer img {
    width: 44px;
    height: 44px;
}

.site-footer__about {
    max-width: 30rem;
    margin: 0;
    line-height: 1.7;
}

.site-footer__title {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nv-turq-light);
}

.site-footer__links,
.site-footer__social {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.site-footer__links li,
.site-footer__social li {
    margin-bottom: 0.35rem;
}

.site-footer__links a,
.site-footer__social a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 32px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__social a:hover {
    color: var(--nv-turq);
}

.site-footer__note {
    font-size: 0.875rem;
    color: #a8bbd3;
}

.site-footer .copy-address--inline {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.site-footer .server-status {
    margin-top: 0.75rem;
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.875rem;
    color: #a8bbd3;
}

.site-footer__bottom p {
    margin: 0;
}

.site-footer__bottom a {
    color: #fff;
}

/* 10. Mouvement --------------------------------------------------------- */

.has-reveal .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.7s var(--nv-ease);
}

.has-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
}

.hero__inner > * {
    animation: nv-rise 0.7s var(--nv-ease) both;
}

.hero__inner > :nth-child(2) { animation-delay: 0.05s; }
.hero__inner > :nth-child(3) { animation-delay: 0.1s; }
.hero__inner > :nth-child(4) { animation-delay: 0.15s; }
.hero__inner > :nth-child(n + 5) { animation-delay: 0.2s; }

@keyframes nv-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        transition-duration: 0.01ms !important;
    }
}
