/* ==========================================================================
   Accueil (front-page.php), repris de la maquette : maquette/accueil.html, styles en
   tête de page. Chargé seulement sur l'accueil, après style.css et theme.css. L'en-tête,
   le pied de page, les boutons, les pastilles et la recherche viennent de style.css.
   ========================================================================== */

body.home { --section: 64px; }
@media (min-width: 768px) { body.home { --section: 88px; } }
.maj { text-transform: capitalize; }

/* ---------- Héros ---------- */
.hero { padding-block: 40px 64px; background: var(--surface); }
.hero::before { content: none; }
@media (min-width: 768px) { .hero { padding-block: 72px 96px; } }
.hero__bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 380px at 88% 18%, rgba(255, 92, 70, 0.20), transparent 70%),
    radial-gradient(460px 340px at 70% 78%, rgba(221, 0, 0, 0.14), transparent 70%),
    radial-gradient(600px 400px at 8% 0%, rgba(255, 196, 160, 0.30), transparent 70%); }
.hero__bg::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(12, 13, 18, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(12, 13, 18, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(80% 70% at 60% 30%, #000 10%, transparent 75%); mask-image: radial-gradient(80% 70% at 60% 30%, #000 10%, transparent 75%); }
.hero__grid { position: relative; display: grid; gap: 48px; }
.hero__grid > * { min-width: 0; }
@media (min-width: 1100px) { .hero__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 56px; align-items: center; } }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 0.875rem; font-weight: 500; box-shadow: var(--shadow-sm); }
.eyebrow__tag { padding: 3px 10px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 0.75rem; font-weight: 700; }
.hero__title { max-width: none; margin-top: 24px; font-size: clamp(2.5rem, 1.5rem + 4.4vw, 4.5rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.045em; }
.hero__title:first-child { margin-top: 0; }
.hero__title em { font-style: normal; background: linear-gradient(100deg, #ff4b36 0%, var(--primary) 45%, #a30000 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { max-width: 54ch; margin-top: 20px; }
.hero .sf { margin-top: 32px; }

.popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 20px; }
.popular__label { font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.popular__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.stats { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 40px 0 0; padding: 0; list-style: none; }
.stats li { font-size: 0.875rem; color: var(--muted); }
.stats strong { display: block; font-family: var(--display); font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Aperçu : trois des dernières offres en cartes flottantes (décoratif), ordinateur seulement */
.peek { position: relative; display: none; min-height: 548px; }
@media (min-width: 1100px) { .peek { display: block; } }
.peek__card { position: absolute; width: 340px; padding: 20px; background: rgba(255, 255, 255, 0.92); border: 1px solid rgba(255, 255, 255, 0.9); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); backdrop-filter: blur(8px); }
.peek__card:nth-child(1) { top: 0; right: 0; transform: rotate(2deg); }
.peek__card:nth-child(2) { top: 150px; right: 56px; transform: rotate(-3deg); z-index: 2; }
.peek__card:nth-child(3) { top: 300px; right: 8px; transform: rotate(1.5deg); }
/* Carte cliquable : elle se soulève et passe devant les autres au survol. */
a.peek__card { color: inherit; text-decoration: none; transition: translate var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
a.peek__card:hover { z-index: 4; translate: 0 -4px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
.peek__row { display: flex; align-items: center; gap: 12px; }
.peek__row > div { min-width: 0; }
.peek__title { font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.3; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.peek__sub { font-size: 0.8125rem; color: var(--muted); }
.peek__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.peek .logo-box--sm { width: 44px; height: 44px; }
.peek__bubbles { position: absolute; left: 0; bottom: 0; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.peek__bubble { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px 10px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.875rem; font-weight: 600; box-shadow: var(--shadow-lg); }
.peek__bubble > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #16a34a; }
.peek__bubble .icon { width: 16px; height: 16px; }
/* Second bouton : foncé comme le premier, lien vers la création de l'espace entreprise */
.peek__bubble--alt { margin-left: 28px; color: #fff; text-decoration: none; transition: background-color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.peek__bubble--alt > span { background: var(--primary); color: #fff; }
.peek__bubble--alt .peek__go { color: #9ea3ae; transition: transform var(--fast) var(--ease), color var(--fast) var(--ease); }
.peek__bubble--alt:hover { background: #000; color: #fff; transform: translateY(-2px); }
.peek__bubble--alt:hover .peek__go { color: #fff; transform: translateX(3px); }
.peek__bubble--alt:focus-visible { outline: none; box-shadow: var(--ring), var(--shadow-lg); }

/* ---------- Sections ---------- */
.home .section--white { border-block: 0; }
/* Bouton clair des en-têtes de section (maquette : .btn--soft) */
.btn--soft { --btn-bg: var(--surface); --btn-ink: var(--ink); --btn-line: var(--line-strong); }
.btn--soft:hover { border-color: var(--ink); color: var(--ink); }
.home .section__head { gap: 16px 32px; margin-bottom: 36px; }
.home .section__title { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); font-weight: 700; letter-spacing: -0.04em; }
.home .section__title--sm { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); }
.head-link { display: inline-flex; }
.more-mobile { margin-top: 24px; }
@media (max-width: 767.98px) { .head-link { display: none; } }
@media (min-width: 768px) { .more-mobile { display: none; } }
.accueil-pub { margin-top: 48px; }

/* Dernières offres : cartes cliquables (le lien du titre couvre la carte) */
.jobs { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
/* Éléments de liste : coins de 16 px ; au survol la bordure fonce, la carte ne se soulève pas */
.job { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 4px 18px; align-content: start; height: 100%; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color var(--fast) var(--ease); }
.job:hover { border-color: var(--line-hover); }
.job:hover .job__link { color: var(--primary); }
.job:focus-within { border-color: var(--primary); }
.job:has(.job__link:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.job .logo-box { grid-row: span 3; }
.job__title { min-width: 0; align-self: start; font-family: var(--display); font-size: 1.0625rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.job__link { color: var(--ink); text-decoration: none; }
.job__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.job__link:focus-visible { outline: none; }
.job__sub { font-size: 0.875rem; color: var(--muted); }
.job__sub strong { color: var(--ink-2); font-weight: 600; }
.job__go { grid-column: 3; grid-row: 1 / span 2; align-self: start; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); color: var(--ink); transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.job:hover .job__go { background: var(--primary); color: #fff; transform: rotate(-45deg); }
.job__excerpt { grid-column: 2 / -1; margin-top: 6px; font-size: 0.9375rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job__meta { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 0.8125rem; font-weight: 500; }
.tag .icon { width: 14px; height: 14px; color: var(--muted); }
.tag--new { background: var(--new-bg); color: var(--new-ink); font-weight: 600; }
/* Logos des cartes : boîte grise, logo au centre */
.job .logo-box, .company .logo-box { width: 56px; height: 56px; border-radius: var(--radius); }
.job .mono, .company .mono { font-size: 0.9375rem; }

/* Mobile : le logo (48 px) ne couvre que le titre et la ligne société · date ; le résumé et les
   pastilles prennent toute la largeur. Déclaré après la taille 56 px pour la remplacer. */
@media (max-width: 479.98px) {
  .job { grid-template-columns: 48px minmax(0, 1fr); }
  .job .logo-box { grid-row: span 2; width: 48px; height: 48px; }
  .job__go { display: none; }
  .job__excerpt, .job__meta { grid-column: 1 / -1; }
}

/* Emploi par ville : barres proportionnelles */
.cities-wrap { display: grid; gap: 32px; }
@media (min-width: 1024px) { .cities-wrap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 80px; align-items: center; } }
.cities-wrap .section__head { margin-bottom: 0; }
.cities { margin: 0; padding: 8px; list-style: none; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.city { display: grid; grid-template-columns: minmax(96px, 0.8fr) minmax(0, 1.6fr) 84px 20px; align-items: center; gap: 16px; min-height: 64px; padding: 10px 16px; border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: background-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.city:hover { background: #fff; box-shadow: var(--shadow); color: var(--ink); }
.city__name { font-family: var(--display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.city__bar { height: 10px; border-radius: 999px; background: rgba(12, 13, 18, 0.06); overflow: hidden; }
.city__bar span { display: block; width: var(--part); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff6a55, var(--primary)); }
.city__count { font-size: 0.875rem; font-weight: 500; color: var(--muted); text-align: right; }
.city .icon { color: var(--muted); transition: transform var(--fast) var(--ease), color var(--fast) var(--ease); }
.city:hover .icon { color: var(--primary); transform: translateX(3px); }
@media (max-width: 479.98px) { .city { grid-template-columns: minmax(0, 1fr) 72px; gap: 6px 12px; } .city__bar { grid-column: 1 / -1; grid-row: 2; } .city .icon { display: none; } }

/* Secteurs et entreprises */
.sectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
/* Mobile (2 colonnes) : une dernière carte seule prend toute la largeur */
@media (max-width: 767.98px) { .sectors > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 768px) { .sectors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sectors { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } }
.sector { display: flex; flex-direction: column; gap: 18px; height: 100%; min-height: 168px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color var(--fast) var(--ease); }
.sector:hover { border-color: var(--line-hover); color: var(--ink); }
.sector__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--primary-tint); color: var(--primary); transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.sector:hover .sector__icon { background: var(--primary); color: #fff; }
.sector__name { margin-top: auto; font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.3; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.sector__count { font-size: 0.875rem; color: var(--muted); }
.sub-block { margin-top: 64px; }
.companies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .companies { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .companies { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; } }
.company { display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100%; padding: 22px 14px 18px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color var(--fast) var(--ease); }
.company:hover { border-color: var(--line-hover); color: var(--ink); }
.company > span:last-child { min-width: 0; max-width: 100%; }
.company__name { display: block; font-weight: 600; font-size: 0.9375rem; line-height: 1.3; overflow-wrap: anywhere; }
.company__count { display: block; margin-top: 4px; font-size: 0.8125rem; font-weight: 600; color: var(--primary); }

/* Appel aux recruteurs */
.cta { position: relative; display: grid; gap: 36px; padding: 40px 24px; overflow: hidden; border-radius: var(--radius-xl); background: var(--ink); color: #b9bdc8; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 100% 0%, rgba(221, 0, 0, 0.55), transparent 70%), radial-gradient(400px 260px at 0% 100%, rgba(255, 92, 70, 0.25), transparent 70%); pointer-events: none; }
.cta > * { position: relative; min-width: 0; }
@media (min-width: 900px) { .cta { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 64px; padding: 64px; } }
.cta__title { color: #fff; font-size: clamp(1.875rem, 1.3rem + 2vw, 3rem); font-weight: 700; letter-spacing: -0.04em; }
.cta__text { max-width: 50ch; margin-top: 16px; font-size: 1.0625rem; }
.cta__actions { margin-top: 32px; }
.cta__points { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.cta__points li { display: flex; gap: 14px; padding: 18px 20px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius); background: rgba(255, 255, 255, 0.05); }
.cta__points .icon { flex: none; margin-top: 2px; color: #ff7a6b; }
.cta__points strong { display: block; color: #fff; font-weight: 600; }
