/*
 * NemrodW — feuille de style du site
 *
 *  1. Jetons
 *  2. Base
 *  3. En-tête et navigation
 *  4. Boutons et liens
 *  5. Composants partagés
 *  6. Mouvement
 *  7. Accueil
 *  8. Pages intérieures
 *  9. Couvertures d'actualités
 * 10. Articles, mentions légales et formulaires
 * 11. Pied de page
 */


/* ==========================================================================
   1. Jetons
   ========================================================================== */

:root {
  /* Couleurs de la marque */
  --nw-ink: #162e46;
  --nw-muted: #466077;
  --nw-blue: #1a8fcf;
  --nw-deep: #1577b0;
  --nw-sky: #a0d8ef;
  --nw-accent: #dff3ff;
  --nw-mist: #eff7fc;
  --nw-line: #d6e4ee;
  --nw-on-blue: #e8f6ff;

  /* Fonds bleus */
  --nw-grad: linear-gradient(120deg, #1580c0 0%, #1a8fcf 45%, #a0d8ef 100%);
  --nw-grad-panel: linear-gradient(120deg, #1580c0 0%, #1a8fcf 55%, #5fb6e3 100%);
  --nw-banner: radial-gradient(ellipse at 80% 20%, #ffffff38 0%, transparent 55%), var(--nw-grad);

  /* Formes */
  --nw-border: 1px solid var(--nw-line);
  --nw-pill: 999px;
  --nw-round-xl: 2rem;
  --nw-round-lg: 1.75rem;
  --nw-round-md: 1.5rem;
  --nw-round-sm: 1.25rem;

  /* Mise en page */
  --nw-gutter: clamp(1.25rem, 5vw, 5rem);
  --nw-header-h: 78px;

  /* Typographie et mouvement */
  --nw-sans: "Open Sans", Arial, sans-serif;
  --nw-ease: cubic-bezier(.2, .7, .2, 1);
}


/* ==========================================================================
   2. Base
   ========================================================================== */

/* Open Sans variable, hébergée sur le site (aucun appel à Google Fonts). */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/fonts/open-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/fonts/open-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("/fonts/open-sans-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("/fonts/open-sans-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

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

/* Texte plus compact sur mobile (repris de l'ancien thème, sur lequel la refonte a été calée). */
@media (max-width: 767.98px) {
  html {
    font-size: .87891rem;
  }
}

body[data-nemrod] {
  margin: 0;
  background: #fff;
  color: var(--nw-ink);
  font-family: var(--nw-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

:where(h1, h2, h3, h4, h5, h6) {
  margin: 0 0 .5rem;
  font-weight: 650;
}

:where(p, ul, ol, dl, address) {
  margin: 0 0 1rem;
}

:where(address) {
  font-style: normal;
}

:where(figure, blockquote) {
  margin: 0;
}

:where(img, svg, video) {
  vertical-align: middle;
}

:where(img) {
  max-width: 100%;
  height: auto;
}

:where(a) {
  color: var(--nw-deep);
  text-decoration: none;
}

:where(button, input, select, textarea) {
  margin: 0;
  font: inherit;
  color: inherit;
}

:where(button, [type="submit"]) {
  cursor: pointer;
}

[data-nemrod] :is(h1, h2, h3, h4, h5, h6) {
  color: inherit;
  font-family: inherit;
  letter-spacing: -.035em;
  line-height: 1.1;
}

[data-nemrod] :focus-visible {
  outline: 3px solid var(--nw-blue);
  outline-offset: 4px;
}

:is(.nw-hero, .nw-cta, .nw-card) :focus-visible {
  outline-color: var(--nw-accent);
}

/* Les listes à classe nw-* sont des listes de mise en page. */
:where([data-nemrod] main) :where(ul, ol)[class^="nw-"] {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nw-shell {
  width: min(100%, 1320px);
  margin-inline: auto;
  padding-inline: var(--nw-gutter);
}

.nw-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.nw-skip {
  position: absolute;
  z-index: 50;
  top: .5rem;
  left: .5rem;
  padding: .65rem 1rem;
  transform: translateY(-180%);
  background: var(--nw-accent);
  color: var(--nw-ink);
}

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


/* ==========================================================================
   3. En-tête et navigation
   ========================================================================== */

.nw-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: var(--nw-border);
  background: #ffffffd9;
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  transition: background-color .35s, border-color .35s, box-shadow .35s;
}

.nw-header[data-scrolled] {
  box-shadow: 0 10px 30px #1a8fcf14;
}

.nw-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: var(--nw-header-h);
}

.nw-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  width: fit-content;
}

.nw-brand img {
  width: clamp(112px, 12vw, 150px);
  height: auto;
}

.nw-logo-dark {
  display: var(--nw-logo-dark, block);
}

.nw-logo-light {
  display: var(--nw-logo-light, none);
}

.nw-nav {
  display: flex;
  align-items: center;
  gap: clamp(.55rem, 1.3vw, 1.3rem);
  font-size: .87rem;
  font-weight: 650;
}

/* Liens de premier niveau (le sous-menu a son propre style) */
.nw-nav > a:not(.nw-button),
.nw-nav-group > a {
  position: relative;
  display: inline-block;
  padding-block: .6rem;
  color: var(--nw-header-link, var(--nw-ink));
}

/* Soulignement animé des liens principaux */
.nw-nav > a:not(.nw-button)::after,
.nw-nav-group > a::after {
  content: "";
  position: absolute;
  inset: auto 0 .35rem;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: currentColor;
  transition: transform .35s var(--nw-ease);
}

.nw-nav > a:not(.nw-button):hover::after,
.nw-nav-group > a:hover::after,
.nw-nav [aria-current="page"]:not(.nw-button)::after {
  transform: scaleX(1);
}

.nw-nav-group {
  position: relative;
  display: flex;
  align-items: center;
  gap: .12rem;
}

.nw-nav-group summary {
  display: grid;
  place-items: center;
  width: 1.7rem;
  min-height: 2rem;
  color: var(--nw-header-caret, var(--nw-deep));
  list-style: none;
  cursor: pointer;
}

.nw-nav-group summary::-webkit-details-marker {
  display: none;
}

.nw-nav-group summary span {
  transition: transform .25s var(--nw-ease);
}

.nw-nav-group details[open] summary span {
  transform: rotate(180deg);
}

.nw-nav-topics {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1;
  display: grid;
  width: max-content;
  min-width: 13rem;
  padding: .5rem;
  border: var(--nw-border);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 18px 40px #1a8fcf24;
  animation: nw-drop .25s var(--nw-ease);
}

.nw-nav-topics a {
  padding: .5rem .75rem;
  border-radius: .6rem;
  color: var(--nw-ink);
}

.nw-nav-topics a:hover {
  background: var(--nw-mist);
}

.nw-menu {
  display: none;
  padding: .5rem .9rem;
  border: 1px solid var(--nw-header-outline, var(--nw-line));
  border-radius: var(--nw-pill);
  background: transparent;
  color: var(--nw-header-link, var(--nw-ink));
  font: inherit;
  cursor: pointer;
}

.nw-menu[hidden] {
  display: none;
}

/* Accueil : l'en-tête flotte, transparent, sur le hero tant qu'on n'a pas défilé. */
body[data-home] .nw-header {
  position: fixed;
  inset: 0 0 auto;
}

html[data-js] body[data-home] .nw-header:not([data-scrolled], [data-open]) {
  --nw-header-link: #fff;
  --nw-header-caret: var(--nw-accent);
  --nw-header-outline: #ffffff70;
  --nw-logo-dark: none;
  --nw-logo-light: block;
  border-color: transparent;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-js] body[data-home] .nw-header:not([data-scrolled], [data-open]) .nw-nav > .nw-button {
  background: var(--nw-accent);
  color: var(--nw-deep);
}

@media (max-width: 1100px) {
  :root {
    --nw-header-h: 66px;
  }

  .nw-header-inner {
    flex-wrap: wrap;
    gap: .5rem;
    padding-block: .5rem;
  }

  .nw-menu {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
  }

  .nw-nav {
    flex-wrap: wrap;
    width: 100%;
    padding-bottom: .5rem;
  }

  .nw-menu:not([hidden])[aria-expanded="false"] + .nw-nav {
    display: none;
  }

  .nw-menu[aria-expanded="true"] + .nw-nav {
    display: grid;
    gap: .15rem;
  }

  .nw-nav .nw-button {
    margin-top: .35rem;
  }

  .nw-nav-group {
    display: block;
  }

  .nw-nav-group summary {
    position: absolute;
    top: .35rem;
    right: 0;
  }

  .nw-nav-topics {
    position: static;
    width: auto;
    border: 0;
    box-shadow: none;
  }
}


/* ==========================================================================
   4. Boutons et liens
   ========================================================================== */

.nw-button,
.nw-text-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  width: fit-content;
  font-size: .9rem;
  font-weight: 700;
}

.nw-button {
  padding: .72rem 1.15rem;
  border-radius: var(--nw-pill);
  transition: background-color .25s, color .25s, box-shadow .25s, transform .25s var(--nw-ease);
}

.nw-button:hover {
  transform: translateY(-2px);
}

.nw-button-lg {
  padding: .95rem 1.5rem;
  font-size: 1rem;
}

.nw-button-dark {
  background: var(--nw-blue);
  color: #fff;
}

.nw-button-dark:hover {
  background: var(--nw-deep);
  color: #fff;
  box-shadow: 0 12px 26px #1a8fcf40;
}

.nw-button-accent {
  background: var(--nw-accent);
  color: var(--nw-deep);
}

.nw-button-accent:hover {
  background: #fff;
  color: var(--nw-deep);
  box-shadow: 0 14px 34px #0d5d8f55;
}

/* Les boutons-formulaires héritent du style des liens-boutons. */
.nw-form button,
.nw-newsletter-form button {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.nw-text-link {
  padding-block: .3rem;
  border-bottom: 1px solid #ffffff55;
  color: inherit;
  transition: border-color .25s, gap .25s var(--nw-ease);
}

.nw-text-link:hover {
  gap: 1rem;
  border-color: currentColor;
  color: inherit;
}

.nw-text-link-dark {
  border-color: var(--nw-line);
  color: var(--nw-deep);
}

.nw-text-link-dark:hover {
  color: var(--nw-deep);
}


/* ==========================================================================
   5. Composants partagés
   ========================================================================== */

/* Icônes SVG au trait */
.nw-icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Sur-titre avec pastille */
.nw-eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: fit-content;
  margin: 0 0 1.1rem;
  color: var(--nw-deep);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nw-eyebrow::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: currentColor;
}

.nw-eyebrow-light {
  padding: .45rem .95rem;
  border: 1px solid #ffffff3d;
  border-radius: var(--nw-pill);
  background: #ffffff14;
  color: var(--nw-on-blue);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: nw-arrive .6s both;
}

.nw-eyebrow-light::before {
  background: var(--nw-sky);
  box-shadow: 0 0 0 0 #7fd3ff99;
  animation: nw-ping 2.2s infinite;
}

/* Étiquette */
.nw-tag {
  padding: .2rem .7rem;
  border: 1px solid #ffffff55;
  border-radius: var(--nw-pill);
  background: #ffffff1c;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nw-tag-dark {
  border-color: var(--nw-line);
  background: var(--nw-accent);
  color: var(--nw-deep);
}

/* Liste à coches */
.nw-checklist {
  display: grid;
  gap: .65rem;
}

.nw-checklist li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
}

.nw-checklist .nw-icon {
  width: 1.45rem;
  height: 1.45rem;
  margin-top: .05rem;
  padding: .28rem;
  border-radius: 50%;
  background: var(--nw-accent);
  color: var(--nw-deep);
  stroke-width: 2.6;
}

.nw-checklist-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
}

/* Pastilles */
.nw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: .75rem 0 1.5rem;
}

