/* La Pensée du Jour TUUDA · charte du pôle média (Bleu #0059CC, Bleu nuit #032D6B, Rouge #F20104 en accent). */
.tetc, .tetc-pop {
  --tetc-blue: #0059CC;
  --tetc-night: #032D6B;
  --tetc-sky: #AECBF0;
  --tetc-red: #F20104;
  --tetc-ink: #1D1D1B;
  --tetc-steel: #5B6670;
  --tetc-pearl: #EEF2F7;
  --tetc-head: Montserrat, "Segoe UI", Roboto, Arial, sans-serif;
  --tetc-body: "Open Sans", "Segoe UI", Roboto, Arial, sans-serif;
  font-family: var(--tetc-body);
  color: var(--tetc-ink);
  -webkit-font-smoothing: antialiased;
}
.tetc *, .tetc-pop * { box-sizing: border-box; }
.tetc { max-width: 760px; margin: 0 auto; padding: 8px 0 40px; display: flex; flex-direction: column; gap: 28px; }
.tetc-hero { text-align: center; padding: 8px 12px 0; }
.tetc-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tetc-blue); }
.tetc .tetc-h1 { margin: 0; font-family: var(--tetc-head); font-weight: 800; font-size: clamp(30px, 6vw, 46px); line-height: 1.1; color: var(--tetc-night); }
.tetc-lead { margin: 12px auto 0; max-width: 560px; font-size: 17px; line-height: 1.6; color: var(--tetc-steel); }
.tetc-h2 { margin: 0 0 6px; font-family: var(--tetc-head); font-weight: 700; font-size: 24px; color: var(--tetc-night); }
.tetc-muted { margin: 0 0 16px; color: var(--tetc-steel); font-size: 15px; line-height: 1.6; }

