/* style.css : page d'inscription InLab'DRH. Mobile d'abord.
   Charte : docs/04-CHARTE-GRAPHIQUE.md. Toute couleur passe le contraste AA. */

/* ── Polices auto-hébergées (OFL) ─────────────────────────────────── */
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-400-600.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

/* ── Jetons ───────────────────────────────────────────────────────── */
:root {
  --creme: #FBF7F1;          /* fond, mesuré sur le visuel LinkedIn */
  --sable: #F3ECE2;          /* sections alternées */
  --blanc: #FFFFFF;
  --nuit: #26364D;           /* « DRH » du logo : texte et titres, 11,5:1 sur crème */
  --nuit-profond: #1C2A3D;   /* section d'inscription */
  --texte-doux: #55606E;     /* 6:1 sur crème */
  --violet: #42529F;         /* bulle du logo : boutons, 7,1:1 avec du blanc */
  --violet-fonce: #36448A;
  --violet-pale: #E8EAF5;
  --orange: #D04512;         /* visuel : grands titres seulement, 4,3:1 */
  --orange-texte: #B23C0E;   /* petit texte, 5,5:1 sur crème */
  --orange-clair: #F0875C;   /* sur fond nuit, 4,8:1 */
  --trait: #E4DBCE;

  --police-titre: 'Outfit', system-ui, sans-serif;
  --police-texte: 'Inter', system-ui, sans-serif;

  --hauteur-bandeau: 4rem;
  --rayon: 14px;
  --ombre: 0 1px 2px rgba(38, 54, 77, .06), 0 8px 24px rgba(38, 54, 77, .08);
}

/* ── Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hauteur-bandeau) + 1rem);
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--creme);
  color: var(--nuit);
  font: 400 1rem/1.65 var(--police-texte);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--violet); text-underline-offset: .2em; }
a:hover { color: var(--violet-fonce); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 600; }
h1, h2, h3 { font-family: var(--police-titre); line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }

.invisible {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--nuit); color: var(--blanc); padding: .6rem 1rem; border-radius: 8px;
}
.evitement:focus { top: 1rem; color: var(--blanc); }

.conteneur { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.conteneur--etroit { width: min(100% - 2rem, 48rem); }

/* ── Boutons ──────────────────────────────────────────────────────── */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .75rem 1.4rem;
  background: var(--violet); color: var(--blanc);
  border: 2px solid var(--violet); border-radius: 999px;
  font: 600 1rem/1.2 var(--police-titre); text-decoration: none; text-align: center;
  transition: background-color .2s, border-color .2s, transform .2s;
  cursor: pointer;
}
.bouton:hover { background: var(--violet-fonce); border-color: var(--violet-fonce); color: var(--blanc); transform: translateY(-1px); }
.bouton--secondaire { background: transparent; color: var(--violet); }
.bouton--secondaire:hover { background: var(--violet-pale); color: var(--violet-fonce); }
.bouton--petit { min-height: 2.5rem; padding: .5rem 1rem; font-size: .9rem; }
.bouton--plein { width: 100%; }
.bouton:disabled { opacity: .7; cursor: wait; transform: none; }

/* ── Bandeau fixe ─────────────────────────────────────────────────── */
.bandeau {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 241, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--trait);
}
.bandeau__barre { display: flex; align-items: center; justify-content: space-between; min-height: var(--hauteur-bandeau); }
.bandeau__logo img { width: auto; height: 2.75rem; }
.bandeau__logo picture { height: 2.75rem; }

