/* Junostra — feuille de styles V1 intermédiaire — 20260811 */

:root {
  --teal: #156969;
  --violet: #705ABF;
  --violet-profond: #432580;
  --terracotta: #D96941;
  --creme: #FAF6EC;
  --blanc: #FFFFFF;
  --encre: #0A0A0A;
  --filet: rgba(21, 105, 105, 0.18);
  --filet-clair: rgba(250, 246, 236, 0.25);
  --largeur: 1080px;
  --rayon: 8px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--blanc);
  color: var(--encre);
  font-family: "Noto Sans", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: "Commissioner", system-ui, sans-serif;
  font-weight: 600;
  color: var(--violet-profond);
  line-height: 1.25;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem); }
h4 { font-size: 1.0625rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--violet); }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

strong { font-weight: 600; }

/* ---------------------------------------------------------------- structure */

.contenu {
  width: min(100% - 2.5rem, var(--largeur));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(2.75rem, 1.5rem + 4vw, 6rem) 0;
  background: var(--blanc);
  overflow: hidden;
}

.section--filet { border-top: 1px solid var(--filet); }

.section--sombre {
  background: var(--violet-profond);
  color: var(--creme);
}
.section--sombre h1,
.section--sombre h2,
.section--sombre h3,
.section--sombre h4 { color: var(--creme); }
.section--sombre a { color: var(--creme); }
.section--sombre a:hover { color: var(--terracotta); }

/* filigranes de fond */
.section--motif::before,
.section--motif-clair::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: min(560px, 65%);
  aspect-ratio: 900 / 620;
  background: url("img/20260811_filigrane_graphe.svg") no-repeat left bottom / contain;
  pointer-events: none;
}
.section--motif-clair::before {
  inset: 0 0 auto auto;
  width: min(620px, 60%);
  aspect-ratio: 880 / 580;
  background-image: url("img/20260811_filigrane_clair.svg");
  background-position: right top;
}
.section > .contenu { position: relative; z-index: 1; }

.mesure { max-width: 46rem; }
.mesure-large { max-width: 54rem; }
.centre { text-align: center; margin-inline: auto; }

.chapeau {
  font-size: 1.0625rem;
  margin-top: 1.25rem;
}

.eyebrow {
  font-family: "Commissioner", sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.section--sombre .eyebrow { color: var(--terracotta); }

/* ---------------------------------------------------------------- grilles */

.grille { display: grid; gap: 1.75rem; margin-top: 2.5rem; }
.grille--2 { grid-template-columns: repeat(2, 1fr); }
.grille--3 { grid-template-columns: repeat(3, 1fr); }
.grille--hero { grid-template-columns: 3fr 2fr; align-items: center; gap: 3rem; margin-top: 0; }

@media (max-width: 900px) {
  .grille--3 { grid-template-columns: repeat(2, 1fr); }
  .grille--hero { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 620px) {
  .grille--2, .grille--3 { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- cartes */

.carte {
  background: var(--creme);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  padding: 1.75rem;
}
.carte--liseret { border-left: 3px solid var(--terracotta); }
.carte h4 { margin-bottom: 0.5rem; }
.carte p { font-size: 0.9375rem; }

.section--sombre .carte {
  background: rgba(250, 246, 236, 0.06);
  border-color: var(--filet-clair);
  color: var(--creme);
}

.picto { width: 48px; height: 48px; display: block; margin-bottom: 0.875rem; }
.picto--grand { width: 68px; height: 68px; }

/* ---------------------------------------------------------------- boutons */

.bouton {
  display: inline-block;
  font-family: "Commissioner", sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
  padding: 0.8rem 1.6rem;
  border-radius: var(--rayon);
  background: var(--teal);
  color: var(--creme);
  text-decoration: none;
  transition: background-color 0.18s ease;
}
.bouton:hover { background: var(--violet); color: var(--creme); }

.bouton--clair,
.section--sombre a.bouton--clair { background: var(--creme); color: var(--violet-profond); }
.bouton--clair:hover,
.section--sombre a.bouton--clair:hover { background: var(--terracotta); color: var(--creme); }

.bouton--ligne {
  background: none;
  padding: 0;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
}
.bouton--ligne:hover { background: none; color: var(--violet); }

.actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 2rem; }
.actions--centre { justify-content: center; }

/* ---------------------------------------------------------------- réassurance */

.reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: center;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--filet);
  font-size: 0.9375rem;
}
.reassurance li { list-style: none; }
.reassurance ul { display: contents; margin: 0; padding: 0; }

/* ---------------------------------------------------------------- étapes */

.etapes { counter-reset: etape; }
.etape .numero {
  font-family: "Commissioner", sans-serif;
  font-weight: 600;
  font-size: 2rem;
  color: var(--teal);
  line-height: 1.1;
  display: block;
}
.etape h4 { margin: 0.5rem 0; color: var(--teal); }
.etape p { font-size: 0.9375rem; }
.section--sombre .etape .numero,
.section--sombre .etape h4 { color: var(--terracotta); }

/* ---------------------------------------------------------------- tableau */

.tableau-enveloppe { overflow-x: auto; margin-top: 2.5rem; }
table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  overflow: hidden;
  font-size: 0.9375rem;
}
th {
  background: var(--creme);
  font-family: "Commissioner", sans-serif;
  font-weight: 600;
  color: var(--violet-profond);
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--filet);
  vertical-align: top;
}
td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--filet);
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }
td:first-child { font-weight: 600; color: var(--violet-profond); }
.col-juno { color: var(--teal); }

