/* =========================================================
   ENES — École Nouvelle en Éducation Spécialisée
   Feuille de style principale — site statique, aucune
   dépendance externe (polices auto-hébergées).
   ========================================================= */

@import url("fonts.css");

/* ---------- 1. Jetons de design ---------- */
:root {
  --teal-900: #06333c;
  --teal-800: #0a4c50;
  --teal-700: #0f6e6c;
  --teal-600: #17807e;
  --teal-500: #1f9895;
  --teal-100: #e3f1f0;
  --teal-50: #f2f9f8;

  --rust-700: #8e380c;
  --rust-600: #b4470f;
  --rust-100: #fbeade;

  --gold-500: #f5b914;
  --gold-100: #fdf1d3;

  --ink: #16262b;
  --body: #46595e;
  --muted: #6d8085;
  --line: #e5ded4;
  --sand: #fbf8f4;
  --white: #ffffff;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(6, 51, 60, .06), 0 2px 8px rgba(6, 51, 60, .05);
  --shadow: 0 4px 12px rgba(6, 51, 60, .07), 0 12px 32px rgba(6, 51, 60, .07);
  --shadow-lg: 0 18px 48px rgba(6, 51, 60, .14);

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --font-title: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- 2. Réinitialisation ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  /* Aucun débordement horizontal possible, quel que soit le contenu. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .6em;
  font-weight: 600;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.9vw, 2.45rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem); }
h4 { font-size: 1.0625rem; }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--rust-600); }

ul, ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
li { margin-bottom: .4rem; }

strong { color: var(--ink); font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- 3. Utilitaires de mise en page ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--sand { background: var(--sand); }
.section--teal { background: var(--teal-50); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 999;
  background: var(--teal-900);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-title);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rust-600);
  margin-bottom: .85rem;
}
.eyebrow--light { color: var(--gold-500); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.125rem; color: var(--body); }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

/* ---------- 4. Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: .01em;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--rust-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--rust-700); color: #fff; }

.btn--teal { background: var(--teal-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn--teal:hover { background: var(--teal-700); color: #fff; }

.btn--ghost { border-color: var(--teal-600); color: var(--teal-700); background: transparent; }
.btn--ghost:hover { background: var(--teal-600); color: #fff; }

.btn--light { background: #fff; color: var(--teal-800); }
.btn--light:hover { background: var(--gold-500); color: var(--teal-900); }

.btn--outline-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--teal-800); }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }

/* ---------- 5. En-tête ---------- */
.topbar {
  background: var(--teal-900);
  color: rgba(255, 255, 255, .82);
  font-size: .875rem;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.75rem;
  align-items: center;
  justify-content: space-between;
  padding-block: .6rem;
}
.topbar__list { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.topbar__list li { margin: 0; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--gold-500); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: .8rem;
}
.brand { display: inline-flex; align-items: center; min-width: 0; }
.brand img { width: 190px; }

.nav__list {
  display: flex;
  align-items: center;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list > li { margin: 0; position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-family: var(--font-title);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: .6rem .7rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--teal-700); background: var(--teal-50); }
.nav__link[aria-current="page"] { font-weight: 600; }

.nav__submenu {
  list-style: none;
  margin: 0;
  padding: .5rem;
  position: absolute;
  top: calc(100% + .25rem);
  left: 0;
  min-width: 17rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav__item--has-sub:hover > .nav__submenu,
.nav__item--has-sub:focus-within > .nav__submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__submenu a {
  display: block;
  padding: .6rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  color: var(--ink);
  text-decoration: none;
}
.nav__submenu a:hover { background: var(--teal-50); color: var(--teal-700); }

.header__cta { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: var(--teal-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--teal-900);
  border-radius: 2px;
  content: "";
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 40rem) {
  .topbar { font-size: .8125rem; }
  .topbar__inner p { display: none; }
  .topbar__list { gap: .25rem 1rem; }
}

@media (max-width: 1080px) {
  .brand img { width: 160px; }
  .nav-toggle { display: inline-flex; }
  .header__cta .btn { display: none; }
  /* « backdrop-filter » crée un bloc conteneur pour les descendants en
     position fixe : on le retire sur mobile pour que le volet couvre bien
     tout l'écran. */
  .site-header { backdrop-filter: none; background: #fff; }

  /* Le logo et le bouton restent cliquables au-dessus du volet ouvert. */
  .brand, .header__cta { position: relative; z-index: 60; }

  /* Volet mobile : panneau déroulant ancré sous l'en-tête (qui est en
     position « sticky », donc positionné). Masqué par « display » : il n'est
     jamais placé hors écran, aucun débordement horizontal possible. */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem var(--gutter) 2rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    z-index: 55;
  }
  .nav[data-open="true"] { display: block; animation: nav-in .2s ease both; }
  @keyframes nav-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav__link { padding: .85rem .5rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: .2rem 0 .6rem 1rem;
    min-width: 0;
  }
  .nav__mobile-cta { display: block; margin-top: 1.5rem; }
  .nav__mobile-cta .btn { width: 100%; }
}
@media (min-width: 1081px) {
  .nav__mobile-cta { display: none; }
}

/* ---------- 6. Héros ---------- */
.hero {
  position: relative;
  background: var(--teal-900);
  color: rgba(255, 255, 255, .88);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(6, 51, 60, .95) 0%, rgba(6, 51, 60, .82) 45%, rgba(10, 76, 80, .55) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(3.5rem, 9vw, 7rem);
  max-width: 46rem;
}
.hero h1 { color: #fff; }
.hero p { font-size: 1.15rem; }
.hero__stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 1.5rem 2rem;
  padding: 1.75rem 0 clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid rgba(255, 255, 255, .18);
  margin-top: 1rem;
}
.hero__stat strong {
  display: block;
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-500);
  line-height: 1.1;
}
.hero__stat span { font-size: .9375rem; color: rgba(255, 255, 255, .78); }

/* En-tête de page interne */
.page-hero {
  position: relative;
  background: var(--teal-800);
  color: rgba(255, 255, 255, .85);
  overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6, 51, 60, .93), rgba(10, 76, 80, .7));
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(2.75rem, 6vw, 4.75rem);
  max-width: 46rem;
}
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero p { font-size: 1.0625rem; margin-bottom: 0; }

