/* =============================================================================
   TTRIP — Design system
   Fonts: Fraunces (display) + Inter (body)
   Palette: UniCA navy + cyan accent + warm neutrals
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

/* --- Tokens --------------------------------------------------------------- */
:root {
    /* Brand */
    --c-navy-950: #061429;
    --c-navy-900: #0a1f3d;
    --c-navy-800: #0f2a54;
    --c-navy-700: #173a6b;
    --c-navy-600: #1f4a82;
    --c-navy-500: #2d6fb8;
    --c-blue-400: #5c9bd9;
    --c-blue-300: #8fbde8;

    --c-cyan-500: #06b6d4;
    --c-cyan-400: #22d3ee;
    --c-cyan-300: #67e8f9;

    /* Neutrals (warm) */
    --c-paper:    #faf8f3;
    --c-bone:     #f2ede4;
    --c-stone-100:#e7e2d6;
    --c-stone-300:#b8b1a2;
    --c-stone-600:#6b6558;
    --c-ink-900:  #0f1419;
    --c-ink-700:  #2b3139;

    --c-ok:       #16a34a;
    --c-warn:     #d97706;
    --c-err:      #dc2626;

    /* Semantic */
    --bg-page:     var(--c-paper);
    --bg-section:  var(--c-bone);
    --bg-sunken:   var(--c-stone-100);
    --bg-inverse:  var(--c-navy-950);
    --fg:          var(--c-ink-900);
    --fg-muted:    var(--c-stone-600);
    --fg-on-dark:  #e8ecf3;
    --fg-on-dark-muted: #9baccb;
    --border:      rgba(15, 20, 25, 0.08);
    --border-strong: rgba(15, 20, 25, 0.14);
    --border-dark: rgba(255, 255, 255, 0.1);
    --accent:      var(--c-cyan-500);
    --accent-hover:#0891b2;

    /* Type */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;
    --space-10: 4rem;
    --space-12: 6rem;
    --space-16: 8rem;

    /* Radius */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 20px;

    /* Shadow */
    --shadow-sm: 0 1px 2px rgba(15, 20, 25, 0.04), 0 1px 3px rgba(15, 20, 25, 0.06);
    --shadow-md: 0 4px 12px rgba(15, 20, 25, 0.06), 0 2px 6px rgba(15, 20, 25, 0.04);
    --shadow-lg: 0 24px 48px rgba(15, 20, 25, 0.1), 0 8px 16px rgba(15, 20, 25, 0.06);

    /* Layout */
    --container: 1200px;
    --container-narrow: 880px;
    /* Unified reading/content width — fills the container-narrow inner area. */
    --measure: 51rem;

    /* Motion */
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --dur-fast: 150ms;
    --dur: 250ms;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --- Reset & base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
    background: var(--bg-page);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--c-navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--dur) var(--ease); }
a:hover { color: var(--c-navy-900); }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* --- Typography ----------------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
    color: var(--fg);
}
h1 { font-size: clamp(2.25rem, 4vw + 1rem, 4.75rem); font-weight: 400; }
h2 { font-size: clamp(1.75rem, 2vw + 1rem, 3rem); }
h3 { font-size: clamp(1.25rem, 0.8vw + 1rem, 1.625rem); line-height: 1.25; }
h4 { font-size: 1.125rem; font-weight: 600; font-family: var(--font-sans); letter-spacing: -0.01em; }

.eyebrow {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fg-muted);
}

.lead {
    font-size: 1.125rem;
    color: var(--fg-muted);
    max-width: var(--measure);
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* --- Layout --------------------------------------------------------------- */
.container        { max-width: var(--container);        margin-inline: auto; padding-inline: clamp(1rem, 3vw, 2rem); }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: clamp(1rem, 3vw, 2rem); }
.section         { padding-block: clamp(4rem, 8vw, 7rem); }
.section--sunken { background: var(--bg-section); }
.section--dark   { background: var(--bg-inverse); color: var(--fg-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--fg-on-dark); }
.section--dark .eyebrow { color: var(--c-cyan-300); }
.section--dark .lead { color: var(--fg-on-dark-muted); }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--c-navy-900); color: white;
    padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform var(--dur-fast) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
    white-space: nowrap;
}
/* [hidden] must actually hide display:inline-flex elements */
.btn[hidden] { display: none !important; }

