/* ============================================================
   MaBourse.ma — Design System
   Palette : bleu marine + vert émeraude, sobre et professionnel
   Typographies : Sora (titres) · Inter (texte) · Caveat (slogan)
   ============================================================ */

:root {
  /* --- Couleurs : jetons de thème --- */
  --navy-950: #081F36;
  --navy-900: #0C2D4E;
  --navy-800: #11405F;
  --navy-700: #17507F;
  --navy-600: #1F6499;
  --navy-200: #C4D6E4;
  --navy-100: #E4EDF4;
  --navy-50:  #F0F5F9;

  --emerald-700: #0A7A55;
  --emerald-600: #0C9468;
  --emerald-500: #12A97A;
  --emerald-100: #D9F1E7;
  --emerald-50:  #EEF8F3;

  --ink: #10243A;            /* texte principal */
  --muted: #54687E;          /* texte secondaire */
  --faint: #8598AA;          /* texte discret */

  --bg: #F4F6F8;             /* fond de page */
  --surface: #FFFFFF;
  --line: #E1E8EF;           /* bordures */
  --line-strong: #CBD7E1;

  --danger: #BE3E2B;
  --danger-bg: #FBECE8;
  --warning: #9A6208;
  --warning-bg: #FBF1DC;
  --info-bg: #EAF1F8;

  /* Badges de niveau (jetons) */
  --lvl-licence: #0E7490;  --lvl-licence-bg: #DFF2F6;
  --lvl-master:  #17507F;  --lvl-master-bg:  #E3ECF4;
  --lvl-doctorat:#6E4A86;  --lvl-doctorat-bg:#F0E9F5;
  --lvl-postdoc: #4C6A1E;  --lvl-postdoc-bg: #ECF2DC;
  --lvl-recherche:#8A5A13; --lvl-recherche-bg:#F7EDDA;
  --lvl-stage:   #0F766E;  --lvl-stage-bg:   #DDF3F0;

  /* --- Typographie --- */
  --font-display: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-script: "Caveat", cursive;

  /* --- Rayons --- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* --- Ombres douces (teintées marine) --- */
  --shadow-sm: 0 1px 2px rgba(8, 31, 54, .06);
  --shadow-md: 0 6px 20px -6px rgba(8, 31, 54, .12);
  --shadow-lg: 0 20px 48px -16px rgba(8, 31, 54, .22);

  /* --- Rythme --- */
  --header-h: 72px;
  --tabbar-h: 64px;
  --container: 1180px;

  --ease: cubic-bezier(.22, .61, .21, 1);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--emerald-700); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.accent { color: var(--emerald-600); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--emerald-700);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--emerald-600);
  border-radius: 2px;
}

.section { padding-block: clamp(48px, 7vw, 84px); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.section-head h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin: 0; }
.section-head p { color: var(--muted); margin: 6px 0 0; max-width: 560px; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy-800);
  white-space: nowrap;
}
.link-more svg { transition: transform .18s var(--ease); }
.link-more:hover svg { transform: translateX(3px); }
.link-more:hover { color: var(--emerald-700); }

/* ============ Boutons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: background .16s var(--ease), transform .16s var(--ease),
              box-shadow .16s var(--ease), border-color .16s var(--ease);
  white-space: nowrap;
}
.btn svg { flex: none; }

.btn-primary {
  background: var(--emerald-600);
  color: #fff;
}
.btn-primary:hover {
  background: var(--emerald-700);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(12, 148, 104, .55);
}
.btn-primary .arrow { transition: transform .18s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-800); color: #fff; }

.btn-outline {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--navy-800);
}
.btn-outline:hover {
  border-color: var(--navy-700);
  color: var(--navy-900);
  background: var(--navy-50);
}

.btn-light {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}
.btn-light:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 10px; }
.btn-sm { padding: 9px 15px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* Boutons icône (favori, alerte, partager…) */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--navy-700);
  transition: all .16s var(--ease);
}
.icon-btn:hover { border-color: var(--emerald-600); color: var(--emerald-700); background: var(--emerald-50); }
.icon-btn[aria-pressed="true"] {
  background: var(--emerald-50);
  border-color: var(--emerald-600);
  color: var(--emerald-700);
}
.icon-btn[aria-pressed="true"] .icon-heart { fill: var(--emerald-600); }

/* ============ Badges & pastilles ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.badge svg { flex: none; }

.badge-verified { background: var(--emerald-100); color: var(--emerald-700); }
.badge-institution { background: var(--navy-100); color: var(--navy-700); }
.badge-aggregated { background: #EDEFF2; color: #5A6B7B; }
.badge-unverified { background: var(--warning-bg); color: var(--warning); }

.badge-funding { background: var(--emerald-50); color: var(--emerald-700); border: 1px solid var(--emerald-100); }
.badge-new { background: #FFF3D6; color: #8A6100; }
.badge-status-open { background: var(--emerald-100); color: var(--emerald-700); }
.badge-status-soon { background: var(--warning-bg); color: var(--warning); }
.badge-status-closed { background: #EDEFF2; color: #5A6B7B; }

/* Badges de niveau colorés */
.lvl { background: var(--navy-100); color: var(--navy-800); }
.lvl-licence { background: var(--lvl-licence-bg); color: var(--lvl-licence); }
.lvl-master { background: var(--lvl-master-bg); color: var(--lvl-master); }
.lvl-doctorat { background: var(--lvl-doctorat-bg); color: var(--lvl-doctorat); }
.lvl-postdoc { background: var(--lvl-postdoc-bg); color: var(--lvl-postdoc); }
.lvl-recherche { background: var(--lvl-recherche-bg); color: var(--lvl-recherche); }
.lvl-stage { background: var(--lvl-stage-bg); color: var(--lvl-stage); }

