@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");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: #0b1733;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  line-height: 1.6;
  background: #f7f9fc;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid #e5252a;
  outline-offset: 3px;
}

:root {
  --mb-cols: 12;
  --mb-bl: 8px;
  --mb-lh: 24px;
  --mb-gutter: 24px;
  --mb-margin: clamp(24px, 4vw, 72px);
  --mb-maxw: 1296px;
  --mb-paper: #ffffff;
  --mb-ink: #111315;
  --mb-muted: #565e67;
  --mb-line: #d9dde3;
  --mb-accent: #e5252a;
  --mb-col: rgba(229, 37, 42, 0.075);
  --mb-edge: rgba(229, 37, 42, 0.42);
  --mb-base: rgba(0, 134, 126, 0.28);
  --mb-base-min: rgba(0, 134, 126, 0.12);
}

.site-shell {
  min-height: 100vh;
  background: var(--mb-paper);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #dbe5f4;
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

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

.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.15rem;
}

.desktop-nav a,
.footer-links a {
  color: #10244d;
  font-family: "Outfit", sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.desktop-nav a:hover,
.footer-links a:hover {
  color: #1557d6;
}

.header-cta,
.button,
.listen-actions button,
.share-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  color: #ffffff;
  background: var(--mb-ink);
  border: 1px solid var(--mb-ink);
  border-radius: 4px;
  font-family: "Outfit", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.button.secondary,
.listen-actions button,
.share-actions button {
  color: var(--mb-ink);
  background: #ffffff;
  border-color: var(--mb-line);
}

.button:hover,
.header-cta:hover,
.listen-actions button:hover,
.share-actions button:hover {
  border-color: var(--mb-accent);
  box-shadow: 0 10px 24px rgba(229, 37, 42, 0.16);
  transform: translateY(-1px);
}

.grid-toggle {
  display: none;
  min-height: 40px;
  padding: 0.55rem 0.75rem;
  color: var(--mb-ink);
  background: #ffffff;
  border: 1px solid var(--mb-line);
  border-radius: 4px;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
}

.grid-toggle[aria-pressed="true"] {
  color: #ffffff;
  background: var(--mb-accent);
  border-color: var(--mb-accent);
}

.listen-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: #0b234a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
}

.mobile-panel {
  position: absolute;
  top: calc(100% + 1px);
  right: 1rem;
  left: 1rem;
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #dbe5f4;
  box-shadow: 0 28px 80px rgba(11, 35, 74, 0.18);
}

.mobile-panel[hidden],
.mobile-panel:not(.is-open) {
  display: none;
}

.mobile-panel a {
  min-height: 46px;
  padding: 0.85rem;
  color: #0b234a;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
}

.container,
.article-layout {
  width: min(100% - 2rem, var(--mb-maxw));
  margin-inline: auto;
}

.hero-media {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  color: #ffffff;
  background:
    linear-gradient(115deg, rgba(17, 19, 21, 0.96), rgba(17, 19, 21, 0.72)),
    url("./pictogrammes/22-reseau-ia-locale-sombre.png") center / cover;
}

.home-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: grayscale(1) contrast(1.08);
  pointer-events: none;
}

.home-video-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(17, 19, 21, 0.96), rgba(17, 19, 21, 0.72) 58%, rgba(17, 19, 21, 0.38));
}

.home-video-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(11, 35, 74, 0.44));
}

.hero-media .container {
  position: relative;
  z-index: 2;
}

.grid-frame {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--mb-cols), minmax(0, 1fr));
  column-gap: var(--mb-gutter);
  row-gap: var(--mb-lh);
}

.grid-guides {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

body.grid-on .grid-guides {
  opacity: 1;
}

.guide-cols {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--mb-cols), minmax(0, 1fr));
  column-gap: var(--mb-gutter);
}

.guide-cols span {
  position: relative;
  display: block;
  min-height: 100%;
  background: var(--mb-col);
  box-shadow: inset 1px 0 0 var(--mb-edge), inset -1px 0 0 var(--mb-edge);
}

