/* --- Reset léger --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Corps de page --- */
html {
    font-size: 16px;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    color: #111827;          /* gris très foncé */
    background: #f3f4f6;     /* gris clair */
    min-height: 100vh;
}

/* --- Structure principale --- */
body > header {
    padding: 1rem 1.25rem;
    background: #111827;
    color: #f9fafb;
    box-shadow: 0 2px 4px rgba(0,0,0,.2);
}

body > header h1 {
    font-size: 1.25rem;
    font-weight: 600;
}

header span {
    font-size: 12px;
}

img#qr_code_click {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 42px;
    cursor: pointer;
}

.hide {
    display: none !important;
}

main {
    padding: 1rem 1.25rem 5rem; /* padding bas + grand pour le bouton flottant */
    max-width: 768px;
    margin: 0 auto;
    padding-bottom: 6rem; /* espace sous les cartes */
}

section {
    margin-top: 0.75rem;
}

/* --- Texte générique --- */
p {
    margin-bottom: .75rem;
}

/* --- Boutons génériques --- */
button {
    font: inherit;
    cursor: pointer;
    border: none;
}

/* Liens */
a {
    color: #2563eb;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.btn {
    font: inherit;
    cursor: pointer;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 0.6rem;
    font-weight: 600;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: 0.15s ease-in-out;
    user-select: none;
}

/* --- Bouton de base --- */
.btn {
    font: inherit;
    cursor: pointer;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 0.6rem;
    font-weight: 600;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: 0.15s ease-in-out;
    user-select: none;
}

/* --- Variantes de couleur --- */
.btn-primary {
    background: #2563eb;
    color: #f9fafb;
}
.btn-primary:hover {
    background: #1e4fd6;
}
.btn-primary:active {
    background: #1b46bf;
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
}
.btn-secondary:hover {
    background: #d4d6da;
}
.btn-secondary:active {
    background: #caced4;
}

.btn-danger {
    background: #dc2626;
    color: #fef2f2;
}
.btn-danger:hover {
    background: #b91c1c;
}
.btn-danger:active {
    background: #991b1b;
}

.btn-danger-confirm {
    background: #991b1b !important;
}

/* --- Tailles --- */
.btn-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    border-radius: 0.4rem;
}

.btn-lg {
    padding: 0.9rem 1.4rem;
    font-size: 1.05rem;
    border-radius: 0.9rem;
}

/* --- Boutons ronds --- */
.btn-round {
    border-radius: 999px;
    padding: 0.75rem 1.1rem;
}

/* --- Bouton flottant (FAB) --- */
.btn-fab {
    position: fixed;
    bottom: 1.75rem; /* au lieu de 1.25rem par ex. */
    right: 1.25rem;
    z-index: 100;

    border-radius: 999px;
    padding: 0.9rem 1.3rem;

    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}
.btn-fab:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(0,0,0,0.3);
}
.btn-fab:active {
    transform: translateY(1px);
}

#qr_code_print {
    position: absolute;
    top: 62px;
    left: 0;
    width: 100%;
    background: #88888888;
    height: 100%;
    text-align: center;
}

#qr_code_print img {
    width: 80%;
    margin-top: 50px;
    border: 1px solid black;
}
