:root {
  --green: #2a7a4b;
  --green-light: #35a063;
  --green-pale: #e6f4ec;
  --navy: #1b2d4f;
  --navy-light: #253d69;
  --navy-pale: #e8ecf3;
  --dark: #1b2d4f;
  --text: #1a2035;
  --muted: #5a6580;
  --border: #d0d8e8;
  --bg: #f5f7fb;
  --white: #ffffff;
  --radius: 8px;
  /* ── Tokens sémantiques additionnels (valeurs jusque-là codées en dur) ── */
  --danger: #c0392b;
  --danger-pale: #fff5f5;
  --danger-border: #fadbd8;
  --gold: #fbbf24;
  --shadow-sm: 0 2px 8px rgba(27,45,79,.08);
  --shadow-md: 0 8px 32px rgba(27,45,79,.18);
  --focus-ring: #2a7a4b;            /* anneau de focus sur fond clair */
  --focus-ring-light: #6effa8;      /* anneau de focus sur fond navy */
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--white); font-size: 16px; line-height: 1.7; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: 'Playfair Display', serif; color: var(--dark); line-height: 1.2; }
h2 { font-size: 2rem; margin-bottom: 14px; }
p { color: var(--muted); }

/* ══ ACCESSIBILITÉ : focus clavier visible (WCAG 2.4.7) ══════════════
   N'apparaît qu'à la navigation clavier (:focus-visible), pas au clic
   souris — donc aucun impact visuel pour les utilisateurs à la souris. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Sur le fond navy du hero, on utilise l'anneau clair pour rester visible */
.hero a:focus-visible,
.btn-outline:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--focus-ring-light);
}
/* Pour les champs, l'anneau colle au bord (pas d'offset) */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-offset: 0;
}

