:root {
  /* Palette : bleu nuit, bleu marine, vert croissance, or */
  --primary-dark: #001f3e;
  --primary: #073358;
  --secondary: #0b4a7d;
  --accent: #0da574;
  --accent-text: #34c98f;
  --highlight: #ffd716;
  --highlight-ink: #001f3e;
  --bg: var(--primary-dark);
  --paper: var(--primary);
  --ink: #ffffff;
  --muted: #c5d8e7;
  --line: rgba(120, 165, 210, 0.24);
  --night: var(--primary);
  --hero: var(--primary-dark);
  --gold: var(--accent-text);
  --cream: var(--secondary);
  --white: #ffffff;
  --radius: 1.35rem;
  --header: 4.5rem;
  --wrap: 72rem;
  --font: "Montserrat", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(calc(100% - 2rem), var(--wrap));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(0, 31, 62, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(0, 31, 62, 0.24);
  background: rgba(0, 31, 62, 0.96);
}

.header-inner {
  width: min(calc(100% - 2rem), var(--wrap));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-logo {
  display: block;
  width: 8.5rem;
  height: auto;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-size: 1.05rem;
}

.brand-name {
  font-size: 1.05rem;
}

.nav-desktop {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.92rem;
  color: #d7e5ef;
}

.nav-desktop a {
  position: relative;
}

.nav-desktop a.is-active,
.nav-desktop a:hover {
  color: var(--ink);
}

.nav-desktop > a.is-active::after,
.nav-item.has-sub > a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 1px;
  background: var(--gold);
}

.nav-item {
  position: relative;
}

.nav-sub {
  display: none;
  position: absolute;
  top: calc(100% + 0.8rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 16rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.55rem;
  box-shadow: 0 18px 40px rgba(0, 31, 62, 0.35);
}

.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub {
  display: grid;
}

.nav-sub a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem;
  font-size: 0.88rem;
}

.nav-sub a:hover {
  background: var(--secondary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--primary);
  color: #fff;
}

.btn-cream {
  background: var(--highlight);
  color: var(--highlight-ink);
  font-weight: 600;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: transparent;
}

.btn-line {
  border-color: var(--line);
  color: var(--accent-text);
  background: transparent;
}

.btn-header {
  display: none;
  padding: 0.62rem 1.1rem;
  background: var(--highlight);
  color: var(--highlight-ink);
  font-weight: 600;
}

.nav-toggle {
  margin-left: auto;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 1.5px;
  background: var(--ink);
}

.menu-mobile {
  position: fixed;
  inset: var(--header) 0 0 0;
  background: var(--paper);
  z-index: 40;
  overflow: auto;
}

.menu-mobile-inner {
  padding: 1.5rem 1.25rem 6rem;
  display: grid;
  gap: 0.35rem;
}

.menu-mobile a {
  font-size: 1.35rem;
  font-family: var(--font);
  padding: 0.45rem 0;
}

.menu-mobile-sub {
  display: grid;
  padding: 0 0 0.8rem 0.2rem;
}

.menu-mobile-sub a {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--muted);
}

.menu-mobile .btn {
  margin-top: 1rem;
  width: 100%;
}

.hero {
  background: var(--hero);
  color: #fff;
  display: flex;
  align-items: flex-end;
  min-height: min(42rem, calc(100svh - var(--header)));
  position: relative;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 2rem 1.15rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(2.4rem, 8vw, 5.4rem);
  line-height: 0.95;
  margin: 0;
  letter-spacing: -0.03em;
}

.hero .lede {
  margin: 1.1rem 0 1.6rem;
  max-width: 34rem;
  color: #c5d8e7;
  font-weight: 300;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-actions .btn-cream {
  width: 100%;
}

.hero-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 31, 62, 0.98), rgba(0, 31, 62, 0.52) 44%, rgba(0, 31, 62, 0.04)),
    linear-gradient(90deg, rgba(0, 31, 62, 0.8), transparent 100%);
}


.section {
  padding: 4.2rem 0;
}

.section-light {
  background: var(--paper);
}

.intro-grid {
  display: grid;
  gap: 1.5rem;
}

