/* ============================================================================
   AM — Page « Mode d'emploi »  ·  am-mode-emploi.css  (DELTA)
   Chargee APRES am-presentation.css (bloc partage du design system A&M).
   Ne contient QUE les composants propres a la maquette mode-emploi, absents du
   bloc partage : descripteur hero caps, intro .split--intro 5/7 (etalon
   /modeles-remplacement/), FINDER (panneau anthracite + carte de recherche +
   message + entree scan + reassurance), etapes .why numerotees, callout plaque,
   grille .me-brands (8 logos), en-tete FAQ pleine largeur.
   Tout scope .am-modemploi -> zero fuite. Tokens (--ink, --surface-alt, --hairline,
   --muted, --faint, --anthracite, --wide-max, --gutter, --radius) herites de .am-pres.
   Correctifs HERO = pattern MASTER-conforme d'am-sav-live (recalage x=53 SCOPE
   >=900px ; mobile <900px = comme la HOME). 100% reversible.
   ============================================================================ */

/* ===================== HERO (overrides scopes par media) =====================
   DESKTOP (>=900px) : recaler le contenu sur le conteneur 1320 (x=53, comme l'etalon
   /modeles-remplacement/, PAS centre a 1180). H1 54px/1.04 (le theme force h1 clamp
   !important -> on reprend l'ascendant). Boutons de MEME LARGEUR (etalon = 292px).
   -> TOUT enferme en >=900px pour NE PAS toucher le hero MOBILE. */
@media(min-width:900px){
  .am-modemploi .mhero__row{width:auto;max-width:var(--wide-max);padding-left:var(--gutter);padding-right:var(--gutter)}
  #main-content .am-modemploi .mh-title{font-size:54px!important;line-height:1.04!important}
  .am-modemploi .mhero__col{max-width:760px}
  .am-modemploi .mh-btns .hbtn{min-width:292px;justify-content:center}
}
/* MOBILE (<900px) : le hero se comporte comme le hero de la HOME (gutter 44px, H1 30px,
   boutons pleine largeur avec fleche ::after adjacente = defaut .hbtn, pas d'override). */
@media(max-width:899px){
  .am-modemploi .mhero__row{width:auto;max-width:none;padding-left:44px;padding-right:44px}
  #main-content .am-modemploi .mh-title{font-size:30px!important}
}
.am-modemploi .mh-title{text-wrap:balance}

/* Descripteur caps (entre H1 et sous-titre) */
.am-modemploi .mh-desc{color:#c4c4cb;font-size:14px;font-weight:600;letter-spacing:2px;
  text-transform:uppercase;margin:18px 0 0;line-height:1.5}

/* ---------- INTRO : 2 colonnes pleine largeur 5/7 (etalon /modeles-remplacement/) ---------- */
.am-modemploi .split--intro{grid-template-columns:minmax(0,5fr) minmax(0,7fr);
  gap:32px clamp(40px,5.5vw,64px);align-items:start}
.am-modemploi .split--intro .split__head h2.c-h2{margin-bottom:0}
.am-modemploi .split--intro .split__body{max-width:72ch}
.am-modemploi .split--intro .split__body p:first-child{margin-top:0}

/* ============================================================================
   FINDER — le coeur : panneau anthracite plein cadre, carte de recherche blanche.
   ============================================================================ */
