/* ═══ « Tirages » : outil instantané public (/tirages), étape 1 du 02/12/2026 ═══
   Tout est préfixé .tg : la page vit dans l'habillage du site public (landing.css), rien n'en hérite ni n'y déborde.
   Charte des modules : h1 1,85 rem avec icône #4f8cff et sous-titre, boutons au gabarit .soc-btn, jamais pleine largeur
   sauf l'action principale sur téléphone. Les couleurs passent par des variables posées sur .tg : le mode sombre
   « Bleu nuit » (.tg.tg-sombre, pour l'affichage dans l'application) n'a qu'à les redéfinir. */
.tg { --tg-accent: #4f8cff; --tg-accent-fonce: #3a7ae0; --tg-encre: #272E40; --tg-doux: #64748b; --tg-bord: #dfe5ef; --tg-fond: #ffffff; --tg-fond2: #f4f7fc; --tg-alerte: #b42318; --tg-alerte-fond: #fef3f2;
    max-width: 1040px; margin: 0 auto; padding: 108px 20px 64px; color: var(--tg-encre); font-family: 'Montserrat', system-ui, sans-serif; }
.tg.tg-sombre { --tg-encre: #e6ecf7; --tg-doux: #9fb0cc; --tg-bord: #2c3a55; --tg-fond: #162033; --tg-fond2: #1d2a42; --tg-alerte: #ffb4ab; --tg-alerte-fond: #3a1d1d; }
.tg *, .tg *::before, .tg *::after { box-sizing: border-box; }
.tg [hidden] { display: none !important; }

/* ── Titre ── */
.tg-tete h1 { font-size: 1.85rem; line-height: 1.2; font-weight: 800; margin: 0 0 .35rem; color: var(--tg-encre); }
.tg-tete h1 i { color: var(--tg-accent); margin-right: .35rem; }
.tg-sous { margin: 0 0 1.4rem; color: var(--tg-doux); font-size: 1rem; line-height: 1.5; max-width: 62ch; }

/* ── Onglets ── */
.tg-onglets { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 1.1rem; }
.tg-onglets a { display: inline-flex; align-items: center; gap: 7px; padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--tg-bord); background: var(--tg-fond); color: var(--tg-encre); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.tg-onglets a:hover { border-color: var(--tg-accent); text-decoration: none; }
.tg-onglets a.actif { background: var(--tg-accent); border-color: var(--tg-accent); color: #fff; }
.tg-onglets a:focus-visible, .tg-btn:focus-visible, .tg-lien:focus-visible { outline: 3px solid rgba(79,140,255,.45); outline-offset: 2px; }

/* ── Carte ── */
.tg-carte { background: var(--tg-fond); border: 1px solid var(--tg-bord); border-radius: 14px; padding: 22px; }
.tg-colonnes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.tg-col { min-width: 0; }
.tg-label { display: block; font-weight: 700; font-size: .92rem; margin: 0 0 .4rem; }
.tg-compte { font-weight: 500; color: var(--tg-doux); font-size: .85rem; margin-left: .3rem; }
.tg textarea, .tg input[type=number], .tg input[type=text], .tg select { width: 100%; max-width: 100%; font: inherit; font-size: 1rem; color: var(--tg-encre); background: var(--tg-fond); border: 1px solid var(--tg-bord); border-radius: 10px; padding: .6rem .7rem; }
.tg textarea { resize: vertical; min-height: 9.5rem; line-height: 1.45; }
.tg textarea:focus, .tg input:focus, .tg select:focus { outline: none; border-color: var(--tg-accent); box-shadow: 0 0 0 3px rgba(79,140,255,.2); }
.tg-aide { color: var(--tg-doux); font-size: .84rem; line-height: 1.5; margin: .5rem 0 0; }
.tg-lien { background: none; border: 0; padding: 0; font: inherit; color: var(--tg-accent-fonce); font-weight: 600; cursor: pointer; text-decoration: underline; }
.tg.tg-sombre .tg-lien { color: #8db4ff; }

/* ── Réglages ── */
.tg-reglages { display: grid; gap: .65rem; }
.tg-ligne { display: grid; gap: .1rem; }
.tg-duo { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 8px; }
.tg-case, .tg-choix label { display: flex; align-items: flex-start; gap: .55rem; font-size: .94rem; line-height: 1.4; cursor: pointer; }
.tg-case input, .tg-choix input { width: 1.1rem; height: 1.1rem; margin: .12rem 0 0; flex: none; accent-color: var(--tg-accent); }
.tg-choix { display: grid; gap: .45rem; margin-bottom: .3rem; }
.tg-details { border: 1px solid var(--tg-bord); border-radius: 10px; max-height: 17rem; overflow: auto; }
.tg-details-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: .35rem .6rem; border-top: 1px solid var(--tg-bord); }
.tg-details-ligne:first-child { border-top: 0; }
.tg-details-ligne > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.tg-details-champs { display: flex; gap: 6px; }
.tg-details-champs select { width: 4.2rem; padding: .35rem .4rem; }
.tg-details-champs input { width: 8.5rem; padding: .35rem .5rem; }
.tg-lot { display: grid; grid-template-columns: minmax(0, 1fr) 5rem 2.4rem; gap: 6px; margin-bottom: 6px; }
.tg-lot button, .tg-regle button { border: 1px solid var(--tg-bord); background: var(--tg-fond); color: var(--tg-doux); border-radius: 10px; cursor: pointer; font-size: .95rem; min-height: 2.4rem; }
.tg-lot button:hover, .tg-regle button:hover { color: var(--tg-alerte); border-color: var(--tg-alerte); }
.tg-regles { margin-top: .9rem; border-top: 1px solid var(--tg-bord); padding-top: .8rem; }
.tg-regles summary { cursor: pointer; font-weight: 700; font-size: .92rem; }
.tg-regle { display: grid; grid-template-columns: minmax(0, 1fr) 2.4rem; gap: 6px; align-items: center; margin-top: 6px; font-size: .92rem; }
.tg-regle-ajout { display: grid; grid-template-columns: minmax(0, 1fr) 6.4rem minmax(0, 1fr) auto; gap: 6px; margin-top: .6rem; }

/* ── Boutons (gabarit .soc-btn) ── */
.tg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: auto; max-width: 100%; margin: 0; padding: .58rem 1.05rem; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .93rem; line-height: 1.2; cursor: pointer; text-decoration: none; white-space: nowrap; }
.tg-btn-plein { background: var(--tg-accent); border-color: var(--tg-accent); color: #fff; }
.tg-btn-plein:hover { background: var(--tg-accent-fonce); border-color: var(--tg-accent-fonce); color: #fff; text-decoration: none; }
.tg-btn-clair { background: var(--tg-fond2); border-color: var(--tg-bord); color: var(--tg-encre); }
.tg-btn-clair:hover { border-color: var(--tg-accent); }
.tg-btn[disabled] { opacity: .6; cursor: progress; }
.tg-actions { margin-top: 1.2rem; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tg-actions .tg-btn { font-size: 1rem; padding: .72rem 1.35rem; }
.tg-erreur { margin: 0; color: var(--tg-alerte); background: var(--tg-alerte-fond); border-radius: 10px; padding: .55rem .8rem; font-size: .92rem; font-weight: 600; flex: 1 1 260px; }

/* ── Résultat ── */
.tg-resultat { margin-top: 1.4rem; border-top: 1px solid var(--tg-bord); padding-top: 1.2rem; }
.tg-resultat-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: .9rem; }
.tg-resultat-tete h2 { font-size: 1.15rem; margin: 0; font-weight: 800; color: var(--tg-encre); }
.tg-resultat-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tg-avert p { margin: 0 0 .6rem; background: #fff7ed; color: #9a3412; border-radius: 10px; padding: .55rem .8rem; font-size: .9rem; font-weight: 600; }
.tg.tg-sombre .tg-avert p { background: #3a2a14; color: #ffd8a8; }
.tg-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tg-bloc { border: 1px solid var(--tg-bord); border-radius: 12px; overflow: hidden; background: var(--tg-fond); min-width: 0; }
.tg-bloc h3 { margin: 0; padding: .55rem .8rem; font-size: .95rem; font-weight: 800; color: #fff; background: #272E40; display: flex; justify-content: space-between; gap: 8px; }
.tg-bloc h3 small { font-weight: 600; opacity: .8; font-size: .8rem; white-space: nowrap; }
.tg-bloc ul { list-style: none; margin: 0; padding: .45rem .8rem .6rem; }
.tg-bloc li { padding: .22rem 0; font-size: .95rem; overflow-wrap: anywhere; }
.tg-bloc li.vide { color: var(--tg-doux); font-style: italic; }
.tg-cap { color: var(--tg-accent); margin-left: .35rem; font-size: .8rem; }
.tg-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tg-liste li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); align-items: center; gap: 10px; border: 1px solid var(--tg-bord); border-radius: 10px; padding: .45rem .7rem; font-size: 1rem; overflow-wrap: anywhere; }
.tg-liste li b { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--tg-fond2); color: var(--tg-accent-fonce); font-weight: 800; }
.tg-liste.corvees li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tg-liste.corvees li span:last-child { font-weight: 700; text-align: right; }
.tg-elus { display: flex; flex-wrap: wrap; gap: 10px; }
.tg-elus span { background: var(--tg-accent); color: #fff; font-weight: 800; font-size: 1.35rem; border-radius: 14px; padding: .7rem 1.2rem; overflow-wrap: anywhere; }
.tg-anim { margin-top: 1rem; font-size: .85rem; color: var(--tg-doux); }
@keyframes tg-arrive { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.tg-anime .tg-bloc, .tg-anime .tg-liste li, .tg-anime .tg-elus span { animation: tg-arrive .38s ease both; animation-delay: calc(var(--i, 0) * 70ms); }
@media (prefers-reduced-motion: reduce) { .tg-anime .tg-bloc, .tg-anime .tg-liste li, .tg-anime .tg-elus span { animation: none; } }

/* ── Cadeaux et texte ── */
.tg-cadeaux h2, .tg-texte h2 { font-size: 1.25rem; font-weight: 800; margin: 0 0 .8rem; color: var(--tg-encre); }
.tg-etapes { margin: 0 0 .9rem; padding-left: 1.3rem; display: grid; gap: .5rem; line-height: 1.5; }
.tg-cadeaux .tg-btn { margin-top: .9rem; }
.tg-texte { margin-top: 2.2rem; max-width: 760px; }
.tg-texte details { border-bottom: 1px solid var(--tg-bord); padding: .75rem 0; }
.tg-texte summary { cursor: pointer; font-weight: 700; }
.tg-texte details p { margin: .5rem 0 0; color: var(--tg-doux); line-height: 1.55; }

/* ── Téléphone ── */
@media (max-width: 760px) {
    .tg { padding: 92px 14px 48px; }
    .tg-tete h1 { font-size: 1.55rem; }
    .tg-carte { padding: 16px; }
    .tg-colonnes { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .tg-onglets { flex-wrap: nowrap; overflow-x: auto; margin-left: -14px; margin-right: -14px; padding: 2px 14px 6px; scrollbar-width: none; }
    .tg-onglets::-webkit-scrollbar { display: none; }
    .tg-actions .tg-btn { width: 100%; }
    .tg-regle-ajout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .tg-regle-ajout select#tg-regle-type { grid-column: 1 / -1; grid-row: 2; }
    .tg-regle-ajout select#tg-regle-b { grid-column: 1 / -1; grid-row: 3; }
    .tg-regle-ajout select#tg-regle-a { grid-column: 1 / -1; grid-row: 1; }
    .tg-regle-ajout button { grid-column: 1 / -1; grid-row: 4; }
    .tg-details-champs input { width: 6.5rem; }
    .tg-resultat-actions { width: 100%; }
    .tg-resultat-actions .tg-btn { flex: 1 1 0; }
}

/* ═══ Tirage partagé (étape 2 du 02/12/2026) : écrans de l'organisateur dans l'application (.tg-app) et pages de l'invité
   (.tg-invite, autonomes). Mode sombre « Bleu nuit » : mêmes variables, redéfinies. ═══ */
.tg.tg-app { padding: 6px 4px 56px; max-width: 880px; }
[data-apparence="sombre"] .tg.tg-app { --tg-encre: #e6ecf7; --tg-doux: #9fb0cc; --tg-bord: #2c3a55; --tg-fond: #162033; --tg-fond2: #1d2a42; --tg-alerte: #ffb4ab; --tg-alerte-fond: #3a1d1d; --tg-accent-fonce: #8db4ff; }
[data-apparence="sombre"] .tg.tg-app .tg-btn-plein:hover { background: #3a7ae0; border-color: #3a7ae0; }
[data-apparence="sombre"] .tg.tg-app .tg-avert p { background: #3a2a14; color: #ffd8a8; }
.tg-app .tg-carte, .tg-invite .tg-carte { margin-bottom: 16px; }
.tg-carte > h2, .tg-bloc-liste h2 { font-size: 1.08rem; font-weight: 800; margin: 0 0 .7rem; color: var(--tg-encre); }
.tg-carte > h2 i { color: var(--tg-accent); margin-right: .3rem; }
.tg-retour { margin: 0 0 .9rem; font-size: .9rem; color: var(--tg-doux); }
.tg-retour a, .tg-pied a { color: var(--tg-accent-fonce); font-weight: 600; }
.tg-actions-haut { margin: 0 0 1.2rem; }
.tg .tg-carte > .tg-aide:first-of-type { margin-top: 0; }
.tg input[type=date], .tg input[type=datetime-local], .tg input[type=email] { width: 100%; font: inherit; font-size: 1rem; color: var(--tg-encre); background: var(--tg-fond); border: 1px solid var(--tg-bord); border-radius: 10px; padding: .6rem .7rem; }

/* Formulaire */
.tg-modes { border: 0; padding: 0; margin: 0 0 1.2rem; min-width: 0; }
.tg-modes-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tg-mode { position: relative; cursor: pointer; }
.tg-mode input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tg-mode span { display: grid; gap: .2rem; height: 100%; padding: .8rem .9rem; border: 1px solid var(--tg-bord); border-radius: 12px; background: var(--tg-fond); }
.tg-mode i { color: var(--tg-accent); font-size: 1.15rem; }
.tg-mode b { font-size: .95rem; }
.tg-mode small { color: var(--tg-doux); font-size: .8rem; line-height: 1.35; }
.tg-mode input:checked + span { border-color: var(--tg-accent); box-shadow: 0 0 0 2px var(--tg-accent); background: var(--tg-fond2); }
.tg-mode input:focus-visible + span { outline: 3px solid rgba(79,140,255,.45); outline-offset: 2px; }
.tg-champs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 18px; }
.tg-champs .tg-large { grid-column: 1 / -1; }
.tg-champs .tg-ligne { align-content: start; gap: .35rem; }
.tg-champs textarea { min-height: 5rem; }
.tg-confid { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--tg-bord); display: grid; gap: .8rem; max-width: 34rem; }
.tg-confid > .tg-label { margin: 0; }
.tg-case small { display: block; color: var(--tg-doux); font-size: .84rem; margin-top: .15rem; }

/* Pilotage */
.tg-copie { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: .6rem; }
.tg-copie input { font-size: .9rem !important; color: var(--tg-doux) !important; text-overflow: ellipsis; }
.tg-petits { display: flex; gap: 18px; flex-wrap: wrap; margin-top: .7rem; font-size: .88rem; }
.tg-participants, .tg-tirages { list-style: none; margin: 0; padding: 0; }
.tg-participant { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; padding: .55rem 0; border-top: 1px solid var(--tg-bord); }
.tg-participant:first-child { border-top: 0; padding-top: 0; }
.tg-participants .tg-vide { color: var(--tg-doux); font-size: .92rem; }
.tg-part-tete { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.tg-part-tete b { overflow-wrap: anywhere; }
.tg-part-outils { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tg .tg-part-outils input[type=text] { width: 10.5rem; padding: .38rem .55rem; font-size: .88rem; }
.tg .tg-part-outils select { width: 5.6rem; padding: .38rem .4rem; font-size: .88rem; }
.tg-btn-petit { padding: .38rem .7rem; font-size: .84rem; min-height: 0; }
.tg-retirer:hover, .tg-btn-danger:hover { border-color: var(--tg-alerte); color: var(--tg-alerte); }
.tg-btn-danger { background: transparent; border-color: var(--tg-bord); color: var(--tg-alerte); }
.tg-pastille { display: inline-block; font-size: .74rem; font-weight: 700; padding: .16rem .55rem; border-radius: 999px; background: var(--tg-fond2); color: var(--tg-doux); white-space: nowrap; }
.tg-pastille.tg-p-tire { background: rgba(34,160,90,.16); color: #1c7c47; }
.tg-pastille.tg-p-inscriptions { background: rgba(79,140,255,.16); color: var(--tg-accent-fonce); }
[data-apparence="sombre"] .tg-pastille.tg-p-tire { color: #7fe0a8; }
.tg-ajout { margin-top: .9rem; border-top: 1px solid var(--tg-bord); padding-top: .8rem; }
.tg-ajout summary, .tg-reglages-bloc > summary { cursor: pointer; font-weight: 700; font-size: .95rem; }
.tg-ajout[open] summary, .tg-reglages-bloc[open] > summary { margin-bottom: .9rem; }
.tg-reglages-bloc > summary i { color: var(--tg-accent); margin-right: .3rem; }
.tg-ajout textarea { min-height: 6rem; }
.tg-ajout .tg-btn { margin-top: .6rem; }
.tg-app .tg-regle-ajout { grid-template-columns: minmax(0, 1fr) 8rem minmax(0, 1fr) auto; }
.tg-app .tg-resultat { border-top: 0; padding-top: 0; }
.tg-alerte-haut { margin: 0 0 1rem; }
.tg-fin { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 1.4rem; }
.tg-fin .tg-aide { flex: 1 1 100%; margin: .2rem 0 0; }
.tg-mien { border-color: var(--tg-accent); box-shadow: 0 0 0 2px var(--tg-accent); }
.tg-moi-ligne { font-size: 1.05rem; margin: 0 0 .8rem; }
.tg-moi-ligne b { color: var(--tg-accent-fonce); }

/* Mes tirages */
.tg-tirages li { border-top: 1px solid var(--tg-bord); }
.tg-tirages li:first-child { border-top: 0; }
.tg-tirages a { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: .7rem 0; color: var(--tg-encre); text-decoration: none; }
.tg-tirages a:hover b { text-decoration: underline; }
.tg-tirages a > i { color: var(--tg-accent); font-size: 1.1rem; text-align: center; }
.tg-t-titre { display: grid; min-width: 0; }
.tg-t-titre b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-t-titre small { color: var(--tg-doux); font-size: .84rem; }

/* Pages de l'invité */
body.tg-invite-page { margin: 0; background: #f4f7fc; -webkit-text-size-adjust: 100%; }
.tg.tg-invite { max-width: 520px; padding: max(28px, env(safe-area-inset-top)) 16px 40px; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.tg-centre { text-align: center; }
.tg-invite h1 { font-size: 1.6rem; line-height: 1.2; font-weight: 800; margin: 0 0 .5rem; overflow-wrap: anywhere; }
.tg-invite .tg-sous { margin: 0 auto 1.1rem; }
.tg-sur { margin: 0 0 .5rem; color: var(--tg-doux); font-size: .95rem; }
.tg-info { margin: 0 0 .7rem; font-weight: 700; color: var(--tg-accent-fonce); }
.tg-message { margin: 0 0 1.1rem; padding: .7rem .9rem; background: var(--tg-fond2); border-radius: 10px; line-height: 1.5; text-align: left; overflow-wrap: anywhere; }
.tg-attente { margin: .6rem 0 0; line-height: 1.55; }
.tg-invite form { display: grid; gap: .6rem; text-align: left; margin-top: 1rem; }
.tg-invite .tg-btn-plein { width: 100%; font-size: 1.05rem; padding: .85rem 1rem; }
.tg-invite .tg-reveler { margin-top: .8rem; }
.tg-invite .tg-resultat { text-align: left; }
.tg-invite .tg-elus { justify-content: center; margin: .2rem 0 .8rem; }
.tg-invite .tg-moi-ligne { text-align: center; }
.tg-invite .tg-erreur { margin: .8rem 0 0; }
.tg-garder h2 { font-size: 1rem; }
/* Courriel d'un invité (03/12/2026) : son adresse, « Me l'envoyer par courriel » */
.tg-courriel { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--tg-bord); display: grid; gap: .5rem; justify-items: start; text-align: left; }
.tg-courriel .tg-copie { width: 100%; margin-top: 0; }
.tg-courriel .tg-copie input { color: var(--tg-encre) !important; font-size: 1rem !important; }
#tg-rejoindre #tg-email { margin-top: 0; }
#tg-s-courriels .tg-btn { white-space: normal; text-align: center; }
.tg-efface { text-align: center; margin: 1.2rem 0; font-size: .88rem; }
.tg-efface .tg-lien { color: var(--tg-doux); font-weight: 500; }
.tg-pied { text-align: center; color: var(--tg-doux); font-size: .84rem; line-height: 1.5; margin: 1.2rem 0 0; }
@media (prefers-color-scheme: dark) {
    body.tg-invite-page { background: #0b1220; }
    .tg.tg-invite { --tg-encre: #e6ecf7; --tg-doux: #9fb0cc; --tg-bord: #2c3a55; --tg-fond: #162033; --tg-fond2: #1d2a42; --tg-alerte: #ffb4ab; --tg-alerte-fond: #3a1d1d; --tg-accent-fonce: #8db4ff; }
    .tg.tg-invite .tg-btn-plein:hover { background: #3a7ae0; border-color: #3a7ae0; }
}
@media (max-width: 760px) {
    .tg.tg-app { padding: 4px 0 48px; }
    .tg-champs { grid-template-columns: minmax(0, 1fr); }
    .tg-copie { grid-template-columns: minmax(0, 1fr); }
    .tg-app .tg-regle-ajout { grid-template-columns: minmax(0, 1fr); }
    .tg-app .tg-regle-ajout select, .tg-app .tg-regle-ajout button { grid-column: auto !important; grid-row: auto !important; }
    .tg-part-outils { width: 100%; }
    .tg .tg-part-outils input[type=text] { flex: 1 1 8rem; width: auto; }
    .tg-tirages a { grid-template-columns: 2rem minmax(0, 1fr); }
    .tg-tirages .tg-pastille { grid-column: 2; justify-self: start; }
    .tg-fin .tg-btn { width: 100%; }
}

/* ═══ Étape 3 (02/12/2026) : liste d'envies, question anonyme, reprise d'une liste ═══ */
.tg-option { margin-top: 1.1rem; max-width: 34rem; }
.tg-ajout .tg-ligne { margin-bottom: .8rem; }
.tg-qa, .tg-envies { text-align: left; }
.tg-centre .tg-qa { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--tg-bord); }
.tg-qa h2, .tg-envies h2 { font-size: 1rem; font-weight: 800; margin: 0 0 .4rem; color: var(--tg-encre); }
.tg-qa .tg-aide, .tg-envies .tg-aide { margin: 0 0 .7rem; }
.tg-qa form, .tg-invite .tg-qa form { display: grid; gap: .5rem; margin-top: .6rem; }
.tg .tg-qa textarea, .tg .tg-envies textarea { min-height: 4.2rem; }
.tg-qa .tg-btn, .tg-envies .tg-btn { margin-top: .5rem; }
.tg-q { border: 1px solid var(--tg-bord); border-radius: 10px; padding: .6rem .75rem; margin-bottom: .6rem; }
.tg-q p { margin: 0; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-line; }
.tg-q-question { font-weight: 700; }
.tg-q-reponse { margin-top: .35rem !important; padding-left: .7rem; border-left: 3px solid var(--tg-accent); }
.tg-q textarea { margin-top: .5rem; }
.tg-envies-lues { text-align: left; background: var(--tg-fond2); border-radius: 10px; padding: .7rem .9rem; margin: 0 0 .8rem; }
.tg-envies-lues p { margin: .3rem 0 0; white-space: pre-line; line-height: 1.5; overflow-wrap: anywhere; }
.tg-pastille.tg-p-efface { background: transparent; border: 1px dashed var(--tg-bord); }
.tg-tirages .tg-ligne-effacee { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: .7rem 0; color: var(--tg-doux); }
.tg-tirages .tg-ligne-effacee > i { text-align: center; }
.tg-prevenir .tg-courriel { margin-top: 0; padding-top: 0; border-top: 0; }

/* ═══ Habillage « Confettis » (03/12/2026, piste A choisie par David : « plus jovial, c'est vraiment utilisé pour des événements
   fun ») : violet, rose, jaune et billets « ? », le même univers que la bannière des jeux (voyage-jeux.css). Il couvre les pages de
   l'invité (.tg-invite) et les écrans de l'organisateur (.tg-app) ; l'outil public /tirages garde la charte du site. ═══ */
.tg-info-ok { margin: .6rem 0 0; padding: .6rem .8rem; border-radius: 12px; background: rgba(94,234,212,.22); color: var(--tg-encre); font-size: .92rem; font-weight: 600; line-height: 1.45; }
.tg-attente-choix { margin-top: 1rem; padding: 1rem; border-radius: 16px; border: 2px dashed var(--tg-accent); background: var(--tg-fond2); }
.tg-attente-choix p { margin: 0 0 .8rem; line-height: 1.5; }
.tg-pastille.tg-p-attente { background: #ffd84d; color: #1d1038; }
.tg-billets { display: flex; justify-content: center; gap: 0; height: 74px; margin: 0 0 14px; pointer-events: none; }
.tg-billets i { display: grid; place-items: center; width: 48px; height: 62px; margin: 6px -3px 0; border-radius: 10px; border: 3px solid #1d1038; box-shadow: 0 3px 0 #1d1038; color: #1d1038; font-style: normal; font-weight: 900; font-size: 26px; }
.tg-billets i:nth-child(1) { background: #5eead4; transform: rotate(-12deg); }
.tg-billets i:nth-child(2) { background: #ffd84d; transform: translateY(-6px); z-index: 1; }
.tg-billets i:nth-child(3) { background: #ff9ec4; transform: rotate(12deg); }

/* — Pages de l'invité : un seul habit, de jour comme de nuit — */
body.tg-invite-page { background-color: #5b21b6; background-image: radial-gradient(circle, rgba(255,216,77,.55) 2.5px, transparent 3px), radial-gradient(circle, rgba(94,234,212,.5) 2px, transparent 2.5px), radial-gradient(circle, rgba(255,158,196,.55) 2px, transparent 2.5px), linear-gradient(160deg, #4c1d95 0%, #6d28d9 60%, #86198f 100%); background-size: 96px 84px, 124px 102px, 70px 76px, 100% 100%; background-position: 12px 14px, 54px 46px, 30px 62px, 0 0; background-attachment: fixed; min-height: 100vh; color-scheme: light; }
.tg.tg-invite { --tg-accent: #6d28d9; --tg-accent-fonce: #5b21b6; --tg-encre: #1d1038; --tg-doux: #5b4f78; --tg-bord: #d9cfee; --tg-fond: #fffaf0; --tg-fond2: #f3ecff; --tg-alerte: #b42318; --tg-alerte-fond: #fef3f2; }
.tg-invite .tg-carte { border: 3px solid #1d1038; border-radius: 22px; box-shadow: 0 5px 0 #1d1038; padding: 20px 18px; }
.tg-invite .tg-carte > h2 { font-size: 1.12rem; }
.tg-invite .tg-sur { display: inline-block; margin: 0 0 .6rem; padding: .22rem .8rem; border-radius: 999px; background: #1d1038; color: #ffd84d; font-weight: 800; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.tg-invite h1 { font-size: 1.75rem; font-weight: 900; letter-spacing: -.01em; }
.tg-invite .tg-info { color: #5b21b6; }
.tg-etat { margin: .9rem 0 0; }
.tg-etat span { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .9rem; border-radius: 999px; border: 2px solid #1d1038; background: #5eead4; color: #1d1038; font-weight: 800; font-size: .95rem; }
.tg-invite .tg-attente { margin-top: .7rem; font-size: 1.02rem; }
.tg-invite .tg-btn { border-radius: 14px; border: 2px solid #1d1038; box-shadow: 0 3px 0 #1d1038; font-weight: 800; }
.tg-invite .tg-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #1d1038; }
.tg-invite .tg-btn-plein, .tg.tg-invite .tg-btn-plein:hover { background: #ffd84d; border-color: #1d1038; color: #1d1038; }
.tg.tg-invite .tg-btn-plein:hover { background: #ffe37a; }
.tg-invite .tg-btn-clair { background: #fff; border-color: #1d1038; color: #1d1038; }
.tg-invite .tg-btn-clair:hover { background: #f3ecff; border-color: #1d1038; }
.tg.tg-invite input[type=text], .tg.tg-invite input[type=email], .tg.tg-invite textarea { border: 2px solid #1d1038; border-radius: 12px; background: #fff; color: #1d1038; }
.tg-invite .tg-efface .tg-lien, .tg-invite .tg-efface a, .tg-invite .tg-pied { color: #e9defd; }
.tg-invite .tg-pied a { color: #ffd84d; }
.tg-invite .tg-elus span { background: #6d28d9; border: 3px solid #1d1038; box-shadow: 0 4px 0 #1d1038; }

/* — Écrans de l'organisateur : en-tête de fête, boutons « bonbon », le reste suit le thème clair ou sombre — */
.tg.tg-app { --tg-accent: #7c3aed; --tg-accent-fonce: #5b21b6; }
[data-apparence="sombre"] .tg.tg-app { --tg-accent: #a78bfa; --tg-accent-fonce: #c4b5fd; }
.tg-app .tg-tete { position: relative; overflow: hidden; margin: 0 0 18px; padding: 22px 150px 22px 24px; border-radius: 24px; border: 3px solid #1d1038; box-shadow: 0 5px 0 #1d1038; color: #fff; background-color: #5b21b6; background-image: radial-gradient(circle, rgba(255,216,77,.6) 2.5px, transparent 3px), radial-gradient(circle, rgba(94,234,212,.55) 2px, transparent 2.5px), radial-gradient(120% 150% at 100% 0%, #ff5fa2 0%, rgba(255,95,162,0) 45%), linear-gradient(135deg, #4c1d95 0%, #6d28d9 60%, #7c3aed 100%); background-size: 92px 78px, 118px 96px, 100% 100%, 100% 100%; background-position: 14px 10px, 52px 40px, 0 0, 0 0; }
.tg-app .tg-tete h1 { color: #fff; font-weight: 900; margin-bottom: .3rem; overflow-wrap: anywhere; }
.tg-app .tg-tete h1 i { color: #ffd84d; }
.tg-app .tg-tete .tg-sous { color: #efe6ff; margin: 0; max-width: 56ch; }
.tg-app .tg-tete::before, .tg-app .tg-tete::after { content: "?"; position: absolute; top: 50%; display: grid; place-items: center; width: 52px; height: 68px; margin-top: -34px; border-radius: 11px; border: 3px solid #1d1038; box-shadow: 0 3px 0 #1d1038; color: #1d1038; font-weight: 900; font-size: 28px; }
.tg-app .tg-tete::before { right: 74px; background: #5eead4; transform: rotate(-11deg); }
.tg-app .tg-tete::after { right: 26px; background: #ffd84d; transform: rotate(9deg); }
.tg-app .tg-retour a { color: var(--tg-accent-fonce); }
.tg-app .tg-carte { border-radius: 20px; border-width: 2px; }
.tg-app .tg-btn { border-radius: 13px; font-weight: 800; }
.tg-app .tg-btn-plein, [data-apparence="sombre"] .tg.tg-app .tg-btn-plein { background: #ffd84d; border: 2px solid #1d1038; color: #1d1038; box-shadow: 0 3px 0 #1d1038; }
.tg-app .tg-btn-plein:hover, [data-apparence="sombre"] .tg.tg-app .tg-btn-plein:hover { background: #ffe37a; border-color: #1d1038; color: #1d1038; }
.tg-app .tg-btn-plein:active { transform: translateY(2px); box-shadow: 0 1px 0 #1d1038; }
.tg-app .tg-btn-plein:disabled { opacity: .55; box-shadow: none; }
.tg-app .tg-pastille.tg-p-inscriptions { background: #ffd84d; color: #1d1038; }
.tg-app .tg-pastille.tg-p-tire { background: #5eead4; color: #1d1038; }
/* « Mes tirages » : une tuile de couleur par tirage */
.tg-app .tg-tirages li { border-top: 0; margin-top: 8px; }
.tg-app .tg-tirages li:first-child { margin-top: 0; }
.tg-app .tg-tirages a, .tg-app .tg-tirages .tg-ligne-effacee { grid-template-columns: 2.9rem minmax(0, 1fr) auto; padding: .6rem .8rem; border-radius: 16px; border: 2px solid var(--tg-bord); background: var(--tg-fond2); transition: transform .15s ease, border-color .15s ease; }
.tg-app .tg-tirages a:hover { border-color: var(--tg-accent); transform: translateY(-2px); }
.tg-app .tg-tirages a:hover b { text-decoration: none; }
.tg-app .tg-tirages a > i, .tg-app .tg-tirages .tg-ligne-effacee > i { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 12px; border: 2px solid #1d1038; background: #ffd84d; color: #1d1038; font-size: 1.15rem; }
.tg-app .tg-tirages li:nth-child(3n+2) a > i { background: #5eead4; }
.tg-app .tg-tirages li:nth-child(3n) a > i { background: #ff9ec4; }
.tg-app .tg-tirages .tg-ligne-effacee > i { background: transparent; border-style: dashed; border-color: var(--tg-bord); color: var(--tg-doux); }
.tg-app .tg-t-titre b { font-size: 1.02rem; }
@media (max-width: 640px) {
    .tg-app .tg-tete { padding: 18px 18px 20px; }
    .tg-app .tg-tete h1 { padding-right: 96px; }
    .tg-app .tg-tete::before, .tg-app .tg-tete::after { top: 14px; margin-top: 0; width: 34px; height: 44px; font-size: 19px; border-width: 2px; border-radius: 8px; }
    .tg-app .tg-tete::before { right: 50px; }
    .tg-app .tg-tete::after { right: 16px; }
    .tg-app .tg-tirages a, .tg-app .tg-tirages .tg-ligne-effacee { grid-template-columns: 2.9rem minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .tg-app .tg-tirages a { transition: none; } .tg-app .tg-tirages a:hover { transform: none; } }

/* — Outil public /tirages en « Confettis » (04/12/2026, « Oui, mets aussi l'outil public », David) : même en-tête de fête et mêmes
   boutons que les écrans de l'organisateur ; la navigation et le pied restent ceux du site. — */
.tg.tg-public { --tg-accent: #7c3aed; --tg-accent-fonce: #5b21b6; }
.tg.tg-public.tg-sombre { --tg-accent: #a78bfa; --tg-accent-fonce: #c4b5fd; }
.tg-public .tg-tete { position: relative; overflow: hidden; margin: 0 0 18px; padding: 26px 170px 26px 26px; border-radius: 24px; border: 3px solid #1d1038; box-shadow: 0 5px 0 #1d1038; color: #fff; background-color: #5b21b6; background-image: radial-gradient(circle, rgba(255,216,77,.6) 2.5px, transparent 3px), radial-gradient(circle, rgba(94,234,212,.55) 2px, transparent 2.5px), radial-gradient(120% 150% at 100% 0%, #ff5fa2 0%, rgba(255,95,162,0) 45%), linear-gradient(135deg, #4c1d95 0%, #6d28d9 60%, #7c3aed 100%); background-size: 92px 78px, 118px 96px, 100% 100%, 100% 100%; background-position: 14px 10px, 52px 40px, 0 0, 0 0; }
.tg-public .tg-tete h1 { color: #fff; font-weight: 900; }
.tg-public .tg-tete h1 i { color: #ffd84d; }
.tg-public .tg-tete .tg-sous { color: #efe6ff; margin: 0; }
.tg-public .tg-tete::before, .tg-public .tg-tete::after { content: "?"; position: absolute; top: 50%; display: grid; place-items: center; width: 56px; height: 72px; margin-top: -36px; border-radius: 12px; border: 3px solid #1d1038; box-shadow: 0 3px 0 #1d1038; color: #1d1038; font-weight: 900; font-size: 30px; }
.tg-public .tg-tete::before { right: 84px; background: #5eead4; transform: rotate(-11deg); }
.tg-public .tg-tete::after { right: 32px; background: #ff9ec4; transform: rotate(9deg); }
.tg-public .tg-onglets a { border-width: 2px; font-weight: 700; }
.tg-public .tg-onglets a.actif { background: #1d1038; border-color: #1d1038; color: #ffd84d; }
.tg-public .tg-carte { border-radius: 20px; border-width: 2px; }
.tg-public .tg-btn { border-radius: 13px; font-weight: 800; }
.tg-public .tg-btn-plein { background: #ffd84d; border: 2px solid #1d1038; color: #1d1038; box-shadow: 0 3px 0 #1d1038; }
.tg-public .tg-btn-plein:hover { background: #ffe37a; border-color: #1d1038; color: #1d1038; }
.tg-public .tg-btn-plein:active { transform: translateY(2px); box-shadow: 0 1px 0 #1d1038; }
.tg-public .tg-bloc { border: 2px solid #1d1038; border-radius: 16px; }
.tg-public .tg-bloc h3 { background: #6d28d9; }
.tg-public .tg-grille .tg-bloc:nth-child(3n+2) h3 { background: #0f766e; }
.tg-public .tg-grille .tg-bloc:nth-child(3n) h3 { background: #be185d; }
.tg-public .tg-liste li b { background: #ffd84d; color: #1d1038; border: 2px solid #1d1038; }
.tg-public .tg-elus span { background: #6d28d9; border: 3px solid #1d1038; box-shadow: 0 4px 0 #1d1038; }
@media (max-width: 640px) {
    .tg-public .tg-tete { padding: 18px 18px 20px; }
    .tg-public .tg-tete h1 { padding-right: 96px; }
    .tg-public .tg-tete::before, .tg-public .tg-tete::after { top: 14px; margin-top: 0; width: 34px; height: 44px; font-size: 19px; border-width: 2px; border-radius: 8px; }
    .tg-public .tg-tete::before { right: 50px; }
    .tg-public .tg-tete::after { right: 16px; }
}

/* Adresse enregistrée : la confirmation se VOIT (David, 04/12/2026 : « un effet dynamique, très visuel »). Bouton qui passe au
   vert d'eau avec une coche, bandeau qui surgit, halo sur la carte, pluie de confettis partie du bouton. */
.tg-email-note { display: flex; align-items: flex-start; gap: .55rem; margin: .9rem 0 0; padding: .7rem .9rem; border: 2px solid #1d1038; border-radius: 14px;
    background: #5eead4; color: #1d1038; font-size: .95rem; font-weight: 700; line-height: 1.4; box-shadow: 0 3px 0 #1d1038; }
.tg-email-note[hidden] { display: none; }
.tg-email-note.tg-surgit { animation: tg-surgit .55s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes tg-surgit { 0% { opacity: 0; transform: translateY(-10px) scale(.9); } 60% { opacity: 1; transform: translateY(2px) scale(1.03); } 100% { opacity: 1; transform: none; } }
.tg-prevenir { position: relative; }
.tg-prevenir.tg-fete { animation: tg-halo 1.1s ease-out both; }
@keyframes tg-halo { 0% { box-shadow: 0 0 0 0 rgba(94,234,212,.95), 0 5px 0 #1d1038; } 100% { box-shadow: 0 0 0 22px rgba(94,234,212,0), 0 5px 0 #1d1038; } }
.tg-invite .tg-btn.tg-btn-fait, .tg-btn.tg-btn-fait { background: #5eead4; color: #1d1038; animation: tg-rebond .6s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes tg-rebond { 0% { transform: scale(.82); } 55% { transform: scale(1.12) rotate(-2deg); } 100% { transform: none; } }
.tg-confetti { position: absolute; z-index: 5; width: 9px; height: 9px; border-radius: 2px; pointer-events: none; animation: tg-confetti 1s cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes tg-confetti { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); } }
@media (prefers-reduced-motion: reduce) {
    .tg-email-note.tg-surgit, .tg-prevenir.tg-fete, .tg-btn.tg-btn-fait { animation: none; }
    .tg-confetti { display: none; }
}

/* Adresse d'un participant, quand l'organisateur l'a saisie lui-même (04/12/2026) : lisible, sélectionnable, coupée si elle est longue. */
.tg-pastille.tg-p-adresse { font-weight: 600; user-select: all; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }

/* Le mélange (David, 04/12/2026) : voile « Confettis » pendant quelques secondes après un lancement ou une relance, cartes « ? »
   battues, puis « Le tirage est fait ! » et l'annonce des courriels partis. Même habit en clair et en sombre. */
.tg-melange { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 24px;
    background: radial-gradient(circle at 20% 15%, rgba(255,95,162,.35), transparent 45%), radial-gradient(circle at 85% 80%, rgba(94,234,212,.28), transparent 45%), rgba(60,20,130,.96);
    animation: tg-voile .25s ease-out both; }
.tg-melange[hidden] { display: none; }
@keyframes tg-voile { from { opacity: 0; } to { opacity: 1; } }
.tg-melange-boite { position: relative; width: 100%; max-width: 460px; text-align: center; color: #fff; }
.tg-melange-cartes { display: flex; justify-content: center; gap: 10px; height: 96px; margin-bottom: 26px; }
.tg-melange-cartes span { display: grid; place-items: center; width: 54px; height: 74px; border: 3px solid #1d1038; border-radius: 12px; background: #ffd84d; color: #1d1038;
    font-size: 30px; font-weight: 900; box-shadow: 0 4px 0 #1d1038; animation: tg-bat .62s ease-in-out infinite alternate; }
.tg-melange-cartes span:nth-child(1) { --dx: 128px; --r: 14deg; background: #5eead4; }
.tg-melange-cartes span:nth-child(2) { --dx: 64px; --r: -18deg; animation-duration: .48s; }
.tg-melange-cartes span:nth-child(3) { --dx: -128px; --r: 22deg; background: #ff9ec4; animation-duration: .7s; }
.tg-melange-cartes span:nth-child(4) { --dx: 64px; --r: -12deg; background: #fffaf0; animation-duration: .54s; }
.tg-melange-cartes span:nth-child(5) { --dx: -192px; --r: 16deg; background: #ff5fa2; animation-duration: .66s; }
@keyframes tg-bat { 0% { transform: none; } 50% { transform: translate(calc(var(--dx) * .5), -24px) rotate(var(--r)); } 100% { transform: translate(var(--dx), 0); } }
.tg-melange-fait .tg-melange-cartes span { animation: tg-pose .6s cubic-bezier(.2, 1.6, .4, 1) both; }
.tg-melange-fait .tg-melange-cartes span:nth-child(2) { animation-delay: .06s; }
.tg-melange-fait .tg-melange-cartes span:nth-child(3) { animation-delay: .12s; }
.tg-melange-fait .tg-melange-cartes span:nth-child(4) { animation-delay: .18s; }
.tg-melange-fait .tg-melange-cartes span:nth-child(5) { animation-delay: .24s; }
@keyframes tg-pose { 0% { transform: translateY(-34px) scale(.7) rotate(-12deg); } 100% { transform: none; } }
.tg-melange-titre { margin: 0; font-size: 1.35rem; font-weight: 800; line-height: 1.3; min-height: 1.8em; }
.tg-melange-fait .tg-melange-titre { font-size: 1.9rem; color: #ffd84d; animation: tg-surgit .55s cubic-bezier(.2, 1.5, .4, 1) both; }
.tg-melange-courriels { margin: 1.1rem 0 0; padding: .8rem 1rem; border: 2px solid #1d1038; border-radius: 14px; background: #5eead4; color: #1d1038;
    font-size: 1rem; font-weight: 700; line-height: 1.45; box-shadow: 0 3px 0 #1d1038; animation: tg-surgit .55s cubic-bezier(.2, 1.5, .4, 1) both; }
.tg-melange-courriels[hidden] { display: none; }
.tg-melange-courriels.tg-melange-attend { background: #fffaf0; animation: tg-pouls 1s ease-in-out infinite alternate; }
@keyframes tg-pouls { from { opacity: .65; } to { opacity: 1; } }
.tg-btn.tg-melange-ok { margin-top: 1.4rem; padding: .8rem 1.8rem; border: 3px solid #1d1038; border-radius: 999px; background: #ffd84d; color: #1d1038; font-size: 1.05rem; font-weight: 800; box-shadow: 0 4px 0 #1d1038; }
.tg-btn.tg-melange-ok[hidden] { display: none; }
@media (max-width: 420px) {
    .tg-melange-cartes { gap: 6px; }
    .tg-melange-cartes span { width: 44px; height: 62px; font-size: 24px; }
    .tg-melange-cartes span:nth-child(1) { --dx: 100px; } .tg-melange-cartes span:nth-child(2), .tg-melange-cartes span:nth-child(4) { --dx: 50px; }
    .tg-melange-cartes span:nth-child(3) { --dx: -100px; } .tg-melange-cartes span:nth-child(5) { --dx: -150px; }
    .tg-melange-fait .tg-melange-titre { font-size: 1.55rem; }
}
@media (prefers-reduced-motion: reduce) {
    .tg-melange, .tg-melange-cartes span, .tg-melange-fait .tg-melange-cartes span, .tg-melange-fait .tg-melange-titre, .tg-melange-courriels, .tg-melange-courriels.tg-melange-attend { animation: none; }
}

/* Le suspense avant le résultat de l'invité (David, 04/12/2026) : une carte « ? » tremble de plus en plus fort, se retourne,
   puis le résultat surgit avec des confettis. */
.tg-invite .tg-resultat { position: relative; }
.tg-suspense { padding: 18px 0 8px; text-align: center; perspective: 600px; }
.tg-suspense-carte { display: inline-grid; place-items: center; width: 92px; height: 122px; border: 4px solid #1d1038; border-radius: 16px; background: #ffd84d; color: #1d1038;
    font-size: 54px; font-weight: 900; box-shadow: 0 6px 0 #1d1038; animation: tg-suspense 2.3s ease-in both; }
.tg-suspense p { margin: 16px 0 0; font-weight: 800; font-size: 1.05rem; color: #1d1038; animation: tg-pouls .5s ease-in-out infinite alternate; }
@keyframes tg-suspense {
    0% { transform: scale(.6) rotate(0); opacity: 0; }
    10% { transform: scale(1) rotate(0); opacity: 1; }
    20% { transform: rotate(-5deg); } 28% { transform: rotate(5deg); } 36% { transform: rotate(-8deg); } 44% { transform: rotate(8deg) scale(1.04); }
    52% { transform: rotate(-11deg) scale(1.07); background: #ff9ec4; } 60% { transform: rotate(11deg) scale(1.1); }
    68% { transform: rotate(-14deg) scale(1.13); background: #5eead4; } 76% { transform: rotate(14deg) scale(1.16); }
    84% { transform: rotate(0) scale(1.22); background: #ffd84d; }
    100% { transform: rotateY(90deg) scale(1.22); }
}
.tg-resultat.tg-devoile > :not(.tg-confetti) { animation: tg-devoile .6s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes tg-devoile { 0% { opacity: 0; transform: rotateY(-90deg) scale(.8); } 60% { opacity: 1; transform: rotateY(8deg) scale(1.06); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tg-suspense-carte, .tg-suspense p, .tg-resultat.tg-devoile > :not(.tg-confetti) { animation: none; } }
/* Les confettis qui sortent de la carte ne doivent pas faire défiler la page de côté. */
.tg-invite { overflow-x: clip; }

/* Date limite d'inscription et tirage automatique (04/12/2026). */
.tg-limite input[type="datetime-local"] { max-width: 280px; }
.tg-limite .tg-case { margin-top: .7rem; }
.tg-limite .tg-case[hidden], .tg-auto-attente[hidden] { display: none; }
.tg-auto-attente { margin-top: .7rem; }
.tg-limite-info[hidden] { display: none; }
