/* =================================================================
   HEConcept — Feuille de styles partagée
   Site multipage FR/EN/ES — v1.0
   ================================================================= */

/* ----------------------------------------------------------------
   1. RESET & VARIABLES
   ---------------------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Palette HEConcept */
  --hec-blue:         #1e4d8c;
  --hec-blue-dark:    #0d2c5c;
  --hec-blue-darker:  #061a3d;
  --hec-blue-light:   #2e6bb8;
  --hec-cyan:         #38bdf8;
  --hec-orange:       #f59e0b;
  --hec-orange-bright:#f97316;
  --hec-teal:         #0ea5e9;

  --ink:     #0f172a;
  --ink-2:   #334155;
  --ink-3:   #64748b;
  --ink-mute:#94a3b8;
  --bg:      #ffffff;
  --bg-soft: #f8fafc;
  --bg-blue: #f0f6ff;
  --line:    #e2e8f0;
  --line-2:  #cbd5e1;

  --sans:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --display:   'Poppins', 'Inter', sans-serif;
  --container: 1240px;
  --gutter:    clamp(20px, 4vw, 48px);
  --radius:    12px;
  --radius-lg: 20px;
  --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  padding-top: 126px; /* topbar 38px + header 88px */
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--hec-blue); color: white; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--hec-blue); border-radius: 8px; }

/* ----------------------------------------------------------------
   2. LAYOUT UTILITIES
   ---------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 96px 0;
}
.section-sm { padding: 64px 0; }
.section-lg { padding: 128px 0; }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hec-blue);
  background: var(--bg-blue);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 3.5vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.h2 em { color: var(--hec-blue); font-style: normal; }

.h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lede {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-3);
  line-height: 1.7;
  margin-top: 16px;
}

/* ----------------------------------------------------------------
   3. TOPBAR
   ---------------------------------------------------------------- */
.topbar {
  background: var(--hec-blue-darker);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 102;
  height: 38px;
}

.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
}

.topbar-left { display: flex; align-items: center; gap: 18px; }

.topbar-info {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
}

.live-dot {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  flex-shrink: 0;
  animation: pulse-dot 2s var(--ease) infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.topbar-right { display: flex; align-items: center; gap: 20px; }

.lang-select {
  display: flex; gap: 8px;
  font-size: 12px;
}
.lang-select span { cursor: pointer; transition: color 0.2s; }
.lang-select span:hover { color: white; }
.lang-select .active { color: white; font-weight: 600; }
.lang-select .sep { color: rgba(255,255,255,0.3); }

.topbar-phone {
  display: flex; align-items: center; gap: 6px;
  color: white;
  font-weight: 500;
  font-size: 12px;
}
.topbar-phone svg { width: 13px; height: 13px; }

.topbar-social { display: flex; gap: 10px; align-items: center; }
.topbar-social a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
  display: flex;
}
.topbar-social a:hover { color: white; }
.topbar-social svg { width: 16px; height: 16px; }

/* ----------------------------------------------------------------
   4. HEADER / NAV
   ---------------------------------------------------------------- */
.header {
  position: fixed;
  top: 38px; left: 0; right: 0;
  z-index: 101;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
}

.header.scrolled {
  box-shadow: 0 4px 16px rgba(13,44,92,0.1);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  transition: padding 0.3s var(--ease);
}

.header.scrolled .header-inner { padding-top: 8px; padding-bottom: 8px; }

/* Logo */
/* ===== LOGO : icone + wordmark ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.88; }

.logo-icon {
  height: 48px;
  width: auto;
  flex-shrink: 0;
  transition: height 0.3s;
}
.header.scrolled .logo-icon { height: 38px; }

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-wordmark strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  color: var(--hec-blue);
  letter-spacing: -0.025em;
  transition: font-size 0.3s;
}
.header.scrolled .logo-wordmark strong { font-size: 16px; }
.logo-wordmark span {
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 3px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Footer override */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.footer-brand .logo-wordmark strong { color: white; }
.footer-brand .logo-wordmark span { color: rgba(255,255,255,0.55); }
.footer-brand .logo-icon { height: 52px; }

