/* ==========================================================================
   Page « Notre méthode » (/notre-methode/) : styles propres à cette page, chargés seulement par elle.
   Réutilise les variables et composants de style.css (sections, phrase forte, accordéon de la FAQ, boutons, liens d'action).
   Conçu d'abord pour 375 px, contrôlé à 320 px. Le bordeaux est réservé au bouton « Étudier mon projet ».
   Aucune animation : seules les transitions de couleur, de contour et de fond du site (120 ms), absentes sous prefers-reduced-motion.
   Les libellés écrits en capitales dans le cahier des charges sont écrits en casse normale et mis en capitales ici.
   ========================================================================== */

/* Repères communs */
.nm-bloc .bloc-entete {
  margin-bottom: var(--s-7);
}

.nm-texte {
  max-width: var(--mesure);
}

.nm-texte p + p {
  margin-top: var(--s-4);
}

.nm-phrase-forte {
  margin-top: var(--s-7);
}

/* Libellés en capitales (fil de la méthode, actions, pôles, rôles, relation, engagements) */
.nm-fil,
.nm-frise__mot,
.nm-etape__action,
.nm-pole__titre,
.nm-resultat__titre,
.nm-role__titre,
.nm-relation__termes,
.nm-engagements {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Liens secondaires (flèche dessinée par .lien-action) : zone tactile d'au moins 44 px */
.nm-lien {
  margin-top: var(--s-6);
}

.nm-lien a {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible-min);
}

.nm-reassurance {
  max-width: 34rem;
  font-size: 0.9375rem;
  color: var(--c-texte-doux);
}

/* ---------- B1 : hero typographique (emplacement photo prévu, vide aujourd'hui) ---------- */
.nm-hero__grille {
  display: grid;
  gap: var(--s-7);
}

.nm-hero__entete {
  max-width: 50rem;
  margin-bottom: 0;
}

.nm-hero h1 {
  max-width: 20ch;
}

.nm-hero .page__intro {
  max-width: 44rem;
}

/* Fil de la méthode : six mots reliés par des flèches (dessinées, non lues) */
.nm-fil {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-3);
  margin: var(--s-6) 0 0;
  padding: var(--s-3) 0;
  border-block: var(--bordure);
  list-style: none;
  font-size: 0.8125rem;
  font-weight: var(--fw-demi);
  color: var(--c-marine);
}

.nm-fil li {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}

.nm-fil li:not(:last-child)::after {
  content: "\2192";
  content: "\2192" / "";
  color: var(--c-marine);
  letter-spacing: 0;
}

.nm-hero__appel {
  display: grid;
  justify-items: start;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

/* Photo future : cadre aux proportions fixes, aucune image affichée tant que photoHero est vide */
.nm-hero__visuel img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-carte);
}

@media (max-width: 37.4375rem) {
  .nm-hero__appel {
    justify-items: stretch;
  }

  .nm-hero__appel .bouton {
    width: 100%;
  }
}

@media (min-width: 64rem) {
  .nm-hero--photo .nm-hero__grille {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: var(--s-8);
  }

  .nm-hero__visuel img {
    aspect-ratio: 4 / 5;
  }
}

/* ---------- B2 : trois demandes, une même première étape ---------- */
.nm-demandes {
  margin-top: var(--s-8);
}

.nm-demandes__liste {
  display: grid;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nm-demande {
  padding: var(--s-4) var(--s-5);
  border: var(--bordure);
  border-radius: var(--r-carte);
  background: var(--c-fond);
  font-size: 1.0625rem;
  font-weight: var(--fw-medium);
  line-height: 1.4;
  color: var(--c-marine);
}

.nm-demandes__conclusion {
  max-width: none;
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 2px solid var(--c-marine);
  font-family: var(--f-titre);
  font-size: var(--fs-h3);
  font-weight: var(--fw-titre);
  line-height: 1.35;
  color: var(--c-marine);
}

@media (min-width: 48rem) {
  .nm-demandes__liste {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-5);
  }
}

/* ---------- B3 : vue d'ensemble, frise verticale (téléphone) puis horizontale (ordinateur) ---------- */
.nm-citation {
  max-width: 40rem;
  font-family: var(--f-titre);
  font-size: var(--fs-accent);
  font-weight: var(--fw-titre);
  line-height: 1.3;
  color: var(--c-marine);
}

.nm-frise {
  --pastille: 3rem;
  position: relative;
  display: grid;
  gap: var(--s-4);
  margin: var(--s-8) 0 0;
  padding: 0;
  list-style: none;
}

