:root {
    --color-fond:              #F2F5F2;
    --color-surface:           #CFDECF;
    --color-principal:         #5A8A5A;
    --color-principal-hover:   #4D754D;
    --color-accent:            #111111;
    --color-accent-hover:      #000000;
    --color-texte:             #111111;
}

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

body {
    font-family: Arial, sans-serif;
    background-color: var(--color-fond);
    color: var(--color-texte);
    min-height: 100vh;
}

/* ── Header ── */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px;
    background-color: white;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: var(--color-texte);
    text-decoration: none;
}

.logo-green { color: var(--color-principal); }

.logo-img-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

/* Icônes header sur fond blanc */
.header .btn-icon {
    color: var(--color-texte);
    opacity: 0.65;
}

.header .btn-icon:hover {
    background-color: rgba(17, 17, 17, 0.06);
    opacity: 1;
}

.header .btn-icon svg {
    stroke: currentColor;
}

/* ── Buttons ── */

.btn-primary {
    padding: 10px 22px;
    background-color: var(--color-accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
}

.btn-secondary {
    padding: 10px 22px;
    background-color: var(--color-principal);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: var(--color-principal-hover);
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
    color: white;
    display: inline-flex;
    align-items: center;
}

.btn-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ── Page d'accueil ── */

.accueil {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 62px);
    padding: 40px 20px;
}

.hero {
    text-align: center;
    max-width: 480px;
}

.hero-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 28px;
    color: var(--color-texte);
    margin-bottom: 12px;
}

.hero h1 .hero-brand {
    color: var(--color-principal);
}

.hero p {
    font-size: 17px;
    color: var(--color-texte);
    margin-bottom: 32px;
    line-height: 1.6;
    opacity: 0.7;
}

/* ── Bouton outline ── */

.btn-outline {
    padding: 10px 22px;
    background: transparent;
    color: var(--color-principal);
    border: 2px solid var(--color-principal);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: background-color 0.2s, color 0.2s;
}

.btn-outline:hover {
    background: var(--color-principal);
    color: white;
}

.hero-found-btn {
    display: block;
    margin-top: 14px;
    width: 100%;
}

/* ── Page profil ── */

.profil-page {
    max-width: 760px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.card {
    background: white;
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h2 {
    font-size: 20px;
    color: var(--color-texte);
}

/* Dans le card, le btn-icon doit être sombre */
.card .btn-icon {
    color: var(--color-texte);
}

.card .btn-icon:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

/* ── Lignes de détail ── */

.detail-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.07);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 14px;
    color: #888;
    font-weight: 500;
}

.detail-value {
    font-size: 14px;
    color: var(--color-texte);
    font-weight: 500;
    text-align: right;
}

/* ── Grille enfants ── */

.children-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.child-card {
    background: var(--color-surface);
    border: none;
    border-radius: 10px;
    padding: 14px 22px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-texte);
    transition: all 0.2s;
    min-width: 130px;
    text-align: center;
}

.child-card:hover {
    background-color: var(--color-principal);
    color: white;
}

.child-card--warning {
    border-color: #f0a500;
    background: #fffbf0;
    color: #c47d00;
}

.child-card--warning:hover {
    background-color: #f0a500;
    color: white;
}

.child-warning-icon {
    font-style: normal;
    font-size: 14px;
}

.qr-warning-banner {
    background: #fff8e6;
    border: 1px solid #f0c040;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: #856404;
    margin-bottom: 16px;
    line-height: 1.5;
}

.empty-msg {
    color: var(--color-texte);
    opacity: 0.4;
    font-style: italic;
    font-size: 14px;
}

/* ── Formulaires ── */

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: var(--color-texte);
    opacity: 0.7;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(17, 17, 17, 0.2);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
    font-family: inherit;
    background: white;
    color: var(--color-texte);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-principal);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.phone-input-wrap {
    display: flex;
    gap: 8px;
}
.phone-input-wrap input {
    flex: 1;
    min-width: 0;
}

/* ── Sélecteur de pays personnalisé ── */
.cpicker {
    position: relative;
    flex-shrink: 0;
}
.cpicker-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 10px;
    border: 1px solid rgba(17, 17, 17, 0.2);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    color: var(--color-texte);
    white-space: nowrap;
    height: 100%;
}
.cpicker-btn:focus { outline: none; border-color: var(--color-principal); }
.cpicker-btn img { border-radius: 2px; display: block; }
.cpicker-chevron { opacity: 0.4; }
.cpicker-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 200;
    background: white;
    border: 1px solid rgba(17, 17, 17, 0.15);
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    max-height: 220px;
    overflow-y: auto;
    min-width: 210px;
}
.cpicker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    color: var(--color-texte);
}
.cpicker-item:hover { background: var(--color-fond); }
.cpicker-item img { border-radius: 2px; flex-shrink: 0; }
.cpicker-item-code { opacity: 0.45; margin-left: auto; font-size: 13px; }

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