.nw-chips li {
  padding: .4rem .85rem;
  border-radius: var(--nw-pill);
  background: var(--nw-deep);
  color: #fff;
  font-size: .85rem;
  font-weight: 650;
}

.nw-chips-light li {
  border: var(--nw-border);
  background: #fff;
  color: var(--nw-ink);
}

/* Blocs dépliables */
:where([data-nemrod] main) details > summary {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--nw-deep);
  font-size: .9rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

:where([data-nemrod] main) details > summary::-webkit-details-marker {
  display: none;
}

:where([data-nemrod] main) details > summary .nw-icon {
  transition: transform .3s var(--nw-ease);
}

:where([data-nemrod] main) details[open] > summary .nw-icon {
  transform: rotate(45deg);
}

/* Bandeaux bleus : hero, en-têtes de page, appel à l'action */
.nw-hero,
.nw-page-hero,
.nw-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--nw-banner);
  color: #fff;
}

/* Trame de points discrète */
.nw-hero::before,
.nw-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(#ffffff2e 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 40%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 80% at 70% 40%, #000 20%, transparent 78%);
}

/* Halos lumineux */
.nw-hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.nw-hero-glow i {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  animation: nw-drift 16s ease-in-out infinite alternate;
}

.nw-hero-glow i:first-child {
  top: -18%;
  right: 4%;
  width: 46vw;
  height: 46vw;
  background: #4fb8f066;
}

