/* By Arena Intérim — feuille de style principale (sans framework). */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --indigo: #2B2D7C;
  --indigo-fonce: #16175A;
  --corail: #E2463B;
  --corail-fonce: #C2392F;
  --encre: #17182E;
  --texte: #45476A;
  --gris: #55577A;
  --ligne: #E2E2EE;
  --champ: #8C8EAD;
  --fond: #F3F3FB;
  --blanc: #FFFFFF;
  --rayon: 16px;
  --ombre: 0 10px 40px rgba(43, 45, 124, .12);
  --wrap: 1240px;
  --pad: 24px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
  /* Pages courtes (404, 410, confirmation) : pied de page toujours en bas. */
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }
img, picture, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--indigo); text-underline-offset: .18em; }
a:hover { color: var(--indigo-fonce); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }
address { font-style: normal; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }

:root { --focus: var(--indigo); }
/* Focus : indigo de la marque (blanc sur fond indigo) ; le rouge reste réservé aux champs en erreur. */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.pro, .skip { --focus: #fff; }
.field [aria-invalid="true"]:focus-visible { outline-color: #B3261E; }
main:focus { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--indigo); color: var(--blanc); padding: 12px 18px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 12px; color: var(--blanc); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.narrow { max-width: 820px; }
.centre { text-align: center; justify-content: center; }
.section { padding-top: 72px; padding-bottom: 72px; }
.section + .section { padding-top: 0; }
.small { font-size: 14px; color: var(--gris); }
.mt { margin-top: 14px; }
.vide { background: var(--fond); border-radius: var(--rayon); padding: 22px; color: var(--texte); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 18px; border-radius: 10px;
  font: inherit; font-weight: 600; font-size: 16px; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--indigo); color: var(--blanc); border-color: var(--indigo); }
.btn-primary:hover { background: var(--indigo-fonce); border-color: var(--indigo-fonce); color: var(--blanc); }
.btn-outline { background: var(--blanc); color: var(--indigo); border-color: var(--indigo); }
.btn-outline:hover { background: #E7E8FA; }
.btn-white { background: var(--blanc); color: var(--indigo); font-weight: 700; }
.btn-white:hover { background: #E7E8FA; color: var(--indigo-fonce); }
.btn-ghost-white { border-color: var(--blanc); color: var(--blanc); font-weight: 700; }
.btn-ghost-white:hover { background: rgba(255, 255, 255, .12); color: var(--blanc); }
.btn-lg { padding: 18px 22px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.lien-fleche { font-weight: 700; }
.lien-fleche::after { content: " →"; }

/* En-tête */
.site-header { background: var(--blanc); }
.header-in { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.logo { text-decoration: none; color: var(--encre); font-weight: 800; font-size: 22px; line-height: 1; white-space: nowrap; }
.logo:hover { color: var(--encre); }
.logo-arena { color: var(--corail); }
.logo-sub { font-weight: 500; font-size: 15px; color: var(--gris); }
.nav-main ul { display: flex; flex-wrap: wrap; gap: 24px; }
.nav-main a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; }
.nav-main a:hover, .nav-main a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.header-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.burger {
  display: none; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0;
  background: transparent; border: 1.5px solid currentColor; color: var(--encre); border-radius: 8px; cursor: pointer;
}

/* Menu mobile (popover natif, sans JavaScript) */
.menu-mobile {
  margin: 0 0 0 auto; inset: 0 0 0 auto; width: min(360px, 100vw); height: 100dvh; max-height: none;
  border: 0; padding: 18px 24px 28px; background: var(--blanc); color: var(--encre);
  box-shadow: -10px 0 40px rgba(23, 24, 46, .2);
  display: none; flex-direction: column; gap: 18px; overflow-y: auto;
}
.menu-mobile:popover-open { display: flex; }
.menu-mobile::backdrop { background: rgba(23, 24, 46, .45); }
.menu-mobile-top { display: flex; justify-content: space-between; align-items: center; }
.menu-mobile .burger { display: inline-flex; }
.menu-mobile-main a { display: block; padding: 12px 0; font-size: 20px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--ligne); }
.menu-mobile-main a[aria-current="page"] { color: var(--corail-fonce); }
.menu-mobile-k { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: var(--gris); text-transform: uppercase; letter-spacing: .06em; }
.menu-mobile-sub { display: flex; flex-wrap: wrap; gap: 8px; }
.menu-mobile-sub a { display: inline-block; background: var(--fond); padding: 9px 14px; border-radius: 30px; font-size: 15px; font-weight: 600; text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  .menu-mobile { transition: transform .3s ease, opacity .3s ease, overlay .3s allow-discrete, display .3s allow-discrete; }
  .menu-mobile:popover-open { transform: translateX(0); opacity: 1; }
  @starting-style { .menu-mobile:popover-open { transform: translateX(40px); opacity: 0; } }
}

/* Héros */
.hero { background: var(--fond); }
.hero-in { padding-top: 64px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.hero-txt { flex: 1 1 560px; min-width: 0; }
.hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.08; margin: 0; }
.cycle { display: inline-block; height: 1.15em; overflow: hidden; vertical-align: bottom; color: var(--corail); }
.cycle-in { display: flex; flex-direction: column; }
.cycle-in > span { height: 1.15em; line-height: 1.15; }
.hero-lead { margin: 18px 0 30px; font-size: 19px; color: var(--texte); line-height: 1.6; max-width: 560px; }
.hero-media { flex: 1 1 360px; min-width: 0; position: relative; min-height: 380px; }
.hero-media img { position: absolute; inset: 0 40px 0 0; width: calc(100% - 40px); height: 100%; object-fit: cover; border-radius: 28px; }
.hero-card {
  position: absolute; right: 0; bottom: 40px; background: var(--blanc); border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 14px 34px rgba(23, 24, 46, .16); max-width: 250px; text-decoration: none; color: var(--encre);
  display: flex; flex-direction: column;
}
.hero-card:hover { color: var(--encre); box-shadow: 0 18px 40px rgba(23, 24, 46, .22); }
.hero-card-k { font-size: 13px; color: var(--gris); font-weight: 600; }
.hero-card-t { margin-top: 4px; font-weight: 700; line-height: 1.35; }

/* Recherche */
.search { background: var(--blanc); border-radius: 16px; padding: 10px; display: flex; flex-wrap: wrap; gap: 8px; box-shadow: var(--ombre); }
.search-f { flex: 1 1 200px; display: flex; flex-direction: column; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--gris); min-width: 0; }
.search-f2 { flex-basis: 160px; border-left: 1px solid var(--ligne); }
.search-f input {
  border: 0; font: inherit; font-size: 17px; font-weight: 500; color: var(--encre); padding: 4px 0; background: transparent; min-width: 0; width: 100%;
}
.search-f input::placeholder { color: #6E7091; opacity: 1; }
.search-f input:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.search-btn {
  flex: 0 0 auto; background: var(--indigo); color: var(--blanc); border: 0; border-radius: 12px; padding: 0 26px; min-height: 56px;
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
}
.search-btn:hover { background: var(--indigo-fonce); }
.search-small { max-width: 560px; margin: 26px auto 0; text-align: left; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips a { display: inline-block; background: var(--blanc); padding: 8px 14px; border-radius: 30px; text-decoration: none; font-size: 14px; font-weight: 600; }
.chips a:hover { background: #E7E8FA; }

/* Offres (cartes) */
.section-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }
.section-head h2 { margin: 0; font-size: 38px; }
.jobs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.page-offres .jobs { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.job {
  height: 100%; border: 1px solid var(--ligne); border-radius: 16px; padding: 22px; text-decoration: none; color: var(--encre);
  display: flex; flex-direction: column; gap: 10px; background: var(--blanc);
  transition: box-shadow .3s, transform .3s, border-color .3s;
}
.job:hover { color: var(--encre); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(43, 45, 124, .14); border-color: #C9CAE6; }
.job-t { font-size: 19px; font-weight: 700; margin: 0; letter-spacing: -.01em; line-height: 1.3; }
.job-m { color: var(--gris); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tag { align-self: flex-start; padding: 4px 10px; border-radius: 20px; font-size: 13px; font-weight: 700; line-height: 1.4; background: #E7E8FA; color: var(--indigo); }
.tag-industrie { background: #FFE9E7; color: #A2271E; }
.tag-btp { background: #E7E8FA; color: var(--indigo); }
.tag-tertiaire { background: #E4F4EC; color: #1C6A43; }
.tag-hotellerie-restauration { background: #FFF1D6; color: #7A4300; }
.tag-exemple { background: #ECECF2; color: #45476A; border: 1px dashed #8C8EAD; }

/* Bandeau entreprises */
.pro { background: var(--indigo); color: var(--blanc); }
.pro a:not(.btn) { color: var(--blanc); }
.pro-in { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.pro-in > picture { flex: 1 1 380px; min-width: 0; }
.pro-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.pro-txt { flex: 1 1 460px; min-width: 0; }
.pro-txt h2 { margin: 0; font-size: clamp(32px, 3.4vw, 40px); }
.pro-txt p { margin: 16px 0 0; color: #D5D6F2; font-size: 18px; line-height: 1.6; }
.pro-cta { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.pro-cta h2 { margin: 0 0 8px; }
.pro-cta p { margin: 0; color: #D5D6F2; }
.pro-cta .actions { margin-top: 0; }

/* Bloc agence / carte */
.agence-bloc { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.agence-bloc h2 { margin: 0 0 14px; font-size: 32px; }
.agence-bloc address { line-height: 1.7; color: var(--texte); margin-bottom: 14px; }
.carte-bloc { grid-column: span 2; min-width: 0; }
/* Hauteur fixe : afficher le plan (après accord) ne décale jamais la page. */
.carte { position: relative; height: 320px; background: var(--fond); border-radius: 16px; overflow: hidden; color: var(--gris); }
.carte-ph {
  position: absolute; inset: 0; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  background:
    linear-gradient(rgba(43, 45, 124, .06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(43, 45, 124, .06) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--fond);
}
.carte-pin { color: var(--corail); }
.carte-txt { margin: 0; font-weight: 600; color: var(--encre); }
.carte-note { margin: 0; max-width: 420px; }
.carte iframe { position: absolute; inset: 0; border: 0; width: 100%; height: 100%; display: block; background: var(--fond); }
.carte.is-loaded .carte-ph { visibility: hidden; }
.carte-osm { margin: 10px 0 0; }

/* Pages intérieures */
.page-head { background: var(--fond); padding: 40px 0 56px; }
.page-head h1 { margin: 10px 0 14px; }
.page-head .tags { margin-top: 16px; }
.lead { font-size: 19px; color: var(--texte); max-width: 760px; margin-bottom: 0; }
.page-head-media { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.page-head-media > div { flex: 1 1 480px; min-width: 0; }
.page-head-media > picture { flex: 1 1 360px; min-width: 0; }
.media-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.fil ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; color: var(--gris); }
.fil li + li::before { content: "/"; margin: 0 6px 0 2px; color: var(--champ); }
.fil a { color: var(--gris); }
.band { background: var(--fond); padding: 64px 0; }
.band h2 { margin-bottom: 10px; }
.deux-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 56px; align-items: start; }
.cartes-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 24px; }
.carte-info { border: 1px solid var(--ligne); border-radius: 16px; padding: 24px; }
.carte-info p { margin: 0; color: var(--texte); }
.cartes-1 { display: grid; gap: 14px; }
.carte-lien { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--ligne); border-radius: 16px; padding: 20px 22px; text-decoration: none; color: var(--encre); transition: box-shadow .3s, transform .3s; }
.carte-lien strong { font-size: 19px; color: var(--indigo); }
.carte-lien span { color: var(--gris); }
.carte-lien:hover { color: var(--encre); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(43, 45, 124, .12); }
.encart { background: var(--fond); border-radius: 16px; padding: 26px; }
.h-small { font-size: 20px; margin-bottom: 12px; }
.gros { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.gros a { text-decoration: none; }
.horaires { list-style: none; padding: 0; margin: 0 0 6px; }
.horaires li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 8px 0; border-bottom: 1px solid var(--ligne); }
.horaires li span:first-child { font-weight: 600; }
.liste-check { display: grid; gap: 10px; }
.liste-check li { position: relative; padding-left: 30px; }
.liste-check li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: #E7E8FA url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2D7C' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.conseil { background: #FFF6F5; border-left: 4px solid var(--corail); padding: 14px 18px; border-radius: 0 12px 12px 0; }
.secteurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 20px; }
.secteurs a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 20px; border-radius: 16px; background: var(--fond); text-decoration: none; color: var(--encre); }
.secteurs a strong { color: var(--indigo); font-size: 19px; }
.secteurs a span { color: var(--gris); font-size: 15px; }
.secteurs a:hover { background: #E7E8FA; color: var(--encre); }
.etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 24px; counter-reset: etape; }
.etapes li { background: var(--fond); border-radius: 16px; padding: 24px; }
.etapes p { margin: 0; color: var(--texte); }
.etape-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--indigo); color: var(--blanc); font-weight: 800; margin-bottom: 14px; }
.faq { display: grid; gap: 10px; margin-top: 20px; }
.faq details { border: 1px solid var(--ligne); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style-position: outside; }
.faq details[open] summary { color: var(--indigo); }
.faq details p { color: var(--texte); }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.actu { border-bottom: 1px solid var(--ligne); padding: 18px 0; }
.code-erreur { font-size: 80px; font-weight: 800; color: var(--corail); margin: 0; line-height: 1; }

/* Page offre */
.offre-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.offre-aside { background: var(--fond); border-radius: 16px; padding: 24px; position: sticky; top: 16px; }
.details { margin: 0 0 18px; }
.details div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--ligne); }
.details dt { color: var(--gris); }
.details dd { margin: 0; font-weight: 600; text-align: right; }
.bandeau-exemple { background: #FFF1D6; color: #5C3300; border: 1px dashed #B26B00; border-radius: 12px; padding: 14px 18px; }
.offre-expiree { background: #FFE9E7; color: #8A1F17; padding: 12px 16px; border-radius: 12px; font-weight: 600; margin-top: 16px; }

/* Recherche d'offres */
.offres-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; }
.filtres { background: var(--fond); border-radius: 16px; padding: 22px; position: sticky; top: 16px; display: grid; gap: 14px; }
.filtres .h-small { margin: 0; }
.filtres-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.compte { font-weight: 700; margin-bottom: 18px; }
.resultats .encart { margin-top: 32px; }
.resultats .jobs { list-style: none; padding: 0; margin: 0; }

/* Formulaires */
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; background: var(--blanc); border-radius: 16px; padding: 26px; box-shadow: var(--ombre); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
fieldset.field { border: 0; padding: 0; }
.field label, .field legend { font-weight: 600; font-size: 15px; padding: 0; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="search"],
.field input[type="number"], .field input[type="date"], .field input[type="password"], .field select, .field textarea {
  width: 100%; padding: 12px; font: inherit; font-size: 16px; color: var(--encre); background: var(--blanc);
  border: 1.5px solid var(--champ); border-radius: 10px; min-height: 48px;
}
.field input[type="file"] { font: inherit; font-size: 15px; padding: 10px; border: 1.5px dashed var(--champ); border-radius: 10px; background: var(--fond); width: 100%; }
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--indigo); }
.field [aria-invalid="true"] { border-color: #B3261E !important; background: #FFF8F7; }
.field-aide { margin: 0; font-size: 14px; color: var(--gris); }
.field-err { margin: 0; font-size: 14px; font-weight: 600; color: #B3261E; }
.field-err::before { content: "⚠ "; }
.field-compteur { margin: 0; font-size: 14px; color: var(--gris); }
.field-compteur.is-ok { color: #1C6A43; }
.radios { display: flex; gap: 24px; }
.radios label, .field-check label { font-weight: 500; display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.radios input, .field-check input { width: 22px; height: 22px; accent-color: var(--indigo); flex: 0 0 auto; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; }
.field-check label { display: block; font-size: 15px; line-height: 1.5; }
.field-check input { margin-top: 2px; }
.field-check .field-err { grid-column: 2; }
.form-errors { background: #FFF1F0; border: 1.5px solid #B3261E; color: #8A1F17; border-radius: 12px; padding: 14px 18px; }
.form-errors ul { margin: 6px 0 0; padding-left: 1.2em; }
.form-errors a { color: #8A1F17; font-weight: 600; }
.form-status:empty { display: none; }
.form-status { margin: 0; font-weight: 600; }
.form-status.is-ok { background: #E4F4EC; color: #14532F; padding: 14px 18px; border-radius: 12px; }
.form-status.is-err { background: #FFF1F0; color: #8A1F17; padding: 14px 18px; border-radius: 12px; }
.form > .btn { align-self: flex-start; }
.form-offre { margin: 0; background: #E7E8FA; padding: 12px 16px; border-radius: 12px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Champ fichier (amélioré par le script ; sans script, le champ natif reste visible) */
.file { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.file-ui, .file-nom, .file-retirer { display: none; }
.file.is-enhanced { border: 1.5px dashed var(--champ); border-radius: 10px; background: var(--fond); padding: 10px 12px; }
.file.is-enhanced .file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); padding: 0; border: 0; }
.file.is-enhanced .file-ui { display: inline-flex; }
.file.is-enhanced .file-nom { display: inline; color: var(--gris); font-size: 15px; overflow-wrap: anywhere; min-width: 0; flex: 1 1 140px; }
.file.is-enhanced.has-file .file-nom { color: var(--encre); font-weight: 600; }
.file.is-enhanced .file-retirer:not([hidden]) { display: inline-block; }
.file-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 10px; border: 1.5px solid var(--indigo); color: var(--indigo); background: var(--blanc); font-weight: 700; font-size: 15px; cursor: pointer; }
.file-btn::before { content: ""; width: 15px; height: 15px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 16V4M6 10l6-6 6 6M4 20h16'/%3E%3C/svg%3E") center / contain no-repeat; }
.file-ui:hover .file-btn { background: #E7E8FA; }
.file-input:focus-visible + .file-ui .file-btn { outline: 3px solid var(--focus); outline-offset: 3px; }
.file-retirer { font: inherit; font-size: 15px; background: none; border: 0; padding: 6px 2px; color: #B3261E; text-decoration: underline; cursor: pointer; }
.file.is-enhanced:has([aria-invalid="true"]) { border-color: #B3261E; background: #FFF8F7; }

/* Confirmation d'envoi (remplace le formulaire) */
.form-done {
  margin-top: 24px; background: var(--blanc); border-radius: 20px; box-shadow: var(--ombre);
  padding: clamp(32px, 6vw, 64px) clamp(20px, 4vw, 56px); min-height: min(520px, 80vh);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; scroll-margin-top: 16px;
}
.form-done-ico { width: 88px; height: 88px; margin-bottom: 6px; }
.form-done-cercle { fill: #E4F4EC; stroke: #1C6A43; stroke-width: 2.5; }
.form-done-coche { fill: none; stroke: #1C6A43; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.form-done-t { margin: 0; font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.03em; }
.form-done-t:focus { outline: none; }
.form-done-t:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; }
.form-done-txt { margin: 0; font-size: 19px; color: var(--texte); max-width: 540px; }
.form-done-recap { margin: 0; color: var(--gris); overflow-wrap: anywhere; }
.form-done-recap strong { color: var(--encre); }
.form-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 14px; }
.form-done-page { max-width: 880px; }
.form-done-page .form-done { margin-top: 0; }

/* Informations légales */
.garantie { margin: 0; background: var(--fond); border-left: 4px solid var(--indigo); padding: 16px 20px; border-radius: 0 12px 12px 0; color: var(--texte); }
.tableau { overflow-x: auto; margin: 0 0 1em; }
.tableau table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.tableau th, .tableau td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--ligne); }
.tableau th { background: var(--fond); }
.tableau code { font-size: 14px; overflow-wrap: anywhere; }

/* Bandeau cookies (non bloquant) */
.cookies {
  position: fixed; z-index: 50; left: 12px; right: 12px; bottom: 12px; max-width: 520px; margin-left: auto;
  background: var(--blanc); color: var(--encre); border: 1px solid var(--ligne); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(23, 24, 46, .22); max-height: calc(100dvh - 24px); overflow: auto;
}
.cookies-in { padding: 20px 22px; display: grid; gap: 12px; }
.cookies-t { margin: 0; font-size: 20px; }
.cookies-t:focus { outline: none; }
.cookies-t:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.cookies-txt { margin: 0; color: var(--texte); font-size: 15px; line-height: 1.55; }
.cookies-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-choix { flex: 1 1 120px; background: var(--indigo); color: var(--blanc); border-color: var(--indigo); }
.btn-choix:hover { background: var(--indigo-fonce); border-color: var(--indigo-fonce); color: var(--blanc); }
.cookies-plus { font: inherit; font-size: 15px; font-weight: 600; background: none; border: 0; min-height: 44px; padding: 8px 4px; color: var(--indigo); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.cookies-details { display: grid; gap: 12px; border-top: 1px solid var(--ligne); padding-top: 12px; }
.cookies-details > .btn { justify-self: start; }
.cookies-options { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }
.cookies-option { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.cookies-option input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--indigo); }
.cookies-option label { display: grid; gap: 2px; font-size: 14px; line-height: 1.45; color: var(--texte); cursor: pointer; }
.cookies-option label strong { color: var(--encre); font-size: 15px; }
.cookies-option input:disabled + label { cursor: default; }
@media (min-width: 761px) { .cookies { left: auto; right: 24px; bottom: 24px; } }

/* Pied de page */
.site-footer { border-top: 1px solid var(--ligne); }
.footer-in { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; color: var(--gris); font-size: 14px; }
.footer-id { margin: 0; }
.footer-in a { color: var(--gris); }
.footer-in a:hover { color: var(--indigo); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 0; }
.footer-nav li + li::before { content: "·"; margin: 0 6px; }

/* Responsive */
@media (max-width: 960px) {
  .offre-layout, .offres-layout { grid-template-columns: minmax(0, 1fr); }
  .offre-aside, .filtres { position: static; }
}
@media (max-width: 760px) {
  .nav-main { display: none; }
  .burger { display: inline-flex; }
  .header-in { row-gap: 18px; }
  .logo { order: 0; }
  .burger { order: 1; }
  .header-cta { order: 2; width: 100%; }
  .header-cta .btn { padding-left: 26px; padding-right: 26px; }
  .hero-in { padding-top: 48px; padding-bottom: 72px; }
  .hero-media { flex-basis: 100%; min-height: 420px; }
  .search-f { flex-basis: 100%; }
  .search-btn { margin: 4px 8px 8px; }
  .hero-card { bottom: 24px; }
  .carte-bloc { grid-column: auto; }
  .carte { height: 280px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .section-head h2 { font-size: 34px; }
  .page-head { padding: 28px 0 44px; }
  .form { padding: 20px; margin-left: -8px; margin-right: -8px; }
  .form > .btn { align-self: stretch; }
  .footer-addr { display: block; }
  .details dd { text-align: left; }
  .details div { flex-direction: column; gap: 2px; }
}
@media (max-width: 420px) {
  :root { --pad: 20px; }
  .btn-lg { padding: 16px 18px; }
}

/* Animations — CSS pur, sans bibliothèque.
   Tout est dans « prefers-reduced-motion: no-preference » ; seules transform, opacity et clip-path
   sont animées ; le contenu est toujours visible sans animation (révélations au défilement
   seulement si animation-timeline est pris en charge, titre principal jamais masqué : LCP). */
@keyframes ba-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes ba-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ba-titre { from { transform: translateY(16px); } to { transform: none; } }
@keyframes ba-pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes ba-devoile { from { clip-path: inset(0 0 100% 0 round 28px); transform: scale(1.06); } to { clip-path: inset(0 0 0 0 round 28px); transform: none; } }
@keyframes ba-devoile-img { from { clip-path: inset(12% 8% 12% 8% round 20px); transform: scale(1.08); } to { clip-path: inset(0 round 20px); transform: none; } }
@keyframes ba-parallaxe { from { transform: translateY(-3%) scale(1.08); } to { transform: translateY(3%) scale(1.08); } }
@keyframes ba-fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes ba-cercle { from { stroke-dashoffset: 151; } to { stroke-dashoffset: 0; } }
@keyframes ba-coche { from { stroke-dashoffset: 34; } to { stroke-dashoffset: 0; } }
@keyframes ba-vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes ba-vt-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes ba-cycle {
  0%, 28% { transform: translateY(0); }
  33%, 61% { transform: translateY(-1.15em); }
  66%, 94% { transform: translateY(-2.3em); }
  100% { transform: translateY(-3.45em); }
}
@media (prefers-reduced-motion: no-preference) {
  .cycle-in { animation: ba-cycle 7.5s cubic-bezier(.7, 0, .3, 1) infinite; }

  /* Héros : entrée échelonnée (le H1 se déplace seulement, il n'est jamais transparent) */
  .hero h1, .page-head h1 { animation: ba-titre .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-lead, .page-head .lead { animation: ba-in .7s .12s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .search, .page-head .actions { animation: ba-in .7s .22s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .chips li, .page-head .tags { animation: ba-in .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .chips li:nth-child(1) { animation-delay: .30s; }
  .hero .chips li:nth-child(2) { animation-delay: .35s; }
  .hero .chips li:nth-child(3) { animation-delay: .40s; }
  .hero .chips li:nth-child(4) { animation-delay: .45s; }
  .hero .chips li:nth-child(5) { animation-delay: .50s; }
  .hero-media img { animation: ba-devoile 1s .1s cubic-bezier(.65, 0, .35, 1) both; }
  /* Carte « Nouvelle mission » : arrive, puis flotte doucement */
  .hero-card { animation: ba-pop .6s .7s cubic-bezier(.2, .7, .2, 1) both, ba-float 6s 1.3s ease-in-out infinite; }

  /* Micro-interactions */
  .btn { transition: background-color .2s, color .2s, border-color .2s, translate .2s ease, scale .12s ease; }
  .btn:hover { translate: 0 -1px; }
  .btn:active { scale: .97; translate: 0 0; transform: none; }
  .lien-fleche::after { display: inline-block; transition: translate .25s cubic-bezier(.2, .7, .2, 1); }
  .lien-fleche:hover::after { translate: 4px 0; }
  .nav-main a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s cubic-bezier(.2, .7, .2, 1); }
  .nav-main a:hover, .nav-main a[aria-current="page"] { text-decoration: none; background-size: 100% 2px; }
  .chips a, .menu-mobile-sub a { transition: background-color .2s, translate .2s ease; }
  .chips a:hover { translate: 0 -2px; }
  .search { transition: box-shadow .3s, translate .3s cubic-bezier(.2, .7, .2, 1); }
  .search:focus-within { translate: 0 -2px; box-shadow: 0 16px 44px rgba(43, 45, 124, .20), 0 0 0 3px rgba(43, 45, 124, .12); }
  .search-btn { transition: background-color .2s, scale .12s ease; }
  .search-btn:active { scale: .97; }
  .job { transition: box-shadow .3s, translate .3s cubic-bezier(.2, .7, .2, 1), border-color .3s; }
  .job:hover { transform: none; translate: 0 -4px; }
  .job:hover .job-t { color: var(--indigo); }
  .carte-info, .secteurs a, .etapes li { transition: translate .3s cubic-bezier(.2, .7, .2, 1), background-color .2s, box-shadow .3s; }
  .carte-info:hover, .etapes li:hover { translate: 0 -3px; box-shadow: 0 12px 30px rgba(43, 45, 124, .10); }
  .secteurs a:hover { translate: 0 -3px; }
  .carte-lien { transition: box-shadow .3s, translate .3s cubic-bezier(.2, .7, .2, 1); }
  .carte-lien:hover { transform: none; translate: 0 -3px; }
  .footer-in a { transition: color .2s; }
  .faq summary { transition: color .2s; }
  @supports selector(::details-content) {
    .faq details { interpolate-size: allow-keywords; }
    .faq details::details-content { height: 0; overflow: clip; transition: height .3s ease, content-visibility .3s allow-discrete; }
    .faq details[open]::details-content { height: auto; }
  }

  /* Bandeau cookies, plan, confirmation */
  .cookies { opacity: 1; translate: 0 0; transition: opacity .3s ease, translate .35s cubic-bezier(.2, .7, .2, 1); }
  @starting-style { .cookies { opacity: 0; translate: 0 16px; } }
  .carte iframe { animation: ba-fondu .4s ease both; }
  .form-done { animation: ba-pop .5s cubic-bezier(.2, .7, .2, 1) both; }
  .form-done-cercle { stroke-dasharray: 151; animation: ba-cercle .6s .1s ease-out both; }
  .form-done-coche { stroke-dasharray: 34; animation: ba-coche .45s .55s cubic-bezier(.6, 0, .2, 1) both; }

  /* Révélations au défilement (sections, cartes, offres en cascade) */
  @supports (animation-timeline: view()) {
    .section-head, .jobs > li, .cartes-3 > *, .etapes > li, .secteurs > li, .faq details, .pro-txt, .encart,
    .deux-col > *, .cartes-1 > *, .agence-bloc > *, .band .narrow > h2, .band .narrow > p, .garantie, .actu, .prose > h2, .section > h2 {
      animation: ba-in linear both; animation-timeline: view(); animation-range: entry 0% entry 60%;
    }
    :is(.jobs, .cartes-3, .etapes, .secteurs, .cartes-1) > :nth-child(3n+2) { animation-range: entry 6% entry 66%; }
    :is(.jobs, .cartes-3, .etapes, .secteurs, .cartes-1) > :nth-child(3n+3) { animation-range: entry 12% entry 72%; }
    .faq details:nth-child(2n) { animation-range: entry 5% entry 65%; }
    /* Images : dévoilement (clip-path + échelle) puis légère parallaxe */
    .pro-in > picture, .page-head-media > picture { display: block; overflow: hidden; border-radius: 20px; animation: ba-devoile-img linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    .pro-img { animation: ba-parallaxe linear both; animation-timeline: view(); animation-range: cover; }
    .page-head-media .media-img { border-radius: 0; }
  }

  /* Transitions entre pages : en-tête persistant, contenu en fondu glissé */
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: entete; }
  main { view-transition-name: contenu; }
  ::view-transition-old(contenu) { animation: .18s ease both ba-vt-out; }
  ::view-transition-new(contenu) { animation: .3s .05s cubic-bezier(.2, .7, .2, 1) both ba-vt-in; }
  ::view-transition-group(entete) { animation-duration: 0s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .form, .carte-bloc, .actions, .filtres, .cookies { display: none !important; }
  .page-head, .band { background: none; }
}
