/* /assets/css/index.css — page d'accueil.
   Refonte du 01/10/2026 (maquette du fondateur, « la valeur d'abord, le compte ensuite ») :
   hero = barre de recherche, aperçu d'offres, pitch en 3 blocs, bande entreprise. Conservés
   tels quels : preuve sociale, badge App Store, bandeau Écoles & CFA, animations .reveal.
   Thème clair uniquement (comme avant la refonte). Le pied de page a son propre CSS
   (assets/css/footer.css), les guides aussi (discover.css), la fenêtre d'inscription aussi
   (signup-modal.css), l'autocomplétion de ville aussi (city-autocomplete.css). */

:root {
  --bg: #FAFBFC;
  --surface: #FFFFFF;
  --ink: #0F172A;
  --ink-soft: #475569;   /* texte secondaire : 7,6:1 sur blanc (AA) */
  --ink-faint: #64748B;  /* placeholders, mentions discrètes */
  --line: #E2E8F0;
  --soft: #F1F5F9;
  --soft-2: #F8FAFC;
  --green: #10B981;      /* accent décoratif uniquement, jamais pour du texte (2,5:1) */
  --green-ink: #047857;  /* texte et boutons verts */
  --green-hover: #065F46;
  --green-soft: #ECFDF5;
  --green-line: #A7F3D0;
  --blue: #3B82F6;
  --blue-ink: #1E40AF;
  --blue-soft: #EFF6FF;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 2px; }
input::placeholder { color: var(--ink-faint); }
main { flex: 1; }

/* En-tête : commun à toutes les pages publiques depuis le 01/10/2026,
   voir includes/site-header.php et assets/css/site-header.css. */

/* --- HERO : RECHERCHE ------------------------------------------------------------ */
.hero { padding: 56px 20px 40px; }
.hero-inner { max-width: 880px; margin: 0 auto; text-align: center; }

/* BADGE DE CATÉGORIE (26/08/2026) : nomme « alternance » avant même la lecture du titre.
   Ne pas le retirer sans le remplacer par autre chose qui dit « alternance » au-dessus de
   la ligne de flottaison. */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 8px 16px; margin-bottom: 22px;
  background: var(--green-soft); color: var(--green-ink);
  border: 1.5px solid var(--green-line); border-radius: 99px;
  font-weight: 700; font-size: 13.5px; text-wrap: balance;
}
.hero-badge .lmp-icon { flex: none; }

h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.2vw, 58px); font-weight: 800;
  line-height: 1.08; letter-spacing: -0.03em;
  margin-bottom: 18px; text-wrap: balance;
}
h1 span { color: var(--green-ink); }

.subtitle {
  font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft);
  line-height: 1.55; font-weight: 500;
  max-width: 640px; margin: 0 auto 32px; text-wrap: pretty;
}

.search-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 40px -20px rgba(15, 23, 42, 0.18);
  text-align: left;
}
.search-field-what { flex: 1 1 260px; }
.search-field-where { flex: 1 1 220px; }
.search-field-what,
.search-field-inner {
  display: flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 8px 14px; border-radius: 12px; cursor: text;
}
.search-field-what:hover,
.search-field-inner:hover { background: var(--soft-2); }
.search-icon { display: flex; flex: none; color: var(--green-ink); }
.search-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.search-label { font-size: 12px; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; }
.search-text input {
  border: none; outline: none; background: transparent; width: 100%;
  font-family: var(--font-body); font-size: 16px; color: var(--ink); padding: 2px 0;
  -webkit-appearance: none; appearance: none;
}
.search-text input::-webkit-search-cancel-button { cursor: pointer; }
/* Le focus clavier reste visible malgré outline:none sur le champ : on l'affiche sur la zone. */
.search-field-what:focus-within,
.search-field-inner:focus-within { box-shadow: inset 0 0 0 2px var(--green-ink); }
.search-sep { width: 1px; background: var(--line); margin: 10px 0; flex: none; }
.search-submit {
  flex: 1 1 180px; min-height: 60px; padding: 0 24px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: none; border-radius: 12px; cursor: pointer;
  background: var(--green-ink); color: #FFFFFF;
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  transition: background-color 0.2s ease;
}
.search-submit:hover { background: var(--green-hover); }
/* Empilé : le séparateur vertical n'a plus de sens. */
@media (max-width: 560px) {
  .search-sep { display: none; }
  .search-field-what, .search-field-where, .search-submit { flex-basis: 100%; }
}

.popular {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px;
  margin-top: 20px;
}
.popular-label { font-size: 14px; color: var(--ink-soft); font-weight: 600; margin-right: 4px; }
.popular-pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; white-space: nowrap;
  border-radius: 99px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.popular-pill:hover { border-color: var(--green-ink); color: var(--green-ink); }