/* Pastille deadline */
.deadline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.deadline .dot { width: 7px; height: 7px; border-radius: 50%; background: #9AAABD; }
.deadline-hot { color: var(--danger); }
.deadline-hot .dot { background: var(--danger); }
.deadline-warm { color: var(--warning); }
.deadline-warm .dot { background: #D9941E; }

/* ============ En-tête ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

/* Logo */
.logo { display: flex; align-items: center; gap: 11px; flex: none; }
.logo:hover { color: inherit; }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-text { line-height: 1.15; }
.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}
.logo-name span { color: var(--emerald-600); }
.logo-baseline {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--faint);
  text-transform: uppercase;
}

/* Navigation principale */
.main-nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.main-nav > li { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 13px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--r-sm);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav-link:hover, .nav-link[aria-expanded="true"] {
  background: var(--navy-50);
  color: var(--navy-900);
}
.nav-link.active { color: var(--emerald-700); font-weight: 600; }
.nav-link .chev { transition: transform .18s var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* Sous-menus */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
li:hover > .dropdown,
.nav-link[aria-expanded="true"] + .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  color: var(--ink);
}
.dropdown a:hover { background: var(--navy-50); color: var(--navy-900); }
.dropdown a .count { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.dropdown .sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* Actions de l'en-tête */
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-search-btn {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; border-radius: 10px;
  color: var(--navy-800);
}
.header-search-btn:hover { background: var(--navy-50); }
/* Compte et déconnexion en icônes (place gagnée dans l'en-tête) */
.header-icon-btn {
  width: 42px; height: 42px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--navy-800);
  transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.header-icon-btn:hover { border-color: var(--emerald-600); color: var(--emerald-700); background: var(--emerald-50); }
.header-icon-btn.logout { background: var(--emerald-600); border-color: var(--emerald-600); color: #fff; }
.header-icon-btn.logout:hover { background: var(--emerald-700); border-color: var(--emerald-700); color: #fff; }
.header-icon-btn:focus-visible { outline: 2px solid var(--emerald-600); outline-offset: 2px; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.lang-switch a {
  padding: 7px 11px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.lang-switch a.active { background: var(--navy-900); color: #fff; }
.lang-switch a:hover:not(.active) { background: var(--navy-50); color: var(--navy-900); }

/* Bouton burger */
.burger {
  display: none;
  width: 44px; height: 44px;
  border: none; background: transparent;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy-900); border-radius: 2px;
  transition: transform .2s var(--ease), opacity .2s;
}

/* Menu mobile plein écran */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--surface);
  padding: 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .25s var(--ease);
  display: flex; flex-direction: column;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.mobile-menu .nav-link { font-size: 17px; padding: 13px 10px; width: 100%; justify-content: space-between; }
.mobile-menu nav > ul > li { border-bottom: 1px solid var(--line); }
.mobile-submenu { padding: 0 10px 10px; display: none; }
.mobile-submenu.open { display: block; }
.mobile-submenu a { display: block; padding: 9px 10px; font-size: 15px; color: var(--muted); }
.mobile-menu .btn { margin-top: 8px; }

/* ============ Barre d'onglets mobile (bas) ============ */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 110;
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar ul { display: flex; }
.tabbar li { flex: 1; }
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 4px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.tabbar a.active { color: var(--emerald-700); }
.tabbar a:hover { color: var(--navy-900); }

/* ============ Hero (accueil) ============ */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--navy-50) 0%, var(--bg) 100%);
  padding: clamp(40px, 6vw, 72px) 0 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-title {
  font-size: clamp(2.05rem, 4.6vw, 3.35rem);
  font-weight: 700;
  margin-bottom: 18px;
}
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 26px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { color: var(--emerald-600); }

.hero-media { position: relative; }
.hero-photo {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.4;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-slogan {
  position: absolute;
  left: -26px;
  bottom: 34px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 14px 22px 12px;
  transform: rotate(-2.5deg);
  max-width: 300px;
}
.hero-slogan p {
  font-family: var(--font-script);
  font-size: 24px;
  line-height: 1.15;
  color: var(--navy-800);
  margin: 0;
}
.hero-slogan .underline {
  display: block;
  height: 3px;
  margin-top: 6px;
  border-radius: 3px;
  background: var(--emerald-500);
  width: 62%;
}

/* ============ Zone de recherche à onglets ============ */
.search-zone {
  position: relative;
  z-index: 20;
  margin-top: clamp(-10px, -1vw, -4px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.search-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 10px 22px 22px;
}
.search-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.search-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;
  transition: color .15s;
}
.search-tab:hover { color: var(--navy-800); }
.search-tab.active { color: var(--emerald-700); border-bottom-color: var(--emerald-600); }
.search-tab .tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--navy-100);
  color: var(--navy-700);
  padding: 2px 8px;
  border-radius: var(--r-pill);
}

.search-form {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy-800);
  letter-spacing: .01em;
}
.input, .select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
.input::placeholder { color: var(--faint); }
.input:focus, .select:focus {
  outline: none;
  border-color: var(--emerald-600);
  box-shadow: 0 0 0 3px var(--emerald-100);
}
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2354687E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 38px;
}
.input-icon { position: relative; }
.input-icon svg {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
}
.input-icon .input { padding-left: 40px; }

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}
.checkbox-row input { accent-color: var(--emerald-600); width: 17px; height: 17px; }

/* ============ Bandeau d'atouts ============ */
.atouts {
  background: var(--navy-900);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.4vw, 36px) clamp(20px, 3.4vw, 40px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.atout { display: flex; gap: 14px; align-items: flex-start; }
.atout-icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(18, 169, 122, .16);
  color: #4FD8AB;
  display: flex; align-items: center; justify-content: center;
}
.atout h3 { color: #fff; font-size: 15.5px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; margin: 0 0 3px; }
.atout p { color: #9FB4C8; font-size: 13.5px; line-height: 1.5; margin: 0; }

/* ============ Cartes d'opportunité ============ */
.opp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 18px;
}
.opp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
}
.opp-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.opp-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 13px;
}
.opp-fav {
  margin-left: auto;
  border: none;
  background: none;
  color: var(--faint);
  padding: 6px;
  border-radius: 8px;
  display: inline-flex;
  transition: color .15s, background .15s;
}
.opp-fav:hover { color: var(--danger); background: var(--danger-bg); }
.opp-fav[aria-pressed="true"] { color: var(--danger); }
.opp-fav[aria-pressed="true"] svg { fill: currentColor; }