.nw-hero-glow i:last-child {
  bottom: -30%;
  left: -8%;
  width: 36vw;
  height: 36vw;
  background: #7fd3ff2e;
  animation-duration: 22s;
  animation-direction: alternate-reverse;
}

/* Appel à l'action */
.nw-cta-wrap {
  padding-block: clamp(2rem, 4vw, 3rem);
}

.nw-cta {
  display: grid;
  justify-items: start;
  gap: 1rem;
  padding: clamp(2.25rem, 6vw, 5.5rem);
  border-radius: var(--nw-round-xl);
}

.nw-cta h2 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 650;
  letter-spacing: -.06em;
  line-height: 1;
  text-wrap: balance;
}

.nw-cta-compact h2 {
  max-width: 20ch;
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
}

.nw-cta p {
  max-width: 42ch;
  margin: 0 0 .75rem;
  color: var(--nw-on-blue);
  font-size: 1.1rem;
}

.nw-cta-rings {
  position: absolute;
  top: 50%;
  right: -14%;
  z-index: -1;
  width: min(70vw, 680px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 26px, #ffffff24 26px 27.5px);
  -webkit-mask-image: radial-gradient(circle, #000 15%, transparent 68%);
  mask-image: radial-gradient(circle, #000 15%, transparent 68%);
  animation: nw-breathe 9s ease-in-out infinite alternate;
}

@media (max-width: 700px) {
  .nw-eyebrow-light {
    font-size: .68rem;
    letter-spacing: .08em;
  }

  .nw-checklist-grid {
    grid-template-columns: 1fr;
  }

  .nw-cta-rings {
    right: -40%;
  }
}


/* ==========================================================================
   6. Mouvement
   ========================================================================== */

@keyframes nw-arrive {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes nw-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@keyframes nw-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-4vw, 5vw) scale(1.18); }
}

@keyframes nw-ping {
  70%, 100% { box-shadow: 0 0 0 .55rem #7fd3ff00; }
}

@keyframes nw-breathe {
  from { transform: translateY(-50%) scale(.92); }
  to { transform: translateY(-50%) scale(1.08); }
}

@keyframes nw-show {
  to { opacity: 1; }
}

/* Apparition au défilement (activée par le script quand le mouvement est permis) */
[data-nw-ready] [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s var(--nw-ease), transform .9s var(--nw-ease);
}

[data-nw-ready] [data-reveal].nw-revealed {
  opacity: 1;
  transform: none;
}

[data-nw-ready] li[data-reveal]:nth-child(2) {
  transition-delay: .1s;
}

[data-nw-ready] li[data-reveal]:nth-child(3) {
  transition-delay: .2s;
}

@media (prefers-reduced-motion: reduce) {
  [data-nemrod] *,
  [data-nemrod] *::before,
  [data-nemrod] *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


/* ==========================================================================
   7. Accueil
   ========================================================================== */

/* Hero */
.nw-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  min-height: clamp(620px, 88svh, 820px);
  padding-block: calc(var(--nw-header-h) + clamp(1.5rem, 4vw, 3.5rem)) clamp(2.5rem, 5vw, 4.5rem);
}

.nw-hero h1 {
  margin: 0;
  font-size: clamp(2.75rem, 5.7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1;
  text-wrap: balance;
}

.nw-word {
  display: inline-block;
  animation: nw-arrive .7s var(--nw-ease) both;
  animation-delay: calc(.15s + var(--i) * .08s);
}

.nw-hero-description {
  max-width: 46ch;
  margin: 1.5rem 0 2rem;
  color: var(--nw-on-blue);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  animation: nw-arrive .6s .75s both;
}

.nw-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem 1.6rem;
  animation: nw-arrive .6s .9s both;
}

@media (max-width: 1100px) {
  .nw-hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .nw-hero-inner {
    gap: 2rem;
  }

  .nw-hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }
}

/* Surface de réponse 3D (dessinée par /scripts/surface.js) */
.nw-surface {
  margin: 0;
  animation: nw-arrive .9s .2s var(--nw-ease) both;
}

.nw-surface svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Masquée jusqu'au premier rendu du script, avec un repli si celui-ci échoue. */
html[data-js] .nw-surface:not([data-ready]) svg {
  opacity: 0;
  animation: nw-show 0s 2.5s forwards;
}

.nw-surface polygon:not([class]) {
  stroke: #ffffff8c;
  stroke-width: .6;
  stroke-linejoin: round;
}

.nw-surface-shadow {
  fill: #0d5d8f;
  opacity: .18;
  filter: blur(18px);
}

.nw-surface-floor {
  fill: #ffffff10;
  stroke: #ffffff40;
}

.nw-surface-wall {
  fill: #0f6aa3;
  fill-opacity: .55;
  stroke: #ffffff8c;
  stroke-width: .8;
  stroke-linejoin: round;
}

.nw-surface-slice {
  stroke: #ffffff2e;
  stroke-width: .6;
}

.nw-surface-iso {
  fill: none;
  stroke: #fff;
  stroke-width: 1.4;
  stroke-linecap: round;
}

.nw-surface-run {
  fill: #fff;
  stroke: var(--nw-deep);
  stroke-width: 1.6;
}

.nw-surface-ring {
  fill: none;
  stroke: #fff;
  stroke-opacity: .75;
  stroke-width: 1.5;
}

.nw-surface-optimum {
  fill: #fff;
  stroke: var(--nw-deep);
  stroke-width: 3;
}

.nw-surface-tag {
  fill: #fff;
}

.nw-surface text {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
}

.nw-surface-tag + text {
  fill: var(--nw-deep);
  text-anchor: middle;
}

.nw-surface-axis {
  fill: #fff;
  fill-opacity: .9;
  letter-spacing: .06em;
  text-anchor: middle;
}

/* Offres */
.nw-offers {
  padding-block: clamp(4rem, 9vw, 8.5rem) clamp(2rem, 4vw, 3rem);
}

.nw-section-intro {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: end;
  gap: 1rem 3rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.nw-section-intro h2,
.nw-news h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  font-weight: 650;
  letter-spacing: -.06em;
  line-height: 1;
}

.nw-section-intro > p {
  max-width: 44ch;
  margin: 0;
  color: var(--nw-muted);
  font-size: 1.05rem;
}

.nw-bento {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: repeat(2, minmax(260px, 1fr));
  gap: clamp(.9rem, 1.6vw, 1.4rem);
}

.nw-card-lg {
  grid-row: 1 / 3;
}

.nw-card a {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  height: 100%;
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--nw-round-lg);
  background: var(--nw-blue);
  color: #fff;
}

