/* ==========================================================================
   Kiff ta recherche d'emploi — identité visuelle
   Mur turquoise, stickers à gros contour encre, orange/jaune du logo,
   ardoise des cartes de visite, typo marqueur pour l'énergie street-art.
   ========================================================================== */

/* ---------- Polices (auto-hébergées) ---------- */
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Permanent Marker"; src: url("../fonts/permanent-marker-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- Jetons ---------- */
:root {
  --mur: #22BFCF;
  --mur-fonce: #139DB0;
  --orange: #F28C1B;
  --jaune: #F9BE2F;
  --ardoise: #2D2C4A;
  --encre: #1A1A2B;
  --gris: #4A4A5E;
  --papier: #FFFFFF;

  --f-texte: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-titre: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-marqueur: "Permanent Marker", "Marker Felt", "Comic Sans MS", cursive;

  --trait: 3px solid var(--encre);
  --rayon: 18px;

  /* Coup de pinceau (forme des bandeaux, comme « recherche » / « d'emploi » dans le logo) */
  --pinceau: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M4 7C40 2 80 6 120 3s60 1 76 4l-2 9 5 6-4 10c-40 6-90 3-130 6S18 37 3 34l4-10-6-8z'/%3E%3C/svg%3E");
}

/* Thèmes de fiche */
[data-theme="turquoise"] { --c: var(--mur);     --c-texte: var(--encre); --c-doux: #E3F6F8; }
[data-theme="orange"]    { --c: var(--orange);  --c-texte: var(--encre); --c-doux: #FDEFE0; }
[data-theme="jaune"]     { --c: var(--jaune);   --c-texte: var(--encre); --c-doux: #FEF6DE; }
[data-theme="ardoise"]   { --c: var(--ardoise); --c-texte: #FFFFFF;      --c-doux: #ECECF3; }
[data-theme="grille"]    { --c: #A3E7EF;        --c-texte: var(--encre); --c-doux: #F0FAFB; }

[data-ton="turquoise"] { --t: var(--mur);     --t-texte: var(--encre); }
[data-ton="orange"]    { --t: var(--orange);  --t-texte: var(--encre); }
[data-ton="ardoise"]   { --t: var(--ardoise); --t-texte: #FFFFFF; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-texte);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--encre);
  background: var(--mur);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
strong { font-weight: 700; }
h1, h2, h3 { font-weight: 400; }

:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; }
[data-theme="ardoise"] .barre :focus-visible,
.pied :focus-visible { outline-color: #FFFFFF; }
main:focus, .hero__titre:focus { outline: none; }

.evitement {
  position: absolute; left: -9999px; top: 12px; z-index: 100;
  padding: 10px 16px; background: #FFFFFF; border: var(--trait); border-radius: 12px;
  font-weight: 700; text-decoration: none;
}
.evitement:focus { left: 12px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.noscript { margin: 40px 20px; padding: 20px; background: #FFFFFF; border: var(--trait); border-radius: var(--rayon); font-weight: 600; }

/* ---------- Éléments communs ---------- */
.pastille { position: relative; display: grid; place-items: center; width: 64px; height: 64px; flex: none; }
.pastille .splat { position: absolute; inset: -7px; width: calc(100% + 14px); height: calc(100% + 14px); fill: var(--c); }
.pastille .ico { position: relative; width: 72%; height: 72%; overflow: visible; }

.ico { --i-trait: var(--encre); --i-fond: #FFFFFF; --i-accent: var(--jaune); }
.ico * { fill: none; stroke: var(--i-trait); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.ico .f { fill: var(--i-fond); }
.ico .a { fill: var(--i-accent); }
.ico .o { fill: var(--orange); }
.ico .i { fill: var(--i-trait); }

.fleche { width: 38px; height: 38px; flex: none; overflow: visible; }
.fleche path { fill: var(--jaune); stroke: var(--encre); stroke-width: 3; stroke-linejoin: round; }

.picto { width: 30px; height: 30px; flex: none; overflow: visible; }
.picto path { fill: var(--jaune); stroke: var(--encre); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.picto .n { fill: none; }

/* Bandeau « coup de pinceau » */
.tape, .bandeau span { position: relative; display: inline-block; isolation: isolate; }
.tape::before, .bandeau span::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--c, var(--ardoise));
  -webkit-mask: var(--pinceau) center / 100% 100% no-repeat;
          mask: var(--pinceau) center / 100% 100% no-repeat;
}

/* Carte sticker (accueil + « fiche suivante ») */
.carte {
  --r: 0deg;
  display: grid;
  grid-template-columns: 64px 1fr 38px;
  align-items: center;
  gap: 16px;
  min-height: 96px;
  padding: 14px 16px 14px 14px;
  background: var(--papier);
  color: var(--encre);
  text-decoration: none;
  border: var(--trait);
  border-radius: var(--rayon);
  box-shadow: 5px 6px 0 var(--ardoise);
  transform: rotate(var(--r));
  transition: transform .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.carte[data-theme="ardoise"] .ico { --i-trait: #FFFFFF; --i-fond: var(--ardoise); }
.carte__texte { display: grid; gap: 2px; min-width: 0; }
.carte__titre { font-family: var(--f-marqueur); font-size: 1.45rem; line-height: 1.1; text-wrap: balance; }
.carte__sous { font-weight: 600; font-size: 1rem; line-height: 1.3; color: var(--gris); }
@media (hover: hover) {
  .carte:hover { transform: rotate(0deg) translate(-2px, -3px); box-shadow: 8px 10px 0 var(--ardoise); }
}
.carte:active { transform: rotate(0deg) translate(3px, 4px); box-shadow: 1px 1px 0 var(--ardoise); }

/* ---------- Accueil : le mur ---------- */
.mur {
  display: block;
  background:
    radial-gradient(circle at 7% 9%, rgba(255,255,255,.3) 0 12px, transparent 13px),
    radial-gradient(circle at 13% 13%, rgba(255,255,255,.3) 0 4px, transparent 5px),
    radial-gradient(circle at 94% 5%, var(--mur-fonce) 0 30px, transparent 31px),
    radial-gradient(circle at 86% 11%, var(--mur-fonce) 0 7px, transparent 8px),
    radial-gradient(circle at 3% 52%, var(--mur-fonce) 0 20px, transparent 21px),
    radial-gradient(circle at 9% 57%, var(--mur-fonce) 0 5px, transparent 6px),
    radial-gradient(circle at 97% 68%, rgba(255,255,255,.28) 0 16px, transparent 17px),
    radial-gradient(circle at 91% 73%, rgba(255,255,255,.28) 0 5px, transparent 6px),
    radial-gradient(circle at 12% 94%, rgba(249,190,47,.6) 0 10px, transparent 11px),
    radial-gradient(circle at 18% 97%, rgba(249,190,47,.6) 0 4px, transparent 5px),
    var(--mur);
  background-repeat: no-repeat;
}
.accueil { padding: 34px 18px 48px; }
.accueil__tete { max-width: 480px; margin: 0 auto; text-align: center; }

/* L'affiche collée au mur */
.affiche {
  position: relative;
  margin: 0;
  padding: 18px 14px 26px;
  background: var(--papier);
  border-radius: 3px;
  transform: rotate(-2deg);
  box-shadow: 0 20px 30px -14px rgba(26, 26, 43, .55);
}
.affiche::before, .affiche::after {
  content: ""; position: absolute; top: -13px; width: 86px; height: 28px;
  background: rgba(249, 190, 47, .88);
  clip-path: polygon(0 12%, 5% 0, 50% 6%, 96% 0, 100% 14%, 97% 52%, 100% 88%, 95% 100%, 50% 94%, 4% 100%, 0 86%, 3% 50%);
}
.affiche::before { left: 22px; transform: rotate(-9deg); }
.affiche::after { right: 22px; transform: rotate(7deg); }
.affiche img { width: 100%; }

.bandeau { position: relative; z-index: 1; margin: -16px 0 0; }
.bandeau span {
  --c: var(--ardoise);
  padding: 11px 24px 13px;
  color: #FFFFFF;
  font-family: var(--f-titre);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.1;
  transform: rotate(1.4deg);
  text-wrap: balance;
}

.cartes { list-style: none; max-width: 480px; margin: 36px auto 0; padding: 0; display: grid; gap: 20px; }
.cartes li:nth-child(1) .carte { --r: -1deg; }
.cartes li:nth-child(2) .carte { --r: .8deg; }
.cartes li:nth-child(3) .carte { --r: -.6deg; }
.cartes li:nth-child(4) .carte { --r: 1deg; }

/* ---------- Pied ---------- */
.pied {
  padding: 38px 20px calc(38px + env(safe-area-inset-bottom));
  background: var(--ardoise);
  color: #FFFFFF;
  text-align: center;
  border-top: var(--trait);
}
.pied__slogan {
  max-width: 15ch;
  margin: 0 auto 14px;
  font-family: var(--f-titre);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--jaune);
  text-wrap: balance;
}
.pied__contact { margin: 0; font-size: 1rem; line-height: 1.6; color: rgba(255, 255, 255, .85); }
.pied a { color: #FFFFFF; font-weight: 700; text-underline-offset: 3px; }

/* ---------- Fiche ---------- */
.barre {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: var(--c);
  color: var(--c-texte);
  border-bottom: var(--trait);
}
.retour {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 44px;
  padding: 6px 16px 6px 10px;
  background: var(--papier);
  color: var(--encre);
  border: var(--trait);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--encre);
  font-weight: 700; font-size: 1rem;
  text-decoration: none;
}
.retour:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--encre); }
.retour svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.barre__logo { display: block; }
.barre__logo img { width: 104px; }

.fiche { display: block; background: var(--c-doux); }

.hero { padding: 26px 18px 32px; background: var(--c); color: var(--c-texte); border-bottom: var(--trait); }
.hero__dedans { max-width: 720px; margin: 0 auto; display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: center; }
.hero .pastille { width: 84px; height: 84px; }
.hero .splat { fill: var(--papier); }
.hero__titre { margin: 0; font-family: var(--f-marqueur); font-size: clamp(2.1rem, 8.5vw, 3.3rem); line-height: 1.05; text-wrap: balance; }
.hero__accroche { margin: 8px 0 0; font-weight: 600; font-size: 1.15rem; line-height: 1.35; text-wrap: pretty; }

.fiche__corps { max-width: 720px; margin: 0 auto; padding: 28px 16px 44px; display: grid; gap: 28px; }

/* Avant / Pendant / Après */
.moment, .issue, .bilan {
  position: relative;
  padding: 18px 16px 10px;
  background: var(--papier);
  border: var(--trait);
  border-radius: var(--rayon);
  box-shadow: 5px 6px 0 var(--ardoise);
}
.moment__tete { margin: 0 0 6px; padding-right: 58px; display: grid; justify-items: start; gap: 8px; }
.tape {
  margin-left: -4px;
  padding: 7px 18px 9px;
  font-family: var(--f-marqueur);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--c-texte);
  transform: rotate(-1.5deg);
}
.moment__titre { font-family: var(--f-titre); font-weight: 800; font-size: 1.55rem; line-height: 1.1; }

.compteur {
  position: absolute; top: 18px; right: 14px;
  padding: 2px 10px;
  font-weight: 800; font-size: .95rem; line-height: 1.5;
  background: var(--papier);
  border: 2px solid var(--encre);
  border-radius: 999px;
  transition: background-color .2s ease;
}
.est-complet > .compteur { background: var(--jaune); }

/* Cases à cocher */
.coches { list-style: none; margin: 0; padding: 0; }
.coches li + li { border-top: 2px dashed #D6D9E0; }
.coche { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; padding: 13px 2px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.coche input { position: absolute; left: 2px; top: 13px; width: 30px; height: 30px; margin: 0; opacity: 0; cursor: pointer; }
.coche__case {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  background: var(--papier);
  border: 3px solid var(--encre);
  border-radius: 9px;
  transition: background-color .15s ease, transform .15s ease;
}
.coche__case svg { width: 20px; height: 20px; fill: none; stroke: var(--encre); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .2s ease; }
.coche input:checked + .coche__case { background: var(--jaune); transform: rotate(-4deg); }
.coche input:checked + .coche__case svg { stroke-dashoffset: 0; }
.coche input:focus-visible + .coche__case { outline: 3px solid var(--encre); outline-offset: 3px; }
.coche__texte { padding-top: 1px; }
.coche input:checked ~ .coche__texte { color: var(--gris); }

/* Méthode CAR */
.astuce {
  padding: 18px 16px;
  background: var(--jaune);
  border: var(--trait);
  border-radius: var(--rayon);
  box-shadow: 5px 6px 0 var(--ardoise);
  transform: rotate(-.6deg);
}
.astuce__titre, .phrase__titre { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-family: var(--f-marqueur); font-size: 1.45rem; line-height: 1.15; }
.astuce .picto path { fill: var(--papier); }
.astuce__intro { margin: 0 0 14px; }
.car { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.car li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; padding: 8px 12px 8px 8px; background: var(--papier); border: 2.5px solid var(--encre); border-radius: 14px; }
.car__lettre { display: grid; place-items: center; width: 52px; height: 52px; font-family: var(--f-titre); font-weight: 800; font-size: 1.9rem; line-height: 1; background: var(--mur); border: 3px solid var(--encre); border-radius: 50%; }
.car li:nth-child(2) .car__lettre { background: var(--orange); }
.car li:nth-child(3) .car__lettre { background: var(--ardoise); color: #FFFFFF; }
.car__mot { display: grid; line-height: 1.3; }
.car__mot strong { font-family: var(--f-titre); font-weight: 800; font-size: 1.3rem; line-height: 1.15; }

/* La phrase qui sauve */
.phrase__titre { margin-bottom: 14px; }
.phrase__contexte { margin: 6px 0 10px; font-weight: 700; }
.phrase__ou { margin: -4px 0 12px 14px; font-family: var(--f-marqueur); font-size: 1.2rem; }
.bulle {
  position: relative;
  margin: 0 0 26px;
  padding: 16px 18px;
  background: var(--papier);
  border: var(--trait);
  border-radius: 24px;
  box-shadow: 5px 6px 0 var(--c);
}
.bulle::after {
  content: ""; position: absolute; left: 36px; bottom: -13px;
  width: 22px; height: 22px;
  background: var(--papier);
  border-right: 3px solid var(--encre);
  border-bottom: 3px solid var(--encre);
  border-bottom-right-radius: 4px;
  transform: rotate(45deg);
}
.bulle p { margin: 0; font-weight: 600; font-size: 1.2rem; line-height: 1.45; }
.phrase .bulle:last-child { margin-bottom: 10px; }

/* À éviter */
.eviter {
  padding: 18px 16px;
  background: var(--ardoise);
  color: #FFFFFF;
  border: var(--trait);
  border-radius: var(--rayon);
  box-shadow: 5px 6px 0 var(--orange);
  transform: rotate(.5deg);
}
.eviter__titre { margin: 0 0 10px; font-family: var(--f-marqueur); font-size: 1.45rem; line-height: 1.15; color: var(--jaune); }
.eviter ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.eviter li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.eviter li svg { width: 28px; height: 28px; padding: 5px; background: var(--orange); border-radius: 50%; fill: none; stroke: var(--encre); stroke-width: 4; stroke-linecap: round; }

/* Et maintenant ? — choix de situation */
.issues__question { margin: 0 0 12px; font-family: var(--f-titre); font-weight: 800; font-size: 1.6rem; line-height: 1.1; }
.issues__choix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.choix {
  min-height: 58px;
  padding: 10px 6px;
  font-family: var(--f-titre); font-weight: 800; font-size: 1.15rem; line-height: 1.05;
  color: var(--encre);
  background: var(--papier);
  border: var(--trait);
  border-radius: 14px;
  box-shadow: 3px 4px 0 var(--ardoise);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.choix::before { content: ""; display: block; width: 12px; height: 12px; margin: 0 auto 5px; background: var(--t); border: 2px solid var(--encre); border-radius: 50%; }
.choix[aria-selected="true"] { background: var(--t); color: var(--t-texte); transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ardoise); }
.choix[aria-selected="true"]::before { background: var(--papier); }
.issue { box-shadow: 5px 6px 0 var(--t); }
.issue[hidden] { display: none; }
.issue__titre { margin: 0 0 4px; padding-right: 58px; font-family: var(--f-marqueur); font-size: 1.45rem; line-height: 1.15; }
.issue__sugg { margin: 14px 0 10px; font-weight: 700; }
.issue .bulle { --c: var(--t); margin-bottom: 20px; }

/* Mini-bilan */
.bilan { padding-bottom: 18px; box-shadow: 5px 6px 0 var(--mur); }
.bilan__titre { margin: 0; font-family: var(--f-marqueur); font-size: 1.45rem; line-height: 1.15; }
.bilan__intro { margin: 2px 0 14px; font-weight: 600; }
.bilan__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bilan__liste li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; font-size: 1.15rem; line-height: 1.35; }
.bilan__num { display: grid; place-items: center; width: 44px; height: 44px; font-family: var(--f-titre); font-weight: 800; font-size: 1.5rem; line-height: 1; background: var(--jaune); border: 3px solid var(--encre); border-radius: 50%; }

.rappel {
  margin: 0;
  padding: 16px 18px;
  font-weight: 600; font-size: 1.15rem; line-height: 1.4;
  background: var(--jaune);
  border: var(--trait);
  border-radius: var(--rayon);
  transform: rotate(-.6deg);
}
.rappel strong { font-family: var(--f-marqueur); font-weight: 400; }

.fin {
  margin: 8px 0 0;
  text-align: center;
  font-family: var(--f-marqueur);
  font-size: clamp(1.8rem, 7.5vw, 2.6rem);
  line-height: 1.15;
  text-wrap: balance;
}
.fin .fleche { display: inline-block; width: 1.1em; height: 1.1em; margin-left: .2em; vertical-align: -.15em; }

/* Bas de fiche */
.remise { margin: -8px 0 0; text-align: center; }
.remise__bouton {
  padding: 10px 12px;
  font: inherit; font-weight: 700; font-size: 1rem;
  color: var(--encre);
  background: none; border: 0;
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.suite { display: grid; gap: 14px; padding-top: 22px; border-top: 3px dashed rgba(26, 26, 43, .25); }
.suite__label { margin: 0; font-family: var(--f-titre); font-weight: 800; font-size: 1.25rem; }
.carte--suite { --r: .6deg; }
.suite__accueil { justify-self: center; padding: 8px; font-weight: 700; text-underline-offset: 3px; }

/* ---------- Mes postulations ---------- */
[data-theme="grille"] .hero {
  /* quadrillage façon tableau de la brochure */
  background-image:
    linear-gradient(rgba(19, 157, 176, .3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 157, 176, .3) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
}

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px;
  padding: 12px 22px;
  font-family: var(--f-titre); font-weight: 800; font-size: 1.3rem; line-height: 1.1;
  color: var(--encre);
  background: var(--jaune);
  border: var(--trait);
  border-radius: 14px;
  box-shadow: 4px 5px 0 var(--ardoise);
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.bouton svg { width: 24px; height: 24px; margin-left: -4px; fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; }
@media (hover: hover) { .bouton:hover { transform: translate(-1px, -2px); box-shadow: 6px 7px 0 var(--ardoise); } }
.bouton:active { transform: translate(3px, 4px); box-shadow: 1px 1px 0 var(--ardoise); }
.bouton--suppression { font-size: 1.1rem; min-height: 48px; background: var(--papier); }
.bouton--suppression[data-etape="confirmer"] { background: var(--orange); }

.bouton-mini {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 6px 16px;
  font-weight: 700; font-size: .95rem;
  color: var(--encre);
  background: var(--papier);
  border: 2.5px solid var(--encre);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--encre);
  text-decoration: none;
}
.bouton-mini:active { transform: translate(2px, 2px); box-shadow: none; }

.actions-tableau { margin: 0; }
.message { margin: 0; padding: 12px 16px; font-weight: 700; background: var(--mur); border: var(--trait); border-radius: 14px; }
.message--erreur { background: var(--orange); }
.intro-exemples { margin: 0; padding: 14px 16px; font-weight: 600; background: var(--papier); border: 2.5px dashed var(--encre); border-radius: 14px; }
.note-stockage { margin: -12px 0 0; font-size: .95rem; color: var(--gris); }
.astuce--courte p { margin: 0; }
.astuce--courte .astuce__titre { margin-bottom: 6px; }

.statut {
  display: inline-block;
  padding: 4px 12px;
  font-family: var(--f-titre); font-weight: 800; font-size: 1.05rem; line-height: 1.1;
  white-space: nowrap;
  border: 2.5px solid var(--encre);
  border-radius: 999px;
}
.statut[data-statut="attente"] { background: var(--ardoise); color: #FFFFFF; }
.statut[data-statut="oui"]     { background: var(--mur); }
.statut[data-statut="non"]     { background: var(--orange); }

.pastille-exemple {
  display: inline-block; justify-self: start;
  padding: 1px 12px 2px;
  font-family: var(--f-marqueur); font-size: .95rem; line-height: 1.4;
  background: var(--jaune);
  border: 2.5px solid var(--encre);
  border-radius: 999px;
  transform: rotate(-3deg);
}
.ligne__metier { font-weight: 600; font-size: .95rem; line-height: 1.3; color: var(--gris); }
.ligne__nom { font-family: var(--f-marqueur); font-weight: 400; font-size: 1.4rem; line-height: 1.15; }
.ligne__info { font-size: 1rem; line-height: 1.4; }
.ligne__info a { font-weight: 700; text-underline-offset: 3px; }
.vide { color: rgba(26, 26, 43, .35); }

/* Tableau : grand écran = tableau façon brochure */
.tableau-cadre {
  overflow-x: auto;
  background: #DDF6F9;
  border: var(--trait);
  border-radius: var(--rayon);
  box-shadow: 6px 7px 0 var(--ardoise);
}
.tableau { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.4; }
.tableau th {
  padding: 14px 12px 10px;
  text-align: left; vertical-align: bottom;
  font-size: .9rem; font-weight: 700; line-height: 1.25;
  border-bottom: 2px solid var(--mur-fonce);
}
.tableau td { padding: 14px 12px; vertical-align: top; border-top: 1px dashed rgba(19, 157, 176, .6); }
.tableau td + td, .tableau th + th { border-left: 1px solid rgba(19, 157, 176, .35); }
.tableau tbody tr:first-child td { border-top: 0; }
.tableau .ligne__entreprise { min-width: 210px; }
.ligne__entreprise > * { display: block; }
.ligne__entreprise > .pastille-exemple { display: inline-block; margin-bottom: 6px; }
.ligne--exemple td { background: rgba(255, 255, 255, .45); }
.ligne__actions { white-space: nowrap; }
.tableau .ligne__commentaire { min-width: 190px; max-width: 260px; }
.commentaire { white-space: pre-line; overflow-wrap: anywhere; }

/* Tableau : mobile = une carte par postulation */
@media (max-width: 899.98px) {
  .tableau-cadre { overflow: visible; background: none; border: 0; border-radius: 0; box-shadow: none; }
  .tableau, .tableau tbody, .tableau tr, .tableau td { display: block; }
  .tableau thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .tableau tbody { display: grid; gap: 24px; }
  .tableau tr {
    position: relative;
    padding: 16px 16px 12px;
    background: var(--papier);
    border: var(--trait);
    border-radius: var(--rayon);
    box-shadow: 5px 6px 0 var(--ardoise);
  }
  .tableau tr.ligne--exemple { border-style: dashed; }
  .tableau td { padding: 0; border: 0; background: none; }
  .tableau td + td { border-left: 0; }
  .tableau .ligne__entreprise { display: grid; gap: 2px; min-width: 0; padding: 0 118px 12px 0; }
  .tableau tbody tr td[data-label] {
    display: grid; grid-template-columns: 8.6em 1fr; gap: 12px;
    padding: 8px 0;
    font-size: 1.05rem;
    border-top: 2px dashed #D6D9E0;
  }
  .tableau td[data-label]::before { content: attr(data-label); font-weight: 700; font-size: .95rem; line-height: 1.6; color: var(--gris); }
  .tableau td.ligne__reponse { position: absolute; top: 16px; right: 14px; }
  .tableau tbody tr td.ligne__commentaire { display: block; max-width: none; }
  .tableau tbody tr td.ligne__commentaire::before { display: block; margin-bottom: 2px; }
  .tableau tbody tr td.ligne__commentaire.est-vide { display: none; }
  .tableau td.ligne__actions { padding-top: 10px; text-align: right; }
  .tableau td.ligne__actions:empty { display: none; }
}

/* Formulaire */
.formulaire { display: grid; gap: 26px; }
.formulaire fieldset {
  min-width: 0; margin: 0;
  padding: 18px 16px 4px;
  background: var(--papier);
  border: var(--trait);
  border-radius: var(--rayon);
  box-shadow: 5px 6px 0 var(--ardoise);
}
.formulaire legend {
  padding: 4px 16px 5px;
  font-family: var(--f-marqueur); font-size: 1.2rem; line-height: 1.2;
  background: var(--c);
  border: 2.5px solid var(--encre);
  border-radius: 999px;
  transform: rotate(-1.5deg);
}
.champ { display: grid; gap: 6px; margin-bottom: 16px; min-width: 0; }
.champ label { font-weight: 700; line-height: 1.3; }
.champ__requis { font-weight: 600; font-size: .95rem; color: var(--gris); }
.champ input, .champ textarea {
  width: 100%; min-width: 0; min-height: 52px;
  padding: 10px 14px;
  font: inherit; font-size: 1.1rem;
  color: var(--encre);
  background: var(--papier);
  border: 2.5px solid var(--encre);
  border-radius: 12px;
  -webkit-appearance: none; appearance: none;
}
.champ textarea { min-height: 120px; line-height: 1.45; resize: vertical; }
.champ input::placeholder, .champ textarea::placeholder { color: #8A8A9A; }
.champ input::-webkit-date-and-time-value { text-align: left; }
.champ input:focus-visible, .champ textarea:focus-visible { outline: 3px solid var(--mur); outline-offset: 2px; }
.champ__question { margin: 0 0 10px; font-weight: 700; line-height: 1.3; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.reponses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.reponse { position: relative; display: block; }
.reponse input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.reponse span {
  display: grid; place-items: center;
  min-height: 54px; padding: 8px 6px;
  text-align: center;
  font-family: var(--f-titre); font-weight: 800; font-size: 1.15rem; line-height: 1.05;
  background: var(--papier);
  border: var(--trait);
  border-radius: 14px;
  box-shadow: 3px 4px 0 var(--ardoise);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.reponse input:checked + span { background: var(--t); color: var(--t-texte); transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ardoise); }
.reponse input:focus-visible + span { outline: 3px solid var(--encre); outline-offset: 3px; }

.formulaire__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.lien-annuler { padding: 8px; font-weight: 700; text-underline-offset: 3px; }
.zone-suppression { padding-top: 20px; border-top: 3px dashed rgba(26, 26, 43, .25); }

/* ---------- Animation d'entrée (seulement au changement de vue) ---------- */
.app.entree > * { animation: entree .32s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes entree { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Grand écran ---------- */
@media (min-width: 900px) {
  .accueil {
    max-width: 1140px; margin: 0 auto;
    padding: 64px 36px 80px;
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 64px; align-items: center;
    min-height: calc(100vh - 190px);
  }
  .accueil__tete, .cartes { max-width: none; margin: 0; }
  .bandeau span { font-size: 1.75rem; }
  .carte__titre { font-size: 1.6rem; }
  .pied__slogan { max-width: none; font-size: 2.3rem; }

  .barre { padding-left: 28px; padding-right: 28px; }
  .barre__logo img { width: 120px; }
  .hero { padding: 40px 24px 46px; }
  .hero__dedans { grid-template-columns: 124px 1fr; gap: 28px; }
  .hero .pastille { width: 124px; height: 124px; }
  .fiche__corps { padding: 44px 24px 64px; gap: 34px; }
  .fiche__corps--large, .fiche--large .hero__dedans { max-width: 1180px; }
  .fiche__corps--large > .suite { width: 100%; max-width: 620px; justify-self: center; }
}