/* ---------------------------------------------------------------- listes */

.liste-preuve { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.liste-preuve li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}
.liste-preuve li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
}
.section--sombre .liste-preuve li::before { background: var(--terracotta); }

/* ---------------------------------------------------------------- chiffre */

.chiffre {
  font-family: "Commissioner", sans-serif;
  font-weight: 600;
  font-size: clamp(3rem, 2rem + 5vw, 5.5rem);
  line-height: 1.02;
  color: var(--terracotta);
  display: block;
}
.chiffre + p { font-size: 0.9375rem; margin-top: 0.75rem; }

/* ---------------------------------------------------------------- lignage */

.lignage {
  background: var(--creme);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  padding: 1.75rem;
  margin-top: 2.5rem;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.8125rem;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-x: auto;
}
.lignage .cle { color: var(--teal); font-weight: 600; }
.lignage .src { color: var(--terracotta); }

/* ---------------------------------------------------------------- faq */

.faq details {
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  background: var(--creme);
  padding: 1.1rem 1.4rem;
  margin-bottom: 0.875rem;
}
.faq summary {
  font-family: "Commissioner", sans-serif;
  font-weight: 600;
  color: var(--violet-profond);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--terracotta); font-size: 1.25rem; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { font-size: 0.9375rem; margin-top: 0.875rem; }

/* ---------------------------------------------------------------- en-tête */

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--filet);
}
.entete .contenu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 92px;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 56px; width: auto; display: block; }
@media (max-width: 620px) { .logo img { height: 44px; } }

.nav { margin-left: auto; display: flex; align-items: center; gap: 0.35rem; }
.nav > .rubrique { position: relative; }
.nav .declencheur {
  font-family: "Commissioner", sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--violet-profond);
  background: none;
  border: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.nav .declencheur:hover { background: var(--creme); color: var(--teal); }

.sous-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 270px;
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  box-shadow: 0 12px 28px rgba(67, 37, 128, 0.10);
  padding: 0.5rem;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.rubrique:hover .sous-menu,
.rubrique:focus-within .sous-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.sous-menu a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  color: var(--encre);
  text-decoration: none;
}
.sous-menu a:hover { background: var(--creme); color: var(--teal); }

.nav .bouton { margin-left: 0.5rem; padding: 0.6rem 1.1rem; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; }
.burger span { display: block; width: 22px; height: 2px; background: var(--violet-profond); margin: 4px 0; }

@media (max-width: 980px) {
  .burger { display: block; margin-left: auto; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--blanc);
    border-bottom: 1px solid var(--filet);
    padding: 0.75rem 1.25rem 1.25rem;
    display: none;
  }
  .nav.ouvert { display: flex; }
  .sous-menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 0.5rem 0.7rem;
    min-width: 0; width: 100%;
  }
  .nav .bouton { margin: 0.75rem 0 0; text-align: center; }
}

/* ---------------------------------------------------------------- pied */

.pied {
  background: var(--violet-profond);
  color: var(--creme);
  padding: 3rem 0 2rem;
  font-size: 0.9375rem;
}
.pied a { color: var(--creme); text-decoration: none; }
.pied a:hover { color: var(--terracotta); text-decoration: underline; }
.pied-haut { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.pied-bas {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--filet-clair);
  font-size: 0.875rem;
  opacity: 0.85;
}

/* ---------------------------------------------------------------- fil */

.fil { font-size: 0.875rem; color: var(--teal); padding-top: 1.75rem; }
.fil a { text-decoration: none; }
.fil span { opacity: 0.6; margin: 0 0.4rem; }

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

.separateur {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 auto;
  opacity: 0.7;
}

/* ---------------------------------------------------------------- formulaire */

.formulaire .champ { margin-bottom: 1.25rem; }
.formulaire label {
  display: block;
  font-family: "Commissioner", sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--violet-profond);
  margin-bottom: 0.4rem;
}
.formulaire .obl {
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--terracotta);
  margin-left: 0.35rem;
}
.formulaire input,
.formulaire select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--encre);
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
}
.formulaire input:focus,
.formulaire select:focus { border-color: var(--teal); outline-offset: 1px; }
.formulaire button { width: 100%; margin-top: 0.5rem; border: 0; cursor: pointer; font-size: 1rem; }
.mentions-form { font-size: 0.8125rem; margin-top: 1rem; text-align: center; opacity: 0.85; }

/* ---------------------------------------------------------------- contact */

.formulaire .intro-contact { font-size: 0.9375rem; margin-bottom: 1.5rem; }
.formulaire .bouton { display: inline-block; }
.formulaire .adresse-directe { font-size: 0.9375rem; margin-top: 1.25rem; }
.mentions-form {
  font-size: 0.8125rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--filet);
  opacity: 0.85;
}

.schema {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 2.5rem auto 0;
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 1.5rem;
}
@media (max-width: 620px) {
  .schema { padding: 0.75rem; }
  table { min-width: 520px; font-size: 0.875rem; }
  th, td { padding: 0.7rem 0.8rem; }
}

/* ---------------------------------------------------------------- portraits */

.portrait {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 1.25rem;
  border: 2px solid var(--blanc);
  box-shadow: 0 0 0 1px var(--filet);
}
@media (max-width: 620px) { .portrait { width: 92px; height: 92px; } }