.nw-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--nw-ease);
}

.nw-card a:hover img {
  transform: scale(1.07);
}

/* Voile bleu, plus dense là où se trouve le texte */
.nw-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, #0e6aa3f5 0%, #1580c0e6 34%, #1a8fcf73 62%, #1a8fcf00 85%);
}

.nw-card-body {
  display: grid;
  justify-items: start;
  gap: .55rem;
  padding: clamp(1.25rem, 2.6vw, 2.25rem);
  text-shadow: 0 1px 12px #0d5d8f80;
}

.nw-card h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 650;
}

.nw-card-lg h3 {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  letter-spacing: -.055em;
}

.nw-card p {
  max-width: 44ch;
  margin: 0;
}

/* Dernières actualités */
.nw-news {
  padding-block: clamp(3rem, 7vw, 6.5rem) clamp(2rem, 4vw, 3rem);
}

.nw-news-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.nw-news-head h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.nw-news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.nw-news-list a {
  display: block;
  color: var(--nw-ink);
}

.nw-news-list time {
  display: block;
  color: var(--nw-deep);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.nw-news-list h3 {
  margin: .3rem 0 0;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 650;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.nw-news-list a:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
}

/* Lettre d'information */
.nw-newsletter-wrap {
  padding-block: clamp(2rem, 4vw, 3rem) clamp(4rem, 8vw, 7rem);
}

.nw-newsletter {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 1.5rem 3rem;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  border-radius: var(--nw-round-xl);
  background: var(--nw-mist);
}

.nw-newsletter h2 {
  margin: 0 0 .5rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 650;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.nw-newsletter p {
  margin: 0;
  color: var(--nw-muted);
}

.nw-newsletter-form {
  display: flex;
  gap: .4rem;
  padding: .4rem;
  border: var(--nw-border);
  border-radius: var(--nw-pill);
  background: #fff;
  transition: box-shadow .25s, border-color .25s;
}

.nw-newsletter-form:focus-within {
  border-color: var(--nw-blue);
  box-shadow: 0 0 0 4px #1a8fcf26;
}

.nw-newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: auto;
  padding: .6rem 1rem;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  color: var(--nw-ink);
  font: inherit;
}

@media (max-width: 860px) {
  .nw-section-intro,
  .nw-newsletter {
    grid-template-columns: 1fr;
  }

  .nw-bento {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .nw-card-lg {
    grid-row: auto;
  }

  .nw-card-lg a {
    min-height: 380px;
  }

  .nw-news-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nw-newsletter-form button {
    padding-inline: 1rem;
  }
}


/* ==========================================================================
   8. Pages intérieures
   ========================================================================== */

/* En-tête de page */
.nw-page-hero {
  padding-block: clamp(4rem, 9vw, 7.5rem) clamp(3rem, 6vw, 5rem);
}

.nw-page-hero h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1;
  text-wrap: balance;
  animation: nw-arrive .7s .08s var(--nw-ease) both;
}

.nw-page-lead {
  max-width: 58ch;
  margin: 1.25rem 0 0;
  color: var(--nw-on-blue);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  animation: nw-arrive .7s .16s var(--nw-ease) both;
}

.nw-page-toc {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2rem;
  animation: nw-arrive .7s .24s var(--nw-ease) both;
}

.nw-page-toc a {
  padding: .45rem 1rem;
  border: 1px solid #ffffff40;
  border-radius: var(--nw-pill);
  background: #ffffff12;
  color: #fff;
  font-size: .85rem;
  font-weight: 650;
  transition: background-color .25s, color .25s;
}

.nw-page-toc a:hover {
  background: #fff;
  color: var(--nw-deep);
}

/* Sections */
.nw-section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.nw-section-flush {
  padding-top: 0;
}

.nw-section-tint {
  background: var(--nw-mist);
}

.nw-section-head {
  max-width: 780px;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.nw-section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: 1.05;
  text-wrap: balance;
}

.nw-section-head h2 + p {
  max-width: 64ch;
  margin: 1rem 0 0;
  color: var(--nw-muted);
  font-size: 1.08rem;
}

.nw-section-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.nw-section-row .nw-section-head {
  margin-bottom: 0;
}

/* Liens dans le texte courant */
.nw-section-head a,
.nw-prose a,
.nw-faq a,
.nw-founder a:not([aria-label]) {
  color: var(--nw-deep);
  text-decoration: underline;
  text-underline-offset: .18em;
}

.nw-prose p {
  margin: 0 0 1rem;
  color: var(--nw-muted);
  font-size: 1.05rem;
}

.nw-muted {
  color: var(--nw-muted);
}

.nw-footnote {
  margin: 2rem 0 0;
  color: var(--nw-muted);
  font-size: .9rem;
  text-align: center;
}

/* Texte + image */
.nw-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.nw-split-top {
  align-items: start;
}

.nw-photo {
  margin: 0;
}

.nw-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--nw-round-lg);
  object-fit: cover;
  box-shadow: 0 30px 60px #1a8fcf1f;
}

.nw-photo-tall img {
  aspect-ratio: 4 / 5;
}

/* Colonnes à icône */
.nw-feature-icon {
  display: inline-flex;
  flex: none;
  color: var(--nw-deep);
}

.nw-feature-icon .nw-icon {
  width: 1.9rem;
  height: 1.9rem;
  stroke-width: 1.5;
}

.nw-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem clamp(1.5rem, 3vw, 3rem);
}

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

.nw-feature-grid li {
  padding-top: 1.5rem;
  border-top: 2px solid var(--nw-deep);
}

.nw-feature-grid h3 {
  margin: 1rem 0 .45rem;
  font-size: 1.2rem;
  font-weight: 650;
}

.nw-feature-grid p {
  margin: 0;
  color: var(--nw-muted);
}

.nw-feature-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1.75rem;
}

.nw-feature-mini li {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem 0;
  border-top: var(--nw-border);
  font-size: .95rem;
  font-weight: 600;
}

.nw-feature-mini .nw-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--nw-deep);
  stroke-width: 1.6;
}

/* Deux colonnes ouvertes */
.nw-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
}

.nw-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 1.5rem;
  border-top: 2px solid var(--nw-deep);
}

.nw-panel h2 {
  margin: 1.25rem 0 .6rem;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 650;
  letter-spacing: -.045em;
}

.nw-panel p {
  margin: 0 0 1.25rem;
  color: var(--nw-muted);
}

.nw-panel .nw-text-link {
  margin-top: auto;
}

