/* ============================================================
   AlerteMarché — Design system (fidèle aux maquettes)
   Focus Bénin · FR · vert #1a7f5a
   ============================================================ */

/* Garde-fou global : aucune icône SVG ne peut déborder même si sa règle
   spécifique n'est pas (encore) appliquée. Les règles .xxx svg { } ci-dessous
   restent prioritaires (spécificité de classe > élément). */
svg { width: 1.25em; height: 1.25em; max-width: 100%; flex: none; }

:root {
  --green: #1a7f5a;
  --green-600: #16805a;
  --green-700: #136148;
  --green-050: #e9f6f0;
  --green-100: #d6efe4;
  --orange: #f59e0b;
  --orange-050: #fef3e2;
  --blue: #3b82f6;
  --blue-050: #e8f0fe;
  --purple: #8b5cf6;
  --purple-050: #f1ecfe;
  --indigo: #6366f1;
  --indigo-050: #ecedfe;

  --ink: #0f172a;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f9fafb;
  --white: #ffffff;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06);
  --shadow: 0 6px 20px rgba(16,24,40,.08);
  --shadow-lg: 0 18px 45px rgba(16,24,40,.14);
  --container: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.green { color: var(--green); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; font-weight: 800; }
h1 { font-size: 3rem; letter-spacing: -.02em; }
h2 { font-size: 2rem; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { color: var(--text); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: .95rem;
  padding: 12px 22px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  cursor: pointer; transition: all .18s ease; white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-700); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: #fff; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green-050); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { filter: brightness(.95); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { filter: brightness(.95); }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { filter: brightness(.95); }
.btn-indigo { background: var(--indigo); color: #fff; }
.btn-indigo:hover { filter: brightness(.95); }
.btn-white { background: #fff; color: var(--green); }
.btn-white:hover { background: #f1f5f4; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-sm { padding: 9px 16px; font-size: .875rem; white-space: nowrap; }
.btn-block { width: 100%; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(16,24,40,.04);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; background: var(--green-050); color: var(--green); flex: none;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-lines { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text { font-size: 1.32rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.brand-accent { color: var(--green); }
.brand-tag { font-size: .62rem; color: var(--muted); letter-spacing: .02em; font-weight: 600; text-transform: none; }

/* -------- Sélecteur de pays (drapeaux images) -------- */
.country-select { position: relative; }
.country-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--green-050); color: var(--green-700);
  border: 1px solid var(--green-100); border-radius: 999px;
  padding: 6px 13px; font-weight: 800; font-size: .8rem; cursor: pointer;
  font-family: inherit; transition: background .15s, border-color .15s;
}
.country-badge:hover { background: var(--green-100); border-color: var(--green); }
.country-badge .flag-img {
  width: 22px; height: 16px; border-radius: 3px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08); flex: none;
}
.country-badge .country-badge-name { line-height: 1; }
.country-badge .caret { font-size: .6rem; opacity: .7; transition: transform .18s; }
.country-select.open .country-badge .caret { transform: rotate(180deg); }

.country-menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 200;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; min-width: 220px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s, transform .16s, visibility .16s;
}
.country-select.open .country-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.country-menu-head {
  font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase;
  letter-spacing: .04em; padding: 6px 10px 8px;
}
.country-opt {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: transparent; border: none; border-radius: 8px;
  padding: 10px; font-family: inherit; font-size: .9rem; font-weight: 600;
  color: var(--ink); cursor: pointer; text-align: left; transition: background .13s;
}
.country-opt:hover { background: var(--green-050); }
.country-opt .flag-img {
  width: 26px; height: 19px; border-radius: 3px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08); flex: none;
}
.country-opt-name { flex: 1; }
.country-opt.active { color: var(--green-700); font-weight: 800; }
.country-opt.active .country-opt-check { color: var(--green); display: inline-flex; }
.country-opt-check svg { width: 16px; height: 16px; }
.country-opt.soon { cursor: default; }
.country-opt.soon .country-opt-name { color: var(--muted); }
.country-opt.soon:hover { background: #f9fafb; }
.country-opt-soon {
  font-size: .68rem; font-weight: 700; color: var(--orange, #d97706);
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: 999px;
  padding: 2px 8px; letter-spacing: .02em;
}

.country-menu-more {
  display: block; margin-top: 6px; padding: 10px 12px; border-top: 1px solid var(--line, #e5e7eb);
  font-size: .82rem; font-weight: 700; color: var(--green-700, #0a7d3f); text-decoration: none;
}
.country-menu-more:hover { background: var(--green-050, #ecfdf3); }

.main-nav { display: flex; align-items: center; gap: 28px; margin: 0 auto; }
.nav-auth-mobile { display: none; } /* liens auth réservés au menu hamburger mobile */
.main-nav a {
  font-size: .92rem; font-weight: 600; color: #374151; padding: 6px 0;
  position: relative; transition: color .15s;
}

/* Amélioration pour grands écrans (desktop > 1280px) */
@media (min-width: 1280px) {
  .main-nav { gap: 32px; } /* Plus d'espace sur grands écrans */
  .main-nav a { font-size: .94rem; } /* Texte légèrement plus grand */
  .header-actions { gap: 14px; }
}
.main-nav a:hover { color: var(--green); }
.main-nav a.active { color: var(--green); font-weight: 700; }
.main-nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2.5px;
  background: var(--green); border-radius: 2px;
}

/* ---- Bouton remarquable "Déposer mon CV" (candidats) ---- */
.main-nav a.nav-cta-cv {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green); color: #fff !important;
  padding: 8px 16px; border-radius: 999px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(26,127,90,.30);
  transition: transform .15s, background .15s, box-shadow .15s;
  animation: navCvPulse 2.4s ease-in-out infinite;
}
.main-nav a.nav-cta-cv svg { flex: none; }
.main-nav a.nav-cta-cv:hover {
  background: var(--green-700); color: #fff !important;
  transform: translateY(-1px); box-shadow: 0 6px 18px rgba(26,127,90,.40);
  animation: none;
}
.main-nav a.nav-cta-cv.active::after { display: none; } /* pas de soulignement sur le bouton */
@keyframes navCvPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(26,127,90,.30); }
  50%      { box-shadow: 0 4px 14px rgba(26,127,90,.30), 0 0 0 6px rgba(26,127,90,.10); }
}
@media (prefers-reduced-motion: reduce) {
  .main-nav a.nav-cta-cv { animation: none; }
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-search { color: var(--muted); display: grid; place-items: center; width: 22px; height: 22px; }
.nav-toggle { 
  display: none; /* caché par défaut sur desktop */
  background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink);
}

/* ---- Menus déroulants navigation ---- */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; gap: 2px; }
.nav-dropdown > .nav-dd-link { padding: 6px 0; }
.nav-dropdown > .nav-dd-caret {
  background: none; border: none; cursor: pointer; color: #374151; padding: 6px 2px;
  display: inline-flex; align-items: center; font-family: var(--font); transition: color .15s;
}
.nav-dropdown > .nav-dd-caret .caret { font-size: .6rem; opacity: .7; transition: transform .18s; }
.nav-dropdown:hover > .nav-dd-caret,
.nav-dropdown:hover > .nav-dd-link,
.nav-dropdown.open > .nav-dd-caret { color: var(--green); }
.nav-dropdown.open > .nav-dd-caret .caret { transform: rotate(180deg); }
.nav-dropdown.has-active > .nav-dd-link { color: var(--green); font-weight: 700; }
.nav-dd-menu {
  position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%) translateY(2px);
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 8px; min-width: 250px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transition: opacity .16s, transform .16s; z-index: 60;
}
/* Zone de sécurité invisible pour éviter la fermeture accidentelle */
.nav-dd-menu::before {
  content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 12px;
}
.nav-dropdown:hover .nav-dd-menu,
.nav-dropdown.open .nav-dd-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dd-menu a {
  padding: 9px 12px; border-radius: 8px; font-size: .88rem; font-weight: 600; color: #374151;
  display: flex; align-items: center; gap: 9px; white-space: nowrap;
}
.nav-dd-menu a:hover { background: var(--green-050); color: var(--green); }
.nav-dd-menu a.active { background: var(--green-050); color: var(--green); font-weight: 700; }
.nav-dd-menu a .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.nav-dd-menu a::after { display: none; }

/* ---------------- Sections ---------------- */
.section { padding: 76px 0; }
.section-tight { padding: 42px 0; }
.section-white { background: #fff; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow {
  display: inline-block; color: var(--green); font-weight: 800; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px;
}
.section-head p { color: var(--muted); margin-top: 10px; font-size: 1.05rem; }

/* ---------------- Hero (accueil) ---------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(105deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.82) 40%, rgba(233,246,240,.35) 72%, rgba(233,246,240,.15) 100%);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; opacity: .38;
  background-position: center 30%; background-size: cover;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 64px 0 72px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-050); color: var(--green-700); border: 1px solid var(--green-100);
  padding: 7px 15px; border-radius: 999px; font-weight: 700; font-size: .82rem; margin-bottom: 20px;
}
.hero h1 { font-size: 3.15rem; margin-bottom: 18px; }
.hero .lead { font-size: 1.12rem; color: #4b5563; max-width: 540px; }
.hero .lead b { color: var(--green-700); }

.hero-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 22px; max-width: 540px; }
.channel-card {
  display: flex; align-items: center; gap: 12px; background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 16px; transition: all .18s;
}
.channel-card:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
.channel-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.channel-icon svg { width: 22px; height: 22px; }
.channel-icon.wa { background: var(--green-050); color: var(--green); }
.channel-icon.mail { background: var(--blue-050); color: var(--blue); }
.channel-card b { display: block; font-size: .95rem; color: var(--ink); }
.channel-card span { font-size: .8rem; color: var(--muted); }

.hero-mini { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 6px; max-width: 560px; }
.hero-mini div { display: flex; align-items: center; gap: 9px; font-size: .86rem; }
.hero-mini .mi { width: 30px; height: 30px; border-radius: 8px; background: var(--green-050); color: var(--green); display: grid; place-items: center; flex: none; }
.hero-mini .mi svg { width: 16px; height: 16px; }
.hero-mini b { display: block; color: var(--ink); font-size: .88rem; }
.hero-mini small { color: var(--muted); }

/* Hero visuals (téléphone WhatsApp + ordinateur Email) */
.hero-visual { position: relative; min-height: 480px; }

/* --- Téléphone (WhatsApp) --- */
.phone {
  position: absolute; left: 0; top: 44px; z-index: 3; width: 224px;
  background: #0b141a; border-radius: 30px; padding: 9px; box-shadow: var(--shadow-lg);
}
.phone-screen { background: #e5ddd5; border-radius: 22px; overflow: hidden; }
.phone-top { background: var(--green); color: #fff; padding: 12px 12px 11px; display: flex; align-items: center; gap: 8px; }
.phone-top .pa { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: .85rem; flex: none; }
.phone-top b { font-size: .84rem; } .phone-top small { font-size: .64rem; opacity: .85; display: block; }
.phone-top .pdots { margin-left: auto; opacity: .8; }
.wa-msg { margin: 12px 12px 6px; background: #fff; border-radius: 12px; border-top-left-radius: 3px; padding: 12px; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa-msg .tt { color: var(--green-700); font-weight: 800; font-size: .76rem; margin-bottom: 6px; }
.wa-msg h5 { font-size: .8rem; color: var(--ink); margin-bottom: 7px; font-weight: 700; }
.wa-msg .row { font-size: .68rem; color: #4b5563; display: flex; gap: 5px; margin-bottom: 3px; }
.wa-msg .btnlink { margin-top: 8px; background: var(--green-050); color: var(--green-700); text-align: center; padding: 6px; border-radius: 7px; font-weight: 700; font-size: .68rem; }
.wa-msg .time { text-align: right; font-size: .58rem; color: #9ca3af; margin-top: 4px; }
.wa-reply { margin: 0 12px 12px auto; background: #dcf8c6; border-radius: 12px; border-top-right-radius: 3px; padding: 8px 10px; width: 78%; font-size: .68rem; color: #303030; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa-reply .time { display: block; text-align: right; font-size: .56rem; color: #7ba86a; margin-top: 3px; }

/* --- Ordinateur portable (Email) --- */
.laptop { position: absolute; right: 0; top: 8px; z-index: 2; width: 356px; }
.laptop-screen { background: #111827; border-radius: 12px 12px 0 0; padding: 12px 12px 14px; box-shadow: var(--shadow-lg); }
.email-doc { background: #fff; border-radius: 6px; padding: 15px 16px; }
.email-doc .eh { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.email-doc .eh .ei { width: 28px; height: 28px; border-radius: 8px; background: var(--green-050); color: var(--green); display: grid; place-items: center; flex: none; }
.email-doc .eh .ei svg { width: 16px; height: 16px; }
.email-doc .eh b { font-size: .92rem; color: var(--ink); }
.email-doc .eh b .green { color: var(--green); }
.email-doc h5 { font-size: .88rem; color: var(--ink); margin-bottom: 9px; font-weight: 700; }
.email-doc > p { font-size: .74rem; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
.email-doc .card-inline { border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 9px; padding: 12px; margin-bottom: 12px; background: #fafafa; }
.email-doc .card-inline .row { font-size: .72rem; color: #4b5563; margin-bottom: 5px; }
.email-doc .card-inline .row b { color: var(--ink); font-size: .78rem; }
.email-doc .card-inline .doc-btn { display: inline-block; margin-top: 6px; background: var(--green); color: #fff; padding: 6px 14px; border-radius: 7px; font-weight: 700; font-size: .72rem; }
.email-doc .email-link { color: var(--green-700); font-weight: 700; font-size: .76rem; text-align: center; margin-bottom: 12px; }
.email-doc .email-social { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: .68rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.email-doc .email-social .soc { width: 20px; height: 20px; border-radius: 50%; background: var(--green-050); color: var(--green-700); display: grid; place-items: center; font-size: .6rem; font-weight: 700; }
.laptop-base { height: 12px; width: 420px; margin-left: -32px; background: linear-gradient(180deg, #d1d5db, #9ca3af); border-radius: 0 0 12px 12px; position: relative; box-shadow: 0 6px 14px rgba(0,0,0,.14); }
.laptop-base::after { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 70px; height: 5px; background: #6b7280; border-radius: 0 0 7px 7px; }

/* --- Badges flottants --- */
.float-badge { position: absolute; z-index: 6; display: flex; align-items: center; gap: 9px; }
.float-badge .fb-ic { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-lg); }
.float-badge .fb-ic svg { width: 30px; height: 30px; }
.float-badge .fb-ic.wa { background: #25d366; }
.float-badge .fb-ic.mail { background: var(--blue); }
.float-badge .fb-count { position: absolute; top: -4px; left: 42px; width: 20px; height: 20px; border-radius: 50%; background: #ef4444; color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.float-badge .fb-label b { display: block; font-size: .82rem; color: var(--ink); }
.float-badge .fb-label small { font-size: .72rem; color: var(--muted); }
.wa-badge { left: -6px; top: -6px; }
.mail-badge { right: -6px; bottom: 44px; flex-direction: row-reverse; }
.mail-badge .fb-label { text-align: right; }
.mail-badge .fb-count { left: auto; right: 42px; }

/* ---------------- Feature columns (Pourquoi choisir) ---------------- */
.features-band { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--line); padding: 40px; }
.features-title { display: flex; flex-direction: column; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.feature { }
.feature .fi { width: 52px; height: 52px; border-radius: 13px; background: var(--green-050); color: var(--green); display: grid; place-items: center; margin-bottom: 14px; }
.feature .fi svg { width: 26px; height: 26px; }
.feature.blue .fi { background: var(--blue-050); color: var(--blue); }
.feature h3 { margin-bottom: 6px; }
.feature p { font-size: .9rem; color: var(--muted); }

/* ---------------- Steps (comment ça marche) ---------------- */
.steps-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 16px; }
.step-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); height: 100%; }
.step-box .snum { width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 12px; font-size: .95rem; }
.step-box h3 { margin-bottom: 6px; }
.step-box p { font-size: .9rem; color: var(--muted); }
.step-arrow { color: var(--green); opacity: .5; }
.step-arrow svg { width: 30px; height: 30px; }
.step-icons { display: flex; gap: 8px; margin-top: 12px; }
.step-icons span { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.step-icons .wa { background: var(--green-050); color: var(--green); }
.step-icons .mail { background: var(--blue-050); color: var(--blue); }

/* ---------------- CTA banner ---------------- */
.cta-banner {
  background: linear-gradient(120deg, var(--green-700), var(--green)); color: #fff;
  border-radius: var(--radius-lg); padding: 44px 48px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr auto; gap: 30px; align-items: center;
}
.cta-banner h2 { color: #fff; font-size: 1.7rem; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,.9); max-width: 520px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; min-width: 260px; }
.cta-hand { font-family: 'Segoe Script', cursive; font-style: italic; color: #ffe08a; margin-top: 6px; text-align: center; font-size: .95rem; }

/* ---------------- Stats ---------------- */
.stats-band { background: var(--green-050); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-item .si { width: 46px; height: 46px; border-radius: 12px; background: #fff; color: var(--green); display: grid; place-items: center; margin-bottom: 8px; box-shadow: var(--shadow-sm); }
.stat-item b { font-size: 1.9rem; color: var(--green-700); font-weight: 800; }
.stat-item span { color: var(--muted); font-size: .9rem; }

/* ---------------- Trust bar (bas de page inscription) ---------------- */
.trust-bar { background: var(--green-050); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.trust-item { display: flex; align-items: center; gap: 13px; }
.trust-item .ti { width: 44px; height: 44px; border-radius: 11px; background: #fff; color: var(--green); display: grid; place-items: center; flex: none; box-shadow: var(--shadow-sm); }
.trust-item b { display: block; color: var(--ink); font-size: .95rem; }
.trust-item span { color: var(--muted); font-size: .82rem; }

/* ---------------- Page header (titre + breadcrumb) ---------------- */
.page-head { padding: 34px 0 8px; }
.breadcrumb { font-size: .84rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { margin: 0 7px; }
.page-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.page-title h1 { font-size: 2.3rem; }
.page-title p { color: var(--muted); margin-top: 4px; }
.official-note {
  display: flex; align-items: center; gap: 10px; background: var(--green-050);
  border: 1px solid var(--green-100); border-radius: var(--radius); padding: 13px 16px;
  color: var(--green-700); font-size: .84rem; max-width: 420px; font-weight: 600;
}
.official-note svg { width: 22px; height: 22px; flex: none; }

/* ---------------- Inscription — cartes profils ---------------- */
.signup-hero { padding: 48px 0 24px; }
.signup-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.signup-hero h1 { font-size: 2.6rem; margin-bottom: 14px; }
.signup-hero .lead { font-size: 1.1rem; color: #4b5563; }
.signup-hero .lead b { color: var(--green-700); }

.progress-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin: 30px auto 8px; max-width: 900px; }
.pstep { display: flex; align-items: center; gap: 12px; }
.pstep .pc { width: 40px; height: 40px; border-radius: 50%; background: #e5e7eb; color: #9ca3af; font-weight: 800; display: grid; place-items: center; flex: none; }
.pstep.active .pc { background: var(--green); color: #fff; }
.pstep.done .pc { background: var(--green); color: #fff; }
.pstep .pt b { display: block; font-size: .9rem; color: var(--ink); }
.pstep .pt span { font-size: .78rem; color: var(--muted); }
.pstep.active .pt b { color: var(--green-700); }
.pstep-line { flex: 1; height: 2px; background: #e5e7eb; margin: 0 14px; min-width: 40px; border-radius: 2px; }
.pstep-line.done { background: var(--green); }

.profiles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 20px; }
.profile-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 22px; display: flex; flex-direction: column; transition: all .2s; border-top: 4px solid var(--green);
}
.profile-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.profile-card .pic { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; }
.profile-card .pic svg { width: 32px; height: 32px; }
.profile-card h3 { text-align: center; font-size: 1.3rem; margin-bottom: 10px; }
.profile-card > p { text-align: center; font-size: .88rem; color: var(--muted); margin-bottom: 16px; }
.profile-card ul { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; flex: 1; }
.profile-card li { display: flex; align-items: flex-start; gap: 9px; font-size: .86rem; color: var(--text); }
.profile-card li svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }

.profile-card.green { border-top-color: var(--green); }
.profile-card.green .pic { background: var(--green-050); color: var(--green); }
.profile-card.green h3 { color: var(--green); }
.profile-card.green li svg { color: var(--green); }
.profile-card.orange { border-top-color: var(--orange); }
.profile-card.orange .pic { background: var(--orange-050); color: var(--orange); }
.profile-card.orange h3 { color: var(--orange); }
.profile-card.orange li svg { color: var(--orange); }
.profile-card.blue { border-top-color: var(--blue); }
.profile-card.blue .pic { background: var(--blue-050); color: var(--blue); }
.profile-card.blue h3 { color: var(--blue); }
.profile-card.blue li svg { color: var(--blue); }
.profile-card.purple { border-top-color: var(--purple); }
.profile-card.purple .pic { background: var(--purple-050); color: var(--purple); }
.profile-card.purple h3 { color: var(--purple); }
.profile-card.purple li svg { color: var(--purple); }

.signup-bottom { text-align: center; margin-top: 30px; color: var(--muted); }
.signup-bottom a { color: var(--green); font-weight: 700; text-decoration: underline; }

/* ---------------- Formulaire (étape 2) ---------------- */
.form-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; padding-bottom: 60px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.form-card > h2 { font-size: 1.5rem; margin-bottom: 4px; }
.form-card > .sub { color: var(--muted); font-size: .92rem; margin-bottom: 24px; }
.form-section { margin-bottom: 26px; }
.form-section-title { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--ink); margin-bottom: 16px; font-size: 1.02rem; }
.form-section-title svg { width: 20px; height: 20px; color: var(--green); }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.form-grid.two { grid-template-columns: repeat(2, 1fr); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; color: #374151; }
.field label .req { color: #ef4444; }
.field input, .field select {
  font-family: var(--font); font-size: .92rem; padding: 11px 13px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; color: var(--text); transition: border .15s; width: 100%;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-050); }
.field input::placeholder { color: #9ca3af; }
.phone-field { display: flex; gap: 8px; }
.phone-field .cc { flex: none; width: 108px; }
.pw-field { position: relative; }
.pw-field .toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--muted); background: none; border: none; }
.form-actions { display: flex; justify-content: space-between; margin-top: 26px; }

/* Récapitulatif (droite) */
.summary-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; position: sticky; top: 96px; }
.summary-card h3 { padding: 20px 22px; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
.summary-block { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.summary-block .lab { font-size: .78rem; color: var(--muted); font-weight: 700; text-transform: none; margin-bottom: 10px; }
.summary-profile { display: flex; gap: 13px; }
.summary-profile .spic { width: 54px; height: 54px; border-radius: 50%; background: var(--green-050); color: var(--green); display: grid; place-items: center; flex: none; }
.summary-profile .spic svg { width: 26px; height: 26px; }
.summary-profile b { color: var(--green); font-size: 1.05rem; }
.summary-profile p { font-size: .8rem; color: var(--muted); margin: 3px 0 8px; }
.btn-modif { background: #f3f4f6; color: #374151; border: none; padding: 5px 14px; border-radius: 6px; font-size: .78rem; font-weight: 700; cursor: pointer; }
.summary-country { display: flex; align-items: center; gap: 10px; }
.summary-country .fl { font-size: 1.6rem; } .summary-country b { font-size: 1rem; }
.summary-steps { display: flex; flex-direction: column; gap: 13px; }
.summary-steps li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.summary-steps li .sn { width: 24px; height: 24px; border-radius: 50%; background: #e5e7eb; color: #9ca3af; font-size: .78rem; font-weight: 800; display: grid; place-items: center; flex: none; }
.summary-steps li.active { color: var(--green-700); font-weight: 700; }
.summary-steps li.active .sn, .summary-steps li.done .sn { background: var(--green); color: #fff; }
.summary-steps li.active { background: var(--green-050); margin: 0 -22px; padding: 6px 22px; }
.secure-note { display: flex; gap: 11px; padding: 16px 22px; background: var(--green-050); }
.secure-note svg { width: 22px; height: 22px; color: var(--green); flex: none; }
.secure-note b { font-size: .85rem; color: var(--green-700); display: block; }
.secure-note span { font-size: .76rem; color: var(--muted); }

/* ---------------- Marchés publics ---------------- */
.market-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 22px 0 8px; }
.search-box { flex: 1; min-width: 240px; position: relative; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search-box input { width: 100%; padding: 12px 14px 12px 42px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font); font-size: .92rem; }
.search-box input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-050); }
.filter-select { position: relative; }
.filter-select select {
  appearance: none; padding: 12px 34px 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .88rem; background: #fff; color: var(--text); cursor: pointer;
}
.filter-select::after { content: '▾'; position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-size: .7rem; }
.filter-select select:focus { outline: none; border-color: var(--green); }

.market-layout { display: grid; grid-template-columns: 268px 1fr; gap: 26px; padding: 20px 0 60px; align-items: start; }
.filters-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.filters-panel .fp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.filters-panel .fp-head b { font-size: 1.05rem; color: var(--ink); }
.filters-panel .fp-head a { font-size: .8rem; color: var(--green); font-weight: 700; cursor: pointer; }
.filter-group { margin-bottom: 18px; }
.filter-group > label { display: block; font-size: .82rem; font-weight: 700; color: #374151; margin-bottom: 8px; }
.filter-group input, .filter-group select { width: 100%; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 7px; font-family: var(--font); font-size: .85rem; }
.filter-group input:focus, .filter-group select:focus { outline: none; border-color: var(--green); }
.filter-range { display: flex; align-items: center; gap: 8px; }
.filter-range span { color: var(--muted); font-size: .8rem; }
.alert-box { margin-top: 22px; background: var(--green-050); border: 1px solid var(--green-100); border-radius: var(--radius); padding: 16px; }
.alert-box b { color: var(--green-700); font-size: .95rem; }
.alert-box p { font-size: .8rem; color: var(--muted); margin: 6px 0 12px; }

.market-main { }
.market-count { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.market-count .cc b { color: var(--ink); font-size: 1.15rem; } .market-count .cc span { color: var(--muted); font-size: .84rem; margin-left: 10px; }
.view-toggle { display: flex; gap: 6px; }
.view-toggle button { border: 1.5px solid var(--line); background: #fff; padding: 7px 12px; border-radius: 7px; font-size: .82rem; cursor: pointer; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.view-toggle button.active { border-color: var(--green); color: var(--green); background: var(--green-050); }

.tenders-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tender-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; transition: all .18s; }
.tender-card:hover { box-shadow: var(--shadow); border-color: #d1d5db; transform: translateY(-2px); }
.tc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sector-badge { font-size: .72rem; font-weight: 800; padding: 4px 11px; border-radius: 999px; }
.sector-badge.travaux { background: var(--green-050); color: var(--green-700); }
.sector-badge.fournitures { background: var(--blue-050); color: var(--blue); }
.sector-badge.services { background: #e0f2f1; color: #0d9488; }
.sector-badge.aac { background: var(--green-050); color: var(--green-700); }
.sector-badge.avis-general { background: var(--orange-050); color: #b45309; }
.sector-badge.plan-ppm { background: var(--indigo-050); color: #4338ca; }
.tc-top { gap: 8px; flex-wrap: wrap; }
.country-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .7rem; font-weight: 700; color: #fff; line-height: 1; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.country-pill img { border-radius: 2px; display: block; }

/* ---------------- Grille catégories (accueil) ---------------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-left: auto; margin-right: auto; }
.cat-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; display: flex; flex-direction: column; transition: all .2s;
  border-top: 4px solid var(--green); text-decoration: none;
}
.cat-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-card .cat-ic { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; }
.cat-card .cat-ic svg { width: 26px; height: 26px; }
.cat-card h3 { margin-bottom: 8px; color: var(--ink); font-size: 1.12rem; }
.cat-card p { font-size: .9rem; color: var(--muted); flex: 1; margin-bottom: 16px; }
.cat-card .cat-foot { display: flex; align-items: center; justify-content: space-between; }
.cat-card .cat-count { font-weight: 800; font-size: .95rem; }
.cat-card .cat-count small { font-weight: 600; color: var(--muted); font-size: .8rem; }
.cat-card .cat-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .86rem; }
.cat-card .cat-go svg { width: 16px; height: 16px; }
.cat-card.green { border-top-color: var(--green); }
.cat-card.green .cat-ic { background: var(--green-050); color: var(--green); }
.cat-card.green .cat-count, .cat-card.green .cat-go { color: var(--green-700); }
.cat-card.orange { border-top-color: var(--orange); }
.cat-card.orange .cat-ic { background: var(--orange-050); color: #b45309; }
.cat-card.orange .cat-count, .cat-card.orange .cat-go { color: #b45309; }
.cat-card.indigo { border-top-color: var(--indigo); }
.cat-card.indigo .cat-ic { background: var(--indigo-050); color: #4338ca; }
.cat-card.indigo .cat-count, .cat-card.indigo .cat-go { color: #4338ca; }
@media (max-width: 1024px) { .cat-grid { grid-template-columns: 1fr; } .cat-grid-2 { grid-template-columns: 1fr; } }

/* ---------------- Témoignages (accueil) ---------------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.testi-stars { color: #f5b301; font-size: 1rem; letter-spacing: 2px; }
.testi-card blockquote {
  margin: 0; font-size: .95rem; line-height: 1.6; color: #374151; font-style: italic; flex: 1;
}
.testi-author { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--green); color: #fff; font-weight: 800; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
}
.testi-id { display: flex; flex-direction: column; line-height: 1.3; }
.testi-id b { font-size: .92rem; color: var(--ink, #111827); }
.testi-id small { font-size: .78rem; color: var(--muted); }
@media (max-width: 1024px) { .testi-grid { grid-template-columns: 1fr; } }
.tc-time { font-size: .74rem; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tc-new { background: #fef3c7; color: #b45309; padding: 2px 8px; border-radius: 999px; font-weight: 800; font-size: .66rem; }
.tender-card h3 { font-size: 1.02rem; line-height: 1.35; margin-bottom: 12px; min-height: 42px; }
.tc-meta { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.tc-meta .m { display: flex; align-items: flex-start; gap: 8px; font-size: .82rem; color: #4b5563; }
.tc-meta .m svg { width: 15px; height: 15px; color: var(--muted); flex: none; margin-top: 2px; }
.tc-budget { font-weight: 800; color: var(--green-700); font-size: .92rem; }
.tc-budget.na { color: var(--orange); }
.tc-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.tc-tags .tag { background: #f3f4f6; color: #4b5563; font-size: .72rem; padding: 3px 10px; border-radius: 6px; font-weight: 600; }
.tc-actions { display: flex; gap: 9px; margin-top: auto; }
.tc-actions .btn { flex: 1; padding: 9px; font-size: .82rem; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 34px; }
.pagination button, .pagination span.dots { min-width: 38px; height: 38px; border: 1.5px solid var(--line); background: #fff; border-radius: 8px; font-family: var(--font); font-weight: 700; font-size: .88rem; cursor: pointer; color: #374151; padding: 0 12px; }
.pagination button.active { background: var(--green); color: #fff; border-color: var(--green); }
.pagination button:hover:not(.active) { border-color: var(--green); color: var(--green); }
.market-showing { text-align: center; color: var(--muted); font-size: .84rem; margin-top: 14px; }

/* ---------------- Footer ---------------- */
.site-footer { background: #0f2a22; color: #cbd5d1; padding: 56px 0 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { display: flex; align-items: center; gap: 9px; color: #fff; font-size: 1.25rem; font-weight: 800; margin-bottom: 12px; }
.footer-brand .brand-mark { background: rgba(255,255,255,.12); color: #fff; }
.site-footer p { font-size: .88rem; color: #9fb3ac; max-width: 320px; }
.footer-flags { margin-top: 14px; font-size: .9rem; color: #cbd5d1; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer .footer-col a { display: block; font-size: .88rem; color: #9fb3ac; margin-bottom: 9px; transition: color .15s; }
.site-footer .footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; font-size: .82rem; color: #7f9992; flex-wrap: wrap; gap: 8px; }
.footer-countries { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 20px 0 4px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 26px; }
.footer-countries-label { font-size: .86rem; color: #9fb3ac; font-weight: 600; }
.footer-country { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: #cbd5d1; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); transition: all .15s; }
.footer-country img { border-radius: 2px; display: block; }
.footer-country:hover { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.footer-country.active { color: #fff; font-weight: 700; border-color: #2fbf71; background: rgba(47,191,113,.16); }

/* ---------------- Responsive ---------------- */
/* Laptops (1201–1440px) : la nav horizontale + 2 boutons d'auth dépassent le
   conteneur (1200px) et poussaient le CTA "S'inscrire" hors de l'écran. On
   compacte la nav (gaps, police, padding) pour que tout tienne sans débordement. */
@media (max-width: 1440px) {
  /* Sous 1440px le libellé complet "S'inscrire gratuitement" est trop long :
     on n'affiche que "S'inscrire" (le mot "gratuitement" est masqué). */
  .btn-word-extra { display: none; }
}
@media (min-width: 1201px) and (max-width: 1440px) {
  .header-inner { gap: 10px; }
  .main-nav { gap: 14px; }
  .main-nav a { font-size: .86rem; }
  .header-actions { gap: 8px; }
  .header-actions .btn { font-size: .82rem; padding: 8px 12px; }
  .country-badge { font-size: .78rem; padding: 5px 9px; }
  .brand-tag { display: none; }
}
/* Laptops moyens (1024–1200px) : réduire police et visuel, garder 2 colonnes */
@media (max-width: 1200px) {
  .hero h1 { font-size: 2.6rem; }
  .hero-inner { gap: 32px; padding: 48px 0 56px; }
  .hero-visual { min-height: 420px; }
}
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-inner { gap: 24px; padding: 40px 0 48px; }
  /* 860–1024px : hero en 1 colonne, visuel centré et réduit (objectif responsive) */
  .hero-inner, .signup-hero-grid { grid-template-columns: 1fr; }
  .hero-visual { width: 100%; max-width: 520px; min-height: 360px; margin: 20px auto 0; overflow: hidden; transform: scale(0.9); transform-origin: top center; }
  .feature-grid, .profiles-grid, .stats-grid, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: 1fr; }
  .step-arrow { transform: rotate(90deg); margin: 0 auto; }
  .tenders-grid { grid-template-columns: 1fr; }
  .form-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .market-layout { grid-template-columns: 1fr; }
}
/* Nav horizontale trop large pour les laptops : on bascule en menu hamburger dès
   1200px (header propre = logo + CTA compact + hamburger, CTA toujours visible).
   La nav complète réapparaît au-dessus de 1200px. */
@media (max-width: 1200px) {
  .header-inner { gap: 12px; } /* réduire l'espacement */
  .country-badge { font-size: 0.78rem; padding: 5px 10px; gap: 5px; } /* badge pays plus compact */
  .country-badge .flag-img { width: 20px; height: 14px; }
  .brand-tag { display: none; } /* cacher le slogan sur très petit écran */
  .main-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 24px; box-shadow: var(--shadow); gap: 4px; align-items: stretch; z-index: 100; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  /* Liens d'authentification affichés dans le menu hamburger sur mobile */
  .main-nav .nav-auth-mobile { display: block; }
  .main-nav .nav-auth-mobile:first-of-type { margin-top: 8px; color: var(--green); font-weight: 700; }
  .nav-toggle { 
    display: flex; /* visible sur mobile */
    padding: 8px; min-width: 44px; min-height: 44px; /* zone tactile optimale 44×44px (Apple/Google HIG) */
    align-items: center; justify-content: center;
    flex-shrink: 0; /* le hamburger ne doit jamais être compressé ni poussé hors écran */
  }
  .header-inner { flex-wrap: nowrap; } /* garder logo | actions | hamburger sur une seule ligne */
  .header-actions { flex-shrink: 1; min-width: 0; } /* les CTA cèdent la place au hamburger */
  /* Dropdowns : accordéon mobile avec toggle (caché par défaut, ouvert au clic) */
  .nav-dropdown { width: 100%; flex-wrap: wrap; }
  .nav-dropdown > .nav-dd-link { flex: 1; padding: 14px 8px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-dropdown > .nav-dd-caret { 
    padding: 14px 12px; border-bottom: 1px solid var(--line); 
    min-width: 44px; min-height: 44px; /* zone tactile recommandée Apple/Google */
    display: flex; align-items: center; justify-content: center;
  }
  .nav-dropdown > .nav-dd-caret .caret { font-size: 0.9rem; opacity: 1; }
  /* Sous-menu caché par défaut sur mobile */
  .nav-dd-menu {
    flex-basis: 100%; position: static; transform: none; box-shadow: none;
    border: none; padding: 0 0 8px 16px; min-width: 0; background: #f9fafb;
    max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.3s ease, opacity 0.2s ease;
  }
  /* Sous-menu visible quand le dropdown est ouvert */
  .nav-dropdown.open .nav-dd-menu { max-height: 400px; opacity: 1; padding: 8px 0 8px 16px; transform: none; }
  .nav-dd-menu a { padding: 12px 8px; border-bottom: none; font-size: 0.95rem; }
  .cta-banner { grid-template-columns: 1fr; }
  .header-actions .btn-outline { display: none; }
  /* Adapter le bouton "S'inscrire gratuitement" pour tablette/mobile large */
  .header-actions .btn-primary { 
    font-size: 0.78rem; 
    padding: 7px 10px;
  }
}

/* Media query intermédiaire pour mieux gérer les tablettes (650px - 860px) */
@media (max-width: 750px) and (min-width: 561px) {
  .header-inner { gap: 8px; }
  .header-actions { gap: 8px; }
  .header-actions .btn-primary { 
    font-size: 0.75rem; 
    padding: 7px 10px;
  }
  .header-actions .btn-outline { 
    font-size: 0.8rem; 
    padding: 7px 10px;
  }
  .main-nav { gap: 20px; } /* Réduire l'espacement sur petites tablettes */
}

@media (max-width: 560px) {
  h1, .hero h1, .signup-hero h1 { font-size: 2rem; }
  .feature-grid, .profiles-grid, .stats-grid, .trust-grid, .form-grid, .form-grid.two { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
  .hero-visual { transform: scale(.8); transform-origin: top center; min-height: 300px; margin: 12px auto 0; width: 100%; max-width: 460px; overflow: hidden; }
  .section { padding: 48px 0; }
  /* Sous 560px : garder le CTA "S'inscrire" visible mais très compact pour qu'il tienne
     avec le logo et le hamburger sans déborder ni les pousser hors écran. */
  .header-actions .btn-primary { display: inline-flex; font-size: 0.72rem; padding: 6px 8px; }
  .header-actions { gap: 6px; }
}



/* =========================================================================
   Préférences d'alertes — secteurs (chips), mots-clés (tags), canaux, OTP
   ========================================================================= */

/* Chips secteurs (multi-sélection) */
.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; color: #374151; font-size: .88rem; font-weight: 600;
  cursor: pointer; user-select: none; transition: all .15s;
}
.chip:hover { border-color: var(--green); color: var(--green-700); }
.chip .chk {
  width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #cbd5e1;
  display: grid; place-items: center; flex: none; color: #fff;
}
.chip .chk svg { width: 12px; height: 12px; opacity: 0; }
.chip.selected { border-color: var(--green); background: var(--green-050); color: var(--green-700); }
.chip.selected .chk { background: var(--green); border-color: var(--green); }
.chip.selected .chk svg { opacity: 1; }
.chip-hint { font-size: .82rem; color: var(--muted); margin-top: 8px; }

/* Champ mots-clés → tags */
.kw-box { border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kw-box:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-050); }
.kw-box input { border: none; outline: none; flex: 1; min-width: 160px; font-size: .9rem; padding: 6px 2px; font-family: inherit; }
.kw-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--green-050); color: var(--green-700); border: 1px solid var(--green); border-radius: 7px; padding: 4px 10px; font-size: .82rem; font-weight: 600; }
.kw-tag button { border: none; background: none; color: var(--green-700); cursor: pointer; font-size: 1rem; line-height: 1; padding: 0; }
.kw-suggest { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.kw-suggest button { border: 1px dashed #cbd5e1; background: #fff; color: #6b7280; border-radius: 7px; padding: 4px 10px; font-size: .8rem; cursor: pointer; font-weight: 600; }
.kw-suggest button:hover { border-color: var(--green); color: var(--green-700); }

/* Canaux de notification (cartes cliquables) */
.channel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.channel-card { display: flex; align-items: flex-start; gap: 12px; border: 1.5px solid var(--line); border-radius: 12px; padding: 16px; cursor: pointer; transition: all .15s; position: relative; }
.channel-card:hover { border-color: var(--green); }
.channel-card.selected { border-color: var(--green); background: var(--green-050); }
.channel-card .ci { width: 38px; height: 38px; border-radius: 9px; background: var(--green-050); color: var(--green); display: grid; place-items: center; flex: none; }
.channel-card.selected .ci { background: var(--green); color: #fff; }
.channel-card b { display: block; font-size: .95rem; }
.channel-card span { font-size: .8rem; color: var(--muted); }
.channel-card .sw { position: absolute; top: 14px; right: 14px; width: 40px; height: 22px; border-radius: 999px; background: #d1d5db; transition: all .15s; }
.channel-card .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: all .15s; }
.channel-card.selected .sw { background: var(--green); }
.channel-card.selected .sw::after { left: 20px; }
.channel-badge { display: inline-block; font-size: .68rem; font-weight: 700; color: var(--orange); background: #fff4e6; border-radius: 5px; padding: 2px 7px; margin-top: 5px; }

/* OTP */
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 8px 0 4px; }
.otp-inputs input { width: 52px; height: 60px; text-align: center; font-size: 1.6rem; font-weight: 800; border: 1.5px solid var(--line); border-radius: 12px; color: var(--ink); }
.otp-inputs input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-050); }

/* Écran de succès */
.success-hero { text-align: center; padding: 26px 10px 6px; }
.success-hero .check { width: 84px; height: 84px; border-radius: 50%; background: var(--green-050); color: var(--green); display: grid; place-items: center; margin: 0 auto 18px; }
.success-hero .check svg { width: 44px; height: 44px; }
.success-hero h2 { font-size: 1.6rem; margin-bottom: 8px; }
.success-hero p { color: var(--muted); max-width: 460px; margin: 0 auto; }
.recap-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 10px; }
.recap-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: #374151; }
.recap-list li svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 2px; }

@media (max-width: 640px) {
  .channel-grid { grid-template-columns: 1fr; }
  .otp-inputs input { width: 44px; height: 52px; font-size: 1.3rem; }
}



/* ===== Sous-catégories (appels d'offres publics) ===== */
.subcat-head { max-width: 1180px; margin: 34px auto 6px; padding: 0 20px; }
.subcat-head h2 { font-size: 1.5rem; margin: 0 0 4px; }
.subcat-head p { color: var(--muted); margin: 0; }
.subcat-grid {
  max-width: 1180px; margin: 14px auto 8px; padding: 0 20px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.subcat-card {
  display: flex; flex-direction: column; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.subcat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green); }
.subcat-card b { font-size: .98rem; line-height: 1.3; }
.subcat-card span:last-child { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.sc-ic {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex: none;
}
.sc-ic svg { width: 22px; height: 22px; }
@media (max-width: 980px) { .subcat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .subcat-grid { grid-template-columns: 1fr; } }



/* ===================================================================
   PAGE ABONNEMENT (reproduction maquette "Projet digital 7")
   =================================================================== */
.ab-eyebrow { display:inline-block; color:var(--green); font-weight:800; letter-spacing:.14em; font-size:.8rem; margin-bottom:12px; }
.ab-hero { display:grid; grid-template-columns:1.05fr .95fr; gap:44px; align-items:center; }
.ab-hero-txt h1 { font-size:2.7rem; line-height:1.1; margin-bottom:16px; }
.ab-hero-txt .lead { color:#4b5563; font-size:1.06rem; max-width:520px; margin-bottom:26px; }

.ab-mini-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; max-width:560px; }
.ab-mini { display:flex; gap:12px; align-items:flex-start; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:14px 16px; box-shadow:var(--shadow-sm); }
.ab-mini-ic { width:40px; height:40px; border-radius:10px; background:var(--green-050); color:var(--green); display:grid; place-items:center; flex:none; }
.ab-mini-ic svg { width:20px; height:20px; }
.ab-mini b { display:block; font-size:.9rem; color:var(--ink); line-height:1.2; }
.ab-mini span { font-size:.8rem; color:var(--muted); }

/* Illustration WhatsApp + Email */
.ab-hero-visual { position:relative; min-height:360px; }
.ab-phone { background:#fff; border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow-lg); padding:16px; max-width:320px; margin-left:auto; }
.ab-phone-top { display:flex; align-items:center; gap:8px; font-weight:800; color:var(--ink); font-size:.92rem; padding-bottom:12px; border-bottom:1px solid var(--line); margin-bottom:14px; }
.ab-brand-dot { width:28px; height:28px; border-radius:50%; background:var(--green-050); color:var(--green); display:grid; place-items:center; flex:none; }
.ab-brand-dot svg { width:16px; height:16px; }
.ab-online { color:var(--green); font-size:.72rem; font-weight:700; background:var(--green-050); padding:2px 8px; border-radius:999px; }
.ab-msg { background:var(--green-050); border-radius:14px; padding:14px; }
.ab-msg-title { font-weight:800; color:var(--green-700); font-size:.86rem; margin-bottom:6px; }
.ab-msg b { display:block; font-size:.94rem; line-height:1.3; margin-bottom:8px; color:var(--ink); }
.ab-msg-meta { font-size:.78rem; color:#4b5563; margin-bottom:3px; }
.ab-msg-btn { display:inline-block; margin-top:10px; background:var(--green); color:#fff; font-weight:700; font-size:.78rem; padding:7px 14px; border-radius:8px; }
.ab-wa { position:absolute; top:-8px; left:0; width:52px; height:52px; border-radius:50%; background:var(--green,#0a7d3f); color:#fff; display:grid; place-items:center; box-shadow:var(--shadow); }
.ab-wa svg { width:28px; height:28px; }
.ab-mail { position:absolute; bottom:-6px; left:6px; max-width:280px; background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow); padding:14px 16px; }
.ab-mail-hd { display:flex; align-items:center; gap:8px; font-weight:800; font-size:.82rem; color:var(--ink); margin-bottom:8px; }
.ab-mail-ic { width:26px; height:26px; border-radius:8px; background:var(--blue-050,#e8f0fe); display:grid; place-items:center; }
.ab-mail b { display:block; font-size:.86rem; line-height:1.3; margin-bottom:6px; color:var(--ink); }
.ab-mail p { font-size:.78rem; color:var(--muted); margin-bottom:8px; }
.ab-mail-link { color:var(--green); font-weight:700; font-size:.78rem; }

/* Grille des formules */
.ab-plans { display:grid; grid-template-columns:repeat(4,1fr); gap:22px; align-items:stretch; }
.ab-plan { background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow-sm); position:relative; display:flex; flex-direction:column; }
.ab-plan--featured { border:2px solid var(--green); box-shadow:var(--shadow); }
.ab-ribbon { background:var(--green); color:#fff; font-weight:800; font-size:.72rem; letter-spacing:.04em; text-align:center; padding:8px 10px; border-radius:14px 14px 0 0; }
.ab-plan-body { padding:24px 22px; display:flex; flex-direction:column; flex:1; }
.ab-plan-hd { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:14px; gap:10px; }
.ab-plan-hd h3 { font-size:1.15rem; margin:0 0 6px; }
.ab-save { display:inline-block; background:var(--green-050); color:var(--green-700); font-weight:800; font-size:.72rem; padding:3px 10px; border-radius:999px; }
.ab-cal { width:42px; height:42px; border-radius:12px; background:var(--green-050); color:var(--green); display:grid; place-items:center; flex:none; }
.ab-cal svg { width:22px; height:22px; }
.ab-price { font-size:1.9rem; font-weight:800; color:var(--ink); margin-bottom:4px; line-height:1.1; }
.ab-price small { display:inline; font-size:.82rem; font-weight:600; color:var(--muted); }
.ab-percv { font-size:.82rem; font-weight:700; color:var(--green-700); margin-bottom:18px; }
.ab-perks { list-style:none; margin:0 0 22px; padding:0; display:flex; flex-direction:column; gap:12px; flex:1; }
.ab-perks li { display:flex; align-items:flex-start; gap:10px; font-size:.9rem; color:#374151; }
.ab-check { width:20px; height:20px; border-radius:50%; background:var(--green-050); color:var(--green); display:grid; place-items:center; flex:none; margin-top:1px; }
.ab-check svg { width:12px; height:12px; }
.ab-plan .btn-block { margin-top:auto; }

@media (max-width:1024px) {
  .ab-hero { grid-template-columns:1fr; }
  .ab-hero-visual { margin-top:12px; }
  .ab-plans { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:560px) {
  .ab-hero-txt h1 { font-size:2rem; }
  .ab-mini-grid { grid-template-columns:1fr; }
  .ab-plans { grid-template-columns:1fr; }
}



/* ===== Sélecteur de profil (inscription étape 1 fusionnée) ===== */
.psel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.psel-card {
  position: relative; text-align: left; cursor: pointer; background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 16px 14px; display: flex; flex-direction: column; gap: 4px;
  transition: border-color .15s, box-shadow .15s, background .15s; font: inherit;
}
.psel-card:hover { border-color: var(--green); }
.psel-card.selected { border-color: var(--green); background: var(--green-050); box-shadow: 0 0 0 3px rgba(26,127,90,.12); }
.psel-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--green-050); color: var(--green); margin-bottom: 4px; }
.psel-ic svg { width: 22px; height: 22px; }
.psel-card b { font-size: .98rem; color: var(--ink, #111827); }
.psel-desc { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.psel-check { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; display: none; place-items: center; }
.psel-check svg { width: 12px; height: 12px; }
.psel-card.selected .psel-check { display: grid; }
@media (max-width: 720px) { .psel-grid { grid-template-columns: 1fr; } }



/* ===== Page de connexion moderne (split design) ===== */
.login-page { 
  margin: 0; 
  padding: 0; 
  min-height: 100vh; 
  background: #fff; 
}

.login-split {
  display: flex;
  min-height: 100vh;
  flex-wrap: wrap;
}

/* Hero Section (Left) - 50% */
.login-hero {
  flex: 1 1 50%;
  min-width: 320px;
  background: linear-gradient(135deg, #0d3b2e 0%, #1a5c44 50%, #1a7f5a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 60px 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 120%;
  height: 200%;
  background: radial-gradient(circle, rgba(139,195,74,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.login-hero__content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  width: 100%;
}

.login-hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #fff;
}

.login-hero__brand .brand__mark {
  font-size: 1.6rem;
}

.login-hero__brand .brand__text {
  color: #fff;
  font-weight: 400;
}

.login-hero__brand b {
  font-weight: 800;
  color: #fff;
}

.login-hero__tagline {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}

.login-hero__title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 24px 0;
  color: #fff;
}

.login-hero__title--accent {
  color: #8BC34A;
}

.login-hero__subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin-bottom: 48px;
}

.login-hero__features {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.login-hero__feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.login-hero__feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(139,195,74,0.2);
  display: grid;
  place-items: center;
  color: #8BC34A;
}

.login-hero__feature-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.login-hero__feature-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

.login-hero__map {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 500px;
  opacity: 0.4;
  pointer-events: none;
}

/* Form Section (Right) - 50% */
.login-form-wrap {
  flex: 1 1 50%;
  min-width: 320px;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  position: relative;
}

.login-form {
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.login-form__header {
  margin-bottom: 32px;
}

.login-form__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 1.3rem;
}

.login-form__brand .brand__mark {
  font-size: 1.5rem;
}

.login-form__brand .brand__text {
  color: var(--ink);
  font-weight: 400;
}

.login-form__brand b {
  font-weight: 800;
  color: var(--ink);
}

.login-form__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px 0;
}

.login-form__subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 32px;
}

.field__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--muted);
  pointer-events: none;
  z-index: 2;
}

.input-with-icon .input {
  padding-left: 48px;
  padding-right: 48px;
}

.input-toggle {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: color 0.2s;
  z-index: 2;
}

.input-toggle:hover {
  color: var(--green);
}

.login-form__link {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.login-form__link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.login-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}

.login-form__footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--muted);
}

.notice--danger {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(239,68,68,0.05);
}

/* Trust Badges */
.login-trust {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  max-width: 900px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.login-trust__badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-trust__badge svg {
  color: var(--green);
  flex-shrink: 0;
}

.login-trust__badge-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.login-trust__badge-desc {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .login-hero {
    padding: 50px 40px;
  }
  
  .login-hero__title {
    font-size: 2.8rem;
  }
  
  .login-hero__map {
    right: -150px;
    opacity: 0.25;
  }
}

@media (max-width: 768px) {
  .login-split {
    flex-direction: column;
  }
  
  .login-hero {
    min-height: auto;
    padding: 40px 30px;
  }
  
  .login-hero__title {
    font-size: 2.2rem;
  }
  
  .login-hero__map {
    display: none;
  }
  
  .login-form-wrap {
    padding: 40px 20px;
  }
  
  .login-form {
    padding: 32px 24px;
  }
  
  .login-trust {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .login-hero__title {
    font-size: 1.8rem;
  }
  
  .login-hero__features {
    gap: 20px;
  }
  
  .login-hero__feature-icon {
    width: 40px;
    height: 40px;
  }
  
  .login-form {
    padding: 28px 20px;
  }
  
  .login-form__title {
    font-size: 1.6rem;
  }
}



/* ===== Alias boutons (convention BEM --) + utilitaires ===== */
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-700); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--outline { background: #fff; color: var(--green); border-color: var(--green); }
.btn--outline:hover { background: var(--green-050); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn--lg { padding: 15px 28px; font-size: 1.02rem; }
.btn--sm { padding: 9px 16px; font-size: .875rem; }
.btn--block { width: 100%; }

.hidden { display: none !important; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mt-1 { margin-top: 8px; }
.text-center { text-align: center; }

/* ===== Espace abonné : barre + layout tableau de bord ===== */
.nav {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__geo { font-weight: 600; color: var(--ink); font-size: .92rem; }

.dash {
  display: grid; grid-template-columns: 250px 1fr; gap: 28px;
  max-width: 1200px; margin: 0 auto; padding: 28px 20px 60px;
  align-items: start;
}
.dash__side {
  display: flex; flex-direction: column; gap: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; position: sticky; top: 84px;
}
.dash__side a {
  display: block; padding: 11px 14px; border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem;
  transition: background .15s, color .15s;
}
.dash__side a:hover { background: var(--green-050); color: var(--green); }
.dash__side a.active { background: var(--green); color: #fff; }
.dash__main { min-width: 0; }

.kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px;
}
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; display: flex; flex-direction: column; gap: 6px;
}
.kpi b { font-size: 1.8rem; font-weight: 800; color: var(--ink); line-height: 1; }
.kpi span { font-size: .85rem; color: var(--muted); }

/* ---- Bouton Publier dans la nav ---- */
.main-nav .nav-publier {
  color: #d97706 !important;
  font-weight: 700;
  border: 1.5px solid #d97706;
  border-radius: 20px;
  padding: 5px 13px !important;
  font-size: .82rem;
  white-space: nowrap;
  line-height: 1.3;
  transition: background .18s, color .18s;
}
.main-nav .nav-publier:hover,
.main-nav .nav-publier.active {
  background: #d97706;
  color: #fff !important;
  border-color: #d97706;
}

.config-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}

@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; gap: 18px; }
  .dash__side {
    position: static; flex-direction: row; flex-wrap: wrap; gap: 6px;
    overflow-x: auto;
  }
  .dash__side a { flex: 0 0 auto; padding: 9px 12px; font-size: .88rem; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi b { font-size: 1.4rem; }
  .grid-2 { grid-template-columns: 1fr !important; }
}



/* ============================================================
   Optimisations Mobile Safari iOS (iPhone)
   ============================================================ */

/* Corrections viewport et zoom Safari iOS */
@media screen and (max-width: 767px) {
  body {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  
  /* Fix débordement horizontal */
  html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }
  
  /* Container mobile plus serré */
  .container {
    padding: 0 16px;
  }
  
  /* Hero mobile optimisé */
  .hero {
    overflow: hidden;
  }
  
  .hero-bg {
    background-position: center center;
    background-size: cover;
    opacity: 0.25;
    /* Fix pour Safari iOS - forcer le reflow */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
  
  .hero-inner {
    padding: 40px 0 50px;
    gap: 30px;
  }
  
  .hero h1 {
    font-size: 1.85rem !important;
    line-height: 1.2;
    margin-bottom: 14px;
  }
  
  .hero .lead {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
  
  /* Channels mobile */
  .hero-channels {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 20px 0 16px;
  }
  
  .channel-card {
    padding: 12px 14px;
  }
  
  .channel-card b {
    font-size: 0.9rem;
  }
  
  .channel-card span {
    font-size: 0.78rem;
  }
  
  /* Hero mini mobile */
  .hero-mini {
    gap: 12px;
  }
  
  .hero-mini div {
    font-size: 0.8rem;
  }
  
  .hero-mini b {
    font-size: 0.82rem;
  }
  
  .hero-mini small {
    font-size: 0.72rem;
  }
  
  /* Hero visual mobile optimisé */
  .hero-visual {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 280px !important;
    transform: scale(0.75) !important;
    transform-origin: top center !important;
    margin: 16px auto 0 !important;
  }
  
  /* Features mobile */
  .features-band {
    padding: 24px 20px;
  }
  
  .feature-grid {
    gap: 20px;
  }
  
  /* Section mobile */
  .section {
    padding: 40px 0;
  }
  
  .section-head {
    margin-bottom: 30px;
  }
  
  .section-head h2 {
    font-size: 1.6rem;
  }
  
  /* Footer mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  /* Boutons mobile - zones tactiles optimales */
  .btn {
    min-height: 44px;
    padding: 12px 20px;
    font-size: 0.92rem;
  }
  
  .btn-lg {
    min-height: 48px;
    padding: 14px 24px;
  }
  
  /* Header mobile */
  .site-header {
    position: -webkit-sticky;
    position: sticky;
  }
  
  .header-inner {
    padding: 12px 0;
  }
  
  .brand-logo {
    font-size: 1.1rem;
  }
  
  /* Navigation mobile */
  .main-nav {
    /* Fix Safari iOS scroll */
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
  }
  
  /* CTA Banner mobile */
  .cta-banner {
    padding: 28px 24px;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .cta-banner h2 {
    font-size: 1.4rem;
  }
  
  .cta-actions {
    min-width: 100%;
  }
}

/* Corrections spécifiques iPhone SE et petits écrans (375px et moins) */
@media screen and (max-width: 375px) {
  .hero h1 {
    font-size: 1.65rem !important;
  }
  
  .hero .lead {
    font-size: 0.95rem;
  }
  
  .container {
    padding: 0 14px;
  }
  
  .hero-inner {
    padding: 32px 0 40px;
  }
  
  .hero-visual {
    transform: scale(0.65) !important;
    min-height: 240px !important;
  }
  
  .section-head h2 {
    font-size: 1.4rem;
  }
  
  .btn {
    font-size: 0.88rem;
    padding: 10px 16px;
  }
}

/* Corrections Safari iOS - Smooth scrolling et performance */
@supports (-webkit-touch-callout: none) {
  /* Fix pour Safari iOS uniquement */
  body {
    /* Améliorer le scroll sur iOS */
    -webkit-overflow-scrolling: touch;
  }
  
  /* Fix pour les images de fond sur iOS */
  .hero-bg {
    /* Forcer l'accélération matérielle */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
  }
  
  /* Fix pour le sticky header sur iOS */
  .site-header {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}

/* Amélioration du contraste et lisibilité mobile */
@media screen and (max-width: 767px) {
  /* Augmenter légèrement le contraste du texte sur fond d'image */
  .hero {
    background: linear-gradient(105deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 40%, rgba(233,246,240,.5) 72%, rgba(233,246,240,.25) 100%);
  }
  
  /* Stats grid mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .stat-item b {
    font-size: 1.6rem;
  }
  
  .stat-item span {
    font-size: 0.85rem;
  }
  
  /* Trust grid mobile */
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