/* ── Modales ── */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: white;
    border-radius: 14px;
    padding: 28px;
    width: 90%;
    max-width: 460px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.modal-header h3 {
    font-size: 20px;
    color: var(--color-texte);
}

.modal-header-actions {
    display: flex;
    gap: 4px;
}

.modal .btn-icon {
    color: var(--color-texte);
    opacity: 0.5;
}

.modal .btn-icon:hover {
    background-color: rgba(0, 0, 0, 0.06);
    opacity: 1;
}

.modal .btn-icon-danger {
    color: var(--color-accent);
}

.modal .btn-icon-danger:hover {
    background-color: rgba(17, 17, 17, 0.1);
}

/* ── Header actions (panier + menu) ── */

.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cart-icon {
    position: relative;
    font-size: 20px;
    text-decoration: none;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-accent);
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    pointer-events: none;
}

/* ── Menu navigation ── */

.nav-menu {
    position: relative;
}

.dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    min-width: 190px;
    overflow: hidden;
    z-index: 500;
    border: 1px solid rgba(0, 0, 0, 0.06);
    animation: dropdownOpen 0.18s ease;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 14px;
    width: 12px;
    height: 12px;
    background: white;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    transform: rotate(45deg);
}

@keyframes dropdownOpen {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--color-texte);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.07);
    transition: background-color 0.15s, color 0.15s;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--color-surface);
    color: var(--color-principal);
}

/* ── Boutique ── */

.shop-subtitle {
    color: var(--color-texte);
    opacity: 0.6;
    font-size: 16px;
    margin-bottom: 28px;
    line-height: 1.5;
}

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

.product-card {
    background: var(--color-surface);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.product-photo {
    background: white;
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    overflow: hidden;
}

.product-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info h3 {
    font-size: 17px;
    color: var(--color-texte);
    margin-bottom: 10px;
}

.product-desc {
    font-size: 14px;
    color: var(--color-texte);
    opacity: 0.6;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 22px;
    font-weight: bold;
    color: var(--color-principal);
}

/* ── Panier ── */

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
    gap: 12px;
}

.cart-item-name {
    font-size: 15px;
    color: var(--color-texte);
    flex: 1;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    background: white;
    border: 1px solid rgba(90, 138, 90, 0.4);
    border-radius: 6px;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    color: var(--color-principal);
    transition: background-color 0.15s;
}

.qty-btn:hover {
    background: var(--color-principal);
    color: white;
}

