:root { --tc-primary: #3e3aab; }
#trinity-consent-root { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; display: grid; place-items: center; }
#trinity-consent-root [hidden] { display: none !important; }
.tc-backdrop { position: fixed; inset: 0; z-index: 1; background: rgba(15,14,26,.24); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); pointer-events: auto; }
.tc-panel { position: fixed; inset: 0; z-index: 2; display: grid; place-items: end start; padding: 24px; pointer-events: none; }
.tc-card { width: min(550px, calc(100vw - 48px)); overflow: hidden; border: 1px solid rgba(62,58,171,.14); border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(15,14,26,.22); pointer-events: auto; }
.tc-card--intro { position: relative; }
.tc-card--intro::before { content: ""; position: absolute; top: -110px; right: -75px; width: 390px; height: 250px; border-radius: 48%; background: rgba(62,58,171,.14); transform: rotate(-7deg); }
.tc-content { position: relative; padding: 42px 40px 18px; }
.tc-cookie-character { position: absolute; top: 18px; right: 30px; z-index: 1; width: 124px; height: 124px; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(62,58,171,.16)); }
.tc-kicker { max-width: calc(100% - 180px); margin: 0; color: #171523; font-size: clamp(20px,2.5vw,28px); font-weight: 700; line-height: 1.15; }
.tc-card h2 { margin: 3px 0 0; color: var(--tc-primary); font-size: clamp(32px,4vw,46px); font-weight: 900; line-height: 1.05; letter-spacing: -.04em; }
.tc-card--intro h2 { max-width: calc(100% - 180px); }
.tc-lead { max-width: 650px; margin: 24px 0 0; color: #626675; font-size: 16px; line-height: 1.65; }
.tc-certified { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 26px 0 0; color: #a0a3af; font-size: 13px; }
.tc-certified i, .tc-certified strong { color: var(--tc-primary); }
.tc-links { display: flex; justify-content: center; gap: 16px; margin: 8px 0 0; font-size: 11px; }
.tc-links a { color: var(--tc-primary); text-underline-offset: 2px; }
.tc-actions { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid #e7e8ee; }
.tc-actions button, .tc-settings-actions button { appearance: none; min-height: 64px; padding: 12px 18px; border: 0; border-right: 1px solid #e7e8ee; background: #fff; color: #626675; font: inherit; font-weight: 800; cursor: pointer; }
.tc-actions button:last-child { border-right: 0; color: var(--tc-primary); }
.tc-card--intro .tc-actions button[data-action="all"] { color: var(--tc-primary); background: rgba(62,58,171,.07); }
.tc-card--intro .tc-actions button[data-action="all"]:hover,
.tc-card--intro .tc-actions button[data-action="all"]:focus-visible { outline: 0; box-shadow: inset 0 0 0 1px rgba(62,58,171,.3); }
.tc-actions button:hover, .tc-actions button:focus-visible, .tc-settings-actions button:hover, .tc-settings-actions button:focus-visible { color: var(--tc-primary); background: rgba(62,58,171,.07); }
.tc-card--settings { padding: 28px; }
.tc-eyebrow { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; color: var(--tc-primary); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tc-card--settings h2 { margin-bottom: 22px; font-size: clamp(26px,3vw,36px); }
.tc-setting { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid #eceffa; border-radius: 8px; background: #fafaff; }
.tc-setting + .tc-setting { margin-top: 12px; }
.tc-setting strong { color: #171523; }
.tc-setting p { margin: 5px 0 0; color: #626675; font-size: 14px; line-height: 1.5; }
.tc-setting label { display: flex; align-items: center; gap: 7px; color: #2a276f; font-size: 13px; font-weight: 700; white-space: nowrap; }
.tc-setting input { accent-color: var(--tc-primary); }
.tc-settings-actions { display: flex; gap: 10px; margin-top: 18px; }
.tc-settings-actions button { min-height: 46px; border: 1px solid rgba(62,58,171,.16); border-radius: 4px; color: var(--tc-primary); }
.tc-manage { position: fixed; left: 16px; bottom: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid rgba(62,58,171,.15); border-radius: 999px; color: var(--tc-primary); background: rgba(255,255,255,.94); box-shadow: 0 10px 28px rgba(15,14,26,.14); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; pointer-events: auto; }
.tc-manage:hover { color: #fff; background: var(--tc-primary); }
@media (max-width: 720px) {
  .tc-panel { place-items: end start; padding: 10px; }
  .tc-card { width: min(430px, calc(100vw - 20px)); border-radius: 8px; }
  .tc-content { padding: 24px 20px 12px; }
  .tc-card--intro::before { top: -80px; right: -90px; width: 280px; height: 200px; }
  .tc-cookie-character { top: 18px; right: 18px; width: 78px; height: 78px; }
  .tc-kicker, .tc-card--intro h2 { max-width: calc(100% - 90px); }
  .tc-lead { margin-top: 16px; font-size: 13px; line-height: 1.5; }
  .tc-certified { margin-top: 20px; font-size: 11px; }
  .tc-actions { grid-template-columns: 1fr; }
  .tc-actions button { min-height: 48px; border-right: 0; border-bottom: 1px solid #e7e8ee; }
  .tc-actions button:last-child { border-bottom: 0; }
  .tc-card--settings { padding: 20px; }
  .tc-setting { flex-direction: column; }
  .tc-settings-actions { flex-direction: column; }
}

/* Préférences alignées et politique discrète. */
.tc-card--settings .tc-setting { display:grid;grid-template-columns:minmax(0,1fr) 138px;align-items:start;gap:18px; }
.tc-card--settings .tc-setting label { display:grid;grid-template-columns:18px 1fr;align-items:center;gap:8px;width:138px;justify-self:end; }
.tc-card--settings .tc-setting input { width:16px;height:16px;margin:2px 0 0; }
.tc-card--settings .tc-policy { justify-content:flex-start;width:100%;margin-top:16px;color:#6b7280;text-align:left;opacity:.33; }
.tc-card--settings .tc-policy-link { display:inline-flex;align-items:center;gap:7px;color:#6b7280; }
.tc-card--settings .tc-policy-link::before { content:"";width:13px;height:13px;flex:0 0 13px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M208 40H48a8 8 0 0 0-8 8v56c0 92.4 78.7 122.8 84.5 124.9a8 8 0 0 0 7 0C137.3 226.8 216 196.4 216 104V48a8 8 0 0 0-8-8Zm-8 64c0 72.3-56.2 101.4-72 108.5C112.3 205.5 56 176.5 56 104V56h144Z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M208 40H48a8 8 0 0 0-8 8v56c0 92.4 78.7 122.8 84.5 124.9a8 8 0 0 0 7 0C137.3 226.8 216 196.4 216 104V48a8 8 0 0 0-8-8Zm-8 64c0 72.3-56.2 101.4-72 108.5C112.3 205.5 56 176.5 56 104V56h144Z'/%3E%3C/svg%3E") center/contain no-repeat; }
@media(max-width:720px){.tc-card--settings .tc-setting{grid-template-columns:minmax(0,1fr) 124px}.tc-card--settings .tc-setting label{width:124px}}

/* Verrou visuel inter-domaines. */
.tc-card--settings{width:min(550px,calc(100vw - 48px));padding:28px;font-family:Inter,Arial,sans-serif}
.tc-card--settings .tc-eyebrow{font-family:Inter,Arial,sans-serif;font-size:12px}.tc-card--settings .tc-eyebrow i{display:none}.tc-card--settings .tc-eyebrow::before{content:"";width:14px;height:14px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M40 88h32a24 24 0 0 0 46.6 0H216a8 8 0 0 0 0-16h-97.4A24 24 0 0 0 72 72H40a8 8 0 0 0 0 16Zm56-8a8 8 0 1 1-8-8 8 8 0 0 1 8 8Zm120 88h-32a24 24 0 0 0-46.6 0H40a8 8 0 0 0 0 16h97.4a24 24 0 0 0 46.6 0h32a8 8 0 0 0 0-16Zm-56 24a8 8 0 1 1 8-8 8 8 0 0 1-8 8Zm56-72h-8a24 24 0 0 0-46.6 0H40a8 8 0 0 0 0 16h121.4a24 24 0 0 0 46.6 0h8a8 8 0 0 0 0-16Zm-32 24a8 8 0 1 1 8-8 8 8 0 0 1-8 8Z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M40 88h32a24 24 0 0 0 46.6 0H216a8 8 0 0 0 0-16h-97.4A24 24 0 0 0 72 72H40a8 8 0 0 0 0 16Zm56-8a8 8 0 1 1-8-8 8 8 0 0 1 8 8Zm120 88h-32a24 24 0 0 0-46.6 0H40a8 8 0 0 0 0 16h97.4a24 24 0 0 0 46.6 0h32a8 8 0 0 0 0-16Zm-56 24a8 8 0 1 1 8-8 8 8 0 0 1-8 8Zm56-72h-8a24 24 0 0 0-46.6 0H40a8 8 0 0 0 0 16h121.4a24 24 0 0 0 46.6 0h8a8 8 0 0 0 0-16Zm-32 24a8 8 0 1 1 8-8 8 8 0 0 1-8 8Z'/%3E%3C/svg%3E") center/contain no-repeat}
.tc-card--settings h2{font-family:Inter,Arial,sans-serif;font-size:32px;text-transform:none}.tc-card--settings .tc-setting{padding:16px;border-radius:8px}.tc-card--settings .tc-setting strong{font-size:16px}.tc-card--settings .tc-setting p{font-size:14px;line-height:1.5}
@media(max-width:720px){.tc-card--settings{width:min(430px,calc(100vw - 20px));padding:20px}.tc-card--settings h2{font-size:26px}}