.opp-title {
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 0 0 7px;
}
.opp-title a { color: var(--navy-900); }
.opp-title a:hover { color: var(--emerald-700); }
.opp-title a::after { content: ""; position: absolute; inset: 0; }

.opp-org {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 14px;
}
.opp-org .flag { font-size: 16px; }
.opp-summary {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.opp-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.opp-foot .btn { position: relative; z-index: 2; }

/* ============ Compteurs ============ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  text-align: left;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat-num em { font-style: normal; color: var(--emerald-600); }
.stat-label { font-size: 13.5px; color: var(--muted); margin-top: 6px; font-weight: 500; }

/* ============ Pays populaires ============ */
.country-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.country-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-0, #fff);
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.country-item:hover { background: var(--surface); border-color: var(--line-strong); box-shadow: var(--shadow-sm, 0 2px 8px rgba(15, 32, 50, .06)); }
@media (max-width: 900px) { .country-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .country-list { grid-template-columns: 1fr; } }
/* Drapeaux en images (le même drapeau partout, même là où les émojis de drapeau s'affichent en lettres) */
.flag-img { width: 22px; height: 16.5px; border-radius: 3px; object-fit: cover; vertical-align: -3px; box-shadow: 0 0 0 1px rgba(15, 32, 50, .14); background: #fff; }
.country-item .flag-img, .country-card .flag-img { width: 100%; height: 100%; vertical-align: middle; }
.country-item .flag {
  width: 42px; height: 31px; overflow: hidden;
  flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 21px;
}
.country-item .name { font-weight: 600; font-size: 15px; color: var(--navy-900); }
.country-item .sub { font-size: 12.5px; color: var(--faint); }
.country-item .count-pill {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy-700);
  background: var(--navy-100);
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-variant-numeric: tabular-nums;
}

/* ============ Tuiles de catégories ============ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cat-tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
  overflow: hidden;
}
.cat-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--emerald-500);
}
.cat-icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  background: var(--navy-100);
  color: var(--navy-800);
  transition: background .18s, color .18s;
}
.cat-tile:hover .cat-icon { background: var(--emerald-100); color: var(--emerald-700); }
.cat-tile h3 { font-size: 17px; font-family: var(--font-display); font-weight: 600; margin: 0 0 4px; }
.cat-tile h3 a { color: var(--navy-900); }
.cat-tile h3 a::after { content: ""; position: absolute; inset: 0; }
.cat-tile p { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.cat-count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--emerald-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============ Pourquoi choisir ============ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.why-photo {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.4;
}
.why-photo img { width: 100%; height: 100%; object-fit: cover; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; margin-top: 28px; }
.why-item { display: flex; gap: 13px; }
.why-item .tick {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--emerald-100);
  color: var(--emerald-700);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.why-item h4 { font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: 0; margin: 0 0 3px; }
.why-item p { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0; }

/* ============ Annonces & témoignage ============ */
.news-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 22px;
  align-items: stretch;
}
.news-card, .testimonial-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
}
.news-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.news-item:last-of-type { border-bottom: none; }
.news-date {
  flex: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  width: 78px;
}
.news-item a { font-size: 15px; font-weight: 500; color: var(--ink); }
.news-item a:hover { color: var(--emerald-700); }