.qty-value {
    font-size: 16px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.cart-item-price {
    font-size: 15px;
    font-weight: bold;
    color: var(--color-texte);
    min-width: 50px;
    text-align: right;
}

.btn-danger {
    padding: 10px 22px;
    background-color: rgba(17, 17, 17, 0.08);
    color: var(--color-accent);
    border: 1px solid rgba(17, 17, 17, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.2s, color 0.2s;
}

.btn-danger:hover {
    background-color: var(--color-accent);
    color: white;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0 0;
    font-size: 18px;
    font-weight: bold;
    color: var(--color-texte);
    margin-top: 8px;
}

/* ── Pages de contenu (Aide, Qui sommes-nous) ── */

.content-page {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
}

.content-page--wide {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.content-page h1 {
    font-size: 28px;
    color: var(--color-texte);
    margin-bottom: 28px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    font-size: 16px;
    color: var(--color-texte);
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 15px;
    color: var(--color-texte);
    opacity: 0.65;
    line-height: 1.6;
}

.faq-item a {
    color: var(--color-principal);
    text-decoration: none;
}

.faq-item a:hover {
    text-decoration: underline;
}

.about-block {
    text-align: center;
    margin-bottom: 28px;
}

.about-icon {
    font-size: 56px;
    margin-bottom: 12px;
}

.about-block h2 {
    font-size: 24px;
    color: var(--color-principal);
    margin-bottom: 10px;
}

.about-block p {
    font-size: 16px;
    color: var(--color-texte);
    opacity: 0.65;
    line-height: 1.6;
}

/* ── Désactivation QR Code ── */

.section-desc {
    font-size: 14px;
    color: var(--color-texte);
    opacity: 0.55;
    margin-bottom: 18px;
    line-height: 1.5;
}

.qr-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
    gap: 12px;
}

.qr-row:last-child {
    border-bottom: none;
}

.qr-item {
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.qr-item:last-child {
    border-bottom: none;
}

.qr-item .qr-row {
    border-bottom: none;
}

.qr-row-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qr-row-code {
    font-weight: bold;
    font-size: 15px;
    color: var(--color-texte);
}

.qr-row-enfant {
    font-size: 14px;
    color: var(--color-texte);
    opacity: 0.5;
}

.qr-add-form {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.qr-add-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(17, 17, 17, 0.2);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.qr-row-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.qr-associer-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 0 12px;
    border-top: 1px dashed rgba(17, 17, 17, 0.1);
}

.qr-associer-form select {
    flex: 1;
    min-width: 160px;
    padding: 7px 10px;
    border: 1px solid rgba(17, 17, 17, 0.2);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: white;
}

.qr-badge-desactive {
    font-size: 12px;
    font-weight: bold;
    color: var(--color-texte);
    opacity: 0.4;
    background: rgba(17, 17, 17, 0.08);
    border-radius: 20px;
    padding: 4px 12px;
}

.btn-danger-outline {
    padding: 7px 16px;
    background: white;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-danger-outline:hover {
    background: var(--color-accent);
    color: white;
}

/* ── Utilitaires ── */

.hidden {
    display: none !important;
}

/* ── Dropdown : séparateur et bouton déconnexion ── */

.dropdown-sep {
    height: 1px;
    background: rgba(17, 17, 17, 0.07);
    margin: 4px 0;
}

button.dropdown-item,
.dropdown-logout {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 14px;
}

/* ── Page connexion / inscription ── */

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(17, 17, 17, 0.15);
    max-width: 420px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: var(--color-texte);
    opacity: 0.5;
    transition: background-color 0.2s, color 0.2s, opacity 0.2s;
    font-family: inherit;
}

.auth-tab.active {
    background: var(--color-principal);
    color: white;
    font-weight: bold;
    opacity: 1;
}

.auth-form {
    max-width: 420px;
}

.auth-error {
    font-size: 14px;
    color: var(--color-accent);
    margin-bottom: 12px;
    padding: 10px 14px;
    background: rgba(17, 17, 17, 0.07);
    border-radius: 8px;
    border: 1px solid rgba(17, 17, 17, 0.25);
}

/* ── Page administration ── */

.admin-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--color-surface);
    border-radius: 12px;
    padding: 20px 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 110px;
}

.stat-card strong {
    font-size: 28px;
    color: var(--color-principal);
}

.stat-card span {
    font-size: 13px;
    color: var(--color-texte);
    opacity: 0.5;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th {
    background: var(--color-fond);
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-texte);
    opacity: 0.5;
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
    white-space: nowrap;
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.06);
    color: var(--color-texte);
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-row-clickable {
    cursor: pointer;
}

.admin-table tr.admin-row-clickable:hover td {
    background: var(--color-surface);
}

.enfants-count {
    display: inline-block;
    background: var(--color-surface);
    color: var(--color-principal);
    font-weight: bold;
    font-size: 13px;
    border-radius: 12px;
    padding: 2px 10px;
}

.modal--large {
    max-width: 600px;
}

.admin-enfant-card {
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    background: var(--color-fond);
}

.admin-enfant-card:last-child {
    margin-bottom: 0;
}

.admin-enfant-header {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--color-texte);
}

.admin-enfant-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.admin-enfant-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.loading-row {
    text-align: center;
    color: var(--color-texte);
    opacity: 0.35;
    font-style: italic;
    padding: 32px !important;
}

.role-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.role-admin {
    background: rgba(17, 17, 17, 0.12);
    color: var(--color-accent);
}

.role-utilisateur {
    background: var(--color-surface);
    color: var(--color-principal);
}

.btn-small {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    font-family: inherit;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}

.btn-small.btn-primary {
    background: var(--color-accent);
    color: white;
    display: inline-block;
    padding: 6px 14px;
}

.btn-small.btn-primary:hover {
    background: var(--color-accent-hover);
}

.btn-small.btn-danger {
    background: rgba(17, 17, 17, 0.08);
    color: var(--color-accent);
    border: 1px solid rgba(17, 17, 17, 0.3);
    display: inline-block;
    padding: 6px 14px;
}

.btn-small.btn-danger:hover {
    background: var(--color-accent);
    color: white;
}

/* ── Onglets admin ── */

.admin-tabs {
    display: flex;
    width: fit-content;
    max-width: 100%;
    border: 1px solid rgba(17, 17, 17, 0.15);
    border-radius: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 24px;
    background: white;
    -webkit-overflow-scrolling: touch;
}

/* ── Champ mot de passe avec toggle visibilité ── */

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 42px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--color-texte);
    opacity: 0.4;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
}

.password-toggle:hover {
    opacity: 0.8;
}

.admin-tab {
    padding: 10px 28px;
    background: white;
    border: none;
    border-right: 1px solid rgba(17, 17, 17, 0.1);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-texte);
    opacity: 0.5;
    transition: background-color 0.2s, color 0.2s, opacity 0.2s;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.admin-tab:last-child { border-right: none; }

.admin-tab.active {
    background: var(--color-principal);
    color: white;
    opacity: 1;
}

/* ── Formulaire d'ajout QR Code (admin) ── */

