/* New LA GRÂCE — Espace mariés
   Charte : couleurs du logo (orange, noir, anthracite, gris, blanc) · Montserrat */

:root {
  --orange: #E8700E;
  --orange-fonce: #B85607;
  --orange-pale: #FDEFE2;
  --orange-voile: rgba(232, 112, 14, .12);
  --noir: #0B0B0C;
  --anthracite: #1E1E20;
  --anthracite-2: #2A2A2D;
  --gris: #5A5A5A;
  --gris-moyen: #8C8C90;
  --gris-clair: #C9C9CC;
  --trait: #E8E6E3;
  --fond: #F4F3F1;
  --blanc: #FFFFFF;
  --texte: #1E1E20;
  --texte-doux: #5A5A5A;

  --rayon: 18px;
  --rayon-petit: 12px;
  --ombre: 0 1px 2px rgba(11, 11, 12, .04), 0 8px 24px rgba(11, 11, 12, .06);
  --ombre-forte: 0 30px 80px rgba(0, 0, 0, .35);
  --courbe: cubic-bezier(.2, .8, .2, 1);
  --police: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--police);
  font-size: 15px;
  line-height: 1.5;
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- Anneau décoratif (cercle du logo) ---------- */
.decor { position: absolute; pointer-events: none; overflow: visible; }
/* Les cercles sont clonés par <use> : on les cible par #anneau, vitesses via variables héritées */
#anneau .a { fill: none; transform-box: fill-box; transform-origin: center; }
#anneau .a1 { stroke: #E8700E; stroke-width: 22; stroke-dasharray: 64 18; animation: tourne var(--v1, 90s) linear infinite; }
#anneau .a2 { stroke: #6A6A6E; stroke-width: 5; stroke-dasharray: 560 445; animation: tourne var(--v2, 60s) linear infinite reverse; }
#anneau .a3 { stroke: #E8700E; stroke-width: 3; stroke-dasharray: 300 530; opacity: .7; animation: tourne var(--v3, 40s) linear infinite; }
#anneau .a4 { stroke: #4A4A4E; stroke-width: 14; stroke-dasharray: 22 14; animation: tourne var(--v4, 120s) linear infinite reverse; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* ---------- Chargement ---------- */
.chargement {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: var(--anthracite);
  transition: opacity .5s var(--courbe), visibility .5s;
}
.chargement.fini { opacity: 0; visibility: hidden; }
.decor--charge { position: static; width: 120px; height: 120px; }
.decor--charge { --v1: 3s; --v2: 2s; --v3: 1.4s; --v4: 4s; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600; font-size: 14px; letter-spacing: .01em;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--plein { background: var(--orange); color: var(--blanc); box-shadow: 0 8px 22px rgba(232, 112, 14, .35); }
.btn--plein:hover { background: var(--orange-fonce); }
.btn--large { width: 100%; padding: 15px 20px; font-size: 15px; font-weight: 700; position: relative; }
.btn--contour { background: var(--blanc); border: 1.5px solid var(--trait); color: var(--texte); }
.btn--contour:hover { border-color: var(--orange); color: var(--orange-fonce); }
.btn--discret { background: transparent; color: var(--texte-doux); padding: 8px 12px; }
.btn--discret:hover { color: var(--texte); background: var(--fond); }
.btn-icone {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--trait);
  background: var(--blanc); display: grid; place-items: center;
  transition: border-color .2s, color .2s;
}
.btn-icone:hover { border-color: var(--orange); color: var(--orange); }
.btn-icone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-icone.tourne svg { animation: tourne .8s linear infinite; }

.rond-charge {
  display: none; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: var(--blanc);
  animation: tourne .7s linear infinite;
}
.btn.charge .btn-texte { opacity: .0; }
.btn.charge .rond-charge { display: block; position: absolute; }

