/* Métiers du numérique — charte dérivée du logo (couleurs officielles) */
:root {
  /* Palette logo MdN */
  --brand-blue: #1d71b8;
  --brand-red: #e30613;
  --brand-orange: #d95b27;
  --brand-yellow: #fdb913;
  --brand-lime: #c4d600;
  --brand-teal: #00a685;
  --brand-magenta: #e4007f;

  --color-bg: #f4f7fb;
  --color-surface: #ffffff;
  --color-text: #000000;
  --color-muted: #4a5058;
  --color-accent: var(--brand-blue);
  --color-accent-soft: #e3f0fa;
  --color-accent-teal-soft: #dff5f0;
  --color-border: #dde3eb;
  /* Accueil : dégradé chaud (rouge / orange / jaune du logo) */
  --color-hero-gradient: linear-gradient(
    125deg,
    #3a0c10 0%,
    #7a1018 14%,
    var(--brand-red) 34%,
    #c94a1e 52%,
    var(--brand-orange) 70%,
    #e88f12 86%,
    var(--brand-yellow) 100%
  );
  --color-spectrum: linear-gradient(
    90deg,
    var(--brand-blue),
    var(--brand-red),
    var(--brand-orange),
    var(--brand-yellow),
    var(--brand-lime),
    var(--brand-teal),
    var(--brand-magenta)
  );
  --font-sans: "Montserrat", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(29, 113, 184, 0.07);
  --shadow-md: 0 12px 40px rgba(29, 113, 184, 0.12);
  --header-h: 72px;
  --max-w: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max-w));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2.5rem, 720px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 247, 251, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--color-spectrum);
}

.site-header__inner {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.logo:hover {
  text-decoration: none;
}

.logo__img {
  display: block;
  height: clamp(38px, 10vw, 52px);
  width: auto;
  max-width: min(300px, 62vw);
  object-fit: contain;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
  position: relative;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle__bar {
  top: 50%;
  margin-top: -1px;
}

.nav-toggle__bar::before {
  top: -7px;
}

.nav-toggle__bar::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
  transform: translate(-50%, 7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
  transform: translate(-50%, -7px) rotate(-45deg);
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
}

.nav__list a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-text);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav__list a:hover,
.nav__list a:focus-visible {
  border-bottom-color: var(--color-accent);
}

@media (max-width: 880px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s var(--ease), opacity 0.25s;
  }

  .nav.is-open {
    max-height: 70vh;
    opacity: 1;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0;
  }

  .nav__list a {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--color-border);
  }
}

/* Hero (page d’accueil) — dégradé chaud + léger halo doré */
.hero {
  position: relative;
  padding: 3rem 0 3.5rem;
  color: #fff8f4;
  background-color: #3a0c10;
  background-image: radial-gradient(
      ellipse 90% 70% at 88% 12%,
      rgba(253, 185, 19, 0.38) 0%,
      transparent 52%
    ),
    radial-gradient(ellipse 55% 45% at 12% 88%, rgba(227, 6, 19, 0.35) 0%, transparent 50%),
    var(--color-hero-gradient);
  background-repeat: no-repeat;
}

.hero__grid {
  width: min(100% - 2.5rem, var(--max-w));
  margin-inline: auto;
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    padding-top: 0.5rem;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.85;
  margin: 0 0 0.75rem;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.5vw, 3.35rem);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero__title em {
  font-style: italic;
  opacity: 0.95;
}