@media (max-width: 1100px) {
  .nw-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nw-split,
  .nw-duo,
  .nw-feature-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nw-feature-grid,
  .nw-feature-mini {
    grid-template-columns: 1fr;
  }
}

/* --- Logiciel : objectifs ------------------------------------------------- */

.nw-objectives {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: .9rem;
}

.nw-objectives :is(a, div) {
  position: relative;
  display: grid;
  gap: .3rem;
  height: 100%;
  padding: 1.4rem 3rem 1.4rem 1.4rem;
  border: var(--nw-border);
  border-radius: var(--nw-round-sm);
  background: #fff;
  color: var(--nw-ink);
  transition: transform .3s var(--nw-ease), border-color .3s, box-shadow .3s;
}

.nw-objectives a:hover {
  transform: translateY(-3px);
  border-color: var(--nw-deep);
  color: var(--nw-ink);
  box-shadow: 0 18px 36px #1a8fcf16;
}

.nw-objective-index {
  color: var(--nw-blue);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.nw-objectives strong {
  font-size: 1.08rem;
  line-height: 1.3;
}

.nw-objectives small {
  color: var(--nw-muted);
  font-size: .9rem;
}

.nw-objective-go {
  position: absolute;
  top: 1.3rem;
  right: 1.3rem;
  color: var(--nw-deep);
  transition: transform .3s var(--nw-ease);
}

.nw-objectives a:hover .nw-objective-go {
  transform: translateX(4px);
}

/* --- Logiciel : schémas en étoile ----------------------------------------- */

.nw-radials {
  display: grid;
  justify-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.nw-radial {
  position: relative;
  container-type: inline-size;
  width: min(100%, 900px);
  aspect-ratio: 1.4;
  margin: 0;
}

.nw-radial svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.nw-radial line {
  stroke: var(--nw-blue);
  stroke-width: .4;
  stroke-linecap: round;
}

.nw-radial-orbit {
  fill: none;
  stroke: #1a8fcf40;
  stroke-width: 1.5;
  stroke-dasharray: 3 5;
  vector-effect: non-scaling-stroke;
}

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

.nw-radial-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 28.6%;
  aspect-ratio: 1;
  margin: 0;
  padding: 1.6em;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  font-size: clamp(.78rem, 2.05cqi, 1.2rem);
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
}

.nw-radial-deep .nw-radial-core {
  background: var(--nw-blue);
  color: #fff;
  box-shadow: 0 0 0 .6em #1a8fcf1f, 0 24px 50px #1a8fcf40;
}

.nw-radial-light .nw-radial-core {
  background: #c6e6f8;
  color: var(--nw-ink);
  box-shadow: 0 0 0 .6em #c6e6f866;
}

.nw-radial li {
  position: absolute;
  width: max-content;
  max-width: 11em;
  color: var(--nw-deep);
  font-size: clamp(.74rem, 1.8cqi, 1rem);
  font-weight: 650;
  line-height: 1.3;
}

/* Ancrage des libellés selon leur position autour du cercle */
.nw-radial-start {
  transform: translate(0, -50%);
}

.nw-radial-end {
  transform: translate(-100%, -50%);
  text-align: right;
}

.nw-radial-top {
  transform: translate(-50%, -100%);
  text-align: center;
}

.nw-radial-bottom {
  transform: translate(-50%, 0);
  text-align: center;
}

[data-nw-ready] .nw-radial line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset .6s calc(.2s + var(--i) * 70ms) var(--nw-ease);
}

[data-nw-ready] .nw-radial li {
  opacity: 0;
  transition: opacity .5s calc(.45s + var(--i) * 70ms);
}

[data-nw-ready] .nw-radial .nw-radial-core {
  scale: .85;
  transition: scale .8s var(--nw-ease);
}

.nw-radial.nw-revealed line {
  stroke-dashoffset: 0;
}

.nw-radial.nw-revealed li {
  opacity: 1;
}

.nw-radial.nw-revealed .nw-radial-core {
  scale: 1;
}

/* Sur mobile, le schéma devient un cercle suivi de pastilles. */
@media (max-width: 700px) {
  .nw-radial {
    display: grid;
    justify-items: center;
    gap: 1.25rem;
    aspect-ratio: auto;
  }

  .nw-radial svg {
    display: none;
  }

  .nw-radial-core {
    position: static;
    width: min(15rem, 80%);
    transform: none;
    font-size: 1rem;
  }

  .nw-radial ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .45rem;
  }

  .nw-radial li {
    position: static;
    max-width: none;
    padding: .4rem .85rem;
    transform: none;
    border: var(--nw-border);
    border-radius: var(--nw-pill);
    background: #fff;
    font-size: .85rem;
    text-align: center;
  }
}

/* --- Logiciel : frise historique ------------------------------------------ */

.nw-timeline {
  position: relative;
  padding-left: 2.25rem;
}

.nw-timeline::before {
  content: "";
  position: absolute;
  top: .5rem;
  bottom: .5rem;
  left: .55rem;
  width: 2px;
  background: linear-gradient(var(--nw-deep), var(--nw-line));
}

.nw-timeline li {
  position: relative;
  padding-bottom: 2rem;
}

.nw-timeline li:last-child {
  padding-bottom: 0;
}

.nw-timeline li::before {
  content: "";
  position: absolute;
  top: .3rem;
  left: -2.25rem;
  width: 1.15rem;
  height: 1.15rem;
  border: 3px solid var(--nw-deep);
  border-radius: 50%;
  background: #fff;
}

.nw-timeline time {
  color: var(--nw-blue);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nw-timeline h3 {
  margin: .2rem 0 .35rem;
  font-size: 1.25rem;
  font-weight: 650;
}

.nw-timeline p {
  margin: 0;
  color: var(--nw-muted);
}

/* --- Formations ------------------------------------------------------------ */

.nw-quality {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem 2rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: var(--nw-border);
  border-radius: var(--nw-round-lg);
  background: linear-gradient(120deg, #fff, var(--nw-mist));
}

.nw-quality-seal {
  display: grid;
  place-items: center;
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 50%;
  background: var(--nw-deep);
  color: #fff;
  box-shadow: 0 0 0 .5rem var(--nw-accent);
}

.nw-quality-seal .nw-icon {
  width: 2.3rem;
  height: 2.3rem;
}

.nw-quality .nw-eyebrow {
  margin-bottom: .5rem;
}

.nw-quality h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 650;
  letter-spacing: -.045em;
}

.nw-quality p:last-child {
  margin: .6rem 0 0;
  color: var(--nw-muted);
}

.nw-levels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.nw-level {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: var(--nw-border);
  border-radius: var(--nw-round-lg);
  background: #fff;
}

.nw-level > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.nw-level-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.nw-level h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 650;
  text-wrap: balance;
}