.testimonial-card {
  display: flex;
  flex-direction: column;
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}
.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin: 18px 0 22px;
  font-weight: 500;
}
.testimonial-card .quote-mark { color: var(--emerald-500); }
.testimonial-author { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.testimonial-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--emerald-600);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.testimonial-author .who { font-size: 14.5px; font-weight: 600; }
.testimonial-author .role { font-size: 12.5px; color: #9FB4C8; }
.testimonial-nav { display: flex; gap: 8px; margin-top: 20px; }
.testimonial-nav button {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.testimonial-nav button:hover { background: rgba(255,255,255,.12); }

/* ============ Bannière d'appel (CTA) ============ */
.cta-banner {
  position: relative;
  background: var(--navy-900);
  border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 60px);
  overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 220px at 12% 0%, rgba(18, 169, 122, .22), transparent 70%),
    radial-gradient(380px 200px at 92% 100%, rgba(18, 169, 122, .14), transparent 70%);
}
.cta-inner { position: relative; max-width: 620px; margin-inline: auto; }
.cta-banner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-banner p { color: #9FB4C8; margin-bottom: 26px; }

/* ============ Pied de page ============ */
.site-footer {
  background: var(--navy-950);
  color: #B9C9D8;
  margin-top: clamp(48px, 7vw, 84px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.25fr;
  gap: 40px;
  padding: clamp(44px, 5vw, 64px) 0 40px;
}
.footer-brand .logo-name { color: #fff; }
.footer-brand p { font-size: 14px; line-height: 1.65; color: #8FA5B9; margin: 16px 0 20px; max-width: 300px; }
.footer-independence {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: #9FB4C8;
  border: 1px solid rgba(255,255,255,.16);
  padding: 8px 13px;
  border-radius: var(--r-pill);
}
.footer-independence svg { color: var(--emerald-500); flex: none; }

.footer-col .footer-title {
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin: 4px 0 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14.5px; color: #B9C9D8; }
.footer-col a:hover { color: #fff; }

.newsletter-box p { font-size: 13.5px; color: #8FA5B9; margin-bottom: 14px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form .input {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
  color: #fff;
}
.newsletter-form .input::placeholder { color: #7E94A8; }
.newsletter-form .input:focus { border-color: var(--emerald-500); box-shadow: 0 0 0 3px rgba(18,169,122,.25); }
.newsletter-note { font-size: 12px; color: #7E94A8; margin-top: 10px; }

.social-row { display: flex; gap: 9px; margin-top: 22px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center;
  color: #B9C9D8;
}
.social-row a:hover { background: rgba(255,255,255,.08); color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0 calc(20px + 0px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #7E94A8;
}
.footer-bottom .tags { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ============ Fil d'Ariane ============ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--faint);
  padding: 20px 0 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--emerald-700); }
.breadcrumb .sep { color: var(--line-strong); }
.breadcrumb [aria-current] { color: var(--navy-800); font-weight: 600; }

/* ============ En-tête de page interne ============ */
.page-head { padding: 10px 0 30px; }
.page-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 8px; }
.page-head .lead { color: var(--muted); max-width: 640px; margin: 0; }

/* ============ Page recherche / liste ============ */
.search-page-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 10px;
  display: flex;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}
.search-page-bar .input-icon { flex: 1; }
.search-page-bar .input { border-color: transparent; background: var(--bg); }
.search-page-bar .input:focus { background: var(--surface); }

.results-layout {
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: 26px;
  margin-top: 24px;
  align-items: start;
}

/* Filtres */
.filters-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.filters-head h2 { font-family: var(--font-body); font-size: 15.5px; font-weight: 700; letter-spacing: 0; margin: 0; }
.filters-clear { border: none; background: none; font-size: 13px; color: var(--emerald-700); font-weight: 600; padding: 4px; }

.filter-group { border-bottom: 1px solid var(--line); padding: 14px 0; }
.filter-group:last-child { border-bottom: none; padding-bottom: 4px; }
.filter-group > legend,
.filter-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.filter-option input { accent-color: var(--emerald-600); width: 16px; height: 16px; flex: none; }
.filter-option .count { margin-left: auto; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.filter-option:hover { color: var(--navy-900); }

.filter-toggle-btn { display: none; }

/* Barre de résultats */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.results-count { font-size: 15px; color: var(--muted); }
.results-count strong { color: var(--navy-900); font-family: var(--font-display); }
.sort-row { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); }
.sort-row .select { padding: 9px 36px 9px 12px; font-size: 13.5px; width: auto; }

.active-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--navy-100);
  color: var(--navy-800);
  border-radius: var(--r-pill);
  padding: 6px 8px 6px 13px;
  font-size: 13px;
  font-weight: 600;
}
.chip button {
  border: none; background: rgba(12,45,78,.12);
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-800); font-size: 11px; line-height: 1;
}
.chip button:hover { background: rgba(12,45,78,.22); }

/* Liste verticale (résultats) */
.opp-list { display: flex; flex-direction: column; gap: 14px; }
.opp-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s;
}
.opp-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.opp-row .opp-top { margin-bottom: 9px; }
.opp-row .opp-title { font-size: 17px; }
.opp-row .opp-summary { margin-bottom: 10px; }
/* Ligne de résultat officiel : contenu pleine largeur, date et boutons en pied de carte */
.opp-row.result-row { grid-template-columns: 1fr; }
.result-row .opp-row-side {
  grid-row: auto; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between;
  min-width: 0; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line);
}
.result-row .opp-row-actions { flex-wrap: wrap; justify-content: flex-end; }
.opp-row-side {
  grid-row: span 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-width: 150px;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 34px;
}
.pagination a, .pagination span {
  min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  color: var(--navy-800);
  border: 1px solid transparent;
  padding: 0 6px;
}
.pagination a:hover { background: var(--surface); border-color: var(--line-strong); }
.pagination .current { background: var(--navy-900); color: #fff; }
.pagination .dots { color: var(--faint); }

/* ============ Fiche opportunité ============ */
.fiche-head-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(22px, 3.4vw, 34px);
  box-shadow: var(--shadow-sm);
}
.fiche-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.fiche-title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 12px; }
.fiche-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--muted);
  font-size: 14.5px;
}
.fiche-meta span { display: inline-flex; align-items: center; gap: 8px; }
.fiche-meta svg { color: var(--navy-600); }

/* Bandeau d'action */
.action-band {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--navy-900);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  margin-top: 18px;
  color: #fff;
}
.action-deadline { display: flex; align-items: center; gap: 13px; margin-right: auto; }
.action-deadline .label { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: #9FB4C8; font-weight: 600; }
.action-deadline .value { font-family: var(--font-display); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.countdown-pill {
  background: rgba(190, 62, 43, .2);
  border: 1px solid rgba(255, 130, 105, .45);
  color: #FFB4A2;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-variant-numeric: tabular-nums;
}
.action-icons { display: flex; gap: 8px; }
.action-icons .icon-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #D9E5EF; }
.action-icons .icon-btn:hover { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.35); }

/* Corps de fiche en 2 colonnes */
.fiche-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 26px;
  margin-top: 26px;
  align-items: start;
}
.fiche-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.8vw, 28px);
  margin-bottom: 16px;
}
.fiche-section > h2 {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 17.5px;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 14px;
}
.fiche-section > h2 .sec-icon {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--navy-100);
  color: var(--navy-700);
  display: flex; align-items: center; justify-content: center;
}
.fiche-section p, .fiche-section li { font-size: 15px; color: #33465A; }
.fiche-section ul.bullets { display: flex; flex-direction: column; gap: 9px; }
.fiche-section ul.bullets li { display: flex; gap: 10px; }
.fiche-section ul.bullets li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald-500);
  margin-top: 9px;
}

/* Tableau de conditions */
.cond-table { width: 100%; border-collapse: collapse; }
.cond-table th, .cond-table td {
  text-align: left;
  padding: 11px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cond-table th {
  width: 190px;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}
.cond-table tr:last-child th, .cond-table tr:last-child td { border-bottom: none; }

/* Checklist de documents */
.doc-check { display: flex; flex-direction: column; gap: 4px; }
.doc-check label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  cursor: pointer;
  transition: background .14s;
}
.doc-check label:hover { background: var(--navy-50); }
.doc-check input { accent-color: var(--emerald-600); width: 17px; height: 17px; flex: none; }
.doc-check input:checked + span { color: var(--faint); text-decoration: line-through; }
.doc-progress {
  height: 6px;
  background: var(--navy-100);
  border-radius: 6px;
  overflow: hidden;
  margin: 6px 0 16px;
}
.doc-progress i { display: block; height: 100%; background: var(--emerald-500); border-radius: 6px; width: 40%; }

