/* =========================================================
   BDE aivancity — feuille de style principale
   ========================================================= */

:root {
  /* Couleurs de marque */
  --color-primary: #4F3CC9;
  --color-primary-dark: #372A98;
  --color-primary-light: #7C6AE8;
  --color-accent: #FF6B4A;
  --color-accent-dark: #E85436;
  --color-cyan: #22D3EE;

  /* Neutres */
  --color-bg: #FAFAFF;
  --color-bg-alt: #F1EFFE;
  --color-surface: #FFFFFF;
  --color-dark: #120E2A;
  --color-dark-2: #1B1740;
  --color-text: #1B1730;
  --color-text-muted: #635F7A;
  --color-border: #E6E3F5;

  /* Typo */
  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Rayons / ombres */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(27, 23, 48, 0.06);
  --shadow-md: 0 12px 32px rgba(27, 23, 48, 0.10);
  --shadow-lg: 0 24px 60px rgba(27, 23, 48, 0.16);

  --container-width: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
  color: var(--color-dark);
}
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

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

section { padding: 96px 0; }
@media (max-width: 768px) { section { padding: 64px 0; } }

.section-header { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-header.align-left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-bg-alt);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-header p { color: var(--color-text-muted); font-size: 1.05rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 107, 74, 0.35);
}
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }

.btn-block { width: 100%; }

/* Boutons stores */
.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: var(--color-dark);
  color: #fff;
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, background 0.2s ease;
  border: 1px solid rgba(255,255,255,0.08);
}
.btn-store:hover { transform: translateY(-3px); background: #23204a; }
.btn-store svg { width: 26px; height: 26px; flex-shrink: 0; }
.btn-store .store-text { display: flex; flex-direction: column; line-height: 1.15; }
.btn-store .store-text small { font-size: 0.68rem; opacity: 0.75; letter-spacing: 0.03em; }
.btn-store .store-text strong { font-size: 1rem; font-family: var(--font-heading); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 250, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--color-dark); }
.brand .logo-mark { width: 40px; height: 40px; }
.brand .brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand .brand-name span { font-size: 0.68rem; font-weight: 500; color: var(--color-text-muted); letter-spacing: 0.03em; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { background: var(--color-bg-alt); color: var(--color-primary); }
.nav-links a.active { background: var(--color-primary); color: #fff; }
.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 2.5px; background: var(--color-dark); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 24px 20px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .nav-cta { margin-left: 0; margin-top: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 15% 20%, #372A98 0%, var(--color-dark) 55%, #0d0a1f 100%);
  color: #fff;
  padding: 120px 0 100px;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  z-index: 0;
}
.hero::before { width: 420px; height: 420px; background: var(--color-accent); top: -140px; right: -100px; }
.hero::after { width: 380px; height: 380px; background: var(--color-cyan); bottom: -160px; left: -100px; opacity: 0.35; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.hero .hero-lead { color: rgba(255,255,255,0.82); font-size: 1.15rem; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

.hero-stats { display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-family: var(--font-heading); font-size: 1.8rem; color: #fff; }
.hero-stats .stat span { font-size: 0.85rem; color: rgba(255,255,255,0.65); }

.hero-visual {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(6px);
}
.hero-visual .visual-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.hero-visual .visual-card {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.1);
}
.hero-visual .visual-card:first-child { grid-column: 1 / -1; }
.hero-visual .visual-card .icon { width: 34px; height: 34px; margin-bottom: 10px; color: var(--color-cyan); }
.hero-visual .visual-card h4 { color: #fff; font-size: 0.95rem; margin-bottom: 4px; }
.hero-visual .visual-card p { color: rgba(255,255,255,0.65); font-size: 0.82rem; margin: 0; }

/* Petit bandeau sous le header (pages internes) */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 80px 0 64px;
  text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto; }

/* ---------- Cards / grilles ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card .icon-badge {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  margin-bottom: 20px;
}
.card .icon-badge svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--color-text-muted); font-size: 0.95rem; margin: 0; }

/* Placeholder visuels (remplace des photos) */
.placeholder-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  padding: 12px;
  position: relative;
  overflow: hidden;
}
.placeholder-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.25), transparent 50%);
}
.placeholder-img span { position: relative; z-index: 1; }
.placeholder-img.square { aspect-ratio: 1 / 1; }
.placeholder-img.wide { aspect-ratio: 16 / 9; }
.placeholder-img.alt { background: linear-gradient(135deg, var(--color-accent), var(--color-primary)); }

/* Vraies photos (remplacent les placeholders dégradés) */
.real-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.real-photo.wide { aspect-ratio: 16 / 9; border-radius: 0; }
.real-photo.square { aspect-ratio: 1 / 1; border-radius: 50%; }

/* ---------- Équipe ---------- */
.team-card { text-align: center; }
.team-card .placeholder-img { border-radius: 50%; width: 128px; margin: 0 auto 20px; aspect-ratio: 1/1; font-size: 1.6rem; }
.team-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.team-card h3 { margin-bottom: 2px; font-size: 1.05rem; }
.team-card .role { color: var(--color-primary); font-weight: 600; font-size: 0.85rem; margin-bottom: 10px; display: block; }
.team-card p { font-size: 0.88rem; }