.breadcrumb {
  position: relative;
  z-index: 2;
  font-size: .875rem;
  padding-top: 1.25rem;
  color: rgba(255, 255, 255, .7);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .55; }
.breadcrumb a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-500); }
.breadcrumb [aria-current] { color: #fff; }

/* ---------- 7. Cartes ---------- */
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal-100); }
/* « display: block » est indispensable : la carte-média est un lien <a>,
   et « aspect-ratio » ne s'applique pas à un élément en ligne. */
.card__media { display: block; aspect-ratio: 16 / 10; background: var(--teal-50); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .55rem; }
.card__body p { font-size: .9688rem; }
.card__footer { margin-top: auto; padding-top: 1.1rem; }

.card__tag {
  display: inline-block;
  font-family: var(--font-title);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: var(--teal-50);
  border-radius: 999px;
  padding: .3rem .75rem;
  margin-bottom: .85rem;
}
.card__tag--rust { color: var(--rust-600); background: var(--rust-100); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
  color: var(--rust-600);
}
.link-arrow::after { content: "→"; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Carte « valeur » sans image */
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
}
.feature__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal-700);
  margin-bottom: 1.1rem;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.125rem; }
.feature p { font-size: .9688rem; margin-bottom: 0; }

/* ---------- 8. Blocs texte + image ---------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.split--reverse .split__media { order: 2; }
@media (max-width: 60rem) {
  .split--reverse .split__media { order: 0; }
}

.checklist { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .7rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--teal-100);
  box-shadow: inset 0 0 0 2px var(--teal-600);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: .34rem;
  top: .78rem;
  width: .42rem;
  height: .22rem;
  border-left: 2px solid var(--teal-700);
  border-bottom: 2px solid var(--teal-700);
  transform: rotate(-45deg);
}

.pill-list { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.pill-list li {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5rem 1.05rem;
  font-size: .9375rem;
  color: var(--ink);
}
.pill-list--plain li { background: var(--sand); }

/* ---------- 9. Bandeaux ---------- */
.band {
  background: var(--teal-800);
  color: rgba(255, 255, 255, .88);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.25rem);
}
.band h2, .band h3 { color: #fff; }
.band--rust { background: var(--rust-600); }
.band--split {
  display: grid;
  gap: 1.75rem 3rem;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.stats li { margin: 0; }
.stats strong {
  display: block;
  font-family: var(--font-title);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--teal-700);
  line-height: 1.1;
}
.stats span { font-size: .9375rem; color: var(--muted); }

/* ---------- 10. Partenaires ---------- */
.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  list-style: none;
  padding: 0;
  margin: 0;
}
.partners li { margin: 0; display: grid; place-items: center; }
.partners img {
  max-height: 58px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .62;
  transition: filter .2s ease, opacity .2s ease;
}
.partners img:hover { filter: none; opacity: 1; }