/* Étapes numérotées */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 48px;
  font-size: 15px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--emerald-100);
  color: var(--emerald-700);
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.steps li::after {
  content: "";
  position: absolute;
  left: 14px; top: 36px; bottom: 4px;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
}
.steps li:last-child::after { display: none; }
.steps strong { color: var(--navy-900); }

/* Encadrés */
.note {
  display: flex;
  gap: 12px;
  border-radius: var(--r-md);
  padding: 15px 17px;
  font-size: 14px;
  line-height: 1.55;
}
.note svg { flex: none; margin-top: 2px; }
.note-info { background: var(--info-bg); color: var(--navy-800); }
.note-warning { background: var(--warning-bg); color: #6E4B06; }
.note-verified { background: var(--emerald-50); color: var(--emerald-700); border: 1px solid var(--emerald-100); }

/* Colonne latérale de la fiche */
.fiche-aside { position: sticky; top: calc(var(--header-h) + 16px); }
.aside-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  margin-bottom: 16px;
}
.aside-card h3 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.fact-row:last-child { border-bottom: none; }
.fact-row .k { color: var(--muted); flex: none; }
.fact-row .v { font-weight: 600; color: var(--navy-900); text-align: right; }

.sim-item {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.sim-item:last-child { border-bottom: none; }
.sim-item .t { font-size: 14.5px; font-weight: 600; color: var(--navy-900); line-height: 1.4; }
.sim-item:hover .t { color: var(--emerald-700); }
.sim-item .m { font-size: 12.5px; color: var(--faint); margin-top: 4px; display: flex; gap: 8px; align-items: center; }

/* Bouton d'action collant (mobile fiche) */
.sticky-apply {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 105;
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px -12px rgba(8,31,54,.18);
}

/* ============ Pages index (pays, catégories) ============ */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.country-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 19px 20px;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s;
}
.country-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.country-card .flag {
  width: 52px; height: 52px;
  flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  border-radius: 13px;
  font-size: 27px;
}
.country-card .name { font-weight: 700; font-size: 15.5px; color: var(--navy-900); font-family: var(--font-display); }
.country-card .sub { font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.country-card .arrow {
  margin-left: auto;
  color: var(--faint);
  transition: transform .16s var(--ease), color .16s;
}
.country-card:hover .arrow { transform: translateX(3px); color: var(--emerald-600); }

.region-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-800);
  margin: 34px 0 16px;
}
.region-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ============ Authentification ============ */
.auth-page { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
.auth-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-h));
}
.auth-aside {
  background: var(--navy-900);
  color: #fff;
  padding: clamp(30px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 300px at 85% 110%, rgba(18,169,122,.25), transparent 70%);
}
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); max-width: 400px; }
.auth-aside .slogan {
  font-family: var(--font-script);
  font-size: 26px;
  color: #7FE3BC;
  margin: 18px 0 30px;
  transform: rotate(-1.5deg);
  display: inline-block;
}
.auth-points { display: flex; flex-direction: column; gap: 16px; max-width: 380px; }
.auth-points li { display: flex; gap: 12px; font-size: 14.5px; color: #C8D6E2; align-items: flex-start; }
.auth-points svg { flex: none; color: #4FD8AB; margin-top: 2px; }

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px) 20px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3.4vw, 36px);
  box-shadow: var(--shadow-md);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 26px;
}
.auth-tabs a {
  text-align: center;
  padding: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 8px;
}
.auth-tabs a.active { background: var(--surface); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.auth-card h1 { font-size: 21px; margin-bottom: 6px; }
.auth-card .sub { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.phone-row { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.phone-prefix {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 600; color: var(--navy-800);
  background: var(--bg);
}
.auth-alt { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 20px; }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  font-size: 12.5px; color: var(--faint);
  margin: 4px 0;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { background: var(--surface); border-color: var(--line-strong); color: var(--ink); width: 100%; }
.btn-google:hover { background: var(--bg); }
.form-note { font-size: 12.5px; color: var(--faint); line-height: 1.5; }
.form-note a { color: var(--emerald-700); font-weight: 500; }

/* ============ À propos / Méthodologie ============ */
.prose { max-width: 720px; }
.prose p { font-size: 16px; color: #33465A; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.method-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
}
.method-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--emerald-700);
  background: var(--emerald-100);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 15px;
}
.method-card h3 { font-size: 16px; font-family: var(--font-display); font-weight: 600; margin-bottom: 6px; }
.method-card p { font-size: 14px; color: var(--muted); margin: 0; }

.trust-scale { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.trust-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 15px 18px;
  font-size: 14px;
}
.trust-row p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ============ Page 404 ============ */
.error-page {
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 12vw, 7.5rem);
  font-weight: 700;
  color: var(--navy-100);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0;
}
.error-page h1 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 10px 0 10px; }
.error-page p { color: var(--muted); max-width: 420px; margin: 0 auto 26px; }

