/* ==========================================================================
   Millea. — page du Salon de l'Emploi et de la Formation
   Charte : crème #FDFBF6 · vert profond #1F4A3E · corail #C4653C ·
   moutarde #C9A04A · Montserrat (hébergée ici, licence SIL OFL).
   Mobile d'abord : les règles pour grand écran sont toutes dans des
   media queries en fin de fichier.
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("/salon/fonts/montserrat.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/salon/fonts/montserrat-italique.woff2") format("woff2");
  font-weight: 500 600; font-style: italic; font-display: swap;
}

:root {
  --creme: #FDFBF6;
  --vert: #1F4A3E;
  --corail: #C4653C;
  --moutarde: #C9A04A;

  --vert-nuit: #173A30;            /* le vert, assombri pour les fonds profonds */
  --encre: #1B2622;
  --texte: #3B4641;
  --gris: #5F6964;
  --blanc: #FFFFFF;
  --sable: #F5EFE3;                /* la crème, un ton plus chaud, pour les fonds de cartes */
  --trait: rgba(31, 74, 62, .14);
  --trait-fort: rgba(31, 74, 62, .28);

  --ok: var(--vert);
  --moyen: var(--moutarde);
  --non: var(--corail);

  --police: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 18px;
  --r-lg: 28px;
  --gout: 16px;
  --ombre: 0 24px 50px -28px rgba(23, 58, 48, .45);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--creme); color: var(--texte);
  font-family: var(--police); font-size: 1rem; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, fieldset, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--moutarde); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: min(1080px, 100% - 2 * var(--gout)); margin-inline: auto; }
.wrap--etroit { width: min(720px, 100% - 2 * var(--gout)); }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }

/* ---------- Logo et étiquette ---------- */
.logo { font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; text-decoration: none; color: var(--creme); line-height: 1; }
.logo span { color: var(--moutarde); }
.logo--petit { font-size: 1.05rem; color: var(--vert); margin-right: .35em; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .8em 1.4em; border-radius: 999px;
  font-weight: 700; font-size: 1rem; letter-spacing: -.005em; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.98); }
.btn--clair { background: var(--creme); color: var(--vert); }
.btn--clair:hover { background: var(--blanc); box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); }
.btn--ligne { background: transparent; color: var(--creme); border-color: rgba(253, 251, 246, .5); }
.btn--ligne:hover { border-color: var(--creme); }
.btn--vert { background: var(--vert); color: var(--creme); }
.btn--vert:hover { background: var(--vert-nuit); }
.btn--plein { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.lien {
  display: inline-flex; align-items: center; gap: .4em; background: none; border: 0; padding: .5em 0;
  color: var(--gris); font-weight: 600; font-size: .9rem; cursor: pointer;
}
.lien:hover { color: var(--vert); }
.lien[disabled] { visibility: hidden; }

/* ==========================================================================
   1. Premier écran
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--vert); color: var(--creme);
  padding: calc(18px + env(safe-area-inset-top)) 0 44px;
}
.hero__deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__point {
  position: absolute; width: 250px; height: 250px; border-radius: 50%;
  background: var(--moutarde); right: -130px; bottom: -130px;
}
.hero__arc {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  border: 1.5px solid rgba(253, 251, 246, .14); right: -250px; bottom: -250px;
}
.hero__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero__id { display: flex; align-items: center; gap: 14px; margin-top: 34px; }
.hero__photo {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px var(--vert), 0 0 0 5px var(--moutarde);
}
.hero__nom { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.2; }
.hero__role { font-size: .86rem; line-height: 1.4; color: rgba(253, 251, 246, .82); max-width: 26ch; }
.hero__titre {
  margin-top: 26px; font-weight: 800; letter-spacing: -.035em; line-height: 1.04;
  font-size: clamp(2.15rem, 9.2vw, 4.1rem); max-width: 14ch;
}
.hero__titre em { display: block; font-style: normal; color: var(--moutarde); }
.hero__lead { margin-top: 18px; font-size: 1.02rem; line-height: 1.6; color: rgba(253, 251, 246, .88); max-width: 46ch; }
.hero__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; max-width: 420px; }
.lien-contact {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px;
  color: var(--creme); font-weight: 600; font-size: .92rem; text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: rgba(253, 251, 246, .4);
}
.hero__lieu { margin-top: 18px; font-size: .78rem; color: rgba(253, 251, 246, .65); max-width: 23ch; }

/* ==========================================================================
   Sections
   ========================================================================== */
.sect { padding: 56px 0; }
.sur { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--corail); }
.sur--clair { color: var(--moutarde); }
.titre { margin-top: 10px; font-weight: 800; letter-spacing: -.03em; line-height: 1.12; color: var(--vert); font-size: clamp(1.65rem, 6.4vw, 2.6rem); max-width: 22ch; }
.titre--petit { font-size: clamp(1.4rem, 5.2vw, 2rem); }
.titre--clair { color: var(--creme); }
.intro { margin-top: 12px; color: var(--gris); max-width: 58ch; }