/* ============ CONNEXION ============ */
.connexion {
  position: relative; min-height: 100vh; min-height: 100dvh;
  overflow: hidden;
  display: grid; grid-template-columns: 1fr; align-content: center; justify-items: center;
  gap: 28px; padding: 40px 16px 90px;
  background:
    radial-gradient(90% 60% at 15% 10%, #2E2E32 0%, transparent 60%),
    radial-gradient(70% 50% at 100% 100%, rgba(232, 112, 14, .18) 0%, transparent 60%),
    var(--anthracite);
  color: var(--blanc);
}
.decor--1 { width: 620px; height: 620px; right: -260px; top: -240px; opacity: .55; }
.decor--2 { width: 420px; height: 420px; left: -230px; bottom: -200px; opacity: .35; }

.connexion-colonne { position: relative; max-width: 440px; text-align: center; animation: monte .9s var(--courbe) both; }
.connexion-accroche {
  margin: 0; font-size: clamp(34px, 9vw, 64px); font-weight: 800; line-height: 1.02; letter-spacing: -.02em;
}
.connexion-accroche span { color: var(--orange); display: block; }
.connexion-texte { margin: 14px auto 0; max-width: 380px; color: #B9B9BD; font-size: 15px; }

.carte-connexion {
  position: relative; width: 100%; max-width: 410px;
  background: var(--blanc); color: var(--texte);
  border-radius: 26px; padding: 30px 26px 24px;
  box-shadow: var(--ombre-forte);
  animation: monte .9s .12s var(--courbe) both;
}
.carte-connexion::before {   /* liseré orange en haut de la carte */
  content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 4px;
  border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--orange), #F59A3B);
}
.carte-logo { display: block; width: 128px; height: auto; margin: 0 auto 18px; }
.carte-connexion h1 { margin: 0; font-size: 24px; font-weight: 800; text-align: center; letter-spacing: -.01em; }
.carte-connexion .sous { margin: 6px 0 22px; text-align: center; color: var(--texte-doux); font-size: 14px; }

.champ { display: block; margin-bottom: 16px; }
.champ > span:first-child { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
.champ input {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1.5px solid var(--trait); border-radius: var(--rayon-petit);
  background: #FAFAF9; font-size: 16px; font-weight: 500;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.champ input::placeholder { color: #B5B5B8; font-weight: 400; }
.champ input:focus { outline: none; border-color: var(--orange); background: var(--blanc); box-shadow: 0 0 0 4px var(--orange-voile); }
.champ-aide { display: block; margin-top: 6px; font-size: 12px; color: var(--gris-moyen); }
.champ-mdp { position: relative; display: block; }
.champ-mdp input { padding-right: 52px; letter-spacing: .06em; }
.voir {
  position: absolute; right: 6px; top: 6px; width: 40px; height: 40px;
  border: 0; border-radius: 10px; background: transparent; color: var(--gris-moyen);
  display: grid; place-items: center;
}
.voir:hover, .voir.actif { color: var(--orange); }
.voir svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

.erreur {
  margin: -4px 0 14px; padding: 11px 14px; border-radius: 10px;
  background: #FDECEA; color: #A3241B; font-size: 14px; font-weight: 500;
  animation: secoue .4s;
}
@keyframes secoue { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.aide { margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--texte-doux); }
.aide a { color: var(--orange-fonce); font-weight: 600; text-decoration: none; }
.aide a:hover { text-decoration: underline; }

@keyframes monte { from { opacity: 0; transform: translateY(24px); } }

@media (min-width: 900px) {
  .connexion { grid-template-columns: 1fr 1fr; justify-items: start; gap: 60px; padding: 60px 8vw 90px; }
  .connexion-colonne { text-align: left; justify-self: end; }
  .connexion-texte { margin-left: 0; font-size: 16px; }
  .decor--1 { width: 760px; height: 760px; right: -220px; top: -220px; }
}

/* ============ TABLEAU DE BORD ============ */
.conteneur { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .conteneur { padding: 0 28px; } }

.barre {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--trait);
}
@media (min-width: 700px) { .barre { padding-left: 28px; padding-right: 28px; } }
.barre-logo { width: 70px; height: auto; }
.barre-actions { display: flex; align-items: center; gap: 8px; }
.maj { font-size: 12px; color: var(--gris-moyen); margin-right: 4px; }
.maj b { color: var(--texte-doux); font-weight: 600; }
@media (max-width: 520px) { .maj { display: none; } }

.heros {
  position: relative; overflow: hidden;
  background:
    radial-gradient(80% 120% at 0% 0%, #2F2F33 0%, transparent 55%),
    var(--anthracite);
  color: var(--blanc);
  padding: 38px 0 96px;
}
.decor--heros { width: 460px; height: 460px; right: -150px; top: -120px; opacity: .5; }
@media (min-width: 700px) { .decor--heros { width: 560px; height: 560px; right: -60px; top: -170px; } }
.heros .conteneur { position: relative; }
.heros-sur { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--orange); }
.heros-couple { margin: 0; font-size: clamp(32px, 8vw, 58px); font-weight: 800; line-height: 1.05; letter-spacing: -.025em; }
.heros-couple .et { color: var(--orange); font-weight: 600; }
.heros-ligne { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; color: #C4C4C8; font-weight: 500; text-transform: capitalize; }
.puce-compte {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(232, 112, 14, .16); border: 1px solid rgba(232, 112, 14, .45);
  color: #FFB46E; font-size: 13px; font-weight: 700; text-transform: none;
}
.puce-compte:empty { display: none; }
.puce-compte::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(232, 112, 14, .25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(232, 112, 14, 0); } }

.contenu { position: relative; margin-top: -64px; padding-bottom: 40px; }

/* Chiffres clés */
.chiffres { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 820px) { .chiffres { grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 16px; } }
.chiffre {
  text-align: left; border: 0; display: flex; flex-direction: column; gap: 2px;
  background: var(--blanc); border-radius: var(--rayon); padding: 18px 18px 16px;
  box-shadow: var(--ombre);
  transition: transform .25s var(--courbe), box-shadow .25s;
  animation: monte .7s var(--courbe) both;
}
.chiffre:nth-child(2) { animation-delay: .06s; } .chiffre:nth-child(3) { animation-delay: .12s; } .chiffre:nth-child(4) { animation-delay: .18s; }
.chiffre:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(11, 11, 12, .05), 0 16px 34px rgba(11, 11, 12, .1); }
.chiffre-titre { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); }
.chiffre-valeur { font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 6px; }
.chiffre-sous { font-size: 13px; color: var(--gris-moyen); }
.chiffre--vedette { background: var(--orange); color: var(--blanc); position: relative; overflow: hidden; }
.chiffre--vedette::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 160px; height: 160px; border-radius: 50%;
  border: 18px dashed rgba(255, 255, 255, .16);
}
.chiffre--vedette .chiffre-titre, .chiffre--vedette .chiffre-sous { color: rgba(255, 255, 255, .85); }
.chiffre--vedette .chiffre-valeur { font-size: 48px; }
@media (max-width: 819px) { .chiffre--vedette { grid-column: 1 / -1; } }

