/* Amicale API — les couleurs du logo (bleu #1477C1, orange #F05A28) sur blanc, bleu nuit pour le texte.
   Police unique Montserrat, la linéale géométrique du slogan du logo ; fonds bleu pâle, le bleu et l'orange du logo en accents.
   1. Jetons  2. Base  3. Vitrine  4. Composants  5. Espace bureau  6. Animations  7. Impression */

/* ── 1. Jetons ─────────────────────────────────────────────────────────── */
@font-face { font-family: 'Montserrat'; src: url(../fonts/montserrat.woff2) format('woff2'); font-weight: 300 900; font-display: swap; }

:root {
  /* Couleurs : tout le site se règle ici. */
  --blanc: #FFFFFF; --fond: #FFFFFF; --fond-2: #EEF5FC; --pale: #EEF5FC; --bleu-titre: #1477C1; --orange-vif: #E2501D; --bleu-logo: #0E77BD; --bleu-logo-fonce: #0A5F98; --filet: #DCE6F0; --filet-fort: #C3D3E3;
  --encre: #0E2640; --encre-2: #3B4D63; --gris: #5E6E80;
  --accent: #0E6AAE; --accent-clair: #EAF4FC; --ciel: #8CC8F0;
  --orange: #F05A28; --orange-texte: #C7431A;
  --vert: #1C7447; --vert-clair: #E3F4EA; --rouge: #B42318; --rouge-clair: #FCE7E4; --alerte-clair: #FFF4CC;
  --f-titre: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --f-texte: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --doux: cubic-bezier(.22, 1, .36, 1);
  --ombre: 0 24px 48px -28px rgba(15, 27, 45, .28);
  --marge: clamp(1rem, 4vw, 3rem);
}