.intro-grid h2,
.section h2 {
  font-family: var(--font);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.section-head {
  max-width: 40rem;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.section-head p,
.muted,
.intro-grid p {
  color: var(--muted);
}

.quote {
  border-left: 2px solid var(--gold);
  padding: 0.2rem 0 0.2rem 1rem;
  font-family: var(--font);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.3;
  color: var(--ink);
}

.repere-band {
  background: #ffffff;
  color: var(--primary-dark);
  padding: 2.5rem 0 3.2rem;
}

.reperes {
  display: grid;
  gap: 1.4rem;
  text-align: center;
}

.reperes strong {
  display: block;
  font-family: var(--font);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Apparition au défilement : blocs marqués .sr par main.js (seulement si .js-anim). */
.js-anim .sr {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-anim .sr.sr-in {
  opacity: 1;
  transform: none;
}

/* Animation des repères : active seulement quand le JS est chargé (classe .js-anim). */
.js-anim .reperes > div {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-anim .reperes > div:nth-child(2) {
  transition-delay: 0.12s;
}

.js-anim .reperes > div:nth-child(3) {
  transition-delay: 0.24s;
}

.js-anim .reperes > div:nth-child(4) {
  transition-delay: 0.36s;
}

.js-anim .reperes.is-visible > div {
  opacity: 1;
  transform: none;
}

.reperes strong::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin: 0.7rem auto 0;
  background: var(--highlight);
  border-radius: 3px;
  transform-origin: left;
}

.js-anim .reperes strong::after {
  transform: scaleX(0);
  transition: transform 0.8s ease 0.5s;
}

.js-anim .reperes.is-visible strong::after {
  transform: scaleX(1);
}

.reperes span {
  display: block;
  margin-top: 0.45rem;
  color: #41586b;
  font-size: 0.92rem;
}

.cards-expertise {
  display: grid;
  gap: 1rem;
}

.card-exp {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 16rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-exp img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transition: transform 0.6s, opacity 0.4s;
}

.card-exp:hover img {
  transform: scale(1.05);
  opacity: 0.55;
}

.card-exp .card-body {
  position: relative;
  padding: 1.3rem 1.25rem 1.4rem;
}

.card-exp small {
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.card-exp h3 {
  margin: 0.35rem 0 0.4rem;
  font-family: var(--font);
  font-size: 1.7rem;
  font-weight: 600;
}

.card-exp p {
  margin: 0;
  color: #c5d8e7;
  font-size: 0.95rem;
}

details.card-exp {
  min-height: 0;
}

details.card-exp summary {
  list-style: none;
  cursor: pointer;
}

details.card-exp summary::-webkit-details-marker {
  display: none;
}

.timeline {
  display: grid;
  gap: 0.75rem;
}

.milestone {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1rem 1.1rem;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  width: 100%;
}

.milestone strong {
  display: block;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.milestone span {
  font-family: var(--font);
  font-size: 1.35rem;
}

.milestone-detail {
  display: none;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.milestone.is-open .milestone-detail {
  display: block;
}

.vision {
  background: var(--primary-dark);
  color: #fff;
  text-align: center;
  padding: 5rem 1.25rem;
}

.vision p {
  font-family: var(--font);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.2;
  max-width: 44rem;
  margin: 0 auto;
  font-weight: 500;
}

.pub-grid,
.media-grid {
  display: grid;
  gap: 1rem;
}

.pub-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.3rem;
  border: 1px solid var(--line);
}

.pub-card time,
.chip {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.pub-card h3 {
  font-family: var(--font);
  font-size: 1.45rem;
  margin: 0.45rem 0;
}

.talk-list {
  display: grid;
  gap: 0;
}

.talk-row {
  display: grid;
  gap: 0.25rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.talk-row strong {
  font-size: 1.05rem;
}

.talk-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-band {
  background: var(--hero);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}

.contact-band h2 {
  font-family: var(--font);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.7rem;
}

.contact-band p {
  color: #c5d8e7;
  margin: 0 0 1.4rem;
}

.site-footer {
  background: var(--primary-dark);
  color: #d7e5ef;
  padding: 3.5rem 0 6.5rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-name {
  font-family: var(--font);
  font-size: 1.8rem;
  color: #fff;
  margin: 0.7rem 0 0.2rem;
}

.footer-logo {
  display: block;
  width: 12rem;
  height: auto;
  margin-bottom: 0.9rem;
}

.footer-role,
.footer-note {
  color: #a8c2d6;
  max-width: 18rem;
}

.footer-title {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
}

.footer-grid a {
  color: #c5d8e7;
  display: inline-block;
  padding: 0.22rem 0;
}

.footer-grid a:hover {
  color: var(--accent-text);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 2.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  color: #a8c2d6;
}

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

.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: #25d366;
  color: #073b20;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(7, 59, 32, 0.28);
  transition: background-color 0.2s, transform 0.2s;
}

.whatsapp-float:hover {
  background: #1fbd5a;
  transform: translateY(-2px);
}

.whatsapp-float svg {
  width: 1.9rem;
  height: 1.9rem;
  fill: currentColor;
}

.whatsapp-float:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

a.link,
.prose a,
.consent a {
  color: var(--accent-text);
}

a.link:hover,
.prose a:hover,
.consent a:hover {
  color: #7fe0b8;
}

.page-hero {
  padding: 2.5rem 0 1rem;
}

.page-hero h1 {
  font-family: var(--font);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin: 0.3rem 0 0.8rem;
  line-height: 1;
}

.prose {
  max-width: 42rem;
}

.prose p {
  color: var(--muted);
}

.portrait-block {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.4rem 0 2rem;
}

.portrait-block img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  margin: 1.2rem 0;
}

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

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.85rem 0.95rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: var(--paper);
  width: 100%;
}

.form textarea {
  min-height: 9rem;
  resize: vertical;
}

.consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--muted);
}

.consent input {
  width: auto;
  margin-top: 0.25rem;
}

.hp {
  position: absolute;
  left: -9999px;
}

.alert {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: #e7f3ea;
  color: #1d4d2e;
  margin-bottom: 1rem;
}

.alert.is-error {
  background: #fbe9e8;
  color: #7a211a;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.6rem;
}

.filters a,
.filters button {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.45rem 0.9rem;
  font: inherit;
  cursor: pointer;
}

.filters .is-on {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.9s ease forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 860px) {
  .nav-desktop,
  .btn-header {
    display: flex;
  }

  .nav-toggle,
  details.card-exp summary {
    display: none;
  }

  .hero {
    min-height: min(42rem, calc(100svh - var(--header)));
    display: flex;
    align-items: center;
  }

  .hero-actions .btn-cream {
    width: auto;
  }

  .menu-mobile {
    display: none !important;
  }

  .hero-visual {
    position: absolute;
    inset: 0;
  }

  .hero-visual::after {
    background: linear-gradient(90deg, transparent 35%, rgba(0, 31, 62, 0.08));
  }

  .hero-copy {
    width: min(52%, 42rem);
    min-height: inherit;
    margin-left: max(1.5rem, calc((100vw - var(--wrap)) / 2));
    padding: 4.6rem 1rem 5rem 0;
  }


  .intro-grid {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: start;
    gap: 4rem;
  }

  .reperes {
    grid-template-columns: repeat(4, 1fr);
    text-align: left;
  }

  .reperes strong::after {
    margin-left: 0;
  }

  .cards-expertise {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: 18rem 16rem;
  }

  .card-exp:first-child {
    grid-row: 1 / 3;
  }

  .timeline {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem;
  }

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

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

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .page-split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: start;
  }

  .portrait-block {
    margin-top: 0;
  }

  .portrait-block img {
    aspect-ratio: 4 / 5;
  }

  .form-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .header-inner,
  .wrap {
    width: min(calc(100% - 4.5rem), var(--wrap));
  }

  .hero-copy {
    padding-left: 0;
  }
}

@media print {
  .site-header,
  .site-footer,
  .whatsapp-float,
  .nav-toggle,
  .btn {
    display: none !important;
  }

  body {
    background: #fff;
    padding: 0;
    color: #000;
  }
}

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

/* Utilitaires (remplacent les anciens attributs style="" du HTML) */
.kicker-accent {
  color: var(--gold);
}

.line-item {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.line-item-plain {
  padding: 0.45rem 0;
}

.section .entry-title,
.entry-title {
  font-size: 1.8rem;
  margin: 0.35rem 0;
}

.u-narrow {
  max-width: 54rem;
}

.u-center {
  text-align: center;
}

.u-left {
  text-align: left;
}

.u-justify-start {
  justify-content: flex-start;
}

.u-mt-10 {
  margin-top: 1rem;
}

.u-mt-15 {
  margin-top: 1.5rem;
}

.u-mt-16 {
  margin-top: 1.6rem;
}

.u-mt-18 {
  margin-top: 1.8rem;
}

.u-mt-20 {
  margin-top: 2rem;
}

.u-mt-25 {
  margin-top: 2.5rem;
}

/* Grilles de cartes illustrées (publications, parcours, interventions) */
.post-grid,
.media-cards {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}

.post-card,
.media-card {
  display: flex;
  flex-direction: column;
  background: var(--primary-dark);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover,
.post-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(0, 31, 62, 0.45);
}

.post-media,
.media-card-visual {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--primary);
}

.post-media img,
.media-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.post-card:hover .post-media img {
  transform: scale(1.05);
}

.post-body,
.media-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.2rem 1.25rem 1.4rem;
  flex: 1;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.post-body h3,
.media-card-body h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0;
}

.post-body p,
.media-card-body p {
  margin: 0;
  font-size: 0.92rem;
}

.post-more {
  margin-top: auto;
  padding-top: 0.4rem;
  color: var(--accent-text);
  font-size: 0.88rem;
  font-weight: 500;
}

/* Page article */
.article-head h1 {
  max-width: 52rem;
}

.article-cover {
  margin: 0.5rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--primary);
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  max-width: 46rem;
}

.section .article-body h2 {
  font-size: 1.5rem;
  margin: 2rem 0 0.6rem;
}

.article-body ul {
  padding-left: 1.2rem;
}

.article-body li {
  margin: 0.4rem 0;
}

.article-source {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

/* Parcours : logos d'institutions */
.media-card-visual.is-logo {
  display: grid;
  place-items: center;
  background: #ffffff;
  padding: 1.5rem 2rem;
}

.media-card-visual.is-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 7rem;
  object-fit: contain;
}

.media-card-body .chip {
  margin: 0;
}

.media-card-visual:not(.is-logo) img {
  object-position: center 25%;
}

/* Lisibilité sur fond sombre */
.reperes .box span {
  color: var(--muted);
}

.form input,
.form select,
.form textarea {
  color: var(--ink);
}

.form input::placeholder,
.form textarea::placeholder {
  color: rgba(197, 216, 231, 0.6);
}

.form select option {
  color: var(--highlight-ink);
  background: #ffffff;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.contact-band .btn {
  margin: 0.3rem;
}

/* Galerie */
.gallery-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}

