/* Akerto : feuille de style commune (accueil, confirmation, pages légales).
   Direction de design : livrables/sites-web/2026-10-07_refonte-site-akerto/direction-design.md */

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/schibsted-grotesk-latin.woff2') format('woff2');
}

:root {
  --encre: #0c1a2b;
  --ardoise: #45525f;
  --sarcelle: #0f8b82;
  --sarcelle-fonce: #0a6f68;
  --sarcelle-nuit: #085a54;
  --sarcelle-claire: #cfe7e4;
  --trame: #e3e8ec;
  --papier: #f5f7f8;
  --blanc: #ffffff;
  --brume: #9fb0bd;
  --largeur: 1180px;
  --gouttiere: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--sarcelle-fonce); outline-offset: 3px; }

.visuellement-cache {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lien-evitement {
  position: absolute; left: -10000px; top: 0; z-index: 100;
  background: var(--sarcelle-fonce); color: var(--blanc);
  padding: 12px 20px; border-radius: 0 0 8px 0; font-weight: 600;
}
.lien-evitement:focus { left: 0; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }

/* ---------- En-tête ---------- */

.entete {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--trame);
}
.entete-ligne {
  max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.marque { font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav-lien { font-size: 15px; font-weight: 500; color: var(--ardoise); }
.nav-lien:hover { color: var(--encre); }
.menu-bouton {
  display: none; width: 44px; height: 44px; padding: 0; cursor: pointer;
  background: none; border: 1px solid var(--trame); border-radius: 8px;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.menu-bouton span { width: 18px; height: 2px; background: var(--encre); border-radius: 2px; }
.nav-mobile {
  display: none; flex-direction: column; gap: 4px;
  border-top: 1px solid var(--trame); background: var(--blanc); padding: 14px 24px 22px;
}
.nav-mobile.ouvert { display: flex; }
.nav-mobile a { padding: 12px 4px; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--papier); }
.nav-mobile a.bouton { margin-top: 10px; text-align: center; border-bottom: 0; }
@media (max-width: 819px) {
  .nav { display: none; }
  .menu-bouton { display: flex; }
}

/* ---------- Boutons ---------- */

.bouton {
  display: inline-block; font-family: inherit; font-weight: 600; font-size: 16px; line-height: 1.2;
  padding: 15px 26px; border-radius: 8px; cursor: pointer; border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.bouton-plein { background: var(--sarcelle-fonce); color: var(--blanc); }
.bouton-plein:hover { background: var(--sarcelle-nuit); }
.bouton-contour { background: var(--blanc); color: var(--encre); border-color: #cfd7dd; }
.bouton-contour:hover { border-color: var(--sarcelle-fonce); color: var(--sarcelle-fonce); }
.bouton-petit { font-size: 15px; padding: 10px 18px; }

/* ---------- Sections ---------- */

section { scroll-margin-top: 80px; }
.section { padding: clamp(72px, 9vw, 112px) 0; }
.section-papier { background: var(--papier); }
.section-titre { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; }
.section-intro { margin-top: 16px; max-width: 38em; color: var(--ardoise); font-size: 18px; }
/* Phrase longue des secteurs : toute la largeur, pour tenir sur deux lignes sur ordinateur */
.section-intro-large { max-width: none; }
.section-tete { margin-bottom: 48px; }

/* ---------- Accueil ---------- */

.accueil { padding: 128px 0 clamp(64px, 8vw, 96px); }
.accueil-grille { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) {
  .accueil-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
}
.accueil h1 { font-size: clamp(38px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -0.03em; }
.accueil-sous-titre { margin-top: 22px; max-width: 28em; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--ardoise); }
.accueil-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Photo du haut de page : recadrée en 4/3 sur ordinateur pour équilibrer le titre */
.accueil-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; background: var(--papier); }
@media (min-width: 980px) {
  .accueil-photo { aspect-ratio: 4 / 3; }
}

/* ---------- Secteurs ---------- */

.secteur { display: grid; gap: 28px; align-items: center; }
.secteur + .secteur { margin-top: clamp(56px, 7vw, 88px); }
@media (min-width: 900px) {
  .secteur { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }
  .secteur-inverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .secteur-inverse .secteur-photo { order: 2; }
}
/* Même cadre 3/2 pour les trois photos, quel que soit leur format d'origine */
.secteur-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; background: var(--trame); }
.secteur-texte h3 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; }
.secteur-perimetre { margin-top: 10px; font-weight: 600; color: var(--sarcelle-fonce); }
.secteur-texte > p:not(.secteur-perimetre) { margin-top: 12px; color: var(--ardoise); }
.secteur-postes { list-style: none; margin: 20px 0 0; padding: 0; }
.secteur-postes li { padding: 7px 0 7px 22px; border-top: 1px solid var(--trame); position: relative; font-size: 16px; }
.secteur-postes li::before {
  content: ""; position: absolute; left: 3px; top: 50%; width: 8px; height: 8px; border-radius: 1.5px;
  background: var(--sarcelle); transform: translateY(-50%) rotate(45deg);
}

/* ---------- Méthode : frise ---------- */

.frise { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
@media (min-width: 900px) {
  .frise { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
}
.etape { position: relative; padding-top: 30px; border-top: 1px solid #c9d3da; }
.etape::before {
  content: ""; position: absolute; top: -7px; left: 0;
  width: 13px; height: 13px; border-radius: 2px; background: var(--encre); transform: rotate(45deg);
}
.etape-numero { font-size: 15px; font-weight: 700; color: var(--sarcelle-fonce); font-variant-numeric: tabular-nums; }
.etape h3 { margin-top: 6px; font-size: 21px; line-height: 1.25; }
.etape p { margin-top: 10px; font-size: 16px; color: var(--ardoise); }

/* ---------- Candidats ---------- */

.candidats-texte { max-width: 40em; }
.candidats-texte p { margin-top: 16px; color: var(--ardoise); font-size: 18px; }
.candidats-texte .bouton { margin-top: 28px; }

/* ---------- Contact ---------- */

.contact-grille { display: grid; gap: 48px; }
@media (min-width: 900px) {
  .contact-grille { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; }
}
.contact-texte p { margin-top: 16px; color: var(--ardoise); font-size: 18px; max-width: 28em; }
.contact-mail { display: inline-block; margin-top: 28px; font-weight: 600; color: var(--sarcelle-fonce); }
.contact-mail:hover { color: var(--encre); }

.formulaire {
  display: flex; flex-direction: column; gap: 16px; padding: 30px;
  background: var(--papier); border: 1px solid var(--trame); border-radius: 14px;
}
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label { font-size: 14px; font-weight: 600; }
/* 16 px minimum : en dessous, Safari sur iPhone zoome sur le champ à la saisie */
.champ input, .champ select, .champ textarea {
  font-family: inherit; font-size: 16px; color: var(--encre);
  padding: 12px 14px; border: 1px solid #cfd7dd; border-radius: 8px; background: var(--blanc);
}
.champ textarea { resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none; border-color: var(--sarcelle-fonce); box-shadow: 0 0 0 3px rgba(10, 111, 104, 0.2);
}
.piege { position: absolute; left: -10000px; height: 0; overflow: hidden; margin: 0; }
.formulaire .bouton { width: 100%; margin-top: 4px; }
.formulaire-note { font-size: 13.5px; line-height: 1.5; color: var(--ardoise); }
.formulaire-note a { color: var(--sarcelle-fonce); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 480px) {
  .formulaire { padding: 22px; }
}

/* ---------- Pied de page ---------- */

.pied { background: var(--encre); color: var(--brume); padding: 56px 0 36px; font-size: 15px; }
.pied-grille { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.pied-marque { color: var(--blanc); font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }
.pied-resume { margin-top: 10px; max-width: 22em; }
.pied-colonnes { display: flex; flex-wrap: wrap; gap: 48px; }
.pied-titre { color: var(--blanc); font-weight: 600; margin-bottom: 12px; }
.pied-colonnes ul { list-style: none; margin: 0; padding: 0; }
.pied-colonnes li + li { margin-top: 8px; }
.pied a { color: #cdd8e0; }
.pied a:hover { color: var(--blanc); }
.pied-bas { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13.5px; color: #8496a3; }

/* ---------- Pages légales ---------- */

.page-legale { padding: 128px 0 88px; }
.page-legale .conteneur { max-width: 780px; }
.page-legale h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; }
.page-legale h2 { margin: 44px 0 12px; font-size: 22px; line-height: 1.3; }
.page-legale h3 { margin: 24px 0 8px; font-size: 18px; line-height: 1.35; }
.page-legale p, .page-legale li { max-width: 68ch; }
.page-legale p + p, .page-legale ul + p { margin-top: 12px; }
.page-legale ul { margin: 12px 0 0; padding-left: 1.2em; }
.page-legale li + li { margin-top: 6px; }
.page-legale a { color: var(--sarcelle-fonce); text-decoration: underline; text-underline-offset: 3px; }
.fiche { margin: 12px 0 0; display: grid; gap: 4px 24px; max-width: 68ch; }
.fiche dt { font-weight: 600; }
.fiche dd { margin: 0 0 10px; }
@media (min-width: 640px) {
  .fiche { grid-template-columns: 8.5rem minmax(0, 1fr); }
  .fiche dd { margin-bottom: 8px; }
}
.page-legale .legal-chapeau { margin-top: 16px; font-size: 18px; color: var(--ardoise); }
.legal-maj, .legal-version { margin-top: 32px; font-size: 15px; color: var(--ardoise); }

/* ---------- Page de confirmation ---------- */

.confirmation { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--papier); }
.confirmation-bloc { max-width: 520px; }
.confirmation .marque { display: inline-block; margin-bottom: 28px; }
.confirmation h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.1; }
.confirmation p { margin: 16px 0 30px; color: var(--ardoise); font-size: 18px; }