/* ---------- 2. Domaines ---------- */
.tuiles { display: grid; gap: 10px; margin-top: 26px; }
.tuile {
  position: relative; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--r);
  padding: 18px 18px 18px 64px;
}
.tuile__ic {
  position: absolute; left: 16px; top: 18px; width: 34px; height: 34px; padding: 7px; border-radius: 50%;
  background: var(--sable); color: var(--vert); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.tuile__titre { font-size: 1rem; font-weight: 700; color: var(--vert); line-height: 1.3; letter-spacing: -.01em; }
.tuile__txt { margin-top: 4px; font-size: .9rem; line-height: 1.5; color: var(--gris); }
.cadre {
  margin-top: 22px; padding: 16px 18px; border-left: 3px solid var(--corail); background: var(--sable);
  border-radius: 0 var(--r) var(--r) 0; font-size: .92rem; color: var(--texte);
}
.cadre strong { color: var(--vert); }

/* ---------- 3. Mini-diagnostic ---------- */
.sect--diag { background: var(--sable); }
.diag {
  scroll-margin-top: 12px;
  margin-top: 26px; background: var(--blanc); border-radius: var(--r-lg); box-shadow: var(--ombre);
  border: 1px solid var(--trait); padding: 22px 18px; min-height: 360px;
}
.diag__promesses { display: grid; gap: 10px; margin-bottom: 24px; }
.diag__promesses li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--encre); }
.diag__promesses .ic { color: var(--corail); margin-top: .15em; stroke-width: 2.4; }
.diag__noscript { margin-top: 14px; font-size: .9rem; }

.diag__tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.diag__theme { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--moutarde); }
.diag__compte { font-size: .8rem; font-weight: 600; color: var(--gris); font-variant-numeric: tabular-nums; white-space: nowrap; }
.diag__barre { height: 4px; background: var(--sable); border-radius: 4px; margin-top: 10px; overflow: hidden; }
.diag__barre span { display: block; height: 100%; width: 0; background: var(--corail); border-radius: 4px; transition: width .35s var(--ease); }

