@import url("./rebrand.css?v=preview-replica-10");
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Outfit:wght@600;700;800;900&display=swap");

:root {
  --fr-blue: #1557D6;
  --fr-red: #F53B33;
  --fr-navy: #0B234A;
  --fr-white: #FFFFFF;
  --fr-soft: #F8FAFC;
  --fr-line: #E2E8F0;
  --fr-text: #475569;
  --fr-black: #0A0A0A;
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Sans", system-ui, sans-serif;
  --brand-head: "Outfit", system-ui, sans-serif;
  --brand-body: "IBM Plex Sans", system-ui, sans-serif;
  --brand-mono: "IBM Plex Sans", system-ui, sans-serif;
}

html {
  background: var(--fr-white);
}

body:not(.dyslexic-mode) {
  color: var(--fr-black);
  font-family: "IBM Plex Sans", system-ui, sans-serif !important;
  background:
    radial-gradient(circle at 8% 8%, rgba(21, 87, 214, 0.08), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 52%, #ffffff 100%);
}

body:not(.dyslexic-mode) p,
body:not(.dyslexic-mode) li,
body:not(.dyslexic-mode) a,
body:not(.dyslexic-mode) span,
body:not(.dyslexic-mode) label,
body:not(.dyslexic-mode) input,
body:not(.dyslexic-mode) textarea,
body:not(.dyslexic-mode) select,
body:not(.dyslexic-mode) summary,
body:not(.dyslexic-mode) small {
  font-family: "IBM Plex Sans", system-ui, sans-serif !important;
}

body > main,
.page-shell > main {
  background: transparent;
}

h1,
h2,
h3,
.hero h1,
.hero h2,
.section-head h2,
.content h2,
.faq h2,
.card h2,
.card h3,
.brand,
.brand-mark,
.desktop-nav a,
.mobile-panel a,
.header-cta,
.link-button,
.btn,
.footer-links a,
.dyslexic-toggle,
button,
.brand,
.btn,
.eyebrow,
.kicker {
  font-family: "Outfit", system-ui, sans-serif !important;
}

h1,
h2,
h3 {
  color: var(--fr-black);
  letter-spacing: -0.04em;
  font-weight: 900;
}

p,
li {
  color: var(--fr-text);
}

.btn,
.footer-call,
.link-button,
input[type="submit"],
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.85rem 1.15rem;
  border-radius: 0;
  color: #fff;
  background: var(--fr-navy);
  border: 1px solid var(--fr-navy);
  box-shadow: none;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.btn:hover,
.footer-call:hover,
.link-button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  color: #fff;
  background: var(--fr-blue);
  border-color: var(--fr-blue);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(21, 87, 214, 0.18);
}

.btn.secondary,
.link-button.secondary {
  color: var(--fr-navy);
  background: #fff;
  border: 1px solid var(--fr-navy);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--fr-black);
  background: transparent;
  border-bottom: 1px solid var(--fr-line);
}

.hero.video-looped {
  background: transparent;
}

.hero.video-looped .loop-video {
  display: none;
}

.hero.video-looped::before {
  content: none;
  display: none;
}

.hero::after,
.hero.video-looped::after {
  content: "";
  position: absolute;
  inset: auto;
  top: clamp(2.5rem, 8vw, 5rem);
  bottom: auto;
  left: auto;
  right: max(1rem, calc((100vw - 1180px) / 2));
  width: min(38vw, 430px);
  height: auto;
  aspect-ratio: 1 / .86;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.92)),
    url("./hero-architecture-ia-locale.png") center / contain no-repeat;
  border: 1px solid #dbe3ed;
  pointer-events: none;
}

.hero h1,
.hero h2,
.hero p {
  color: var(--fr-black);
}

.hero .container {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
  padding: clamp(4.5rem, 10vw, 7rem) min(44vw, 470px) clamp(4rem, 9vw, 6rem) 0;
}