/* Inline SVG icons — consistent sizing */
.icon {
    display: inline-block;
    vertical-align: text-bottom;
    flex-shrink: 0;
}
.btn .icon { margin-right: 0.125rem; }
.btn:hover { transform: translateY(-1px); }
.btn--primary   { background: var(--c-navy-800); color: white; }
.btn--primary:hover { background: var(--c-navy-900); color: white; }
.btn--secondary { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn--secondary:hover { background: var(--c-navy-800); color: white; border-color: var(--c-navy-800); }
.btn--ghost-dark { background: rgba(255,255,255,0.08); color: white; border-color: rgba(255,255,255,0.2); backdrop-filter: blur(8px); }
.btn--ghost-dark:hover { background: rgba(255,255,255,0.16); color: white; border-color: rgba(255,255,255,0.3); }
.btn--accent    { background: var(--accent); color: var(--c-navy-950); }
.btn--accent:hover { background: var(--accent-hover); color: white; }

/* --- Header / Nav --------------------------------------------------------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background: rgba(250, 248, 243, 0.85);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header.is-scrolled { background: rgba(250, 248, 243, 0.95); border-bottom-color: var(--border); }
.site-header--on-hero { background: transparent; }
.site-header--on-hero .nav-link { color: rgba(255,255,255,0.88); }
.site-header--on-hero .nav-link:hover { color: white; }
.site-header--on-hero .brand-word { color: white; }
.site-header--on-hero .lang-btn { color: rgba(255,255,255,0.8); }
.site-header--on-hero .lang-btn.is-active { color: white; background: rgba(255,255,255,0.12); }

.nav-wrap {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
    gap: 2rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--fg); }
.brand__uca { height: 36px; width: auto; }
.brand__uca--white { display: none; }
.site-header--on-hero .brand__uca:not(.brand__uca--white) { display: none; }
.site-header--on-hero .brand__uca--white { display: block; }
.brand__sep {
    width: 1px; height: 24px;
    background: currentColor; opacity: 0.2;
    margin-inline: 0.25rem;
}
.brand-word {
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em;
}
.brand-word span { color: var(--c-cyan-500); }

@media (max-width: 520px) {
    .brand__uca { height: 28px; }
    .brand-word { font-size: 1.25rem; }
}
.primary-nav { display: none; gap: 2rem; }
@media (min-width: 900px) { .primary-nav { display: flex; } }
.nav-link {
    font-size: 0.925rem; font-weight: 500; color: var(--fg); text-decoration: none;
    position: relative; padding-block: 0.25rem;
}
.nav-link::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -4px;
    height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left;
    transition: transform var(--dur) var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); }

.nav-tools { display: flex; align-items: center; gap: 0.5rem; }
.lang-switcher { display: flex; gap: 0.15rem; background: transparent; border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang-btn {
    background: transparent; border: 0; font-size: 0.8rem; font-weight: 600;
    padding: 5px 10px; border-radius: 999px; color: var(--fg-muted);
    text-decoration: none; letter-spacing: 0.04em; text-transform: uppercase;
    transition: all var(--dur) var(--ease);
}
.lang-btn.is-active { background: var(--c-navy-800); color: white; }
.lang-btn:hover:not(.is-active) { color: var(--fg); background: var(--bg-sunken); }

.nav-burger { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: transparent; border: 0; border-radius: 8px; color: inherit; }
@media (min-width: 900px) { .nav-burger { display: none; } }
.nav-burger svg { width: 22px; height: 22px; }

.mobile-nav { display: none; }
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav {
    background: var(--bg-page); border-top: 1px solid var(--border);
    padding: 1rem clamp(1rem, 3vw, 2rem);
}
.mobile-nav a { display: block; padding: 0.75rem 0; font-size: 1.05rem; text-decoration: none; color: var(--fg); border-bottom: 1px solid var(--border); }
.mobile-nav a:last-child { border-bottom: 0; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex; align-items: center;
    color: white;
    overflow: hidden;
    padding-block: clamp(5rem, 10vw, 8rem) clamp(3rem, 6vw, 5rem);
}
.hero__bg {
    position: absolute; inset: 0; z-index: 0;
}
.hero__bg img {
    width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
    filter: saturate(1.06) contrast(1.03) brightness(1.02);
}
.hero__bg::after {
    /* Overlay renforcé : nouvelle bannière (forêt + champignons + manuscrit)
       a plus de zones claires au centre, on remonte les alphas pour garder
       un bon contraste sur le H1 blanc. */
    content: ''; position: absolute; inset: 0;
    background:
      linear-gradient(180deg, rgba(6,20,41,0.35) 0%, rgba(6,20,41,0.25) 30%, rgba(6,20,41,0.70) 75%, rgba(6,20,41,0.92) 100%),
      linear-gradient(90deg, rgba(6,20,41,0.45) 0%, rgba(6,20,41,0.0) 65%);
}
.hero__content {
    position: relative; z-index: 1;
    max-width: 820px;
}
.hero .eyebrow { color: var(--c-cyan-300); margin-bottom: 1.25rem; display: inline-block; }
.hero h1 {
    color: white;
    font-weight: 300;
    margin-bottom: 1.5rem;
}
.hero h1 em {
    font-style: italic; color: var(--c-cyan-300); font-weight: 400;
}
.hero__subtitle {
    font-size: clamp(1rem, 1vw + 0.8rem, 1.25rem);
    color: rgba(255,255,255,0.88);
    max-width: 64ch;
    margin-bottom: 2.5rem;
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
    -webkit-hyphens: auto;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__scroll {
    position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%);
    z-index: 1; color: rgba(255,255,255,0.7); text-decoration: none;
    font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
    display: inline-flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.hero__scroll::after {
    content: ''; width: 1px; height: 32px; background: rgba(255,255,255,0.4);
    animation: scrollHint 2.2s ease-in-out infinite;
    transform-origin: top;
}
@keyframes scrollHint {
    0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
    50%      { transform: scaleY(1);   opacity: 1; }
}

/* --- Pillars -------------------------------------------------------------- */
.section__head { max-width: var(--measure); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head .eyebrow { margin-bottom: 1rem; display: inline-block; }
.section__head h2 { margin-bottom: 1rem; }

.pillars-grid {
    display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 780px)  { .pillars-grid { grid-template-columns: repeat(3, 1fr); } }

.pillar {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2rem;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.pillar:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}
.pillar__icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--c-navy-800), var(--c-navy-600));
    color: var(--c-cyan-300);
    margin-bottom: 1.25rem;
}
.pillar__icon svg { width: 22px; height: 22px; }
.pillar h3 { margin-bottom: 0.5rem; }
.pillar p {
    color: var(--fg-muted);
    margin: 0;
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* --- Ethics card ---------------------------------------------------------- */
.ethics-card {
    background: linear-gradient(135deg, var(--c-navy-900), var(--c-navy-800));
    color: var(--fg-on-dark);
    border-radius: var(--r-xl);
    padding: clamp(2rem, 4vw, 3rem);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.ethics-card::before {
    content: ''; position: absolute; right: -80px; top: -80px;
    width: 280px; height: 280px; border-radius: 50%;
    background: radial-gradient(circle, rgba(34,211,238,0.25), transparent 70%);
    pointer-events: none;
}
.ethics-card__badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(34,211,238,0.15); color: var(--c-cyan-300);
    padding: 0.375rem 0.875rem; border-radius: 999px;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
    border: 1px solid rgba(34,211,238,0.3);
    margin-bottom: 1.5rem;
}
.ethics-card__badge svg { width: 14px; height: 14px; }
.ethics-card h2 { color: white; margin-bottom: 1rem; max-width: 20ch; }
.ethics-card p {
    color: rgba(255,255,255,0.88);
    max-width: 62ch;
    margin: 0;
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* --- Steps ---------------------------------------------------------------- */
.steps-grid {
    display: grid; gap: 1rem;
    grid-template-columns: 1fr;
    counter-reset: step;
}
@media (min-width: 700px)  { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }

.step {
    background: var(--bg-page);
    border-radius: var(--r-lg);
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--border);
    position: relative;
}
.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--c-cyan-500);
    font-weight: 500;
    display: block;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.01em; }