/* Répartition */
.repartition { margin-top: 16px; background: var(--blanc); border-radius: var(--rayon); padding: 18px 20px; box-shadow: var(--ombre); }
.repartition-tete { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; color: var(--gris); margin-bottom: 10px; }
.repartition-tete strong { font-size: 20px; color: var(--texte); font-weight: 800; font-variant-numeric: tabular-nums; }
.jauge { display: flex; height: 12px; border-radius: 99px; background: #ECEAE7; overflow: hidden; }
.seg { display: block; width: 0; height: 100%; transition: width 1.2s var(--courbe); }
.seg--present { background: var(--orange); }
.seg--absent { background: var(--anthracite); }
.legende { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--texte-doux); }
.legende li { display: inline-flex; align-items: center; gap: 7px; }
.pt { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.pt--present { background: var(--orange); } .pt--absent { background: var(--anthracite); } .pt--attente { background: #DAD8D4; }

/* Onglets */
.onglets {
  position: sticky; top: 61px; z-index: 10;
  margin: 26px -16px 18px; padding: 8px 16px;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  background: linear-gradient(var(--fond) 80%, rgba(244, 243, 241, 0));
}
.onglets::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .onglets { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; } }
.onglet {
  flex: 0 0 auto; border: 0; background: transparent;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 700; font-size: 14px; color: var(--gris);
  transition: background .2s, color .2s;
}
.onglet:hover { color: var(--texte); }
.onglet[aria-selected="true"] { background: var(--anthracite); color: var(--blanc); }
.onglet .nb { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--orange); color: var(--blanc); font-size: 11px; }
.onglet .nb:empty { display: none; }

.panneau { animation: apparait .45s var(--courbe); }
@keyframes apparait { from { opacity: 0; transform: translateY(8px); } }

