@import url('https://fonts.googleapis.com/css?family=Rancho&effect=shadow-multiple');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --neon: #FF04C3;
    --bg: #030303;
    --bg-card: #0d0d0d;
    --bg-soft: #151515;
    --text: #ffffff;
    --text-soft: #cfcfcf;
    --border: rgba(255, 4, 195, 0.25);
    --shadow:
        0 0 10px rgba(255, 4, 195, 0.35),
        0 0 20px rgba(255, 4, 195, 0.15);
}

/* =========================================================
   BASE
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    background:
        radial-gradient(
            circle at top,
            rgba(255, 4, 195, 0.15) 0%,
            #050505 35%,
            #000000 100%
        );
    color: var(--text);
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: var(--neon);
    border-radius: 999px;
}

/* =========================================================
   LAYOUT
========================================================= */

.container {
    width: min(1100px, 92%);
    margin-left: auto;
    margin-right: auto;
}

.page-center {
    min-height: 100vh;
    width: min(1100px, 92%);
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* =========================================================
   TYPOGRAPHIE
========================================================= */

h1,
h2,
h3 {
    font-family: 'Rancho', cursive;
    letter-spacing: 1px;
    color: #fff;
    line-height: 1.1;
    text-align: center;
    text-shadow:
        0 0 8px var(--neon),
        0 0 18px rgba(255, 4, 195, 0.7);
}

h1 {
    font-size: 3.2rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.7rem;
}

p {
    line-height: 1.6;
    color: var(--text-soft);
}

small {
    opacity: 0.8;
}

/* =========================================================
   CARTES
========================================================= */

.app-card {
    background:
        linear-gradient(
            180deg,
            rgba(20, 20, 20, 0.96),
            rgba(8, 8, 8, 0.96)
        );
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    transition: 0.3s;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.app-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 20px rgba(255, 4, 195, 0.5),
        0 0 40px rgba(255, 4, 195, 0.25);
}

.app-card h1,
.app-card h2,
.app-card h3,
.app-card p,
.app-card small {
    text-align: center;
}

.app-card h1,
.app-card h2 {
    line-height: 1.15;
}

/* =========================================================
   FORMULAIRES
========================================================= */

form {
    width: 100%;
}

input,
select,
textarea {
    width: 100%;
    max-width: 620px;
    background: #0f0f0f;
    border: 1px solid rgba(255, 4, 195, 0.2);
    color: white;
    border-radius: 14px;
    padding: 14px;
    margin: 8px auto 16px;
    outline: none;
    transition: 0.3s;
    font-family: 'Outfit', sans-serif;
    display: block;
}

input,
textarea {
    text-align: center;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--neon);
    box-shadow: 0 0 10px rgba(255, 4, 195, 0.5);
}

label {
    display: block;
    text-align: center;
    margin-bottom: 8px;
    color: var(--text-soft);
    font-weight: 600;
}

/* =========================================================
   BOUTONS
========================================================= */

.btn-main,
.btn-gold,
button.btn-main,
button.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    background: var(--neon);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 14px 22px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
    font-family: 'Outfit', sans-serif;
    box-shadow:
        0 0 10px rgba(255, 4, 195, 0.6),
        0 0 25px rgba(255, 4, 195, 0.25);
}

.btn-main:hover,
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 20px rgba(255, 4, 195, 0.85),
        0 0 40px rgba(255, 4, 195, 0.35);
}

.app-card .btn-main,
.app-card .btn-gold {
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   BADGES
========================================================= */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(255, 4, 195, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 4, 195, 0.45);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    margin-top: 8px;
    box-shadow: 0 0 10px rgba(255, 4, 195, 0.35);
}

/* =========================================================
   LIENS
========================================================= */

a {
    color: var(--neon);
    text-decoration: none;
}

a:hover {
    opacity: 0.85;
}

/* =========================================================
   TABLEAUX
========================================================= */

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

table th {
    color: var(--neon);
}