/* Trait qui relie les étapes */
.nm-frise::before {
  content: "";
  position: absolute;
  top: calc(var(--pastille) / 2);
  bottom: calc(var(--pastille) / 2);
  left: calc(var(--pastille) / 2 - 1px);
  width: 2px;
  background: var(--c-bordure);
}

.nm-frise__etape {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.nm-frise__num {
  display: grid;
  flex: none;
  place-items: center;
  width: var(--pastille);
  height: var(--pastille);
  border: 2px solid var(--c-marine);
  border-radius: 50%;
  background: var(--c-fond);
  font-family: var(--f-titre);
  font-size: 1.0625rem;
  font-weight: var(--fw-titre);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  color: var(--c-marine);
}

.nm-frise__mot {
  font-size: 1rem;
  font-weight: var(--fw-demi);
  color: var(--c-marine);
}

.nm-transition {
  max-width: 44rem;
  margin-top: var(--s-8);
}

.nm-transition__conviction {
  font-family: var(--f-titre);
  font-size: var(--fs-h3);
  font-weight: var(--fw-titre);
  line-height: 1.4;
  color: var(--c-marine);
}

.nm-transition__suite {
  margin-top: var(--s-3);
  font-weight: var(--fw-demi);
}

@media (min-width: 64rem) {
  .nm-frise {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--s-4);
  }

  .nm-frise::before {
    top: calc(var(--pastille) / 2 - 1px);
    bottom: auto;
    left: calc(100% / 12);
    right: calc(100% / 12);
    width: auto;
    height: 2px;
  }

  .nm-frise__etape {
    flex-direction: column;
    gap: var(--s-3);
    text-align: center;
  }

  .nm-frise__mot {
    font-size: 0.875rem;
  }
}

/* ---------- B4 : six étapes détaillées (cœur de page) : numéro → action → explication → résultat ---------- */
.nm-etapes {
  margin: 0;
  padding: 0;
  border-top: var(--bordure);
  list-style: none;
}

.nm-etape {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  column-gap: var(--s-4);
  padding-block: var(--s-7);
  border-bottom: var(--bordure);
}

.nm-etape__num {
  font-family: var(--f-titre);
  font-size: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  font-weight: var(--fw-titre);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  line-height: 1;
  color: var(--c-marine);
}

.nm-etape__titre {
  display: grid;
  gap: var(--s-1);
}

.nm-etape__action {
  font-size: 0.875rem;
  font-weight: var(--fw-titre);
  color: var(--c-marine);
}

.nm-etape__nom {
  font-size: var(--fs-h3);
  font-weight: var(--fw-demi);
  line-height: 1.3;
  color: var(--c-marine);
}

.nm-etape__explication {
  margin-top: var(--s-3);
}

.nm-etape__resultat {
  margin-top: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-carte);
  background: var(--c-marine-pale);
  font-weight: var(--fw-medium);
  line-height: 1.5;
  color: var(--c-marine);
}

.nm-etape .nm-lien {
  margin-top: var(--s-3);
}

/* Conclusion : la phrase la plus forte de la méthode, sur fond marine */
.nm-etapes__conclusion {
  max-width: none;
  margin-top: var(--s-8);
  padding: var(--s-7) var(--s-5);
  border-radius: var(--r-carte);
  background: var(--c-marine);
  font-family: var(--f-titre);
  font-size: var(--fs-accent);
  font-weight: var(--fw-titre);
  line-height: 1.3;
  color: var(--c-blanc);
}

@media (min-width: 64rem) {
  .nm-etape {
    grid-template-columns: 6rem minmax(0, 1fr);
    column-gap: var(--s-6);
  }

  /* Explication à gauche, résultat à droite : la lecture va de l'action au résultat */
  .nm-etape__corps {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas:
      "titre       resultat"
      "explication resultat"
      "lien        resultat";
    grid-template-rows: auto auto 1fr;
    column-gap: var(--s-7);
  }

  .nm-etape__titre {
    grid-area: titre;
  }

  .nm-etape__explication {
    grid-area: explication;
  }

  .nm-etape__resultat {
    grid-area: resultat;
    align-self: start;
    margin-top: 0;
  }

  .nm-etape .nm-lien {
    grid-area: lien;
  }

  .nm-etapes__conclusion {
    padding: var(--s-8) clamp(2rem, 1rem + 4vw, 5rem);
  }
}