.guide-cols span::before {
  content: attr(data-col);
  position: absolute;
  top: var(--mb-bl);
  left: 0;
  right: 0;
  color: var(--mb-accent);
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.guide-rows {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(to bottom, var(--mb-base) 0 1px, transparent 1px var(--mb-lh)),
    repeating-linear-gradient(to bottom, var(--mb-base-min) 0 1px, transparent 1px var(--mb-bl));
}

.hero-copy {
  grid-column: 1 / 9;
  display: grid;
  gap: var(--mb-lh);
}

.eyebrow {
  margin: 0;
  color: #e5252a;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-media .eyebrow {
  color: #ffffff;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--mb-ink);
  font-family: "IBM Plex Sans", Arial, sans-serif;
  letter-spacing: 0;
  line-height: 1;
}

.hero-media h1 {
  max-width: 980px;
  color: #ffffff;
  font-size: 2.75rem;
  line-height: 1;
  font-weight: 900;
}

h1 {
  font-size: 2.5rem;
  font-weight: 900;
}

h2 {
  font-size: 2rem;
  font-weight: 900;
}

h3 {
  font-size: 1.25rem;
  font-weight: 850;
}

.lead,
.hero-media p {
  max-width: 850px;
  font-size: 1.125rem;
  line-height: var(--mb-lh);
}

.hero-actions,
.card-actions,
.article-actions,
.share-actions,
.listen-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.section {
  padding: 72px 0;
}

.section-heading {
  display: grid;
  gap: 0.8rem;
  max-width: 860px;
  margin-bottom: 2rem;
}

.section-heading p {
  margin: 0;
  color: #41516f;
  font-size: 1.05rem;
}

.editorial-overview {
  background: #ffffff;
}

.intro-grid > .section-heading,
.intro-grid > div:not(.grid-guides):not(.section-heading) {
  grid-column: span 6;
}

.editorial-system > .section-heading,
.editorial-system > .overview-grid,
.editorial-system > .overview-conclusion,
.editorial-system > .grid {
  grid-column: 1 / -1;
}

.overview-grid {
  display: grid;
  gap: var(--mb-gutter);
}

.overview-panel {
  padding: 24px;
  border: 1px solid var(--mb-line);
  border-left: 4px solid var(--mb-accent);
  border-radius: 0;
  background: #ffffff;
}

.overview-panel h3 {
  margin-bottom: 0.7rem;
}

.overview-panel p,
.overview-conclusion {
  margin: 0;
  color: #41516f;
}

.overview-conclusion {
  max-width: 900px;
  margin-top: var(--mb-lh);
  padding-top: var(--mb-lh);
  border-top: 1px solid var(--mb-line);
  font-weight: 800;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.two,
.grid.three,
.grid.four {
  grid-template-columns: 1fr;
}

.card,
.editorial-card,
.listen-box,
.share-box,
.note-box,
.quote-box,
.source-box,
.media-box {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dbe5f4;
  border-radius: 0;
  box-shadow: none;
}

.card,
.editorial-card {
  display: grid;
  gap: 0.85rem;
  padding: 24px;
  text-decoration: none;
}

.media-format-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  border: 1px solid #dbe5f4;
  border-radius: 6px;
  background: #ffffff;
}

.video-format-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid #dbe5f4;
  border-radius: 6px;
  background: #0b1733;
}

.long-text-card {
  gap: 0.75rem;
}

.long-text-card h4 {
  margin: 0.35rem 0 0;
  color: #0b1733;
  font-family: "Outfit", sans-serif;
  font-size: 1.05rem;
  line-height: 1.18;
}

.long-text-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #465876;
}

.long-text-card li + li {
  margin-top: 0.45rem;
}

.editorial-card:hover {
  border-color: #1557d6;
  transform: translateY(-2px);
}

.card p,
.editorial-card p {
  margin: 0;
  color: #465876;
}

.card small,
.meta,
.article-meta {
  color: #65748f;
  font-size: 0.9rem;
}

.rubric-list {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rubric-list li {
  padding-left: 1rem;
  border-left: 3px solid #1557d6;
}

.manifesto {
  color: #ffffff;
  background: #0b234a;
}

.manifesto h2,
.manifesto p {
  color: #ffffff;
}

.manifesto .note-box {
  color: #0b1733;
  background: #ffffff;
}

.manifesto .note-box p,
.manifesto .note-box .box-title {
  color: #0b1733;
}

.article-hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 2.5rem;
  background: #ffffff;
  border-bottom: 1px solid #dbe5f4;
}

.breadcrumb {
  width: min(100% - 2rem, 1180px);
  margin: 1.2rem auto 0;
  color: #5a6883;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #1557d6;
  text-decoration: none;
}