/* ── Premier écran ────────────────────────────────────────────────── */
.hero { padding: 2rem 0 3rem; }
.hero__grille { display: grid; gap: 2rem; align-items: center; }
.surtitre {
  font: 600 .85rem/1.4 var(--police-titre); letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange-texte); margin-bottom: 1rem;
}
.hero__titre { font-size: clamp(2.3rem, 8.5vw, 4.1rem); font-weight: 700; line-height: 1.04; letter-spacing: -.03em; margin-bottom: 1.25rem; }
.accent { color: var(--orange); }
.hero__accroche { font: 500 1.2rem/1.45 var(--police-titre); margin-bottom: .9rem; }
.hero__chapo { color: var(--texte-doux); margin-bottom: 1.25rem; max-width: 38rem; }
.pastille {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .9rem; margin-bottom: 1.5rem;
  background: var(--blanc); border: 1px solid var(--trait); border-radius: 999px;
  font: 600 .9rem/1.3 var(--police-titre);
}
.pastille::before {
  content: ''; width: .6rem; height: .6rem; border-radius: 50%; flex: none;
  background: var(--orange); box-shadow: 0 0 0 4px rgba(208, 69, 18, .15);
}
.pastille--apres::before { background: var(--texte-doux); box-shadow: none; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__actions .bouton { flex: 1 1 14rem; }
.hero__image { justify-self: center; width: min(100%, 28rem); }
/* L'image se fond dans le fond crème, dont elle a la couleur : pas de cadre, et le coin
   de l'ordinateur qui touche le bord gauche s'efface (recette 2026-10-08). */
img.hero__illustration {
  -webkit-mask-image: radial-gradient(ellipse 80% 78% at 52% 50%, #000 66%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 78% at 52% 50%, #000 66%, transparent 100%);
}

.reperes {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem;
  margin-top: 2.5rem;
}
.repere {
  background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: .9rem 1rem;
}
.repere dt { font: 600 .75rem/1.3 var(--police-titre); letter-spacing: .08em; text-transform: uppercase; color: var(--orange-texte); }
.repere dd { font: 600 1rem/1.35 var(--police-titre); margin-top: .25rem; }

/* ── Assistants IA ─────────────────────────────────────────────────── */
.assistants { padding-bottom: 1rem; }
.assistants__carte {
  background: var(--blanc); border: 1px solid var(--trait); border-radius: 20px;
  padding: 1.5rem 1.25rem; text-align: center; box-shadow: var(--ombre);
}
.assistants__titre { font-size: clamp(1.3rem, 4.5vw, 1.75rem); font-weight: 700; margin-bottom: 1.1rem; }
.assistants__logos {
  list-style: none; padding: 0; display: flex; justify-content: center; flex-wrap: wrap;
  gap: .4rem .5rem; margin-bottom: 1rem;
}
/* 3,2rem : les cinq logos tiennent sur une ligne à 375px de large. */
.assistants__logos picture { width: 3.2rem; }
.assistants__logo { width: 100%; height: auto; }
.assistants__texte { color: var(--texte-doux); max-width: 40rem; margin-inline: auto; }

/* ── Sections ─────────────────────────────────────────────────────── */
.section { padding: 3.5rem 0; }
.section--sable { background: var(--sable); }
.section__titre { font-size: clamp(1.75rem, 5.5vw, 2.6rem); font-weight: 700; margin-bottom: 1.25rem; }
.section__intro { font-size: 1.1rem; max-width: 46rem; margin-bottom: 2rem; }
.section__intro--ligne { max-width: none; }
/* Sur une seule ligne sur grand écran (recette 2026-10-08) : à 1rem, la phrase tient dans
   les 72rem du conteneur ; en dessous de 1200px, elle passe à la ligne normalement. */
@media (min-width: 1200px) {
  .section__intro--ligne { font-size: 1rem; white-space: nowrap; }
}
.prose > * + * { margin-top: 1rem; }
.prose--lecture { max-width: 46rem; }
.prose--large { font-size: 1.05rem; max-width: 46rem; margin-top: 2rem; }
.deux-colonnes { display: grid; gap: 2rem; align-items: start; }

.usages {
  list-style: none; padding: 1.5rem; display: grid; gap: .9rem; margin-top: 1.25rem; max-width: 72rem;
  background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre);
}
.usages li { position: relative; padding-left: 2rem; }
.usages li::before {
  content: ''; position: absolute; left: 0; top: .35rem;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--violet-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2342529F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.questions { list-style: none; padding: 0; display: grid; gap: .75rem; }
.question {
  position: relative; display: flex; align-items: center; min-height: 4.5rem;
  padding: 1.1rem 1.25rem 1.1rem 3.4rem;
  background: var(--blanc); border-radius: var(--rayon);
  font: 500 1.08rem/1.4 var(--police-titre);
}
.question::before {
  content: '?'; position: absolute; left: 1rem; top: 50%; translate: 0 -50%;
  width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--orange); color: var(--blanc); font: 700 1.05rem/1 var(--police-titre);
}
.citation {
  border-left: 4px solid var(--orange); padding: .25rem 0 .25rem 1.1rem;
  font: 600 1.15rem/1.45 var(--police-titre);
}

.acquis { list-style: none; padding: 0; display: grid; gap: .9rem; }
.acquis__carte {
  display: flex; gap: .9rem; align-items: flex-start;
  background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 1.25rem;
}
.acquis__coche {
  flex: none; width: 2.2rem; height: 2.2rem; padding: .4rem; border-radius: 50%;
  background: var(--violet); fill: none; stroke: var(--blanc); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}
.acquis__carte strong { font-family: var(--police-titre); font-size: 1.08rem; display: block; }

.programme { list-style: none; padding: 0; display: grid; gap: 1rem; counter-reset: temps; }
.temps {
  position: relative; counter-increment: temps;
  background: var(--blanc); border-radius: var(--rayon); padding: 1.5rem 1.25rem 1.25rem 4.25rem;
}
.temps::before {
  content: counter(temps); position: absolute; left: 1.1rem; top: 1.35rem;
  width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--nuit); color: var(--blanc); font: 700 1.05rem/1 var(--police-titre);
}
.temps__moment { font: 600 .75rem/1.3 var(--police-titre); letter-spacing: .08em; text-transform: uppercase; color: var(--orange-texte); }
.temps__titre { font-size: 1.25rem; margin: .2rem 0 .5rem; }