/* ---------- B5 : exemple concret, chemin en six pas ---------- */
.nm-chemin {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-2);
  margin: var(--s-8) 0 0;
  padding: 0;
  list-style: none;
}

/* Un pas = une étiquette ; la flèche vers le pas suivant est dessinée (non lue) : vers le bas sur téléphone, vers la droite ensuite */
.nm-chemin__pas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-2);
}

.nm-chemin__etiquette {
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--c-bordure);
  border-radius: 999px;
  background: var(--c-fond-alt);
  font-size: 0.9375rem;
  font-weight: var(--fw-demi);
  line-height: 1.3;
  color: var(--c-marine);
}

/* Le tournant de l'exemple : « Nouvelle priorité possible » */
.nm-chemin__pas--cle .nm-chemin__etiquette {
  border-color: var(--c-marine);
  background: var(--c-marine);
  color: var(--c-blanc);
}

.nm-chemin__pas:not(:last-child)::after {
  content: "\2193";
  content: "\2193" / "";
  padding-left: var(--s-5);
  line-height: 1;
  color: var(--c-marine);
}

@media (min-width: 48rem) {
  .nm-chemin {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-3);
  }

  .nm-chemin__pas {
    flex-direction: row;
    align-items: center;
    gap: var(--s-3);
  }

  .nm-chemin__pas:not(:last-child)::after {
    content: "\2192";
    content: "\2192" / "";
    padding-left: 0;
  }
}

.nm-exemple__conclusion {
  max-width: 40rem;
  margin-top: var(--s-7);
  font-family: var(--f-titre);
  font-size: var(--fs-h3);
  font-weight: var(--fw-titre);
  line-height: 1.4;
  color: var(--c-marine);
}

/* Mention obligatoire : bien visible, en taille de texte courante */
.nm-mention {
  max-width: 44rem;
  margin-top: var(--s-6);
  padding: var(--s-4) var(--s-5);
  border: var(--bordure);
  border-radius: var(--r-carte);
  background: var(--c-fond-alt);
  font-size: 0.9375rem;
}

/* ---------- B6 : l'idéal × le réalisable → le projet qui vous correspond (visuel en texte) ---------- */
.nm-equilibre {
  display: grid;
  gap: var(--s-3);
  justify-items: stretch;
}

.nm-pole {
  padding: var(--s-5) var(--s-5) var(--s-6);
  border: var(--bordure);
  border-radius: var(--r-carte);
  background: var(--c-fond);
}

.nm-pole__titre {
  font-size: var(--fs-h3-capitales);
  font-weight: var(--fw-demi);
  line-height: 1.35;
}

.nm-pole p {
  margin-top: var(--s-2);
}

.nm-equilibre__signe,
.nm-equilibre__fleche {
  justify-self: center;
  font-family: var(--f-titre);
  font-size: 1.75rem;
  font-weight: var(--fw-titre);
  line-height: 1;
  color: var(--c-marine);
}

/* La flèche du cahier mène au résultat, placé dessous : elle pointe vers le bas */
.nm-equilibre__fleche {
  transform: rotate(90deg);
}

.nm-resultat {
  display: grid;
  justify-items: center;
  gap: var(--s-4);
  padding: var(--s-6) var(--s-5);
  border-radius: var(--r-carte);
  background: var(--c-marine);
  text-align: center;
}

.nm-resultat__titre {
  max-width: none;
  font-size: 1.0625rem;
  font-weight: var(--fw-titre);
  line-height: 1.4;
  color: var(--c-blanc);
}

.nm-autour {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nm-autour li {
  padding: var(--s-1) var(--s-3);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--c-marine-pale);
}

.nm-equilibre__texte {
  margin-top: var(--s-7);
}

@media (min-width: 48rem) {
  .nm-equilibre {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas:
      "ideal    signe    realisable"
      "fleche   fleche   fleche"
      "resultat resultat resultat";
    column-gap: var(--s-5);
    row-gap: var(--s-4);
    align-items: center;
  }

  .nm-pole--ideal {
    grid-area: ideal;
    align-self: stretch;
  }

  .nm-pole--realisable {
    grid-area: realisable;
    align-self: stretch;
  }

  .nm-equilibre__signe {
    grid-area: signe;
  }

  .nm-equilibre__fleche {
    grid-area: fleche;
  }

  .nm-resultat {
    grid-area: resultat;
    padding: var(--s-7) var(--s-6);
  }

  .nm-resultat__titre {
    font-size: 1.25rem;
  }
}

