/* ============================================================
   Structureway — palette révisée (validée le 28/08/2026)
   Fond blanc épuré · Boutons marine #011C42 texte blanc (16,9:1)
   Teal #019F9A en accents (icônes, nœuds, liens) — jamais en texte courant
   Terracotta #B84E32 : puces, survols, exergues, erreurs · Geist 400/500/600
   ============================================================ */

:root {
  --marine: #011C42;
  --marine-press: #0A3268;      /* état survol des boutons marine */
  --teal: #019F9A;
  --terra: #B84E32;
  --bg: #FFFFFF;
  --surface: #F6F8FA;           /* fonds de carte, gris-bleu très léger */
  --ink-soft: rgba(1, 28, 66, 0.76);
  --ink-faint: rgba(1, 28, 66, 0.62);
  --line: rgba(1, 28, 66, 0.16);
  --line-soft: rgba(1, 28, 66, 0.08);
  --cream-ink: rgba(250, 247, 242, 0.82);   /* texte sur fond marine */
  --cream-line: rgba(250, 247, 242, 0.18);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--marine);
  font-family: "Geist", "Segoe UI", -apple-system, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--marine); }

h1, h2, h3, p, ul, ol { margin: 0; }

/* ---------- Utilitaires ---------- */

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--marine);
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 100;
}

.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}

/* Sur fond marine, le repère de focus terracotta manque de contraste */
.site-footer :focus-visible {
  outline-color: #FFFFFF;
}

/* ---------- Boutons (marine = action, texte blanc) ---------- */

.btn {
  display: inline-block;
  background: var(--marine);
  color: #FFFFFF;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
}

.btn:hover { background: var(--marine-press); }

.btn-header {
  font-size: 15px;
  padding: 10px 18px;
  white-space: nowrap;
}

.btn-hero {
  font-size: 16.5px;
  padding: 15px 26px;
  margin-top: 36px;
}

.btn-mail {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 16.5px;
  padding: 15px 26px;
}

.btn-mail svg {
  width: 22px;
  height: 22px;
  flex: none;
}

/* ---------- Sur-titres à nœud (motif circuit du logo) ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terra);
}

.eyebrow::after {
  content: "";
  flex: none;
  width: 36px;
  height: 1px;
  background: var(--line);
}

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
}

.brand { display: flex; align-items: center; flex: none; }

.brand img {
  height: 40px;
  width: auto;
  max-width: none;   /* le ratio du logo prime, les tailles sont gérées par paliers */
  display: block;
}

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.site-nav a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--marine);
}

.site-nav a:hover { color: var(--terra); }

/* ---------- Accroche ---------- */

.hero { padding: 92px 0 110px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  margin-top: 26px;
  font-size: clamp(29px, 4.2vw, 44px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;   /* évite la ligne orpheline sur « systématiquement » */
}

.hero .lead {
  margin-top: 24px;
  font-size: 17.5px;
  color: var(--ink-soft);
}

.hero-art { display: block; }

.hero-art svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Sections ---------- */

.section {
  padding: 100px 0;
  border-top: 1px solid var(--line-soft);
}

.section h2 {
  margin-top: 18px;
  font-size: clamp(25px, 3.2vw, 31px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  max-width: 720px;
  text-wrap: balance;
}

.section-text {
  margin-top: 20px;
  max-width: 730px;
  color: var(--ink-soft);
}

/* ---------- Sujets traités ---------- */

.topics {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.topic {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.topic[open] { border-color: var(--line); }

.topic > summary {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 26px;
  cursor: pointer;
  list-style: none;          /* retire le triangle natif */
  border-radius: 12px;
}

.topic > summary::-webkit-details-marker { display: none; }

.topic > summary:hover h3 { color: var(--terra); }

.topic-icon {
  width: 40px;
  height: 40px;
  flex: none;
  color: var(--marine);
  margin-top: 2px;
}

.topic-head {
  flex: 1;
  min-width: 0;
}

.topic-head h3 {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
}

.topic-pitch {
  display: block;
  margin-top: 8px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* indicateur + / − dessiné en CSS, sans animation */
.topic-toggle {
  position: relative;
  width: 24px;
  height: 24px;
  flex: none;
  margin-top: 8px;
}

.topic-toggle::before,
.topic-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--marine);
}

.topic-toggle::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.topic-toggle::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.topic[open] .topic-toggle::after { display: none; }

.topic-body {
  padding: 4px 26px 30px 86px;   /* aligné sous le titre, pas sous l'icône */
}

.topic-intro {
  max-width: 700px;
  color: var(--ink-soft);
}

.topic-label {
  margin-top: 28px;
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.chips {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 14px;
  line-height: 1.4;
}

/* grille des sources à rapprocher : nœuds du motif circuit */
.sources {
  list-style: none;
  padding: 22px 24px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 11px 28px;
}

.sources li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.5;
}

.sources li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--marine);
  border-radius: 50%;
}

.thesis {
  margin: 30px 0 0;
  max-width: 700px;
  border-left: 3px solid var(--terra);
  padding-left: 22px;
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--marine);
}

.frictions {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 9px 32px;
}

.frictions li {
  position: relative;
  padding-left: 20px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.frictions li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 1px;
  background: var(--line);
}

/* Encadré « Ce que ça change » : même famille que la grille des sources,
   mais nœuds pleins au lieu d'anneaux, pour distinguer l'effet du problème. */
.gains {
  list-style: none;
  padding: 22px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 28px;
}

.gains li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.5;
}

.gains li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--marine);
}