.encart {
  margin-top: 1.5rem; padding: 1.25rem 1.4rem;
  background: var(--blanc); border-left: 4px solid var(--violet); border-radius: var(--rayon);
}
.encart > * + * { margin-top: .5rem; }
.encart__titre { font-size: 1.2rem; }
.encart--violet { background: var(--violet-pale); }

.intervenants { list-style: none; padding: 0; display: grid; gap: 1rem; }
.intervenant {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.25rem;
}
.intervenant picture { flex: none; }
.intervenant__photo { width: 6rem; height: 6rem; border-radius: 50%; object-fit: cover; }
.intervenant__nom { font-size: 1.3rem; }
.intervenant__role { color: var(--orange-texte); font: 600 .95rem/1.4 var(--police-titre); margin-bottom: .6rem; }
.intervenant div > p + p { margin-top: .6rem; }
@media (max-width: 479px) {
  .intervenant { flex-direction: column; }
}

.modalites { display: grid; gap: 0; }
.modalites__ligne { display: grid; gap: .15rem; padding: .8rem 0; border-bottom: 1px solid var(--trait); }
.modalites__ligne dt { font: 600 .8rem/1.3 var(--police-titre); letter-spacing: .06em; text-transform: uppercase; color: var(--orange-texte); }

.lieu { background: var(--blanc); border-radius: var(--rayon); padding: 1.5rem; box-shadow: var(--ombre); }
.lieu > * + * { margin-top: .75rem; }
.lieu__titre { font-size: 1.4rem; }
.lieu__adresse { font-weight: 600; }
.lieu__photos { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.1rem; }
.lieu__photos picture { aspect-ratio: 4 / 3; }
.lieu__photo { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

/* ── Inscription ──────────────────────────────────────────────────── */
.section--nuit { background: var(--nuit-profond); color: var(--creme); }
.section--nuit a { color: var(--creme); }
.inscription { display: grid; gap: 2rem; align-items: start; }
.inscription__texte > p { font-size: 1.1rem; }
.inscription__rappel { list-style: none; padding: 0; margin-top: 1.5rem; display: grid; gap: .4rem; }
.inscription__rappel strong { color: var(--orange-clair); }

.carte-formulaire {
  background: var(--blanc); color: var(--nuit); border-radius: 20px; padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.carte-formulaire a { color: var(--violet); }
.formulaire { display: grid; gap: 1.1rem; }
.formulaire__duo { display: grid; gap: 1.1rem; }
.champ { display: grid; gap: .35rem; }
.champ label { font: 600 .95rem/1.3 var(--police-titre); }
.champ input[type='text'], .champ input[type='email'] {
  width: 100%; min-height: 3rem; padding: .7rem .9rem;
  border: 1.5px solid #B9B2A8; border-radius: 10px; background: var(--blanc);
  font: 400 1rem/1.4 var(--police-texte); color: var(--nuit);
}
.champ input:focus-visible { outline: 3px solid var(--violet); outline-offset: 1px; border-color: var(--violet); }
.champ input[aria-invalid='true'] { border-color: var(--orange-texte); }
.champ__erreur { color: var(--orange-texte); font-size: .9rem; font-weight: 600; }
.champ__erreur:empty { display: none; }
.requis { color: var(--orange-texte); }
.champ--case { grid-template-columns: auto 1fr; column-gap: .7rem; align-items: start; }
.champ--case input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; accent-color: var(--violet); }
.champ--case label { font: 400 .92rem/1.45 var(--police-texte); }
.champ--case .champ__erreur { grid-column: 1 / -1; }
.formulaire__rgpd { font-size: .85rem; color: var(--texte-doux); }
.formulaire__retour { font-weight: 600; }
.formulaire__retour:empty { display: none; }
.formulaire__retour--succes {
  padding: 1rem 1.1rem; border-radius: 10px; background: #E6F2EA; color: #1D5A35;
}
.formulaire__retour--erreur {
  padding: 1rem 1.1rem; border-radius: 10px; background: #FBEAE3; color: #8F2F0B;
}
.carte-formulaire > .formulaire__retour--erreur { margin-bottom: 1rem; }
/* Hors écran, jamais display:none (BONNES-PRATIQUES §6). */
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── Questions fréquentes ─────────────────────────────────────────── */
.faq { display: grid; gap: .6rem; }
.faq__item { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 1.1rem 3rem 1.1rem 1.25rem; position: relative;
  font: 600 1.05rem/1.4 var(--police-titre);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+'; position: absolute; right: 1.25rem; top: 50%; translate: 0 -50%;
  font: 500 1.5rem/1 var(--police-titre); color: var(--violet);
}
.faq__item[open] summary::after { content: '−'; }
.faq__item p { padding: 0 1.25rem 1.2rem; }

/* ── Pied de page ─────────────────────────────────────────────────── */
.pied { background: var(--sable); padding: 2.5rem 0; border-top: 1px solid var(--trait); }
.pied__grille { display: grid; gap: 1rem; justify-items: start; }
.pied__logo img { width: 4.5rem; height: auto; }
.pied__texte { max-width: 32rem; }
.pied__liens { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.pied__legal { font-size: .85rem; color: var(--texte-doux); }

/* ── Page de texte (mentions légales) ─────────────────────────────── */
.page-texte { padding: 2.5rem 0 4rem; }
.page-texte h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin-bottom: 1.5rem; }
.page-texte h2 { font-size: 1.4rem; margin-top: 2.25rem; }

/* ── Écrans moyens ────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .reperes { grid-template-columns: repeat(4, 1fr); }
  .acquis, .intervenants { grid-template-columns: 1fr 1fr; }
  .formulaire__duo { grid-template-columns: 1fr 1fr; }
  .modalites__ligne { grid-template-columns: 8rem 1fr; gap: 1rem; }
  .carte-formulaire { padding: 2rem; }
}

/* ── Grands écrans ────────────────────────────────────────────────── */
@media (min-width: 960px) {
  :root { --hauteur-bandeau: 4.5rem; }
  .bandeau__logo img, .bandeau__logo picture { height: 3.1rem; }
  .hero { padding: 3.5rem 0 4rem; }
  .hero__grille { grid-template-columns: 1.25fr 1fr; gap: 3.5rem; }
  .hero__image { width: 100%; max-width: 27.5rem; justify-self: end; }
  .hero__actions .bouton { flex: 0 0 auto; }
  .section { padding: 5rem 0; }
  .deux-colonnes { grid-template-columns: 1.15fr 1fr; gap: 3.5rem; }
  .deux-colonnes--large { grid-template-columns: 1fr 1fr; }
  .questions { grid-template-columns: 1fr 1fr; }
  .assistants__carte { padding: 2rem 2.5rem; }
  .assistants__logos { gap: .5rem 2.5rem; }
  .assistants__logos picture { width: 4.5rem; }
  .usages { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; padding: 1.75rem 2rem; }
  .acquis { grid-template-columns: repeat(4, 1fr); }
  .acquis__carte { flex-direction: column; }
  .programme { grid-template-columns: repeat(4, 1fr); }
  .temps { padding: 4.25rem 1.4rem 1.5rem; }
  .temps::before { top: 1.4rem; left: 1.4rem; }
  .inscription { grid-template-columns: 1fr 1.1fr; gap: 4rem; }
  .pied__grille { grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; }
  .pied__legal { grid-column: 1 / -1; }
}

/* ── Mouvement réduit ─────────────────────────────────────────────── */
/* ⚠️ « transition: none », jamais une durée de 0,01 ms sur * : WebKit animerait
   alors la couleur du texte depuis le noir (BONNES-PRATIQUES §9). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