/* ── 2. Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--f-texte); font-size: 1rem; line-height: 1.65; color: var(--encre); background: var(--fond); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--encre); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-titre); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--orange-texte); }
p { margin: 0 0 1em; }
main { display: block; outline: none; }
[id] { scroll-margin-top: 96px; }
::selection { background: var(--accent-clair); color: var(--encre); }
.ico { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.16em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.italique { font-family: var(--f-titre); font-weight: 700; }
.surtitre, .petit-titre, .page-sur, .b-sur { display: flex; align-items: center; gap: .55rem; margin: 0 0 1rem; font-family: var(--f-texte); font-style: normal;
  font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.surtitre::before, .page-sur::before { content: ''; width: 28px; height: 2px; background: var(--orange); flex: none; }
.petit-titre { color: var(--gris); margin-bottom: .5rem; }
.accent { color: var(--orange-texte); }
.evitement { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--encre); color: #fff; padding: .7rem 1rem; border-radius: 8px; }
.evitement:focus { top: 1rem; }
.vide { font-family: var(--f-titre); font-size: 1.4rem; color: var(--gris); padding: 2rem 0; }
.aide { font-size: .9rem; color: var(--gris); margin: .35rem 0 0; }
.requis { color: var(--orange-texte); }
.facultatif { font-weight: 400; color: var(--gris); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── 3. Vitrine : bandeau du haut, en-tête, pied ─────────────────────── */
.filet-haut { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem var(--colonne); background: var(--pale); border-bottom: 1px solid var(--filet);
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-2); }
.filet-haut span:first-child::first-letter { text-transform: uppercase; }
@media (max-width: 700px) { .filet-haut span:last-child { display: none; } }
/* --colonne : marge latérale qui aligne l'en-tête sur la colonne de 1240 px du contenu. */
.filet-haut, .entete { --colonne: max(var(--marge), calc((100% - 1240px) / 2 + var(--marge))); }
.entete { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 1.5rem; padding: .8rem var(--colonne);
  background: #fff; border-bottom: 3px solid var(--orange); transition: padding .35s var(--doux); }
.entete-compacte { padding-block: .4rem; }
.entete-logo img { mix-blend-mode: multiply; height: 60px; width: auto; transition: height .35s var(--doux); }
.entete-compacte .entete-logo img { height: 44px; }
.nav { display: flex; align-items: center; gap: 1.2rem; margin-left: auto; }
.nav ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav ul a { display: block; padding: .5rem .75rem; color: var(--encre); text-decoration: none; font-weight: 700; font-size: .95rem;
  background: linear-gradient(var(--orange), var(--orange)) no-repeat left calc(100% - .3rem) / 0 2px; background-origin: content-box;
  transition: background-size .4s var(--doux), color .2s; }
.nav ul a:hover, .nav ul a[aria-current] { background-size: 100% 2px; }
.nav ul a[aria-current] { color: var(--accent); }
.nav-bureau { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 700; color: var(--encre); text-decoration: none;
  padding: .5rem .95rem; border: 1px solid var(--filet-fort); border-radius: 999px; transition: border-color .2s, background-color .2s; }
.nav-bureau:hover { border-color: var(--encre); background: #fff; color: var(--encre); }
.entete-menu { display: none; margin-left: auto; align-items: center; gap: .45rem; font: inherit; font-weight: 700; background: var(--bleu-logo); color: #fff;
  border: 0; border-radius: 999px; padding: .6rem 1.05rem; cursor: pointer; min-height: 44px; z-index: 60; }
@media (max-width: 1000px) {
  .entete-menu { display: inline-flex; }
  .nav { position: fixed; inset: 0; z-index: 55; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2rem;
    padding: 6rem 2rem 2rem; background: var(--pale); visibility: hidden; opacity: 0; transition: opacity .3s, visibility 0s .3s; }
  .menu-ouvert .nav { visibility: visible; opacity: 1; transition: opacity .3s; }
  .menu-ouvert { overflow: hidden; }
  .nav ul { flex-direction: column; }
  .nav ul a { font-family: var(--f-titre); font-weight: 800; font-size: clamp(2rem, 9vw, 2.8rem); padding: .1rem 0;
    translate: 0 24px; opacity: 0; transition: translate .6s var(--doux), opacity .4s; background: none; }
  .menu-ouvert .nav ul a { translate: 0 0; opacity: 1; }
  .menu-ouvert .nav li:nth-child(2) a { transition-delay: .04s; } .menu-ouvert .nav li:nth-child(3) a { transition-delay: .08s; }
  .menu-ouvert .nav li:nth-child(4) a { transition-delay: .12s; } .menu-ouvert .nav li:nth-child(5) a { transition-delay: .16s; }
  .menu-ouvert .nav li:nth-child(6) a { transition-delay: .2s; }
  .entete-logo img { height: 46px; }
}
.pied { margin-top: 7rem; background: var(--pale); padding: 3rem var(--marge); }
.pied-logo { mix-blend-mode: multiply; }
.pied-grille { display: grid; grid-template-columns: minmax(160px, 240px) 1fr auto; gap: 3rem; align-items: center; max-width: 1240px; margin: 0 auto; }
.pied-logo { width: 100%; max-width: 240px; }
.pied-italique { font-family: var(--f-titre); font-size: 1.5rem; line-height: 1.25; margin-bottom: .6rem; }
.pied-texte p:last-child { color: var(--gris); font-size: .92rem; }
.pied-liens { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-weight: 700; font-size: .95rem; }
.pied-liens a { color: var(--encre); text-decoration: none; }
.pied-liens a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 800px) { .pied-grille { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ── 3b. Accueil ──────────────────────────────────────────────────────── */
/* Bannière d'accueil (bleu pâle), basse : titre et chapeau à gauche, boutons alignés en bas à droite. */
.une { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.4rem clamp(2rem, 5vw, 5rem); align-items: end; max-width: 1240px; margin: 0 auto;
  padding: clamp(1.8rem, 4vw, 3rem) var(--marge) clamp(1.8rem, 3.5vw, 2.6rem);
  background: var(--pale); box-shadow: 0 0 0 100vmax var(--pale); clip-path: inset(0 -100vmax); }
.une .surtitre { margin-bottom: .7rem; }
.une-titre { font-size: clamp(2.3rem, 4vw, 3.5rem); font-weight: 800; line-height: 1.04; letter-spacing: -.04em; margin: 0; color: var(--bleu-titre); }
.une-titre em { color: var(--orange-vif); }
.ligne { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.une-titre .ligne { display: inline-block; }
.ligne > * { display: inline-block; }
.une-chapo { margin: .9rem 0 0; max-width: 40rem; font-weight: 500; font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.55; color: var(--encre-2); text-wrap: pretty; }
.une-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; padding-bottom: .2rem; }
@media (max-width: 900px) { .une { grid-template-columns: 1fr; align-items: start; } }

/* Carrousel des actus, pleine largeur : photo en fond, voile, texte par-dessus ; « À la une » incrusté à droite. */
/* --carte : largeur alignée sur le contenu de la bannière ; --dedans : marge intérieure de la carte ; --bas : espace sous la carte. */
.scene { --panneau: 340px; --large: 1240px; --dedans: clamp(1.1rem, 4vw, 3.5rem); --bas: clamp(2.5rem, 5vw, 4rem);
  --carte: min(calc(var(--large) - 2 * var(--marge)), calc(100% - 2 * var(--marge)));
  position: relative; padding-bottom: var(--bas); background: linear-gradient(var(--pale) 0 42%, transparent 42%); }
.defileur { width: var(--carte); margin: 0 auto; border-radius: 28px; background: var(--encre);
  box-shadow: 0 46px 80px -46px rgba(14, 38, 64, .65), 0 0 0 1px rgba(14, 38, 64, .06); display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.defileur::-webkit-scrollbar { display: none; }
.defileur:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.diapo { position: relative; flex: 0 0 100%; scroll-snap-align: start; overflow: hidden; display: grid; align-items: end; min-height: clamp(440px, 70vh, 620px); color: #fff; }
.diapo-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; scale: 1; transition: scale 9s linear; }
.diapo.active .diapo-fond { scale: 1.06; }
/* Cadrage choisi par le bureau : la partie gardée quand l'écran recoupe la photo ; le zoom part du même point. */
.cadrage-haut { object-position: 50% 12%; transform-origin: 50% 0; }
.cadrage-bas { object-position: 50% 88%; transform-origin: 50% 100%; }
.diapo-action { margin: .6rem 0 0; }
.diapo::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: url('../img/grain.svg'); opacity: .22; mix-blend-mode: overlay; }
/* Voile : sombre en bas à gauche, là où se trouve le texte, presque transparent en haut à droite. */
.diapo::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(14, 38, 64, .9) 0%, rgba(14, 38, 64, .55) 40%, rgba(14, 38, 64, .12) 75%, rgba(14, 38, 64, .25) 100%),
              linear-gradient(to right, rgba(14, 38, 64, .45), transparent 60%); }
/* Sans photo : fond au bleu du logo, avec une lueur orange. */
.diapo.sans-image { background: radial-gradient(circle at 82% 18%, rgba(240, 90, 40, .45), transparent 42%), linear-gradient(135deg, var(--bleu-titre), var(--bleu-logo-fonce)); }
.diapo.sans-image::after { background: linear-gradient(to top, rgba(14, 38, 64, .35), transparent 60%); }
.diapo-contenu { position: relative; z-index: 2; width: 100%; display: grid; gap: .8rem; align-content: end;
  padding: 3rem calc(var(--dedans) + var(--panneau) + 3rem) calc(3rem + 40px) var(--dedans); }
.diapo-contenu > * { max-width: 44rem; }
.diapo-date { margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .82); }
.diapo-epingle { color: #FFB38F; }
.diapo-titre { margin: 0; font-size: clamp(1.9rem, 3.8vw, 3.4rem); font-weight: 800; line-height: 1.06; letter-spacing: -.035em; color: #fff; text-wrap: balance; }
.diapo-texte { margin: 0; font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.6; color: rgba(255, 255, 255, .9); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.js .diapo-contenu > * { opacity: 0; translate: 0 18px; transition: opacity .7s var(--doux), translate .9s var(--doux); }
.js .diapo.active .diapo-contenu > * { opacity: 1; translate: 0 0; }
.js .diapo.active .diapo-contenu > :nth-child(2) { transition-delay: .08s; } .js .diapo.active .diapo-contenu > :nth-child(3) { transition-delay: .16s; }

/* Commandes, en bas à gauche, alignées sur le texte. */
.scene-bas { position: absolute; z-index: 3; left: 50%; translate: -50% 0; bottom: calc(var(--bas) + 1.6rem); width: var(--carte);
  padding: 0 calc(var(--dedans) + var(--panneau) + 3rem) 0 var(--dedans); display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; pointer-events: none; }
.scene-bas > * { pointer-events: auto; }
.controles { display: flex; align-items: center; gap: .35rem; }
.controle { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(14, 38, 64, .25); color: #fff; cursor: pointer; backdrop-filter: blur(6px); transition: background-color .2s, color .2s, border-color .2s; }
.controle .ico { width: 16px; height: 16px; }
.controle:hover { background: #fff; color: var(--encre); border-color: #fff; }
.controle .ico-lecture { display: none; }
.controle[aria-pressed="true"] .ico-pause { display: none; }
.controle[aria-pressed="true"] .ico-lecture { display: block; }
.points .points { display: flex; gap: 5px; padding: 0 .4rem; }
.points .point { position: relative; width: 34px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.points .point::before { content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.points .point span { position: absolute; left: 0; top: 10px; height: 4px; width: 0; border-radius: 2px; background: var(--orange); }
.points .point[aria-current="true"] span { width: 100%; }
.defile-auto .points .point[aria-current="true"] span { width: 0; animation: progression var(--duree, 7s) linear forwards; }
.en-pause .points .point[aria-current="true"] span { animation-play-state: paused; }
@keyframes progression { to { width: 100%; } }
.scene-tout { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; font-size: .9rem; font-weight: 800; color: #fff; text-decoration: none; }
.scene-tout .ico { width: 16px; height: 16px; transition: translate .3s var(--doux); }
.scene-tout:hover { text-decoration: underline; text-underline-offset: 4px; }
.scene-tout:hover .ico { translate: 4px 0; }

/* « À la une » : carte blanche translucide incrustée à droite du carrousel. */
.alaune { position: absolute; z-index: 3; top: calc((100% - var(--bas)) / 2); translate: 0 -50%;
  right: calc(max(var(--marge), (100% - var(--large)) / 2 + var(--marge)) + var(--dedans)); width: var(--panneau);
  padding: 1.3rem 1.4rem .4rem; border-radius: 20px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 24px 50px -24px rgba(14, 38, 64, .55); }
.alaune .surtitre { margin-bottom: .4rem; }
.alaune-bloc { display: grid; gap: .35rem; padding: 1rem 0; border-top: 1px solid var(--filet-fort); color: var(--encre); text-decoration: none; }
.alaune-bloc strong { font-family: var(--f-titre); font-weight: 800; font-size: 1.15rem; line-height: 1.2; transition: color .2s; }
.alaune-bloc:hover strong { color: var(--accent); }
.alaune-bloc > span:last-child { font-size: .86rem; color: var(--gris); }
.alaune .jauge { background: var(--pale); }
.alaune-evenement { grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.alaune-date { display: grid; justify-items: center; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--orange-texte); }
.alaune-date span { font-family: var(--f-titre); font-size: 2.5rem; font-weight: 800; line-height: 1; letter-spacing: 0; }
.alaune-texte { display: grid; gap: .3rem; }
.alaune-texte > span:last-child { font-size: .86rem; color: var(--gris); }

/* Tablette et téléphone : « À la une » reste incrusté, en version réduite, en haut de la photo. */
@media (max-width: 900px) {
  .scene { --bas: 2.5rem; background: linear-gradient(var(--pale) 0 30%, transparent 30%); }
  .defileur { border-radius: 22px; }
  .diapo { min-height: clamp(440px, 68vh, 540px); }
  .diapo-contenu { padding: calc(var(--dedans) + 7.5rem) var(--dedans) calc(2.4rem + 40px); }
  .scene-bas { bottom: calc(var(--bas) + 1.1rem); padding: 0 var(--dedans); }
  .alaune { top: var(--dedans); translate: none; left: calc(var(--marge) + var(--dedans) * .6); right: calc(var(--marge) + var(--dedans) * .6); width: auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; padding: .6rem .9rem; border-radius: 16px; }
  .alaune:has(> .alaune-bloc:only-of-type) { grid-template-columns: 1fr; }
  .alaune .surtitre { display: none; }
  .alaune-bloc { padding: .3rem 0; border-top: 0; gap: .2rem; align-content: center; min-width: 0; }
  .alaune-bloc + .alaune-bloc { border-left: 1px solid var(--filet-fort); padding-left: 1rem; }
  .alaune-bloc strong { font-size: .92rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .alaune .petit-titre { margin: 0; font-size: .6rem; }
  .alaune .petit-titre::before { display: none; }
  .alaune-evenement { gap: .6rem; align-items: center; }
  .alaune-date { font-size: .6rem; }
  .alaune-date span { font-size: 1.7rem; }
  .alaune-texte > span:last-child, .alaune-bloc:not(.alaune-evenement) > span:last-child { display: none; }
  .alaune .jauge { height: 5px; }
  .alaune-detail { display: none; }
}
@media (max-width: 600px) {
  .scene-bas { gap: .4rem .8rem; }
  .scene-tout-suite { display: none; }
  .points .point { width: 24px; }
  .controle { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) { .diapo-fond { transition: none; } .diapo.active .diapo-fond { scale: 1; } }

.bandeau { background: #fff; color: var(--encre); padding: .8rem 0; overflow: hidden; border-bottom: 1px solid var(--filet); }
.bandeau-piste { display: flex; width: max-content; animation: defile 55s linear infinite; }
.bandeau:hover .bandeau-piste { animation-play-state: paused; }
.bandeau ul { display: flex; gap: 2.6rem; list-style: none; margin: 0; padding: 0 1.3rem; white-space: nowrap; }
.bandeau li { display: flex; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.bandeau li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.bandeau li span { font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--gris); }

.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1240px; margin: 4rem auto 0; padding: 0 var(--marge); }
.chiffre { display: grid; gap: .3rem; padding: .4rem 1.6rem; border-left: 1px solid var(--filet); }
.chiffre:first-child { border-left: 0; padding-left: 0; }
.chiffre-valeur { font-family: var(--f-titre); font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 800; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.chiffre > span:last-child { font-size: .85rem; font-weight: 700; color: var(--gris); }
@media (max-width: 760px) { .chiffres { grid-template-columns: 1fr 1fr; row-gap: 1.6rem; } .chiffre:nth-child(3) { border-left: 0; padding-left: 0; } }

.section { max-width: 1240px; margin: 0 auto; padding: 5rem var(--marge) 0; }
.section-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem; margin-bottom: 2rem; }
.titre-section::after { content: ''; display: block; width: 56px; height: 5px; border-radius: 3px; background: var(--orange); margin-top: .7rem; }
.titre-section { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: 0; letter-spacing: -.03em; }
.titre-petit { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.2rem; }
.section-tete .lien-fleche { margin-left: auto; }
.lien-fleche { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; font-size: .92rem; color: var(--encre); text-decoration: none; }
.lien-fleche .ico { transition: translate .4s var(--doux); }
.lien-fleche:hover .ico, a:hover > .lien-fleche .ico { translate: 5px 0; }
.lien-souligne { font-weight: 800; color: var(--encre); text-decoration: none; padding-bottom: .15rem;
  background: linear-gradient(currentColor, currentColor) no-repeat right bottom / 100% 1px; transition: background-size .5s var(--doux); }
.lien-souligne:hover { color: var(--encre); background-size: 0 1px; }

.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2.5rem; }
.note { background: var(--blanc); border-radius: 20px; padding: 1.5rem; border-top: 5px solid var(--bleu-logo); }
.note h3 { font-size: 1.45rem; font-weight: 800; }
.note p:last-child { color: var(--encre-2); }

.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }

.mosaique { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mosaique .photo-carte:first-child { grid-column: span 2; grid-row: span 2; }
.mosaique .photo-carte:first-child img { height: 100%; aspect-ratio: auto; }
@media (max-width: 700px) { .mosaique { grid-template-columns: 1fr 1fr; } }

.appel { max-width: 1240px; margin: 6rem auto 0; width: calc(100% - 2 * var(--marge)); background: var(--orange-texte); color: #fff; border-radius: 28px;
  padding: clamp(2.5rem, 6vw, 4.5rem); }
.appel .surtitre { color: #fff; }
.appel .surtitre::before { background: #fff; }
.appel h2 { font-size: clamp(2.2rem, 5vw, 3.9rem); font-weight: 900; max-width: 18ch; }
.appel h2 em { color: #fff; text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: .15em; }
.appel p { max-width: 36rem; font-size: 1.05rem; color: #FFE6DC; }

/* Pages intérieures */
.page-tete { max-width: 1240px; margin: 0 auto; padding: 4rem var(--marge) 0; }
.titre-page { font-size: clamp(2.6rem, 6.5vw, 5.2rem); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; margin: 0 0 1.4rem; }
.titre-moyen { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.point { color: var(--orange); }
.page-chapo { font-size: 1.15rem; max-width: 42rem; color: var(--encre-2); }
.lien-retour { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; font-size: .9rem; text-decoration: none; color: var(--gris); margin-bottom: 1.5rem; }
.lien-retour:hover { color: var(--encre); }
.fiche { max-width: 1240px; margin: 0 auto; padding: 3rem var(--marge) 0; }
.fiche-etroite { max-width: 860px; }
.fiche-grille { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 3.5rem; align-items: start; }
@media (max-width: 860px) { .fiche-grille { grid-template-columns: 1fr; } }
.fiche-date { font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem; }
.fiche-date::first-letter { text-transform: uppercase; }
.fiche-infos { list-style: none; padding: 1rem 0; margin: 0 0 1.6rem; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-weight: 700; border-block: 1px solid var(--filet); }
.fiche-infos li { display: flex; align-items: center; gap: .45rem; }
.fiche-infos .ico { color: var(--accent); }
.fiche-description { font-size: 1.15rem; max-width: 62ch; white-space: pre-line; color: var(--encre-2); }
.fiche-visuel img { border-radius: 6px; }
.inscription { margin-top: 3.5rem; max-width: 640px; }
.texte-long h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.texte-long li { margin-bottom: .6rem; }
.passes { list-style: none; padding: 0; margin: 0; }
.passes li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--filet); }
.passes time { color: var(--gris); font-variant-numeric: tabular-nums; }
/* Liste des actus (page L'amicale) : la photo du carrousel en vignette, à droite. */
.passes li:has(.actu-vignette) { grid-template-columns: 7.5rem 1fr 140px; align-items: start; }
.actu-vignette { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
@media (max-width: 600px) { .passes li:has(.actu-vignette) { grid-template-columns: 1fr; } .actu-vignette { aspect-ratio: 16 / 9; } }
.trois-temps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.5rem; }
.temps { border-top: 1px solid var(--encre); padding-top: 1rem; }
.temps-num { display: block; font-family: var(--f-titre); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--orange); margin-bottom: .6rem; }
.temps h2 { font-size: 1.6rem; }
.trombinoscope { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2rem; }
.badge-membre { display: grid; gap: .15rem; border-top: 1px solid var(--filet-fort); padding-top: 1rem; }
.badge-initiales { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-clair); color: var(--accent);
  font-family: var(--f-titre); font-size: 1.5rem; margin-bottom: .6rem; }
.badge-membre strong { font-size: 1.05rem; }
.badge-membre span:last-child { color: var(--gris); font-size: .95rem; }
.adherer { margin-top: 5rem; max-width: 860px; }
.etapes { padding-left: 1.3rem; display: grid; gap: .7rem; font-size: 1.08rem; margin-bottom: 1.6rem; }
.etapes li::marker { font-family: var(--f-titre); color: var(--accent); }
.erreur { padding: 5rem var(--marge) 0; max-width: 900px; margin: 0 auto; }
.erreur-code { font-family: var(--f-titre); font-size: clamp(6rem, 22vw, 13rem); font-weight: 800; line-height: .85; margin: 0 0 1rem; color: var(--filet-fort); }
.connexion { display: grid; place-items: center; padding: 4rem var(--marge) 0; }
.connexion-carte { max-width: 440px; text-align: center; display: grid; justify-items: center; gap: .5rem; }
.connexion-carte img { width: 88px; height: auto; }
.connexion-carte .formulaire { width: 100%; text-align: left; }

/* ── 4. Composants ────────────────────────────────────────────────────── */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 50px; padding: .8rem 1.5rem;
  font: inherit; font-weight: 800; font-size: .98rem; color: #fff; text-decoration: none; cursor: pointer;
  background: var(--bleu-logo); border: 1px solid var(--bleu-logo); border-radius: 999px; transition: background-color .25s, border-color .25s, color .25s; touch-action: manipulation; }
.bouton:hover { color: #fff; background: var(--encre); border-color: var(--encre); }
.bouton .ico { transition: translate .4s var(--doux); }
.bouton:hover .ico { translate: 4px 0; }
.bouton-clair { background: #fff; color: var(--encre); border-color: #fff; }
.bouton-clair:hover { background: var(--ciel); border-color: var(--ciel); color: var(--encre); }
.bouton-discret, .bouton-microsoft { background: #fff; color: var(--encre); border-color: var(--filet-fort); }
.bouton-discret:hover, .bouton-microsoft:hover { background: var(--fond-2); border-color: var(--encre); color: var(--encre); }
.bouton-danger { background: var(--rouge); border-color: var(--rouge); }
.bouton-danger:hover { background: #8f1c13; border-color: #8f1c13; }
.bouton-danger-discret { background: #fff; color: var(--rouge); border-color: var(--rouge); }
.bouton-danger-discret:hover { background: var(--rouge); color: #fff; border-color: var(--rouge); }
.bouton-danger-discret:hover .ico { translate: none; }
/* Suppression : séparée du formulaire par un filet et un large espace. */
.zone-suppression { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem;
  margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px dashed var(--filet-fort); }
.zone-suppression p { display: grid; gap: .15rem; margin: 0; }
.zone-suppression small { color: var(--gris); font-size: .86rem; }
.bouton-petit { min-height: 38px; padding: .4rem .95rem; font-size: .88rem; }
.bouton[disabled], .bouton.envoi { opacity: .55; pointer-events: none; }

.carte-papier { background: var(--blanc); border: 1px solid var(--filet); border-radius: 20px; padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: var(--ombre); }
.formulaire { display: grid; gap: 1.2rem; }
.formulaire-titre { font-size: 1.9rem; margin: 0; }
.champ { display: grid; gap: .35rem; }
.champ label, .choix legend { font-weight: 800; font-size: .95rem; }
.champ-court input { max-width: 12rem; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), textarea, select {
  font: inherit; font-size: 1rem; color: var(--encre); width: 100%; min-height: 48px; padding: .7rem .95rem;
  background: var(--blanc); border: 1px solid var(--filet-fort); border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; }
input:hover, textarea:hover, select:hover { border-color: var(--encre-2); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-clair); }
input[type=file] { font: inherit; font-size: .92rem; color: var(--gris); max-width: 100%; }
/* Bouton « Choisir un fichier » aux couleurs du site (le bouton natif fait tache). */
input[type=file]::file-selector-button { font: inherit; font-weight: 800; font-size: .88rem; color: var(--encre); margin-right: .8rem; padding: .5rem 1rem;
  border: 1px solid var(--filet-fort); border-radius: 999px; background: #fff; cursor: pointer; transition: background-color .2s, border-color .2s; }
input[type=file]::file-selector-button:hover { background: var(--fond-2); border-color: var(--encre); }
input[type=checkbox] { width: 1.2rem; height: 1.2rem; accent-color: var(--accent); }
.choix { border: 0; padding: 0; margin: 0; display: grid; gap: .55rem; }
.choix legend { margin-bottom: .6rem; }
.choix-option { position: relative; display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border: 1px solid var(--filet-fort); border-radius: 12px;
  cursor: pointer; font-weight: 700; transition: border-color .2s, background-color .2s; }
.choix-option:hover { border-color: var(--encre); }
.choix-option input { position: absolute; opacity: 0; }
.choix-case { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--encre-2); flex: none; transition: background-color .2s, box-shadow .2s; }
.choix-option:has(input:checked) { border-color: var(--accent); background: var(--accent-clair); }
.choix-option:has(input:checked) .choix-case { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px var(--accent-clair); }
.choix-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Les activités, présentées comme le sommaire d'un magazine. */
.tickets { display: grid; background: var(--blanc); border: 1px solid var(--filet); border-radius: 22px; padding: .4rem 1.4rem; }
.ticket { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 1rem; padding: 1.4rem .4rem; border-bottom: 1px solid var(--filet);
  color: var(--encre); text-decoration: none; transition: background-color .3s; }
.ticket:last-child { border-bottom: 0; }
.ticket:hover { color: var(--encre); }
.ticket:hover .ticket-titre { color: var(--accent); }
.ticket-talon { display: grid; justify-items: start; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-texte); }
.ticket-jour { font-family: var(--f-titre); font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: 0; }
.ticket-corps { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1.5rem; align-items: center; transition: translate .5s var(--doux); }
.ticket:hover .ticket-corps { translate: 6px 0; }
.ticket-titre { font-family: var(--f-titre); font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 800; line-height: 1.15; }
.ticket-infos { grid-column: 1; font-size: .92rem; color: var(--gris); }
.ticket-infos .ico { margin-right: .2rem; }
.ticket-prix { grid-column: 2; grid-row: 1 / span 2; font-size: .82rem; font-weight: 800; border: 1px solid var(--filet-fort); border-radius: 999px; padding: .3rem .85rem; white-space: nowrap; }
@media (max-width: 600px) { .ticket { grid-template-columns: 70px 1fr; } .ticket-jour { font-size: 2.3rem; } .ticket-corps { grid-template-columns: 1fr; } .ticket-prix { grid-column: 1; grid-row: auto; justify-self: start; } }

.carte { display: grid; align-content: start; gap: .7rem; padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: 22px; background: var(--blanc); border: 1px solid var(--filet); color: var(--encre);
  text-decoration: none; transition: translate .5s var(--doux), box-shadow .5s var(--doux); }
.carte:hover { color: var(--encre); translate: 0 -4px; box-shadow: var(--ombre); }
.carte h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin: 0 0 .3rem; }
.carte .petit-titre, .carte-etiquette { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
.carte-sombre, .carte-sondage { background: var(--pale); border-color: transparent; color: var(--encre); }
.carte-sombre:hover, .carte-sondage:hover { color: var(--encre); }
.carte-sombre .petit-titre, .carte-sondage .carte-etiquette, .carte-sondage .carte-chiffres { color: var(--gris); }
.carte-sombre .lien-fleche, .carte-sondage .lien-fleche { color: var(--encre); }
.carte-sondage h2 em, .carte-sombre h2 em { color: var(--orange); }
.carte-fermee { opacity: .62; }
.carte-chiffres { margin: 0; font-variant-numeric: tabular-nums; color: var(--encre-2); }
.grille-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.6rem; }
/* Boutique (vitrine) : la photo de l'article en tête de carte. */
.carte-article { overflow: hidden; }
.carte-article-photo { width: calc(100% + 2 * clamp(1.6rem, 3vw, 2.4rem)); max-width: none; aspect-ratio: 4 / 3; object-fit: cover;
  margin: calc(-1 * clamp(1.6rem, 3vw, 2.4rem)) calc(-1 * clamp(1.6rem, 3vw, 2.4rem)) .6rem; transition: scale .8s var(--doux); }
.carte-article:hover .carte-article-photo { scale: 1.03; }
.sondage-apercu { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.sondage-apercu li { background: #fff; border: 1px solid var(--filet-fort); border-radius: 999px; padding: .25rem .85rem; font-size: .88rem; font-weight: 700; }

.jauge { height: 6px; border-radius: 999px; background: rgba(15, 27, 45, .1); overflow: hidden; margin: .3rem 0; }
.jauge-remplie { height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width 1.6s var(--doux); }
.jauge-remplie.vu { width: calc(var(--p) * 1%); }
.cagnotte-compteur { display: grid; gap: .7rem; background: var(--pale); border-radius: 22px; padding: 2rem; min-width: 0; container-type: inline-size; }
.cagnotte-total { font-family: var(--f-titre); font-size: clamp(1.6rem, 15cqi, 4.4rem); white-space: nowrap; font-weight: 800; line-height: 1; margin: 0; color: var(--accent); font-variant-numeric: tabular-nums; }

.mur { columns: 3 260px; column-gap: 2.5rem; }
.citation { break-inside: avoid; margin: 0 0 2.2rem; border-left: 2px solid var(--accent); padding-left: 1.2rem; }
.citation blockquote { margin: 0 0 .5rem; font-size: 1.3rem; line-height: 1.4; }
.citation figcaption { font-weight: 800; font-size: .88rem; color: var(--gris); }

.coupons { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1.6rem; }
.coupon { display: grid; gap: .5rem; align-content: start; padding: 1.7rem; background: var(--blanc); border: 1px solid var(--filet); border-radius: 18px; transition: border-color .3s, box-shadow .5s var(--doux); }
.coupon:hover { border-color: var(--filet-fort); box-shadow: var(--ombre); }
.coupon-partenaire { margin: 0; font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.coupon-titre { font-size: 1.45rem; margin: 0; }
.coupon-texte { margin: 0; color: var(--encre-2); font-size: .97rem; }
.coupon-pied { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: .6rem; padding-top: 1rem; border-top: 1px dashed var(--filet-fort); }
.coupon-code { position: relative; display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; font: inherit; font-weight: 800; cursor: pointer;
  background: var(--fond-2); border: 1px solid transparent; border-radius: 10px; padding: .3rem .8rem; color: var(--encre); transition: border-color .2s; }
.coupon-code:hover { border-color: var(--accent); }
.coupon-code code { font-size: 1rem; letter-spacing: .08em; }
.coupon-copie { position: absolute; left: 50%; bottom: calc(100% + 6px); translate: -50% 0; background: var(--encre); color: #fff; font-size: .78rem;
  padding: .15rem .5rem; border-radius: 6px; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.coupon-copie:not(:empty) { opacity: 1; }
.coupon-date { font-size: .85rem; color: var(--gris); }

.photo-carte { display: grid; gap: .5rem; color: var(--encre); text-decoration: none; overflow: hidden; }
.photo-carte img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 6px; background: var(--fond-2); transition: scale .9s var(--doux), filter .5s; }
.photo-carte:hover img { scale: 1.03; }
.photo-carte .italique { font-size: 1.05rem; }
.frise { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 2rem 1.4rem; }
.album-carte small { color: var(--gris); }
.album-vide { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--fond-2); border-radius: 6px; font-size: 2.6rem; color: var(--gris); }
.galerie { columns: 3 260px; column-gap: 1rem; }
.galerie-photo { display: block; break-inside: avoid; margin-bottom: 1rem; color: var(--encre); text-decoration: none; overflow: hidden; border-radius: 6px; }
.galerie-photo img { width: 100%; transition: scale .9s var(--doux); }
.galerie-photo:hover img { scale: 1.03; }
.album-droit { margin-top: 2rem; }
.visionneuse { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; }
.visionneuse::backdrop { background: rgba(15, 27, 45, .9); }
.visionneuse img { max-height: 88vh; width: auto; border-radius: 6px; }
.visionneuse[open] img { animation: monte .5s var(--doux); }
.visionneuse-fermer { position: absolute; top: -20px; right: -20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; display: grid; place-items: center; }

.barres { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.barres li { display: grid; grid-template-columns: 1fr auto; gap: .4rem .8rem; align-items: center; }
.barre-libelle { grid-column: 1 / -1; font-weight: 700; }
.barre { height: 10px; border-radius: 999px; overflow: hidden; background: var(--fond-2); }
.barre-remplie { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width 1.2s var(--doux); }
.barres li:nth-child(2) .barre-remplie { background: var(--orange-texte); } .barres li:nth-child(3) .barre-remplie { background: #5B8FC7; }
.barres li:nth-child(4) .barre-remplie { background: var(--gris); }
.barre-remplie.vu { width: calc(var(--p) * 1%); }
.barre-valeur { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 5.5rem; text-align: right; }
.resultats { margin-top: 2.5rem; }
.resultats-total { font-family: var(--f-texte); font-size: .95rem; font-weight: 700; color: var(--gris); letter-spacing: 0; }
.vote-ok { display: flex; align-items: center; gap: .8rem; font-weight: 800; color: var(--accent); }
.vote-ok .coche { width: 36px; }

.bravo { display: grid; justify-items: start; gap: .3rem; padding: 2rem; background: var(--accent-clair); border-radius: 22px; }
.bravo h2 { font-size: clamp(2rem, 5vw, 2.8rem); }
.coche { width: 56px; height: auto; margin-bottom: .6rem; }
.coche circle, .coche path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.coche circle { animation: trace .7s var(--doux) forwards; }
.coche path { animation: trace .45s .55s var(--doux) forwards; }

.flash { position: fixed; left: 50%; bottom: 1.5rem; translate: -50% 0; z-index: 250; margin: 0; max-width: calc(100% - 2rem); background: var(--encre); color: #fff;
  padding: .85rem 1.3rem; border-radius: 12px; font-weight: 700; box-shadow: var(--ombre); animation: toast 5s var(--doux) forwards; }

/* Calendrier de l'agenda (vitrine et bureau) */
.cal { background: var(--blanc); border: 1px solid var(--filet); border-radius: 22px; padding: clamp(.8rem, 2.5vw, 1.6rem); }
.bureau .cal { border: 0; padding: 0; }
.cal-tete { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; }
.cal-titre { margin: 0; font-size: clamp(1.6rem, 3.5vw, 2.3rem); min-width: 9ch; text-align: center; }
.cal-titre::first-letter { text-transform: uppercase; }
.cal-nav { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--filet-fort); border-radius: 50%; color: var(--encre); transition: background-color .2s, border-color .2s; }
.cal-nav:hover { background: var(--fond-2); border-color: var(--encre); color: var(--encre); }
.cal-auj { margin-left: auto; font-weight: 800; font-size: .9rem; }
.cal-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-jsem { text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: var(--gris); padding-bottom: .3rem; }
.cal-jour { position: relative; min-height: 104px; background: var(--fond-2); border-radius: 8px; padding: .4rem; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-hors { opacity: .4; }
.cal-passe .cal-act { opacity: .55; }
.cal-num { font-weight: 800; font-size: .88rem; font-variant-numeric: tabular-nums; }
.cal-auj-jour { background: var(--accent-clair); }
.cal-auj-jour .cal-num { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--accent); color: #fff; }
.cal-act { display: block; background: var(--accent); color: #fff; text-decoration: none; border-radius: 6px; padding: .25rem .45rem; font-size: .8rem; font-weight: 700; line-height: 1.25;
  overflow-wrap: anywhere; transition: background-color .2s; }
.cal-act:nth-of-type(2n) { background: var(--encre); }
.cal-act:hover { color: #fff; background: var(--encre-2); }
.cal-act small { display: block; font-weight: 500; opacity: .85; }
.cal-heure { font-variant-numeric: tabular-nums; opacity: .8; }
.cal-brouillon { background: var(--blanc) !important; color: var(--encre); border: 1px dashed var(--encre-2); }
.cal-brouillon:hover { color: var(--encre); }
.cal-ajout { position: absolute; top: .3rem; right: .3rem; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  color: var(--encre); background: var(--blanc); border: 1px solid var(--filet-fort); opacity: 0; transition: opacity .2s, background-color .2s; }
.cal-jour:hover .cal-ajout, .cal-ajout:focus-visible { opacity: 1; }
.cal-ajout:hover { background: var(--encre); color: #fff; }
@media (hover: none) { .cal-ajout { opacity: .8; } }
@media (max-width: 700px) {
  /* Sur téléphone : la liste des jours qui ont une activité, plutôt qu'une grille illisible. */
  .cal-grille { grid-template-columns: 1fr; }
  .cal-jsem, .cal-hors, .cal-jour:not(.cal-plein):not(.cal-auj-jour) { display: none; }
  .bureau .cal-jour:not(.cal-plein):not(.cal-passe):not(.cal-hors) { display: flex; min-height: 0; }
  .cal-jour { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .7rem; }
  .cal-num { flex-basis: 100%; }
  .cal-num::after { content: ' · ' attr(data-jour); font-weight: 500; color: var(--gris); }
  .cal-auj-jour .cal-num { display: block; width: auto; height: auto; background: none; color: var(--encre); }
  .cal-ajout { position: static; opacity: 1; margin-left: auto; }
}

/* Barre de navigation flottante en bas, sur téléphone et tablette. */
.barre-bas { display: none; }
@media (max-width: 1000px) {
  .vitrine .barre-bas { display: flex; }
  .vitrine .entete-menu { display: none; }
  .vitrine { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
}
@media (max-width: 960px) {
  .bureau .barre-bas { display: flex; }
  .bureau { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
}
.barre-bas { position: fixed; z-index: 90; left: 50%; translate: -50% 0; bottom: calc(10px + env(safe-area-inset-bottom));
  width: min(520px, calc(100% - 20px)); padding: 6px; gap: 2px; justify-content: space-between;
  background: #fff; border: 1px solid var(--filet); border-radius: 22px; box-shadow: 0 14px 34px -14px rgba(14, 38, 64, .38);
  animation: monte .6s var(--doux) both; }
.barre-bas a, .barre-bas button { flex: 1; display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 54px; padding: 6px 2px;
  border: 0; border-radius: 16px; background: none; font: inherit; font-size: .68rem; font-weight: 800; color: var(--gris); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s; touch-action: manipulation; }
.barre-bas .ico { width: 22px; height: 22px; transition: translate .3s var(--doux); }
.barre-bas a:active .ico, .barre-bas button:active .ico { translate: 0 2px; }
.barre-bas [aria-current], .barre-bas [aria-expanded="true"] { color: var(--bleu-titre); background: var(--pale); }
@media (max-width: 1000px) { .flash { bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* Petits écrans : marges et tailles resserrées. */
@media (max-width: 600px) {
  :root { --marge: 16px; }
  .section { padding-top: 3.5rem; }
  .page-tete { padding-top: 2.5rem; }
  .fiche { padding-top: 2rem; }
  .bouton { min-height: 48px; padding: .75rem 1.2rem; }
  .une-actions { gap: 1rem; }
  .carte, .coupon, .cagnotte-compteur, .bravo { padding: 1.3rem; border-radius: 18px; }
  .tickets { padding: .2rem .9rem; }
  .passes li { grid-template-columns: 1fr; gap: .1rem; }
  .b-tete h1 { font-size: 1.8rem; }
  .b-actions { margin-left: 0; width: 100%; }
  .tuiles { grid-template-columns: 1fr 1fr; }
  .tuile-valeur { font-size: 1.45rem; }
  .table { font-size: .88rem; }
  .table td, .table th { padding: .5rem .4rem; }
  .filtres .champ { min-width: 0; flex: 1 1 140px; }
  .bilan-signature { grid-template-columns: 1fr; }
  .bilan-entete { flex-direction: column-reverse; align-items: flex-start; }
}
@media (max-width: 380px) { .tuiles { grid-template-columns: 1fr; } .barre-bas a, .barre-bas button { font-size: .62rem; } }

/* ── 5. Espace bureau ─────────────────────────────────────────────────── */
.bureau { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.b-cote { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--pale); color: var(--encre); padding: 1.2rem 1rem; display: flex; flex-direction: column; gap: 1.3rem; }
.b-marque { display: flex; align-items: center; gap: .7rem; color: var(--encre); text-decoration: none; font-family: var(--f-titre); font-size: 1.2rem; line-height: 1.05; }
.b-marque img { width: 46px; height: auto; }   /* marque.png : coins transparents, rien ne déborde sur le fond */
.b-marque small { display: block; font-family: var(--f-texte); font-size: .75rem; font-weight: 600; color: var(--gris); }
.b-nav { display: grid; gap: 1rem; }
.b-nav p { margin: 0 0 .3rem .7rem; text-transform: uppercase; font-size: .7rem; letter-spacing: .16em; font-weight: 800; color: var(--gris); }
.b-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.b-nav a { position: relative; display: flex; align-items: center; gap: .7rem; padding: .5rem .7rem; color: var(--encre); text-decoration: none; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.b-nav a:hover { background: rgba(255, 255, 255, .7); color: var(--encre); }
.b-nav a[aria-current] { background: #fff; color: var(--accent); }
.b-nav a[aria-current]::before { content: ''; position: absolute; left: -1rem; top: 22%; bottom: 22%; width: 3px; border-radius: 0 3px 3px 0; background: var(--orange); }
.b-nav .ico { color: var(--gris); }
.b-nav a[aria-current] .ico { color: var(--accent); }
.b-moi { margin-top: auto; border-top: 1px solid var(--filet-fort); padding-top: 1rem; display: grid; gap: .6rem; font-size: .9rem; }
.b-moi a, .b-moi button { color: var(--encre); }
.b-moi button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; gap: .5rem; align-items: center; text-decoration: underline; }
.b-principal { padding: clamp(1rem, 3vw, 2.6rem); min-width: 0; background: var(--fond); }
.b-tete { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; margin-bottom: 2rem; }
.b-tete h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0; }
.b-sur { margin-bottom: .5rem; }
.b-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.b-actions select { width: auto; min-height: 38px; padding: .3rem .7rem; }
.b-grille { display: grid; gap: 1.4rem; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.b-grille > * { grid-column: span 12; }
@media (min-width: 1100px) { .b-6 { grid-column: span 6 !important; } .b-4 { grid-column: span 4 !important; } .b-8 { grid-column: span 8 !important; } }
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.tuile { display: grid; gap: .2rem; padding: 1.1rem 1.25rem; border: 1px solid var(--filet); border-radius: 16px; background: var(--blanc); color: var(--encre); text-decoration: none; transition: border-color .2s, box-shadow .4s var(--doux); }
a.tuile:hover { color: var(--encre); border-color: var(--filet-fort); box-shadow: var(--ombre); }
.tuile-libelle { display: flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
/* Montant des tuiles : la taille suit la largeur de la tuile (cqi), il ne déborde ni ne se coupe jamais. */
.tuile { min-width: 0; container-type: inline-size; }
.tuile-valeur { font-family: var(--f-titre); font-size: clamp(1.1rem, 12.5cqi, 2.3rem); font-weight: 800; line-height: 1.15; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.tuile-note { font-size: .86rem; color: var(--encre-2); }
.tuile-ciel { background: var(--accent-clair); border-color: transparent; }
.tuile-peche { background: #FDEDE6; border-color: transparent; }
.tuile-jaune { border-color: var(--orange); box-shadow: inset 4px 0 0 var(--orange); }
.panneau { background: var(--blanc); border: 1px solid var(--filet); border-radius: 16px; padding: 1.3rem 1.4rem; min-width: 0; }
.panneau h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.3rem; margin-bottom: 1rem; }
.panneau h2 a { margin-left: auto; font-family: var(--f-texte); font-size: .85rem; font-weight: 800; }
.defile-x { overflow-x: auto; position: relative; }   /* relative : garde aussi les libellés cachés (lecteurs d'écran) dans le cadre */
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gris); font-weight: 800; padding: .55rem .6rem; border-bottom: 1px solid var(--encre); white-space: nowrap; }
.table td { padding: .65rem .6rem; border-bottom: 1px solid var(--filet); vertical-align: middle; }
.table tr:hover td { background: var(--fond-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions > * + * { margin-left: .7rem; }     /* deux boutons d'une même ligne ne se touchent pas */
.table a { font-weight: 700; }
.plus { color: var(--vert); font-weight: 800; } .moins { color: var(--rouge); font-weight: 800; }
.pastille { display: inline-flex; align-items: center; gap: .3rem; border: 0; border-radius: 999px; padding: .12rem .65rem; font: inherit; font-size: .8rem; font-weight: 800; background: var(--fond-2); white-space: nowrap; }
button.pastille { cursor: pointer; }
.pastille-ok { background: var(--vert-clair); color: var(--vert); }
.pastille-attente { background: var(--alerte-clair); }
.pastille-non { background: var(--rouge-clair); color: var(--rouge); }
.filtres { display: flex; flex-wrap: wrap; gap: .7rem; align-items: end; margin-bottom: 1.2rem; }
.filtres .champ { min-width: 170px; }
.filtres input, .filtres select { min-height: 40px; padding: .4rem .8rem; }
.b-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem 1.4rem; }
.b-form .large { grid-column: 1 / -1; }
.case { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.b-form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; padding-top: .4rem; }
.liste-fetes { list-style: none; padding: 0; margin: 0; display: grid; }
.liste-fetes li { display: grid; grid-template-columns: 2.4rem 1fr auto; align-items: center; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--filet); }
.fete-ico { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--accent-clair); color: var(--accent); }
.fete-ico.etoile { background: var(--fond-2); color: var(--orange-texte); }
.fete-date { font-variant-numeric: tabular-nums; font-weight: 800; font-size: .9rem; }
.histo { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(2px, 1vw, .5rem); align-items: end; height: 190px; padding-top: .5rem; }
.histo-mois { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: .3rem; text-align: center; font-size: .72rem; color: var(--gris); }
.histo-barres { display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.histo-barre { width: 40%; max-width: 14px; border-radius: 3px 3px 0 0; height: 0; transition: height 1.1s var(--doux); }
.histo-barre.vu { height: calc(var(--h) * 1%); }
.histo-entree { background: var(--accent); } .histo-sortie { background: var(--orange); }
.legende { display: flex; gap: 1.2rem; font-size: .82rem; color: var(--encre-2); margin-top: .7rem; }
.legende span::before { content: ''; display: inline-block; width: .75em; height: .75em; border-radius: 2px; margin-right: .4em; background: var(--accent); }
.legende span + span::before { background: var(--orange); }
.mini-jauge { height: 5px; border-radius: 99px; background: var(--fond-2); overflow: hidden; margin-top: .45rem; }
.mini-jauge span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width 1s var(--doux); }
.mini-jauge span.vu { width: calc(var(--p) * 1%); }
.tuile-peche .mini-jauge { background: var(--blanc); }
.mini-jauge.depasse span { background: var(--rouge); }
.boite-import .champ { flex: 1 1 220px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.boite-import input[type=file] { width: 100%; max-width: 100%; min-width: 0; }
.boite-import { border: 1px dashed var(--filet-fort); border-radius: 14px; padding: 1.2rem; background: var(--fond-2); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.rapport { background: var(--vert-clair); border-radius: 12px; padding: .8rem 1rem; margin: 1rem 0; }
.inline { display: inline; }
.inline-flex { display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.inline-flex select { min-height: 36px; padding: .3rem .5rem; width: auto; max-width: 260px; font-size: .9rem; }
.champ-montant { width: 5.5rem !important; min-height: 36px !important; padding: .3rem .5rem !important; }
.photos-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.photos-admin figure { margin: 0; border: 1px solid var(--filet); border-radius: 12px; padding: .5rem; display: grid; gap: .4rem; }
.photos-admin img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.photos-admin figure > form[data-confirmer] { margin-top: .4rem; padding-top: .7rem; border-top: 1px solid var(--filet); }
.photos-admin figure > form[data-confirmer] .bouton { width: 100%; }
.photos-admin input { min-height: 36px !important; padding: .3rem .5rem !important; font-size: .85rem !important; }
.vignette { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }
.bilan-feuille { border: 1px solid var(--filet); border-radius: 16px; padding: clamp(1.2rem, 4vw, 2.8rem); }
.bilan-entete { display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-bottom: 1px solid var(--encre); padding-bottom: 1rem; margin-bottom: 1.6rem; }
.bilan-entete img { width: 170px; }
.bilan-entete h1 { font-size: 2rem; }
.bilan-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; }
.bilan-colonnes > section { min-width: 0; }
@media (max-width: 600px) { .bilan-feuille .table { display: block; overflow-x: auto; } .histo-mois { font-size: .6rem; } }
@media (max-width: 800px) { .bilan-colonnes { grid-template-columns: 1fr; } }
.bilan-total td { font-weight: 800; border-top: 1px solid var(--encre); border-bottom: 0; }
.bilan-resultat { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1.8rem 0; padding: 1rem 1.3rem; border-radius: 12px; background: var(--fond-2); font-size: 1.2rem; font-weight: 800; }
.bilan-signature { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 2rem; margin-top: 3rem; }
.bilan-feuille h2 { font-size: 1.25rem; margin: 2rem 0 .8rem; }
.bilan-feuille h3 { font-size: 1rem; margin: 0 0 .5rem; color: var(--encre-2); }
.num.discret, .discret { color: var(--gris); }

/* Bilan : contrôles avant l'AG et clôture de l'exercice. */
.controles-ag { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .5rem; }
.controles-ag li { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.controles-ag .ok .ico { color: var(--vert, #1E7B4C); }
.controles-ag .a-faire .ico { color: var(--orange-texte); }
.controles-ag .a-faire a { color: var(--orange-texte); }
.zone-cloture { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem;
  padding-top: 1.1rem; border-top: 1px dashed var(--filet-fort); }
.zone-cloture p { margin: 0; max-width: 46rem; display: flex; gap: .5rem; align-items: baseline; }

/* Tableau de bord : ce qui attend le bureau. */
.alertes { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .5rem; }
.alertes a { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; border-radius: 12px; background: #FFF4EC;
  border: 1px solid #F7CDB3; color: var(--encre); font-weight: 700; text-decoration: none; }
.alertes a:hover { border-color: var(--orange); }
.alertes .ico { color: var(--orange-texte); }

/* Fiche en lecture seule (virement entre comptes). */
.fiche-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem 2rem; margin: 0 0 1rem; }
.fiche-liste dt { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
.fiche-liste dd { margin: .2rem 0 0; font-weight: 700; }
/* Guide d'utilisation */
.guide { display: grid; gap: 1.4rem; max-width: 60rem; }
.guide p + p, .guide p + .etapes, .guide .etapes + p { margin-top: .8rem; }
.guide .etapes { font-size: 1rem; margin-bottom: 0; }
.guide .etapes ul { margin: .4rem 0 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.guide .fiche-liste dd { font-weight: 500; }
.guide-sommaire ol { columns: 2 16rem; column-gap: 2rem; margin: 0; padding-left: 1.4rem; }
.guide-sommaire li { margin-bottom: .35rem; break-inside: avoid; }
.guide-mots th { width: 12rem; text-align: left; vertical-align: top; }
.guide-faq dt { font-weight: 800; margin-top: 1rem; }
.guide-faq dt:first-child { margin-top: 0; }
.guide-faq dd { margin: .25rem 0 0; }
.guide [id] { scroll-margin-top: 1rem; }

/* Boutique : récapitulatif par taille pour le fournisseur. */
.recap-tailles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.recap-tailles li { padding: .5rem .9rem; border-radius: 999px; background: var(--pale); font-size: 1.05rem; }
.recap-tailles strong { color: var(--bleu-titre); }
.filtres .case { min-height: 40px; }
.table .nowrap { white-space: nowrap; }
.bilan-signature div { border-top: 1px solid var(--encre); padding-top: .5rem; font-size: .9rem; min-height: 5rem; }
@media (max-width: 960px) {
  .bureau { grid-template-columns: 1fr; }
  .b-cote { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 80; padding-bottom: 110px; translate: -105% 0; transition: translate .4s var(--doux); }
  .menu-ouvert .b-cote { translate: 0 0; box-shadow: 0 0 0 100vmax rgba(15, 27, 45, .45); }
}

/* ── 6. Animations : discrètes, au service de la lecture ─────────────── */
.js [data-reveal] { opacity: 0; translate: 0 22px; transition: opacity .8s var(--doux) calc(var(--i, 0) * 80ms), translate 1s var(--doux) calc(var(--i, 0) * 80ms); }
.js [data-reveal].vu { opacity: 1; translate: 0 0; }
.js .ligne > [data-reveal] { opacity: 1; translate: 0 110%; transition: translate 1.1s var(--doux) calc(var(--i, 0) * 120ms); }
.js .ligne > [data-reveal].vu { translate: 0 0; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes defile { to { transform: translateX(-50%); } }
@keyframes monte { from { opacity: 0; translate: 0 16px; } }
@keyframes toast { 0% { opacity: 0; translate: -50% 16px; } 8%, 85% { opacity: 1; translate: -50% 0; } 100% { opacity: 0; translate: -50% 8px; visibility: hidden; } }
@keyframes entree-page { from { opacity: 0; translate: 0 14px; } }
@keyframes sortie-page { to { opacity: 0; } }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .2s ease both sortie-page; }
::view-transition-new(root) { animation: .5s var(--doux) both entree-page; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .bandeau-piste { animation: none; }
  .js [data-reveal], .js .ligne > [data-reveal] { opacity: 1; translate: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ── 7. Impression (bilan d'AG) ───────────────────────────────────────── */
/* En-tête des pages imprimées : logo, titre de la page, date d'édition. */
.impression-tete, .seulement-imprime { display: none; }
@media print {
  body { font-size: 10.5pt; background: #fff; }
  .bureau { display: block; }
  .b-cote, .barre-bas, .b-actions, .flash, .pas-imprime, .filtres, .zone-suppression, .evitement,
  .table .actions, .table select, .table form button.bouton, .b-tete { display: none !important; }
  .impression-tete { display: flex; align-items: center; gap: 1rem; padding-bottom: .6rem; margin-bottom: 1rem; border-bottom: 2px solid var(--orange); }
  .impression-tete img { width: 110px; height: auto; mix-blend-mode: normal; }
  .impression-tete div { display: grid; gap: .15rem; }
  .impression-tete strong { font-size: 1.35rem; }
  .impression-tete span { font-size: .8rem; color: #444; }
  body:has(.bilan-feuille) .impression-tete { display: none; }   /* bilan, budget, rapprochement : leur propre en-tête */
  .seulement-imprime { display: block; }
  .b-principal { padding: 0; }
  .panneau, .tuile { border: 1px solid #ccc; box-shadow: none; break-inside: avoid; }
  .guide { display: block; max-width: none; }
  .guide .panneau { break-inside: auto; border: 0; padding: 0; margin-bottom: 1rem; }
  .guide .panneau h2 { break-after: avoid; border-bottom: 1px solid #ccc; padding-bottom: .2rem; }
  .guide-sommaire a { color: inherit; text-decoration: none; }
  .guide .fiche-liste > div, .guide tr, .guide-faq dd { break-inside: avoid; }
  .guide-faq dt { break-after: avoid; }
  .tuiles { grid-template-columns: repeat(4, 1fr); gap: .5rem; }
  .tuile { padding: .6rem .8rem; }
  .tuile-valeur { font-size: 1.2rem; }
  .defile-x { overflow: visible; }
  .panneau { padding: .4rem .5rem; }
  .table { width: 100%; font-size: 8.5pt; }
  .table td, .table th { padding: .25rem .3rem; }
  .table th { font-size: 7pt; letter-spacing: .04em; }
  .table small { font-size: 7.5pt; }
  .table .pastille { padding: 0 .3rem; font-size: 7pt; min-height: 0; }
  .table .pastille .ico { display: none; }
  .table thead { display: table-header-group; }   /* l'en-tête du tableau se répète sur chaque page */
  .table tr { break-inside: avoid; }
  .pastille { border: 1px solid #999; background: none !important; color: #000 !important; }
  .bilan-feuille { border: 0; padding: 0; }
  .bilan-feuille h2 { break-after: avoid; }
  .bilan-signature { break-inside: avoid; }
  .table tr:hover td { background: none; }
  a { color: inherit; text-decoration: none; }
  @page { size: A4; margin: 14mm 12mm; }
}

/* ── 8. Confirmation, adhésions, budget, lettre des animations, carte de cagnotte ── */
/* Fenêtre de confirmation (remplace le confirm() du navigateur). */
.confirmation { width: min(28rem, calc(100% - 2rem)); border: 0; border-radius: 20px; padding: 1.6rem 1.6rem 1.3rem; color: var(--encre);
  box-shadow: 0 30px 60px -20px rgba(14, 38, 64, .45); }
.confirmation::backdrop { background: rgba(14, 38, 64, .45); backdrop-filter: blur(2px); }
.confirmation[open] { animation: confirmation-entree .25s var(--doux); }
@keyframes confirmation-entree { from { opacity: 0; translate: 0 12px; } }
.confirmation p { margin: 0 0 1.3rem; font-family: var(--f-titre); font-weight: 700; font-size: 1.12rem; line-height: 1.4; }
.confirmation-boutons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; }
.confirmation .bouton { min-height: 44px; padding: .55rem 1.2rem; }
@media (prefers-reduced-motion: reduce) { .confirmation[open] { animation: none; } }
/* « Annuler » des formulaires : bouton secondaire, sa flèche part vers la gauche. */
.b-form-actions .bouton-discret:hover .ico { translate: -4px 0; }

.panneau-demandes { border-color: var(--orange); box-shadow: inset 4px 0 0 var(--orange); }
.pcg { display: inline-block; min-width: 2.6rem; margin-right: .2rem; font-size: .78em; font-weight: 800; color: var(--gris); font-variant-numeric: tabular-nums; }
.bilan-chapitre td { font-weight: 800; background: var(--fond-2); }
.bilan-sous { padding-left: 1.4rem !important; }

/* Plan comptable : un niveau de détail par retrait ; chapitres (2 chiffres) en gras. */
.pcg-classe { margin-bottom: 1rem; }
.pcg-classe summary { cursor: pointer; font-family: var(--f-titre); font-size: 1.1rem; padding: .2rem 0; }
.pcg-classe[open] summary { margin-bottom: .6rem; }
.pcg-table td.num { width: 5.5rem; text-align: left; font-weight: 800; }
.pcg-niveau-2 td { font-weight: 800; background: var(--fond-2); }
.pcg-niveau-3 td + td { padding-left: 1.2rem; }
.pcg-niveau-4 td { color: var(--encre-2); font-size: .92em; }
.pcg-niveau-4 td + td { padding-left: 2.4rem; }
@media print { .pcg-classe { break-inside: auto; } .pcg-classe:not([open]) { display: none; } }

/* Analyse du budget : le trait de la jauge marque la part de l'exercice écoulée. */
.analyse-retenir ul { margin: 0 0 .6rem; padding-left: 1.2rem; display: grid; gap: .3rem; font-weight: 600; }
.table.analyse .pastille { margin-top: .25rem; }
.jauge-repere { position: relative; overflow: visible; display: block; min-width: 5rem; }
.jauge-repere i { position: absolute; top: -3px; bottom: -3px; left: calc(var(--p) * 1%); width: 2px; background: var(--encre); border-radius: 2px; }

/* Lettre des animations : aperçu du mail dans un cadre. */
.lettre-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin: .4rem 0 .6rem; }
.lettre-actions form { margin: 0; }
.lettre-cadre { display: block; width: 100%; height: 70vh; margin-top: 1.4rem; border: 1px solid var(--filet); border-radius: 16px; background: var(--fond-2); }

/* Carte de cagnotte à remettre : une feuille A4 aux couleurs de l'amicale. */
.page-carte { background: var(--fond-2); }
.carte-outils { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; max-width: 210mm; margin: 1.2rem auto; padding: 0 1rem; }
.carte-outils .aide { margin: 0; }
.carte-mots { position: relative; display: flex; flex-direction: column; max-width: 210mm; min-height: 296mm; margin: 0 auto 2rem;
  padding: 20mm 16mm 12mm; background: #fff; box-shadow: var(--ombre); overflow: hidden; page: carte; }
.carte-mots::before { content: ''; position: absolute; inset: 0 0 auto; height: 8mm; background: linear-gradient(90deg, var(--bleu-logo) 0 62%, var(--orange) 62%); }
.carte-tete { text-align: center; margin-bottom: 9mm; }
.carte-tete img { width: 48mm; height: auto; margin: 0 auto 5mm; }
.carte-sur { margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-texte); }
.carte-tete h1 { margin: .35rem 0 .4rem; font-size: clamp(2.2rem, 7vw, 3.4rem); }
.carte-chapo { margin: 0; color: var(--gris); font-weight: 600; }
.carte-mur { flex: 1; columns: 2 68mm; column-gap: 7mm; }
.carte-mot { position: relative; break-inside: avoid; margin: 0 0 6mm; padding: 10mm 6mm 5mm; border-radius: 14px; background: var(--accent-clair); }
.carte-mot-1 { background: #FDEDE6; }
.carte-mot-2 { background: var(--alerte-clair); }
.carte-mot::before { content: '“'; position: absolute; top: .1rem; left: .8rem; font: 800 2.8rem/1 var(--f-titre); color: var(--bleu-logo); }
.carte-mot-1::before { color: var(--orange); }
.carte-mot blockquote { margin: 0; font-family: var(--f-titre); font-weight: 600; font-size: 1.05rem; line-height: 1.45; white-space: pre-line; }
.carte-mot figcaption { margin-top: .6rem; text-align: right; font-weight: 800; font-size: .9rem; color: var(--encre-2); }
.carte-mot figcaption::before { content: '— '; }
.carte-pied { margin-top: 6mm; padding-top: 4mm; border-top: 1px solid var(--filet-fort); text-align: center; font-size: .8rem; color: var(--gris); }
@media (max-width: 600px) { .carte-mots { min-height: 0; padding: 14mm 6mm 8mm; } }
@media print {
  @page carte { size: A4 portrait; margin: 0; }
  .page-carte { background: #fff; }
  .carte-mots { max-width: none; margin: 0; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .lettre-cadre { height: auto; border: 0; }
}
