/* Aventludik : styles du site principal (landing, inscription, back-office). Les pages joueur surchargent les variables --bg/--fg/--accent. */
:root {
    --bg: #fbf8f3;
    --fg: #1f2933;
    --muted: #6b7280;
    --accent: #b3122a;
    --accent-fg: #ffffff;
    --card: #ffffff;
    --border: #e5e0d8;
    --ok: #166534;
    --ok-bg: #dcfce7;
    --err: #991b1b;
    --err-bg: #fee2e2;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    line-height: 1.55;
}

a { color: var(--accent); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 480px; }

/* En-tête */
.topbar { background: var(--card); border-bottom: 1px solid var(--border); }
.topbar .wrap { display: flex; align-items: center; gap: 24px; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--fg); text-decoration: none; }
.nav { display: flex; gap: 16px; flex: 1; flex-wrap: wrap; }
.nav a { color: var(--fg); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { border-bottom-color: var(--accent); }
.who { color: var(--muted); font-size: .9rem; }

main { padding: 32px 0 64px; }
h1 { font-size: 1.7rem; margin: 0 0 16px; }
h2 { font-size: 1.2rem; margin: 32px 0 12px; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 62ch; }

/* Cartes, grilles */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 16px 0; }
.stat .value { font-size: 1.8rem; font-weight: 700; }
.stat .label { color: var(--muted); font-size: .9rem; }

/* Tableaux */
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: #f5f1ea; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
.table-scroll { overflow-x: auto; }

/* Boutons et badges */
.btn { display: inline-block; background: var(--accent); color: var(--accent-fg); border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; background: #eee7da; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }

/* Filtres */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; align-items: center; }
.filters a { padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--fg); background: var(--card); }
.filters a.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filters input[type=search] { padding: 7px 12px; border: 1px solid var(--border); border-radius: 8px; font: inherit; }

/* Formulaires (rendu Symfony par défaut : <div><label/><input/></div>) */
form div { margin-bottom: 14px; }
form label { display: block; font-weight: 600; margin-bottom: 4px; }
form input[type=text], form input[type=email], form input[type=password], form input[type=number], form select, form textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #cfc8bb; border-radius: 8px; font: inherit; background: #fff; color: #1f2933;
}
/* Cases à cocher et boutons radio : la case et son libellé sur la même ligne, un choix par ligne */
form input[type=checkbox], form input[type=radio] { margin: 0 8px 0 0; width: auto; vertical-align: middle; }
form input[type=checkbox] + label, form input[type=radio] + label { display: inline; font-weight: 400; margin-bottom: 0; vertical-align: middle; cursor: pointer; }
form input[type=checkbox] + label::after, form input[type=radio] + label::after { content: ""; display: block; margin-bottom: 8px; }
form .plan label::after { content: none; }
form .plan label { font-weight: 400; }
form .help-text, form small, form p.help-text { color: var(--muted); font-size: .85rem; margin-top: 4px; display: block; }
form ul { list-style: none; padding: 0; margin: 4px 0 0; color: var(--err); font-size: .9rem; }
form fieldset { border: 0; padding: 0; margin: 0; }