/* ---------- Événements ---------- */
.event-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.event-card .event-body { padding: 24px 24px 28px; }
.event-date-badge {
  display: inline-flex; flex-direction: column; align-items: center;
  background: var(--color-bg-alt); color: var(--color-primary);
  border-radius: var(--radius-sm); padding: 8px 14px; margin-bottom: 16px;
  font-family: var(--font-heading);
}
.event-date-badge .day { font-size: 1.3rem; font-weight: 700; line-height: 1; }
.event-date-badge .month { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.date-pending {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--color-bg-alt); color: var(--color-text-muted);
  font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 8px 14px; border-radius: var(--radius-pill); margin-bottom: 16px;
}
.event-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 4px 10px; border-radius: var(--radius-pill);
  background: rgba(255,107,74,0.12); color: var(--color-accent-dark); margin-bottom: 10px;
}
.event-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: var(--color-text-muted); margin-top: 14px; }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-meta svg { width: 16px; height: 16px; }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }
.filter-btn {
  padding: 10px 20px; border-radius: var(--radius-pill); border: 1px solid var(--color-border);
  background: var(--color-surface); font-weight: 600; font-size: 0.9rem; color: var(--color-text-muted);
  transition: all .2s ease;
}
.filter-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-btn.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* ---------- Section sombre (App / CTA) ---------- */
.section-dark {
  background: linear-gradient(135deg, var(--color-dark) 0%, #241d55 100%);
  color: #fff;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.72); }
.section-dark .eyebrow { background: rgba(255,255,255,0.1); color: var(--color-cyan); }

.app-showcase { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .app-showcase { grid-template-columns: 1fr; } }
.app-features { display: grid; gap: 18px; margin: 32px 0; }
.app-feature { display: flex; gap: 16px; align-items: flex-start; }
.app-feature .icon-badge { flex-shrink: 0; background: rgba(255,255,255,0.1); color: var(--color-cyan); }
.app-feature h4 { color: #fff; margin-bottom: 4px; font-size: 1rem; }
.app-feature p { margin: 0; font-size: 0.9rem; }

.phone-mockup {
  width: min(280px, 100%);
  margin: 0 auto;
  aspect-ratio: 9/18.5;
  border-radius: 42px;
  background: #0d0a1f;
  border: 8px solid #2a234f;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.phone-mockup .screen {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--color-primary) 0%, #241d55 60%, var(--color-dark) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: rgba(255,255,255,0.85); text-align: center; padding: 24px;
}
.phone-mockup .screen .app-logo { width: 56px; height: 56px; }
.phone-mockup .screen small { font-size: 0.7rem; opacity: 0.6; }

/* ---------- CTA bandeau ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-accent) 0%, #c9457f 100%);
  border-radius: var(--radius-lg);
  padding: 56px;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 0; }

/* ---------- Formulaire contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border); font-family: inherit; font-size: 0.95rem;
  background: var(--color-surface); color: var(--color-text); transition: border-color .2s ease;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--color-primary);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 12px; }
.form-status { margin-top: 14px; font-weight: 600; font-size: 0.9rem; display: none; }
.form-status.success { color: #1a9c5c; display: block; }
.form-status.error { color: #e04848; display: block; }

.contact-info-card { background: var(--color-bg-alt); border-radius: var(--radius-md); padding: 32px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item .icon-badge { background: #fff; flex-shrink: 0; }
.social-row { display: flex; gap: 12px; margin-top: 24px; }
.social-row a {
  width: 42px; height: 42px; border-radius: 50%; background: #fff; display: flex;
  align-items: center; justify-content: center; color: var(--color-primary); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.social-row a:hover { background: var(--color-primary); color: #fff; transform: translateY(-3px); }
.social-row svg { width: 20px; height: 20px; }

/* ---------- Légal ---------- */
.legal-notice {
  background: #FFF4E5; border: 1px solid #FFD9A0; color: #7A4E00;
  border-radius: var(--radius-md); padding: 18px 22px; margin-bottom: 40px;
  font-size: 0.92rem; display: flex; gap: 12px; align-items: flex-start;
}
.legal-notice svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.legal-content h2 { font-size: 1.3rem; margin-top: 2.2em; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--color-text-muted); }
.legal-content ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.legal-content li { margin-bottom: 6px; }
.legal-updated { color: var(--color-text-muted); font-size: 0.88rem; margin-bottom: 8px; }
.legal-toc { background: var(--color-bg-alt); border-radius: var(--radius-md); padding: 24px 28px; margin-bottom: 48px; }
.legal-toc h2 { font-size: 1rem; margin-bottom: 12px; }
.legal-toc ol { list-style: decimal; padding-left: 20px; }
.legal-toc li { margin-bottom: 6px; }
.legal-toc a { color: var(--color-primary); font-weight: 600; }
.legal-toc a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-dark); color: rgba(255,255,255,0.75); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { font-size: 0.9rem; transition: color .2s ease; }
.footer-col a:hover { color: var(--color-cyan); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--color-primary); }
.footer-social svg { width: 17px; height: 17px; }

/* ---------- Utilitaires ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.back-to-top {
  position: fixed; bottom: 28px; right: 28px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); border: none; opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease; z-index: 900;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--color-primary); color: #fff;
  padding: 12px 20px; z-index: 2000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