.topic-close {
  margin-top: 28px;
  max-width: 700px;
  font-weight: 500;
  color: var(--marine);
}

/* Sujets secondaires : fond blanc et pas d'icône, pour rester
   visiblement en retrait des trois accordéons principaux. */
.more { margin-top: 58px; }

.vignettes {
  list-style: none;
  padding: 0;
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.vignette {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 22px 24px;
}

.vignette h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

.vignette p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- Méthode : schéma en circuit ---------- */

/* deux phases côte à côte, en 3fr / 2fr pour garder cinq colonnes égales */
.process {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
}

.phase-label {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 30px;
}

.process-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.phase-run .process-steps { grid-template-columns: repeat(2, 1fr); }

/* la piste horizontale reliant les nœuds, comme les tracés du logo :
   un segment par phase, qui se rejoignent au milieu de l'espace entre elles */
.process-steps::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 16.6%;
  right: -12px;
  height: 2px;
  background: var(--line);
}

.phase-run .process-steps::before {
  left: -12px;
  right: 25%;
}

.process li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.process-node {
  flex: none;        /* en ligne sur mobile, le texte voisin l'écrasait en ovale */
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--marine);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-node::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
}

/* mise en œuvre : point central marine, pour distinguer la phase sans ajouter de couleur */
.phase-run .process-node::after { background: var(--marine); }

.process-body h3 {
  margin-top: 18px;
  font-size: 17px;
  font-weight: 500;
}

.process-body p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.founder {
  margin-top: 60px;
  max-width: 730px;
  border-left: 3px solid var(--terra);
  padding-left: 22px;
}

.founder p {
  font-size: 16.5px;
  color: var(--marine);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 34px 30px;
}

.contact-hint {
  margin-top: 22px;
  font-size: 15.5px;
  color: var(--ink-soft);
}

/* l'adresse reste visible en clair : le lien mailto: n'ouvre rien
   quand la messagerie est utilisée dans le navigateur */
.mail-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 8px;
}

.mail-address {
  font-size: 17px;
  font-weight: 500;
  color: var(--marine);
  text-decoration-color: var(--line);
  overflow-wrap: anywhere;
}

.mail-address:hover { color: var(--terra); }

.copy-btn {
  background: var(--bg);
  color: var(--marine);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.copy-btn:hover { border-color: var(--marine); }

.copy-status {
  margin-top: 10px;
  font-size: 14.5px;
  font-weight: 500;
  min-height: 1.4em;
}

.reassurance {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-faint);
}

/* ---------- Pied de page ---------- */

.site-footer {
  background: var(--marine);
  color: var(--cream-ink);
  padding: 64px 0 36px;
  font-size: 14.5px;
}

.footer-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-logo {
  width: auto;
  height: 118px;
}

.footer-contact a {
  color: #FFFFFF;
  font-weight: 500;
  text-decoration-color: var(--cream-line);
}

.footer-contact a:hover { color: var(--teal); }

.mentions {
  margin-top: 44px;
  border-top: 1px solid var(--cream-line);
  padding-top: 26px;
}

.mentions summary {
  cursor: pointer;
  font-weight: 500;
  color: #FFFFFF;
  width: fit-content;
}

.mentions-body {
  max-width: 840px;
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--cream-ink);
}

.mentions-body h3 {
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin-top: 22px;
}

.mentions-body h3:first-child { margin-top: 0; }

.mentions-body p { margin-top: 8px; }

.mentions-body a {
  color: #FFFFFF;
  text-decoration-color: var(--cream-line);
}

.mentions-body a:hover { color: var(--teal); }

.footer-bottom {
  margin-top: 36px;
  font-size: 13px;
  color: rgba(250, 247, 242, 0.6);
}

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }

  .hero-art {
    max-width: 460px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  /* schéma méthode : piste verticale, étapes empilées. Dès 940px :
     cinq colonnes deviendraient trop étroites sur tablette */
  .process {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .phase-label {
    text-align: left;
    margin-bottom: 24px;
  }

  .process-steps,
  .phase-run .process-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process-steps::before,
  .phase-run .process-steps::before {
    top: 24px;
    bottom: 24px;
    left: 18px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .process li {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 18px;
  }

  .process-body h3 { margin-top: 7px; }

  .process-body p {
    margin-left: 0;
    margin-right: 0;
    max-width: 520px;
  }
}

@media (max-width: 760px) {
  .site-nav { display: none; }

  .header-inner { justify-content: space-between; gap: 12px; }

  .brand img { height: 30px; }

  .btn-header {
    font-size: 14px;
    padding: 9px 14px;
  }

  .hero { padding: 64px 0 80px; }

  .hero-art { display: none; }

  .section { padding: 72px 0; }

  /* accordéons : l'icône laisse la place au texte */
  .topic > summary {
    gap: 14px;
    padding: 20px 18px;
  }

  .topic-icon {
    width: 32px;
    height: 32px;
  }

  .topic-body { padding: 4px 18px 26px; }

  .topic-head h3 { font-size: 17.5px; }

  .sources,
  .gains {
    padding: 18px 20px;
    gap: 10px 20px;
  }

  .btn-hero {
    font-size: 15.5px;
    padding: 14px 22px;
  }

  .contact-card { padding: 26px 20px; }

  .btn-mail {
    width: 100%;
    justify-content: center;
    font-size: 15.5px;
    padding: 14px 18px;
  }

  .footer-logo { height: 100px; }
}

@media (max-width: 390px) {
  .brand img { height: 26px; }

  .btn-header {
    font-size: 13px;
    padding: 8px 12px;
  }
}