.gallery-tile {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--primary-dark);
  border: 1px solid var(--line);
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.6s ease;
}

.gallery-tile:hover img,
.gallery-tile:focus-visible img {
  transform: scale(1.06);
}

.gallery-label {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 0.2rem;
  padding: 2.5rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(0, 31, 62, 0.92), transparent);
  font-size: 0.92rem;
  font-weight: 500;
}

.gallery-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4rem;
  height: 4rem;
  margin: -2rem 0 0 -2rem;
  border-radius: 50%;
  background: var(--highlight);
  box-shadow: 0 8px 24px rgba(0, 31, 62, 0.45);
}

.gallery-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.65rem 0 0.65rem 1.05rem;
  border-color: transparent transparent transparent var(--highlight-ink);
}

.lightbox {
  width: min(64rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--primary-dark);
  color: var(--ink);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(0, 15, 30, 0.85);
}

.lightbox-media img {
  width: 100%;
  max-height: calc(100vh - 8rem);
  object-fit: contain;
  background: #000;
}

.lightbox-media iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.lightbox-caption {
  margin: 0;
  padding: 0.9rem 1.2rem 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.lightbox-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 31, 62, 0.85);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

/* Partage d'une publication */
.share {
  margin-top: 2rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--primary);
}

.share-title {
  margin: 0 0 0.7rem;
  font-weight: 600;
  font-size: 0.95rem;
}

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

.share-links a,
.share-links button {
  font: inherit;
  font-size: 0.86rem;
  color: var(--ink);
  background: var(--primary-dark);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.share-links a:hover,
.share-links button:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}
