/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  background: transparent;
}
.site-header.scrolled {
  background: rgba(30, 34, 37, 0.95);
  -webkit-backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 0.6rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.header-brand img { height: 70px; width: auto; }
.header-brand span {
  font-family: 'Teko', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.header-nav { display: flex; align-items: center; gap: 2rem; }
.header-nav a { font-size: 0.95rem; font-weight: 500; position: relative; }
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.header-nav a:hover::after, .header-nav a.active::after { width: 100%; }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ===== HERO ===== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,34,37,0.7) 0%, rgba(30,34,37,0.9) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 1000px; padding: 2rem; }
.hero-logo { width: 187px; margin: 0 auto 1.5rem; }
.hero-content h1 { margin-bottom: 1rem; }
.hero-content p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 2.5rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== CHIPS (3 colonnes services) ===== */
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.chip {
  padding: 2.5rem 2rem;
  text-align: center;
  border-radius: 1.5rem;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
  position: relative;
}
.chip:hover { transform: translateY(-5px); }
.chip hr {
  width: 60px;
  border: none;
  height: 3px;
  background: rgba(255,255,255,0.2);
  margin: 1.2rem auto;
  transition: var(--transition);
}
.chip:hover hr { background: var(--accent); width: 80px; }
.chip-icon {
  width: 60px; height: 60px;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
}
.chip-icon svg { width: 40px; height: 40px; stroke: var(--accent); stroke-width: 1.5; fill: none; }
.chip-icon img { width: 50px; height: 50px; filter: invert(1); transition: var(--transition); }
.chip:hover .chip-icon img { transform: scale(1.15); }
.bandeau-visual img.icon-illustration { filter: invert(1); max-height: 280px; border-radius: 0; }
.chip h3 { margin-bottom: 0.5rem; }
.chip p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.chip .btn { font-size: 1rem; padding: 0.6rem 1.8rem; }

/* ===== BANDEAU (sections alternées) ===== */
.bandeau {
  width: 85%;
  max-width: 1400px;
  margin: 3rem auto;
  padding: 3rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 3rem;
  transition: var(--transition);
}
.bandeau:hover { transform: translateY(-5px); }
.bandeau.reverse { flex-direction: row-reverse; }
.bandeau-text { flex: 1; }
.bandeau-text h2 { margin-bottom: 1rem; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.bandeau-text p { color: var(--text-muted); margin-bottom: 1rem; }
.bandeau-text ul { list-style: none; margin-bottom: 1.5rem; }
.bandeau-text ul li { padding: 0.3rem 0; color: var(--text-muted); }
.bandeau-text ul li::before { content: '→ '; color: var(--accent); font-weight: 700; }
.bandeau-visual { flex: 1; display: flex; align-items: center; justify-content: center; }
.bandeau-visual img { border-radius: 1.5rem; max-height: 350px; object-fit: cover; }
.bandeau-visual iframe { border-radius: 1.5rem; width: 100%; aspect-ratio: 16/9; border: none; }

/* ===== GALLERY ===== */
/* ===== CAROUSEL GALLERY ===== */
.carousel-wrapper {
  position: relative;
  padding: 0 3rem;
}
.gallery-carousel .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 1.5rem;
  padding: 1rem;
  min-height: 320px;
}
.gallery-carousel .swiper-slide img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 1rem;
  cursor: default;
  transition: transform 0.3s ease;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}
.gallery-carousel .swiper-slide img:hover {
  transform: scale(1.05);
}
.gallery-carousel .swiper-button-prev,
.gallery-carousel .swiper-button-next {
  color: #fff;
  background: rgba(255,255,255,0.1);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  -webkit-backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.gallery-carousel .swiper-button-prev::after {
  content: '❮';
  font-size: 22px;
  font-family: inherit;
}
.gallery-carousel .swiper-button-next::after {
  content: '❯';
  font-size: 22px;
  font-family: inherit;
}
.gallery-carousel .swiper-button-prev:hover,
.gallery-carousel .swiper-button-next:hover {
  background: rgba(255,255,255,0.2);
}
.gallery-carousel .swiper-pagination-bullet {
  background: rgba(255,255,255,0.4);
  opacity: 1;
}
.gallery-carousel .swiper-pagination-bullet-active {
  background: #fff;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lightbox.active {
  display: flex;
}
.lightbox-img {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 1rem;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s;
}
.lightbox-close:hover { transform: scale(1.2); }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.2s;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.25); }

/* ===== CARDS CATÉGORIES ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card-cat {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 250px;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  background-size: cover;
  background-position: center;
  transition: var(--transition);
  cursor: pointer;
}
.card-cat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,34,37,0.9), transparent 60%);
  transition: var(--transition);
}
.card-cat:hover { transform: scale(1.03); }
.card-cat:hover::before { background: linear-gradient(to top, rgba(30,34,37,0.95), rgba(30,34,37,0.3) 60%); }
.card-cat-content { position: relative; z-index: 1; }
.card-cat-content h3 { margin-bottom: 0.3rem; }
.card-cat-content p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== AUTRES ACTIVITÉS ===== */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.activity-item {
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  transition: var(--transition);
}
.activity-item:hover { transform: translateY(-3px); border-color: var(--accent); }
.activity-item svg { width: 32px; height: 32px; stroke: var(--accent); stroke-width: 1.5; fill: none; margin-bottom: 0.8rem; }
.activity-item h4 { font-size: 1.1rem; }

