/* Styles globaux pour BadgeUp */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #f4f6fb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header,
header.hero-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 2.5rem 1rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0;
    letter-spacing: -0.5px;
}

.hero-title-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

/* Barre de navigation horizontale blanche — identique sur toutes les pages */
header.navbar {
    background: rgba(255, 255, 255, 0.98);
    color: #2d3748;
    text-align: left;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 200;
    backdrop-filter: blur(8px);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.4rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    min-height: 64px;
    gap: 1rem;
}

/* Groupe marque BadgeUp + badge utilisateur sur la même ligne à droite */
.navbar-brand-group {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: #667eea;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* Badge affichant le nom de l'utilisateur connecté à droite de BadgeUp */
.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, #eef2ff 0%, #f3e8ff 100%);
    color: #4c51bf;
    border: 1px solid #c3dafe;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.12);
    white-space: nowrap;
}

.user-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #38a169;
    box-shadow: 0 0 0 2px rgba(56, 161, 105, 0.25);
    flex-shrink: 0;
}

.user-badge-hero {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 0.35rem 0.95rem;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(4px);
}

.user-badge-hero .user-badge-dot {
    background-color: #68d391;
    box-shadow: 0 0 0 2px rgba(104, 211, 145, 0.35);
}

.navbar-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-nav .nav-item {
    margin: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.95rem;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.nav-link:hover {
    background: #edf2ff;
    color: #5a67d8;
}

.nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.nav-link-cta {
    background: #edf2ff;
    color: #5a67d8;
    font-weight: 600;
}

.nav-link-cta:hover {
    background: #667eea;
    color: white;
}

.nav-logout-btn {
    color: #e53e3e;
    font-weight: 600;
}

.nav-logout-btn:hover {
    background: #fff5f5;
    color: #c53030;
}

.nav-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #f5576c;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

main {
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 1.25rem;
    flex: 1;
}

section {
    background: white;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
}

h2 {
    color: #4c51bf;
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
}

h3 {
    color: #6b46c1;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

h4 {
    color: #4a5568;
    margin: 1rem 0 0.5rem;
    font-size: 1.05rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.section-subtitle {
    color: #718096;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1.75rem;
}

.feature-card {
    background: #f8faff;
    border: 1px solid #e2e8f0;
    padding: 1.75rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.14);
    border-color: #c3dafe;
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

ol {
    padding-left: 1.5rem;
    margin: 1.25rem 0;
}

li {
    margin-bottom: 0.65rem;
    font-size: 1.05rem;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.6rem;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    margin: 0.35rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.98rem;
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-outline {
    background: white;
    color: #5a67d8;
    border: 1.5px solid #667eea;
}

.btn-outline:hover {
    background: #edf2ff;
}

.btn-ghost {
    background: #edf2f7;
    color: #4a5568;
}

.btn-ghost:hover {
    background: #fed7d7;
    color: #c53030;
    box-shadow: none;
}

.btn-block {
    width: 100%;
    margin: 0.5rem 0 0;
}

.logged-in-welcome {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 1rem;
}

.quick-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* Formulaires et Authentification */
.auth-section {
    max-width: 480px;
    margin: 2rem auto;
    padding: 2.25rem;
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 0.4rem;
}

.auth-subtitle {
    text-align: center;
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.auth-feedback {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.auth-feedback-error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.auth-feedback-success {
    background: #f0fff4;
    color: #2f855a;
    border: 1px solid #9ae6b4;
}

.form-group {
    margin-bottom: 1.15rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    color: #4a5568;
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    padding: 0.7rem 0.95rem;
    border: 1.5px solid #cbd5e0;
    border-radius: 8px;
    font-size: 0.98rem;
    font-family: inherit;
    color: #2d3748;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.18);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #718096;
}

.auth-footer a {
    color: #5a67d8;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Catalogue des badges */
.catalogue-section {
    padding: 2rem;
}

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.catalogue-search {
    display: flex;
    gap: 0.85rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.catalogue-search input[type="search"] {
    flex: 2;
    min-width: 240px;
}

.catalogue-search select {
    flex: 1;
    min-width: 170px;
}

.catalogue-status {
    color: #718096;
    font-size: 0.95rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.1rem;
    margin-top: 1rem;
}

.badge-card {
    position: relative;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.9rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    font-family: inherit;
}

.badge-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.14);
    border-color: #a3bffa;
}

.badge-card.selected {
    border-color: #5a67d8;
    background: #f8faff;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.35);
}

.badge-card-check {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #5a67d8;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.badge-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}

.badge-card-name {
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    color: #2d3748;
}

.badge-card-family {
    font-size: 0.75rem;
    color: #5a67d8;
    background: #edf2ff;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    font-weight: 500;
}

/* Modale d'agrandissement */
.badge-modal {
    position: fixed;
    inset: 0;
    background: rgba(26, 32, 44, 0.72);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.badge-modal[hidden] {
    display: none !important;
}

.badge-modal-content {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.badge-modal-content img {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.badge-modal-close {
    position: absolute;
    top: 0.6rem;
    right: 0.9rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #718096;
    line-height: 1;
}

.badge-modal-close:hover {
    color: #2d3748;
}

.badge-modal-meta {
    color: #5a67d8;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0.2rem 0 0.8rem;
}

.badge-modal-confirm {
    color: #2f855a;
    font-weight: 600;
    margin-top: 0.8rem;
    margin-bottom: 0;
}

/* Pagination du catalogue */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.75rem;
}

.page-info {
    font-weight: 600;
    color: #4a5568;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: default;
    transform: none;
    box-shadow: none;
}

/* Barre de sélection multi-badges */
.selection-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    background: #eef2ff;
    border: 1.5px solid #c3dafe;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
}

.selection-bar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selection-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: white;
    border: 1px solid #cbd5e0;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: border-color 0.2s, background 0.2s;
}

.selection-item:hover {
    border-color: #f5576c;
    background: #fff5f5;
}

.selection-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Cartes de l'accueil cliquables */
.feature-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Page partage */
.partage-section {
    padding: 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.partage-block {
    background: #f8faff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.partage-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.partage-block-header h3 {
    margin-bottom: 0;
}

.char-counter {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 600;
    background: #edf2f7;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
}

.char-counter-valid {
    background: #c6f6d5;
    color: #22543d;
}

.share-actions-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
}

.share-status {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.share-status-error {
    color: #c53030;
}

.share-status-success {
    color: #2f855a;
}

.selection-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.selection-detail-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.85rem 1rem;
}

.selection-detail-card img {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.selection-detail-card div {
    flex: 1;
}

.selection-detail-card p {
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-row.selected {
    border-color: #667eea;
    background: #eef2ff;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.25);
}

.contact-delete {
    margin-left: auto;
    background: none;
    border: none;
    color: #e53e3e;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0 0.3rem;
}

.contact-hint {
    color: #718096;
    font-size: 0.88rem;
    margin-top: -0.4rem;
    margin-bottom: 0;
}

.invitation-row {
    background: #fffaf0;
    border-color: #fbd38d;
}

.btn-small {
    padding: 0.45rem 1rem;
    font-size: 0.88rem;
    margin: 0;
}

.contact-form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.contact-form .form-input {
    flex: 1;
    min-width: 180px;
}

.shares-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.share-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
}

.share-badges {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0;
    flex-wrap: wrap;
}

.share-badges img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.share-message {
    color: #4a5568;
    font-style: italic;
    margin: 0;
}

/* Page album */
.album-section {
    padding: 2rem;
}

.album-tabs-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1rem 0 0.75rem;
}

.album-tabs {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.album-tab-create {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.album-tab {
    border: 1.5px solid #cbd5e0;
    background: white;
    color: #4a5568;
    border-radius: 999px;
    padding: 0.4rem 1.1rem;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.album-tab:hover {
    border-color: #667eea;
    color: #5a67d8;
}

.album-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.album-tabs-bar input[type="text"] {
    max-width: 220px;
}

.album-hint {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.album-status-bar {
    color: #4a5568;
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.album-canvas {
    position: relative;
    min-height: 500px;
    background-color: #f8faff;
    background-image: radial-gradient(#cbd5e0 1px, transparent 1px);
    background-size: 24px 24px;
    border: 2px dashed #cbd5e0;
    border-radius: 14px;
    overflow: hidden;
}

.album-badge {
    position: absolute;
    width: 108px;
    padding: 0.45rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    cursor: grab;
    touch-action: none;
    user-select: none;
    text-align: center;
    transition: box-shadow 0.2s;
}

.album-badge:hover {
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.2);
    border-color: #a3bffa;
}

.album-badge.dragging {
    cursor: grabbing;
    z-index: 10;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
    transform: scale(1.04);
}

.album-badge img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    pointer-events: none;
    display: block;
}

.album-badge-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2d3748;
    margin-top: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-modal-dedication {
    background: #f8faff;
    border-left: 3px solid #667eea;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-style: italic;
    color: #4a5568;
}

.modal-tab-group {
    text-align: left;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Options de partage nominatif WhatsApp (Direct / Groupe) et page d'invitation */
.whatsapp-mode-box {
    background: #f0fff4;
    border: 1.5px solid #9ae6b4;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.whatsapp-mode-box h4 {
    margin-top: 0;
    color: #22543d;
}

.whatsapp-mode-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
    margin-top: 0.6rem;
}

.whatsapp-mode-option {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    background: white;
    border: 1.5px solid #c6f6d5;
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
    cursor: pointer;
}

.whatsapp-mode-option input[type="radio"] {
    margin-top: 0.25rem;
}

.whatsapp-mode-option p {
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
    color: #4a5568;
}

.whatsapp-share-result {
    margin-top: 1rem;
    padding: 1rem 1.2rem;
    background: #f0fff4;
    border: 1.5px solid #9ae6b4;
    border-radius: 10px;
}

.whatsapp-share-result p {
    font-size: 0.92rem;
    margin: 0.35rem 0 0.65rem;
    color: #276749;
}

.share-card-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.invite-section {
    max-width: 680px;
    margin: 2rem auto;
}

.invite-card {
    text-align: center;
}

.invite-badge-pill {
    display: inline-block;
    background: linear-gradient(135deg, #eef2ff 0%, #f3e8ff 100%);
    color: #4c51bf;
    border: 1px solid #c3dafe;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.invite-recipient-box {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    background: #f8faff;
    border: 1px solid #cbd5e0;
    border-radius: 999px;
    padding: 0.45rem 1.15rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.invite-phone-mask {
    color: #4c51bf;
    font-weight: 600;
}

.invite-badges-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
    margin-bottom: 1.25rem;
}

.invite-action-area {
    margin-top: 1.5rem;
}

.invite-verify-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 420px;
    margin: 0 auto;
    text-align: left;
    background: #f8faff;
    border: 1px solid #e2e8f0;
    padding: 1.25rem;
    border-radius: 10px;
}

.invite-lock-notice {
    background: #edf2ff;
    color: #4c51bf;
    border: 1px solid #c3dafe;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-weight: 500;
}

/* Barre de vitrine publique, modale d'album enrichie et page de vérification */
.vitrine-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    background: #eef2ff;
    border: 1px solid #c3dafe;
    border-radius: 10px;
    padding: 0.65rem 1rem;
    margin-bottom: 0.85rem;
}

.badge-modal-wide {
    max-width: 560px;
}

.modal-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
    margin-top: 0.75rem;
}

.modal-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    text-align: left;
    margin-top: 0.85rem;
    background: #f8faff;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    color: #2d3748;
    font-weight: 500;
    cursor: pointer;
}

.verify-badge-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin: 0.5rem auto 1rem;
    display: block;
}

.verify-details-box {
    text-align: left;
    background: #f8faff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
    margin-top: 1.25rem;
}

.verify-details-box p {
    margin-bottom: 0.45rem;
    font-size: 0.95rem;
}

.vitrine-grid {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1rem;
}

/* Progression des séries et récompenses Épiques dans l'Album */
.series-progress-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.series-progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.serie-progress-card {
    background: #f8faff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.15rem;
}

.serie-progress-card.serie-completed {
    background: #f0fff4;
    border-color: #9ae6b4;
}

.serie-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    font-size: 0.92rem;
}

.serie-bar-bg {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.65rem;
}

.serie-bar-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.serie-completed .serie-bar-fill {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.serie-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.serie-code-pill {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #edf2f7;
    color: #718096;
    border: 1px solid #cbd5e0;
}

.serie-code-pill.owned {
    background: #c6f6d5;
    color: #22543d;
    border-color: #68d391;
}

footer {
    text-align: center;
    padding: 1.75rem;
    background: #2d3748;
    color: #e2e8f0;
    margin-top: auto;
}

footer p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Responsive design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    main {
        margin: 1rem auto;
        padding: 0 0.75rem;
    }
    
    section {
        padding: 1.25rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .selection-bar-actions {
        width: 100%;
        justify-content: flex-end;
    }
}