.nw-level-body > p {
  margin: 0;
}

.nw-level-body > .nw-level-outcome {
  margin-top: auto;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: var(--nw-mist);
}

/* Indicateurs de satisfaction : anneaux de progression */
@property --nw-value {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

.nw-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.nw-stats li {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: .3rem;
  padding: 1.75rem 1rem;
  border: var(--nw-border);
  border-radius: var(--nw-round-md);
  background: #fff;
  text-align: center;
}

.nw-stats strong {
  color: var(--nw-deep);
  font-size: 2.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  line-height: 1;
}

.nw-stats li > span:last-child {
  color: var(--nw-muted);
  font-size: .92rem;
  line-height: 1.35;
}

.nw-ring {
  --nw-value: var(--p);
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: .6rem;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, #fff 80%, transparent 81%),
    conic-gradient(var(--nw-deep) calc(var(--nw-value) * 1%), var(--nw-accent) 0);
  color: var(--nw-deep);
  transition: --nw-value 1.6s var(--nw-ease);
}

.nw-ring .nw-icon {
  width: 1.8rem;
  height: 1.8rem;
}

[data-nw-ready] .nw-stats:not(.nw-revealed) .nw-ring {
  --nw-value: 0;
}

.nw-score {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem 3rem;
  margin-top: 1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--nw-round-lg);
  background: var(--nw-grad-panel);
  color: #fff;
}

.nw-score h3 {
  margin: 0 0 .4rem;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 650;
}

.nw-score p {
  max-width: 52ch;
  margin: 0;
  color: var(--nw-on-blue);
}

.nw-score .nw-score-value {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: none;
}

.nw-score-value > span {
  max-width: 8em;
  color: var(--nw-accent);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.3;
  text-align: right;
  text-transform: uppercase;
}

.nw-score-value strong {
  display: grid;
  grid-auto-flow: column;
  place-content: center;
  align-items: baseline;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: #ffffff1f;
  box-shadow: inset 0 0 0 2px #ffffff40;
  font-size: 3.2rem;
  font-weight: 300;
  letter-spacing: -.04em;
}

.nw-score-value small {
  font-size: 1.2rem;
  opacity: .75;
}

@media (max-width: 1100px) {
  .nw-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nw-quality {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .nw-levels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nw-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nw-score-value > span {
    text-align: left;
  }
}

/* --- Qui sommes-nous ------------------------------------------------------- */

.nw-founders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.nw-founder {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  align-items: start;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: var(--nw-border);
  border-radius: var(--nw-round-lg);
  background: #fff;
}

.nw-founder img {
  width: 8.5rem;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--nw-mist);
  box-shadow: 0 0 0 .4rem var(--nw-mist);
  object-fit: cover;
}

.nw-founder h3 {
  margin: .4rem 0 1rem;
  font-size: 1.5rem;
  font-weight: 650;
}

.nw-founder .nw-checklist {
  font-size: .95rem;
}

.nw-founder-links {
  display: flex;
  gap: .5rem;
  margin: 1.25rem 0 0;
}

.nw-founder-links a {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: var(--nw-border);
  border-radius: .8rem;
  color: var(--nw-deep);
  transition: background-color .25s, color .25s;
}

.nw-founder-links a:hover {
  background: var(--nw-deep);
  color: #fff;
}

/* Démarche en trois phases */
.nw-phases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.nw-phases li {
  position: relative;
  padding: 1.75rem;
  border: var(--nw-border);
  border-radius: var(--nw-round-md);
  background: #fff;
}

/* Trait reliant chaque phase à la suivante */
.nw-phases li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 3.25rem;
  left: calc(100% + 1px);
  width: calc(1.5rem - 2px);
  height: 2px;
  background: var(--nw-deep);
}

.nw-phases li > span {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--nw-deep);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

.nw-phases h3 {
  margin: 1.1rem 0 0;
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.25;
}

[data-nw-ready] .nw-phases li {
  opacity: 0;
  transform: translateX(-18px);
  transition:
    opacity .6s calc(var(--i) * 160ms),
    transform .6s calc(var(--i) * 160ms) var(--nw-ease);
}

.nw-phases.nw-revealed li {
  opacity: 1;
  transform: none;
}

.nw-callout {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 1.5rem;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--nw-deep);
  border-radius: 1rem var(--nw-round-md) var(--nw-round-md) 1rem;
  background: #fff;
}

.nw-callout p {
  max-width: 62ch;
  margin: 0;
  font-size: 1.1rem;
}

/* Objectifs de la MRE */
.nw-targets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  scroll-margin-top: 6rem;
}

.nw-target-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: var(--nw-border);
  border-radius: var(--nw-round-md);
  background: #fff;
}

.nw-target-study {
  display: flex;
  flex-direction: column;
  margin-top: auto;
}

.nw-target-arrow {
  color: var(--nw-blue);
  font-size: 1.4rem;
  line-height: 1;
  text-align: center;
}

.nw-target-study h3 {
  margin: .6rem 0 .9rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: var(--nw-deep);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-align: center;
  text-transform: uppercase;
}

.nw-target-study details p {
  margin: .75rem 0 0;
  color: var(--nw-muted);
  font-size: .95rem;
}

.nw-mre {
  margin-top: 2.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--nw-round-md);
  background: var(--nw-mist);
}

.nw-mre h3 {
  margin: 0 0 1.25rem;
  font-size: 1.3rem;
  font-weight: 650;
}

/* Livres */
.nw-books {
  display: grid;
  gap: 1.25rem;
}

.nw-books > li {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  align-items: start;
  gap: 1.75rem;
  padding: 1.5rem;
  border: var(--nw-border);
  border-radius: var(--nw-round-md);
  background: #fff;
}

.nw-books > li > img {
  width: 7rem;
  border-radius: .4rem;
  box-shadow: 0 16px 30px #1a8fcf2e;
  transition: transform .4s var(--nw-ease);
}

.nw-books > li:hover > img {
  transform: rotate(-2deg) translateY(-4px);
}

.nw-books h3 {
  margin: 0 0 .5rem;
  font-size: 1.25rem;
  font-weight: 650;
}

.nw-books h3 a {
  color: var(--nw-ink);
}

.nw-books h3 a:hover {
  color: var(--nw-deep);
}

.nw-books h3 .nw-icon {
  width: .9em;
  height: .9em;
  color: var(--nw-deep);
  vertical-align: -.05em;
}

.nw-books p {
  margin: 0;
  color: var(--nw-muted);
}

.nw-books details {
  margin-top: 1rem;
}