.qr-add-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.qr-add-input {
    padding: 10px 14px;
    border: 1px solid rgba(17, 17, 17, 0.2);
    border-radius: 8px;
    font-size: 15px;
    font-family: monospace;
    font-weight: bold;
    letter-spacing: 1px;
    width: 150px;
    transition: border-color 0.2s;
    background: white;
    color: var(--color-texte);
}

.qr-add-input:focus {
    border-color: var(--color-principal);
    outline: none;
}

.qr-add-msg {
    margin-top: 10px;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 8px;
}

.qr-add-msg--success {
    background: var(--color-surface);
    color: var(--color-principal);
    border: 1px solid rgba(90, 138, 90, 0.35);
}

.qr-add-msg--error {
    background: rgba(17, 17, 17, 0.07);
    color: var(--color-accent);
    border: 1px solid rgba(17, 17, 17, 0.25);
}

/* ── Badges de statut QR Code (admin) ── */

.qr-status-badge {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.qr-status-libre     { background: var(--color-surface); color: var(--color-principal); }
.qr-status-occupe    { background: rgba(230, 160, 40, 0.15); color: #b07800; }
.qr-status-associe   { background: rgba(40, 100, 200, 0.12); color: #1a5fbf; }
.qr-status-desactive { background: rgba(17, 17, 17, 0.08); color: var(--color-texte); opacity: 0.45; }

.qr-id-code {
    font-family: monospace;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* ── Bouton small variante success (vert) ── */

.btn-small.btn-secondary {
    background: var(--color-principal);
    color: white;
    display: inline-block;
    padding: 6px 14px;
}

.btn-small.btn-secondary:hover {
    background: var(--color-principal-hover);
}

.btn-small.btn-success {
    background: rgba(34, 139, 34, 0.08);
    color: #1a7a32;
    border: 1px solid rgba(34, 139, 34, 0.3);
    display: inline-block;
    padding: 6px 14px;
}

.btn-small.btn-success:hover {
    background: #228b22;
    color: white;
}

/* ── Badges de statut Signalement ── */

.signal-badge {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.signal-ouvert { background: rgba(17, 17, 17, 0.12); color: var(--color-accent); }
.signal-ferme  { background: var(--color-surface);     color: var(--color-principal); opacity: 0.6; }

/* ── Page modèles d'emails ── */

.email-template-card {
    margin-bottom: 28px;
}

.email-template-card .card-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

.email-template-desc {
    font-size: 13px;
    color: var(--color-texte);
    opacity: 0.5;
    margin-top: 4px;
    font-weight: normal;
}

.email-template-updated {
    font-size: 12px;
    color: var(--color-texte);
    opacity: 0.35;
    white-space: nowrap;
    margin-top: 4px;
}

.email-body-area {
    min-height: 200px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.6;
}

.placeholder-tag {
    display: inline-block;
    background: var(--color-surface);
    color: var(--color-principal);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 13px;
    font-family: monospace;
    margin: 0 2px;
}

/* ── Hero cards (index) ── */

.hero-shield-wrap {
    width: 110px;
    height: 110px;
    background: var(--color-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
}

.hero-logo-img {
    width: 68px;
    height: auto;
}

.hero-card {
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 16px;
    padding: 18px 20px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    font-family: inherit;
    text-align: left;
    width: 100%;
    transition: opacity 0.15s;
    margin-bottom: 12px;
}

.hero-card:hover { opacity: 0.88; }

.hero-card--dark {
    background: var(--color-texte);
    color: white;
}

.hero-card--light {
    background: white;
    color: var(--color-texte);
    box-shadow: 0 2px 12px rgba(17, 17, 17, 0.08);
}

.hero-card-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.hero-card--dark .hero-card-icon-wrap {
    background: rgba(255, 255, 255, 0.15);
}

.hero-card--light .hero-card-icon-wrap {
    background: var(--color-surface);
}

.hero-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hero-card-body strong {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.3;
}

.hero-card--dark .hero-card-body strong { color: white; }
.hero-card--light .hero-card-body strong { color: var(--color-texte); }

.hero-card-body span {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.6;
}

.hero-card-arrow {
    font-size: 20px;
    opacity: 0.35;
    flex-shrink: 0;
}

.hero-security {
    font-size: 13px;
    color: var(--color-texte);
    opacity: 0.4;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ── Test d'impression (admin) ── */

.test-color-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.test-color-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.18s;
}

.test-color-opt:has(input:checked) {
    border-color: var(--color-principal);
}

.test-color-opt input[type="checkbox"] {
    accent-color: var(--color-principal);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.test-swatch {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.test-color-opt span {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-texte);
    white-space: nowrap;
}

input.test-size-input {
    width: 80px;
    padding: 7px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--color-texte);
    background: var(--color-fond);
    text-align: center;
}