.hero__lead {
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  max-width: 36ch;
  opacity: 0.95;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.hero .btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn--primary {
  background: #fff;
  color: #052c4d;
}

.btn--primary:hover {
  background: var(--color-accent-soft);
}

.hero .btn--primary {
  color: #2a0a0a;
}

.hero .btn--primary:hover {
  background: #fff5eb;
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.card-highlight__title {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.hero__card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.35rem;
  backdrop-filter: blur(8px);
}

.card-highlight__date {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.card-highlight__time {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
}

.card-highlight__place {
  margin: 0 0 1rem;
  font-weight: 600;
}

.card-highlight__note,
.card-highlight__meta {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.92;
}

.card-highlight__meta {
  margin-bottom: 0;
  font-size: 0.875rem;
}

/* Pages intérieures */
.page-hero {
  padding: 2.25rem 0 2.5rem;
  background: linear-gradient(180deg, var(--color-accent-soft) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

.page-hero__crumb {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.page-hero__crumb a {
  text-decoration: none;
  color: var(--color-muted);
}

.page-hero__crumb a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.page-hero__lead {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 52ch;
}

.page-hero__next {
  margin: 2.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section__intro--after-page-hero {
  margin-top: 0;
}

.subsection-title--tight {
  margin-top: 1.25rem;
}

.nav__list a[aria-current="page"] {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* Sections */
.section {
  padding: 3.25rem 0;
}

.section--alt {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section__intro {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 60ch;
  margin: 0 0 1.5rem;
}

.subsection-title {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
}

.muted {
  color: var(--color-muted);
}

.small {
  font-size: 0.9rem;
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-list li {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
}

.pill-list li:nth-child(3n + 1) {
  background: var(--color-accent-soft);
  color: var(--brand-blue);
}

.pill-list li:nth-child(3n + 2) {
  background: #fdf0e6;
  color: var(--brand-orange);
}

.pill-list li:nth-child(3n) {
  background: var(--color-accent-teal-soft);
  color: var(--brand-teal);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .feature-list {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.feature-list__icon {
  font-size: 0.85rem;
  line-height: 1.5;
}

.feature-list li:nth-child(5n + 1) .feature-list__icon {
  color: var(--brand-blue);
}

.feature-list li:nth-child(5n + 2) .feature-list__icon {
  color: var(--brand-red);
}

.feature-list li:nth-child(5n + 3) .feature-list__icon {
  color: var(--brand-orange);
}

.feature-list li:nth-child(5n + 4) .feature-list__icon {
  color: var(--brand-teal);
}

.feature-list li:nth-child(5n + 5) .feature-list__icon {
  color: var(--brand-magenta);
}

.dates-grid {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.date-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.date-card {
  padding: 1rem 1.25rem;
  background: var(--color-accent-teal-soft);
  border-radius: var(--radius-md);
  min-width: 10rem;
  border: 1px solid rgba(0, 166, 133, 0.2);
}

.date-card time {
  font-weight: 700;
  color: var(--brand-teal);
  display: block;
  margin-bottom: 0.25rem;
}

.callout {
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--brand-red);
  background: #fff5f5;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 2rem 0 0;
}

.link-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .link-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.link-card:hover {
  text-decoration: none;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.link-card__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.link-card__title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
}

.link-card__hint {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: auto;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.audiences {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .audiences {
    grid-template-columns: 1fr 1fr;
  }
}

.audience-card {
  padding: 1.25rem 1.35rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.audience-card h3,
.audience-card h4 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.audience-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--color-muted);
}

.audience-card li {
  margin-bottom: 0.35rem;
}

.pricing {
  margin: 1.5rem 0 0;
}

.pricing__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
}

.pricing__row dt {
  font-weight: 500;
  margin: 0;
}

.pricing__row dd {
  margin: 0;
  font-weight: 700;
  color: var(--color-accent);
}

.contact-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.contact-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.contact-card p {
  margin: 0;
}

/* Footer */
.site-footer {
  padding: 2.75rem 0 0;
  border-top: 1px solid var(--color-border);
  background: linear-gradient(180deg, #e8f0f8 0%, #dfe8f2 100%);
  font-size: 0.9375rem;
}

.site-footer__grid {
  display: grid;
  gap: 2rem 2.5rem;
  padding-bottom: 2.25rem;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.1fr 1fr 1fr;
    align-items: start;
  }
}

.site-footer__name {
  margin: 0 0 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.site-footer__tagline {
  margin: 0;
  line-height: 1.55;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.site-footer__heading {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.site-footer__address {
  margin: 0;
  font-style: normal;
  line-height: 1.65;
  color: var(--color-text);
}

.site-footer__address-line {
  font-weight: 600;
}

.site-footer__hint {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.site-footer__contact {
  margin: 0;
}

.site-footer__contact-row {
  margin-bottom: 1rem;
}

.site-footer__contact-row:last-of-type {
  margin-bottom: 0;
}

.site-footer__contact dt {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.site-footer__contact dd {
  margin: 0;
  line-height: 1.5;
}

.site-footer__contact a {
  font-weight: 600;
  text-decoration: none;
}

.site-footer__contact a:hover {
  text-decoration: underline;
}

.site-footer__more {
  margin: 1.15rem 0 0;
  font-size: 0.875rem;
}

.site-footer__more a {
  font-weight: 600;
}

.site-footer__bottom {
  padding: 1.15rem 0 1.75rem;
  border-top: 1px solid rgba(29, 113, 184, 0.15);
}

.site-footer__copyright {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
}