@media (max-width: 768px) {
  .logo-icon { height: 40px; }
  .logo-wordmark strong { font-size: 16px; }
  .header.scrolled .logo-icon { height: 32px; }
}
@media (max-width: 480px) {
  .logo-icon { height: 36px; }
  .logo-wordmark strong { font-size: 14px; }
  .logo-wordmark span { font-size: 9px; }
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 8px;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--hec-blue);
  background: var(--bg-blue);
}

/* Nav CTA */
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ----------------------------------------------------------------
   5. BUTTONS
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  letter-spacing: -0.01em;
  line-height: 1;
}
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 16px 30px; font-size: 16px; border-radius: 10px; }

.btn-primary {
  background: var(--hec-blue);
  color: white;
  box-shadow: 0 4px 14px rgba(30,77,140,0.25);
}
.btn-primary:hover {
  background: var(--hec-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(30,77,140,0.4);
}

.btn-orange {
  background: linear-gradient(135deg, var(--hec-orange-bright), var(--hec-orange));
  color: white;
  box-shadow: 0 4px 14px rgba(245,158,11,0.3);
}
.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245,158,11,0.45);
}

.btn-ghost {
  color: white;
  border: 1.5px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: white;
  color: var(--hec-blue);
  border-color: white;
}

.btn-outline {
  color: var(--hec-blue);
  border: 1.5px solid var(--hec-blue);
}
.btn-outline:hover {
  background: var(--hec-blue);
  color: white;
}

.btn-white {
  background: white;
  color: var(--hec-blue);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.2);
}

/* ----------------------------------------------------------------
   6. MOBILE MENU
   ---------------------------------------------------------------- */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: white;
}
.menu-toggle span {
  width: 18px; height: 2px;
  background: var(--ink);
  transition: all 0.3s var(--ease);
  border-radius: 2px;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 99;
  padding: 130px 28px 40px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { list-style: none; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu a {
  display: block;
  padding: 18px 0;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}
.mobile-cta {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ----------------------------------------------------------------
   7. PAGE HERO (inner pages)
   ---------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--hec-blue-darker) 0%, var(--hec-blue) 100%);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.page-hero .breadcrumb a:hover { color: white; }
.page-hero .breadcrumb .sep { font-size: 11px; }
.page-hero .breadcrumb .current { color: rgba(255,255,255,0.8); }
.page-hero .eyebrow { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9); }
.page-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: white;
  margin-top: 12px;
  max-width: 700px;
}
.page-hero h1 em { color: var(--hec-cyan); font-style: normal; }
.page-hero p {
  font-size: clamp(15px, 1.4vw, 18px);
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 600px;
}

/* ----------------------------------------------------------------
   8. CARDS & GRIDS
   ---------------------------------------------------------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s var(--ease);
}
.card:hover {
  border-color: var(--hec-blue);
  box-shadow: 0 12px 40px rgba(30,77,140,0.1);
  transform: translateY(-4px);
}

.card-icon {
  width: 52px; height: 52px;
  background: var(--bg-blue);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  font-size: 24px;
  transition: background 0.3s;
}
.card:hover .card-icon { background: var(--hec-blue); }
.card:hover .card-icon svg { color: white; }

.card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
}
.card p { font-size: 14px; color: var(--ink-3); line-height: 1.65; }

.card-featured {
  background: linear-gradient(135deg, var(--hec-blue-darker), var(--hec-blue));
  border-color: transparent;
  color: white;
}
.card-featured h3 { color: white; }
.card-featured p { color: rgba(255,255,255,0.75); }
.card-featured .card-icon { background: rgba(255,255,255,0.12); }
.card-featured:hover { border-color: transparent; }

/* ----------------------------------------------------------------
   9. STATS BAND
   ---------------------------------------------------------------- */
.stats-band {
  background: var(--hec-blue-darker);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px;
  text-align: center;
}
.stat-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 48px);
  color: white;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-num span { color: var(--hec-orange); }
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* ----------------------------------------------------------------
   10. ZONES GÉOGRAPHIQUES
   ---------------------------------------------------------------- */
.zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.zone-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all 0.3s var(--ease);
}
.zone-card:hover {
  border-color: var(--hec-blue);
  box-shadow: 0 8px 32px rgba(30,77,140,0.1);
  transform: translateY(-3px);
}
.zone-flag { font-size: 36px; margin-bottom: 12px; }
.zone-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 6px;
}
.zone-desc { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.zone-badge {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--bg-blue);
  color: var(--hec-blue);
  letter-spacing: 0.05em;
}

/* ----------------------------------------------------------------
   11. CTA BAND
   ---------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--hec-blue-darker) 0%, var(--hec-blue) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(56,189,248,0.15), transparent 60%);
}
.cta-band-inner { position: relative; z-index: 1; }
.cta-band h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(24px, 3.5vw, 42px);
  color: white;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 640px;
  margin: 0 auto 12px;
}
.cta-band p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin: 0 auto 32px;
}
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ----------------------------------------------------------------
   12. FOOTER
   ---------------------------------------------------------------- */
footer {
  background: var(--hec-blue-darker);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin: 16px 0 20px;
  max-width: 280px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.footer-logo .logo-name strong { color: rgba(255,255,255,0.9); font-size: 18px; }
.footer-logo .logo-name span { color: rgba(255,255,255,0.4); font-size: 10px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  display: grid; place-items: center;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
}
.footer-social a:hover {
  background: var(--hec-blue);
  border-color: var(--hec-blue);
  color: white;
}
.footer-social svg { width: 16px; height: 16px; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ----------------------------------------------------------------
   13. SCROLL REVEAL
   ---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ----------------------------------------------------------------
   14. BADGES & TAGS
   ---------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: 0.03em;
}
.badge-blue { background: var(--bg-blue); color: var(--hec-blue); }
.badge-orange { background: rgba(245,158,11,0.1); color: var(--hec-orange); }
.badge-green { background: rgba(34,197,94,0.1); color: #16a34a; }

/* ----------------------------------------------------------------
   15. FORM ELEMENTS
   ---------------------------------------------------------------- */
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.required-star { color: var(--hec-orange-bright); margin-left: 2px; }
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line-2);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--hec-blue);
  box-shadow: 0 0 0 3px rgba(30,77,140,0.1);
}
textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}
.checkbox-group input { width: auto; margin: 0; flex-shrink: 0; margin-top: 2px; }

/* ----------------------------------------------------------------
   16. MODAL
   ---------------------------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 420px;
  width: calc(100% - 40px);
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s var(--ease-out);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: white;
}
.modal h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}
.modal p { font-size: 15px; color: var(--ink-3); margin-bottom: 28px; }

/* ----------------------------------------------------------------
   17. SCROLL PROGRESS BAR
   ---------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hec-orange), var(--hec-cyan));
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ----------------------------------------------------------------
   18. RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  body { padding-top: 110px; }
  .topbar { height: 34px; font-size: 11px; }
  .header { top: 34px; }
  .topbar-phone { display: none; }
  .topbar-info span:last-child { display: none; }
  .topbar-social { display: none; }
  .lang-select { font-size: 11px; gap: 6px; }
  .lang-select .sep { display: none; }
  .flag-svg { width: 16px; height: 10px; }

  .nav-links { display: none; }
  .nav-cta .btn:not(.btn-primary) { display: none; }
  .nav-cta .btn-primary { padding: 10px 14px; font-size: 12px; }
  .menu-toggle { display: flex; }

  .section { padding: 64px 0; }
  .section-lg { padding: 80px 0; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .page-hero { padding: 56px 0 52px; }

  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 300px; justify-content: center; }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  body { padding-top: 104px; }
  .topbar { height: 30px; }
  .header { top: 30px; }
  .lang-select { gap: 4px; }
  .lang-select span { font-size: 10px; }
  .flag-svg { width: 14px; height: 9px; margin-right: 2px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ----------------------------------------------------------------
   19. FLAG SVG (sélecteur de langue — remplacement emojis)
   ---------------------------------------------------------------- */
.flag-svg {
  display: inline-block;
  width: 18px; height: 12px;
  vertical-align: middle;
  border-radius: 2px;
  margin-right: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.flag-svg-lg {
  display: block;
  width: 48px; height: 32px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}