/* ---------- B7 : trois rôles distincts ---------- */
.nm-roles {
  display: grid;
  gap: var(--s-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nm-role {
  padding: var(--s-5) var(--s-5) var(--s-6);
  border: var(--bordure);
  border-radius: var(--r-carte);
  background: var(--c-fond-alt);
}

.nm-role__titre {
  font-size: var(--fs-h3-capitales);
  font-weight: var(--fw-demi);
  line-height: 1.35;
}

.nm-role p {
  margin-top: var(--s-3);
}

.nm-role .nm-role__phrase {
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: var(--bordure);
  font-family: var(--f-titre);
  font-size: 1.125rem;
  font-weight: var(--fw-titre);
  line-height: 1.4;
  color: var(--c-marine);
}

.nm-roles__synthese {
  max-width: 44rem;
  margin-top: var(--s-8);
  font-family: var(--f-titre);
  font-size: var(--fs-accent);
  font-weight: var(--fw-titre);
  line-height: 1.3;
  color: var(--c-marine);
}

@media (min-width: 64rem) {
  .nm-roles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-6);
  }

  .nm-roles__synthese {
    margin-inline: auto;
    text-align: center;
  }
}

/* ---------- B8 : MÉTIER × TERRITOIRE × PROJET ---------- */
/* Téléphone : un terme par ligne (« × » en tête des deux derniers) ; à partir de 48 rem : sur une ligne */
.nm-relation__termes {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-1);
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--f-titre);
  font-size: clamp(1.375rem, 1rem + 2vw, 2.5rem);
  font-weight: var(--fw-titre);
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--c-marine);
}

.nm-relation__termes li + li::before {
  content: "\00D7";
  content: "\00D7" / "";
  margin-right: 0.45em;
  color: var(--c-marine);
}

@media (min-width: 48rem) {
  .nm-relation__termes {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--s-1) 0;
  }

  .nm-relation__termes li + li::before {
    margin-left: 0.45em;
  }
}

.nm-relation__reseau {
  margin-top: var(--s-4);
  color: var(--c-texte-doux);
}

.nm-professionnel__suite {
  margin-top: var(--s-5);
  font-size: 1.125rem;
  font-weight: var(--fw-demi);
  color: var(--c-marine);
}

.nm-responsabilite {
  max-width: 44rem;
  margin-top: var(--s-6);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-carte);
  background: var(--c-marine-pale);
}

/* ---------- B9 : réassurance humaine, sobre ---------- */
.nm-experience {
  font-family: var(--f-titre);
  font-size: var(--fs-accent);
  font-weight: var(--fw-titre);
  line-height: 1.3;
  color: var(--c-marine);
}

.nm-presence__texte {
  margin-top: var(--s-6);
}

.nm-engagements {
  margin: var(--s-7) 0 0;
  padding: 0;
  border-top: var(--bordure);
  list-style: none;
  font-size: 0.9375rem;
  font-weight: var(--fw-titre);
  color: var(--c-marine);
}

.nm-engagements li {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  padding-block: var(--s-4);
  border-bottom: var(--bordure);
}

.nm-engagements li::before {
  content: "";
  flex: none;
  width: 1rem;
  height: 2px;
  background: var(--c-marine);
  transform: translateY(-0.3em);
}

.nm-liens {
  margin-top: var(--s-6);
}

.nm-liens .nm-lien {
  margin-top: 0;
}

/* ---------- B10 : FAQ (accordéon du site) ; la question est un H3 dans le résumé ---------- */
.nm-faq__question {
  font: inherit;
  color: inherit;
}

.nm-faq__transition {
  margin-top: var(--s-6);
}

/* ---------- B11 : conversion finale ---------- */
.nm-final {
  padding-block: calc(var(--s-section) * 1.1);
}

.nm-final__contenu {
  display: grid;
  justify-items: center;
  gap: var(--s-4);
  text-align: center;
}

.nm-final__contenu > p {
  max-width: 38rem;
}

.nm-final__appel {
  display: grid;
  justify-items: center;
  gap: var(--s-3);
  margin-top: var(--s-3);
}

.nm-final__signature {
  margin-top: var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-marine);
  font-family: var(--f-titre);
  font-size: var(--fs-h3);
  font-weight: var(--fw-titre);
  line-height: 1.4;
  color: var(--c-marine);
}

@media (max-width: 37.4375rem) {
  .nm-final__appel {
    justify-items: stretch;
    width: 100%;
  }

  .nm-final__appel .bouton {
    width: 100%;
  }
}