.step p  { color: var(--fg-muted); font-size: 0.925rem; margin: 0; line-height: 1.55; }

/* --- Institutions strip --------------------------------------------------- */
.institutions {
    padding-block: clamp(2.5rem, 5vw, 4rem);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-page);
}
.institutions__label { text-align: center; color: var(--fg-muted); font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2rem; font-weight: 500; }
.institutions__row {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}
.institutions__row img {
    max-height: 64px; width: auto;
    opacity: 0.85;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.institutions__row img:hover { opacity: 1; transform: translateY(-2px); }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
    background: var(--c-navy-950);
    color: var(--fg-on-dark);
    padding-block: clamp(3rem, 6vw, 5rem) 1.5rem;
}
.footer-grid {
    display: grid; gap: 3rem;
    grid-template-columns: 1fr;
}
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }

.footer-col h4 { color: white; font-size: 0.825rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 1.25rem; font-family: var(--font-sans); }
.footer-about p { color: var(--fg-on-dark-muted); margin-bottom: 1rem; max-width: 38ch; }
.footer-about .eth-tag { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--c-cyan-300); font-size: 0.875rem; font-weight: 500; }

.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col a { color: var(--fg-on-dark-muted); text-decoration: none; font-size: 0.9rem; transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: white; }

.footer-bottom {
    margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border-dark);
    display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
    font-size: 0.8rem; color: var(--fg-on-dark-muted);
}
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-credit { opacity: 0.75; }