/* ============ Divers ============ */
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--navy-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 300;
}
.skip-link:focus { left: 8px; color: #fff; }

.text-muted { color: var(--muted); }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }

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

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .search-form { grid-template-columns: 1fr 1fr; }
  .search-form .field-full { grid-column: 1 / -1; }
  .atouts { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 16 / 10; }
  .hero-slogan { left: 14px; bottom: 14px; }
  .why-grid, .news-grid, .auth-grid { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .results-layout { grid-template-columns: 1fr; }
  .filters-panel {
    position: static;
    display: none;
  }
  .filters-panel.open { display: block; }
  .filter-toggle-btn { display: inline-flex; }
  .fiche-layout { grid-template-columns: 1fr; }
  .fiche-aside { position: static; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .method-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .header-actions .btn, .header-actions .lang-switch, .header-actions .header-icon-btn { display: none; }
  .tabbar { display: block; }
  body { padding-bottom: var(--tabbar-h); }
  .footer-bottom { padding-bottom: 20px; }
  .search-form { grid-template-columns: 1fr; }
  .search-tabs { overflow-x: auto; }
  .atouts { grid-template-columns: 1fr; gap: 20px; }
  .cat-grid { grid-template-columns: 1fr; }
  .opp-row { grid-template-columns: 1fr; }
  .opp-row-side { grid-row: auto; flex-direction: row; align-items: center; min-width: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .sticky-apply.on-fiche { display: block; }
  .trust-row { grid-template-columns: 1fr; gap: 8px; }
  .hero { padding-top: 30px; }
  .hero-trust { gap: 10px 16px; }
}

/* ============ Ajustements (alignement pages) ============ */
.breadcrumb svg { color: var(--line-strong); flex: none; }
.search-page-bar .select { width: 220px; flex: none; }
.opp-row-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; }
.opp-row-actions { display: flex; gap: 8px; align-items: center; }
.opp-row .opp-fav { position: static; flex: none; }
.opp-row .opp-fav, .opp-row .btn { z-index: 2; position: relative; }
.filter-more {
  border: none; background: none; padding: 6px 0 0;
  font-size: 13px; font-weight: 600; color: var(--emerald-700);
  cursor: pointer;
}
.filter-more:hover { text-decoration: underline; }
.filters-reset {
  border: none; background: none; padding: 4px;
  font-size: 13px; color: var(--emerald-700); font-weight: 600; cursor: pointer;
}
.filters-reset:hover { text-decoration: underline; }
.results-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 16px;
}
.results-head p { margin: 0; font-size: 15px; color: var(--muted); }
.results-head strong { color: var(--navy-900); font-family: var(--font-display); }
.pagination .disabled { opacity: .4; pointer-events: none; }
.pagination .page-info { margin-right: auto; font-size: 13.5px; color: var(--faint); min-width: 0; height: auto; border: none; }
.pagination .gap { color: var(--faint); }
.filters-toggle { display: none; margin-bottom: 14px; }
@media (max-width: 900px) {
  .filters-toggle { display: inline-flex; }
  .pagination .page-info { display: none; }
}
@media (max-width: 640px) {
  .search-page-bar { flex-direction: column; }
  .search-page-bar .select { width: 100%; }
}

/* Utilitaires d'espacement */
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }

/* Favoris hors cartes (fiche) */
[data-fav][aria-pressed="true"] { color: var(--danger); }
[data-fav][aria-pressed="true"] svg { fill: currentColor; }
.action-band [data-fav][aria-pressed="true"] { color: #FF9B85; }

/* ============ Correctifs d'affichage ============ */
/* En-tête : tout tient sur une ligne */
.header-inner { gap: 18px; }
.nav-link { padding: 9px 10px; font-size: 14.5px; white-space: nowrap; }
@media (max-width: 1280px) {
  .logo-baseline { display: none; }
}
/* Fieldsets de filtres : pas de bordure navigateur */
fieldset.filter-group { border: none; border-bottom: 1px solid var(--line); margin: 0; min-width: 0; }
fieldset.filter-group:last-child { border-bottom: none; }
.filter-group > legend { padding: 0; }
/* Attribut hidden toujours respecté */
[hidden] { display: none !important; }

/* Fiche mobile : CTA collant au-dessus de la barre d'onglets */
@media (max-width: 640px) {
  .sticky-apply.on-fiche { bottom: var(--tabbar-h); }
  body:has(.sticky-apply.on-fiche) { padding-bottom: calc(var(--tabbar-h) + 70px); }
}


/* ============================================================
   15. PATCH v5 — Anti-débordement, accessibilité tactile,
       consentement, emplacements pub, compte & pages diverses
   ============================================================ */

/* --- 15.1 Anti-débordement : aucune grille ne dépasse du viewport --- */
.opp-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
/* Dernières annonces de l'accueil : 3 blocs de 3 annonces */
.latest-ann-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .latest-ann-grid { grid-template-columns: 1fr; } }
.country-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.cat-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.news-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.why-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.stats-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.method-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
html, body { overflow-x: clip; }
img, svg, video { max-width: 100%; }
iframe { max-width: 100%; }

/* --- 15.2 Formulaires : anti-zoom iOS (16px) + états de validation --- */
.input, .select, textarea.input { font-size: 16px; }
.sort-row .select { font-size: 15px; }
.form-hint { font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.form-error { display: none; font-size: 12.5px; color: var(--danger); margin-top: 2px; }
.field.has-error .input, .field.has-error .select { border-color: var(--danger); }
.field.has-error .form-error { display: block; }
.form-success {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--emerald-50); border: 1px solid var(--emerald-100);
  color: var(--emerald-700); border-radius: var(--r-md);
  padding: 16px 18px; font-size: 14px; line-height: 1.6;
}
.form-success svg { flex: none; margin-top: 2px; }
.form-row-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
.check-line { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.55; cursor: pointer; }
.check-line input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--emerald-600); flex: none; }
.check-line a { color: var(--emerald-700); font-weight: 600; }
.card-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: clamp(22px, 3.4vw, 34px);
  box-shadow: var(--shadow-sm);
}

/* --- 15.3 Cibles tactiles ≥ 44px sur écrans tactiles (WCAG 2.5.5) --- */
@media (pointer: coarse) {
  .main-nav > li > .nav-link { min-height: 44px; display: inline-flex; align-items: center; }
  .dropdown a { min-height: 42px; display: flex; align-items: center; }
  .chip { min-height: 40px; }
  .pagination a, .pagination span { min-width: 44px; height: 44px; }
  .footer-col a { padding-block: 6px; display: inline-block; }
  .filter-option { padding: 8px 0; }
  .opp-fav { padding: 10px; }
}