.hero h1 {
  max-width: 890px;
  font-size: clamp(2.5rem, 8.2vw, 4.95rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.hero p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 1.35rem;
  color: var(--fr-text);
  font-size: clamp(1rem, 3.8vw, 1.15rem);
  line-height: 1.72;
}

.eyebrow,
.kicker {
  color: var(--fr-red);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head::after,
.content h2::after,
.faq h2::after {
  content: "";
  width: 118px;
  height: 4px;
  display: block;
  margin-top: 0.85rem;
  background: linear-gradient(90deg, var(--fr-blue) 0 34%, #fff 34% 66%, var(--fr-red) 66% 100%);
  border: 1px solid rgba(11, 35, 74, 0.06);
}

.card,
.note,
.toc,
.faq details,
.content > article,
.links a,
.toolbar,
.hero-panel,
.news-card,
.article-card {
  border-radius: 0;
  border-color: var(--fr-line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.card h2::before,
.card h3::before,
.content h2::before,
.faq summary::before {
  content: "";
  width: 34px;
  height: 34px;
  margin-right: 0.55rem;
  display: inline-block;
  vertical-align: -0.45rem;
  background: url("../pictogrammes/21-reseau-ia-locale.png") center / cover no-repeat;
  border: 1px solid rgba(11, 35, 74, 0.12);
}

.toc {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  border: 0;
  background: transparent;
}

.toc a {
  padding: 0.55rem 0.75rem;
  color: var(--fr-navy);
  background: #eff6ff;
  border: 1px solid rgba(21, 87, 214, 0.18);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.links a,
.footer a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.toc a:hover,
.links a:hover {
  color: var(--fr-blue);
}

.read-aloud-button,
.dyslexic-toggle {
  border-radius: 0;
}

main > .container,
.content,
.faq,
.cta {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}

.content {
  display: grid;
  gap: 1.1rem;
}

.content > h2,
.faq > h2,
.section-head > h2 {
  margin-top: clamp(1.4rem, 5vw, 2.6rem);
  font-size: clamp(2rem, 5.6vw, 3.4rem);
  line-height: 0.98;
}

.content > h2:first-child,
.section-head > h2:first-child {
  margin-top: 0;
}

.content > p,
.content > ul,
.content > .note {
  max-width: 860px;
}

.content p,
.content li,
.faq p {
  font-size: clamp(1rem, 2.4vw, 1.08rem);
  line-height: 1.78;
}

.content ul {
  padding-left: 1.2rem;
}

.content li + li {
  margin-top: 0.55rem;
}

.grid,
.cards,
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card,
.note,
.faq details,
.content > article {
  min-height: 0;
  padding: clamp(1.2rem, 4vw, 1.8rem);
}

.card,
.content > article,
.faq details {
  border: 1px solid var(--fr-line);
}

.card h3,
.content h3 {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

pre {
  max-width: 860px;
  margin: 0.85rem 0 1.4rem;
  overflow-x: auto;
  color: #ffffff;
  background: #0b234a;
  border: 1px solid rgba(21, 87, 214, 0.22);
}

pre code {
  display: block;
  padding: 1rem 1.1rem;
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
  white-space: pre;
}

.article-inline-visual,
.article-hero-infographic {
  max-width: 960px;
  margin: 2.4rem 0 3rem;
}

.article-inline-visual img,
.article-hero-infographic img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--fr-line);
  border-radius: 0 !important;
  background: #ffffff;
  box-shadow: 0 22px 58px rgba(11, 35, 74, 0.12);
}

.article-hero-infographic figcaption {
  margin-top: 0.85rem;
  color: var(--fr-text);
  font-size: 0.92rem;
}

.cta,
.resource-card {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(10,10,10,.92), rgba(11,35,74,.82)),
    url("./ressource-souverainete-ia-locale.png") center / cover;
  border: 1px solid rgba(255,255,255,.12);
}

.cta h2,
.cta p,
.resource-card h2,
.resource-card p {
  color: #fff;
}

.cta .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

@media (max-width: 760px) {
  .site-header,
  .topbar-inner {
    min-height: 72px;
  }

  .brand img,
  .brand-mark img {
    width: min(190px, 54vw);
  }

  .header-cta {
    display: none;
  }

  .btn {
    min-height: 44px;
    padding: 0.75rem 0.9rem;
  }

  .hero::after,
  .hero.video-looped::after {
    content: none;
    display: none;
  }

  .hero .container {
    padding: clamp(3.6rem, 10vw, 5rem) 1rem 3rem;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 10.5vw, 3.85rem);
  }

  .content > h2,
  .faq > h2,
  .section-head > h2 {
    font-size: clamp(2rem, 10vw, 3.1rem);
    letter-spacing: -0.05em;
  }

  .article-inline-visual,
  .article-hero-infographic {
    margin: 1.8rem 0 2.2rem;
  }
}

@media (min-width: 760px) {
  .grid.three,
  .cards,
  .article-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