/* Outils de la liste */
.outils { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.recherche { position: relative; flex: 1 1 260px; max-width: 460px; }
.recherche svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; fill: none; stroke: var(--gris-moyen); stroke-width: 2; stroke-linecap: round; }
.recherche input {
  width: 100%; height: 46px; padding: 0 16px 0 42px;
  border: 1.5px solid var(--trait); border-radius: 999px; background: var(--blanc); font-size: 15px;
}
.recherche input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-voile); }
.outils-droite { display: flex; gap: 8px; flex-wrap: wrap; }
#tri {
  height: 42px; padding: 0 34px 0 14px; border-radius: 999px; border: 1.5px solid var(--trait);
  background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A5A5A' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
  -webkit-appearance: none; appearance: none; font-size: 14px; font-weight: 600;
}
@media (max-width: 560px) {
  .outils-droite { width: 100%; flex-wrap: nowrap; }
  #tri { flex: 1; min-width: 0; }
  .outils-droite .btn { padding: 10px 13px; }
}
@media (max-width: 420px) {
  .outils-droite .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .outils-droite .btn { width: 44px; height: 42px; padding: 0; }
}

.filtres { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 14px -16px 16px; padding: 2px 16px; }
.filtres::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .filtres { margin-left: 0; margin-right: 0; padding: 2px 0; } }
.filtre {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--trait); background: var(--blanc);
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--texte-doux);
  transition: all .2s;
}
.filtre b { font-weight: 800; color: var(--texte); font-variant-numeric: tabular-nums; }
.filtre[aria-pressed="true"] { background: var(--orange-pale); border-color: var(--orange); color: var(--orange-fonce); }
.filtre[aria-pressed="true"] b { color: var(--orange-fonce); }