.diag__corps { margin-top: 22px; }
.diag__corps.is-entree { animation: entree .32s var(--ease); }
@keyframes entree { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.q__texte { font-size: clamp(1.15rem, 4.8vw, 1.45rem); font-weight: 700; line-height: 1.35; letter-spacing: -.015em; color: var(--vert); }
.q__aide { margin-top: 6px; font-size: .85rem; color: var(--gris); }
.q__options { display: grid; gap: 10px; margin-top: 20px; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; text-align: left;
  padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--trait-fort); background: var(--blanc);
  font-weight: 600; font-size: .98rem; color: var(--encre); cursor: pointer; line-height: 1.35;
  transition: border-color .15s, background-color .15s, transform .15s var(--ease);
}
.opt:hover { border-color: var(--vert); }
.opt:active { transform: scale(.99); }
.opt[aria-pressed="true"], .opt[aria-checked="true"] { border-color: var(--vert); background: #EEF3EF; }
.opt__puce {
  flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--trait-fort);
  display: grid; place-items: center; color: var(--creme); transition: background-color .15s, border-color .15s;
}
.opt__puce .ic { width: 14px; height: 14px; stroke-width: 3; opacity: 0; }
.opt[aria-pressed="true"] .opt__puce, .opt[aria-checked="true"] .opt__puce { background: var(--vert); border-color: var(--vert); }
.opt[aria-pressed="true"] .opt__puce .ic, .opt[aria-checked="true"] .opt__puce .ic { opacity: 1; }
.opt--multi .opt__puce { border-radius: 6px; }
.opt--etat .opt__puce { border-width: 0; width: 14px; height: 14px; margin-inline: 4px; }
.opt--ok .opt__puce { background: var(--ok); }
.opt--moyen .opt__puce { background: var(--moyen); }
.opt--non .opt__puce { background: var(--non); }
.opt--etat[aria-pressed="true"] .opt__puce { box-shadow: 0 0 0 3px var(--blanc), 0 0 0 5px currentColor; }
.opt--ok[aria-pressed="true"] { border-color: var(--ok); color: var(--vert); }
.opt--moyen[aria-pressed="true"] { border-color: var(--moyen); background: #FBF5E7; color: #6E5517; }
.opt--non[aria-pressed="true"] { border-color: var(--non); background: #FBEEE8; color: #8F4424; }
.q__suite { margin-top: 18px; }
.diag__pied { margin-top: 14px; min-height: 38px; }

/* ---------- Résultat ---------- */
.res__tete { padding-bottom: 18px; border-bottom: 1px solid var(--trait); }
.res__titre { font-size: clamp(1.35rem, 5.4vw, 1.8rem); font-weight: 800; letter-spacing: -.025em; color: var(--vert); line-height: 1.2; }
.res__profil { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.res__profil li { font-size: .78rem; font-weight: 600; padding: .35em .8em; border-radius: 999px; background: var(--sable); color: var(--vert); }
.res__phrase { margin-top: 14px; font-weight: 500; color: var(--encre); }

.res__groupes { display: grid; gap: 10px; margin-top: 20px; }
.groupe { border-radius: 14px; padding: 14px 16px 14px 18px; border-left: 4px solid; background: var(--creme); }
.groupe--ok { border-color: var(--ok); }
.groupe--moyen { border-color: var(--moyen); }
.groupe--non { border-color: var(--non); }
.groupe__titre { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.groupe--ok .groupe__titre { color: var(--vert); }
.groupe--moyen .groupe__titre { color: #8A671E; }
.groupe--non .groupe__titre { color: #A64F2A; }
.groupe ul { margin-top: 6px; display: grid; gap: 2px; }
.groupe li { font-weight: 600; color: var(--encre); font-size: .95rem; }
.groupe__vide { margin-top: 4px; font-size: .88rem; color: var(--gris); font-style: italic; }

.res__bloc { margin-top: 26px; }
.res__sous { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--corail); }
.confier { display: grid; gap: 12px; margin-top: 12px; counter-reset: c; }
.confier li { position: relative; padding: 16px 16px 16px 58px; border-radius: 14px; background: var(--vert); color: var(--creme); }
.confier li::before {
  counter-increment: c; content: "0" counter(c);
  position: absolute; left: 16px; top: 14px; font-weight: 800; font-size: 1.2rem; color: var(--moutarde); letter-spacing: -.02em;
}
.confier h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.confier p { margin-top: 6px; font-size: .9rem; line-height: 1.5; color: rgba(253, 251, 246, .86); }
.confier p.confier__recois { color: var(--moutarde); font-weight: 600; }
.res__reste { margin-top: 14px; padding: 14px 16px; border-radius: 14px; border: 1.5px dashed var(--trait-fort); font-size: .92rem; }
.res__reste strong { color: var(--vert); }
.res__mot { margin-top: 22px; font-size: 1rem; font-weight: 500; color: var(--encre); padding-left: 14px; border-left: 3px solid var(--moutarde); }
.res__mot p + p { margin-top: 8px; }
.res__avert { margin-top: 18px; font-size: .78rem; color: var(--gris); }
.res__actions { display: grid; gap: 10px; margin-top: 22px; }
.res__actions .btn--ligne { color: var(--vert); border-color: var(--trait-fort); }
.res__actions .btn--ligne:hover { border-color: var(--vert); }
.res__refaire { justify-self: center; }

/* ---------- 4. Formulaire facultatif ---------- */
.form { margin-top: 20px; display: grid; gap: 14px; }
.choix { display: grid; gap: 8px; }
.choix legend { font-size: .8rem; font-weight: 700; color: var(--vert); margin-bottom: 8px; padding: 0; }
.case { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; line-height: 1.45; cursor: pointer; }
.case input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--vert); }
.case--distincte { padding: 14px; border-radius: 14px; background: var(--sable); font-size: .85rem; color: var(--texte); }
.form__ligne { display: grid; gap: 14px; }
.champ { display: grid; gap: 6px; }
.champ span { font-size: .8rem; font-weight: 700; color: var(--vert); }
.champ small { font-weight: 500; color: var(--gris); }
.champ input {
  min-height: 50px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--trait-fort);
  background: var(--blanc); font-size: 1rem; /* 16 px : iOS ne zoome pas */
}
.champ input:focus { border-color: var(--vert); outline: none; box-shadow: 0 0 0 3px rgba(31, 74, 62, .15); }
.champ input[aria-invalid="true"] { border-color: var(--corail); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__statut { min-height: 1.4em; font-weight: 600; font-size: .92rem; }
.form__statut.is-ok { color: var(--vert); }
.form__statut.is-err { color: #A64F2A; }
.form__rgpd { font-size: .74rem; line-height: 1.55; color: var(--gris); }
.form__rgpd strong { color: var(--texte); }
.form__rgpd a { color: var(--vert); }
.form.is-envoye .champ, .form.is-envoye .choix, .form.is-envoye .case--distincte, .form.is-envoye button { display: none; }

/* ---------- 5. La suite ---------- */
.sect--suite { background: var(--vert); color: var(--creme); position: relative; overflow: hidden; }
.sect--suite::after {
  content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: var(--corail);
  right: -80px; top: -80px; opacity: .9;
}
.suite { position: relative; z-index: 1; display: grid; gap: 30px; }
.suite__lead { margin-top: 12px; color: rgba(253, 251, 246, .86); max-width: 50ch; margin-bottom: 22px; }
.contacts { display: grid; gap: 10px; }
.contacts a {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 16px; border-radius: 14px;
  background: rgba(253, 251, 246, .07); border: 1px solid rgba(253, 251, 246, .14); text-decoration: none;
  transition: background-color .2s;
}
.contacts a:hover { background: rgba(253, 251, 246, .13); }
.contacts .ic { width: 22px; height: 22px; color: var(--moutarde); }
.contacts span { display: grid; font-weight: 600; font-size: .95rem; line-height: 1.3; word-break: break-word; }
.contacts small { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(253, 251, 246, .6); }

/* ---------- Pied ---------- */
.pied { padding: 26px 0 calc(30px + env(safe-area-inset-bottom)); font-size: .8rem; color: var(--gris); }
.pied__inner { display: grid; gap: 8px; }
.pied a { color: var(--vert); }

/* ==========================================================================
   Grands écrans
   ========================================================================== */
@media (min-width: 640px) {
  :root { --gout: 32px; }
  .hero { padding-bottom: 64px; }
  .hero__point { width: 300px; height: 300px; right: -120px; bottom: -120px; }
  .hero__arc { width: 520px; height: 520px; right: -230px; bottom: -230px; }
  .hero__lieu { max-width: none; }
  .hero__actions { flex-direction: row; flex-wrap: wrap; align-items: center; max-width: none; }
  .tuiles { grid-template-columns: 1fr 1fr; }
  .diag { padding: 32px; }
  .form__ligne { grid-template-columns: 1fr 1fr; }
  .res__groupes { grid-template-columns: repeat(3, 1fr); }
  .res__actions { grid-template-columns: 1fr 1fr; }
  .res__refaire { grid-column: 1 / -1; }
  .sect { padding: 80px 0; }
}
@media (min-width: 960px) {
  .hero { padding: 26px 0 88px; }
  .hero__point { width: 400px; height: 400px; right: -40px; top: 170px; bottom: auto; }
  .hero__arc { width: 680px; height: 680px; right: -180px; top: 30px; bottom: auto; }
  .hero__titre, .hero__lead { max-width: 15ch; }
  .hero__lead { max-width: 44ch; }
  .hero__id { margin-top: 60px; }
  .tuiles { grid-template-columns: repeat(3, 1fr); }
  .diag { padding: 44px 48px; }
  .suite { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 56px; }
}