.nw-books details ul {
  display: grid;
  gap: .55rem;
  margin: .9rem 0 0;
  padding: 0;
  list-style: none;
}

.nw-books details li a {
  color: var(--nw-deep);
  font-weight: 600;
}

.nw-books details li small {
  display: block;
  color: var(--nw-muted);
}

/* Articles scientifiques */
.nw-papers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 3rem;
}

.nw-papers li {
  padding: 1.1rem 0;
  border-top: var(--nw-border);
}

.nw-papers h3 {
  margin: 0 0 .3rem;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -.01em;
  line-height: 1.35;
}

.nw-papers p {
  margin: 0;
  color: var(--nw-muted);
  font-size: .86rem;
  font-style: italic;
}

@media (max-width: 860px) {
  .nw-founders,
  .nw-phases,
  .nw-targets,
  .nw-papers {
    grid-template-columns: 1fr;
  }

  /* Le trait de liaison passe à la verticale */
  .nw-phases li:not(:last-child)::after {
    top: 100%;
    left: 3.25rem;
    width: 2px;
    height: 1.5rem;
  }
}

@media (max-width: 700px) {
  .nw-founder {
    grid-template-columns: 1fr;
  }

  .nw-founder img {
    width: 6.5rem;
  }

  .nw-books > li {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 1rem;
  }

  .nw-books > li > img {
    width: 4.5rem;
  }
}

/* --- Expertise ------------------------------------------------------------- */

.nw-versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--nw-round-xl);
  background: radial-gradient(ellipse at 50% 50%, #ffffff2e 0%, transparent 60%), var(--nw-grad-panel);
  color: #fff;
}

.nw-versus .nw-eyebrow {
  margin-bottom: .75rem;
}

.nw-versus p:last-child {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.25;
}

.nw-versus-plus {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--nw-accent);
  color: var(--nw-deep);
  font-size: 2rem;
  font-weight: 300;
}

/* Processus d'accompagnement */
.nw-process li {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1.25rem;
  padding-bottom: 1.75rem;
}

.nw-process li:last-child {
  padding-bottom: 0;
}

.nw-process li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 3rem;
  bottom: 0;
  left: calc(1.5rem - 1px);
  width: 2px;
  background: var(--nw-line);
}

.nw-process li > span {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--nw-deep);
  border-radius: 50%;
  background: #fff;
  color: var(--nw-deep);
  font-weight: 700;
}

.nw-process h3 {
  margin: .55rem 0 .25rem;
  font-size: 1.2rem;
  font-weight: 650;
}

.nw-process p {
  margin: 0;
  color: var(--nw-muted);
}

[data-nw-ready] .nw-process li {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity .6s calc(var(--i) * 140ms),
    transform .6s calc(var(--i) * 140ms) var(--nw-ease);
}

.nw-process.nw-revealed li {
  opacity: 1;
  transform: none;
}

@media (max-width: 860px) {
  .nw-versus {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

/* --- Contact et démo : formulaires ---------------------------------------- */

.nw-form-layout,
.nw-faq-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.nw-contact-cards {
  display: grid;
  border-top: var(--nw-border);
}

.nw-contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: var(--nw-border);
  color: var(--nw-ink);
}

a.nw-contact-card:hover {
  color: var(--nw-deep);
}

.nw-contact-card small {
  display: block;
  color: var(--nw-muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nw-contact-card strong {
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.35;
}

.nw-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: var(--nw-border);
  border-radius: var(--nw-round-lg);
  background: #fff;
  box-shadow: 0 30px 60px #1a8fcf12;
}

.nw-field {
  display: grid;
  gap: .4rem;
}

.nw-field-full {
  grid-column: 1 / -1;
}

.nw-field label {
  font-size: .88rem;
  font-weight: 650;
}

.nw-field label small {
  color: var(--nw-muted);
  font-weight: 400;
}

/* Champs (le champ anti-spam caché est exclu) */
.nw-form :is(input:not([type="checkbox"], .nw-visually-hidden), select, textarea) {
  width: 100%;
  height: auto;
  padding: .8rem 1rem;
  border: var(--nw-border);
  border-radius: .85rem;
  background: #f8fbfd;
  color: var(--nw-ink);
  font: inherit;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.nw-form :is(input, select, textarea):focus {
  border-color: var(--nw-blue);
  outline: 0;
  background: #fff;
  box-shadow: 0 0 0 4px #1a8fcf26;
}

.nw-form textarea {
  resize: vertical;
}

.nw-form button {
  justify-content: center;
  width: 100%;
}

.nw-check {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--nw-muted);
  font-size: .92rem;
  cursor: pointer;
}

.nw-check input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--nw-deep);
}

.nw-demo-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--nw-round-lg);
  background: var(--nw-grad-panel);
  color: #fff;
}

.nw-demo-card img {
  width: 5.5rem;
  height: 5.5rem;
  padding: .7rem;
  border-radius: var(--nw-round-sm);
  background: #fff;
}

.nw-demo-card h2 {
  margin: 1.25rem 0 1.1rem;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 650;
  letter-spacing: -.04em;
}

.nw-demo-card .nw-checklist .nw-icon {
  background: #ffffff26;
  color: #fff;
}

.nw-demo-card .nw-checklist span {
  color: var(--nw-on-blue);
}

/* Foire aux questions */
.nw-faq {
  display: grid;
  gap: .75rem;
}

.nw-faq details {
  padding: 0 1.4rem;
  border: var(--nw-border);
  border-radius: 1.1rem;
  background: #fff;
}

.nw-faq summary {
  display: flex;
  justify-content: space-between;
  gap: .45rem;
  padding-block: 1.15rem;
  color: var(--nw-ink);
  font-size: 1rem;
  font-weight: 650;
}

.nw-faq summary::after {
  content: "+";
  color: var(--nw-deep);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transition: transform .3s var(--nw-ease);
}

.nw-faq details[open] summary::after {
  transform: rotate(45deg);
}

.nw-faq details p {
  margin: 0 0 1.2rem;
  color: var(--nw-muted);
}

@media (max-width: 860px) {
  .nw-form-layout,
  .nw-faq-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nw-form {
    grid-template-columns: 1fr;
  }
}

/* --- Actualités ------------------------------------------------------------ */

.nw-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
}

.nw-news-grid a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--nw-ink);
}