/* LIGNE DE RÉASSURANCE : des mentions vraies quel que soit le volume, affichables dès
   maintenant (la preuve sociale chiffrée attend SUCCESS_STORIES_PUBLIC_THRESHOLD). */
.reassure {
  list-style: none; display: flex; justify-content: center; flex-wrap: wrap;
  gap: 10px 28px; margin: 28px auto 0;
}
.reassure li {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
}
.reassure li::before { content: "\2713"; color: var(--green-ink); font-weight: 700; }
.reassure li.reassure-strong { font-weight: 600; color: var(--ink); }
/* Chiffre qui compte de 0 à sa valeur réelle (assets/js/index.js). tabular-nums évite que
   la largeur du texte saute pendant le comptage. */
.count-up { font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .hero { padding: 36px 16px 32px; }
  .hero-badge { font-size: 12.5px; padding: 7px 14px; }
  .reassure { gap: 8px 18px; margin-top: 24px; }
  .reassure li { font-size: 13px; }
}

/* --- SECTIONS ------------------------------------------------------------------- */
.home-section { max-width: 1120px; margin: 0 auto; padding: 0 20px; width: 100%; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.section-head-stack { display: block; max-width: 640px; margin-bottom: 24px; }
.eyebrow {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--green-ink);
}
.home-section h2 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
  margin-top: 6px;
}
.offers-preview h2 { font-size: clamp(24px, 3.4vw, 32px); }
.pitch h2 { font-size: clamp(26px, 4.4vw, 34px); margin-top: 8px; }
.section-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 700; font-size: 15px; text-decoration: none; color: var(--green-ink);
}
.section-link:hover { text-decoration: underline; color: var(--green-hover); }

/* Aperçu d'offres */
.offers-preview { padding-top: 24px; }
.offer-grid {
  list-style: none; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.offer-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.offer-card:hover { border-color: var(--green-ink); box-shadow: 0 14px 30px -18px rgba(4, 120, 87, 0.45); }
.offer-card-top { display: flex; align-items: flex-start; gap: 12px; }
.offer-avatar {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-soft); color: var(--green-ink);
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
}
.offer-card-title { flex: 1; min-width: 0; }
.offer-card-title a {
  display: block; font-family: var(--font-display); font-size: 18px; font-weight: 700;
  line-height: 1.25; color: var(--ink); text-decoration: none; text-wrap: pretty;
  overflow-wrap: anywhere;
}
.offer-card-title a:hover { color: var(--green-ink); }
.offer-card-title span { display: block; font-size: 14px; color: var(--ink-soft); margin-top: 3px; }
.offer-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.offer-tags span {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
  padding: 5px 10px; border-radius: 8px; background: var(--soft);
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.offer-tags .lmp-icon { flex: none; }
.offer-card-foot {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--soft);
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink-soft);
}
.offer-card-foot a { color: var(--ink-soft); font-weight: 600; }
.offer-card-foot a:hover { color: var(--green-ink); }
.offer-trust { display: inline-flex; align-items: center; gap: 5px; color: var(--green-ink); font-weight: 700; }

.alert-band {
  margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; padding: 18px 22px; border-radius: 16px;
  background: var(--green-soft); border: 1px solid var(--green-line);
}
.alert-band-text { display: flex; align-items: center; gap: 14px; flex: 1 1 300px; }
.alert-band-icon { display: flex; flex: none; color: var(--green-ink); }
.alert-band p { font-size: 15px; color: var(--ink); line-height: 1.5; }
.alert-band strong { font-family: var(--font-display); }
.alert-band-btn {
  min-height: 44px; padding: 0 20px; white-space: nowrap; cursor: pointer;
  border-radius: 12px; border: 1.5px solid var(--green-ink); background: var(--surface); color: var(--green-ink);
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.alert-band-btn:hover { background: var(--green-ink); color: #FFFFFF; }
.alert-band-btn:disabled { opacity: 0.7; cursor: progress; }

/* Pitch */
.pitch { padding-top: 72px; }
.pitch-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.pitch-card {
  display: flex; flex-direction: column; gap: 12px; padding: 24px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
}
.pitch-num { font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--green-ink); }
.pitch-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.pitch-card p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.pitch-teaser {
  margin-top: auto; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px; background: var(--soft-2); border: 1px dashed #CBD5E1;
  text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.pitch-teaser:hover { border-color: var(--green-ink); color: var(--ink); }
/* Valeur purement décorative (aria-hidden) : aucun vrai score n'est calculé ici. */
.pitch-teaser-score {
  flex: none; white-space: nowrap; user-select: none; filter: blur(5px);
  font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--green-ink);
}

/* Bande entreprise (texte et lien de l'ancienne carte du hero, inchangés) */
.recruiter { padding-top: 40px; }
.recruiter-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px;
  padding: 26px 28px; border-radius: 16px;
  background: var(--surface); border: 1.5px solid rgba(0, 0, 0, 0.06);
  text-decoration: none; color: var(--ink);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.recruiter-card:hover {
  color: var(--ink); border-color: var(--blue);
  box-shadow: 0 20px 40px -18px rgba(59, 130, 246, 0.3);
}
.recruiter-icon {
  flex: none; width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft); color: var(--blue-ink);
}
.recruiter-text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 6px; }
.recruiter-text h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.recruiter-text p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; }
.recruiter-cta {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 16px; color: var(--blue-ink); transition: gap 0.3s ease;
}
.recruiter-card:hover .recruiter-cta { gap: 12px; }