/* --- 15.4 En-tête : allègement intermédiaire + dropdown bord droit --- */
@media (max-width: 1280px) { .header-actions .lang-switch { display: none; } }
.main-nav li:last-child .dropdown { left: auto; right: 0; transform: translateY(6px); }
.main-nav li:last-child:hover > .dropdown,
.main-nav li:last-child .nav-link[aria-expanded="true"] + .dropdown { transform: translateY(0); }
/* Pont invisible entre le lien et son sous-menu : le menu ne se referme pas quand la souris traverse l'espace de 8 px */
.main-nav .dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.dropdown a { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* --- 15.5 Bandeau consentement (prêt CMP / Consent Mode v2) --- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 250;
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -12px 32px rgba(8,31,54,.16);
  padding: 18px 0;
  transform: translateY(115%); transition: transform .35s var(--ease);
}
.cookie-banner.show { transform: none; }
.cookie-inner { display: flex; flex-direction: column; gap: 14px; }
.cookie-text { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin: 0; }
.cookie-text strong { color: var(--navy-900); }
.cookie-text a { color: var(--emerald-700); font-weight: 600; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { flex: 1; justify-content: center; min-width: 132px; }
@media (min-width: 820px) {
  .cookie-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 28px; }
  .cookie-text { max-width: 660px; }
  .cookie-actions { flex: none; }
  .cookie-actions .btn { flex: initial; }
}
@media (max-width: 640px) { .cookie-banner { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); } }
.cookie-prefs { display: none; margin-top: 10px; padding: 12px 14px; background: var(--bg); border-radius: var(--r-md); }
.cookie-prefs.open { display: block; }
.cookie-prefs .check-line { font-size: 13px; padding: 5px 0; }
.cookie-prefs .check-line input:disabled { opacity: .5; }

/* --- 15.6 Emplacements publicitaires (AdSense : libellé + anti-CLS) --- */
.ad-slot { margin: 30px auto; text-align: center; max-width: 970px; }
.ad-slot::before {
  content: "PUBLICITÉ"; display: block;
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  color: var(--faint); margin-bottom: 6px;
}
.ad-box {
  min-height: 100px; background: var(--bg);
  border: 1px dashed var(--line-strong); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--faint); font-size: 12.5px; overflow: hidden;
}
.ad-leaderboard .ad-box { min-height: 90px; }
@media (min-width: 900px) { .ad-leaderboard .ad-box { min-height: 110px; } }
.ad-incontent .ad-box { min-height: 130px; }
.ad-aside .ad-box { min-height: 250px; }

/* --- 15.7 FAQ accordéon --- */
.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item.open { border-color: var(--emerald-600); box-shadow: 0 6px 18px rgba(12,148,104,.08); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; background: none; border: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--navy-900); text-align: left; min-height: 54px;
}
.faq-q svg { flex: none; transition: transform .25s; color: var(--emerald-600); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a-inner { padding: 0 18px 18px; font-size: 14.5px; color: var(--muted); line-height: 1.75; }
.faq-a-inner a { color: var(--emerald-700); font-weight: 600; }

/* --- 15.8 Espace compte / tableau de bord --- */
.dash-layout { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 900px) { .dash-layout { grid-template-columns: 250px 1fr; } }
.dash-nav {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 10px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
@media (min-width: 900px) { .dash-nav { position: sticky; top: calc(var(--header-h) + 16px); flex-direction: column; } }
.dash-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  min-height: 44px; transition: background .15s, color .15s;
}
.dash-nav a:hover { background: var(--bg); color: var(--navy-900); }
.dash-nav a.active { background: var(--emerald-50); color: var(--emerald-700); }
.dash-nav a svg { flex: none; }
.dash-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(18px, 3vw, 26px);
  margin-bottom: 20px;
}
.dash-card > h2 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.alert-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.alert-row:last-child { border-bottom: none; }
.alert-row-info strong { display: block; font-size: 15px; color: var(--navy-900); }
.alert-row-info span { font-size: 12.5px; color: var(--faint); }
.alert-row-actions { display: flex; align-items: center; gap: 12px; }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--line-strong); border-radius: var(--r-pill); transition: background .2s; cursor: pointer; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + .track { background: var(--emerald-600); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 3px solid var(--emerald-100); outline-offset: 2px; }