/* Carte */
.tetc-card { margin: 0; background: linear-gradient(180deg, var(--tetc-night), #0A3F8F); color: #fff; border-radius: 24px; padding: 26px 26px 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 18px 40px rgba(3,45,107,.22); }
.tetc-card--big { padding: clamp(24px, 5vw, 40px); }
.tetc-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tetc-sky); }
.tetc-card__when { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .04em; text-transform: none; font-weight: 600; }
.tetc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tetc-red); }
.tetc-card__bar { width: 44px; height: 5px; border-radius: 3px; background: var(--tetc-red); }
.tetc .tetc-card blockquote.tetc-card__quote { margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; quotes: none; font-style: normal !important; color: inherit !important; max-width: none !important; }
.tetc .tetc-card blockquote.tetc-card__quote::before, .tetc .tetc-card blockquote.tetc-card__quote::after { content: none !important; display: none !important; }
.tetc .tetc-card blockquote.tetc-card__quote p { margin-left: 0; margin-right: 0; font-style: normal; }
.tetc .tetc-card .tetc-card__text { color: #fff !important; }
.tetc .tetc-card .tetc-card__fr { color: #DCE8F8 !important; }
.tetc-card__text { margin: 0; font-family: var(--tetc-head); font-weight: 800; font-size: clamp(24px, 4.6vw, 36px); line-height: 1.25; color: #fff; }
.tetc-card__fr { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid rgba(174,203,240,.35); font-size: clamp(16px, 2.6vw, 19px); line-height: 1.55; color: #DCE8F8; }
.tetc-card__who { display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: var(--tetc-sky); }
.tetc-card__who strong { color: #fff; font-size: 16px; }
.tetc-card__lang { font-size: 12px; }
.tetc-card__foot { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid rgba(174,203,240,.35); font-size: 12px; font-weight: 700; letter-spacing: .04em; }

.tetc-sources { margin: 10px 4px 0; font-size: 13px; color: var(--tetc-steel); }
.tetc-sources summary { cursor: pointer; font-weight: 700; color: var(--tetc-night); list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.tetc-sources summary::before { content: "✓"; display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: #E3F3EA; color: #0B6B3A; align-items: center; justify-content: center; font-size: 12px; }
.tetc-sources ul { margin: 4px 0 0 26px; padding: 0; line-height: 1.7; }
.tetc-sources a { color: var(--tetc-blue); }

/* Boutons */
.tetc-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.tetc-btn { appearance: none; border: 0; border-radius: 16px; min-height: 54px; padding: 0 22px; font-family: var(--tetc-head); font-weight: 800; font-size: 16px; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.tetc-btn:active { transform: translateY(1px); }
.tetc-btn:focus-visible, .tetc-chip:focus-visible, .tetc-choice input:focus-visible + label, .tetc-link:focus-visible { outline: 3px solid var(--tetc-sky); outline-offset: 2px; }
.tetc-btn--primary { background: var(--tetc-blue); color: #fff; }
.tetc-btn--primary:hover { background: var(--tetc-night); color: #fff; }
.tetc-btn--accent { background: var(--tetc-red); color: #fff; box-shadow: 0 8px 20px rgba(242,1,4,.25); }
.tetc-btn--accent:hover { background: #C90003; color: #fff; }
.tetc-btn[disabled] { opacity: .6; cursor: progress; }
.tetc-share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.tetc-chip { min-height: 46px; border: 1px solid #C9D3E0; border-radius: 14px; background: #fff; color: var(--tetc-night); font-family: var(--tetc-body); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; padding: 0 12px; }
.tetc-chip:hover { border-color: var(--tetc-blue); color: var(--tetc-blue); }
.tetc-whisper { margin: 2px 0 0; text-align: center; font-size: 14px; font-style: italic; color: var(--tetc-steel); }

/* Abonnement */
.tetc-sub { background: #fff; border: 1px solid #E1E7F0; border-radius: 24px; padding: clamp(20px, 4vw, 32px); box-shadow: 0 6px 20px rgba(3,45,107,.06); }
.tetc-form { display: flex; flex-direction: column; gap: 14px; }
.tetc-choice { border: 0; margin: 0; padding: 0; }
.tetc-choice legend { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--tetc-ink); padding: 0; }
.tetc-choice__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tetc-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tetc-choice label { min-height: 48px; border: 1px solid #C9D3E0; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-family: var(--tetc-head); font-weight: 700; font-size: 16px; color: var(--tetc-night); background: #fff; cursor: pointer; user-select: none; }
.tetc-choice input:checked + label { background: var(--tetc-blue); border-color: var(--tetc-blue); color: #fff; }
.tetc-switch { display: flex; align-items: center; gap: 10px; font-size: 15px; min-height: 44px; cursor: pointer; }
.tetc-switch input { width: 22px; height: 22px; accent-color: var(--tetc-blue); }
.tetc-status { margin: 0; min-height: 22px; font-size: 14px; line-height: 1.5; color: var(--tetc-steel); }
.tetc-status--ok { color: #0B6B3A; font-weight: 700; }
.tetc-status--err { color: #A30002; font-weight: 700; }
.tetc-status--info { color: var(--tetc-night); }
.tetc-link { background: none; border: 0; padding: 8px 0; color: var(--tetc-steel); text-decoration: underline; cursor: pointer; font-size: 14px; }
.tetc-ios { margin-top: 14px; background: var(--tetc-pearl); border-radius: 16px; padding: 14px 16px; font-size: 14px; line-height: 1.6; }
.tetc-ios ol { margin: 6px 0 0 20px; padding: 0; }
.tetc-channel { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: 16px; background: #EAF6EF; color: #0B5A31; text-decoration: none; font-size: 15px; }
.tetc-channel:hover { background: #DDF0E5; color: #0B5A31; }
/* Choix : sans compte / Compte TUUDA */
.tetc .tetc-mode, .tetc-pop .tetc-mode { display: flex; flex-direction: column; gap: 14px; }
.tetc-mode__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 16px; background: var(--tetc-pearl); }
.tetc .tetc-mode__tab, .tetc-pop .tetc-mode__tab { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--tetc-steel); font-family: var(--tetc-body); text-align: left; cursor: pointer; line-height: 1.25; box-shadow: none; text-transform: none; letter-spacing: 0; }
.tetc-mode__tab b { font-family: var(--tetc-head); font-size: 14px; font-weight: 800; color: inherit; }
.tetc-mode__tab small { font-size: 11.5px; opacity: .85; }
.tetc .tetc-mode__tab.is-on, .tetc-pop .tetc-mode__tab.is-on { background: #fff; color: var(--tetc-night); box-shadow: 0 2px 8px rgba(3,45,107,.12); }
.tetc-mode__tab.is-on b { color: var(--tetc-blue); }
.tetc-mode__tab:focus-visible { outline: 2px solid var(--tetc-blue); outline-offset: 2px; }
.tetc-mode__panel[hidden] { display: none !important; }
.tetc-mode__panel { display: flex; flex-direction: column; gap: 12px; }
.tetc .tetc-acc__list, .tetc-pop .tetc-acc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--tetc-ink); }
.tetc-acc__list li { position: relative; padding-left: 26px; }
.tetc-acc__list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--tetc-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.tetc .tetc-acc__login, .tetc-pop .tetc-acc__login, .tetc-acc__hello { margin: 0; font-size: 13px; color: var(--tetc-steel); text-align: center; }
.tetc .tetc-acc__login a, .tetc-pop .tetc-acc__login a { color: var(--tetc-blue); font-weight: 700; }
.tetc-mode__panel .tetc-btn { text-align: center; text-decoration: none; }

/* Archives */
.tetc-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tetc-list a { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid #E1E7F0; text-decoration: none; color: var(--tetc-ink); }
.tetc-list a:hover { border-color: var(--tetc-blue); }
.tetc-list__date { font-size: 12px; font-weight: 700; color: var(--tetc-blue); text-transform: uppercase; letter-spacing: .06em; }
.tetc-list__text { font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--tetc-night); }
.tetc-list__who { font-size: 13px; color: var(--tetc-steel); }
.tetc-legal { font-size: 12px; line-height: 1.6; color: var(--tetc-steel); text-align: center; margin: 0 12px; }
.tetc-empty { text-align: center; color: var(--tetc-steel); }

/* Pop-up */
html.tetc-lock { overflow: hidden; }
.tetc-pop[hidden] { display: none; }
.tetc-pop { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: flex-end; justify-content: center; }
.tetc-pop__veil { position: absolute; inset: 0; background: rgba(3,45,107,.55); backdrop-filter: blur(2px); }
.tetc-pop__box { position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; background: #fff; border-radius: 28px 28px 0 0; padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 -12px 40px rgba(3,45,107,.25); animation: tetc-up .28s ease-out; outline: none; }
@media (min-width: 640px) {
  .tetc-pop { align-items: center; }
  .tetc-pop__box { border-radius: 28px; padding: 30px; }
}
@keyframes tetc-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tetc-pop__box { animation: none; } .tetc-btn { transition: none; } }
.tetc-pop__x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--tetc-pearl); color: var(--tetc-night); font-size: 24px; line-height: 1; cursor: pointer; }
.tetc-pop__who { display: flex; align-items: center; gap: 12px; padding-right: 48px; }
.tetc-pop__who span:last-child { display: flex; flex-direction: column; font-size: 14px; }
.tetc-pop__who small { color: var(--tetc-steel); font-size: 12px; }
.tetc-pop__avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--tetc-night); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--tetc-head); font-weight: 800; flex: 0 0 50px; }
.tetc-pop__title { margin: 0; font-family: var(--tetc-head); font-weight: 800; font-size: 24px; line-height: 1.25; color: var(--tetc-night); }
.tetc-pop__text { margin: 0; font-size: 16px; line-height: 1.6; }
.tetc-pop__small { margin: 0; text-align: center; font-size: 13px; line-height: 1.55; color: var(--tetc-steel); }
.tetc-pop__small a { color: var(--tetc-blue); font-weight: 700; }

/* Protection contre les styles du thème (liens soulignés, marges de titres). */
.tetc a.tetc-chip, .tetc a.tetc-channel, .tetc .tetc-list a, .tetc a.tetc-btn, .tetc-pop a.tetc-btn { text-decoration: none !important; }
.tetc .tetc-h2 { margin-top: 0 !important; }
.tetc .tetc-sources { background: none; border: 0; padding: 0; }

/* Univers TUUDA */
.tetc-univ-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.tetc a.tetc-univ { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid #E1E7F0; color: var(--tetc-ink); text-decoration: none !important; transition: border-color .12s ease, box-shadow .12s ease; }
.tetc a.tetc-univ:hover { border-color: var(--tetc-blue); box-shadow: 0 8px 20px rgba(3,45,107,.08); }
.tetc-univ__tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tetc-blue); }
.tetc-univ__title { font-family: var(--tetc-head); font-size: 17px; color: var(--tetc-night); }
.tetc-univ__text { font-size: 14px; line-height: 1.55; color: var(--tetc-steel); flex: 1; }
.tetc-univ__price { font-size: 13px; font-weight: 700; color: var(--tetc-night); background: var(--tetc-pearl); border-radius: 10px; padding: 6px 10px; align-self: flex-start; }
.tetc-univ__cta { font-size: 14px; font-weight: 700; color: var(--tetc-blue); }
.tetc .tetc-contact { margin-top: 16px; font-style: normal; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--tetc-pearl); font-size: 14px; line-height: 1.6; }
.tetc .tetc-contact strong { color: var(--tetc-night); }
.tetc .tetc-contact a { color: var(--tetc-blue); }

.tetc .tetc-card__audio { width: 100%; height: 40px; }

/* Abonné sans compte → Compte TUUDA */
.tetc .tetc-upgrade { position: relative; display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; padding: 18px 18px 18px 20px; border-radius: 18px; color: #fff; background: linear-gradient(120deg, var(--tetc-night), #0B4AA8); overflow: hidden; }
.tetc .tetc-upgrade[hidden] { display: none; }
.tetc .tetc-upgrade::after { content: ""; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; border: 18px solid rgba(242,1,4,.85); }
.tetc-upgrade__badge { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.16); font: 700 11px var(--tetc-body); letter-spacing: .05em; text-transform: uppercase; }
.tetc-upgrade__title { font: 800 18px/1.25 var(--tetc-head); position: relative; z-index: 1; }
.tetc-upgrade__text { font-size: 14px; line-height: 1.5; color: #DCE8F8; position: relative; z-index: 1; }
.tetc-upgrade__text b { color: #fff; }
.tetc .tetc-upgrade .tetc-btn { align-self: flex-start; text-decoration: none; position: relative; z-index: 1; }
.tetc-nudge { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--tetc-ink); text-align: center; }
.tetc-nudge a { color: var(--tetc-red); font-weight: 800; }
.tetc-card__brand, .tetc-card__web { display: inline-flex; align-items: center; gap: 7px; }
.tetc-card__brand img { width: 22px; height: 22px; border-radius: 50%; background: #fff; padding: 2px; object-fit: contain; }

/* Carte du jour : palette du jour (matin clair, soir sombre, Coach / équipe) */
.tetc .tetc-card { position: relative; overflow: hidden; background: radial-gradient(90% 60% at 100% 0%, color-mix(in srgb, var(--acc, #F20104) 22%, transparent), transparent 60%), linear-gradient(165deg, var(--c1, #032D6B), var(--c2, #0A3F8F)); color: var(--ink, #fff); }
.tetc .tetc-card .tetc-card__text { color: var(--ink, #fff) !important; }
.tetc .tetc-card .tetc-card__fr { color: var(--soft, #DCE8F8) !important; border-top-color: color-mix(in srgb, var(--soft, #AECBF0) 40%, transparent); }
.tetc .tetc-card .tetc-card__top, .tetc .tetc-card .tetc-card__who { color: var(--soft, #AECBF0); }
.tetc .tetc-card .tetc-card__who strong { color: var(--acc, #fff); }
.tetc .tetc-card .tetc-card__bar { background: var(--acc, #F20104); }
.tetc .tetc-card .tetc-card__foot { color: var(--ink, #fff); border-top-color: color-mix(in srgb, var(--soft, #AECBF0) 40%, transparent); }
.tetc .tetc-card--light { box-shadow: 0 18px 40px rgba(3,45,107,.12); border: 1px solid rgba(3,45,107,.08); }
.tetc .tetc-card--light .tetc-card__who strong { filter: brightness(.85); }
.tetc .tetc-upgrade::after { right: -70px; top: -70px; width: 120px; height: 120px; border-width: 16px; }
.tetc .tetc-card:not(.tetc-card--light) .tetc-card__who strong { color: var(--ink, #fff); }