/* Bande App Store */
.app-band-wrap { margin-top: 56px; }
.app-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 26px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
}
.app-band p { font-family: var(--font-display); font-size: 18px; font-weight: 700; }

/* Badge App Store (10/09/2026) */
.app-store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; padding: 10px 18px; border-radius: 12px;
  text-decoration: none; transition: transform 0.2s ease, opacity 0.2s ease;
}
.app-store-badge:hover { color: #fff; transform: translateY(-1px); opacity: 0.88; }
.app-store-badge-icon { width: 22px; height: 22px; fill: #fff; flex-shrink: 0; }
.app-store-badge-text {
  display: flex; flex-direction: column; line-height: 1.2;
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
}
.app-store-badge-text small { font-size: 10px; font-weight: 400; opacity: 0.85; }

/* --- ENTRÉE ANIMÉE DU HERO (26/08/2026) -------------------------------------------
   Fondu + léger décalage vers le haut, élément par élément. Pur CSS. Désactivée pour
   prefers-reduced-motion. */
.reveal {
  opacity: 0; transform: translateY(16px);
  animation: reveal-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.15s; }
.reveal-3 { animation-delay: 0.25s; }
.reveal-4 { animation-delay: 0.35s; }
.reveal-5 { animation-delay: 0.42s; }
.reveal-6 { animation-delay: 0.55s; }
@keyframes reveal-up { to { opacity: 1; transform: translateY(0); } }
/* La barre de recherche ne doit pas rester transformée : un transform crée un nouveau
   contexte d'empilement, et la liste des villes passerait sous la section suivante. */
.search-bar.reveal { animation-name: reveal-up-flat; position: relative; z-index: 5; }
@keyframes reveal-up-flat { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .offer-card, .recruiter-card, .recruiter-cta { transition: none; }
}

/* --- PREUVE SOCIALE (réussites post-recrutement) ---------------------------------- */
.social-proof { max-width: 900px; margin: 56px auto 0; padding: 0 20px; text-align: center; }
.social-proof-stat { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); margin-bottom: 24px; }
.social-proof-stat .stars { color: #F59E0B; letter-spacing: 2px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.testimonial-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 20px; text-align: left; }
.testimonial-card .stars { color: #F59E0B; font-size: 13px; margin-bottom: 8px; display: block; }
.testimonial-card p { font-size: 14px; line-height: 1.6; color: var(--ink); margin-bottom: 10px; }
.testimonial-card .source { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
@media (max-width: 640px) { .social-proof { margin-top: 40px; } }

/* --- Bandeau Ecoles & CFA (08/09/2026, inchangé) -----------------------------------
   Troisième audience, volontairement moins appuyée : fond teinté pleine largeur en bas de
   page. Trouvable en scrollant, jamais concurrente des audiences principales. */
.school-band {
  margin: 72px 0 0;
  padding: 48px 24px;
  background: var(--blue-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.school-band-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.school-band-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-ink);
  margin-bottom: 12px;
}
.school-band-text h2 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 12px;
}
.school-band-sub {
  font-size: 15.5px;
  line-height: 1.65;
  color: #475569; /* 24/09/2026 : contraste AA sur fond bleu clair */
  margin-bottom: 16px;
}
.school-band-points { list-style: none; display: grid; gap: 7px; }
.school-band-points li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.5;
}
.school-band-points li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--green-ink);
  font-weight: 700;
}
.school-band-cta { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.school-band-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  background: var(--surface);
  color: var(--blue-ink);
  border: 1.5px solid var(--blue);
  border-radius: 12px;
  padding: 13px 22px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.school-band-btn:hover { background: var(--blue); color: #FFFFFF; transform: translateY(-1px); }
.school-band-link {
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
}
.school-band-link:hover { color: var(--blue-ink); text-decoration: underline; }

@media (max-width: 820px) {
  .school-band { margin-top: 56px; padding: 36px 22px; }
  .school-band-inner { grid-template-columns: 1fr; gap: 24px; }
  .school-band-text h2 { font-size: 20px; }
  .school-band-cta { align-items: stretch; }
  .school-band-btn { white-space: normal; }
}