/* ===== PILLARS ===== */
.pillars { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; margin-top: 3rem; }
.pillar {
  text-align: center;
  padding: 2rem;
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}
.pillar svg { width: 48px; height: 48px; stroke: var(--accent); stroke-width: 1.5; fill: none; margin-bottom: 1rem; }
.pillar h3 { margin-bottom: 0.5rem; }
.pillar p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== CONTACT ===== */
.contact-form {
  max-width: 750px;
  margin: 0 auto;
  padding: 3rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.05);
}
.contact-form .form-group { margin-bottom: 1.5rem; }
.contact-form label {
  display: block;
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0.8rem;
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.08);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form .btn { width: 100%; text-align: center; }

/* ===== TARIFS ===== */
.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  align-items: stretch;
}
@media (max-width: 900px) { .tarifs-grid { grid-template-columns: 1fr; max-width: 400px; } }
.tarif-card {
  padding: 2.5rem 2rem;
  border-radius: 1.5rem;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.tarif-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(212,164,88,0.15);
  transform: scale(1.03);
}
.tarif-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.tarif-card.featured:hover { transform: scale(1.03) translateY(-5px); }
.tarif-price {
  font-family: 'Teko', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin: 1rem 0;
}
.tarif-card ul { list-style: none; text-align: left; margin: 1.5rem 0; flex: 1; }
.tarif-card ul li { padding: 0.4rem 0; color: var(--text-muted); font-size: 0.95rem; }
.tarif-card ul li::before { content: '✓ '; color: var(--accent); }

/* ===== FOOTER ===== */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 1.5rem; }
.footer-made-in {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.footer-made-in:hover { opacity: 1; }
.footer-france-logo {
  height: 28px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.15));
}
.footer-made-in span {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.footer-legal a {
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.3s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* Legal page content */
.legal-content {
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.8;
}
.legal-content h1 {
  font-family: 'Teko', sans-serif;
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-top: 2rem;
}
.legal-content h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
  color: var(--accent);
}
.legal-content p, .legal-content li {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.legal-content ul { padding-left: 1.5rem; }
.legal-content a { color: var(--accent); text-decoration: underline; }

/* ===== iOS PARALLAX FIX ===== */
@supports (-webkit-touch-callout: none) {
  .hero { background-attachment: scroll !important; }
}

/* ===== RESPONSIVE — 1024px (Tablet) ===== */
@media (max-width: 1024px) {
  .chips { grid-template-columns: repeat(2, 1fr); }
}

/* ===== RESPONSIVE — 768px (Mobile) ===== */
@media (max-width: 768px) {
  /* Existing rules */
  .chips { grid-template-columns: 1fr; }
  .bandeau { flex-direction: column !important; width: 95%; padding: 2rem; }
  .bandeau-visual iframe { aspect-ratio: 16/10; }
  .header-nav { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(30,34,37,0.98); flex-direction: column; justify-content: center; align-items: center; gap: 2rem; }
  .header-nav.open { display: flex; }
  .header-nav a { font-size: 1.5rem; }
  .menu-toggle { display: block; z-index: 1001; }
  .cards-grid { grid-template-columns: 1fr; }
  .activities-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { background-attachment: scroll; }

  /* Fix #1 — Contact grid */
  #contact [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }

  /* Fix #3 — Bandeau visuals */
  .bandeau-visual img { max-height: 250px; width: 100%; }
  .bandeau-visual iframe { width: 100%; }

  /* Fix #6 — Header brand */
  .header-brand img { height: 45px; }
  .header-brand span { font-size: 1.2rem; }

  /* Fix #7 — Hero padding */
  .hero-content { padding: 1rem; }
  .hero-content h1 { font-size: 1.6rem; }
  .hero { min-height: 80vh; }

  /* Fix #9 — FAQ details */
  #faq details { padding: 1rem !important; }
  #faq summary { font-size: 0.95rem !important; }

  /* Fix #10 — Footer links */
  .footer-links { flex-wrap: wrap; gap: 0.8rem; }
  .footer-links a { font-size: 0.85rem; }
  .footer-legal { flex-wrap: wrap; }

  /* Fix #11 — Gallery carousel nav */
  .gallery-carousel .swiper-button-prev,
  .gallery-carousel .swiper-button-next { width: 36px; height: 36px; }
  .gallery-carousel .swiper-button-prev::after,
  .gallery-carousel .swiper-button-next::after { font-size: 16px; }
  .gallery-carousel .swiper-slide { min-height: 220px; padding: 0.5rem; }

  /* Fix #13 — Tap targets (44px min) */
  .btn { padding: 0.8rem 2rem; min-height: 44px; }
  .header-nav a { padding: 0.5rem 0; min-height: 44px; display: flex; align-items: center; }
  .chip .btn { padding: 0.7rem 1.5rem; }

  /* Fix #14 — Activities */
  .activity-item { padding: 1rem; }
  .activity-item h3 { font-size: 0.9rem; }
  .activity-item svg { width: 28px; height: 28px; }

  /* Fix #15 — Bandeau text spacing */
  .bandeau { padding: 1.5rem; margin: 1.5rem auto; }
  .bandeau-text h2 { font-size: 1.5rem; }
  .bandeau-text h3 { font-size: 1.3rem; }
}

/* ===== RESPONSIVE — 480px (Small Mobile) ===== */
@media (max-width: 480px) {
  .activities-grid { grid-template-columns: 1fr; }
  .carousel-wrapper { padding: 0 1rem; }

  /* Fix #8 — Hero buttons stack */
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; text-align: center; }

  /* Fix #12 — Section padding */
  .section { padding: 2.5rem 0; }
  .section-title { margin-bottom: 2rem; }
}

/* ===== SOCIAL LINKS ===== */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}
.footer-social a {
  color: rgba(255,255,255,0.5);
  transition: color 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
}
.footer-social a:hover {
  color: #D4A458;
  transform: scale(1.15);
}

