/* 01. Polices locales */

@font-face {
  font-family: 'OOZ Manrope';
  src: url('assets/fonts/manrope-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: block;
}

@font-face {
  font-family: 'OOZ Fraunces';
  src: url('assets/fonts/fraunces-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
}

@font-face {
  font-family: 'OOZ Fraunces';
  src: url('assets/fonts/fraunces-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 100 900;
  font-display: block;
}

/* 02. Palette, remise à zéro et accessibilité générale */

:root {
  --ink: #101114;
  --nav-bg: var(--ink);
  --paper: #14161b;
  --mist: #191c22;
  --surface: #22262e;
  --font-body: "OOZ Manrope","Segoe UI",Arial,sans-serif;
  --font-display: "OOZ Fraunces",Georgia,serif;
  --text: #f7f7fa;
  --muted: #b7bbc6;
  --on-dark-muted: #b7bbc6;
  --accent-hover: #1d4ed8;
  --accent: #2563eb;
  --accent-light: #93b4ff;
  --line: #ffffff1f;
  --gutter: clamp(22px,5vw,88px);
  --max: 1360px;
  --card-shadow: 0 8px 24px #10111408,0 24px 48px #10111405;
  color-scheme: dark;
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height,91px);
  scrollbar-gutter: stable;
  background: var(--paper);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
}

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

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

button, a, input, summary, textarea, select {
  -webkit-tap-highlight-color: transparent;
}

button, a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
  color: inherit;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

button:disabled {
  cursor: not-allowed;
  opacity: .65;
}

em {
  font-family: var(--font-display);
  font-weight: 400;
}

[hidden] {
  display: none;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
}

h1, h2, h3, h4 {
  line-height: 1.13;
  font-weight: 600;
  letter-spacing: -.045em;
}

p {
  max-width: 75ch;
}

@media(max-width:760px) {

  :root {
    --gutter: 24px;
  }
}

@media(max-width:359px) {
  :root {
    --gutter: 19px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation: none;
    transition: none;
  }
}

::selection {
  background: #2563eb;
  color: #fff;
}

/* 03. Titres, sections et pictogrammes partagés */

.eyebrow, .section-subtitle {
  display: block;
  font-size: 13px;
  letter-spacing: .17em;
  text-transform: uppercase;
  font-weight: 650;
}

main>section:nth-of-type(even) {
  background: var(--paper);
}

.section-header {
  max-width: var(--max);
  margin: 0 auto 55px;
  text-align: center;
}

.section-subtitle {
  color: var(--accent-light);
  margin-bottom: 23px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .18em;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(34px,3.55vw,58px);
  letter-spacing: -.03em;
  line-height: 1.12;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.section-title em {
  color: var(--accent-light);
}

.section-description {
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 610px;
  margin-top: 24px;
  margin-left: auto;
  margin-right: auto;
}

.service-icon {
  height: 48px;
  width: 48px;
  margin-bottom: 32px;
  display: grid;
  place-items: center;
}

.service-icon svg {
  display: block;
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--accent-light);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reveal-title, .reveal-card, .reveal-cta {
  opacity: 1;
  transform: none;
  clip-path: none;
}

.reveals-ready .reveal-title, .reveals-ready .reveal-card, .reveals-ready .reveal-cta {
  opacity: 0;
}

.reveals-ready .reveal-title.is-visible, .reveals-ready .reveal-card.is-visible, .reveals-ready .reveal-cta.is-visible {
  opacity: 1;
}

@media(max-width:760px) {
  .section-header {
    margin-bottom: 35px;
  }

  .section-subtitle {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .section-title {
    font-size: 36px;
  }

  .section-description {
    font-size: 17px;
    margin-top: 20px;
  }

  .service-icon {
    margin-bottom: 23px;
  }
}

@media(max-width:480px) {
  .service-icon {
    margin-bottom: 20px;
  }

  .section-title {
    font-size: 34px;
  }
}

@media(max-width:359px) {
  .section-title {
    font-size: 30px;
  }
}

/* 04. Boutons et accès direct au contenu */

.skip-link {
  position: fixed;
  top: 10px;
  left: 20px;
  z-index: 200;
  padding: 12px 20px;
  transform: translateY(-180%);
  background: var(--accent);
  color: #fff;
}

.skip-link:focus {
  transform: none;
}

.btn-primary, .btn-secondary, .btn-submit-form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 54px;
  padding: 15px 25px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
  transition: background .25s,color .25s,box-shadow .3s;
  position: relative;
  border-radius: 12px;
}

.btn-primary, .btn-submit-form {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover, .btn-submit-form:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  box-shadow: 0 8px 24px #2563eb26;
}

.btn-submit-form:disabled, .btn-submit-form:disabled:hover {
  box-shadow: none;
  opacity: 1;
  background: #343a46;
  color: #c6cbd5;
  border-color: #4b5362;
}

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

.btn-secondary:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.btn-sm {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 14px;
}

.btn-submit-form {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* 05. Navigation et indicateur de lecture */

.reading-progress {
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 3px;
  z-index: 150;
  transform: scaleX(var(--progress,0));
  transform-origin: left;
  pointer-events: none;
  background: var(--accent-light);
}

.main-header {
  min-height: 91px;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  background: var(--nav-bg);
  color: #fff;
  border-bottom: 1px solid #ffffff24;
  box-shadow: 0 1px 0 #93b4ff22;
  transition: box-shadow .3s;
}

.main-header.is-scrolled {
  box-shadow: 0 8px 32px #0002;
}

.logo, .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  line-height: 1;
}

.logo img, .footer-logo img {
  width: 170px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 29px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  text-decoration: none;
  color: #b7bbc6;
}

.nav-links a:not(.btn-primary) {
  position: relative;
  padding: 10px 0;
}

.nav-links a:not(.btn-primary)::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}

.nav-links a:hover, .nav-links a[aria-current] {
  color: #fff;
}

.nav-links a:hover::after, .nav-links a[aria-current]::after {
  transform: scaleX(1);
}

.burger-menu {
  display: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--mist);
  width: 48px;
  height: 48px;
  padding: 12px;
}

.burger-menu span {
  display: block;
  height: 1px;
  margin: 5px 0;
  background: var(--text);
  transition: transform .3s,opacity .3s;
}

.burger-menu.is-active span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.burger-menu.is-active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.is-active span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links .btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  min-height: 44px;
  font-size: 15px;
}