/* --- 15.9 Article / guide / prose enrichi --- */
.toc-box { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 22px; margin: 0 0 28px; }
.toc-box strong { display: block; font-family: var(--font-display); font-size: 14px; color: var(--navy-900); margin-bottom: 10px; }
.toc-box ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; list-style: decimal; }
.toc-box a { color: var(--emerald-700); }
.prose h2 { scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { scroll-margin-top: calc(var(--header-h) + 20px); }
.prose ul { list-style: disc; padding-left: 22px; margin: 0 0 1em; color: #33465A; font-size: 16px; }
.prose ol { padding-left: 22px; margin: 0 0 1em; color: #33465A; font-size: 16px; }
.prose li { margin-bottom: 6px; }
.cta-inline {
  background: linear-gradient(120deg, var(--emerald-50), #F2FBF7);
  border: 1px solid var(--emerald-100); border-radius: var(--r-md);
  padding: 20px 24px; margin: 28px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.cta-inline strong { font-family: var(--font-display); color: var(--navy-900); font-size: 16px; display: block; }
.cta-inline p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.author-row { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 28px 0; }
.author-row .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--navy-900); color: #fff; display: flex; align-items: center; justify-content: center; font: 700 18px var(--font-display); flex: none; }
.author-row strong { display: block; color: var(--navy-900); font-size: 15px; }
.author-row span { font-size: 12.5px; color: var(--faint); }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 22px 0; font-size: 13.5px; color: var(--faint); }
.share-btn {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--muted); display: inline-flex; align-items: center; justify-content: center;
  transition: color .15s, border-color .15s;
}
.share-btn:hover { color: var(--emerald-700); border-color: var(--emerald-600); }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.tag-pill { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 12px; }
.tag-pill:hover { color: var(--emerald-700); border-color: var(--emerald-600); }

/* --- 15.10 Composants pages hub (domaines, niveaux, organismes, partenaires) --- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); gap: 18px; }
.tile-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s;
  display: block; color: inherit;
}
.tile-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--emerald-600); }
.tile-card .t-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--emerald-50); color: var(--emerald-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.tile-card h3 { font-size: 16.5px; margin: 0 0 6px; }
.tile-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0 0 12px; }
.tile-card .t-link { font-size: 13px; font-weight: 700; color: var(--emerald-700); display: inline-flex; align-items: center; gap: 6px; }
.tile-card .t-count { font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.org-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px 20px;
  transition: border-color .2s, box-shadow .2s;
}
.org-row + .org-row { margin-top: 12px; }
.org-row:hover { border-color: var(--emerald-600); box-shadow: var(--shadow-sm); }
.org-row .o-logo {
  width: 52px; height: 52px; border-radius: 12px; flex: none;
  background: var(--navy-50); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font: 800 17px var(--font-display); color: var(--navy-900);
}
.org-row .o-info { flex: 1; min-width: 190px; }
.org-row .o-info strong { display: block; font-size: 15.5px; color: var(--navy-900); font-family: var(--font-display); }
.org-row .o-info span { font-size: 12.5px; color: var(--faint); }
.mini-stat { display: flex; gap: 8px; align-items: baseline; }
.mini-stat b { font: 700 21px var(--font-display); color: var(--navy-900); font-variant-numeric: tabular-nums; }
.mini-stat span { font-size: 12px; color: var(--faint); }
.list-check { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.list-check li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.list-check svg { flex: none; margin-top: 3px; color: var(--emerald-600); }
.update-log { list-style: none; padding: 0; margin: 0; }
.update-log li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); line-height: 1.6; }
.update-log li:last-child { border-bottom: none; }
.update-log .u-date { flex: none; width: 86px; font-weight: 700; color: var(--navy-900); font-size: 12.5px; font-family: var(--font-display); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.table-wrap th { text-align: left; font-family: var(--font-display); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--navy-800); padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.table-wrap td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: top; }
.table-wrap tr:last-child td { border-bottom: none; }
.info-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.info-tile + .info-tile { margin-top: 12px; }
.info-tile .t-icon { flex: none; width: 42px; height: 42px; border-radius: 11px; background: var(--emerald-50); color: var(--emerald-700); display: flex; align-items: center; justify-content: center; }
.info-tile strong { display: block; font-size: 14.5px; color: var(--navy-900); margin-bottom: 3px; font-family: var(--font-display); }
.info-tile p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0; }
.info-tile a { color: var(--emerald-700); font-weight: 600; }
.split-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 960px) { .split-grid { grid-template-columns: 1.15fr .85fr; } }

/* --- 15.11 État vide --- */
.empty-state { text-align: center; padding: 52px 24px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.empty-state svg { color: var(--line-strong); margin-bottom: 14px; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); font-size: 14px; max-width: 420px; margin: 0 auto 18px; }

/* --- 15.12 Impression --- */
@media print {
  .site-header, .tabbar, .mobile-menu, .cookie-banner, .sticky-apply,
  .ad-slot, .newsletter-box, .breadcrumb, .share-row, .burger { display: none !important; }
  body { background: #fff; padding: 0; }
  .fiche-layout, .split-grid, .dash-layout, .results-layout { grid-template-columns: 1fr; }
  a { color: var(--navy-900); }
}

/* --- 15.13 Focus visible renforcé --- */
a:focus-visible, button:focus-visible { outline: 3px solid rgba(12,148,104,.55); outline-offset: 2px; border-radius: 6px; }

/* --- 15.14 Divers correctifs --- */
.footer-bottom .tags a { color: inherit; }
.pagination-wrap { display: flex; justify-content: center; }
.opp-card, .opp-row, .news-card, .cat-tile, .country-card { min-width: 0; }
.prose img { border-radius: var(--r-md); margin: 20px 0; }


/* --- 15.15 Cartes article (actualités) --- */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.art-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s;
  color: inherit; min-width: 0;
}
.art-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--emerald-600); }
.art-cat {
  align-self: flex-start; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  background: var(--emerald-50); color: var(--emerald-700);
  border-radius: var(--r-pill); padding: 4px 10px; margin-bottom: 12px;
}
.art-card h3 { font-size: 16.5px; line-height: 1.35; margin: 0 0 8px; }
.art-card p { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin: 0 0 14px; flex: 1; }
.art-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--faint); }
.art-meta svg { flex: none; }


/* --- 15.16 Correctifs retour de test 360px --- */
.btn { max-width: 100%; white-space: normal; text-align: center; }
.section-head { flex-wrap: wrap; }
.auth-main, .auth-card, .auth-form, .auth-form .btn { min-width: 0; }
.table-wrap { max-width: 100%; }
.trust-row { min-width: 0; }
.trust-row p { min-width: 0; overflow-wrap: break-word; }
.org-row { min-width: 0; }
.org-row .o-info { min-width: 150px; overflow-wrap: break-word; }
.prose, .prose p, .prose li { overflow-wrap: break-word; }
.pagination { flex-wrap: wrap; }
.results-head { min-width: 0; }
/* Éléments de formulaire : jamais plus larges que leur conteneur */
input, select, textarea { max-width: 100%; }

/* --- 15.17 Tabbar aérée + bouton Personnaliser visible --- */
.tabbar a { padding: 8px 4px 7px; font-size: 10.5px; line-height: 1.25; }
.cookie-actions #cookiePrefsBtn { background: var(--bg); border: 1px solid var(--line-strong); color: var(--navy-800); }
.cookie-actions #cookiePrefsBtn:hover { background: var(--navy-50); color: var(--navy-900); }


/* --- 15.15 Cartes article (actualités) --- */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.art-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s;
  color: inherit; min-width: 0;
}
.art-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--emerald-600); }
.art-cat {
  align-self: flex-start; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  background: var(--emerald-50); color: var(--emerald-700);
  border-radius: var(--r-pill); padding: 4px 10px; margin-bottom: 12px;
}
.art-card h3 { font-size: 16.5px; line-height: 1.35; margin: 0 0 8px; }
.art-card p { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin: 0 0 14px; flex: 1; }
.art-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--faint); }
.art-meta svg { flex: none; }

/* Texte réservé aux lecteurs d'écran (titres de sections sans effet visuel) */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Le cœur (favori) reste cliquable : il passe au-dessus du lien étendu de la carte (.opp-title a::after) */
.opp-card .opp-fav, .opp-row .opp-fav { position: relative; z-index: 3; }