/* ---------- 11. Équipe ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1.5rem; }
.team__card { text-align: center; }
.team__photo {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--teal-50);
  margin-bottom: .9rem;
  border: 1px solid var(--line);
}
.team__photo img { width: 100%; height: 100%; object-fit: cover; }
.team__card h3 { font-size: 1.0625rem; margin-bottom: .2rem; }
.team__role { font-size: .875rem; color: var(--muted); margin: 0; }

/* ---------- 12. Accordéons ---------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.accordion details + details { border-top: 1px solid var(--line); }
.accordion summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 1.5rem;
  cursor: pointer;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.0313rem;
  color: var(--ink);
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--teal-600);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.accordion details[open] summary::after { content: "–"; }
.accordion summary:hover { background: var(--teal-50); }
.accordion__content { padding: 0 1.5rem 1.5rem; }
.accordion__content > :first-child { margin-top: 0; }

/* Programme : blocs année */
.year-block h4 {
  font-family: var(--font-title);
  font-size: .8125rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rust-600);
  margin: 1.5rem 0 .6rem;
}
.year-block h4:first-child { margin-top: 0; }

/* ---------- 13. Actualités ---------- */
.post-meta {
  font-size: .875rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .9rem;
  margin-bottom: .85rem;
}
.article-body { max-width: 46rem; }
.article-body h2 { font-size: 1.5rem; margin-top: 2rem; }
.article-body figure { margin: 2rem 0; }
.article-body figure img { border-radius: var(--radius); width: 100%; }
.article-body figcaption { font-size: .875rem; color: var(--muted); margin-top: .6rem; }
.article-body blockquote {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--gold-500);
  background: var(--sand);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--ink);
}

.post-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
}

/* ---------- 14. Témoignage ---------- */
.quote {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
}
.quote blockquote { margin: 0; font-size: 1.125rem; color: var(--ink); }
.quote footer { margin-top: 1.25rem; font-size: .9375rem; color: var(--muted); }
.quote cite { font-style: normal; font-weight: 600; color: var(--ink); display: block; }

/* ---------- 15. Offres d'emploi ---------- */
.job {
  display: grid;
  gap: 1rem 2rem;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
@media (max-width: 46rem) { .job { grid-template-columns: 1fr; } }
.job h3 { margin-bottom: .35rem; }
.job__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.job__meta span {
  font-size: .8125rem;
  background: var(--teal-50);
  color: var(--teal-700);
  border-radius: 999px;
  padding: .25rem .75rem;
}
.job p { font-size: .9688rem; margin-bottom: 0; }
.job__action { display: flex; justify-content: flex-start; }

/* ---------- 16. Formulaire ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .9375rem;
  color: var(--ink);
  margin-bottom: .4rem;
}
.field .req { color: var(--rust-600); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .75rem .9rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px var(--teal-100);
  outline: none;
}
.field__hint { font-size: .8125rem; color: var(--muted); margin: .4rem 0 0; }

.field--check { display: flex; gap: .7rem; align-items: flex-start; }
.field--check input { width: auto; margin-top: .35rem; flex-shrink: 0; }
.field--check label { font-weight: 400; font-family: var(--font-body); font-size: .9063rem; color: var(--body); }

/* Pot de miel : masqué aux humains, laissé aux robots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: .9375rem;
  border: 1px solid;
}
.alert--error { background: var(--rust-100); border-color: #eab79c; color: var(--rust-700); }
.alert--success { background: var(--teal-50); border-color: #a9d5d1; color: var(--teal-800); }
.alert ul { margin: .5rem 0 0; }

.contact-info { list-style: none; padding: 0; margin: 0; }
.contact-info li { display: flex; gap: .9rem; margin-bottom: 1.5rem; }
.contact-info svg { width: 22px; height: 22px; color: var(--teal-600); flex-shrink: 0; margin-top: .25rem; }
.contact-info strong { display: block; font-family: var(--font-title); color: var(--ink); }
.contact-info a { color: var(--body); text-decoration: none; }
.contact-info a:hover { color: var(--rust-600); }

/* ---------- 17. Pied de page ---------- */
.site-footer {
  background: var(--teal-900);
  color: rgba(255, 255, 255, .72);
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
  font-size: .9375rem;
}
.site-footer h2, .site-footer h3 {
  color: #fff;
  font-size: .8125rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  padding-bottom: 2.75rem;
}
@media (min-width: 62rem) {
  .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); }
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: var(--gold-500); }
.footer-brand img { width: 210px; margin-bottom: 1.25rem; }

.socials { display: flex; gap: .6rem; margin-top: 1.25rem; }
.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.socials a:hover { background: var(--gold-500); color: var(--teal-900); }
.socials svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  font-size: .875rem;
}
.footer-bottom p { margin: 0; }

/* ---------- 18. Page 404 ---------- */
.error-page { text-align: center; padding-block: clamp(4rem, 10vw, 8rem); }
.error-page .code {
  font-family: var(--font-title);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  color: var(--teal-100);
  line-height: 1;
  margin-bottom: 1rem;
}

/* ---------- 19. Impression ---------- */
@media print {
  .site-header, .topbar, .site-footer, .btn, .nav-toggle { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .hero::after, .page-hero::after { display: none; }
}