/* =========================================================
   POSITION / FILE
========================================================= */

.position-big {
    font-size: 5rem;
    font-family: 'Rancho', cursive;
    color: #fff;
    text-shadow:
        0 0 15px var(--neon),
        0 0 30px rgba(255, 4, 195, 0.8);
}

/* =========================================================
   SÉPARATEUR NÉON
========================================================= */

.neon-line {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            transparent,
            var(--neon),
            transparent
        );
    margin: 20px 0;
    box-shadow: 0 0 15px rgba(255, 4, 195, 0.7);
}

/* =========================================================
   ALIGNEMENT GLOBAL RENFORCÉ
========================================================= */

body .container,
body .page-center {
    margin-left: auto !important;
    margin-right: auto !important;
}

body .app-card {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body .app-card h1,
body .app-card h2,
body .app-card h3,
body .app-card p,
body .app-card small {
    text-align: center !important;
}

body .app-card h1,
body .app-card h2,
body .app-card h3 {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 1.15 !important;
}

/* Titres spéciaux */
body .dashboard-title,
body .stats-title,
body .qr-title {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
}

/* Blocs haut de page */
body .dashboard-hero .app-card,
body .stats-hero .app-card,
body .qr-wrapper .app-card {
    text-align: center !important;
}

/* Message d'accueil */
body .dashboard-message-box,
body .dashboard-message-box p,
body .dashboard-message-box small {
    text-align: center !important;
}

body .dashboard-slogan {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

/* Badges */
body .badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Boutons */
body .btn-main,
body .btn-gold,
body button.btn-main,
body button.btn-gold {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

body .app-card .btn-main,
body .app-card .btn-gold {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Boutons déroulants */
body .dashboard-toggle,
body .stats-toggle {
    text-align: center !important;
    justify-content: center !important;
}

/* Formulaires */
body .app-card form {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body .app-card input,
body .app-card select,
body .app-card textarea {
    width: 100% !important;
    max-width: 620px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

body .app-card input,
body .app-card textarea {
    text-align: center !important;
}

body .app-card label {
    display: block !important;
    text-align: center !important;
    margin-bottom: 8px !important;
}

/* Grilles */
body .grid,
body .dashboard-mini-grid,
body .stats-mini-grid {
    justify-items: center !important;
}

body .grid > *,
body .dashboard-mini-grid > *,
body .stats-mini-grid > * {
    width: 100% !important;
}

/* Cartes internes */
body .dashboard-mini-card,
body .stats-mini-card {
    text-align: center !important;
}

/* Lignes détails */
body .dashboard-row,
body .stats-row {
    text-align: center !important;
}

body .dashboard-row-title,
body .stats-row-title {
    text-align: center !important;
}

/* Tables : on garde les tableaux lisibles à gauche */
body table th,
body table td {
    text-align: left !important;
}

/* Classe utilitaire pour forcer à gauche */
body .text-left,
body .text-left h1,
body .text-left h2,
body .text-left h3,
body .text-left p,
body .text-left span,
body .text-left small,
body .text-left div {
    text-align: left !important;
}

/* Classe utilitaire pour forcer au centre */
body .text-center,
body .text-center h1,
body .text-center h2,
body .text-center h3,
body .text-center p,
body .text-center span,
body .text-center small,
body .text-center div {
    text-align: center !important;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {
    h1 {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .app-card {
        padding: 18px;
    }

    .btn-main,
    .btn-gold {
        width: 100%;
    }
}

@media (max-width: 600px) {
    body .container,
    body .page-center {
        width: 92% !important;
    }

    body .app-card {
        padding-left: 22px !important;
        padding-right: 22px !important;
    }

    body .app-card h1 {
        font-size: 2.2rem !important;
    }

    body .app-card h2 {
        font-size: 1.8rem !important;
    }

    body .app-card p {
        line-height: 1.65 !important;
    }

    body input,
    body select,
    body textarea {
        max-width: 100% !important;
    }
}