/* ================================================
   Infotech90 — Feuille de styles partagée
   Palette pro & rassurante (bleus sobres)
   ================================================ */

:root {
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --primary-light: #3b82f6;
  --accent: #0ea5e9;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 { color: var(--text); line-height: 1.25; font-weight: 700; }
h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; }

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

/* ============ Header ============ */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}
.logo a { display: flex; align-items: center; gap: 0.85rem; color: var(--text); font-weight: 700; }
.logo img { height: 64px; width: auto; }
.logo-text { font-size: 1.35rem; line-height: 1.1; }
.logo-text small { display: block; font-size: 0.78rem; color: var(--text-muted); font-weight: 500; margin-top: 0.15rem; }
@media (max-width: 600px) {
  .logo img { height: 52px; }
  .logo-text { font-size: 1.1rem; }
}

.main-nav { display: flex; gap: 0.25rem; align-items: center; }
.main-nav a {
  padding: 0.5rem 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: var(--bg-soft); }
.nav-cta {
  background: var(--primary) !important;
  color: white !important;
  padding: 0.6rem 1.1rem !important;
  margin-left: 0.5rem;
}
.nav-cta:hover { background: var(--primary-dark) !important; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--text);
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
    align-items: stretch;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .nav-cta { margin-left: 0; margin-top: 0.5rem; text-align: center; }
}

/* ============ Hero ============ */
.hero {
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 5rem 1.5rem;
  text-align: center;
}
.hero h1 { color: white; font-size: 3rem; }
.hero .subtitle { font-size: 1.25rem; opacity: 0.95; max-width: 720px; margin: 1rem auto 2rem; }
.hero .cta-row a { box-shadow: var(--shadow-md); }

/* ============ Page header (pages internes) ============ */
.page-header {
  background: linear-gradient(180deg, #e6efff 0%, #f0f5ff 100%);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 64, 175, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 64, 175, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}
.page-header > .container { position: relative; z-index: 1; }
.page-header h1 { color: var(--primary-dark); font-size: 2.25rem; }
.page-header p { color: var(--text-muted); max-width: 700px; margin: 0.5rem auto 0; font-size: 1.1rem; }

/* ============ Sections ============ */
.section { padding: 4rem 0; }
.section-soft { background: var(--bg-soft); }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { margin-bottom: 0.5rem; }
.section-title p { color: var(--text-muted); font-size: 1.1rem; max-width: 700px; margin: 0 auto; }

/* ============ Boutons ============ */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-align: center;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: white; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-secondary:hover { background: var(--bg-soft); color: var(--primary-dark); }
.btn-light { background: white; color: var(--primary-dark); }
.btn-light:hover { background: var(--bg-soft); transform: translateY(-1px); }
.cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============ Cards / Grid ============ */
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary-light); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(30, 64, 175, 0.1);
  color: var(--primary);
  margin-bottom: 1rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { color: var(--text); }
.card p { color: var(--text-muted); margin-bottom: 0; }
.card ul { color: var(--text-muted); padding-left: 1.25rem; margin-top: 0.5rem; }
.card ul li { margin-bottom: 0.25rem; }

/* ============ Pricing ============ */
.pricing-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card .btn {
  margin-top: auto;
}
.pricing-card.featured {
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: var(--shadow-md);
}
.pricing-card.featured::before {
  content: 'Le plus demandé';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.pricing-card h3 { color: var(--text); }
.pricing-card .price { font-size: 2.25rem; font-weight: 700; color: var(--primary); margin: 0.5rem 0; }
.pricing-card .price small { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.pricing-card ul { list-style: none; padding: 0; margin: 1.5rem 0; text-align: left; }
.pricing-card li { padding: 0.4rem 0; color: var(--text-muted); display: flex; gap: 0.5rem; align-items: flex-start; }
.pricing-card li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }

/* ============ FAQ ============ */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--primary);
  font-size: 1.5rem;
  transition: transform 0.2s;
  flex-shrink: 0;
  font-weight: 400;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .answer { padding: 0 1.5rem 1.25rem; color: var(--text-muted); }

/* ============ Témoignages ============ */
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.testimonial .stars { color: var(--warning); margin-bottom: 0.75rem; font-size: 1.1rem; }
.testimonial .quote { color: var(--text); font-style: italic; margin-bottom: 1rem; }
.testimonial .author { color: var(--text-muted); font-size: 0.9rem; }
.testimonial .author strong { color: var(--text); display: block; font-style: normal; }

/* ============ Contact ============ */
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(30, 64, 175, 0.1);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-item .icon svg { width: 20px; height: 20px; }
.contact-info-item h4 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.25rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-info-item p { color: var(--text); font-weight: 600; font-size: 1.05rem; margin: 0; }
.contact-info-item p a { color: var(--text); }
.contact-info-item p a:hover { color: var(--primary); }

/* ============ Formulaire ============ */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 500; color: var(--text); font-size: 0.95rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

/* ============ Zone d'intervention ============ */
.zone-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 800px) { .zone-grid { grid-template-columns: 1fr; } }
.zone-map img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.zone-cities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.zone-cities span {
  padding: 0.55rem 0.85rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  text-align: center;
  color: var(--text);
  cursor: default;
  transition: all 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.zone-cities span:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(30, 64, 175, 0.25);
}

