/* Charte : logo de la paroisse — soleil doré, brique, lettrage géométrique. */
@font-face { font-family: "Josefin Sans"; font-weight: 600; font-display: swap; src: url(/polices/josefin-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Josefin Sans"; font-weight: 700; font-display: swap; src: url(/polices/josefin-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url(/polices/source-sans-3-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url(/polices/source-sans-3-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url(/polices/source-sans-3-latin-700-normal.woff2) format("woff2"); }

:root {
  --brique: #9f2013;
  --brique-fonce: #7c180e;
  --soleil: #fcc95c;
  --soleil-voile: #fff3d6;
  --encre: #2a1712;
  --pierre: #6f5b52;
  --ligne: #efe4d6;
  --fond: #fffaf2;
  --brique-nuit: #6e150b;
  --lit: #2f6b3a;
  --lit-voile: #e6f1e7;
  --vert: #2f6b3a;
  --titre: "Josefin Sans", "Avenir Next", "Century Gothic", sans-serif;
  --texte: "Source Sans 3", -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 17px/1.55 var(--texte); }
a { color: var(--brique); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--brique); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.page { max-width: 600px; margin: 0 auto; padding: 0 1.15rem 3rem; overflow-x: clip; }

/* ---------- Titres ---------- */
h1, h2, h3, .bouton, .onglets button { font-family: var(--titre); }
h1 { font-size: 1.75rem; line-height: 1.15; font-weight: 700; margin: .6rem 0 .5rem; letter-spacing: -.005em; }
h2 { font-size: 1.2rem; font-weight: 700; margin: 2rem 0 .7rem; }
h3 { font-size: 1.08rem; font-weight: 700; margin: 0; line-height: 1.25; }
p { margin: .45rem 0; }
.discret { color: var(--pierre); font-size: .93rem; }
.vide { color: var(--pierre); }

/* ---------- En-tête : le soleil du logo ---------- */
.soleil { position: relative; isolation: isolate; padding: 1.4rem 0 1.2rem; }
.soleil::before {
  content: ""; position: absolute; z-index: -1; width: 340px; height: 340px; border-radius: 50%;
  background: var(--soleil); right: -150px; top: -170px;
}
.soleil .logo { display: block; width: 148px; height: auto; }
.soleil .salut { font-family: var(--titre); font-weight: 700; font-size: 1.55rem; margin: 1.1rem 0 0; color: var(--brique); }
.barre { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0 .2rem; }
.barre img { width: 64px; height: auto; }
.retour { font-family: var(--titre); font-weight: 600; text-decoration: none; font-size: 1rem; color: var(--brique); background: none; border: 0; padding: .3rem 0; cursor: pointer; }

/* ---------- Blocs ---------- */
.bloc { border: 1px solid var(--ligne); border-radius: 18px; padding: 1rem 1.1rem; margin: .7rem 0; background: #fff; }
.bloc.chaud { background: var(--soleil-voile); border-color: transparent; }
a.bloc { display: block; color: inherit; text-decoration: none; }

/* Liste d'actions : une rangée par démarche */
.actions { list-style: none; margin: .4rem 0 0; padding: 0; border-top: 1px solid var(--ligne); }
.actions a { display: grid; grid-template-columns: 48px 1fr 16px; gap: .9rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--ligne); text-decoration: none; color: var(--encre); }
.actions a:active { background: var(--soleil-voile); }
.actions .ico { width: 48px; height: 48px; border-radius: 50%; background: var(--soleil); color: var(--brique); display: grid; place-items: center; }
.actions .ico svg { width: 24px; height: 24px; }
.actions strong { display: block; font-family: var(--titre); font-weight: 700; font-size: 1.07rem; line-height: 1.2; }
.actions small { display: block; color: var(--pierre); font-size: .9rem; margin-top: .1rem; }
.actions .fleche { color: var(--brique); font-size: 1.3rem; line-height: 1; }

/* Prochaine séance */
.prochaine { display: flex; gap: .9rem; align-items: center; }
.jour { flex: none; width: 58px; height: 58px; border-radius: 50%; background: var(--brique); color: #fff; display: grid; place-content: center; text-align: center; line-height: 1; font-family: var(--titre); }
.jour b { font-size: 1.35rem; display: block; }
.jour span { font-size: .72rem; font-weight: 600; }
.jour.annule { background: #fff; color: var(--pierre); border: 2px dashed var(--pierre); }

.seance { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; padding: .7rem 0; border-top: 1px solid var(--ligne); }
.seance:first-child { border-top: 0; }
.seance .quand { font-weight: 600; }
.seance .badge { align-self: start; justify-self: end; }
.seance.annulee .quand { text-decoration: line-through; color: var(--pierre); }
.seance .ou { grid-column: 1 / -1; color: var(--pierre); font-size: .92rem; }

.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: .12rem .55rem; border-radius: 99px; background: var(--soleil-voile); color: var(--brique); white-space: nowrap; }
.badge.ok { background: #e6f2e8; color: var(--vert); }
.badge.gris { background: #f1ece6; color: var(--pierre); }
.badge.plein { background: var(--brique); color: #fff; }

/* ---------- Formulaires ---------- */
label { display: block; font-weight: 600; margin: 1.15rem 0 .35rem; }
label .opt { font-weight: 400; color: var(--pierre); font-size: .88rem; }
.aide { color: var(--pierre); font-size: .9rem; margin: -.15rem 0 .4rem; }
input, select, textarea {
  width: 100%; font: inherit; padding: .75rem .85rem; border: 1.5px solid #ddd0c2; border-radius: 12px; background: #fff; color: var(--encre);
}
textarea { min-height: 6.5rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brique); box-shadow: 0 0 0 3px var(--soleil-voile); }
.case { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .93rem; color: var(--pierre); }
.case input { width: 22px; height: 22px; flex: none; margin-top: .1rem; accent-color: var(--brique); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Choix du motif : pastilles */
.pastilles { display: flex; flex-wrap: wrap; gap: .45rem; }
.pastilles button { font: inherit; font-size: .95rem; padding: .5rem .9rem; border-radius: 99px; border: 1.5px solid #ddd0c2; background: #fff; color: var(--encre); cursor: pointer; }
.pastilles button[aria-pressed="true"] { background: var(--soleil); border-color: var(--soleil); color: var(--brique); font-weight: 700; }

/* Grille des disponibilités */
.dispos { display: grid; grid-template-columns: 4.2rem repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: .3rem; }
.dispos .tete { font-family: var(--titre); font-weight: 700; font-size: .82rem; text-align: center; padding: .35rem 0; background: none; border: 0; color: var(--encre); cursor: pointer; border-radius: 8px; }
.dispos .moment { font-family: var(--texte); font-size: .85rem; font-weight: 600; text-align: left; padding: 0 .2rem; background: none; border: 0; color: var(--pierre); cursor: pointer; line-height: 1.1; }
.dispos .case-dispo { width: 100%; aspect-ratio: 1; max-width: 46px; justify-self: center; border-radius: 50%; border: 1.5px solid #ddd0c2; background: #fff; cursor: pointer; padding: 0; }
.dispos .case-dispo[aria-pressed="true"] { background: var(--soleil); border-color: var(--brique); box-shadow: inset 0 0 0 3px #fff; }
.resume-dispos { font-size: .93rem; color: var(--brique); font-weight: 600; min-height: 1.4em; margin: .5rem 0 0; }

/* ---------- Boutons ---------- */
.bouton {
  display: block; width: 100%; text-align: center; margin-top: 1.3rem; padding: .95rem 1.2rem .85rem;
  font-size: 1.05rem; font-weight: 700; color: #fff; background: var(--brique); border: 0; border-radius: 99px; text-decoration: none; cursor: pointer;
}
.bouton:hover { background: var(--brique-fonce); }
.bouton.second { background: #fff; color: var(--brique); border: 2px solid var(--brique); }
.bouton.soleil-btn { background: var(--soleil); color: var(--brique); }
.bouton.petit { display: inline-block; width: auto; padding: .45rem .9rem .38rem; margin: 0; font-size: .92rem; }
.bouton:disabled { opacity: .55; }
.rangee { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

.message { padding: .85rem 1rem; border-radius: 14px; margin: 1rem 0; }
.message.erreur { background: #fbe9e6; color: var(--brique-fonce); }
.message.ok { background: #e6f2e8; color: #1f4d28; }
.message.info { background: var(--soleil-voile); color: var(--brique-fonce); font-weight: 600; }

/* Page de confirmation */
.merci { text-align: center; padding-top: 3rem; }
.merci .disque { width: 120px; height: 120px; border-radius: 50%; background: var(--soleil); margin: 0 auto 1.2rem; display: grid; place-items: center; color: var(--brique); }
.merci .disque svg { width: 52px; height: 52px; }

.pied { text-align: center; font-size: .88rem; color: var(--pierre); margin-top: 2.6rem; }
.pied a { color: var(--pierre); }

/* ---------- Espace équipe ---------- */
.onglets { display: flex; gap: .4rem; margin: .6rem 0 1rem; overflow-x: auto; padding-bottom: 2px; }
.onglets button { flex: none; font-size: .95rem; font-weight: 700; padding: .5rem .95rem .42rem; border-radius: 99px; border: 1.5px solid var(--ligne); background: #fff; color: var(--encre); cursor: pointer; }
.onglets button.actif { background: var(--brique); color: #fff; border-color: var(--brique); }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
dl { margin: .7rem 0; } dt { font-size: .82rem; color: var(--pierre); margin-top: .5rem; } dd { margin: 0; white-space: pre-wrap; }
table.seances { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.seances td { padding: .45rem .2rem; border-top: 1px solid var(--ligne); vertical-align: middle; }
table.seances input { padding: .45rem .55rem; }

/* ---------- Ajouts : langues, dons et messes, suivi ---------- */
.langues { display: flex; gap: 2px; background: #fff; border-radius: 99px; padding: 3px; box-shadow: 0 0 0 1.5px var(--ligne); }
.langues button { font: 600 .82rem/1 var(--texte); border: 0; background: none; color: var(--encre); padding: .45rem .5rem; border-radius: 99px; cursor: pointer; }
.langues button[aria-pressed="true"] { background: var(--brique); color: #fff; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.4rem; }
.gros-bouton { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: .95rem 1rem; border-radius: 22px; text-decoration: none; font-family: var(--titre); font-weight: 700; font-size: 1.02rem; line-height: 1.2; }
.gros-bouton .ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.gros-bouton .ico svg { width: 22px; height: 22px; }
.gros-bouton.soleil-btn { background: var(--soleil); color: var(--brique); }
.gros-bouton.soleil-btn .ico { background: #fff; color: var(--brique); }
.gros-bouton.brique-btn { background: var(--brique); color: #fff; }
.gros-bouton.brique-btn .ico { background: rgba(255,255,255,.18); color: #fff; }
.etiquette { font-weight: 600; margin: 1.15rem 0 .35rem; }
.etiquette .opt, label .opt { font-weight: 400; color: var(--pierre); font-size: .88rem; }
.horaires { margin: .4rem 0; padding-left: 1.1rem; }
.horaires li { margin: .2rem 0; font-weight: 600; }
.reponse { margin: .6rem 0 0; padding: .6rem .8rem; border-left: 4px solid var(--soleil); background: var(--soleil-voile); border-radius: 0 10px 10px 0; font-weight: 600; }
.lien-discret { background: none; border: 0; padding: 0; margin-top: .5rem; color: var(--pierre); text-decoration: underline; font: inherit; font-size: .88rem; cursor: pointer; }
.ok-texte { color: var(--vert); font-weight: 700; }
.etapes { margin: .5rem 0 0; padding-left: 1.3rem; }
.etapes li { margin: .35rem 0; }
:lang(ta) h1, :lang(ta) h2, :lang(ta) h3, :lang(ta) .bouton, :lang(ta) .gros-bouton, :lang(ta) .actions strong { font-family: var(--texte); letter-spacing: 0; }

/* ---------- Espace équipe : version bureau ---------- */
.page.large { max-width: 1200px; }
.entete-equipe { display: flex; align-items: center; gap: 1rem; padding: 1rem 0 .3rem; }
.entete-equipe .titre { flex: 1; min-width: 0; }
.entete-equipe h1 { margin: 0; font-size: 1.5rem; }
.entete-equipe .titre p { margin: 0; }
.entete-equipe .outils { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.lignes { list-style: none; margin: 0; padding: 0; }
.ligne-demande { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--ligne); border-radius: 14px; padding: .75rem .9rem; margin: .45rem 0; cursor: pointer; font: inherit; color: inherit; }
.ligne-demande:hover { border-color: var(--soleil); }
.ligne-demande.choisie { background: var(--soleil-voile); border-color: var(--soleil); }
.ligne-demande.neuve strong::before { content: ""; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--brique); margin-right: .45rem; vertical-align: middle; }
.ligne-demande .haut { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.ligne-demande .haut .discret { font-size: .82rem; white-space: nowrap; }
.ligne-demande .bas { display: block; font-size: .9rem; color: var(--pierre); margin-top: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fiche .pastilles button { font-size: .85rem; padding: .35rem .7rem; }
.fiche-vide { display: grid; place-items: center; min-height: 260px; color: var(--pierre); }
@media (min-width: 900px) {
  .bureau { display: grid; grid-template-columns: minmax(330px, 420px) 1fr; gap: 1.6rem; align-items: start; }
  .fiche { position: sticky; top: 1rem; border: 1px solid var(--ligne); border-radius: 18px; padding: 1.2rem 1.5rem; max-height: calc(100vh - 2rem); overflow: auto; background: #fff; }
  .fiche dl { display: grid; grid-template-columns: 11rem 1fr; gap: .45rem 1rem; }
  .fiche dt { margin: 0; padding-top: .15rem; }
  .seulement-mobile { display: none; }
}
@media (max-width: 899px) {
  .bureau.avec-fiche .liste-demandes { display: none; }
  .bureau:not(.avec-fiche) .fiche { display: none; }
}

/* ---------- Agenda ---------- */
.jour-agenda h2 { font-size: 1.05rem; margin: 1.4rem 0 .4rem; color: var(--brique); }
.jour-agenda h2::first-letter, .jour-agenda h3::first-letter { text-transform: uppercase; }
.jour-agenda h3 { font-size: 1rem; margin: 1rem 0 .2rem; }
.lignes-agenda { list-style: none; margin: 0; padding: 0; }
.lignes-agenda li.bloc { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: .8rem; padding: .8rem 1rem; margin: .45rem 0; }
.lignes-agenda .heure { font-weight: 700; font-variant-numeric: tabular-nums; padding-top: .1rem; }
.lignes-agenda h3 { margin: 0; font-size: 1.02rem; }
.lignes-agenda .bouton.petit { margin-top: .6rem; }
.lignes-agenda li.annule h3 s { text-decoration-thickness: 1px; opacity: .7; }

/* ---------- Nouvel accueil (décembre 2026) ---------- */
body:has(.barre-bas) { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
.entete { position: relative; isolation: isolate; overflow: hidden; color: #fff; margin: 0 -1.15rem; padding: calc(1.6rem + env(safe-area-inset-top)) 1.3rem 5.6rem;
  background: radial-gradient(120% 90% at 85% 0%, #c2361f 0%, var(--brique) 45%, var(--brique-nuit) 100%); border-radius: 0 0 28px 28px; }
.entete::before { content: ""; position: absolute; z-index: -1; width: 300px; height: 300px; border-radius: 50%; right: -90px; top: -120px;
  background: radial-gradient(circle at 40% 60%, #ffe39e 0%, var(--soleil) 55%, rgba(252,201,92,0) 72%); animation: lever 1.4s cubic-bezier(.2,.8,.2,1) both; }
.entete::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: repeating-conic-gradient(from 200deg at 82% -6%, rgba(255,255,255,.07) 0 4deg, transparent 4deg 14deg);
  -webkit-mask-image: radial-gradient(circle at 82% 0%, #000 0, transparent 70%); mask-image: radial-gradient(circle at 82% 0%, #000 0, transparent 70%); }
@keyframes lever { from { transform: translateY(40px) scale(.9); } }
.entete .haut { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.logo-pastille { flex: none; width: 60px; height: 60px; border-radius: 18px; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.logo-pastille img { width: 52px; height: auto; }
.entete .langues { background: rgba(255,255,255,.16); box-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.entete .langues button { color: #fff; }
.entete .langues button[aria-pressed="true"] { background: #fff; color: var(--brique); }
.entete .salut { font: 700 2rem/1.1 var(--titre); margin: 1.4rem 0 .45rem; letter-spacing: -.01em; }
:lang(ta) .entete .salut { font-family: var(--texte); font-size: 1.7rem; }
.temps { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem; background: rgba(255,255,255,.14); padding: .3rem .8rem .3rem .35rem; border-radius: 99px; }
.temps i { width: 18px; height: 18px; border-radius: 50%; background: var(--lit); box-shadow: 0 0 0 2px #fff; }
.sous-entete { margin-top: -4.3rem; position: relative; }

.carte-messe { display: block; position: relative; overflow: hidden; background: #fff; color: var(--encre); text-decoration: none; border-radius: 26px; padding: 1.1rem 1.15rem 1rem 1.4rem; box-shadow: 0 14px 34px -14px rgba(110,21,11,.35); }
.carte-messe::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--lit); }
.etiquette-maj { font: 700 .74rem var(--titre); letter-spacing: .08em; text-transform: uppercase; color: var(--pierre); }
:lang(ta) .etiquette-maj { font-family: var(--texte); letter-spacing: 0; }
.carte-messe .quand { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin: .25rem 0 .1rem; }
.grande-heure { font: 700 2.6rem/1 var(--titre); color: var(--brique); letter-spacing: -.02em; }
.jour-messe { font: 700 1.1rem var(--titre); }
.jour-messe::first-letter { text-transform: uppercase; }
.compte { display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem; font-weight: 700; font-size: .85rem; color: var(--lit); background: var(--lit-voile); padding: .2rem .65rem; border-radius: 99px; }
.compte::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pouls 1.6s infinite; }
@keyframes pouls { 50% { opacity: .25; } }
.carte-messe .liens { display: flex; gap: .5rem; margin-top: .9rem; }
.btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; font: 700 .92rem var(--titre); padding: .72rem .6rem .62rem; border-radius: 14px; text-decoration: none; text-align: center; }
.btn svg { width: 18px; height: 18px; }
.btn span { display: inline-flex; }
.btn.plein { background: var(--brique); color: #fff; }
.btn.clair { background: var(--soleil-voile); color: var(--brique); }

.chemin { margin-top: .8rem; border-radius: 22px; padding: .9rem 1rem; background: var(--lit-voile); display: flex; align-items: center; gap: .9rem; }
.chemin strong { font: 700 1rem/1.2 var(--titre); display: block; }
:lang(ta) .chemin strong { font-family: var(--texte); }
.chemin small { color: var(--pierre); font-size: .88rem; display: block; line-height: 1.3; margin-top: .1rem; }
.couronne { flex: none; width: 74px; height: 56px; position: relative; }
.couronne .branche { position: absolute; left: 4px; right: 4px; bottom: 2px; height: 16px; border-radius: 50%; background: #3f6b3c; box-shadow: inset 0 -4px 0 #2d5029; }
.bougie { position: absolute; bottom: 10px; width: 9px; border-radius: 2px; background: #5b2a86; }
.bougie.rose { background: #d77fa1; }
.bougie::after { content: ""; position: absolute; left: 50%; top: -11px; width: 8px; height: 11px; margin-left: -4px; border-radius: 50% 50% 45% 45%; background: radial-gradient(circle at 50% 70%, #fff6c8, #ffb02e 60%, transparent 70%); opacity: 0; }
.bougie.allumee::after { opacity: 1; animation: flamme 1.8s ease-in-out infinite; }
@keyframes flamme { 50% { transform: scale(.85, 1.1) translateY(-1px); } }
.barre-chemin { height: 6px; border-radius: 9px; background: rgba(0,0,0,.08); margin-top: .5rem; overflow: hidden; }
.barre-chemin span { display: block; height: 100%; background: var(--lit); border-radius: 9px; animation: remplir 1.6s .4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes remplir { from { width: 0; } }

.titre-lien { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.titre-lien a { font: 600 .92rem var(--texte); text-decoration: none; white-space: nowrap; }
.defile { display: flex; gap: .65rem; overflow-x: auto; margin: 0 -1.15rem; padding: .1rem 1.15rem .4rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
.defile::-webkit-scrollbar { display: none; }
.cartes-groupes > .bloc { flex: 0 0 82%; scroll-snap-align: start; margin: 0; }
.carte-evt { flex: 0 0 250px; scroll-snap-align: start; border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--ligne); text-decoration: none; color: var(--encre); }
.carte-evt .visuel { height: 88px; display: flex; align-items: flex-end; padding: .6rem .75rem; }
.pastille-date { background: #fff; border-radius: 12px; padding: .25rem .6rem; text-align: center; line-height: 1.05; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.pastille-date b { display: block; font: 700 1.3rem var(--titre); color: var(--brique); }
.pastille-date span { font: 700 .7rem var(--titre); text-transform: uppercase; letter-spacing: .06em; }
.carte-evt .texte { padding: .7rem .85rem .85rem; }
.carte-evt .texte b { font-family: var(--titre); display: block; line-height: 1.25; }
:lang(ta) .carte-evt .texte b { font-family: var(--texte); }
.carte-evt .texte small { color: var(--pierre); display: block; margin-top: .15rem; }
.carte-evt .inscr { display: inline-block; margin-top: .45rem; font: 700 .85rem var(--titre); color: var(--brique); }
.carte-evt.annule .visuel { filter: grayscale(1); opacity: .6; }

.gros-bouton { position: relative; overflow: hidden; min-height: 128px; justify-content: space-between; border-radius: 24px; padding: 1rem; font-size: 1.05rem; }
.gros-bouton::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 90px; height: 90px; border-radius: 50%; background: rgba(255,255,255,.18); }
.gros-bouton.soleil-btn { background: linear-gradient(150deg, #ffd981, var(--soleil)); color: var(--brique-nuit); }
.gros-bouton.brique-btn { background: linear-gradient(150deg, #b8301c, var(--brique-nuit)); }

.tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.tuile { background: #fff; border: 1px solid var(--ligne); border-radius: 20px; padding: .85rem; text-decoration: none; color: var(--encre); display: flex; flex-direction: column; gap: .6rem; min-height: 112px; transition: transform .15s; }
.tuile:active { transform: scale(.96); }
.tuile .ico { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--soleil-voile); color: var(--brique); }
.tuile .ico svg { width: 22px; height: 22px; }
.tuile b { display: block; font: 700 .98rem/1.2 var(--titre); }
:lang(ta) .tuile b { font-family: var(--texte); }
.tuile small { display: block; color: var(--pierre); font-size: .84rem; line-height: 1.25; margin-top: .15rem; }
.tuile.large { grid-column: span 2; flex-direction: row; align-items: center; min-height: 0; }
.tuile.mise-en-avant { background: var(--encre); color: #fff; border-color: var(--encre); }
.tuile.mise-en-avant small { color: #d9cbbf; }
.tuile.mise-en-avant .ico { background: rgba(255,255,255,.12); color: var(--soleil); }

.barre-bas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: space-around; max-width: 600px; margin: 0 auto;
  background: rgba(255,250,242,.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--ligne); padding: .45rem .3rem calc(.45rem + env(safe-area-inset-bottom)); }
.barre-bas a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .1rem; font: 700 .7rem var(--titre); color: var(--pierre); text-decoration: none; letter-spacing: .02em; padding: .2rem 0; }
:lang(ta) .barre-bas a { font-family: var(--texte); font-size: .68rem; letter-spacing: 0; }
.barre-bas a span { display: grid; }
.barre-bas svg { width: 24px; height: 24px; }
.barre-bas a.actif { color: var(--brique); }

.apparait { animation: monte .7s cubic-bezier(.2,.8,.2,1) both; }
/* Pas de fondu depuis l'opacité 0 : si le navigateur suspend les animations (économie d'énergie), le contenu doit rester visible. */
@keyframes monte { from { transform: translateY(10px); } }

/* Bouton WhatsApp (groupes des confirmands et du catéchuménat) */
.bouton.whatsapp { display: flex; align-items: center; justify-content: center; gap: .5rem; background: #1f8f4e; color: #fff; }
.bouton.whatsapp:hover { background: #17733e; }
.bouton.whatsapp .ico-wa { display: inline-grid; }
.bouton.whatsapp svg { width: 22px; height: 22px; }

/* Annonce urgente (24 h) et feuille de la semaine */
.annonce-urgente { background: #fff; border-radius: 20px; padding: .9rem 1.1rem; margin-bottom: .8rem; border-left: 6px solid var(--brique); box-shadow: 0 10px 26px -14px rgba(110,21,11,.4); }
.annonce-urgente .etiquette-maj { color: var(--brique); }
.annonce-urgente p { margin: .2rem 0 0; font-weight: 600; white-space: pre-line; }
.carte-feuille { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; padding: .9rem 1rem; border-radius: 20px; background: var(--soleil-voile); color: var(--encre); text-decoration: none; }
.carte-feuille .ico { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: #fff; color: var(--brique); }
.carte-feuille .ico svg { width: 22px; height: 22px; }
.carte-feuille b { display: block; font-family: var(--titre); }
:lang(ta) .carte-feuille b { font-family: var(--texte); }
.carte-feuille small { display: block; color: var(--pierre); font-size: .86rem; }
.carte-feuille .fleche { margin-left: auto; color: var(--brique); font-weight: 700; }
.notif-annonces { margin-top: 1.6rem; }
.notif-annonces h3 { margin-bottom: .2rem; }

/* Conversations parents ↔ animateurs */
.conversation { display: flex; flex-direction: column; gap: .5rem; margin: .8rem 0 1rem; }
.bulle { max-width: 85%; padding: .6rem .85rem; border-radius: 16px; }
.bulle p { margin: 0; white-space: pre-line; }
.bulle small { display: block; margin-top: .25rem; color: var(--pierre); font-size: .78rem; }
.bulle.parent { align-self: flex-start; background: #fff; border: 1px solid var(--ligne); border-bottom-left-radius: 4px; }
.bulle.nous { align-self: flex-end; background: var(--soleil-voile); border-bottom-right-radius: 4px; }
.fil-annonce { border-left: 4px solid var(--soleil); }
.fil-annonce .quand-annonce { color: var(--pierre); font-size: .85rem; margin: 0; }
.fil-annonce .piece { display: inline-flex; align-items: center; gap: .4rem; margin-top: .4rem; font-weight: 600; }
.absence-ok { color: var(--vert); font-weight: 600; }
.carte-lectures { margin-top: .8rem; background: #fff; border: 1px solid var(--ligne); }
.carte-lectures .ico { background: var(--lit-voile); color: var(--lit); }
a.reponse-animateurs { display: block; text-decoration: none; color: var(--encre); margin-top: 1rem; border-left-color: var(--vert); }
a.reponse-animateurs .etiquette-maj { color: var(--vert); }
.tuiles-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; }
.tuiles-stats .bloc { margin: 0; }
.tuiles-stats b { display: block; font: 700 1.6rem var(--titre); color: var(--brique); }
.tuiles-stats span { color: var(--pierre); font-size: .9rem; }
table.seances th { text-align: left; font-size: .85rem; color: var(--pierre); padding: .3rem .2rem; }

/* ---------- Lot 1 du design (déc. 2026) ---------- */
/* Le focus placé sur le titre à chaque changement de page sert au lecteur d'écran : pas de cadre visible. */
h1[tabindex="-1"]:focus { outline: none; }
/* Apparition courte, pour ne jamais laisser l'écran pâle. */
.apparait { animation-duration: .2s; }
.entete::before { animation-duration: .6s; }
.carte-seance { background: #fff; border-radius: 22px; padding: 1rem 1.1rem; margin: .8rem 0 1rem; box-shadow: 0 10px 26px -16px rgba(110,21,11,.35); border: 1px solid var(--ligne); }
.carte-seance .liens { display: flex; gap: .5rem; margin-top: .9rem; }
.carte-seance .btn { border: 0; cursor: pointer; min-height: 46px; }
.lien-discret.plus { display: block; margin: .3rem auto 0; padding: .7rem 1rem; font-weight: 600; color: var(--brique); text-decoration: none; }
.rangee-cartes { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .8rem; }
.rangee-cartes > div { display: contents; }
.rangee-cartes .carte-feuille { margin: 0; flex-direction: column; align-items: flex-start; gap: .5rem; padding: .85rem; }
.rangee-cartes .carte-feuille .fleche { position: absolute; right: .8rem; top: .7rem; margin: 0; }
.rangee-cartes .carte-feuille { position: relative; }
/* Sans feuille de la semaine, la carte des lectures prend toute la largeur. */
.rangee-cartes:not(:has(> div > *)) > .carte-feuille { grid-column: span 2; }
.reponse-animateurs .action { display: inline-block; margin-top: .4rem; font-weight: 700; color: var(--vert); }
.annonce-urgente:not(.reponse-animateurs)::before { content: "⚠"; float: left; font-size: 1.2rem; margin-right: .5rem; color: var(--brique); }
.notif-annonces.actif { background: transparent; border: 0; padding: .2rem 0; text-align: center; }
table.seances tr.seance-annulee td:first-child strong { text-decoration: line-through; color: var(--pierre); }
table.seances td.actions-seance { white-space: nowrap; text-align: right; }
table.seances td.actions-seance .lien-discret { display: block; margin: .4rem 0 0 auto; }
.zone-suppression { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--ligne); text-align: right; }

/* Zones à toucher (44 px recommandés) et tailles de texte minimales (public âgé) */
.langues button { min-width: 44px; min-height: 40px; padding: .55rem .6rem; }
.titre-lien a, .notif-annonces a { display: inline-block; padding: .6rem .2rem; }
.pied a { display: inline-block; padding: .55rem .35rem; }
.lien-discret { padding: .5rem .2rem; }
.case input { width: 26px; height: 26px; }
.barre-bas a { font-size: .8rem; }
.etiquette-maj { font-size: .8rem; }
.tuile small { font-size: .9rem; }
.badge { font-size: .82rem; }
.fil-annonce .quand-annonce { font-size: .9rem; }
.bulle small { font-size: .85rem; }
.discret { color: #5f4c43; }

/* Tamoul : les glyphes paraissent plus petits que le latin à taille égale */
html:lang(ta) body { font-size: 18.5px; line-height: 1.65; }
:lang(ta) .btn, :lang(ta) .bouton { height: auto; line-height: 1.35; }
/* Dates d'un groupe sur téléphone : une carte par séance (date + actions, puis la note en dessous) */
@media (max-width: 600px) {
  table.dates-groupe, table.dates-groupe tbody, table.dates-groupe tr, table.dates-groupe td { display: block; }
  table.dates-groupe tr { display: grid; grid-template-columns: 1fr auto; gap: .4rem .6rem; padding: .7rem 0; border-top: 1px solid var(--ligne); }
  table.dates-groupe td { border: 0; padding: 0; }
  table.dates-groupe td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Lot 2 du design ---------- */
/* Listes des pages intérieures (sacrements…) au même style que les tuiles de l'accueil */
.actions { border-top: 0; display: grid; gap: .5rem; }
.actions a { background: #fff; border: 1px solid var(--ligne); border-radius: 18px; padding: .75rem .9rem; grid-template-columns: 42px 1fr 16px; }
.actions .ico { width: 42px; height: 42px; border-radius: 13px; background: var(--soleil-voile); }
.actions .ico svg { width: 22px; height: 22px; }
/* Carrousel « À venir » : une carte à 80 % de la largeur (la suivante dépasse), titres lisibles */
.carte-evt { flex: 0 0 80%; max-width: 320px; }
.carte-evt .texte b { font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.carte-lectures { margin-top: 1.2rem; }
/* Espace équipe sur téléphone : tous les onglets visibles (sur deux lignes) */
@media (max-width: 700px) {
  nav.onglets { flex-wrap: wrap; overflow: visible; }
  .entete-equipe h1 { font-size: 1.25rem; }
}
/* Types de demandes en couleur (espace équipe) */
.type-demande { display: inline-block; font-size: .8rem; font-weight: 700; padding: .1rem .5rem; border-radius: 6px; background: #eee5da; color: var(--encre); }
.t-rdv { background: #e8e0f5; color: #4b2a86; }
.t-malades { background: #fbe3e0; color: #8f1d12; }
.t-salle { background: #e1eef8; color: #1f4f7a; }
.t-intention { background: #fff0c7; color: #7a5600; }
.t-benediction { background: #e3f2e6; color: #1f5a2c; }
.t-contact { background: #ececec; color: #3d3d3d; }
.t-idee { background: #fde8d4; color: #8a4310; }
.qr-groupe { max-width: 240px; margin: .8rem auto 0; background: #fff; padding: .6rem; border-radius: 12px; }
.qr-groupe svg { width: 100%; height: auto; display: block; }

/* ---------- Lot 3 du design ---------- */
/* Couleur du temps liturgique sur toutes les pages : un trait sous le titre, la barre du bas */
body:has(.barre-bas) #app h1:not(.salut)::after { content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--lit); margin-top: .5rem; }
.barre-bas a.actif { color: var(--brique); }
.barre-bas a.actif span { position: relative; }
.barre-bas a.actif span::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--lit); }
/* Emblème du temps liturgique, au trait, posé dans le soleil de l'en-tête */
.entete .embleme { position: absolute; right: 30px; top: calc(4.6rem + env(safe-area-inset-top)); width: 62px; height: 62px; color: var(--brique-nuit); opacity: .55; }
.entete .embleme svg { width: 100%; height: 100%; }

/* ---------- Mode sombre automatique (réglage du téléphone) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --fond: #17110f; --carte: #241a17; --encre: #f2e8e1; --pierre: #c4b2a7; --ligne: #3b2e29;
    --brique: #e0634d; --brique-fonce: #f07a64; --soleil-voile: #3a2a14;
  }
  body { background: var(--fond); color: var(--encre); }
  .discret, .vide { color: var(--pierre); }
  /* Cartes et blocs */
  .bloc, .carte-messe, .tuile, .carte-evt, .annonce-urgente, .carte-seance, .actions a, .ligne-demande, .fiche,
  .carte-lectures, .bulle.parent, .onglets button, .pastilles button, .langues, .bouton.second, .dispos .case-dispo {
    background: var(--carte); color: var(--encre); border-color: var(--ligne);
  }
  .bloc.chaud, .carte-feuille, .reponse, .ligne-demande.choisie, .message.info, .bulle.nous { background: var(--soleil-voile); color: var(--encre); }
  .tuile .ico, .actions .ico, .carte-feuille .ico, .btn.clair { background: var(--soleil-voile); color: var(--soleil); }
  .tuile.mise-en-avant { background: #0e0a09; border-color: #0e0a09; }
  .chemin, .compte, .carte-lectures .ico { background: color-mix(in srgb, var(--lit) 28%, var(--carte)); }
  .compte, .chemin small { color: var(--encre); }
  input, select, textarea { background: var(--carte); color: var(--encre); border-color: var(--ligne); }
  .barre-bas { background: rgba(23,17,15,.92); border-top-color: var(--ligne); }
  .pastille-date { background: var(--carte); color: var(--encre); }
  .badge { background: var(--soleil-voile); color: var(--soleil); }
  .badge.ok { background: #1f3a25; color: #9fd8ab; }
  .badge.gris { background: #2e2622; color: var(--pierre); }
  .message.erreur { background: #3a1712; color: #ffb4a6; }
  .message.ok { background: #1f3a25; color: #b9e6c3; }
  .pastilles button[aria-pressed="true"], .dispos .case-dispo[aria-pressed="true"] { background: var(--soleil); color: #3a1a0d; border-color: var(--soleil); }
  .langues button { color: var(--encre); }
  .bouton.second { color: var(--brique); border-color: var(--brique); }
  .entete { background: radial-gradient(120% 90% at 85% 0%, #9a2a18 0%, #6e150b 50%, #3d0c06 100%); }
  .reponse-animateurs .action, .ok-texte { color: #9fd8ab; }
  .carte-messe .grande-heure { color: #f2836f; }
  .qr-groupe, .logo-pastille { background: #fff; }
  .barre img { border-radius: 10px; } /* le logo et le QR code restent sur fond blanc */
  .type-demande { filter: saturate(.9); }
  .jour.annule, .fiche { background: var(--carte); }
  .pastilles button, .dispos .case-dispo, input, select, textarea { border-color: #4a3a33; }
  a { color: var(--brique-fonce); }
}
.barre.sans-retour { justify-content: flex-end; }
.titre-eglise { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brique); margin: 1.4rem 0 .2rem; }
@media (prefers-color-scheme: dark) { .titre-eglise { color: var(--soleil); } }
.liste-animateurs { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.liste-animateurs li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; padding: .6rem 0; border-bottom: 1px solid var(--ligne); }
.liste-animateurs li strong { word-break: break-all; }

/* ---------- Notifications : cloche, invitation, interrupteurs ---------- */
.entete .haut-droite { display: flex; align-items: center; gap: .5rem; }
.cloche { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(110,21,11,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cloche svg { width: 22px; height: 22px; }
.cloche:not(.active)::after { content: ""; position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--soleil); box-shadow: 0 0 0 2px var(--brique); }
.invitation-notifs { display: flex; gap: .8rem; align-items: flex-start; margin-top: .8rem; padding: .9rem 1rem; border-radius: 20px; background: var(--soleil-voile); }
.invitation-notifs .ico { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: #fff; color: var(--brique); }
.invitation-notifs .ico svg { width: 24px; height: 24px; }
.invitation-notifs p { margin: .15rem 0 .6rem; }
.invitation-notifs .rangee { align-items: center; gap: .8rem; }
.liste-interrupteurs { padding: .3rem 1rem; }
.interrupteur { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; background: none; border: 0; border-bottom: 1px solid var(--ligne); font: inherit; color: inherit; text-align: left; cursor: pointer; min-height: 56px; }
.interrupteur:last-child { border-bottom: 0; }
.interrupteur b { display: block; }
.interrupteur small { display: block; color: var(--pierre); font-size: .9rem; }
.interrupteur i { flex: none; position: relative; width: 50px; height: 30px; border-radius: 99px; background: #cfc3b8; transition: background .2s; }
.interrupteur i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.interrupteur[aria-checked="true"] i { background: var(--vert); }
.interrupteur[aria-checked="true"] i::after { transform: translateX(20px); }
.interrupteur:disabled { opacity: .55; cursor: default; }
@media (prefers-color-scheme: dark) {
  .invitation-notifs { background: var(--soleil-voile); }
  .invitation-notifs .ico { background: var(--carte); color: var(--soleil); }
  .interrupteur i { background: #4a3a33; }
}
/* Don : une invitation discrète en fin d'accueil, pas une tuile parmi les démarches */
.bandeau-don { display: flex; align-items: center; gap: .8rem; margin: 1.6rem 0 .4rem; padding: .85rem 1rem; border-radius: 20px; border: 1px dashed var(--ligne); color: var(--encre); text-decoration: none; }
.bandeau-don .ico { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--soleil-voile); color: var(--brique); }
.bandeau-don .ico svg { width: 22px; height: 22px; }
.bandeau-don b { display: block; font-family: var(--titre); }
.bandeau-don small { display: block; color: var(--pierre); font-size: .9rem; line-height: 1.35; }
.bandeau-don .fleche { margin-left: auto; font-size: 1.4rem; color: var(--pierre); }
@media (prefers-color-scheme: dark) { .bandeau-don { border-color: #4a3a33; } .bandeau-don .ico { color: var(--soleil); } }