.nav-links .btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  border-color: var(--accent-hover);
}

.footer-logo {
  color: white;
  margin-bottom: 25px;
  justify-content: center;
}

.nav-panel {
  display: contents;
}

.nav-intro, .nav-note {
  display: none;
}

html.menu-open {
  overflow: hidden;
}

@media(max-width:1100px) {
  .nav-links {
    gap: 19px;
  }
}

@media(max-width:1000px) {
  .logo img, .footer-logo img {
    width: 148px;
  }

  .main-header {
    min-height: 76px;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-wrap: wrap;
    gap: 0;
  }

  .main-header>.main-navigation {
    position: fixed;
    top: var(--header-height,76px);
    left: 0;
    right: 0;
    width: 100%;
    height: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: clip;
    background: var(--ink);
    border-top: 1px solid var(--line);
    box-shadow: 0 20px 40px #0003;
    transition: height .44s cubic-bezier(.22,1,.36,1), visibility 0s .44s;
  }

  .main-navigation.is-active {
    height: calc(100dvh - var(--header-height,76px));
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .nav-panel {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - var(--header-height,76px));
    max-width: 600px;
    margin: 0 auto;
    padding: 24px var(--gutter) max(24px,env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-intro {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    color: var(--accent-light);
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: .16em;
    text-transform: uppercase;
  }

  .nav-intro span:last-child {
    color: var(--muted);
  }

  .logo img, .footer-logo img {
    width: 150px;
  }

  .burger-menu {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    text-align: left;
  }

  .nav-links li:not(:last-child) {
    border-bottom: 1px solid var(--line);
  }

  .nav-links li:last-child {
    margin-top: auto;
    padding-top: 24px;
  }

  .nav-links a:not(.btn-primary) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: clamp(52px,8.5dvh,72px);
    padding: 14px 0;
    font-size: clamp(21px,4vw,26px);
    font-weight: 500;
    line-height: 1.3;
    color: var(--text);
  }

  .nav-links a:not(.btn-primary)::after {
    content: "↗" / "";
    position: static;
    height: auto;
    background: none;
    color: var(--accent-light);
    font-size: 20px;
    transform: none;
    transition: none;
  }

  .nav-links a[aria-current] {
    color: var(--accent-light);
  }

  .nav-links .btn-primary {
    display: flex;
    justify-content: center;
    font-size: 16px;
    min-height: 56px;
    padding: 16px;
  }

  .nav-note {
    display: block;
    margin-top: 12px;
    max-width: none;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
  }

  .nav-links .btn-primary::after {
    display: none;
  }

  html:not(.has-js) .burger-menu {
    display: none;
  }

  html:not(.has-js) .main-navigation {
    position: static;
    visibility: visible;
    pointer-events: auto;
    height: auto;
    overflow: visible;
    border: 0;
    box-shadow: none;
    transition: none;
  }

  html:not(.has-js) .nav-panel {
    display: contents;
  }

  html:not(.has-js) .nav-intro, html:not(.has-js) .nav-note {
    display: none;
  }

  html:not(.has-js) .nav-links {
    flex-flow: row wrap;
    padding: 20px 0 0;
    gap: 12px;
  }

  html:not(.has-js) .nav-links li {
    border: 0;
    margin: 0;
    padding: 0;
  }

  html:not(.has-js) .nav-links a:not(.btn-primary) {
    min-height: 44px;
    font-size: 15px;
    padding: 4px 0;
  }

  html:not(.has-js) .nav-links .btn-primary {
    padding: 8px 12px;
    margin: 0;
  }

  html:not(.has-js) .nav-links a::after {
    display: none;
  }
}

@media(prefers-reduced-motion:reduce) {
  .main-header>.main-navigation, .burger-menu span {
    transition: none;
  }
}



/* Espacement et accessibilité communs à toutes les pages. */

main>section:not(.hero) {
  padding: 110px var(--gutter);
}

@media(prefers-reduced-motion:reduce) {
  .reveals-ready .reveal-title, .reveals-ready .reveal-card, .reveals-ready .reveal-cta, .has-js .hero-eyebrow, .has-js .hero .hero-title, .has-js .hero-lead, .has-js .hero-cta {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media(max-width:760px) {

  main>section:not(.hero) {
    padding: 75px var(--gutter);
  }
}

/* 16. Pied de page et retour en haut */

.back-to-top-section {
  grid-column: 1/-1;
  text-align: center;
}

.back-to-top-link {
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.back-to-top-arrow {
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.main-footer {
  padding: 58px var(--gutter) 35px;
  background: var(--ink);
  border-top: 1px solid #ffffff24;
  color: #b7bbc6;
}

.main-footer>div {
  max-width: var(--max);
  margin: auto;
  text-align: center;
}

.main-footer p {
  font-size: 15px;
  max-width: 530px;
  margin-left: auto;
  margin-right: auto;
}

.main-footer .footer-description {
  max-width: none;
}

.footer-links {
  display: flex;
  margin-top: 25px;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 18px;
  color: #93b4ff;
  font-size: 15px;
  text-decoration: none;
}

.footer-social svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.footer-social:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-registration {
  margin-top: 16px;
}

.copyright {
  border-top: 1px solid #ffffff18;
  margin-top: 32px;
  padding-top: 22px;
  font-size: 13px;
}

@media(max-width:760px) {
  .main-footer {
    padding-top: 45px;
  }
}

@media(max-width:480px) {
  .footer-links {
    font-size: 14px;
  }
}

.main-footer .copyright {
  max-width: none;
}



/* Cartes et liens des guides communs à l’accueil et aux articles. */
.guide-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: start;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  text-decoration: none;
  transition: border-color .2s,background-color .2s;
}

.guide-link:hover, .guide-link:focus-visible {
  border-color: var(--accent-light);
  background: var(--surface);
}

.guide-link-label {
  color: var(--accent-light);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.guide-link h3 {
  margin: 16px 0 12px;
  font-family: var(--font-display);
  font-weight: 450;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.guide-link p {
  max-width: 52ch;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.guide-link-action {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin-top: auto;
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 600;
}

.footer-guides {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin: 22px auto;
  padding-inline: 20px;
  color: var(--accent-light);
  font-size: 12px;
}