/* ============ Stats / trust row ============ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat .num { font-size: 2.5rem; font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: 0.25rem; }
.stat .label { color: var(--text-muted); }

/* ============ CTA block ============ */
.cta-block {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
}
.cta-block h2 { color: white; }
.cta-block p { color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto 1.5rem; font-size: 1.1rem; }

/* ============ Légales / texte long ============ */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { font-size: 1.4rem; margin-top: 2rem; margin-bottom: 0.75rem; color: var(--primary-dark); }
.legal-content p { color: var(--text-muted); }
.legal-content strong { color: var(--text); }

/* ============ Footer ============ */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 3rem 1.5rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: var(--container);
  margin: 0 auto 2rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img {
  height: 56px;
  margin-bottom: 1rem;
  background: #ffffff;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: block;
  max-width: 240px;
  width: auto;
  object-fit: contain;
}
.footer-brand p { color: #94a3b8; font-size: 0.95rem; line-height: 1.6; }
.site-footer h4 { color: white; font-size: 1rem; margin-bottom: 1rem; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #cbd5e1; font-size: 0.95rem; }
.site-footer a:hover { color: white; }
.footer-contact-line { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; color: #cbd5e1; font-size: 0.95rem; }
.footer-contact-line svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--primary-light); }
.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  color: #64748b;
  font-size: 0.85rem;
  max-width: var(--container);
  margin: 0 auto;
}

/* ============ Bouton flottant appel mobile ============ */
.floating-call {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: var(--success);
  color: white;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 50;
}
.floating-call svg { width: 24px; height: 24px; }
@media (max-width: 700px) { .floating-call { display: flex; } }

/* ============ Responsive helpers ============ */
@media (max-width: 700px) {
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.25rem; }
  .hero { padding: 3.5rem 1.5rem; }
  h2 { font-size: 1.6rem; }
  .section { padding: 3rem 0; }
  .page-header { padding: 2.5rem 1.5rem 2rem; }
}

/* ================================================
   Animations & dynamisme
   ================================================ */

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Hero — texte centré uniquement */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem 4rem;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
          mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  z-index: 0;
}
.hero-grid {
  display: block;
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}
.hero-text { text-align: center; }
.hero-text .cta-row { justify-content: center; }
.hero-text h1 { font-size: 2.85rem; line-height: 1.12; }

/* Section dédiée au clavier 3D, juste après le hero */
.keyboard-showcase {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 60%, #091025 100%);
  height: 420px;
  margin: 0;
}
.keyboard-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  z-index: 0;
}
.hero-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
#keyboard-3d { width: 100%; height: 100%; display: block; }
.hero-3d canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
@media (max-width: 900px) {
  .keyboard-showcase { height: 340px; }
}
@media (max-width: 600px) {
  .hero-text h1 { font-size: 2rem; }
  .hero { padding: 3.5rem 1.5rem 2.5rem; }
  .keyboard-showcase { height: 250px; }
}

/* Compteurs */
.stat .num { font-variant-numeric: tabular-nums; }

/* Hover renforcé sur les cards */
.card .card-icon { transition: transform 0.3s ease, background 0.3s ease; }
.card:hover .card-icon { transform: scale(1.1) rotate(-4deg); background: rgba(30, 64, 175, 0.18); }

/* Bouton — léger ripple */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.25) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.btn:hover::after { opacity: 1; }

/* Soulignement actif sous le menu */
.main-nav a { position: relative; }
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
@media (max-width: 900px) {
  .main-nav a.active::after { display: none; }
}

/* Pulse subtil sur le bouton flottant */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5), var(--shadow-lg); }
  70% { box-shadow: 0 0 0 14px rgba(16, 185, 129, 0), var(--shadow-lg); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0), var(--shadow-lg); }
}
.floating-call { animation: pulse-ring 2.4s infinite; }
@media (prefers-reduced-motion: reduce) {
  .floating-call { animation: none; }
}