.nw-news-grid h2 {
  margin: 0 0 .5rem;
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.nw-news-grid p {
  margin: 0 0 1rem;
  color: var(--nw-muted);
  font-size: .95rem;
}

.nw-read {
  display: inline-flex;
  gap: .4rem;
  margin-top: auto;
  color: var(--nw-deep);
  font-size: .9rem;
  font-weight: 700;
}

.nw-news-grid a:hover .nw-read {
  text-decoration: underline;
  text-underline-offset: .25em;
}

@media (max-width: 860px) {
  .nw-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .nw-news-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   9. Couvertures d'actualités (SVG dessinés par src/layouts/news.ts)
   ========================================================================== */

.nw-cover {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--nw-round-sm);
  background: radial-gradient(ellipse at 80% 20%, #ffffff38 0%, transparent 55%), var(--nw-grad-panel);
  color: #fff;
  transition: transform .5s var(--nw-ease), box-shadow .5s;
}

.nw-news-list .nw-cover {
  margin-bottom: 1rem;
}

.nw-news-grid .nw-cover {
  margin-bottom: 1.1rem;
}

a:hover > .nw-cover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px #1a8fcf30;
}

/* Tons */
.nw-cover-sky {
  background: radial-gradient(ellipse at 80% 20%, #ffffff40 0%, transparent 60%), var(--nw-grad);
}

.nw-cover-mist {
  background: radial-gradient(ellipse at 80% 20%, #fff 0%, transparent 60%), linear-gradient(125deg, var(--nw-accent), #b8dff5 90%);
  color: var(--nw-ink);
}

.nw-cover-paper {
  background: radial-gradient(ellipse at 85% 30%, var(--nw-mist) 0%, transparent 65%), #fff;
  color: var(--nw-ink);
  box-shadow: inset 0 0 0 1px var(--nw-line);
}

/* Motif : ses couleurs suivent le ton de la couverture. */
.nw-cover svg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.nw-cover-motif {
  --ink: #fff;
  --soft: #ffffff2e;
  --accent: var(--nw-accent);
  transition: transform .8s var(--nw-ease);
}

:is(.nw-cover-mist, .nw-cover-paper) .nw-cover-motif {
  --ink: var(--nw-blue);
  --soft: #1a8fcf24;
  --accent: var(--nw-deep);
}

a:hover .nw-cover-motif {
  transform: translate(-6px, -3px);
}

.nw-cover-line {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: .45;
  stroke-width: 1;
}

.nw-cover-thick {
  stroke-opacity: .85;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nw-cover-dash {
  stroke-opacity: .8;
  stroke-width: 1.6;
  stroke-dasharray: 4 4;
}

.nw-cover-ghost {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: .6;
  stroke-width: 1.4;
  stroke-dasharray: 2 3;
}

.nw-cover-dot {
  fill: var(--ink);
}

.nw-cover-on {
  fill: var(--accent);
}

.nw-cover-on-stroke {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}

.nw-cover-cell {
  fill: var(--soft);
}

.nw-cover-frame {
  fill: var(--soft);
  stroke: var(--ink);
  stroke-opacity: .4;
}

:is(.nw-cover-mist, .nw-cover-paper) .nw-cover-frame {
  fill: #fff;
}

.nw-cover-hatch {
  fill: url(#nw-hatch);
  stroke: var(--ink);
  stroke-opacity: .5;
}

.nw-cover-pointer {
  fill: #fff;
  stroke: var(--nw-deep);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.nw-cover-label {
  fill: var(--ink);
  fill-opacity: .75;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .06em;
}

.nw-cover-label-lg {
  font-size: 9px;
  letter-spacing: .14em;
}

.nw-cover-number {
  fill: var(--accent);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.04em;
  text-anchor: middle;
}

/* Titre de la couverture, proportionné à la largeur de la carte */
.nw-cover-text {
  position: absolute;
  bottom: 10%;
  left: 7%;
  display: grid;
  gap: .25rem;
  max-width: 46%;
}

.nw-cover-text small {
  font-size: clamp(.6rem, 2.9cqi, .78rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .85;
}

.nw-cover-text strong {
  font-size: clamp(1.3rem, 8.5cqi, 2.4rem);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1;
  text-wrap: balance;
}


/* ==========================================================================
   10. Articles, mentions légales et formulaires
   ========================================================================== */

[data-nemrod] main [id] {
  scroll-margin-top: 6rem;
}

.nw-article {
  display: grid;
  justify-items: start;
  gap: clamp(1.75rem, 4vw, 2.75rem);
}

.nw-article > * {
  max-width: 48rem;
}

.nw-article > .nw-cover {
  max-width: 36rem;
}

:is(.nw-article-body, .nw-legal) :is(h2, h3, h4) {
  margin: 2rem 0 .75rem;
  font-weight: 650;
  line-height: 1.2;
}

:is(.nw-article-body, .nw-legal) h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
}

:is(.nw-article-body, .nw-legal) h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

:is(.nw-article-body, .nw-legal) h4 {
  margin-bottom: .35rem;
  font-size: 1.05rem;
}

:is(.nw-article-body, .nw-legal) > :first-child {
  margin-top: 0;
}

:is(.nw-article-body, .nw-legal) :is(ul, li) {
  color: var(--nw-muted);
  font-size: 1.05rem;
}

:is(.nw-article-body, .nw-legal) li + li {
  margin-top: .35rem;
}

:is(.nw-article-body, .nw-legal) strong {
  color: var(--nw-ink);
}

.nw-legal {
  max-width: 52rem;
}

.nw-legal a {
  overflow-wrap: anywhere;
}

.nw-form-note {
  margin: 0;
  color: var(--nw-muted);
  font-size: .85rem;
}

.nw-form-note a {
  color: inherit;
  text-decoration: underline;
}

.nw-form-status {
  margin: 0;
  padding: .75rem 1rem;
  border-radius: var(--nw-round-sm);
  background: #fdecec;
  color: #8a1c1c;
  font-weight: 600;
}

.nw-newsletter-form .nw-form-status {
  flex-basis: 100%;
}


/* ==========================================================================
   11. Pied de page
   ========================================================================== */

.nw-footer {
  padding-block: 3.5rem 1.75rem;
  border-top: var(--nw-border);
  background: var(--nw-mist);
}

.nw-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.75rem;
  padding-bottom: 1.75rem;
}

.nw-footer-grid p {
  margin: .7rem 0 0;
  color: var(--nw-muted);
}

.nw-footer-grid nav,
.nw-footer-grid address {
  display: grid;
  align-content: start;
  gap: .45rem;
}

.nw-footer-grid a {
  width: fit-content;
  color: var(--nw-ink);
}

.nw-footer-grid a:hover {
  text-decoration: underline;
}

.nw-footer small {
  display: block;
  padding-top: 1rem;
  border-top: var(--nw-border);
}

@media (max-width: 700px) {
  .nw-footer-grid {
    grid-template-columns: 1fr;
  }
}
