/* TAQ – Calendrier de l'Avent (tout est préfixé taq-) */
.taq-avent { max-width: 1100px; margin: 30px auto 40px; }
.taq-avent__head { text-align: center; margin-bottom: 22px; }
.taq-avent__head h2 { margin: 0; font-size: 1.7rem; font-weight: 500; line-height: 1.3; color: #333; }
.taq-avent__head h2::after { content: ""; display: block; width: 40px; height: 3px; margin: 10px auto 0; border-radius: 2px; background: #c3d240; }
.taq-avent__head p { margin: 10px 0 0; color: #777; }
.taq-avent__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.taq-porte { position: relative; aspect-ratio: 1 / 1; border: 0; border-radius: 10px; cursor: pointer; font: inherit; color: #fff; background: var(--bg); box-shadow: 0 4px 14px rgba(0,0,0,.08); transition: transform .2s, box-shadow .2s; overflow: hidden; padding: 0; margin: 0; }
.taq-porte .taq-n { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 600; line-height: 1; }
.taq-porte::before { content: ""; position: absolute; inset: 8px; border: 1px dashed rgba(255,255,255,.45); border-radius: 6px; }
.taq-porte:hover:not(:disabled), .taq-porte:focus-visible { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 10px 24px rgba(0,0,0,.14); outline: none; }
.taq-porte:disabled { cursor: not-allowed; filter: saturate(.35); opacity: .7; }
.taq-porte:disabled::after { content: "🔒"; position: absolute; right: 10px; bottom: 8px; font-size: 13px; opacity: .8; }
.taq-porte.taq-ouverte { background: #fff; color: #7b2c7e; box-shadow: inset 0 0 0 2px var(--bg); }
.taq-porte.taq-ouverte::before { border-color: var(--bg); opacity: .4; }
.taq-porte.taq-ouverte .taq-n { font-size: 1.1rem; flex-direction: column; gap: 4px; }
.taq-porte.taq-ouverte .taq-n::after { content: "Lire le conseil"; font-size: .72rem; font-weight: 400; color: #888; }
.taq-porte.taq-aujourdhui:not(.taq-ouverte) { animation: taq-pulse 2s ease-in-out infinite; }
@keyframes taq-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(195,210,64,.7); } 50% { box-shadow: 0 0 0 8px rgba(195,210,64,0); } }

.taq-modal { position: fixed; inset: 0; z-index: 9995; display: none; align-items: center; justify-content: center; background: rgba(40,20,45,.45); padding: 16px; }
.taq-modal.taq-on { display: flex; }
.taq-modal__box { position: relative; max-width: 460px; width: 100%; background: #fff; border-radius: 12px; border-top: 4px solid #7b2c7e; padding: 30px 30px 26px; box-shadow: 0 20px 50px rgba(0,0,0,.25); animation: taq-pop .25s ease-out; text-align: left; }
@keyframes taq-pop { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.taq-modal__jour { display: inline-block; padding: 4px 12px; border-radius: 20px; background: rgba(123,44,126,.08); color: #7b2c7e; font-size: .8rem; font-weight: 500; }
.taq-modal__titre { margin: 12px 0 10px; font-size: 1.3rem; font-weight: 500; color: #333; }
.taq-modal__texte { margin: 0 0 20px; line-height: 1.6; color: #555; }
.taq-modal__btn { display: inline-block; padding: 10px 22px; border-radius: 30px; background: #7b2c7e; color: #fff !important; text-decoration: none !important; font-weight: 500; }
.taq-modal__btn:hover { background: #5f1f62; }
.taq-modal__x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 24px; line-height: 1; color: #999; cursor: pointer; padding: 4px; }

@media (max-width: 959px) { .taq-avent__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 639px) { .taq-avent__grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } .taq-porte .taq-n { font-size: 1.5rem; } .taq-avent__head h2 { font-size: 1.35rem; } }
@media (prefers-reduced-motion: reduce) { .taq-porte.taq-aujourdhui, .taq-modal__box { animation: none; } .taq-porte { transition: none; } }

/* --- Encart d'accès (<div class="taq-avent-lien"></div>) --- */
.taq-avent-lien { margin: 0 0 20px; }
.taq-avent-carte {
  --fond1: #1e5a3c; --fond2: #123a27; --halo: #2e7a52;
  --accent: #e8c15a; --accent-fonce: #3a2a00; --boule: #c8323c; --boule-raie: #9d1f29;
  position: relative; display: block; width: 100%; box-sizing: border-box; overflow: hidden; padding: 18px 18px 16px; border: 0; border-radius: 12px; font: inherit; text-align: left; text-decoration: none !important; cursor: pointer; color: #fff !important;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.18) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 78% 12%, rgba(255,255,255,.22) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 56% 34%, rgba(255,255,255,.14) 0 1px, transparent 2px),
    radial-gradient(circle at 30% 70%, rgba(255,255,255,.12) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 90% 62%, rgba(255,255,255,.16) 0 1px, transparent 2px),
    radial-gradient(120% 90% at 100% 0%, var(--halo) 0%, transparent 55%),
    linear-gradient(140deg, var(--fond1) 0%, var(--fond2) 100%);
  box-shadow: 0 8px 22px rgba(0,0,0,.22); transition: transform .25s, box-shadow .25s; }
.taq-avent-carte--rouge { --fond1: #b3262f; --fond2: #7d141c; --halo: #d2434b; --accent: #f3d27a; --accent-fonce: #3a2a00; --boule: #2f7a4f; --boule-raie: #1e5a3c; }
.taq-avent-carte:hover, .taq-avent-carte:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.3); outline: none; }
.taq-avent-carte__boule { position: absolute; top: 0; right: 22px; width: 34px; height: 64px; transform-origin: 50% 0; animation: taq-balance 4s ease-in-out infinite; pointer-events: none; }
@keyframes taq-balance { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.taq-avent-carte__label { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.taq-avent-carte__titre { display: block; margin: 6px 52px 14px 0; font-size: 1.25rem; font-weight: 500; line-height: 1.25; color: #fff; }
.taq-avent-carte__titre b { color: var(--accent); font-weight: 600; }
.taq-avent-mini { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; margin: 0 0 16px; }
.taq-avent-mini i { aspect-ratio: 1 / 1; border-radius: 4px; border: 1px dashed rgba(255,255,255,.35); font-style: normal; font-size: .6rem; line-height: 1; color: rgba(255,255,255,.55); display: flex; align-items: center; justify-content: center; }
.taq-avent-mini i.taq-passe { border: 0; background: rgba(255,255,255,.18); color: rgba(255,255,255,.85); }
.taq-avent-mini i.taq-lue { border: 0; background: rgba(255,255,255,.92); color: var(--fond2); font-weight: 600; }
.taq-avent-mini i.taq-jour { border: 0; background: var(--accent); color: var(--accent-fonce); font-weight: 700; animation: taq-luit 1.8s ease-in-out infinite; }
@keyframes taq-luit { 0%, 100% { box-shadow: 0 0 0 2px rgba(232,193,90,.55); } 50% { box-shadow: 0 0 0 6px rgba(232,193,90,0); } }
.taq-avent-carte__bas { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.taq-avent-carte__cta { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 30px; background: var(--accent); color: var(--accent-fonce); font-size: .85rem; font-weight: 600; transition: filter .2s; }
.taq-avent-carte:hover .taq-avent-carte__cta { filter: brightness(1.08); }
.taq-avent-carte__compte { font-size: .75rem; color: rgba(255,255,255,.75); }
@media (prefers-reduced-motion: reduce) { .taq-avent-carte__boule, .taq-avent-mini i.taq-jour { animation: none; } }
.taq-avent-panel { position: fixed; inset: 0; z-index: 9993; display: none; overflow-y: auto; background: rgba(248,244,237,.97); padding: 40px 16px; }
.taq-avent-panel.taq-on { display: block; }
.taq-avent-panel__fermer { position: fixed; top: 16px; right: 20px; z-index: 1; border: 0; border-radius: 30px; background: #7b2c7e; color: #fff; font: inherit; font-size: .9rem; padding: 8px 18px; cursor: pointer; }
.taq-avent-panel .taq-avent { margin-top: 10px; }
.taq-avent-panel .taq-avent { max-width: 900px; }