/* Liens services dans la nav (sous-soulignement au hover) */
.main-nav a:not(.nav-cta):hover { text-decoration: none; }

/* Loader / placeholder pendant que Three.js charge */
.hero-3d::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(96, 165, 250, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ================================================
   Pack d'animations subtiles
   ================================================ */

/* — Barre de progression du scroll en haut de page — */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  z-index: 200;
  transition: width 0.08s ease-out;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

/* — Header semi-transparent floutant au scroll — */
.site-header {
  transition: background 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
          backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

/* — Animation d'entrée du logo dans le header — */
@keyframes logo-pop {
  0%   { opacity: 0; transform: scale(0.6) rotate(-8deg); }
  70%  { opacity: 1; transform: scale(1.05) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes fade-right {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.logo a img {
  animation: logo-pop 0.7s 0.1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.logo a .logo-text {
  animation: fade-right 0.6s 0.35s ease both;
}

/* — Hero : entrée échelonnée du titre, sous-titre et CTAs — */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-text h1       { opacity: 0; animation: fade-up 0.8s 0.15s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.hero-text .subtitle{ opacity: 0; animation: fade-up 0.8s 0.35s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.hero-text .cta-row { opacity: 0; animation: fade-up 0.8s 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both; }

/* — Soulignement animé sous les titres de section — */
.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.6rem;
}
.section-title h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.7s 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.section-title.visible h2::after {
  width: 64px;
}

/* — Bounce de l'icône des cards quand elles entrent — */
@keyframes icon-pop {
  0%   { transform: scale(0.55) rotate(-10deg); }
  60%  { transform: scale(1.12) rotate(4deg); }
  100% { transform: scale(1) rotate(0); }
}
.card.visible .card-icon {
  animation: icon-pop 0.65s 0.18s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* — Pulse des dots du ticker (alertes) — */
@keyframes dot-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.25); }
}
.ticker-item .dot {
  display: inline-block;
  animation: dot-pulse 1.8s ease-in-out infinite;
}

/* — Mise en avant douce au survol des liens du nav — */
.main-nav a:not(.nav-cta) {
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.main-nav a:not(.nav-cta):hover {
  transform: translateY(-1px);
}

/* — Stat cards : pulse léger des nombres au démarrage — */
@keyframes num-glow {
  0%   { text-shadow: 0 0 0 rgba(59, 130, 246, 0); }
  50%  { text-shadow: 0 0 16px rgba(59, 130, 246, 0.4); }
  100% { text-shadow: 0 0 0 rgba(59, 130, 246, 0); }
}
.stat.visible .num {
  animation: num-glow 1.6s ease-out 0.4s;
}

/* — prefers-reduced-motion : tout couper proprement — */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress,
  .logo a img, .logo a .logo-text,
  .hero-text h1, .hero-text .subtitle, .hero-text .cta-row,
  .section-title h2::after,
  .card.visible .card-icon,
  .ticker-item .dot,
  .stat.visible .num {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ================================================
   Bandeau d'alertes (ticker)
   ================================================ */
.alert-ticker {
  background: #1e293b;
  color: #f1f5f9;
  position: relative;
  overflow: hidden;
  font-size: 0.875rem;
  border-bottom: 1px solid #334155;
}
.ticker-label {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #422006;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.85rem;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
  white-space: nowrap;
  box-shadow: 4px 0 8px rgba(0,0,0,0.15);
}
.ticker-label svg { width: 14px; height: 14px; flex-shrink: 0; }
.ticker-track {
  display: flex;
  gap: 3rem;
  padding: 0.6rem 1.5rem 0.6rem 7.2rem;
  width: max-content;
  animation: ticker-scroll 75s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  color: #cbd5e1;
  text-decoration: none;
}
a.ticker-item:hover { color: #f1f5f9; }
a.ticker-item:hover strong { color: #fbbf24; }
.ticker-item .dot { color: #fbbf24; flex-shrink: 0; }
.ticker-item svg { width: 14px; height: 14px; flex-shrink: 0; color: #fbbf24; }
.ticker-item strong { color: #f1f5f9; font-weight: 600; transition: color 0.15s; }
.alert-ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
@media (max-width: 600px) {
  .alert-ticker { font-size: 0.78rem; }
  .ticker-label { font-size: 0.7rem; padding: 0 0.6rem; }
  .ticker-label span { display: none; }
  .ticker-track { padding-left: 3rem; gap: 2rem; }
}
