/* ============================================================
   GESTINE Services — Feuille de style du site public
   Palette : bleu marque #1d3f94 / rouge accent #d61f2c
   ============================================================ */

:root {
  --blue: #1d3f94;
  --blue-dark: #142c68;
  --blue-darker: #0e1f4b;
  --red: #d61f2c;
  --ink: #1a2233;
  --muted: #5b6474;
  --line: #e3e7ef;
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 44, 104, .10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }

h1, h2, h3 { line-height: 1.25; color: var(--ink); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 2px solid transparent; transition: all .18s ease;
}
.btn-lg { padding: 14px 28px; font-size: 1.02rem; }
.btn-sm { padding: 7px 16px; font-size: .85rem; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #b8121e; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 48px; width: auto; display: block; }
/* Logo réel de gestine.net (bannière sur fond blanc) posé sur pastille pour les fonds sombres */
.footer-logo { height: 42px; width: auto; display: inline-block; background: #fff; padding: 8px 13px; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > a, .nav-drop > a { color: var(--ink); font-weight: 550; font-size: .95rem; padding: 6px 0; }
.main-nav > a:hover, .nav-drop > a:hover { color: var(--red); }
.nav-cta { color: #fff !important; }

.nav-drop { position: relative; }
.drop-menu {
  position: absolute; top: calc(100% + 8px); left: -14px; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s ease;
}
.nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu { opacity: 1; visibility: visible; transform: none; }
.drop-menu a { display: block; padding: 9px 14px; border-radius: 8px; color: var(--ink); font-size: .92rem; }
.drop-menu a:hover { background: var(--bg-soft); color: var(--blue); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--blue); margin: 5px 0; border-radius: 2px; transition: all .2s; }

/* ---------- Flash ---------- */
.flash { padding: 14px 0; font-weight: 550; }
.flash-success { background: #e7f7ee; color: #12603a; border-bottom: 1px solid #bfe8d2; }
.flash-error { background: #fdeaea; color: #8f1620; border-bottom: 1px solid #f5c4c8; }

/* ---------- Hero accueil ---------- */
.hero {
  background: linear-gradient(135deg, var(--blue-darker) 0%, var(--blue) 62%, #2a55c0 100%);
  color: #fff; overflow: hidden; position: relative;
}
.hero::after {
  content: ""; position: absolute; right: -140px; top: -140px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 31, 44, .35), transparent 65%);
}
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; padding: 84px 22px 90px; position: relative; z-index: 1; }
.hero-kicker { text-transform: uppercase; letter-spacing: 3px; font-size: .8rem; color: #9fb4e8; font-weight: 700; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); color: #fff; font-weight: 800; margin-bottom: 18px; }
.hero-lead { font-size: 1.08rem; color: #ccd8f5; max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.65); }
.hero .btn-outline:hover { background: #fff; color: var(--blue); }

.hero-panel { display: flex; flex-direction: column; gap: 14px; }
.hero-stat {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius); padding: 18px 22px;
  backdrop-filter: blur(4px);
}
.hero-stat strong { display: block; font-size: 1.7rem; font-weight: 800; color: #fff; }
.hero-stat span { color: #b9c8ef; font-size: .92rem; }

/* ---------- Sections ---------- */
.section { padding: 74px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: 2rem; margin-bottom: 10px; }
.section-head p { color: var(--muted); }

/* ---------- Cartes services ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: all .2s ease; display: block; color: var(--ink);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c9d4ec; }
.card-icon {
  width: 52px; height: 52px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, #e8edfa, #dbe4f7); color: var(--blue);
}
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .93rem; margin-bottom: 14px; }
.card-link { color: var(--red); font-weight: 650; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Offres ---------- */
.jobs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.job-card h3 { margin: 10px 0 4px; }
.job-sector { color: var(--muted); font-size: .88rem; }
.job-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--muted); border-radius: 999px;
  padding: 4px 12px; font-size: .8rem; font-weight: 600;
}
.tag-type { background: #e8edfa; color: var(--blue); border-color: #cfdaf3; }
.job-date { color: #98a0b0; font-size: .82rem; }

.jobs-list { display: flex; flex-direction: column; gap: 14px; }
.job-row {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; color: var(--ink); transition: all .18s ease;
}
.job-row:hover { border-color: #c9d4ec; box-shadow: var(--shadow); }
.job-row h2 { font-size: 1.15rem; margin-bottom: 8px; }
.job-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; white-space: nowrap; }
.results-count { color: var(--muted); margin-bottom: 18px; font-weight: 550; }

/* ---------- Filtres ---------- */
.filters {
  display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 30px; box-shadow: 0 4px 18px rgba(20,44,104,.06);
}
.filters input, .filters select {
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .95rem; background: var(--bg-soft);
}
.filters input:focus, .filters select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }

/* ---------- Pages internes ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--blue-darker), var(--blue));
  color: #fff; padding: 52px 0;
}
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 8px 0; }
.page-lead { color: #ccd8f5; max-width: 640px; }
.page-hero .job-tags .tag { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #dce4f8; }
.page-hero .job-date { color: #9fb4e8; }
.breadcrumb { font-size: .85rem; color: #9fb4e8; }
.breadcrumb a { color: #cdd9f6; }

.split { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }
.content h2 { font-size: 1.45rem; margin: 26px 0 12px; }
.content h2:first-child { margin-top: 0; }
.content h3 { margin: 20px 0 8px; }
.content p { margin-bottom: 14px; color: #333c4e; }
.content ul, .content ol { margin: 0 0 16px 22px; color: #333c4e; }
.content li { margin-bottom: 7px; }
.content-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.signature { font-style: italic; color: var(--muted); }

.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }
.sidebar-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.sidebar-box h3 { font-size: 1.02rem; margin-bottom: 12px; }
.sidebar-box .btn { width: 100%; justify-content: center; margin-top: 10px; }
.sidebar-links { list-style: none; }
.sidebar-links li { border-bottom: 1px solid var(--line); }
.sidebar-links li:last-child { border-bottom: 0; }
.sidebar-links a { display: flex; align-items: center; gap: 10px; padding: 10px 4px; color: var(--ink); font-size: .93rem; }
.sidebar-links a:hover, .sidebar-links li.active a { color: var(--red); }
.sidebar-contact { background: var(--bg-soft); }
.sidebar-contact p { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; color: #333c4e; font-size: .94rem; }
.steps { list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding: 10px 0 10px 42px; position: relative; font-size: .93rem; color: #333c4e; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .85rem;
}

/* ---------- Listes à puces "check" ---------- */
.checklist { list-style: none; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; color: #333c4e; }
.checklist svg { color: #17984f; flex-shrink: 0; margin-top: 3px; }
.checklist-compact li { margin-bottom: 10px; font-size: .93rem; }

.cta-panel {
  background: linear-gradient(160deg, var(--blue-darker), var(--blue));
  border-radius: var(--radius); color: #dce4f8; padding: 32px;
}
.cta-panel h3 { color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.cta-panel p { font-size: .94rem; margin-bottom: 16px; }
.cta-panel hr { border: 0; border-top: 1px solid rgba(255,255,255,.18); margin: 24px 0; }
.cta-panel .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.cta-panel .btn-outline:hover { background: #fff; color: var(--blue); }

/* ---------- Formulaires ---------- */
.form-card, .apply-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px;
}
.apply-box { margin-top: 34px; background: var(--bg-soft); }
.apply-box h2 { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 14px; }
form input, form select, form textarea {
  padding: 11px 14px; border: 1px solid #cdd4e2; border-radius: 10px;
  font: inherit; font-size: .96rem; background: #fff; font-weight: 400;
}
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
form input[type="file"] { padding: 9px; background: var(--bg-soft); }
.form-note { color: var(--muted); font-size: .82rem; margin-top: 12px; }

.alert { border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; }
.alert ul { margin-left: 18px; }
.alert-error { background: #fdeaea; color: #8f1620; border: 1px solid #f5c4c8; }

/* ---------- Partage ---------- */
.share-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 26px 0 6px; color: var(--muted); font-size: .9rem; }
.share-btn {
  padding: 6px 14px; border-radius: 999px; font-size: .84rem; font-weight: 650;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--blue);
}
.share-btn:hover { background: var(--blue); color: #fff; }

/* ---------- États vides ---------- */
.empty-state { text-align: center; padding: 50px 20px; }
.empty-state h1, .empty-state h2 { margin-bottom: 12px; }
.empty-state p { color: var(--muted); max-width: 520px; margin: 0 auto 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-darker); color: #b9c4e2; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 36px; padding: 56px 22px 40px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; font-size: .92rem; }
.site-footer a { color: #b9c4e2; }
.site-footer a:hover { color: #fff; }
.brand-footer .brand-text { color: #fff; }
.brand-footer + p { margin: 14px 0 18px; font-size: .92rem; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { flex-shrink: 0; margin-top: 3px; }
.socials { display: flex; gap: 10px; }
.socials a {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; background: rgba(255,255,255,.1); color: #fff;
  transition: background .18s;
}
.socials a:hover { background: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 60px 22px; }
  .hero-panel { flex-direction: row; flex-wrap: wrap; }
  .hero-stat { flex: 1 1 160px; }
  .cards-grid, .jobs-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .filters { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Nav en burger dès 960px : le logo réel + 7 entrées ne tiennent pas en dessous */
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 22px 20px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav > a, .nav-drop > a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .drop-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; }
  .nav-cta { margin-top: 14px; justify-content: center; }
}

@media (max-width: 680px) {
  .cards-grid, .jobs-grid, .form-grid, .filters { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .job-row { flex-direction: column; align-items: flex-start; }
  .job-row-side { flex-direction: row; align-items: center; }
  .brand-logo { height: 40px; }
}

/* ============================================================
   ACCUEIL v2 — héro animé, révélations au scroll, illustrations
   ============================================================ */

/* ----- Héro ----- */
.hero2 { position: relative; overflow: hidden; background: linear-gradient(180deg, #fbfcff 0%, #eef2fb 100%); }
.hero2-bg { position: absolute; inset: 0; pointer-events: none; }
.hero2-grid { position: absolute; inset: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.blob-a { width: 420px; height: 420px; background: #c9d6f2; top: -140px; left: -120px; animation: blobDrift 14s ease-in-out infinite alternate; }
.blob-b { width: 340px; height: 340px; background: #f3cdd0; bottom: -120px; right: -80px; animation: blobDrift 18s ease-in-out infinite alternate-reverse; }
.blob-c { width: 240px; height: 240px; background: #dbe3f4; top: 30%; right: 26%; animation: blobDrift 22s ease-in-out infinite alternate; }
@keyframes blobDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(46px, 30px) scale(1.12); }
}
.hero2-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 40px; align-items: center; padding: 84px 22px 110px;
}
.hero2-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: .82rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--blue); background: #fff; border: 1px solid var(--line);
  padding: 7px 15px; border-radius: 999px; box-shadow: 0 4px 14px rgba(20,44,104,.07);
}
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulseDot 2s ease-in-out infinite; }
@keyframes pulseDot { 0%,100% { box-shadow: 0 0 0 0 rgba(214,31,44,.45); } 50% { box-shadow: 0 0 0 6px rgba(214,31,44,0); } }
.hero2-text h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.08; margin: 18px 0 0; letter-spacing: -1px; }
.grad-text {
  background: linear-gradient(90deg, var(--blue) 10%, var(--red) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero2-lead { margin: 20px 0 0; font-size: 1.13rem; color: var(--muted); max-width: 54ch; }
.hero2-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero2-stats { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.hstat strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--blue); letter-spacing: -1px; }
.hstat strong i { font-style: normal; color: var(--red); }
.hstat span { font-size: .86rem; color: var(--muted); }

/* Entrées du héro */
.anim-up { opacity: 0; transform: translateY(22px); animation: riseIn .7s cubic-bezier(.2,.7,.3,1) forwards; animation-delay: var(--d, 0s); }
.anim-in { opacity: 0; transform: scale(.94); animation: scaleIn .9s cubic-bezier(.2,.7,.3,1) forwards; animation-delay: var(--d, 0s); }
@keyframes riseIn { to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { to { opacity: 1; transform: scale(1); } }

/* Illustration réseau */
.hero2-art svg { width: 100%; height: auto; display: block; }
.float-slow { animation: floatY 6s ease-in-out infinite; }
.float-a { animation: floatY 5s ease-in-out infinite; }
.float-b { animation: floatY 7s ease-in-out infinite reverse; }
.float-c { animation: floatY 6.4s ease-in-out 1s infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.dash { animation: dashMove 2.6s linear infinite; }
@keyframes dashMove { to { stroke-dashoffset: -26; } }
.pulse-ring { animation: ringPulse 2.8s ease-out infinite; transform-origin: 260px 235px; }
@keyframes ringPulse { 0% { transform: scale(1); opacity: .7; } 80%,100% { transform: scale(1.55); opacity: 0; } }
.hero2-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero2-wave svg { width: 100%; height: 70px; display: block; }

/* ----- Révélation au scroll -----
   Amélioration progressive : le contenu est visible par défaut.
   main.js pose html.anim uniquement quand IntersectionObserver
   fonctionne réellement — sans JS (ou IO en panne), rien n'est caché. */
html.anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s cubic-bezier(.2,.7,.3,1), transform .65s cubic-bezier(.2,.7,.3,1); transition-delay: var(--sd, 0s); }
html.anim .reveal.is-visible { opacity: 1; transform: none; }

/* ----- Sections ----- */
.eyebrow { font-weight: 700; font-size: .8rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.eyebrow-light { color: #ffb3b9; }
.section-services .service-card:hover .card-icon { transform: translateY(-4px) rotate(-4deg); }
.card-icon { transition: transform .25s cubic-bezier(.2,.7,.3,1); }

/* Étapes candidats */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 10px; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 26px 28px; text-align: center; box-shadow: var(--shadow);
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s;
}
.step:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(20,44,104,.14); }
.step-num {
  position: absolute; top: -17px; left: 50%; transform: translateX(-50%);
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--red); color: #fff; font-weight: 800; border-radius: 50%;
  box-shadow: 0 6px 16px rgba(214,31,44,.35);
}
.step-art { width: 96px; height: 96px; margin: 4px auto 12px; }
.step-art svg { width: 100%; height: 100%; }
.step h3 { margin-bottom: 8px; font-size: 1.08rem; }
.step p { color: var(--muted); font-size: .93rem; }

/* Employeurs */
.section-employer {
  background: linear-gradient(135deg, var(--blue-darker) 0%, var(--blue) 100%);
  color: #dfe6f7; position: relative; overflow: hidden;
}
.section-employer h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 20px; }
.checklist-light li { color: #dfe6f7; }
.checklist-light svg { color: #6ee7a0; }
.employer-art svg { width: 100%; height: auto; }
.btn-white { background: #fff; color: var(--blue); border: 0; }
.btn-white:hover { background: #f0f3fb; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* Valeurs */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow);
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s;
}
.value-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(20,44,104,.13); }
.value-ico { font-size: 1.8rem; display: block; margin-bottom: 12px; }
.value-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.value-card p { color: var(--muted); font-size: .9rem; }

/* Bande CTA finale */
.cta-band { background: linear-gradient(90deg, var(--red) 0%, #a91620 100%); color: #fff; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 46px 22px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #ffd9dc; }
.cta-band .btn-white { color: var(--red); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.12); }

/* Bouton lumineux */
.btn-glow { position: relative; }
.btn-glow::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(29,63,148,.4); animation: glowPulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes glowPulse { 0% { box-shadow: 0 0 0 0 rgba(29,63,148,.35); } 70%,100% { box-shadow: 0 0 0 14px rgba(29,63,148,0); } }

/* Responsive héro v2 */
@media (max-width: 960px) {
  .hero2-inner { grid-template-columns: 1fr; padding: 56px 22px 90px; }
  .hero2-art { max-width: 420px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .values-grid { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; text-align: center; }
}

/* ============================================================
   ESPACE CANDIDAT — auth, tableau de bord, éditeur de CV
   ============================================================ */
.auth-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; max-width: 980px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.auth-tabs { display: flex; gap: 4px; background: var(--bg-soft); border-radius: 11px; padding: 5px; margin-bottom: 22px; }
.auth-tabs a { flex: 1; text-align: center; padding: 10px; border-radius: 8px; font-weight: 700; color: var(--muted); }
.auth-tabs a.active { background: #fff; color: var(--blue); box-shadow: 0 3px 10px rgba(20,44,104,.10); }
.auth-card .form-card { border: 0; padding: 0; box-shadow: none; }
.btn-block { width: 100%; justify-content: center; }
.auth-sep { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: .85rem; }
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { background: #fff; color: var(--ink); border: 1.5px solid var(--line); font-weight: 600; }
.btn-google:hover { border-color: #b9c4e2; background: #f8fafd; }
.auth-note { margin-top: 18px; font-size: .82rem; color: var(--muted); }
.auth-side { background: var(--bg-soft); border-radius: var(--radius); padding: 26px; }
.auth-side h3 { margin-bottom: 14px; }

.dash-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }

/* Compte connecté : chip d'en-tête + carte du tableau de bord */
.nav-account {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: var(--blue);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 16px 6px 7px;
  transition: border-color .2s, background .2s;
}
.nav-account:hover { border-color: var(--blue); background: #f6f8fd; }
.nav-avatar {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-darker)); color: #fff;
  font-weight: 800; font-size: .9rem; flex-shrink: 0;
}
.dash-account {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px; min-width: 260px;
}
.dash-account-id { display: flex; align-items: center; gap: 11px; }
.dash-account-id .nav-avatar { width: 40px; height: 40px; font-size: 1.05rem; }
.dash-account-id strong { display: block; line-height: 1.2; }
.dash-account-id small { color: var(--muted); font-size: .8rem; }
.dash-account-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Jauge de complétude du CV */
.cv-meter { margin: 14px 0 4px; max-width: 480px; }
.cv-meter-track { height: 9px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); overflow: hidden; }
.cv-meter-fill { display: block; height: 100%; border-radius: inherit; transition: width .6s cubic-bezier(.2,.7,.3,1); }
.cv-meter-fill.low { background: linear-gradient(90deg, #d61f2c, #e5a50a); }
.cv-meter-fill.mid { background: linear-gradient(90deg, #e5a50a, #17984f); }
.cv-meter-fill.ok  { background: linear-gradient(90deg, #17984f, #6ee7a0); }
.cv-meter-label { display: block; margin-top: 6px; font-size: .85rem; color: var(--muted); }

/* Écran « vérifiez votre boîte mail » */
.verify-box { text-align: center; padding: 8px 4px; }
.verify-box h2 { margin: 14px 0 10px; }
.verify-box p { color: var(--muted); }
.dev-link {
  margin: 16px 0; padding: 12px 14px; border-radius: 10px; text-align: left;
  background: #fff8e6; border: 1px dashed #e5a50a; font-size: .88rem;
}
.dev-link a { display: block; margin-top: 4px; font-weight: 700; word-break: break-all; }
.resend-form { margin-top: 18px; text-align: left; }
.resend-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.resend-inline { margin-bottom: 16px; }

/* Page profil */
.profile-wrap { max-width: 980px; }
.profile-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.profile-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.account-card { text-align: center; }
.account-avatar {
  display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-darker)); color: #fff;
  font-weight: 800; font-size: 1.6rem; margin-bottom: 10px;
}
.account-dl { text-align: left; margin: 18px 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .92rem; }
.account-dl dt { color: var(--muted); font-weight: 600; }
.badge-ok { color: #0f6b38; background: #e7f6ee; border-radius: 7px; padding: 1px 7px; font-size: .76rem; font-weight: 700; }
.profile-forms { display: flex; flex-direction: column; gap: 22px; }

@media (max-width: 960px) {
  .profile-grid { grid-template-columns: 1fr; }
  .dash-account { width: 100%; }
}

.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 900px; margin: 0 auto; }
.option-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s;
}
.option-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(20,44,104,.14); }
.option-ico { margin: 0 auto; }
.option-card p { color: var(--muted); font-size: .93rem; flex: 1; }
.depot-form { display: flex; flex-direction: column; gap: 10px; }
.file-drop {
  display: block; border: 2px dashed #b9c4e2; border-radius: 11px; padding: 16px;
  cursor: pointer; color: var(--blue); font-weight: 600; font-size: .92rem;
  transition: border-color .2s, background .2s;
}
.file-drop:hover { border-color: var(--blue); background: #f6f8fd; }
.file-drop input[type="file"] { display: none; }
.file-drop.has-file { border-style: solid; background: #eef7f0; border-color: #17984f; color: #0f6b38; }
.file-drop-sm { padding: 9px 14px; font-size: .85rem; display: inline-block; }

.cv-status { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.muted-line { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.cv-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 14px; }
.redepot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.tpl-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.tpl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: center; }
.tpl-card h3 { font-size: .98rem; margin: 10px 0 4px; }
.tpl-card p { font-size: .8rem; color: var(--muted); min-height: 3em; }
.tpl-current { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(29,63,148,.18); }
.tpl-badge { display: inline-block; background: #e7f6ee; color: #0f6b38; font-weight: 700; font-size: .8rem; border-radius: 8px; padding: 4px 10px; }
.tpl-thumb {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 16px;
  background: var(--bg-soft); border-radius: 9px; min-height: 120px; overflow: hidden;
}
.tpl-band { display: block; height: 20px; border-radius: 4px; background: var(--tpl-accent, var(--blue)); }
.tpl-line { display: block; height: 6px; border-radius: 3px; background: #d3dbee; }
.tpl-line.w70 { width: 70%; } .tpl-line.w50 { width: 50%; } .tpl-line.w80 { width: 80%; } .tpl-line.w60 { width: 60%; }
.tpl-eye {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(14,31,75,.55); color: #fff; font-weight: 700; font-size: .85rem;
  opacity: 0; transition: opacity .2s;
}
.tpl-thumb:hover .tpl-eye { opacity: 1; }

/* Éditeur de CV */
.cvb { max-width: 860px; margin: 0 auto; }
.photo-row { display: flex; align-items: center; gap: 18px; }
.photo-preview {
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  background: var(--bg-soft); border: 2px solid var(--line); overflow: hidden; flex-shrink: 0;
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-fields { display: flex; flex-direction: column; gap: 8px; }
.bg-removal-opt {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .82rem; font-weight: 600; color: var(--muted); cursor: pointer;
}
.bg-removal-opt input { accent-color: var(--blue); }
.photo-remove { display: flex; align-items: center; gap: 7px; font-size: .88rem; color: var(--red); font-weight: 600; }
.photo-remove input { accent-color: var(--red); }
.cvb-h { margin: 30px 0 14px; padding-bottom: 6px; border-bottom: 2px solid var(--line); color: var(--blue); font-size: 1.15rem; }
.cvb-h:first-of-type { margin-top: 0; }
.cvb-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 12px; }
.cvb-row { border: 1px solid var(--line); border-radius: 11px; padding: 16px; position: relative; }
.cvb-row legend { font-weight: 700; color: var(--muted); font-size: .85rem; padding: 0 6px; }
.btn-del {
  position: absolute; top: 10px; right: 12px; background: none; border: 0; cursor: pointer;
  color: var(--red); font-size: .82rem; font-weight: 600; text-decoration: underline;
}
.duo-inline .duo-fields { display: flex; gap: 8px; }
.duo-inline .duo-fields input { flex: 1; min-width: 0; }
.cvb-lang { margin-bottom: 0; }
.tpl-radio-row { display: flex; gap: 12px; flex-wrap: wrap; }
.tpl-radio {
  flex: 1; min-width: 110px; border: 2px solid var(--line); border-radius: 11px; padding: 12px;
  text-align: center; cursor: pointer; display: flex; flex-direction: column; gap: 8px;
  transition: border-color .2s, box-shadow .2s;
}
.tpl-radio input { position: absolute; opacity: 0; }
.tpl-radio:has(input:checked) { border-color: var(--tpl-accent, var(--blue)); box-shadow: 0 0 0 2px rgba(29,63,148,.12); }
.form-actions-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.mt-1 { margin-top: 14px; }

@media (max-width: 960px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .option-grid { grid-template-columns: 1fr; }
  .tpl-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Accessibilité : réduire les animations si demandé */
@media (prefers-reduced-motion: reduce) {
  .anim-up, .anim-in { animation: none; opacity: 1; transform: none; }
  html.anim .reveal { transition: none; opacity: 1; transform: none; }
  .blob, .float-a, .float-b, .float-c, .float-slow, .dash, .pulse-ring,
  .kicker-dot, .btn-glow::after { animation: none; }
}

/* ---------- Bouton flottant WhatsApp (affiché si un numéro est configuré) ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 50%; background: #25d366; color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.28); transition: transform .18s, box-shadow .18s;
}
.wa-float:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 10px 26px rgba(0,0,0,.34); }
.wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 680px) {
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

/* ---------- Candidature : choix du CV et consentement ---------- */
.apply-cv-choice {
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 14px 16px; margin: 4px 0 16px; display: flex; flex-direction: column; gap: 10px;
}
.apply-cv-choice legend { font-weight: 700; font-size: .9rem; color: var(--navy); padding: 0 6px; }
.apply-radio { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; margin: 0; }
.apply-radio input { margin-top: 4px; accent-color: var(--blue); flex-shrink: 0; }
.apply-radio span { display: flex; flex-direction: column; }
.apply-radio strong { font-size: .93rem; font-weight: 650; }
.apply-radio small { color: var(--muted); font-size: .82rem; }
.apply-cv-select { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-left: 28px; }
.apply-cv-select select { flex: 1 1 16rem; min-width: 0; }
.apply-cv-edit { font-size: .84rem; font-weight: 600; white-space: nowrap; }
.apply-cv-file { padding-left: 28px; }
.apply-file-label { display: block; margin-bottom: 14px; }
.apply-account-hint { margin: -8px 0 14px; }
.apply-consent {
  display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px;
  font-size: .88rem; line-height: 1.55; color: var(--muted); cursor: pointer;
}
.apply-consent input { margin-top: 3px; accent-color: var(--blue); flex-shrink: 0; }

/* ---------- Pages légales ---------- */
.legal-page { max-width: 52rem; }
.legal-page h2 { margin: 34px 0 12px; font-size: 1.3rem; color: var(--navy-dark, #14204a); }
.legal-page h2:first-of-type { margin-top: 8px; }
.legal-page p, .legal-page li { color: #3a4254; line-height: 1.72; }
.legal-page ul { margin: 10px 0 10px 22px; }
.legal-page li { margin-bottom: 6px; }
.legal-updated { font-size: .86rem; color: var(--muted); font-style: italic; }
.legal-contact-box {
  background: var(--bg-soft); border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0; padding: 16px 18px; margin: 20px 0;
}
.legal-contact-box p { margin: 0 0 4px; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a { font-size: .86rem; }

/* ---------- Bandeau alertes emploi ---------- */
.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; }
.alert-band { background: var(--blue-darker); color: #fff; padding: 44px 0; }
.alert-band-inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); gap: 32px; align-items: center; }
.alert-band h2 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.alert-band p { color: #c3cde6; font-size: .95rem; }
.alert-form-row { display: flex; flex-wrap: wrap; gap: 10px; }
.alert-form-row input, .alert-form-row select {
  flex: 1 1 11rem; min-width: 0; padding: 11px 14px; border-radius: 9px;
  border: 1.5px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1);
  color: #fff; font: inherit; font-size: .93rem;
}
.alert-form-row input::placeholder { color: #a8b8de; }
.alert-form-row select option { color: #1a2233; }
.alert-form-row input:focus, .alert-form-row select:focus { outline: 2px solid #7ea0e8; outline-offset: 1px; }
.alert-form-row .btn { flex: 0 0 auto; }
.alert-form-note { margin-top: 10px; font-size: .8rem; color: #a8b8de; }
.alert-form-note a { color: #cdd8f2; text-decoration: underline; }

/* ---------- Pages ville / secteur ---------- */
.landing-intro { max-width: 52rem; margin-bottom: 38px; }
.landing-intro h2 { font-size: 1.5rem; margin-bottom: 12px; }
.landing-intro h3 { font-size: 1.1rem; margin: 24px 0 10px; }
.landing-intro p { color: #3a4254; line-height: 1.72; margin-bottom: 12px; }
.landing-sectors, .landing-cities { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.landing-sectors li, .landing-cities li { font-size: .93rem; }
.landing-cities { margin-top: 12px; }
.landing-jobs-title { font-size: 1.4rem; margin: 34px 0 18px; }

@media (max-width: 860px) {
  .alert-band-inner { grid-template-columns: 1fr; gap: 20px; }
}

/* --- Réseau d'agences --- */
.agency-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 18px; }
.agency {
  background: #fff; border: 1px solid #e2e6f0; border-radius: 12px; padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(20,26,43,.05), 0 10px 26px -20px rgba(20,26,43,.35);
}
.agency header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.agency h2 { font-size: 1.12rem; margin: 0; }
.agency-main { border-color: #1d3f94; }
.agency-tag {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
  color: #1d3f94; background: #e7ecfa; padding: 3px 8px; border-radius: 4px; white-space: nowrap;
}
.agency address { font-style: normal; color: #5a6480; line-height: 1.55; font-size: .93rem; }
.agency-contact { margin-top: 12px; font-size: .93rem; line-height: 1.7; }
.agency-contact a { font-weight: 600; text-decoration: none; }
.agency-cta {
  margin-top: 30px; padding: 26px 28px; border-radius: 14px;
  background: #f5f7fb; border: 1px solid #e2e6f0;
}
.agency-cta h2 { margin-top: 0; }
.agency-cta .btn { margin-right: 10px; margin-top: 6px; }
@media (max-width: 600px) { .agency { padding: 16px 18px; } .agency-cta { padding: 20px; } }

/* --- Page Recruter : services, étapes, questions fréquentes --- */
.section-services-rh { background: #f5f7fb; }
.rh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; margin-top: 26px; }
.rh-card {
  background: #fff; border: 1px solid #e2e6f0; border-radius: 12px; padding: 22px 24px;
  box-shadow: 0 1px 2px rgba(20,26,43,.05), 0 12px 28px -22px rgba(20,26,43,.4);
}
.rh-card h3 { margin: 0 0 10px; font-size: 1.08rem; color: #1d3f94; }
.rh-card p { margin: 0 0 10px; font-size: .95rem; line-height: 1.65; }
.rh-card p:last-child { margin-bottom: 0; }
.mt-xl { margin-top: 48px; }
.rh-steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.rh-steps li { display: flex; gap: 16px; align-items: flex-start; }
.rh-step-n {
  flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: #1d3f94; color: #fff; font-weight: 700; font-size: .95rem;
}
.rh-steps strong { display: block; margin-bottom: 4px; }
.rh-steps p { margin: 0; color: #5a6480; font-size: .95rem; line-height: 1.65; max-width: 72ch; }
.rh-faq { margin-top: 22px; display: grid; gap: 10px; }
.rh-faq details {
  background: #fff; border: 1px solid #e2e6f0; border-radius: 10px; padding: 14px 18px;
}
.rh-faq summary { cursor: pointer; font-weight: 600; color: #141a2b; }
.rh-faq summary::marker { color: #1d3f94; }
.rh-faq p { margin: 10px 0 0; color: #5a6480; font-size: .95rem; line-height: 1.65; max-width: 74ch; }
@media (max-width: 600px) { .rh-card { padding: 18px; } .mt-xl { margin-top: 34px; } }

/* --- Pages légales : tableau d'identification --- */
.legal-table { width: 100%; border-collapse: collapse; margin: 20px 0 8px; font-size: .95rem; }
.legal-table caption { text-align: left; font-weight: 600; color: #5a6480; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .07em; padding-bottom: 10px; }
.legal-table th { text-align: left; font-weight: 600; color: #141a2b; padding: 11px 14px 11px 0;
  border-bottom: 1px solid #e8dfdb; width: 42%; vertical-align: top; }
.legal-table th small { display: block; font-weight: 400; color: #5a6480; font-size: .8rem; margin-top: 2px; }
.legal-table td { padding: 11px 0; border-bottom: 1px solid #e8dfdb; vertical-align: top; }
.legal-table tr:last-child th, .legal-table tr:last-child td { border-bottom: 0; }
.legal-pending { color: #a8621b; font-style: italic; }
@media (max-width: 560px) {
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td { display: block; width: 100%; }
  .legal-table th { border-bottom: 0; padding-bottom: 2px; }
  .legal-table td { padding-top: 0; padding-bottom: 14px; }
}

/* --- Vérification anti-robot --- */
.captcha { margin: 18px 0; padding: 16px 18px; background: #f5f7fb; border: 1px solid #e2e6f0; border-radius: 12px; }
.captcha > label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 10px; }
.captcha-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.captcha-img { border: 1px solid #c4cbe0; border-radius: 8px; background: #fff; display: block; }
.captcha input[type="text"] { flex: 1 1 190px; min-width: 150px; padding: 11px 13px; border: 1px solid #c4cbe0; border-radius: 8px; font-size: 1rem; }
.captcha-question { font-size: 1.05rem; font-weight: 600; margin: 0 0 10px; color: #1d3f94; }
.captcha-alt { margin: 10px 0 0; font-size: .86rem; }
.captcha-alt a { color: #5a6480; }
.captcha-erreur { border-color: #c0392b; background: #fbeceb; }
.captcha-msg { margin: 10px 0 0; font-size: .88rem; color: #a52f22; font-weight: 600; }
@media (max-width: 520px) { .captcha-row { flex-direction: column; align-items: stretch; } .captcha-img { align-self: center; } }
