/* DataROC page — reuses styles.css for tokens, header, footer, fonts and
   section patterns; this file only adds the rules specific to this page.

   The page itself runs a light beige theme, distinct from the rest of
   the dark site, so the shared --bg/--ink/--border/--surface tokens are
   redefined here on <main> — everything inside it (all the rules below
   that reference var(--ink) etc.) picks up the light values
   automatically. The site header and site footer are also flipped to the
   light theme on this page (with the light brand mark), and the EU
   acknowledgment lives inside the footer. */

body {
  --dataroc-accent: #da6e2c;
  --dataroc-accent-dim: rgba(218, 110, 44, 0.3);
  --dataroc-bg: #efe8db;         /* beige clair validé (test dataroc-beige) */
  background: #f6f4f0;
}

main {
  --bg: var(--dataroc-bg);
  --ink: #14110c;
  --ink-soft: #3d372f;
  --border: rgba(0, 0, 0, 0.14);
  --border-strong: rgba(0, 0, 0, 0.3);
  --surface: #f7f3ea;
  background: var(--bg);
}

.dataroc-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) var(--gutter) clamp(3rem, 7vw, 5rem);
}

.dataroc-brand {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.6rem);
}

.dataroc-icon {
  display: block;
  flex-shrink: 0;
  width: clamp(88px, 10vw, 128px);
  height: clamp(88px, 10vw, 128px);
  object-fit: contain;
}

.dataroc-wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.dataroc-name {
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--dataroc-accent);
}

.dataroc-slogan {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.dataroc-tagline {
  margin: 1.6rem 0 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: justify;
}

.dataroc-tagline-sub {
  margin-top: 1rem;
  max-width: 100%;
}

.dataroc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3.2rem;
  width: 100%;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 150px;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.stat-value {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  letter-spacing: -0.01em;
  color: var(--dataroc-accent);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.dataroc-section {
  scroll-margin-top: 90px;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) var(--gutter);
}

.dataroc-kicker {
  margin: 0 0 0.8rem;
  font-family: var(--font);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--dataroc-accent);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.dataroc-section-heading {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.dataroc-lead {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.dataroc-copy {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.dataroc-copy p {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(0.92rem, 1.5vw, 1rem);
  line-height: 1.65;
  color: var(--ink-soft);
  text-align: justify;
}

.dataroc-map {
  margin-top: 2.6rem;
  width: 100%;
  height: clamp(320px, 42vw, 440px);
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.dataroc-partners {
  margin: 1.6rem auto 0;
  padding: 0;
  list-style: none;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.5rem;
}

.dataroc-partner-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 1.5rem;
  padding: 1.2rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  break-inside: avoid;
}

.partner-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.dataroc-partner-card img {
  display: block;
  height: 38px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.partner-name {
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.88rem;
  line-height: 1.3;
  color: var(--ink);
}

.partner-flag {
  font-size: 1rem;
  line-height: 1;
}

.partner-role {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dataroc-accent);
}

.dataroc-map-pin span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dataroc-accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--ink), 0 0 0 4px var(--dataroc-accent-dim);
}

.dataroc-section.is-visible .dataroc-kicker,
.dataroc-section.is-visible .dataroc-section-heading {
  opacity: 1;
  transform: translateY(0);
}

.dataroc-coming-soon {
  margin: 1.6rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dataroc-accent);
}

.dataroc-eu-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 3vw, 2rem);
  max-width: 560px;
  margin: 0 auto;
}

.dataroc-eu-badge {
  flex-shrink: 0;
  height: clamp(48px, 6vw, 64px);
  width: auto;
  opacity: 0.9;
}

.dataroc-eu-disclaimer {
  margin: 0;
  max-width: 560px;
  font-family: var(--font);
  font-weight: 300;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #14110c;
  text-align: justify;
  opacity: 1;
}

@media (max-width: 700px) {
  .dataroc-eu-inline {
    flex-direction: column;
    text-align: center;
  }

  .dataroc-stats {
    flex-direction: column;
  }

  .dataroc-partners {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .dataroc-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}

@media (max-width: 420px) {
  .dataroc-partner-card {
    flex-direction: column;
    gap: 0.6rem;
  }
}

/* Junction between the consortium grid and the Research output section:
   the user asked to remove the gap between the map/partners and it, so
   this junction is tighter than the default section rhythm. */
#consortium {
  padding-bottom: 1rem;
}

#publications {
  padding-top: 1rem;
}

/* Star divider between sections, replacing the site's default dots on this
   page only. */
.dataroc-stars {
  display: block;
  margin: 0 auto;
  width: 88px;
  height: 14px;
  color: var(--dataroc-accent);
}

.dataroc-star {
  animation: starTwinkle 2.8s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.dataroc-star.st1 {
  animation-delay: 0s;
}

.dataroc-star.st2 {
  animation-delay: 0.4s;
}

.dataroc-star.st3 {
  animation-delay: 0.8s;
}

.dataroc-star.st4 {
  animation-delay: 1.2s;
}

@keyframes starTwinkle {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Header and site footer: this page flips both to the light theme (they
   stay dark everywhere else). Paired with the light brand mark
   (fill #f6f4f0, set inline in dataroc.html). */
.site-header {
  background: var(--dataroc-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.site-header .brand {
  color: #14110c;
}

.site-header .nav-links a {
  color: #3d372f;
}

.site-header .nav-links a:hover {
  color: #14110c;
}

.site-header .nav-contact {
  border-left-color: rgba(0, 0, 0, 0.14);
}

.site-footer {
  background: var(--dataroc-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.site-footer .brand,
.site-footer .footer-legal a,
.site-footer .footer-copy {
  color: #14110c;
}