/* Messages */
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.flash.success { background: var(--ok-bg); color: var(--ok); }
.flash.warning { background: #fff4d6; color: #7a5200; }
.flash.error { background: var(--err-bg); color: var(--err); }
.alert-error { background: var(--err-bg); color: var(--err); padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }

.muted { color: var(--muted); }
.hero { padding: 40px 0 8px; }
.hero h1 { font-size: 2.3rem; line-height: 1.2; max-width: 20ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.center { text-align: center; }

/* Espace joueur */
.player-body { background: var(--bg); color: var(--fg); }
.player-body { --muted: var(--fg); --muted: color-mix(in srgb, var(--fg) 80%, var(--bg)); }
.player-body .card, .player-body .game, .player-body .info-box { --muted: #6b7280; }
.player-body a { color: var(--fg); text-decoration: underline; }
.player-body .topbar a, .player-body a.btn, .player-body a.door, .player-body .card a { text-decoration: none; }
/* Un bouton garde un texte lisible quelle que soit la couleur choisie par le client */
.player-body a.btn { color: var(--accent-fg); }
.player-body a.btn.secondary { color: var(--fg); background: transparent; border: 1px solid var(--fg); }
.player-body .topbar { background: transparent; border-bottom: 1px solid rgba(255,255,255,.2); }
.player-body .brand, .player-body .who { color: var(--fg); }
.player-body .card { color: #1f2933; }
.player-body .card a { color: #b3122a; }
.logo { max-height: 48px; max-width: 160px; display: block; }
.day-banner { text-align: center; padding: 40px 16px; }
.day-banner .big { font-size: 4rem; font-weight: 800; line-height: 1; }

/* Navigation de la configuration d'un calendrier */
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 20px; border-bottom: 1px solid var(--border); }
.subnav a { padding: 8px 14px; text-decoration: none; border-bottom: 3px solid transparent; color: inherit; font-weight: 600; }
.subnav a.active, .subnav a:hover { border-bottom-color: var(--accent); }
.thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: #eee; display: block; }
.inline-form { display: inline; }
.btn.small { padding: 5px 12px; font-size: .9rem; }
.btn.danger { background: #b3122a; }

/* Achat : choix de la formule */
.plans { display: grid; gap: 12px; margin: 16px 0; }
.plan { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; background: var(--card); cursor: pointer; }
.plan input { margin-top: 4px; }
.plan:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.plan .plan-title { font-weight: 700; }
.plan .plan-price { margin-left: auto; font-weight: 800; white-space: nowrap; }
.plan label { margin: 0; cursor: pointer; flex: 1; }
.total-box { font-size: 1.2rem; font-weight: 800; margin: 16px 0; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--err-bg); color: var(--err); }

/* Grille des 24 jours */
.doors { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; margin: 20px 0; }
.door { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 12px; border: 2px solid rgba(255,255,255,.35); text-decoration: none; text-align: center; }
.door .n { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.door small { opacity: .85; margin-top: 4px; }
.door.today { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.door.playable { border-color: var(--accent); color: var(--fg); }
.door.locked, .door.missed { opacity: .45; cursor: not-allowed; }
.player-body a.door.today { color: var(--accent-fg); }
.player-body a.door.playable { color: var(--fg); }

@media (max-width: 600px) {
    h1 { font-size: 1.4rem; }
    .hero h1 { font-size: 1.8rem; }
    main { padding-top: 20px; }
}

/* Lots gagnés */
.choice-list { display: grid; gap: 8px; margin: 10px 0 16px; }
.choice-list .choice { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.info-box { margin: 12px 0; padding: 12px 16px; border-radius: 8px; background: #f4f1ea; color: #1f2933; border: 1px solid #e3dccb; }
.player-body a.door.missed { cursor: pointer; }

/* Jeux */
.game-frame { max-width: 680px; margin: 0 auto 24px; text-align: left; }
.game-frame h2 { text-align: center; }
.game { background: #fff; color: #1f2933; border-radius: 12px; padding: 20px; }
.game .muted { color: #6b7280; }
.game-question { border: 0; padding: 0; margin: 0 0 18px; }
.game-question legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.game-choice { display: flex; gap: 10px; align-items: center; padding: 8px 12px; margin: 4px 0; border: 1px solid #e3dccb; border-radius: 8px; cursor: pointer; }
.game-choice:hover { background: #f4f1ea; }
.game .btn { margin-top: 8px; }
.game-status { margin: 8px 0; }
.memory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 420px; margin: 12px auto; }
.memory-card { aspect-ratio: 1; border: 0; border-radius: 12px; background: var(--accent, #c8102e); color: var(--accent-fg, #fff); font-size: 2.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.memory-card:hover { transform: scale(1.04); }
.memory-card.shown { background: #f4f1ea; cursor: default; transform: none; }
.memory-card:not(.shown)::after { content: '?'; font-weight: 800; opacity: .7; }
.game-message { min-height: 1.4em; color: #b91c1c; text-align: center; }
.game-review li { margin: 6px 0; }
.game-review .ok { color: #166534; }
.game-review .ko { color: #b91c1c; }

/* Taquin */
.taquin-wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; justify-content: center; margin: 12px 0; }
.taquin-grid { touch-action: none; user-select: none; display: grid; gap: 3px; width: min(100%, 360px); aspect-ratio: 1; background: #d9d2c0; padding: 3px; border-radius: 10px; }
.taquin-tile { border: 0; padding: 0; border-radius: 6px; cursor: pointer; background-repeat: no-repeat; min-width: 0; }
.taquin-tile:not(.blank):hover { filter: brightness(1.12); }
.taquin-tile.blank { background: #f4f1ea; cursor: default; }
.taquin-model { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid #e3dccb; }

/* Roue */
.wheel-stage { position: relative; width: min(100%, 340px); margin: 24px auto 16px; }
.wheel { width: 100%; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.wheel svg { display: block; width: 100%; height: 100%; }
.wheel-pointer { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 0; height: 0; z-index: 2; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 30px solid #f5c542; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.wheel-action { text-align: center; }
.memory-card .face img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.memory-card.shown { padding: 0; overflow: hidden; }

/* Contenus des jeux (espace client) */
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin: 12px 0; }
.image-grid figure { margin: 0; text-align: center; }
.image-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--border, #e3dccb); }

/* Mots mêlés */
.ws-wrap { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: flex-start; margin: .8rem 0; }
.ws-grid { display: grid; width: min(100%, 420px); aspect-ratio: 1; touch-action: none; user-select: none; background: #fff; border: 2px solid var(--primary, #c0392b); border-radius: 10px; padding: 4px; }
.ws-cell { display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: clamp(.85rem, 3.4vw, 1.25rem); border-radius: 6px; cursor: pointer; aspect-ratio: 1; }
.ws-cell.selecting { background: #ffe9a8; }
.ws-cell.found { background: #bfe8c6; color: #14532d; }
.ws-words { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem .9rem; font-weight: 700; letter-spacing: .04em; }
.ws-words li.done { text-decoration: line-through; color: #14532d; opacity: .7; }

/* Labyrinthe */
.maze-wrap { max-width: 420px; margin: .8rem auto; background: #fff; border: 2px solid var(--primary, #c0392b); border-radius: 10px; padding: 4px; outline-offset: 3px; }
.maze-svg { width: 100%; height: auto; display: block; }
.maze-wall { stroke: #7b1e12; stroke-width: 2.4; stroke-linecap: round; }
.maze-trail { fill: none; stroke: #f4b400; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.maze-emoji { font-size: 20px; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.maze-pad { display: grid; grid-template-columns: repeat(4, 3.2rem); gap: .4rem; justify-content: center; margin: .6rem 0; }
.maze-pad .btn { padding: .5rem 0; font-size: 1.2rem; }

/* Casse-tête et rébus */
.rebus-prompt { font-size: clamp(2rem, 9vw, 3.4rem); text-align: center; margin: 1rem 0; letter-spacing: .15em; }
.riddle-prompt { font-size: 1.2rem; text-align: center; margin: 1rem auto; max-width: 36rem; font-style: italic; }
.answer-form { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin: 1rem 0; }
.answer-form input[type=text] { flex: 1 1 14rem; max-width: 24rem; padding: .6rem .8rem; font-size: 1.05rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.game .btn.secondary { color: #1f2933; background: #fff; border: 1px solid #9ca3af; }

.rebus-images { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin: 1rem 0; }
.rebus-images img { max-width: min(46%, 220px); max-height: 220px; object-fit: contain; border-radius: 8px; }
.rebus-plus { font-size: 2rem; font-weight: 700; }

/* Statistiques */
.bar { background: #eee7da; border-radius: 999px; height: 10px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent, #c0392b); border-radius: 999px; }

/* Emails personnalisables */
.email-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1080px) { .email-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.email-fallback { width: 100%; font-family: monospace; }
.email-editor-box .ql-editor { min-height: 280px; font-size: 1rem; }
.email-vars { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.email-var-help { margin: 0 0 14px; }
.email-var-help ul { margin: 8px 0; padding-left: 20px; }
.email-preview-box { position: sticky; top: 12px; }
.email-preview { width: 100%; height: 640px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.email-preview-subject { margin: 0 0 8px; min-height: 1.2em; }
.email-grid .editor-box { background: #fff; color: #1f2933; margin-bottom: 12px; }

/* Lots : choix des jours de mise en jeu */
.play-days-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; margin: 6px 0 10px; max-width: 520px; }
.day-pick { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; }
.play-days-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }

/* Pendu */
.hm-gallows { display: block; width: min(60%, 220px); height: auto; margin: .4rem auto; }
.hm-stroke { fill: none; stroke: #7b1e12; stroke-width: 5; stroke-linecap: round; }
.hm-word { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: 1rem 0; min-height: 2.6rem; }
.hm-cell { display: inline-flex; align-items: flex-end; justify-content: center; min-width: 1.7rem; height: 2.4rem; padding: 0 .1rem; border-bottom: 3px solid #1f2933; font-size: 1.6rem; font-weight: 700; letter-spacing: .02em; }
.hm-cell.hm-sep { border-bottom-color: transparent; min-width: .9rem; }
.hm-keys { display: grid; gap: .4rem; margin: .8rem auto; max-width: 30rem; }
.hm-row { display: flex; justify-content: center; gap: .3rem; }
.hm-key { flex: 1 1 0; max-width: 2.8rem; min-height: 2.6rem; padding: 0; border: 1px solid #9ca3af; border-radius: 6px; background: #fff; color: #1f2933; font: inherit; font-weight: 700; cursor: pointer; }
.hm-key:hover:not(:disabled) { background: #f3ede2; }
.hm-key:disabled { cursor: default; }
.hm-key.right { background: #bfe8c6; border-color: #4a9d5b; color: #14532d; }
.hm-key.wrong { background: #f6c9c4; border-color: #c0392b; color: #7b1e12; text-decoration: line-through; }
@media (max-width: 420px) { .hm-key { min-height: 2.9rem; max-width: none; } .hm-cell { min-width: 1.35rem; font-size: 1.35rem; } }
.hm-off { display: none; }

/* Puzzle */
.jigsaw-board { max-width: 760px; margin: .6rem auto; background: #f3ede2; border: 2px solid var(--primary, #c0392b); border-radius: 10px; overflow: hidden; }
.jigsaw-svg { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; touch-action: none; }
.jp-frame { fill: #fff; stroke: #c9bfae; stroke-width: 2; }
.jp-ghost { opacity: .16; transition: opacity .2s; }
.jigsaw-svg.show-model .jp-ghost { opacity: .6; }
.jp { cursor: grab; touch-action: none; }
.jp.dragging { cursor: grabbing; filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); }
.jp.locked { cursor: default; pointer-events: none; }
.jp-edge { stroke: rgba(31, 41, 51, .55); stroke-width: 1.6; stroke-linejoin: round; }
.jp.locked .jp-edge { stroke: rgba(31, 41, 51, .18); }
.jigsaw-tools { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }

/* Édition d'un jeu : boutons distincts par rôle */
.btn.success { background: #1b7f4b; color: #fff; }
.btn.info { background: #2b5fa8; color: #fff; }
.btn.success.disabled { background: #6b7280; }
.game-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 16px; }
.game-actions-bottom { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 0; }
h3.danger-zone { margin-top: 40px; color: #b3122a; }

.player-footer { text-align: center; padding: 24px 16px; font-size: .85rem; }
.player-footer a { color: inherit; opacity: .75; }
.privacy h1 { margin-top: 0; }

/* Site vitrine */
.demo-frame { padding: 24px 16px; border-radius: 12px; margin: 16px 0; }
.theme-switch { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.game-catalog .card { display: flex; flex-direction: column; gap: 4px; }
.game-catalog .card .btn { align-self: flex-start; margin-top: auto; }
.game-icon { font-size: 2rem; line-height: 1; }
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.steps .card { position: relative; padding-top: 44px; }
.steps .card::before { counter-increment: step; content: counter(step); position: absolute; top: 12px; left: 20px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; font-weight: 700; }
.features { list-style: none; padding: 0; display: grid; gap: 10px 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.features li::before { content: '✓ '; color: var(--accent); font-weight: 700; }
.offer .value { font-size: 2rem; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chips a { text-decoration: none; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; color: var(--fg); }

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-logo { height: 30px; width: auto; display: block; }
.hero-logo { max-width: 320px; width: 60%; height: auto; display: block; margin-bottom: 8px; }
.player-body .brand-logo { display: none; }

/* Accès responsable d'un point de retrait */
.desk-code .desk-row { display: flex; gap: .6rem; flex-wrap: wrap; margin: .4rem 0 1rem; }
.desk-code input[type=text] { flex: 1 1 12rem; font-size: 1.4rem; letter-spacing: .12em; text-transform: uppercase; padding: .6rem .8rem; }
.desk-result { border-radius: 10px; padding: 1rem 1.2rem; margin-top: .4rem; border: 2px solid; }
.desk-result.ok { border-color: #2e7d32; background: #eef7ee; color: #1b3a1d; }
.desk-result.warn { border-color: #b26a00; background: #fff6e5; color: #4a2f00; }
.desk-prize { font-size: 1.3rem; font-weight: 700; margin: 0 0 .4rem; }
.pickup-access { margin-top: .4rem; font-size: .9rem; }
.pickup-access input[type=text], .pickup-access input[type=email] { width: 100%; max-width: 26rem; }
.pickup-access .row { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin: .3rem 0; }

/* Pages légales, contact, pied de page du site */
.legal-page { max-width: 820px; }
.legal-page h2 { margin-top: 1.6rem; }
.legal-page ol.articles > li { margin-bottom: .8rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.site-footer { margin-top: 3rem; padding: 1.4rem 16px; border-top: 1px solid rgba(0,0,0,.12); text-align: center; font-size: .9rem; }
.site-footer a { margin: 0 .6rem; white-space: nowrap; }

/* Action dans une ligne de tableau (ex. « Relancer » dans la liste des clients) : compacte, alignée sur le texte */
td.row-action { white-space: nowrap; }
td.row-action form { margin: 0; }
td.row-action .btn.small { padding: 2px 10px; font-size: .85rem; line-height: 1.4; }
td.row-action small { display: block; margin-top: 4px; font-size: .8rem; }

/* Badges : texte centré sur une seule ligne, même hauteur que les petits boutons */
.badge { text-align: center; white-space: nowrap; line-height: 1.4; vertical-align: middle; }
/* Liste des clients : contenu des cellules centré verticalement, badges et boutons alignés */
table.clients-list td { vertical-align: middle; }
table.clients-list th.state, table.clients-list td.state { text-align: center; }
