/* ═════════════════════════════════════════════════════════
   EuroEntity – shared styles (header, footer, buttons, etc.)
   ═════════════════════════════════════════════════════════ */

:root{
  --primary:#1E3A8A;
  --primary-700:#1c3478;
  --primary-50:#eef2ff;
  --secondary:#14B8A6;
  --secondary-700:#0f9b8c;
  --secondary-50:#ecfdf9;
  --accent:#EAB308;
  --bg:#FFFFFF;
  --bg-soft:#F8FAFC;
  --text:#64748B;
  --text-strong:#0f172a;
  --border:#e2e8f0;
  --gradient:linear-gradient(90deg,#1E3A8A,#14B8A6);
  --radius-sm:8px;
  --radius-md:12px;
  --radius-lg:20px;
  --shadow-sm:0 1px 2px rgba(15,23,42,.04),0 1px 3px rgba(15,23,42,.04);
  --shadow-md:0 6px 20px -8px rgba(15,23,42,.12),0 2px 6px rgba(15,23,42,.05);
  --shadow-lg:0 20px 50px -12px rgba(30,58,138,.18);
  --shadow-cta:0 12px 28px -10px rgba(20,184,166,.55),0 6px 14px -6px rgba(30,58,138,.4);
  --max:1200px;
  --font:'Inter',system-ui,-apple-system,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.6;-webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none}

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

/* ─── COMMON HEADINGS ─── */
.eyebrow{
  display:inline-block;font-size:13px;font-weight:600;letter-spacing:.12em;
  text-transform:uppercase;color:var(--primary);
  padding:6px 14px;border-radius:999px;background:var(--primary-50);margin-bottom:18px;
}

/* ─── HEADER ─── */
.header{
  position:sticky;top:0;z-index:100;
  background:rgba(255,255,255,.78);
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid transparent;transition:all .3s ease;
}
.header.scrolled{
  background:rgba(255,255,255,.95);
  border-bottom-color:var(--border);
  box-shadow:0 2px 16px rgba(15,23,42,.04);
}
.nav{display:flex;align-items:center;justify-content:space-between;height:78px;gap:24px}
.logo{display:flex;align-items:center;gap:10px;flex-shrink:0}
.logo img{height:70px;width:auto;object-fit:contain}
.nav-links{display:flex;align-items:center;gap:32px;list-style:none}
.nav-links a{color:var(--text-strong);font-weight:500;font-size:15px;position:relative;padding:8px 0;transition:color .2s ease}
.nav-links a::after{content:"";position:absolute;left:0;bottom:0;width:0;height:2px;background:var(--gradient);transition:width .3s ease}
.nav-links a:hover,.nav-links a.active{color:var(--primary)}
.nav-links a:hover::after,.nav-links a.active::after{width:100%}
.nav-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}