/* --- Utility -------------------------------------------------------------- */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --- Dose info modal + trigger button ----------------------------------- */
.dose-info-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    padding: 0;
    margin-left: 4px;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: var(--fg-muted, #7d8590);
    cursor: pointer;
    vertical-align: -3px;
    opacity: 0.6;
    transition: opacity 120ms ease, color 120ms ease, transform 120ms ease;
}
.dose-info-trigger:hover, .dose-info-trigger:focus-visible {
    opacity: 1; color: var(--c-navy-500, #0a1f3d); transform: scale(1.06);
    outline: none;
}

.dose-modal {
    border: 1px solid var(--border, #e5e5e0);
    border-radius: 14px;
    padding: 0;
    max-width: 920px;
    width: 92vw;
    max-height: 85vh;
    box-shadow: 0 24px 60px rgba(10, 31, 61, 0.25);
    color: var(--fg, #1a1a1a);
    background: #fff;
    overflow: hidden;
}
.dose-modal::backdrop { background: rgba(10, 31, 61, 0.55); backdrop-filter: blur(2px); }
.dose-modal__head {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.1rem 1.5rem; background: var(--bg-section, #f3f7f5);
    border-bottom: 1px solid var(--border, #e5e5e0);
}
.dose-modal__head h2 { margin: 0; font-size: 1.15rem; font-weight: 600; color: var(--c-navy-500, #0a1f3d); }
.dose-modal__close {
    background: transparent; border: 0; cursor: pointer; padding: 4px;
    color: var(--fg-muted, #7d8590); border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
}
.dose-modal__close:hover { background: rgba(0,0,0,0.05); color: var(--fg, #1a1a1a); }
.dose-modal__intro {
    margin: 0; padding: 1rem 1.5rem 0.5rem;
    color: var(--fg-muted, #4a4a4a); font-size: 0.92rem; line-height: 1.55;
}
.dose-modal__table-wrap {
    padding: 0.5rem 1.5rem 1rem;
    overflow-x: auto;
}
.dose-modal__table {
    width: 100%; border-collapse: collapse;
    font-size: 0.88rem;
    margin-top: 0.75rem;
}
.dose-modal__table th,
.dose-modal__table td {
    padding: 0.55rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border, #e5e5e0);
    white-space: nowrap;
}
.dose-modal__table th {
    font-size: 0.72rem;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--fg-muted, #7d8590);
    background: var(--bg-section, #f9fafb);
    font-weight: 600;
}
.dose-modal__table tbody tr:hover { background: rgba(34, 211, 238, 0.04); }
.dose-modal__table td:first-child { font-weight: 500; min-width: 140px; }
.dose-modal__note {
    margin: 0; padding: 0.85rem 1.5rem 1.25rem;
    color: var(--fg-muted, #4a4a4a);
    font-size: 0.85rem; line-height: 1.55;
    background: var(--bg-section, #f9fafb);
    border-top: 1px solid var(--border, #e5e5e0);
}
.dose-modal__note strong { color: var(--c-navy-500, #0a1f3d); }
@media (max-width: 560px) {
    .dose-modal { max-height: 92vh; }
    .dose-modal__head { padding: 0.85rem 1rem; }
    .dose-modal__intro, .dose-modal__note { padding-left: 1rem; padding-right: 1rem; font-size: 0.85rem; }
    .dose-modal__table-wrap { padding: 0.5rem 1rem 1rem; }
    .dose-modal__table { font-size: 0.82rem; }
    .dose-modal__table th, .dose-modal__table td { padding: 0.45rem 0.55rem; }
}

/* --- Privacy banner ------------------------------------------------------- */
.cookie-banner {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 1000;
    background: #0a1f3d;
    color: #f2ede4;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(10, 31, 61, 0.35), 0 2px 6px rgba(0,0,0,.15);
    border: 1px solid rgba(255,255,255,0.08);
    animation: cookie-banner-in 280ms ease-out;
}
.cookie-banner[hidden] { display: none; }
@keyframes cookie-banner-in {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner__content {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.cookie-banner__icon {
    color: #22d3ee;
    flex-shrink: 0;
}
.cookie-banner__text {
    flex: 1 1 320px;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #f2ede4;
}
.cookie-banner__actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}
.cookie-banner__link {
    color: #22d3ee;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.9rem;
    white-space: nowrap;
}
.cookie-banner__link:hover { color: #67e8f9; }
.cookie-banner__dismiss {
    white-space: nowrap;
    padding: 0.55rem 1.25rem;
    font-size: 0.92rem;
}
@media (max-width: 600px) {
    .cookie-banner { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; }
    .cookie-banner__content { padding: 0.85rem 1rem; gap: 0.75rem; }
    .cookie-banner__text { font-size: 0.88rem; }
    .cookie-banner__actions { width: 100%; justify-content: flex-end; }
}