/* Fiches invités */
.liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; }
.inv {
  position: relative; background: var(--blanc); border-radius: var(--rayon); padding: 16px 18px 16px 22px;
  box-shadow: var(--ombre); overflow: hidden;
  animation: monte .5s var(--courbe) both; animation-delay: calc(var(--i, 0) * 30ms);
}
.inv::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: #DAD8D4; }
.inv--present::before { background: var(--orange); }
.inv--absent::before { background: var(--anthracite); }
.inv-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.inv h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: -.005em; }
.statut {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.statut--present { background: var(--orange-pale); color: var(--orange-fonce); }
.statut--absent { background: #EDEDEE; color: var(--anthracite); }
.statut--attente { background: transparent; border: 1.5px dashed var(--gris-clair); color: var(--gris-moyen); }
.inv-infos { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; font-size: 13px; color: var(--texte-doux); }
.inv-infos span { display: inline-flex; align-items: center; gap: 6px; }
.inv-infos svg { width: 15px; height: 15px; fill: none; stroke: var(--gris-moyen); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.inv-infos strong { color: var(--texte); font-weight: 700; }
.inv-accomp { margin: 10px 0 0; padding: 10px 12px; background: var(--fond); border-radius: 10px; font-size: 13px; color: var(--texte-doux); }
.inv-accomp b { color: var(--texte); font-weight: 600; }
.inv-message { margin: 10px 0 0; padding-left: 12px; border-left: 2px solid var(--orange); font-size: 14px; font-style: italic; color: var(--texte); }
.inv-date { margin: 10px 0 0; font-size: 12px; color: var(--gris-moyen); }

.liste.calme .inv { animation: none; }
.plus {
  grid-column: 1 / -1; justify-self: center; margin: 8px 0 4px;
  border: 1.5px solid var(--trait); background: var(--blanc); color: var(--texte);
  padding: 13px 24px; border-radius: 999px; font-size: 14px; font-weight: 700;
}
.plus:hover { border-color: var(--orange); color: var(--orange-fonce); }
.plus small { font-weight: 500; color: var(--gris-moyen); }

/* Nombre de places (boutons − et +) */
.places {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
  margin: 12px 0 0; padding: 10px 12px; border-radius: 14px; background: var(--fond);
}
.places-lib { font-size: 13px; font-weight: 700; color: var(--texte); flex: 1 1 auto; }
.pas { display: inline-flex; align-items: center; gap: 4px; background: var(--blanc); border-radius: 999px; padding: 4px; box-shadow: inset 0 0 0 1.5px var(--trait); }
.pas-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--anthracite); color: var(--blanc);
  font-size: 22px; font-weight: 700; line-height: 1;
  display: grid; place-items: center; transition: background .2s, transform .15s;
}
.pas-btn:hover { background: var(--orange); }
.pas-btn:active { transform: scale(.9); }
.pas-btn:disabled { background: #E3E1DE; color: #A9A7A3; cursor: default; }
.pas-val { min-width: 34px; text-align: center; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.places-etat { flex-basis: 100%; font-size: 12px; font-weight: 600; color: var(--gris-moyen); min-height: 0; }
.places-etat:empty { display: none; }
.places-etat--ok { color: #1F8A4C; }
.places-etat--erreur { color: #A3241B; }

/* Partage : code, lien et boutons d'envoi */
/* La zone d'envoi reste collée en bas de chaque fiche, même si les fiches n'ont pas la même hauteur */
.inv { display: flex; flex-direction: column; }
.inv > :nth-last-child(2) { margin-bottom: 14px; }
.partage { margin: auto -18px -16px -22px; padding: 14px 18px 16px 22px; border-top: 1px dashed var(--trait); background: #FCFBFA; }
.partage--vide { font-size: 13px; color: var(--gris-moyen); }
.partage--vide strong { color: var(--texte); letter-spacing: .08em; }
.partage-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.code-bloc { display: flex; align-items: baseline; gap: 8px; }
.code-lib { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gris-moyen); }
.code { font-size: 19px; font-weight: 800; letter-spacing: .16em; color: var(--anthracite); font-variant-numeric: tabular-nums; }
.copier {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent;
  padding: 6px 4px; font-size: 13px; font-weight: 700; color: var(--orange-fonce);
}
.copier svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.copier:hover span { text-decoration: underline; }
.lien {
  display: block; margin: 4px 0 12px; font-size: 13px; color: var(--gris);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none;
}
.lien:hover { color: var(--orange-fonce); text-decoration: underline; }
.envois { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.envoi { min-width: 0; overflow: hidden; }
.envoi {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 46px; border-radius: 12px; border: 0; padding: 0 10px;
  font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: filter .2s, transform .15s;
}
.envoi:active { transform: scale(.97); }
.envoi:hover { filter: brightness(.94); }
.envoi svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.envoi svg.plein { fill: currentColor; stroke: none; }
.envoi--wa { background: #25D366; color: #fff; box-shadow: 0 6px 16px rgba(37, 211, 102, .3); }
.envoi--tg { background: #229ED9; color: #fff; }
.envoi--autre { background: var(--blanc); color: var(--texte); box-shadow: inset 0 0 0 1.5px var(--trait); }
@media (max-width: 440px) { .envois { gap: 6px; } .envoi { font-size: 13px; gap: 5px; padding: 0 6px; } .envoi svg { width: 18px; height: 18px; } }
@media (max-width: 350px) { .envoi--autre svg { display: none; } }
.envoye { margin: 10px 0 0; font-size: 12px; font-weight: 600; color: var(--orange-fonce); display: flex; align-items: center; gap: 6px; }
.envoye::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.envoye--ok { color: #1F8A4C; }
.envoye--ok::before { display: none; }

/* Aide « Comment inviter » */
.guide {
  position: relative; margin: 0 0 16px; padding: 18px 20px; border-radius: var(--rayon);
  background: var(--anthracite); color: var(--blanc); overflow: hidden;
}
.guide::after { content: ""; position: absolute; right: -50px; top: -50px; width: 150px; height: 150px; border-radius: 50%; border: 16px dashed rgba(232, 112, 14, .35); }
.guide h2 { margin: 0 34px 12px 0; font-size: 17px; font-weight: 800; }
.guide ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 820px) { .guide ol { grid-template-columns: repeat(3, 1fr); } }
.guide li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #E2E2E4; position: relative; z-index: 1; }
.guide li b { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: var(--blanc); display: grid; place-items: center; font-size: 13px; }
.guide p { margin: 12px 0 0; font-size: 13px; color: #B9B9BD; position: relative; z-index: 1; }
.guide p strong { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blanc); color: var(--anthracite); }
.mini-wa { font-style: normal; font-weight: 700; color: #fff; background: #25D366; padding: 1px 8px; border-radius: 6px; }
.guide-fermer {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .1); color: var(--blanc); font-size: 20px; line-height: 1;
}
.guide-fermer:hover { background: rgba(255, 255, 255, .2); }
.filtre--envoyer[aria-pressed="false"] b { color: var(--orange-fonce); }

.vide { grid-column: 1 / -1; text-align: center; padding: 50px 20px; background: var(--blanc); border-radius: var(--rayon); color: var(--texte-doux); box-shadow: var(--ombre); }
.vide strong { display: block; color: var(--texte); font-size: 16px; margin-bottom: 4px; }
.vide-anneau { width: 58px; height: 58px; margin: 0 auto 14px; position: relative; }
.vide-anneau .decor { position: static; width: 58px; height: 58px; }

/* Tables */
.grille-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.table-carte { background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; animation: monte .5s var(--courbe) both; animation-delay: calc(var(--i, 0) * 50ms); }
.table-tete { display: flex; align-items: center; gap: 14px; padding: 18px 18px 14px; }
.table-rond {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--orange) calc(var(--p, 0) * 1%), #ECEAE7 0);
}
.table-rond::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--blanc); }
.table-rond span { position: relative; z-index: 1; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.table-nom { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.table-nom small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 2px; }
.table-sous { margin: 2px 0 0; font-size: 13px; color: var(--texte-doux); }
.table-liste { list-style: none; margin: 0; padding: 4px 18px 16px; border-top: 1px solid var(--trait); }
.table-liste li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: 14px; border-bottom: 1px dashed var(--trait); }
.table-liste li:last-child { border-bottom: 0; }
.table-liste li .n { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--orange-fonce); white-space: nowrap; }
.table-liste li.absent { color: var(--gris-moyen); }
.table-liste li.absent .nom { text-decoration: line-through; }
.table-liste li.absent .n, .table-liste li.attente .n { color: var(--gris-moyen); font-weight: 600; }
.table-liste li.attente { color: var(--texte-doux); }

/* Boissons */
.boissons { background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 8px 20px 18px; }
.boisson { padding: 14px 0; border-bottom: 1px solid var(--trait); }
.boisson:last-of-type { border-bottom: 0; }
.boisson-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.boisson-nom { font-weight: 700; font-size: 15px; }
.boisson-n { font-size: 13px; color: var(--texte-doux); white-space: nowrap; }
.boisson-n strong { font-size: 18px; color: var(--texte); font-weight: 800; font-variant-numeric: tabular-nums; }
.boisson-barre { height: 8px; border-radius: 99px; background: #F0EEEB; overflow: hidden; }
.boisson-barre span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--orange), #F59A3B); transition: width 1s var(--courbe); }
.note { margin: 14px 0 0; font-size: 12px; color: var(--gris-moyen); }

/* Messages */
.messages { columns: 1; column-gap: 14px; }
@media (min-width: 700px) { .messages { columns: 2; } }
@media (min-width: 1020px) { .messages { columns: 3; } }
.message {
  break-inside: avoid; margin: 0 0 14px; position: relative;
  background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 22px 20px 18px;
  animation: monte .5s var(--courbe) both; animation-delay: calc(var(--i, 0) * 40ms);
}
.message::before { content: "“"; position: absolute; top: -6px; left: 16px; font-size: 64px; font-weight: 800; color: var(--orange); line-height: 1; }
.message p { margin: 14px 0 12px; font-size: 15px; line-height: 1.6; white-space: pre-line; }
.message footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.message footer .statut { font-size: 10px; }

/* Pied de page */
.pied { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px calc(26px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--gris-moyen); text-align: center; }
.pied a { text-decoration: none; }
.pied a strong { color: var(--orange-fonce); }
.pied a:hover strong { text-decoration: underline; }
.pied--sombre { position: absolute; left: 0; right: 0; bottom: 0; color: #8C8C90; }
.pied--sombre a strong { color: var(--orange); }

/* Notification */
.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 60;
  translate: -50% 20px; opacity: 0; pointer-events: none;
  background: var(--anthracite); color: var(--blanc); padding: 12px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  transition: opacity .3s, translate .3s var(--courbe); max-width: calc(100% - 32px); text-align: center;
}
.toast.visible { opacity: 1; translate: -50% 0; }

/* Impression */
.impression { display: none; }
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  body > *:not(.impression) { display: none !important; }
  .impression { display: block; color: #000; }
  .impression h1 { font-size: 20pt; margin: 0; }
  .impression .im-sous { margin: 4px 0 14px; color: #444; }
  .impression .im-chiffres { display: flex; gap: 18px; margin-bottom: 16px; font-weight: 700; }
  .impression h2 { font-size: 13pt; margin: 18px 0 6px; padding-bottom: 4px; border-bottom: 2px solid #E8700E; }
  .impression table { width: 100%; border-collapse: collapse; font-size: 10pt; }
  .impression th, .impression td { text-align: left; padding: 5px 6px; border-bottom: 1px solid #ddd; vertical-align: top; }
  .impression th { font-size: 8.5pt; text-transform: uppercase; letter-spacing: .05em; color: #555; }
  .impression tr { break-inside: avoid; }
  .impression .im-pied { margin-top: 18px; font-size: 9pt; color: #666; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