/* Language switcher */
.lang-switch{position:relative}
.lang-btn{display:flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:var(--bg-soft);border:1px solid var(--border);font-weight:500;font-size:14px;color:var(--text-strong);transition:all .2s ease}
.lang-btn:hover{border-color:var(--primary);color:var(--primary)}
.lang-btn .flag{width:22px;height:16px;border-radius:2px;overflow:hidden;display:inline-block;flex-shrink:0;box-shadow:0 0 0 1px rgba(15,23,42,.08)}
.lang-btn .flag svg{width:100%;height:100%;display:block}
.lang-btn .chev{width:14px;height:14px;transition:transform .2s ease}
.lang-switch.open .chev{transform:rotate(180deg)}
.lang-menu{position:absolute;top:calc(100% + 8px);right:0;min-width:210px;background:#fff;border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-lg);padding:8px;opacity:0;visibility:hidden;transform:translateY(-8px);transition:all .2s ease;z-index:200}
.lang-switch.open .lang-menu{opacity:1;visibility:visible;transform:translateY(0)}
.lang-menu button{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border-radius:8px;text-align:start;font-size:14px;font-weight:500;color:var(--text-strong);transition:background .15s ease}
.lang-menu button:hover{background:var(--bg-soft)}
.lang-menu button.active{background:var(--primary-50);color:var(--primary)}
.lang-menu .flag{width:24px;height:18px;border-radius:3px;overflow:hidden;flex-shrink:0;box-shadow:0 0 0 1px rgba(15,23,42,.08)}
.lang-menu .flag svg{width:100%;height:100%;display:block}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 22px;border-radius:var(--radius-sm);font-weight:600;font-size:15px;transition:all .25s cubic-bezier(.4,0,.2,1);white-space:nowrap;cursor:pointer}
.btn-primary{background:var(--gradient);color:#fff;box-shadow:0 4px 14px -2px rgba(30,58,138,.35);background-size:200% 100%;background-position:0% 0%}
.btn-primary:hover{transform:translateY(-2px);box-shadow:var(--shadow-cta);background-position:100% 0%}
.btn-outline{background:transparent;color:var(--primary);border:1.5px solid var(--primary)}
.btn-outline:hover{background:var(--primary);color:#fff}
.btn-arrow{transition:transform .25s ease}
.btn:hover .btn-arrow{transform:translateX(4px)}

/* Mobile menu */
.menu-toggle{display:none;width:42px;height:42px;border-radius:8px;background:var(--bg-soft);align-items:center;justify-content:center}
.menu-toggle span{display:block;width:18px;height:2px;background:var(--text-strong);position:relative;transition:all .25s ease}
.menu-toggle span::before,.menu-toggle span::after{content:"";position:absolute;left:0;width:100%;height:2px;background:var(--text-strong);transition:all .25s ease}
.menu-toggle span::before{top:-6px}
.menu-toggle span::after{top:6px}
.menu-toggle.open span{background:transparent}
.menu-toggle.open span::before{top:0;transform:rotate(45deg)}
.menu-toggle.open span::after{top:0;transform:rotate(-45deg)}

/* ─── FOOTER ─── */
.footer{background:#0b1d4d;color:#cbd5e1;padding:80px 0 30px;position:relative;overflow:hidden}
.footer::before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background:var(--gradient)}
.footer-bg{position:absolute;inset:0;background:radial-gradient(800px 400px at 80% 0%,rgba(20,184,166,.15),transparent 60%)}
.footer-grid{position:relative;display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:48px;margin-bottom:56px}
.footer-brand{position:relative}
.footer-brand .footer-logo{height:90px;width:auto;margin-bottom:18px}
.footer-brand p{font-size:14px;line-height:1.7;color:#94a3b8;margin-bottom:24px;max-width:340px}
.footer-social{display:flex;gap:10px}
.footer-social a{width:40px;height:40px;border-radius:10px;background:rgba(255,255,255,.06);display:flex;align-items:center;justify-content:center;color:#cbd5e1;transition:all .25s ease}
.footer-social a:hover{background:var(--gradient);color:#fff;transform:translateY(-2px)}
.footer-social svg{width:18px;height:18px}
.footer-col h5{font-size:14px;font-weight:600;color:#fff;margin-bottom:18px;letter-spacing:.02em}
.footer-col ul{list-style:none}
.footer-col li{margin-bottom:10px}
.footer-col a{font-size:14px;color:#94a3b8;transition:color .2s ease}
.footer-col a:hover{color:var(--secondary)}
.footer-bottom{position:relative;padding-top:30px;border-top:1px solid rgba(255,255,255,.08);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px}
.footer-bottom p{font-size:13px;color:#64748b}
.footer-bottom .legal{display:flex;gap:24px}
.footer-bottom .legal a{font-size:13px;color:#94a3b8}
.footer-bottom .legal a:hover{color:#fff}

/* ─── REVEAL ANIMATIONS ─── */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .7s ease,transform .7s ease}
.reveal.in{opacity:1;transform:translateY(0)}
.reveal.d1{transition-delay:.1s}
.reveal.d2{transition-delay:.2s}
.reveal.d3{transition-delay:.3s}
.reveal.d4{transition-delay:.4s}
.reveal.d5{transition-delay:.5s}

@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes fadeIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}

/* ─── RESPONSIVE ─── */
@media (max-width:1024px){
  .footer-grid{grid-template-columns:1fr 1fr;gap:40px}
}
@media (max-width:720px){
  .nav-links{position:fixed;top:78px;left:0;right:0;flex-direction:column;align-items:flex-start;gap:0;padding:24px;background:#fff;border-bottom:1px solid var(--border);box-shadow:0 12px 30px -12px rgba(15,23,42,.15);transform:translateY(-150%);transition:transform .3s ease;z-index:99}
  .nav-links.open{transform:translateY(0)}
  .nav-links li{width:100%;border-bottom:1px solid var(--border)}
  .nav-links li:last-child{border-bottom:none}
  .nav-links a{display:block;padding:14px 0;width:100%;font-size:16px}
  .nav-actions .btn-primary{display:none}
  .menu-toggle{display:flex}
  .logo img{height:54px}
  .footer-grid{grid-template-columns:1fr;gap:36px}
  .footer-bottom{flex-direction:column;text-align:center}
  .lang-btn .lang-name{display:none}
  .lang-menu{
    position:fixed !important;
    top:auto !important;
    right:14px !important;
    left:auto !important;
    margin-top:8px;
    min-width:200px;
    max-height:70vh;
    overflow-y:auto;
    z-index:300 !important;
  }
  .lang-menu button{padding:12px 14px;font-size:15px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;transition-duration:.01ms !important;animation-iteration-count:1 !important}
  .reveal{opacity:1;transform:none}
}

/* ═════════════════════════════════════════════════════════
   RESPONSIVE GLOBAL — fixes pour toutes les pages
   ═════════════════════════════════════════════════════════ */

/* Tablette (≤ 1024px) */
@media (max-width:1024px){
  .container{padding:0 20px}

  /* Service hero — passer en colonne unique */
  .service-hero-inner{grid-template-columns:1fr !important;gap:40px;text-align:center}
  .service-hero-inner .hero-mosaic{margin:0 auto}
  .service-hero h1{font-size:clamp(30px,4vw,44px)}
  .service-hero p.lead{margin-left:auto;margin-right:auto}
  .service-hero-cta{justify-content:center}

  /* Cards & Grids */
  .features-grid,
  .cards-grid{grid-template-columns:repeat(2,1fr) !important}
  .countries-grid{grid-template-columns:repeat(4,1fr) !important}
  .promise-grid{grid-template-columns:repeat(2,1fr) !important}

  /* Split sections */
  .split,
  .story-grid,
  .contact-grid{grid-template-columns:1fr !important;gap:40px}
  .story-visual,
  .split-visual{max-width:480px;margin:0 auto;width:100%}

  /* Stats */
  .stats-grid{grid-template-columns:repeat(2,1fr) !important;gap:16px}

  /* Team */
  .team-grid{grid-template-columns:repeat(3,1fr) !important;gap:18px}
}

/* Mobile (≤ 720px) */
@media (max-width:720px){
  .container{padding:0 16px}

  /* Eyebrows et headings */
  .eyebrow{font-size:11px;padding:5px 12px}

  /* Service hero */
  .service-hero{padding:36px 0 24px !important}
  .service-hero h1{font-size:clamp(26px,7vw,36px) !important;line-height:1.15;margin-bottom:16px}
  .service-hero p.lead{font-size:15px;margin-bottom:24px}
  .service-hero-cta{flex-direction:column;width:100%;gap:10px}
  .service-hero-cta .btn{width:100%;justify-content:center}
  .service-icon-large{width:80px !important;height:80px !important;border-radius:18px;margin-bottom:16px}
  .service-icon-large svg{width:36px !important;height:36px !important}

  /* Mosaic dans hero (formation page) */
  .hero-mosaic{aspect-ratio:auto;max-width:100% !important;height:auto;display:flex;flex-direction:column;gap:10px;padding:0}
  .mosaic-card{position:relative !important;top:auto !important;left:auto !important;right:auto !important;bottom:auto !important;animation:none !important;width:100%}

  /* Sections */
  .section,
  .features-section,
  .process-section,
  .countries-section,
  .pricing-cta-section,
  .stats-section,
  .story-section,
  .values-section,
  .team-section,
  .cta-section,
  .promise-section{padding:48px 0 !important}

  .section-head h2,
  .features-head h2,
  .process-head h2,
  .countries-head h2,
  .stats-grid + h2,
  .story-content h2,
  .values-head h2,
  .team-head h2,
  .promise-head h2{font-size:clamp(24px,6vw,30px) !important;line-height:1.2;margin-bottom:10px}

  .section-head,
  .features-head,
  .process-head,
  .countries-head,
  .values-head,
  .team-head,
  .promise-head{margin-bottom:32px !important}

  .section-head p,
  .features-head p,
  .process-head p,
  .values-head p,
  .team-head p,
  .promise-head p{font-size:15px;line-height:1.6}

  /* Cards */
  .features-grid,
  .cards-grid,
  .promise-grid,
  .values-grid{grid-template-columns:1fr !important;gap:14px}
  .feature-card,
  .scard,
  .value-card,
  .promise-card,
  .stat-card{padding:24px 20px !important}

  /* Countries — 2 colonnes en mobile */
  .countries-grid{grid-template-columns:repeat(2,1fr) !important;gap:10px}
  .country-card{padding:14px 10px !important}

  /* Country pills */
  .countries-pills{gap:8px !important}
  .country-pill{padding:10px 14px !important;font-size:13px !important;flex-grow:1;justify-content:center}
  .country-pill .fl{width:22px !important;height:16px !important}

  /* Team */
  .team-grid{grid-template-columns:repeat(2,1fr) !important;gap:12px}
  .team-card{padding:20px 12px !important}
  .team-photo{width:80px !important;height:80px !important}
  .team-card h4{font-size:14px !important}
  .team-card .role{font-size:12px !important}
  .team-card .country{font-size:11px !important;padding:4px 10px}

  /* Stats */
  .stats-grid{grid-template-columns:repeat(2,1fr) !important;gap:12px}
  .stat-card{padding:20px 14px !important}
  .stat-num{font-size:clamp(28px,7vw,36px) !important}
  .stat-lbl{font-size:12px !important}

  /* Process / Steps */
  .timeline::before{left:18px}
  .timeline-step{padding-left:54px !important;margin-bottom:24px !important}
  .timeline-num{width:38px !important;height:38px !important;font-size:14px !important}
  .timeline-step h4{font-size:16px !important}
  .timeline-step p{font-size:14px}

  .steps-wrap::before{left:18px !important}
  .step-block{padding-left:56px !important;margin-bottom:32px !important}
  .step-num{width:42px !important;height:42px !important;font-size:14px !important;border-radius:12px !important}
  .step-content{padding:20px 16px 18px !important}
  .step-content h3{font-size:18px !important}
  .step-content > p{font-size:14.5px}
  .action-list,
  .deliv-list{grid-template-columns:1fr !important;gap:8px !important}
  .action-list li,
  .deliv-list li{font-size:14px}
  .step-meta{gap:6px}
  .step-pill{font-size:11px;padding:4px 10px}

  /* Story (about) */
  .story-grid{gap:30px}
  .story-visual{aspect-ratio:auto;padding:30px 24px !important}
  .story-quote blockquote{font-size:17px !important;line-height:1.5}
  .story-content h2{margin-bottom:14px}
  .story-content p{font-size:15px;line-height:1.65}

  /* Split (vat page) */
  .split-visual{padding:24px !important}
  .vat-num{font-size:18px !important;padding:12px 16px !important;word-break:break-all}
  .split-list li{padding:10px 0;gap:10px}
  .split-list strong{font-size:14px}
  .split-list span{font-size:13px}

  /* CTA cards */
  .cta-card,
  .pricing-cta-card{padding:36px 18px !important}
  .cta-card h2,
  .pricing-cta-card h2{font-size:clamp(22px,5.5vw,28px) !important;line-height:1.25}
  .cta-card p,
  .pricing-cta-card p{font-size:14.5px}
  .cta-card .ctas{flex-direction:column;width:100%}
  .cta-card .ctas .btn,
  .cta-card .btn-white{width:100%;justify-content:center}

  /* Contact page */
  .contact-form{padding:24px 18px !important;border-radius:14px}
  .contact-form h3{font-size:20px !important}
  .form-row{grid-template-columns:1fr !important;gap:0 !important}
  .form-field input,
  .form-field select,
  .form-field textarea{font-size:16px !important;padding:11px 13px !important}

  .contact-list li{padding:14px 0;gap:12px}
  .contact-list .ic{width:40px;height:40px;border-radius:10px}
  .contact-list .ic svg{width:18px;height:18px}
  .contact-list strong{font-size:14px}
  .contact-list span,.contact-list a{font-size:13px;word-break:break-word}

  .whatsapp-btn{width:100%;justify-content:center;font-size:14px;padding:12px 18px}

  .hours-card{padding:18px}
  .hours-list li{font-size:13px;padding:5px 0}

  /* Page hero (legal pages, about, contact, process) */
  .page-hero{padding:36px 0 24px !important}
  .page-hero h1{font-size:clamp(28px,7vw,40px) !important;line-height:1.15}
  .page-hero p.lead{font-size:15px;line-height:1.6}

  .legal-hero{padding:36px 0 24px !important}
  .legal-hero h1{font-size:clamp(26px,6.5vw,36px) !important}
  .legal-hero p.lead{font-size:14.5px;line-height:1.6}
  .legal-hero .updated{font-size:12px;padding:5px 12px}

  /* Legal content */
  .legal-content{padding:32px 0 60px !important}
  .legal-wrap p{font-size:14.5px;line-height:1.7}
  .legal-wrap h2{font-size:20px !important;margin-top:32px !important;gap:8px}
  .legal-wrap h2 .num{width:26px !important;height:26px !important;font-size:12px !important;border-radius:6px}
  .legal-wrap h3{font-size:16px;margin-top:20px}
  .legal-wrap ul li{font-size:14.5px;padding-left:20px}
  .legal-wrap ul li::before{left:5px;top:10px;width:5px;height:5px}
  .toc{padding:18px 20px !important;margin-bottom:32px !important}
  .toc h4{font-size:11px}
  .toc ol{column-count:1 !important;gap:0}
  .toc li{font-size:13.5px;margin-bottom:5px}

  /* Cookie table */
  .cookie-table{font-size:12.5px !important;display:block;overflow-x:auto;white-space:nowrap}
  .cookie-table th,
  .cookie-table td{padding:10px 8px !important}
  .cookie-table .name{font-size:11px}

  /* Thank you page */
  .thank-card{padding:36px 22px !important;margin:0 12px}
  .thank-card h1{font-size:clamp(24px,6vw,32px) !important}
  .thank-card p.lead{font-size:14.5px}
  .thank-card p.note{font-size:13px;padding:12px 14px}
  .success-icon{width:72px !important;height:72px !important;margin-bottom:20px !important}
  .success-icon svg{width:34px !important;height:34px !important}
  .thank-actions{flex-direction:column !important;gap:10px !important}
  .thank-actions .btn{width:100%;justify-content:center}
  .thank-extras{grid-template-columns:1fr !important;gap:18px !important}

  /* General buttons mobile */
  .btn{padding:11px 18px;font-size:14px}
}

/* Très petit mobile (≤ 380px) */
@media (max-width:380px){
  .container{padding:0 14px}
  .countries-grid{grid-template-columns:1fr !important}
  .stats-grid{grid-template-columns:1fr !important}
  .team-grid{grid-template-columns:1fr !important}
  .service-hero h1{font-size:clamp(22px,7vw,28px) !important}
  .nav{height:64px}
  .header.scrolled{height:64px}
  .logo img{height:44px !important}
}

/* ═════════════════════════════════════════════════════════
   SAFETY NET — assurer que les pages légales restent visibles
   même si JS rencontre un problème
   ═════════════════════════════════════════════════════════ */
.legal-content,
.legal-wrap,
.legal-wrap *{
  opacity:1 !important;
  visibility:visible !important;
}
.legal-hero-inner{
  opacity:1 !important;
  transform:none !important;
}

/* ═════════════════════════════════════════════════════════
   FIX MOBILE — sélecteur de langue toujours cliquable et visible
   ═════════════════════════════════════════════════════════ */
@media (max-width:720px){
  /* S'assurer que le sélecteur de langue est au-dessus du menu burger */
  .nav-actions{
    position:relative;
    z-index:101;
  }
  .lang-switch{
    position:relative;
    z-index:101;
  }
  .lang-btn{
    padding:8px 10px !important;
    min-height:40px;
    min-width:44px;
  }
  .lang-btn .flag{
    width:22px;
    height:16px;
  }
  /* Ouvrir le menu lang AU-DESSUS du menu burger */
  .lang-switch.open .lang-menu{
    z-index:9999 !important;
  }
}