/* NAV */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 5%; height: 64px; }
.site-logo img { height: 48px; width: auto; }
.main-nav ul { display: flex; align-items: center; gap: 32px; }
.main-nav a { font-size: 0.9rem; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.main-nav a:hover { color: var(--navy); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-cta { background: var(--navy); color: white !important; padding: 8px 20px; border-radius: var(--radius); font-size: 0.88rem !important; }
.nav-cta:hover { background: var(--navy-light) !important; }
.nav-lang { display: flex; gap: 6px; }
.lang-btn { padding: 3px 10px; border-radius: 4px; border: 1px solid var(--border); background: transparent; font-size: 0.78rem; font-weight: 500; cursor: pointer; color: var(--muted); transition: all 0.2s; font-family: 'DM Sans', sans-serif; }
.lang-btn.active { background: var(--navy); color: white; border-color: var(--navy); }

/* ── COMPTE UTILISATEUR — dropdown nav ──────────────────── */
.nav-account { position: relative; }

.nav-account-btn { display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; gap: 8px; background: none; border: 1px solid #d0d8e8; border-radius: 22px; padding: 4px 12px 4px 4px; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 0.84rem; font-weight: 500; color: #1a2035; transition: border-color .2s, background .2s, box-shadow .2s; line-height: 1; }
.nav-account-btn:hover { border-color: #1b2d4f; background: #e8ecf3; }
.nav-account-btn[aria-expanded="true"] { border-color: #1b2d4f; background: #e8ecf3; box-shadow: 0 0 0 3px rgba(27,45,79,.1); }
.nav-account-btn[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-chevron { transition: transform .2s; opacity: .5; }
.nav-avatar { width: 28px; height: 28px; border-radius: 50%; background: #1b2d4f; color: #fff; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; font-size: .75rem; font-weight: 700; flex-shrink: 0; line-height: 1; }
.nav-account-name { max-width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Dropdown panel */
.nav-dropdown { position: absolute; top: calc(100% + 10px); right: 0; width: 270px; background: #fff; border: 1px solid #d0d8e8; border-radius: 14px; box-shadow: 0 8px 32px rgba(27,45,79,.18); z-index: 9999; opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right; transition: opacity .17s ease, transform .17s ease, visibility .17s; overflow: hidden; }
.nav-account-btn[aria-expanded="true"] + .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

/* Header utilisateur */
.ndd-head { display: -webkit-flex !important; display: flex !important; -webkit-align-items: center; align-items: center; gap: 10px; padding: 14px 14px 13px; background: #e8ecf3; }
.ndd-head-avatar { width: 38px; height: 38px; border-radius: 50%; background: #1b2d4f; color: #fff; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; font-size: .9rem; font-weight: 700; font-family: 'Playfair Display', serif; flex-shrink: 0; line-height: 1; }
.ndd-head-info { flex: 1; min-width: 0; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; gap: 1px; }
.ndd-head-name { display: block; font-size: .83rem; font-weight: 600; color: #1b2d4f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; font-family: 'DM Sans', sans-serif; }
.ndd-head-email { display: block; font-size: .7rem; color: #5a6580; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; font-style: normal; }
.ndd-head-badge { flex-shrink: 0; font-size: .63rem; font-weight: 700; padding: 3px 8px; border-radius: 10px; text-transform: uppercase; letter-spacing: .04em; line-height: 1.4; white-space: nowrap; }
.ndd-head-badge.is-premium { background: #1b2d4f; color: #fff; }
.ndd-head-badge.is-free { background: #e6f4ec; color: #2a7a4b; }

/* Séparateur */
.ndd-sep { height: 1px; background: #d0d8e8; }

/* Liens */
.ndd-nav { padding: 5px 0; }
.ndd-nav--bottom { padding: 4px 0; }
.ndd-item { display: -webkit-flex !important; display: flex !important; -webkit-align-items: center; align-items: center; gap: 10px; padding: 8px 14px; font-size: .85rem; font-weight: 500; color: #1a2035; text-decoration: none; transition: background .13s; white-space: nowrap; line-height: 1; }
.ndd-item:hover { background: #f5f7fb; color: #1b2d4f; }

.ndd-icon { width: 32px; height: 32px; border-radius: 8px; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; flex-shrink: 0; border: 1px solid #d0d8e8; background: #f5f7fb; }
.ndd-icon svg { display: block; stroke: #1b2d4f; fill: none; }
.ndd-item:hover .ndd-icon { background: #d0d8e8; }

.ndd-label { line-height: 1; }

/* Variantes couleur */
.ndd-item--upgrade { color: #2a7a4b !important; }
.ndd-item--upgrade .ndd-icon { background: #e6f4ec; border-color: #e6f4ec; }
.ndd-item--upgrade .ndd-icon svg { stroke: #2a7a4b; }
.ndd-item--upgrade:hover { background: #e6f4ec !important; }

.ndd-item--logout { color: #c0392b !important; }
.ndd-item--logout .ndd-icon { background: #fff5f5; border-color: #fadbd8; }
.ndd-item--logout .ndd-icon svg { stroke: #c0392b; }
.ndd-item--logout:hover { background: #fff5f5 !important; }

/* HERO */
.hero { background: var(--dark); padding: 100px 5% 80px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 50%, rgba(42,122,75,0.3) 0%, transparent 65%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 1100px; margin: 0 auto; position: relative; }
.hero-tag { display: inline-block; background: rgba(42,122,75,0.15); color: #6effa8; border: 1px solid rgba(42,122,75,0.35); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; padding: 4px 12px; border-radius: 20px; margin-bottom: 20px; text-transform: uppercase; }
.hero h1 { font-size: 2.8rem; line-height: 1.2; color: white; margin-bottom: 20px; }
.hero h1 em { color: #6effa8; font-style: normal; }
.hero .hero-desc { color: rgba(255,255,255,0.65); font-size: 1.05rem; margin-bottom: 32px; font-weight: 300; }
/* Pagination (serveur + AJAX filtrée) */
#at-pagination { gap: 6px; flex-wrap: wrap; }
#at-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); color: var(--navy); font-size: .88rem; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
#at-pagination a.page-numbers:hover { background: var(--bg); border-color: var(--navy); }
#at-pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
#at-pagination .page-numbers.dots { border: none; background: none; min-width: 20px; cursor: default; }

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary { background: var(--green); color: white; padding: 13px 28px; border-radius: var(--radius); font-weight: 500; font-size: 0.95rem; transition: background 0.2s; display: inline-block; }
.btn-primary:hover { background: var(--green-light); }
.btn-outline { border: 1px solid rgba(255,255,255,0.25); color: white; padding: 13px 28px; border-radius: var(--radius); font-weight: 500; font-size: 0.95rem; transition: border-color 0.2s; display: inline-block; }
.btn-outline:hover { border-color: rgba(255,255,255,0.6); }
.hero-countries { display: flex; flex-direction: column; gap: 14px; }
.country-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; color: inherit; text-decoration: none; }
.country-card-link { transition: background .2s, border-color .2s, transform .2s; }
.country-card-link:hover { background: rgba(255,255,255,.09); border-color: rgba(110,255,168,.42); transform: translateY(-2px); }
.country-card-link:focus-visible { outline: 3px solid #6effa8; outline-offset: 3px; }
.country-info { display: flex; align-items: center; gap: 14px; }
.flag { font-size: 1.6rem; }
.country-name { color: white; font-weight: 500; font-size: 0.95rem; }
.country-count { color: rgba(255,255,255,0.45); font-size: 0.8rem; }
.badge { background: rgba(42,122,75,0.3); color: #6effa8; font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.05em; }
.badge.new { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.4); }

/* STATS */
.stats-bar { background: var(--navy-pale); border-bottom: 1px solid var(--border); padding: 20px 5%; display: flex; justify-content: center; gap: 60px; }
.stat { text-align: center; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--navy); font-weight: 600; }
.stat-label { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

/* SECTIONS */
section { padding: 80px 5%; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.section-sub { color: var(--muted); font-size: 1rem; max-width: 520px; }

/* ACCUEIL — PARCOURS ET COMPARATIF D'OFFRES */
.home-value-section { padding-top: 64px; padding-bottom: 64px; background: var(--white); border-bottom: 1px solid var(--border); }
.home-value-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 48px; align-items: end; margin-bottom: 32px; }
.home-value-heading h2 { margin: 0; max-width: 680px; }
.home-value-heading > p { margin: 0; color: var(--muted); font-size: .96rem; }
.home-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 22px; padding: 0; list-style: none; }
.home-step { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.home-step-number { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: var(--green-pale); color: var(--green); font-size: .8rem; font-weight: 700; }
.home-step h3 { margin: 1px 0 5px; font-family: 'DM Sans', sans-serif; font-size: .92rem; font-weight: 600; color: var(--navy); }
.home-step p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.home-offer { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.home-offer-plan { position: relative; padding: 26px; border-radius: 12px; }
.home-offer-free { border: 1px solid var(--border); background: var(--white); }
.home-offer-premium { border: 1px solid var(--navy); background: var(--navy); color: white; }
.home-offer-badge { position: absolute; top: -11px; right: 18px; padding: 5px 11px; border-radius: 14px; background: var(--green); color: white; font-size: .68rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.home-offer-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.home-offer-label { display: block; margin-bottom: 5px; color: var(--green); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.home-offer-premium .home-offer-label { color: #6effa8; }
.home-offer-plan h3 { margin: 0; font-family: 'DM Sans', sans-serif; font-size: 1.05rem; font-weight: 600; }
.home-offer-premium h3 { color: white; }
.home-offer-price { color: var(--navy); font-size: 1.05rem; font-weight: 700; text-align: right; white-space: nowrap; }
.home-offer-premium .home-offer-price { color: white; }
.home-offer-price small { display: block; margin-top: 2px; color: rgba(255,255,255,.58); font-size: .68rem; font-weight: 400; }
.home-offer-plan ul { display: grid; gap: 7px; margin: 20px 0; padding: 0; list-style: none; }
.home-offer-plan li { position: relative; padding-left: 21px; color: var(--text); font-size: .83rem; }
.home-offer-plan li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.home-offer-premium li { color: rgba(255,255,255,.78); }
.home-offer-premium li::before { color: #6effa8; }
.home-offer-link, .home-offer-cta { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; font-weight: 600; }
.home-offer-link { color: var(--green); }
.home-offer-cta { padding: 10px 16px; border-radius: 8px; background: var(--green); color: white; }
.home-offer-cta:hover { background: var(--green-light); color: white; }
.home-offer-note { margin: 16px 0 0; color: var(--muted); font-size: .76rem; text-align: center; }
.home-offer-note a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* TENDERS */
.tenders-section { background: var(--bg); }
.filters { display: flex; gap: 10px; margin: 32px 0 24px; flex-wrap: wrap; }
.filter-btn { padding: 7px 18px; border-radius: 20px; border: 1px solid var(--border); background: white; font-size: 0.82rem; font-weight: 500; cursor: pointer; color: var(--muted); transition: all 0.2s; font-family: 'DM Sans', sans-serif; }
.filter-btn.active, .filter-btn:hover { background: var(--navy); color: white; border-color: var(--navy); }
.tenders-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tender-card { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 22px; position: relative; transition: box-shadow 0.2s; }
.tender-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.tender-badge { position: absolute; top: 16px; right: 16px; font-size: 0.68rem; font-weight: 600; padding: 3px 9px; border-radius: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.tender-badge.free { background: var(--green-pale); color: var(--green); }
.tender-badge.premium { background: var(--navy-pale); color: var(--navy); }
.tender-card-sponsored { border-color: #f59e0b; box-shadow: 0 0 0 1px #f59e0b; }
.tender-badge-sponsored { position: absolute; top: 16px; left: 16px; font-size: 0.68rem; font-weight: 700; padding: 3px 9px; border-radius: 12px; background: #fef3c7; color: #92400e; letter-spacing: 0.03em; }
.tender-country { font-size: 0.75rem; color: var(--muted); margin-bottom: 10px; }
.tender-title { font-weight: 500; font-size: 0.95rem; color: var(--dark); margin-bottom: 12px; line-height: 1.45; font-family: 'DM Sans', sans-serif; }
.tender-meta { display: flex; gap: 14px; flex-wrap: wrap; }
.tender-meta span { font-size: 0.75rem; color: var(--muted); }
.tender-footer { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.deadline { font-size: 0.78rem; color: #c0392b; font-weight: 500; }
.btn-sm { font-size: 0.78rem; font-weight: 500; padding: 6px 14px; border-radius: 6px; transition: all 0.2s; display: inline-block; }
.btn-green { background: var(--green); color: white; }
.btn-green:hover { background: var(--green-light); }
.btn-lock { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.lock-overlay { filter: blur(4px); pointer-events: none; user-select: none; }
.tender-title.lock-overlay { filter: none; -webkit-mask-image: linear-gradient(to right, black 45%, transparent 80%); mask-image: linear-gradient(to right, black 45%, transparent 80%); }
.premium-banner { margin-top: 14px; padding: 10px 14px; background: var(--navy-pale); border: 1px solid var(--border); border-radius: 6px; font-size: 0.8rem; color: var(--navy); }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual { background: var(--navy-pale); border-radius: 12px; padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.about-map-placeholder { background: var(--navy); border-radius: 8px; height: 180px; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; color: white; font-size: 1.1rem; }
.about-countries { display: flex; gap: 10px; flex-wrap: wrap; }
.country-pill { background: white; border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px; font-size: 0.82rem; }
.about-features { display: flex; flex-direction: column; gap: 24px; margin-top: 28px; }
.feature { display: flex; gap: 16px; }
.feature-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--navy-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-icon svg { width: 18px; height: 18px; stroke: var(--navy); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h4 { font-size: 0.95rem; font-weight: 500; color: var(--dark); margin-bottom: 4px; font-family: 'DM Sans', sans-serif; }
.feature p { font-size: 0.85rem; color: var(--muted); }

/* PRICING */
.pricing-section { background: var(--dark); }
.pricing-section h2 { color: white; }
.pricing-section .section-tag { color: #6effa8; }
.pricing-section .section-sub { color: rgba(255,255,255,0.5); }
.pricing-toggle { display: flex; align-items: center; gap: 14px; margin: 28px 0; font-size: 0.88rem; color: rgba(255,255,255,0.6); }
.toggle-track { width: 44px; height: 24px; background: var(--green); border-radius: 12px; position: relative; cursor: pointer; }
.toggle-thumb { width: 18px; height: 18px; background: white; border-radius: 50%; position: absolute; top: 3px; right: 3px; }
.save-badge { background: var(--green); color: white; font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 10px; text-transform: uppercase; }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan-card { border-radius: 12px; padding: 32px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); display: flex; flex-direction: column; }
.plan-card.featured { background: var(--green); border-color: var(--green-light); position: relative; overflow: hidden; }
.plan-card.featured::before { content: 'Plus populaire'; position: absolute; top: 14px; right: -24px; background: var(--navy); color: white; font-size: 0.68rem; font-weight: 600; padding: 3px 40px; transform: rotate(30deg); letter-spacing: 0.05em; text-transform: uppercase; }
.plan-name { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.plan-card.featured .plan-name { color: rgba(255,255,255,0.85); }
.plan-amount { font-family: 'Playfair Display', serif; font-size: 2.4rem; color: white; font-weight: 600; }
.plan-currency { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-left: 4px; }
.plan-period { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-bottom: 24px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.plan-features li { font-size: 0.85rem; color: rgba(255,255,255,0.7); display: flex; gap: 10px; align-items: flex-start; }
.plan-features li::before { content: '✓'; color: var(--green-light); font-weight: 600; flex-shrink: 0; }
.plan-card.featured .plan-features li { color: white; }
.plan-card.featured .plan-features li::before { color: white; }
.btn-plan { display: block; text-align: center; padding: 12px; border-radius: var(--radius); font-weight: 500; font-size: 0.9rem; transition: all 0.2s; border: 1px solid rgba(255,255,255,0.2); color: white; margin-top: auto; background: transparent; cursor: pointer; }
.btn-plan:hover { background: rgba(255,255,255,0.1); }
.plan-card.featured .btn-plan { background: white; color: var(--navy); border-color: white; }
.plan-card.featured .btn-plan:hover { background: var(--navy-pale); }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-details { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.contact-item { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--text); }
.contact-item-icon { width: 36px; height: 36px; background: var(--navy-pale); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item-icon svg { width: 16px; height: 16px; stroke: var(--navy); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
label { font-size: 0.82rem; font-weight: 500; color: var(--text); }
input, textarea, select { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--text); outline: none; transition: border-color 0.2s; background: white; width: 100%; }
input:focus, textarea:focus, select:focus { border-color: var(--navy); }
textarea { resize: vertical; min-height: 100px; }
.btn-submit { background: var(--navy); color: white; border: none; padding: 13px 28px; border-radius: var(--radius); font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: background 0.2s; }
.btn-submit:hover { background: var(--navy-light); }

/* FOOTER */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.5); padding: 48px 5% 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1100px; margin: 0 auto 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-logo-img { height: 44px; width: auto; filter: brightness(0) invert(1); }
.footer-desc { font-size: 0.82rem; line-height: 1.7; color: rgba(255,255,255,0.45); }
.footer-col h5 { color: white; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; font-family: 'DM Sans', sans-serif; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { color: rgba(255,255,255,0.45); font-size: 0.83rem; transition: color 0.2s; }
.footer-col ul a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px; max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; }

/* SINGLE TENDER */
.single-tender-wrap { max-width: 860px; margin: 60px auto; padding: 0 5%; }
.tender-header { margin-bottom: 32px; }
.tender-header .tender-badge { position: static; display: inline-block; margin-bottom: 12px; }
.tender-header h1 { font-size: 1.8rem; color: var(--dark); margin-bottom: 16px; }
.tender-meta-bar { display: flex; gap: 20px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.tender-meta-bar span { font-size: 0.82rem; color: var(--muted); }
.tender-content p { margin-bottom: 16px; color: var(--text); }
.premium-wall { background: var(--navy-pale); border: 1px solid var(--border); border-radius: 12px; padding: 40px; text-align: center; margin-top: 32px; }

/* Contenu avis — couleur uniforme */
.at-avis p,
.at-avis h1, .at-avis h2, .at-avis h3, .at-avis h4, .at-avis h5, .at-avis h6,
.at-avis li, .at-avis td, .at-avis th, .at-avis span, .at-avis strong, .at-avis b { color: var(--dark); }
.at-avis h1, .at-avis h2, .at-avis h3 { font-size: 1rem; font-family: 'DM Sans', sans-serif; font-weight: 700; margin: 20px 0 8px; }
.at-avis p { margin-bottom: 12px; }
.at-avis ul, .at-avis ol { padding-left: 20px; margin-bottom: 12px; }
.at-avis li { margin-bottom: 4px; }
.at-avis p:empty { display: none; }
.at-avis p > br:only-child { display: none; }
.premium-wall h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.3rem; }
.premium-wall p { margin-bottom: 24px; }
.premium-wall .btn-primary { background: var(--navy); }

/* ══════════════════════════════════════════════════
   FILTRES APPELS D'OFFRES
══════════════════════════════════════════════════ */
.at-filters-wrap { display: flex; flex-direction: column; gap: 0; margin-top: 28px; background: white; border: 1px solid var(--border); border-radius: 12px; padding: 6px 20px; }
.at-mobile-filter-toggle { display: none; }

.at-active-filters { align-items: center; gap: 10px; margin-top: 12px; }
.at-active-filters:not([hidden]) { display: flex; }
.at-active-filters-label { flex-shrink: 0; color: var(--muted); font-size: .75rem; font-weight: 600; }
.at-active-filter-list { display: flex; flex-wrap: wrap; gap: 7px; }
.at-active-filter-chip { padding: 5px 10px; border: 1px solid #b9d9c5; border-radius: 16px; background: var(--green-pale); color: var(--green); font-family: 'DM Sans', sans-serif; font-size: .74rem; font-weight: 600; cursor: pointer; }
.at-active-filter-chip:hover { border-color: var(--green); background: #dff1e6; }

/* Barre de recherche + tri */
.at-search-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--border); }
.at-search-box { flex: 1; min-width: 180px; max-width: 480px; display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 9px 14px; transition: border-color .2s; }
.at-search-box:focus-within { border-color: var(--navy); }
.at-search-box svg { flex-shrink: 0; stroke: var(--muted); }
.at-search-box input { border: none; outline: none; font-family: 'DM Sans', sans-serif; font-size: .88rem; color: var(--text); background: transparent; width: 100%; }
.at-search-box input::placeholder { color: var(--muted); }
.at-sort-select { flex-shrink: 0; width: 190px; height: 38px; padding: 0 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: .82rem; color: var(--navy); cursor: pointer; outline: none; }

.at-reset-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 8px; background: white; font-family: 'DM Sans', sans-serif; font-size: .8rem; color: var(--muted); cursor: pointer; transition: all .2s; }
.at-reset-btn:hover { border-color: #c0392b; color: #c0392b; background: #fff5f5; }
.at-reset-btn svg { stroke: currentColor; }

/* Rangées de filtres */
.at-filter-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 11px 0; border-bottom: 1px solid var(--border); }
.at-filter-row:last-child { border-bottom: none; }
.at-filter-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); flex-shrink: 0; width: 148px; }
.at-filter-pills { display: flex; gap: 7px; flex-wrap: wrap; flex: 1; }
.at-filter-row .at-sort-select { min-width: 220px; background: var(--bg); }

/* Compteur résultats */
#at-results-count { font-size: .83rem; color: var(--muted); }


/* Urgence deadline */
.deadline-urgent { color: #c0392b !important; font-weight: 600; }
.deadline-soon   { color: #e67e22 !important; }
.deadline-expired { color: #aaa !important; text-decoration: line-through; }
.dl-badge { display: inline-block; font-size: .65rem; font-weight: 700; padding: 1px 6px; border-radius: 8px; margin-left: 5px; vertical-align: middle; }
.dl-urgent { background: #fff0ee; color: #c0392b; }
.dl-soon   { background: #fef3e2; color: #e67e22; }

/* Organisme */
.tender-organisme { display: flex; align-items: center; gap: 5px; font-size: .75rem; color: var(--muted); margin: 6px 0 10px; font-style: italic; }
.tender-organisme svg { stroke: var(--muted); flex-shrink: 0; }

/* Titre cliquable */
.tender-title-link { text-decoration: none; color: inherit; display: block; }
.tender-title-link:hover .tender-title { color: var(--navy); }

/* No results */
.at-no-results { padding: 60px 0; color: var(--muted); grid-column: span 3; text-align: center; font-size: .95rem; }

/* ══════════════════════════════════════════════════
   DASHBOARD — MES ALERTES
══════════════════════════════════════════════════ */

/* Layout principal */
.at-dashboard { padding: 48px 5% 80px; background: var(--bg); min-height: 70vh; }
.at-dashboard-inner { display: grid; grid-template-columns: 260px 1fr; gap: 32px; max-width: 1100px; margin: 0 auto; align-items: start; }

/* Sidebar */
.at-dashboard-sidebar { background: white; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; position: sticky; top: 80px; }
.at-user-card { display: flex; align-items: center; gap: 14px; padding: 24px 20px 20px; border-bottom: 1px solid var(--border); }
.at-user-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: white; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 600; flex-shrink: 0; }
.at-user-info { min-width: 0; }
.at-user-name { font-weight: 600; font-size: 0.9rem; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-user-plan { font-size: 0.72rem; font-weight: 600; margin-top: 3px; padding: 2px 8px; border-radius: 10px; display: inline-block; }
.at-user-plan.premium { background: var(--navy-pale); color: var(--navy); }
.at-user-plan.free { background: var(--green-pale); color: var(--green); }

.at-dash-nav { display: flex; flex-direction: column; padding: 10px 0; }
.at-dash-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 20px; font-size: 0.86rem; color: var(--muted); transition: background 0.15s, color 0.15s; font-weight: 500; }
.at-dash-nav a:hover { background: var(--bg); color: var(--dark); }
.at-dash-nav a.active { background: var(--navy-pale); color: var(--navy); font-weight: 600; }
.at-nav-icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }

.at-sidebar-upgrade { margin: 12px 14px 14px; background: linear-gradient(135deg, var(--navy), var(--navy-light)); border-radius: 10px; padding: 18px; }
.at-sidebar-upgrade-title { color: white; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.at-sidebar-upgrade p { color: rgba(255,255,255,0.65); font-size: 0.78rem; margin-bottom: 14px; }

/* Contenu principal */
.at-dashboard-main { min-width: 0; }

.at-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.at-page-title { font-size: 1.6rem; margin-bottom: 6px; }
.at-page-desc { font-size: 0.88rem; color: var(--muted); }
.at-btn-new { flex-shrink: 0; }

/* Bandeau upgrade */
.at-upgrade-banner { display: flex; align-items: center; gap: 16px; background: white; border: 1px solid var(--border); border-left: 4px solid var(--green); border-radius: 10px; padding: 16px 20px; margin-bottom: 24px; }
.at-upgrade-icon { font-size: 1.4rem; flex-shrink: 0; }
.at-upgrade-text { flex: 1; min-width: 0; }
.at-upgrade-text strong { display: block; font-size: 0.9rem; color: var(--dark); font-weight: 600; }
.at-upgrade-text span { font-size: 0.8rem; color: var(--muted); }

/* Liste des alertes */
.at-alerts-list { display: flex; flex-direction: column; gap: 12px; }

.at-alert-item { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 20px 22px; transition: box-shadow 0.2s; }
.at-alert-item:hover { box-shadow: 0 3px 14px rgba(0,0,0,0.07); }

.at-alert-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.at-alert-name { font-weight: 600; font-size: 0.95rem; color: var(--dark); }
.at-alert-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.at-alert-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.at-alert-chip { display: inline-flex; align-items: center; font-size: 0.75rem; background: var(--bg); border: 1px solid var(--border); color: var(--muted); padding: 3px 10px; border-radius: 12px; }
.at-freq-immediate { background: var(--green-pale); color: var(--green); border-color: var(--green-pale); }
.at-freq-daily { background: var(--navy-pale); color: var(--navy); border-color: var(--navy-pale); }
.at-freq-weekly { background: var(--bg); }

/* Toggle ON/OFF */
.at-toggle-btn { background: none; border: none; cursor: pointer; padding: 4px; border-radius: 4px; display: flex; align-items: center; }
.at-toggle-track { display: flex; align-items: center; width: 42px; height: 24px; background: var(--border); border-radius: 12px; position: relative; transition: background 0.25s; }
.at-toggle-thumb { width: 18px; height: 18px; background: white; border-radius: 50%; position: absolute; left: 3px; transition: left 0.25s, box-shadow 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.at-toggle-btn.active .at-toggle-track { background: var(--green); }
.at-toggle-btn.active .at-toggle-thumb { left: 21px; }
.at-toggle-btn:disabled { opacity: 0.5; }

/* État vide */
.at-alerts-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 30px; background: white; border: 2px dashed var(--border); border-radius: 12px; gap: 12px; }
.at-empty-icon { font-size: 2.4rem; }
.at-alerts-empty h3 { font-size: 1.1rem; color: var(--dark); margin: 0; }
.at-alerts-empty p { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* Loading */
.at-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.88rem; padding: 24px 0; }
.at-spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--navy); border-radius: 50%; animation: at-spin 0.75s linear infinite; flex-shrink: 0; }
@keyframes at-spin { to { transform: rotate(360deg); } }

/* Notices */
.at-notice { padding: 12px 16px; border-radius: 8px; font-size: 0.875rem; line-height: 1.5; }
.at-notice-success { background: var(--green-pale); color: #1a6035; border: 1px solid #b2dfc2; }
.at-notice-error { background: #fff5f5; color: #c0392b; border: 1px solid #fadbd8; }

/* ── MODAL ───────────────────────────────────────────────── */
.at-modal-overlay { position: fixed; inset: 0; background: rgba(27,45,79,0.55); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(2px); }
.at-modal { background: white; border-radius: 14px; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }

.at-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px 18px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: white; z-index: 1; border-radius: 14px 14px 0 0; }
.at-modal-title { font-size: 1.15rem; margin: 0; }
.at-modal-close { background: none; border: none; cursor: pointer; font-size: 1.4rem; color: var(--muted); line-height: 1; padding: 4px 8px; border-radius: 6px; transition: background 0.15s, color 0.15s; }
.at-modal-close:hover { background: var(--bg); color: var(--dark); }

.at-alert-form { padding: 24px 28px 28px; }
.at-alert-form .form-group { margin-bottom: 20px; }
.at-alert-form label { font-size: 0.84rem; font-weight: 500; color: var(--text); }
.at-hint { font-weight: 400; color: var(--muted); font-size: 0.78rem; margin-left: 6px; }
.at-required { color: #c0392b; }

/* Checkboxes */
.at-checkbox-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.at-checkbox-wrap { max-height: 140px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; background: var(--bg); }
.at-checkbox-label { display: flex; align-items: center; gap: 7px; cursor: pointer; font-size: 0.84rem; color: var(--text); padding: 5px 10px; border: 1px solid var(--border); border-radius: 20px; background: white; transition: all 0.15s; user-select: none; }
.at-checkbox-label:hover { border-color: var(--navy); color: var(--navy); }
.at-checkbox-label input[type="checkbox"] { display: none; }
.at-checkbox-label:has(input:checked) { background: var(--navy-pale); border-color: var(--navy); color: var(--navy); font-weight: 500; }
.at-checkbox-wrap .at-checkbox-label { border: none; border-radius: 4px; padding: 4px 6px; }
.at-checkbox-wrap .at-checkbox-label:has(input:checked) { border-radius: 4px; }

/* Radio fréquence */
.at-radio-group { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.at-radio-label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; transition: border-color 0.15s, background 0.15s; }
.at-radio-label:hover:not(.at-radio-locked) { border-color: var(--navy); background: var(--navy-pale); }
.at-radio-label:has(input:checked) { border-color: var(--navy); background: var(--navy-pale); }
.at-radio-label input[type="radio"] { margin-top: 2px; accent-color: var(--navy); flex-shrink: 0; }
.at-radio-locked { opacity: 0.55; cursor: not-allowed; }
.at-radio-content { display: flex; flex-direction: column; gap: 2px; }
.at-radio-main { font-size: 0.88rem; font-weight: 500; color: var(--dark); display: flex; align-items: center; gap: 8px; }
.at-radio-desc { font-size: 0.78rem; color: var(--muted); }
.at-plan-badge { background: var(--navy); color: white; font-size: 0.65rem; font-weight: 600; padding: 2px 7px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.04em; vertical-align: middle; }

/* Toggle dans le formulaire */
.at-toggle-label { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; font-size: 0.88rem; font-weight: 500; color: var(--text); }
.at-toggle-label input[type="checkbox"] { display: none; }
.at-toggle-switch { position: relative; display: inline-block; width: 42px; height: 24px; background: var(--border); border-radius: 12px; transition: background 0.25s; flex-shrink: 0; }
.at-toggle-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: white; border-radius: 50%; transition: left 0.25s; box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.at-toggle-label:has(input:checked) .at-toggle-switch { background: var(--green); }
.at-toggle-label:has(input:checked) .at-toggle-switch::after { left: 21px; }

/* Message formulaire */
.at-form-message { margin-top: 16px; }

/* Footer modal */
.at-modal-footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.at-btn-cancel { background: white; color: var(--muted); border: 1px solid var(--border); }
.at-btn-cancel:hover { background: var(--bg); color: var(--dark); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .home-value-heading { grid-template-columns: 1fr; gap: 14px; }
  .home-steps { grid-template-columns: 1fr; }
  .tenders-grid, .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2rem; }
  .hero-countries { display: none; }
  .stats-bar { gap: 30px; flex-wrap: wrap; }
  .main-nav ul { gap: 14px; }
  .main-nav a { font-size: 0.82rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .home-value-section { padding-top: 48px; padding-bottom: 48px; }
  .home-offer { grid-template-columns: 1fr; }
  .home-offer-plan { padding: 22px 20px; }
  .home-offer-topline { flex-direction: column; gap: 10px; }
  .home-offer-price { text-align: left; }
}
/* ── Hamburger bouton ── */
.at-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 7px 8px;
  flex-shrink: 0;
}
.at-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .25s;
}
.at-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.at-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.at-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Menu mobile overlay ── */
#at-mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: rgba(27,45,79,.35);
  backdrop-filter: blur(2px);
}
#at-mobile-menu.open { display: block; }
.at-mmenu-panel {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 8px 0 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.at-mmenu-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid #f0f2f7;
}
.at-mmenu-panel a:last-child { border-bottom: none; }
.at-mmenu-panel a:hover { background: #f5f7fb; }
.at-mmenu-panel .at-mmenu-cta {
  margin: 12px 22px 4px;
  display: block;
  text-align: center;
  background: var(--green);
  color: #fff !important;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .92rem;
  border-bottom: none;
}
.at-mmenu-panel .at-mmenu-cta:hover { background: #35a063; }
.at-mmenu-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 12px;
  border-bottom: 1px solid #e8ecf3;
  background: #f5f7fb;
  margin-bottom: 4px;
}
.at-mmenu-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; flex-shrink: 0;
}
.at-mmenu-uname { font-size: .86rem; font-weight: 600; color: var(--navy); line-height: 1.3; }
.at-mmenu-badge {
  font-size: .62rem; font-weight: 700;
  padding: 2px 7px; border-radius: 8px;
  text-transform: uppercase; letter-spacing: .04em;
  display: inline-block; margin-top: 2px;
}
.at-mmenu-badge.premium { background: var(--navy); color: #fff; }
.at-mmenu-badge.free    { background: #e6f4ec; color: #2a7a4b; }
.at-mmenu-logout { color: #c0392b !important; }

@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-actions .nav-lang { display: none; }
  .nav-actions .nav-account-name { display: none; }
  .at-hamburger { display: flex; }
}
@media (max-width: 900px) {
  .at-dashboard-inner { grid-template-columns: 1fr; }
  .at-dashboard-sidebar { position: static; }
  .at-dash-nav { flex-direction: row; flex-wrap: wrap; padding: 8px; gap: 4px; }
  .at-dash-nav a { padding: 8px 14px; border-radius: 8px; font-size: 0.8rem; }
  .at-page-header { flex-direction: column; align-items: flex-start; }
  .at-btn-new { width: 100%; text-align: center; }
}
@media (max-width: 500px) {
  .tenders-grid, .plans-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .at-modal { max-height: 100vh; border-radius: 0; }
  .at-modal-overlay { padding: 0; align-items: flex-end; }
  .at-modal { border-radius: 16px 16px 0 0; max-height: 92vh; }
  .at-upgrade-banner { flex-wrap: wrap; }
  .at-alert-top { flex-wrap: wrap; }
  .at-alert-controls { width: 100%; justify-content: flex-end; }

  /* ── Filtres mobile ── */
  .at-mobile-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: 22px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    color: var(--navy);
    font-family: 'DM Sans', sans-serif;
    font-size: .86rem;
    font-weight: 600;
    cursor: pointer;
  }
  .at-mobile-filter-count { min-width: 22px; height: 22px; margin-left: auto; padding: 2px 7px; border-radius: 11px; background: var(--green); color: white; font-size: .7rem; line-height: 18px; text-align: center; }
  .at-mobile-filter-chevron { font-size: 1rem; transition: transform .2s; }
  .at-mobile-filter-toggle[aria-expanded="true"] .at-mobile-filter-chevron { transform: rotate(180deg); }

  .at-filters-wrap { display: none; margin-top: 8px; padding: 4px 14px; border-radius: 10px; gap: 0; }
  .at-filters-wrap.is-open { display: flex; }
  .at-active-filters:not([hidden]) { align-items: flex-start; flex-direction: column; }

  .at-search-row { flex-wrap: wrap; gap: 8px; padding: 12px 0; }
  .at-search-box { max-width: 100%; width: 100%; }
  .at-sort-select { width: 100%; }

  /* Label sur sa propre ligne, pills en scroll horizontal sans retour à la ligne */
  .at-filter-row { flex-wrap: wrap; gap: 4px; padding: 9px 0; }
  .at-filter-label { width: 100%; margin-bottom: 2px; }
  .at-filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 3px;
  }
  .at-filter-pills::-webkit-scrollbar { display: none; }
  .filter-btn { white-space: nowrap; flex-shrink: 0; }

  /* Dropdown secteur : pleine largeur */
  .at-filter-row .at-sort-select { width: 100%; min-width: 0; }
}

/* ══════════════════════════════════════════════════
   PARTAGE RÉSEAUX SOCIAUX — SINGLE
══════════════════════════════════════════════════ */
.at-share-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.at-share-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.at-share-label { font-size: .78rem; color: var(--muted); margin-right: 4px; }
.at-share-wa { background: #25D366; color: #fff; }
.at-share-li { background: #0A66C2; color: #fff; }
.at-share-copy { background: var(--bg); border: 1px solid var(--border); color: var(--muted); }
.at-share-wa, .at-share-li, .at-share-copy { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 8px; font-size: .8rem; font-weight: 600; text-decoration: none; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: opacity .2s; }
.at-share-wa:hover, .at-share-li:hover { opacity: .85; }
.at-share-copy:hover { border-color: var(--navy); color: var(--navy); }
.at-view-count { display: flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--muted); }

/* ══════════════════════════════════════════════════
   PAGE SOUMETTRE UNE ANNONCE
══════════════════════════════════════════════════ */
.sub-wrap{max-width:760px;margin:0 auto;padding:40px 5% 80px;}
.sub-card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:40px;}
.sub-title{font-family:'Playfair Display',serif;font-size:1.6rem;color:var(--navy);margin:0 0 6px;}
.sub-desc{color:var(--muted);font-size:.88rem;margin:0 0 32px;}
.sub-fg{margin-bottom:20px;}
.sub-lbl{display:block;font-size:.82rem;font-weight:600;color:var(--dark);margin-bottom:6px;}
.sub-req{color:#c0392b;}
.sub-hint{font-weight:400;color:#8a9ab5;font-size:.76rem;margin-left:4px;}
.sub-input{width:100%;padding:10px 14px;border:1px solid var(--border);border-radius:8px;font-family:'DM Sans',sans-serif;font-size:.88rem;color:var(--dark);outline:none;transition:border-color .2s;box-sizing:border-box;background:#fff;}
.sub-input:focus{border-color:var(--navy);}
.sub-textarea{min-height:160px;resize:vertical;line-height:1.6;}
.sub-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.sub-section{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#8a9ab5;margin:28px 0 16px;padding-bottom:8px;border-bottom:1px solid #f0f2f7;}
.sub-options{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:4px;}
.sub-option{border:2px solid var(--border);border-radius:10px;padding:16px 18px;cursor:pointer;transition:all .15s;position:relative;}
.sub-option:has(input:checked),.sub-option.selected{border-color:var(--navy);background:#f0f3f9;}
.sub-option input{position:absolute;opacity:0;width:0;height:0;}
.sub-opt-title{font-size:.92rem;font-weight:600;color:var(--navy);margin-bottom:4px;}
.sub-opt-price{font-size:1.1rem;font-weight:700;color:var(--green);margin-bottom:6px;}
.sub-opt-desc{font-size:.78rem;color:var(--muted);line-height:1.5;}
.sub-opt-badge{display:inline-block;font-size:.65rem;font-weight:700;padding:2px 7px;border-radius:8px;text-transform:uppercase;letter-spacing:.04em;margin-bottom:8px;}
.sub-opt-badge.free{background:#e6f4ec;color:var(--green);}
.sub-opt-badge.paid{background:var(--navy);color:#fff;}
#sub-paypal-zone{margin-top:16px;padding:18px;background:var(--bg);border:1px solid var(--border);border-radius:10px;display:none;}
#sub-paypal-zone p{font-size:.85rem;color:var(--muted);margin:0 0 12px;}
.sub-submit{width:100%;background:var(--navy);color:#fff;border:none;padding:14px;border-radius:10px;font-family:'DM Sans',sans-serif;font-size:.97rem;font-weight:600;cursor:pointer;transition:background .2s;margin-top:8px;}
.sub-submit:hover{background:#253d69;}
.sub-submit:disabled{opacity:.6;cursor:not-allowed;}
.sub-msg{padding:14px 18px;border-radius:8px;font-size:.88rem;margin-bottom:20px;display:none;}
.sub-ok{background:#e6f4ec;border:1px solid #b2dfc2;color:#1a6035;}
.sub-err{background:#fef2f2;border:1px solid #fecaca;color:#c0392b;}
.sub-info{display:flex;gap:12px;background:#f0f3f9;border-radius:10px;padding:14px 18px;margin-bottom:28px;}
.sub-info svg{flex-shrink:0;margin-top:2px;}
.sub-info p{color:var(--muted);font-size:.83rem;line-height:1.6;margin:0;}
@media(max-width:600px){.sub-row{grid-template-columns:1fr;}.sub-options{grid-template-columns:1fr;}}

/* ══════════════════════════════════════════════════
   PAGE MERCI ABONNEMENT
══════════════════════════════════════════════════ */
.merci-wrap{max-width:600px;margin:60px auto 80px;padding:0 5%;text-align:center;}
.merci-badge{display:inline-flex;align-items:center;gap:6px;background:var(--navy);color:#fff;font-size:.75rem;font-weight:700;padding:5px 14px;border-radius:12px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:20px;}
.merci-title{font-family:'Playfair Display',serif;font-size:1.9rem;color:var(--navy);margin:0 0 12px;line-height:1.3;}
.merci-sub{color:var(--muted);font-size:.95rem;line-height:1.7;margin:0 0 32px;}
.merci-card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:28px 32px;margin-bottom:24px;text-align:left;}
.merci-feat{display:flex;align-items:center;gap:12px;font-size:.9rem;color:var(--dark);padding:9px 0;border-bottom:1px solid #f0f2f7;}
.merci-feat:last-child{border-bottom:none;}
.merci-feat-ico{width:34px;height:34px;border-radius:8px;background:#e6f4ec;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:.95rem;}
.merci-btn{display:inline-block;background:var(--green);color:#fff;padding:13px 30px;border-radius:10px;font-weight:600;font-size:.95rem;text-decoration:none;transition:background .2s;}
.merci-btn:hover{background:#226040;color:#fff;}

/* ══════════════════════════════════════════════════
   SOFT GATE — page détail annonce premium
   Le contenu est dans le DOM (SEO), masqué par CSS
══════════════════════════════════════════════════ */

/* Aperçu tronqué de la description (80 mots) */
.at-description-preview {
  position: relative;
  max-height: 160px;
  overflow: hidden;
}
.at-description-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
  pointer-events: none;
}

/* Wrapper positionné pour que l'overlay se superpose exactement */
.at-soft-gate-wrapper {
  position: relative;
  margin-bottom: 24px;
}

/* Le contenu sensible — dans le DOM, rendu invisible par l'overlay */
.at-soft-gate {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  filter: blur(3px);
  user-select: none;
  pointer-events: none;
  opacity: 0.4;
}

/* Overlay positionné par-dessus .at-soft-gate */
.at-gate-overlay {
  position: absolute;
  inset: 0;
  background: var(--navy);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 32px;
  color: white;
}
.at-gate-icon { font-size: 2rem; margin-bottom: 14px; }
.at-gate-title {
  font-family: 'Playfair Display', serif;
  color: white;
  font-size: 1.25rem;
  margin: 0 0 10px;
  line-height: 1.35;
}
.at-gate-desc {
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 440px;
  margin: 0 0 26px;
}
.at-gate-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.at-gate-link {
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.at-gate-link:hover { color: white; }

@media (max-width: 600px) {
  .at-gate-overlay { padding: 28px 20px; }
  .at-gate-title { font-size: 1.05rem; }
  .at-gate-actions { flex-direction: column; }
}