.am-modemploi .finder-panel{background:var(--anthracite);border-radius:20px;
  padding:46px 48px 42px;color:#fff;box-shadow:0 30px 70px -40px rgba(0,0,0,.55)}
.am-modemploi .finder-panel__head{max-width:640px;margin:0 0 26px}
.am-modemploi .finder-panel__head .c-eyebrow{color:#9aa0a6}
.am-modemploi .finder-panel__head .c-eyebrow::before{background:#5a5f66}
.am-modemploi .finder-panel__head h2{color:#fff;font-size:30px;font-weight:700;
  letter-spacing:-.02em;line-height:1.14;margin:0}
.am-modemploi .finder-panel__head p{color:#c7cbcf;font-size:16px;line-height:1.55;margin:14px 0 0;max-width:58ch}

/* carte de recherche (blanche) */
.am-modemploi .finder{background:#fff;border-radius:16px;padding:9px}
.am-modemploi .finder__row{display:flex;align-items:stretch;gap:8px}
.am-modemploi .fld{position:relative;display:flex;align-items:center;gap:11px;padding:0 14px;min-width:0}
.am-modemploi .fld__ic{flex:0 0 auto;width:19px;height:19px;color:#6a6e75}
.am-modemploi .fld--brand{flex:0 0 190px}
.am-modemploi .fld--brand select{appearance:none;-webkit-appearance:none;border:0;outline:0;
  background:transparent;cursor:pointer;font:inherit;font-size:15px;font-weight:600;
  color:var(--ink);padding:17px 26px 17px 0;width:100%}
.am-modemploi .fld--brand .chev{position:absolute;right:6px;top:50%;width:9px;height:9px;
  pointer-events:none;border-right:2px solid #6a6e75;border-bottom:2px solid #6a6e75;
  transform:translateY(-65%) rotate(45deg)}
.am-modemploi .fld__sep{flex:0 0 1px;background:var(--hairline);margin:10px 0}
.am-modemploi .fld--ref{flex:1}
.am-modemploi .fld--ref input{flex:1;border:0;outline:0;background:transparent;width:100%;
  font:inherit;font-size:15px;font-weight:500;color:var(--ink);padding:17px 0}
.am-modemploi .fld--ref input::placeholder{color:#9aa0a8;font-weight:400}
.am-modemploi .finder__go{flex:0 0 auto;display:inline-flex;align-items:center;gap:9px;
  background:var(--ink);color:#fff;border:0;cursor:pointer;font:inherit;font-size:15px;
  font-weight:700;padding:0 24px;border-radius:11px;
  transition:background-color .2s,transform .2s,box-shadow .2s}
.am-modemploi .finder__go::after{content:"\2192";font-size:15px;font-weight:600}
.am-modemploi .finder__go:hover{background:#000;transform:translateY(-1px);box-shadow:0 10px 24px -10px rgba(0,0,0,.5)}
.am-modemploi .finder__go:disabled,.am-modemploi .finder__go.is-loading{opacity:.6;cursor:default;transform:none;box-shadow:none}

/* message d'etat (erreur / rappel) */
.am-modemploi .finder__msg{margin:16px 4px 0;font-size:14px;line-height:1.55;color:#c7cbcf}
.am-modemploi .finder__msg a{color:#fff;text-decoration:underline;text-underline-offset:2px}
.am-modemploi .finder__msg--warn{color:#f1c27a}
.am-modemploi .finder__msg--warn a{color:#f6d59a}
.am-modemploi .finder__msg--ok{color:#bfe6c6}

/* ---------- RESULTAT ON-SITE (rendu apres submit — carte blanche, JAMAIS de redirection) ---------- */
.am-modemploi .finder-result{background:#fff;border-radius:16px;padding:26px 28px 24px;margin:16px 0 0;border:1px solid var(--hairline)}
.am-modemploi .finder-result[hidden]{display:none}
.am-modemploi .finder-result__title{font-size:20px;font-weight:700;letter-spacing:-.01em;line-height:1.22;color:var(--ink);margin:0}
.am-modemploi .finder-result__title:focus{outline:none}
.am-modemploi .finder-result__lead{font-size:15.5px;color:var(--muted);line-height:1.55;margin:8px 0 0}
.am-modemploi .finder-result__acts{display:flex;flex-wrap:wrap;align-items:center;gap:14px 20px;margin:20px 0 0}
/* fleche externe ↗ (surcharge le → du .am-btn--primary partage — specificite + ordre suffisent) */
.am-modemploi .finder-result .am-btn--ext::after{content:"\2197"}
.am-modemploi .finder-result__send{display:inline-flex;align-items:center;gap:7px;font-size:14.5px;font-weight:500;color:var(--muted);text-decoration:none;line-height:1.3}
.am-modemploi .finder-result__send b{font-weight:700;color:var(--ink)}
.am-modemploi .finder-result__send .ar{transition:transform .2s}
.am-modemploi .finder-result__send:hover{color:var(--ink)}
.am-modemploi .finder-result__send:hover .ar{transform:translateX(3px)}

/* entree alternative : scan */
.am-modemploi .finder__alt{display:flex;align-items:center;gap:16px;margin:24px 0 0}
.am-modemploi .finder__or{flex:0 0 auto;font-size:12px;font-weight:600;letter-spacing:.14em;
  text-transform:uppercase;color:#8f949b}
.am-modemploi .finder__alt .ln{flex:1;height:1px;background:rgba(255,255,255,.16)}
.am-modemploi .scanlink{flex:0 0 auto;display:inline-flex;align-items:center;gap:11px;color:#fff;
  text-decoration:none;font-size:14.5px;font-weight:600;border:1px solid rgba(255,255,255,.4);
  border-radius:10px;padding:11px 18px;transition:background-color .2s,border-color .2s}
.am-modemploi .scanlink svg{width:19px;height:19px}
.am-modemploi .scanlink .ar{width:15px;height:15px;transition:transform .2s}
.am-modemploi .scanlink:hover{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.55)}
.am-modemploi .scanlink:hover .ar{transform:translateX(4px)}

/* reassurance */
.am-modemploi .trust{margin:26px 0 0;display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  font-size:13px;color:#aeb2b8}
.am-modemploi .trust b{color:#e7e9ec;font-weight:600}
.am-modemploi .trust .dot{width:4px;height:4px;border-radius:50%;background:#5a5d63}

/* ---------- COMMENT CA MARCHE : 3 cartes numerotees ---------- */
.am-modemploi .why{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:48px}
.am-modemploi .why__it{border:1px solid var(--hairline);border-radius:14px;padding:26px 26px 28px;
  background:#fff;position:relative}
.am-modemploi .why__n{position:absolute;top:24px;right:24px;font-size:13px;font-weight:700;color:var(--faint)}
.am-modemploi .why__ic{width:46px;height:46px;border-radius:12px;background:var(--surface-alt);
  display:grid;place-items:center;margin-bottom:18px;color:var(--ink)}
.am-modemploi .why__ic svg{width:23px;height:23px}
.am-modemploi .why__it h3{font-size:18px;font-weight:600;margin:0 0 6px;color:var(--ink)}
.am-modemploi .why__it p{font-size:15px;color:var(--muted);margin:0;line-height:1.55}

/* ---------- CALLOUT (renvoi plaque) ---------- */
.am-modemploi .callout{display:grid;grid-template-columns:auto 1fr auto;gap:26px;align-items:center;
  border:1px solid var(--hairline);border-radius:16px;background:var(--surface-alt);padding:26px 30px;margin-top:44px}
.am-modemploi .callout__ic{width:56px;height:56px;border-radius:14px;background:#fff;border:1px solid var(--hairline);
  display:grid;place-items:center;color:var(--ink)}
.am-modemploi .callout__ic svg{width:27px;height:27px}
.am-modemploi .callout__t h3{font-size:20px;font-weight:700;margin:0 0 5px;color:var(--ink)}
.am-modemploi .callout__t p{margin:0;font-size:15.5px;color:var(--muted);max-width:60ch;line-height:1.55}
.am-modemploi .callout .am-btn{white-space:nowrap}

/* ---------- GRILLE MARQUES (8 logos, fond clair) ---------- */
.am-modemploi .me-brands{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:40px}
.am-modemploi .me-brand{border:1px solid var(--hairline);border-radius:14px;background:#fff;
  padding:22px 22px 18px;display:flex;flex-direction:column;text-decoration:none;
  transition:box-shadow .2s,transform .2s,border-color .2s}
.am-modemploi .me-brand:hover{box-shadow:0 12px 30px -20px rgba(0,0,0,.22);transform:translateY(-2px);border-color:#dfe2e6}
.am-modemploi .me-brand__logo{flex:0 0 auto;height:74px;border-radius:10px;background:var(--surface-alt);
  display:grid;place-items:center;padding:12px 20px;margin-bottom:16px;overflow:hidden}
/* cap PIXEL deterministe (le cap % n'est pas respecte en grille quand la largeur domine
   -> debordait sur les tuiles larges en mobile 1-col). max-width borne l'horizontal. */
.am-modemploi .me-brand__logo img{max-height:42px;max-width:100%;width:auto;height:auto;object-fit:contain;display:block}
.am-modemploi .me-brand__foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto}
.am-modemploi .me-brand__foot > span:first-child{font-size:12.5px;color:var(--muted)}
.am-modemploi .me-brand__foot .go{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;font-weight:600;color:var(--ink)}
.am-modemploi .me-brand__foot .go svg{width:14px;height:14px;transition:transform .2s}
.am-modemploi .me-brand:hover .go svg{transform:translate(2px,-2px)}

/* ---------- EN-TETE FAQ : pleine largeur (MASTER 10.9) ---------- */
.am-modemploi .faq-head{display:flex;justify-content:space-between;align-items:flex-end;
  gap:20px 48px;flex-wrap:wrap;max-width:none;margin:0 0 40px}
.am-modemploi .faq-head__t{max-width:34ch}
.am-modemploi .faq-head .c-h2{margin-bottom:0}
.am-modemploi .faq-head__lead{max-width:52ch;color:var(--muted);font-size:16px;line-height:1.6;margin:0}
/* reponses FAQ pleine largeur du conteneur 1320 (annule le max-width 82ch partage) */
.am-modemploi .faq .a{max-width:none}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media(max-width:980px){
  .am-modemploi .me-brands{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:900px){
  .am-modemploi .why{grid-template-columns:1fr}
  .am-modemploi .callout{grid-template-columns:auto 1fr;gap:20px}
  .am-modemploi .callout .am-btn{grid-column:1/-1;justify-self:start}
}
@media(max-width:860px){
  .am-modemploi .split--intro{grid-template-columns:1fr;gap:24px}
}
@media(max-width:640px){
  .am-modemploi .finder-panel{padding:30px 22px 28px;border-radius:16px}
  .am-modemploi .finder-panel__head h2{font-size:25px}
  .am-modemploi .finder__row{flex-direction:column;gap:0}
  .am-modemploi .fld{padding:4px 14px}
  .am-modemploi .fld--brand{flex:none}
  .am-modemploi .fld--brand select{padding:16px 26px 16px 0}
  .am-modemploi .fld__sep{height:1px;flex:none;margin:0 14px}
  .am-modemploi .finder__go{width:100%;justify-content:center;padding:15px 24px;margin-top:10px}
  .am-modemploi .finder-result{padding:22px 20px 20px}
  .am-modemploi .finder-result__acts{gap:14px}
  .am-modemploi .finder-result .am-btn{width:100%}
  .am-modemploi .finder__alt{flex-direction:column;align-items:stretch;gap:12px}
  .am-modemploi .finder__alt .ln{display:none}
  .am-modemploi .finder__or{text-align:center}
  .am-modemploi .scanlink{justify-content:center}
  .am-modemploi .me-brands{grid-template-columns:1fr}
  .am-modemploi .callout{grid-template-columns:1fr;text-align:left}
  .am-modemploi .callout__ic{display:none}
}
