/* 2af.ca — feuille de style de la refonte */
:root {
  --ink: #05092B;
  --text: #3A4260;
  --muted: #4A5370;
  --line: #E4E7EF;
  --soft: #F4F6FB;
  --primary: #0A4DFF;
  --primary-dark: #0638B8;
  --red: #D7262E;
  --red-text: #B01C24;
  --blue: #0A4DFF;
  --amber: #F6A21A;
  --amber-text: #A35F00;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Figtree, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: #FFFFFF;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: Sora, system-ui, sans-serif; }
summary { cursor: pointer; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

/* Classes reprises des maquettes */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ph { border: 1.5px dashed #9AA3B8; border-radius: 12px; color: #5B6478; background: #F7F8FB; }
.h2 { font-family: Sora, sans-serif; font-weight: 600; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }

/* Boutons */
.btn { display: inline-block; font: inherit; font-weight: 600; text-decoration: none; border: 0; border-radius: 12px; padding: 15px 26px; cursor: pointer; line-height: 1.2; }
.btn-sm { padding: 12px 20px; border-radius: 10px; font-size: 16px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1A2050; color: #fff; }
button[disabled] { opacity: .6; cursor: wait; }

/* Barre utilitaire */
.topbar { background: var(--ink); color: #E6E9F2; font-size: 14px; }
.topbar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
.topbar-links { display: flex; flex-wrap: wrap; gap: 20px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }

/* En-tête */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand img { height: 46px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; align-items: center; }
.main-nav a, .sub-toggle { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.main-nav a:hover, .sub-toggle:hover { color: var(--primary); }
.main-nav a[aria-current="page"], .sub-toggle[aria-current="page"] { color: var(--primary); }
.main-nav .nav-cta { color: #fff; }
.main-nav .nav-cta:hover { color: #fff; }
.sub-toggle { background: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 6px; }
.sub-toggle::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.has-sub { position: relative; }
.sub { list-style: none; margin: 0; padding: 10px; position: absolute; top: calc(100% + 14px); left: -16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(5, 9, 43, .12); min-width: 280px; display: none; }
.has-sub.open .sub { display: block; }
.sub a { display: grid; grid-template-columns: 14px 1fr; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; }
.sub a:hover { background: var(--soft); }
.sub small { grid-column: 2; font-weight: 500; color: var(--muted); font-size: 13px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-red { background: var(--red); } .dot-blue { background: var(--blue); } .dot-amber { background: var(--amber); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 46px; height: 46px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -6px; } .nav-toggle-bars::after { position: absolute; top: 6px; }

/* Menu centré entre le logo et le bouton « Prendre rendez-vous » (écrans larges, ajout 22 oct. 2026) */
@media (min-width: 1081px) {
  .main-nav { flex: 1; padding-left: 12px; } /* compense l'écart 16 px (en-tête) vs 28 px (menu) */
  .main-nav > ul { margin: 0 auto; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 24px 24px; gap: 12px; box-shadow: 0 16px 24px rgba(5, 9, 43, .08); }
  .main-nav.open { display: flex; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li > a, .sub-toggle { display: flex; width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); justify-content: space-between; }
  .sub { position: static; box-shadow: none; border: 0; padding: 4px 0 8px; min-width: 0; }
  .nav-cta { text-align: center; }
  .brand img { height: 38px; }
}

/* Pied de page */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); font-size: 15px; }
.site-footer .wrap { padding-top: 64px; padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 48px; }
.footer-logo { height: 40px; width: auto; display: block; margin-bottom: 16px; }
.site-footer p { margin: 0 0 12px; color: var(--text); }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav strong { margin-bottom: 4px; }
.site-footer nav a, .site-footer p a { color: var(--text); text-decoration: none; }
.site-footer nav a:hover, .site-footer p a:hover { color: var(--primary); text-decoration: underline; }
.newsletter { display: flex; flex-direction: column; gap: 10px; }
.newsletter input[type="email"] { padding: 12px 14px; border: 1px solid #C9CEDD; border-radius: 10px; font: inherit; background: #fff; }
.footer-bottom { border-top: 1px solid #DCE0EA; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--muted); }

/* Formulaires */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; font-size: 15px; min-height: 0; }
.form-msg.ok { color: #0F6B3A; font-weight: 600; }
.form-msg.err { color: var(--red-text); font-weight: 600; }
input:invalid:not(:placeholder-shown):not(:focus) { border-color: var(--red); }

/* Offres d'emploi (flux recru2af.com) */
.job-card { border: 1px solid var(--line); border-radius: 14px; padding: 24px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.job-card:hover { border-color: var(--primary); box-shadow: 0 6px 20px rgba(5, 9, 43, .08); color: var(--ink); }
.job-card .job-meta { font-size: 13px; color: var(--muted); }
.job-card .job-title { font-family: Sora, sans-serif; font-size: 19px; font-weight: 600; line-height: 1.3; }
.job-card .job-tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.job-card .job-tags span { background: var(--soft); padding: 4px 10px; border-radius: 99px; }

/* Blogue et pages de texte */
.page-hero { background: var(--soft); }
.page-hero .wrap { padding-top: 64px; padding-bottom: 56px; }
.page-hero h1 { font-weight: 700; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.03em; margin: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.post-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 12px; }
.post-card img, .post-card .ph { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border-radius: 12px; display: block; }
.post-card .post-date { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.post-card .post-title { font-family: Sora, sans-serif; font-size: 20px; font-weight: 600; line-height: 1.3; }
.post-card:hover .post-title { color: var(--primary); }
.post-card .post-source { text-transform: none; letter-spacing: 0; color: var(--primary); }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 56px; }
.pager a, .pager span { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; padding: 0 12px; }
.pager span[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.prose { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; color: var(--text); font-size: 18px; }
.prose h2 { font-size: 26px; color: var(--ink); margin: 48px 0 12px; line-height: 1.25; }
.prose h3, .prose h4 { font-size: 20px; color: var(--ink); margin: 32px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose img { border-radius: 12px; }
.prose a { color: var(--primary); }
.article-cover { width: 100%; max-height: 480px; object-fit: cover; border-radius: 16px; margin-bottom: 32px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.tags span { background: var(--soft); border-radius: 99px; padding: 4px 12px; font-size: 14px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .topbar-inner > span:first-child { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Ajustements mobiles des sections issues des maquettes */
@media (max-width: 640px) {
  .hero-badge { left: 12px !important; right: 12px; bottom: -28px !important; max-width: none !important; }
}

/* Pages juridiques : encadré et tableaux (politique de confidentialité, 21 oct. 2026) */
.prose .callout { background: #EEF3FF; border-radius: 14px; padding: 20px 24px; margin: 0 0 32px; }
.prose .callout ul { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 16px; display: block; overflow-x: auto; }
.prose th { text-align: left; background: #F4F6FB; color: var(--ink); font-size: 14px; padding: 10px 14px; white-space: nowrap; }
.prose td { border-top: 1px solid #E3E7EF; padding: 10px 14px; vertical-align: top; }

/* Images du site (ajout 22 oct. 2026) */
.photo { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 10px 32px rgba(5, 9, 43, 0.14); background: #E4E7EF; }
.photo-wide { max-width: 760px; margin-left: auto; margin-right: auto; }

/* Rubrique Équipe (ajout 22 oct. 2026) */
.equipe { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.equipe article { border: 1px solid #E4E7EF; border-radius: 16px; padding: 28px; background: #FFFFFF; display: flex; flex-direction: column; gap: 12px; }
.equipe article.vedette { grid-column: 1 / -1; background: #05092B; border-color: #05092B; color: #FFFFFF; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; padding: 36px; }
.equipe .ico { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.equipe h3 { font-family: Sora, sans-serif; font-size: 21px; margin: 0; line-height: 1.25; }
.equipe p { margin: 0; color: #3A4260; }
.equipe .vedette h3 { font-size: 24px; margin-bottom: 10px; }
.equipe .vedette p { color: #C9CEDD; font-size: 18px; }
.equipe .chiffre { font-family: Sora, sans-serif; font-weight: 700; color: #F6A21A; }
@media (max-width: 640px) { .equipe article.vedette { grid-template-columns: 1fr; padding: 28px; } }

/* ===== Hero Recrutement : l'image suit la hauteur du texte ===== */
.hero-split { align-items: center; }
@media (min-width: 820px) {
  .hero-split { align-items: stretch; }
  .hero-split > .photo { height: 0; min-height: 100%; width: auto; max-width: 100%; justify-self: center; }
}

/* ===== Article de blogue : colonne « À lire aussi » + partage ===== */
.page-hero .wrap.wrap--article { max-width: 1200px; }
.article-grille { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; padding-top: 48px; padding-bottom: 88px; }
.article-grille .prose { max-width: 780px; margin: 0; padding: 0; min-width: 0; }
.article-aside { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: #FFFFFF; }
.article-aside__titre { font-family: Sora, sans-serif; font-size: 18px; font-weight: 700; color: var(--ink); margin: 0 0 14px; }
.article-aside__liste { list-style: none; margin: 0; padding: 0; }
.article-aside__liste li + li { border-top: 1px solid var(--line); }
.mini { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; text-decoration: none; color: var(--ink); }
.mini__img { flex: 0 0 88px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--soft); }
.mini__img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.mini__txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mini__titre { font-weight: 600; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mini:hover .mini__titre { color: var(--primary); }
.mini__date { font-size: 12.5px; color: var(--muted); }
.article-aside__tous { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--primary); text-decoration: none; }
.partage { background: var(--soft); border-radius: 14px; padding: 20px 24px; margin-top: 40px; }
.partage__titre { display: block; margin-bottom: 12px; color: var(--ink); font-weight: 700; font-size: 16px; }
.partage__liens { display: flex; gap: 8px; flex-wrap: wrap; }
.partage__liens a, .partage__liens button { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; border: 1px solid #C9CEDD; border-radius: 999px; padding: 9px 16px; background: #FFFFFF; cursor: pointer; }
.partage__liens a:hover, .partage__liens button:hover { border-color: var(--primary); color: var(--primary); }
@media (max-width: 1000px) {
  .article-grille { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .article-aside { position: static; }
  .article-grille .prose { max-width: none; }
}
@media (max-width: 640px) { .article-grille { padding-top: 28px; padding-bottom: 56px; } }

/* Citations dans les articles (console de gestion) */
.prose blockquote { border-left: 4px solid var(--primary); margin: 0 0 18px; padding: 4px 0 4px 18px; color: var(--muted); }


/* Bannière de témoins (Loi 25) — 30 oct. 2026 */
.temoins { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 720px; margin: 0 auto; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(5, 9, 43, .18); padding: 20px 22px; font-size: 15px; line-height: 1.5; }
.temoins[hidden] { display: none; }
.temoins p { margin: 0 0 10px; }
.temoins-titre { color: var(--ink); }
.temoins-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.temoins-actions .btn { min-height: 44px; }
.footer-legal .js-temoins { cursor: pointer; }

/* Cartes de contenu (remplacent les cadres pointillés de maquette) — 31 oct. 2026 */
.carte-secteur { background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; color: var(--text); }
.encadre-info { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; }

/* Carte Google Maps en attente de consentement — 31 oct. 2026 */
.carte-attente { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; color: var(--text); font-size: 15px; }
.carte-attente p { margin: 0; max-width: 320px; }

/* Réseaux sociaux du pied de page — 1er nov. 2026 */
.footer-social { margin-top: 20px; }
.footer-social > span { display: block; font-weight: 600; color: var(--ink, #05092B); margin-bottom: 10px; }
.footer-social > div { display: flex; gap: 10px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--text); transition: color .15s, border-color .15s, transform .15s; }
.footer-social a:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-2px); }

/* Infolettre candidats et employeurs — 1er nov. 2026 */
.newsletter .nl-intro { margin: -4px 0 2px; font-size: 14px; line-height: 1.45; }
.newsletter .nl-note { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.newsletter .form-msg:empty { display: none; }