/* ===== COLOR PACKS ===== */
/* Cyber (blue) theme */
.theme-cyber {
  --theme-primary: var(--cyber-primary);
  --theme-secondary: var(--cyber-secondary);
  --theme-glow: var(--cyber-glow);
  --theme-glass: var(--cyber-glass);
}
.theme-cyber .chip {
  border-color: rgba(0, 168, 255, 0.2);
  background: var(--cyber-glass);
}
.theme-cyber .chip:hover {
  border-color: var(--cyber-primary);
  box-shadow: 0 0 24px rgba(0, 168, 255, 0.3);
}
.theme-cyber .chip hr {
  background: rgba(0, 168, 255, 0.3);
}
.theme-cyber .chip:hover hr {
  background: var(--cyber-primary);
}
.theme-cyber .chip-icon svg {
  stroke: var(--cyber-primary);
}
.theme-cyber .btn-primary {
  background: var(--cyber-primary);
  color: white;
  border-color: var(--cyber-primary);
}
.theme-cyber .btn-primary:hover {
  background: var(--cyber-secondary);
  box-shadow: var(--cyber-glow);
}
.theme-cyber .btn-outline {
  color: var(--cyber-primary);
  border-color: var(--cyber-primary);
}
.theme-cyber .btn-outline:hover {
  background: rgba(0, 168, 255, 0.1);
}
.theme-cyber .section-title h2 {
  color: var(--cyber-primary);
}
.theme-cyber .section-title p {
  color: rgba(255, 255, 255, 0.7);
}

/* IA (purple) theme */
.theme-ia {
  --theme-primary: var(--ia-primary);
  --theme-secondary: var(--ia-secondary);
  --theme-glow: var(--ia-glow);
  --theme-glass: var(--ia-glass);
}
.theme-ia .chip {
  border-color: rgba(155, 89, 182, 0.2);
  background: var(--ia-glass);
}
.theme-ia .chip:hover {
  border-color: var(--ia-primary);
  box-shadow: 0 0 24px rgba(155, 89, 182, 0.3);
}
.theme-ia .chip hr {
  background: rgba(155, 89, 182, 0.3);
}
.theme-ia .chip:hover hr {
  background: var(--ia-primary);
}
.theme-ia .chip-icon svg {
  stroke: var(--ia-primary);
}
.theme-ia .btn-primary {
  background: var(--ia-primary);
  color: white;
  border-color: var(--ia-primary);
}
.theme-ia .btn-primary:hover {
  background: var(--ia-secondary);
  box-shadow: var(--ia-glow);
}
.theme-ia .btn-outline {
  color: var(--ia-primary);
  border-color: var(--ia-primary);
}
.theme-ia .btn-outline:hover {
  background: rgba(155, 89, 182, 0.1);
}
.theme-ia .section-title h2 {
  color: var(--ia-primary);
}
.theme-ia .section-title p {
  color: rgba(255, 255, 255, 0.7);
}

/* Badges */
.badge-cyber,
.badge-ia {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-family: 'Teko', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0.25rem;
}
.badge-cyber {
  background: rgba(0, 168, 255, 0.15);
  color: var(--cyber-primary);
  border: 1px solid rgba(0, 168, 255, 0.3);
}
.badge-ia {
  background: rgba(155, 89, 182, 0.15);
  color: var(--ia-primary);
  border: 1px solid rgba(155, 89, 182, 0.3);
}

/* Glow text */
.glow-text-cyber {
  text-shadow: 0 0 10px rgba(0, 168, 255, 0.5);
}
.glow-text-ia {
  text-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
}

/* Gradient backgrounds */
.bg-gradient-cyber {
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.1) 0%, transparent 100%);
}
.bg-gradient-ia {
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.1) 0%, transparent 100%);
}

/* Anchor offset for fixed header */
#contact {
  scroll-margin-top: 100px;
}
