/* Accueil (refonte du 19/11/2026, docs/pages/accueil.md) : chargé après liste.css (jetons --degrade-bandeau, --ombre-carte) et reel.css, seulement par index.html.
   Famille de la liste et du comparateur : mêmes jetons, aucune couleur nouvelle. Un seul moment fort : le bandeau (titre 61 px, motif « N », barres des métiers
   qui se tracent à l'affichage). Violet = l'acheteur ; le corail n'apparaît que sur « Trouver ma fiche » (.btn--agence, définie dans reel.css). */

/* teinte vive des liserés de la rangée de chiffres (Tom, 19/11/2026) : violet clair saturé, graphique sur fond sombre (≥ 3:1), jamais du texte, jamais corail */
:root{--violet-vif:oklch(72% .19 305)}
/* ------------------------------------------------------------ bandeau */
.hero:has(#recherche-reel){position:relative;isolation:isolate;background:var(--degrade-bandeau)}
.hero:has(#recherche-reel)::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url(motif-bandeau.svg) no-repeat right -70px center/auto 135%}
main>section.hero:has(#recherche-reel){padding-top:44px;padding-bottom:30px}
.hero:has(#recherche-reel) h1{max-width:11ch;font-size:clamp(2.5rem,1.3rem + 5.4vw,3.8125rem);line-height:1.03;letter-spacing:-.03em}
.hero:has(#recherche-reel) .intro{margin-top:20px}
.hero:has(#recherche-reel) .recherche-hero{margin-top:32px;padding:20px}
.hero:has(#recherche-reel) .hero__demande{margin-top:22px}
@media (min-width:1000px){.hero:has(#recherche-reel) .hero__grille{gap:64px;align-items:start}.hero:has(#recherche-reel) .hero__plus{margin-top:8px}}

/* métiers les plus recherchés : une barre par métier, longueur = nombre d'agences de la liste (échelle commune, donnée réelle, violet encre sur piste) */
.recherches li{position:relative;padding-bottom:6px;background:linear-gradient(var(--piste),var(--piste)) left bottom/100% 4px no-repeat}
.recherches li .rech-barre{position:absolute;left:0;bottom:0;height:4px;width:var(--w,0);border-radius:0 2px 2px 0;background:var(--violet-ink);transform-origin:left center}
.rech-barre.w1{--w:5%}
.rech-barre.w2{--w:10%}
.rech-barre.w3{--w:15%}
.rech-barre.w4{--w:20%}
.rech-barre.w5{--w:25%}
.rech-barre.w6{--w:30%}
.rech-barre.w7{--w:35%}
.rech-barre.w8{--w:40%}
.rech-barre.w9{--w:45%}
.rech-barre.w10{--w:50%}
.rech-barre.w11{--w:55%}
.rech-barre.w12{--w:60%}
.rech-barre.w13{--w:65%}
.rech-barre.w14{--w:70%}
.rech-barre.w15{--w:75%}
.rech-barre.w16{--w:80%}
.rech-barre.w17{--w:85%}
.rech-barre.w18{--w:90%}
.rech-barre.w19{--w:95%}
.rech-barre.w20{--w:100%}
@media (prefers-reduced-motion:no-preference){
  .recherches li .rech-barre{animation:rech-trace 700ms cubic-bezier(.25,1,.5,1) both}
  .recherches li:nth-child(2) .rech-barre{animation-delay:60ms}.recherches li:nth-child(3) .rech-barre{animation-delay:120ms}.recherches li:nth-child(4) .rech-barre{animation-delay:180ms}
  .recherches li:nth-child(5) .rech-barre{animation-delay:240ms}.recherches li:nth-child(6) .rech-barre{animation-delay:300ms}.recherches li:nth-child(7) .rech-barre{animation-delay:360ms}.recherches li:nth-child(8) .rech-barre{animation-delay:420ms}
  .hero:has(#recherche-reel)::before{animation:motif-entre 1100ms cubic-bezier(.25,1,.5,1) both}
}
@keyframes rech-trace{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes motif-entre{from{opacity:0;transform:translateX(40px)}to{opacity:1;transform:none}}

/* chiffres de la base : une rangée posée sur le bas du bandeau, séparée par des filets (pas de boîtes) */
.hero__preuves{list-style:none;margin:48px 0 0;padding:26px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 20px;border-top:3px solid var(--violet-vif)}
.hero__preuves li{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"i n" "l l";align-items:center;gap:4px 10px;align-content:start}
.hero__preuves .ico{grid-area:i;width:22px;height:22px;color:var(--violet-vif)}
.hero__preuves strong{grid-area:n;font:700 clamp(1.5rem,1.2rem + 1vw,2rem)/1.1 var(--police-titre);letter-spacing:-.02em;color:var(--sur-sombre)}
.hero__preuves span{grid-area:l;font-size:.9375rem;line-height:1.4;color:var(--sur-sombre-doux)}
@media (min-width:900px){.hero__preuves{grid-template-columns:repeat(4,minmax(0,1fr));gap:0}.hero__preuves li+li{padding-left:28px;border-left:2px solid var(--violet-vif)}}
@media (max-width:699px){.hero:has(#recherche-reel)::before{background-position:right -260px center;opacity:.6}}

/* ------------------------------------------------------------ métiers : familles en panneaux ouverts à la demande */
#metiers .intro-section h2{font-size:var(--t6)}
#catalogue{display:grid;gap:12px;align-items:start}
@media (min-width:900px){#catalogue{grid-template-columns:1fr 1fr;gap:16px 20px}}
#catalogue .famille{border:1px solid var(--trait);border-radius:var(--r-panneau);background:var(--surface);padding:0 22px;transition:background-color .15s ease-out,border-color .15s ease-out}
#catalogue .famille:last-of-type{border-bottom:1px solid var(--trait)}
#catalogue .famille:hover{background:var(--violet-survol)}
#catalogue .famille[open]{border-color:var(--violet-clair);background:var(--surface)}
#catalogue .famille h3{font-size:var(--t3);letter-spacing:-.01em}
#catalogue .famille summary{min-height:76px}
#catalogue .famille .nb{display:inline-block;margin-top:6px;padding:2px 10px;border-radius:var(--r-pastille);background:var(--violet-fond);color:var(--violet-ink);font-weight:500;font-size:.875rem}
#catalogue .famille summary:focus-visible{outline:3px solid var(--violet);outline-offset:2px;border-radius:var(--r-panneau)}
@media (min-width:1100px){#catalogue .metiers{grid-template-columns:1fr}#catalogue .metiers li:nth-child(2){border-top:1px solid var(--trait);padding-top:14px}}

/* ------------------------------------------------------------ comment on vérifie : le contraste sombre de la page, le panneau des badges reste blanc */
#verification.teinte{background-color:var(--violet-ink);background-image:linear-gradient(180deg,var(--violet-ink),var(--violet-deep));border-block:0}
#verification .intro-section h2{color:var(--sur-sombre);font-size:var(--t6);max-width:20ch}
#verification .intro-section p{color:var(--sur-sombre-doux)}
#verification .niveau{background:color-mix(in oklch,var(--sur-sombre) 6%,transparent);border:1.5px dashed color-mix(in oklch,var(--sur-sombre) 45%,transparent)}
#verification .niveau:nth-child(2){border:1.5px solid color-mix(in oklch,var(--sur-sombre) 60%,transparent);background:color-mix(in oklch,var(--sur-sombre) 11%,transparent)}
#verification .niveau h3,#verification .niveau__ou{color:var(--sur-sombre)}
#verification .niveau p,#verification .niveau__n{color:var(--sur-sombre-doux)}
#verification .niveau__ou{color:var(--sur-sombre)}
.verif-releve{margin:0;padding:16px 0 0;border-top:1px solid var(--trait);font-size:.9375rem;color:var(--texte-doux);max-width:none}
.verif-suite{margin:16px 0 20px}

/* ------------------------------------------------------------ villes en puces */
#villes{background:var(--fond-liste)}
.villes--puces{display:flex;flex-wrap:wrap;gap:10px}
.villes--puces li{border-top:0}
.villes--puces a{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:10px 20px;border:1.5px solid var(--violet-clair);border-radius:var(--r-pastille);background:var(--surface);transition:background-color .15s ease-out,border-color .15s ease-out}
.villes--puces a:hover{background:var(--violet-fond);border-color:var(--violet);text-decoration:none}
.villes--puces a:focus-visible{outline:3px solid var(--violet);outline-offset:2px}

/* ------------------------------------------------------------ porte de l'agence */
#agences .cta-fin{padding:36px var(--gout);border-radius:var(--r-panneau);background:var(--violet-fond)}
@media (min-width:768px){#agences .cta-fin{padding:44px 48px}}
#agences .cta-fin h2{font-size:var(--t5);max-width:26ch}
#agences .cta-fin p{margin:12px 0 0}
@media (prefers-reduced-motion:reduce){#catalogue .famille,.villes--puces a{transition:none}}
#metiers .intro-section h2,#verification .intro-section h2{margin-bottom:14px}
@media (max-width:599px){
  #catalogue .famille{padding:0 16px}
  #catalogue .famille h3{font-size:var(--t2)}
  #verification .verif-badges{padding:8px 16px}
  #verification .echelle li{grid-template-columns:minmax(0,1fr) auto}
}
#verification .intro-section h2{font-size:var(--t5)}
#verification .niveau p,#verification .niveau__n{color:oklch(92% .02 300)}
#metiers .intro-section h2{font-size:var(--t4)}
@media (max-width:699px){
  main>section.hero:has(#recherche-reel){padding-top:24px;padding-bottom:20px}
  .hero:has(#recherche-reel) h1{font-size:2.25rem}
  .hero:has(#recherche-reel) .intro{margin-top:12px;font-size:1rem;line-height:1.5}
  .hero:has(#recherche-reel) .recherche-hero{margin-top:20px;padding:16px;gap:10px}
  .hero:has(#recherche-reel) .hero__demande{margin-top:16px}
  .hero:has(#recherche-reel) .hero__plus{padding:18px 16px}
  .hero:has(#recherche-reel) .hero__plus>p{font-size:.875rem;line-height:1.45}
  .hero__preuves{margin-top:28px;padding-top:20px}
}