.article-layout {
  display: grid;
  gap: 1.3rem;
  padding: 2rem 0 clamp(3rem, 7vw, 5rem);
}

.article-content {
  display: grid;
  gap: 1.6rem;
  color: #1b2a45;
  font-size: 1.06rem;
}

.article-content p,
.article-content li {
  margin-top: 0;
}

.article-content section {
  display: grid;
  gap: 0.75rem;
}

.article-content h2 {
  margin-top: 0.4rem;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
}

.listen-box,
.share-box,
.note-box,
.quote-box,
.source-box,
.media-box {
  padding: 1rem;
}

.listen-title,
.box-title {
  margin: 0 0 0.65rem;
  color: #0b234a;
  font-family: "Outfit", sans-serif;
  font-weight: 850;
}

#listen-status {
  margin: 0.75rem 0 0;
  color: #1557d6;
  font-weight: 700;
}

.listen-note,
.source-box p {
  margin-bottom: 0;
  color: #62718c;
  font-size: 0.9rem;
}

.quote-box {
  border-left: 5px solid #e5252a;
}

.quote-box blockquote {
  margin: 0;
  color: #0b234a;
  font-family: "Outfit", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.media-box iframe,
.media-box video,
.media-box img {
  width: 100%;
  border: 0;
  border-radius: 6px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid #dbe5f4;
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

th,
td {
  padding: 0.9rem;
  text-align: left;
  border-bottom: 1px solid #e7edf7;
  vertical-align: top;
}

th {
  color: #0b234a;
  font-family: "Outfit", sans-serif;
}

.footer {
  display: grid;
  gap: 1.4rem;
  align-items: start;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  color: #ffffff;
  background: #071933;
}

.footer img {
  width: min(190px, 48vw);
  height: auto;
  background: #ffffff;
}

.footer p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
}

.footer-contact-line {
  margin-top: 0.75rem;
}

.footer-contact-line a {
  color: #ffffff;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  text-decoration: none;
}

.footer-contact-line a:hover {
  color: #93c5fd;
}

.whatsapp-business-button {
  position: fixed;
  right: clamp(0.75rem, 2.5vw, 1.5rem);
  bottom: clamp(0.75rem, 2.5vw, 1.5rem);
  z-index: 80;
  display: block;
  width: min(320px, calc(100vw - 1.5rem));
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(7, 25, 51, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.whatsapp-business-button:hover,
.whatsapp-business-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(7, 25, 51, 0.28);
}

.whatsapp-business-button img {
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.contact-channels {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.contact-channel-link {
  color: #1557d6;
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .whatsapp-business-button {
    right: 0.6rem;
    bottom: 0.6rem;
    width: min(250px, calc(100vw - 1.2rem));
    border-radius: 18px;
  }
}

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

.footer-links a {
  color: #ffffff;
}

@media (min-width: 720px) {
  .overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .long-text-card {
    grid-column: 1 / -1;
  }

  .grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .grid-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .desktop-nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
  }

  .article-sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 1rem;
  }

  .footer {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 760px) {
  .hero-media {
    padding: 120px 0 96px;
  }

  .hero-media h1 {
    font-size: 4rem;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.75rem;
  }

  .lead,
  .hero-media p {
    font-size: 1.25rem;
    line-height: 32px;
  }
}

@media (min-width: 1200px) {
  .hero-media h1 {
    font-size: 4.75rem;
  }
}

@media (max-width: 860px) {
  :root {
    --mb-cols: 6;
    --mb-gutter: 16px;
  }

  .hero-copy,
  .intro-grid > .section-heading,
  .intro-grid > div:not(.grid-guides):not(.section-heading) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .hero-media {
    padding: 80px 0 64px;
  }

  .hero-media h1 {
    font-size: 2.5rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero-actions .button,
  .card-actions .button,
  .listen-actions button,
  .share-actions button {
    width: 100%;
  }

  .hero-actions .button.secondary {
    min-height: 40px;
    padding: 0;
    justify-content: flex-start;
    color: #ffffff;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
  }

  .hero-actions .button.secondary:hover,
  .hero-actions .button.secondary:focus-visible {
    color: #ffffff;
    background: transparent;
    border-color: transparent;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-video {
    display: none;
  }
}
