/* ==========================================================================
   VARIABLES & RESET
   ========================================================================== */
:root {
  --wz-blue: #0075FF;
  --wz-blue-hover: #005ECC;
  --wz-dark: #1F2329;
  --wz-gray-light: #F8F9FA;
  --wz-gray-border: #E8EAED;
  --wz-text: #202124;
  --wz-text-muted: #5F6368;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Rubik', sans-serif; background-color: #FFFFFF; color: var(--wz-text); line-height: 1.5; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }

/* ==========================================================================
   BANNIÈRE DE CONSTRUCTION
   ========================================================================== */
.construction-banner {
  background: repeating-linear-gradient(45deg, #FFD100, #FFD100 10px, #E5BC00 10px, #E5BC00 20px);
  color: #000;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
}
.banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255,255,255,0.8);
  padding: 4px 16px;
  border-radius: 20px;
  display: inline-flex;
}
.banner-content i { font-size: 16px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.wz-header {
  position: sticky;
  top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wz-gray-border);
}
.header-logo-link { display: flex; align-items: center; gap: 12px; }
.header-logo-img { width: 40px; height: 40px; border-radius: 8px; }
.header-titles { display: flex; flex-direction: column; }
.header-logo { font-weight: 800; font-size: 1.1rem; color: var(--wz-dark); }
.header-tag { font-size: 0.75rem; color: var(--wz-blue); font-weight: 600; text-transform: uppercase; }

.header-nav { display: flex; gap: 4px; }
.hnav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 20px;
  font-weight: 600; font-size: 0.95rem; color: var(--wz-text-muted);
  transition: var(--transition);
}
.hnav-link i { font-size: 18px; }
.hnav-link:hover { background-color: var(--wz-gray-light); color: var(--wz-text); }
.hnav-link.active { background-color: #E3F0FF; color: var(--wz-blue); }

.btn-wme-header {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 20px;
  background: #FFF8E1; color: #E07700; font-weight: 700; font-size: 0.9rem;
  transition: var(--transition);
}
.btn-wme-header:hover { background: #FFECB3; }

/* ==========================================================================
   ROUTING & REVEAL
   ========================================================================== */
.app-view { display: none; min-height: 80vh; }
.app-view.active { display: block; animation: fadeIn 0.4s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

.page-section { max-width: 1200px; margin: 0 auto; padding: 60px 24px; }
.section-header { margin-bottom: 40px; }
.section-title { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 8px; }
.section-sub { font-size: 1.1rem; color: var(--wz-text-muted); }

/* ==========================================================================
   HERO ACCUEIL (Avec 3D)
   ========================================================================== */
.hero-am {
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  align-items: center; gap: 40px;
  max-width: 1200px; margin: 0 auto; padding: 80px 24px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px;
  background: #E6F4EA; color: #137333; font-weight: 700; font-size: 0.85rem;
  margin-bottom: 24px;
}

.hero-title { font-size: 3.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 24px; letter-spacing: -1px; }
.hero-accent { color: var(--wz-blue); }
.hero-sub { font-size: 1.2rem; color: var(--wz-text-muted); margin-bottom: 32px; line-height: 1.6; }

.sectors-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; }
.sector-card {
  background: var(--wz-gray-light); padding: 16px; border-radius: 16px; border: 1px solid var(--wz-gray-border);
}
.sector-card i { color: var(--wz-blue); margin-bottom: 8px; display: block; }
.sector-card strong { display: block; font-size: 0.9rem; margin-bottom: 4px; }
.sector-card span { font-size: 0.85rem; color: var(--wz-text-muted); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background-color: var(--wz-blue); color: white;
  padding: 12px 24px; border-radius: 30px; border: none;
  font-weight: 700; font-size: 1rem; transition: var(--transition); cursor: pointer;
}
.btn-primary:hover { background-color: var(--wz-blue-hover); transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0, 117, 255, 0.2); }

/* --- EFFET 3D LOGO --- */
.hero-am-visual { display: flex; justify-content: center; }
.scene-3d { perspective: 1000px; width: 350px; height: 350px; display: flex; align-items: center; justify-content: center; }
.card-3d {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #FFFFFF 0%, #E3F0FF 100%);
  border-radius: 40px;
  position: relative; transform-style: preserve-3d;
  box-shadow: 0 20px 40px rgba(0,117,255,0.15);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.8);
}
.floating-logo {
  width: 160px; border-radius: 32px;
  transform: translateZ(60px); /* L'image sort de la carte */
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  pointer-events: none;
}
.card-glow {
  position: absolute; inset: 0; border-radius: 40px;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.8), transparent);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.scene-3d:hover .card-glow { opacity: 1; }

/* ==========================================================================
   TDF REDIRECT CARD
   ========================================================================== */
.tdf-redirect-card {
  position: relative; overflow: hidden;
  background: var(--wz-dark); color: white;
  border-radius: 24px; padding: 60px 40px; text-align: center;
}
.tdf-redirect-bg {
  position: absolute; inset: 0; opacity: 0.1;
  background-image: radial-gradient(#FFD100 2px, transparent 2px);
  background-size: 30px 30px; pointer-events: none;
}
.tdf-redirect-content { position: relative; z-index: 2; max-width: 600px; margin: 0 auto; }
.tdf-redirect-content h3 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.tdf-redirect-content p { font-size: 1.1rem; color: #A0AABF; margin-bottom: 32px; }
.btn-tdf-large {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--tdf-yellow); color: #000;
  padding: 16px 32px; border-radius: 30px;
  font-weight: 800; font-size: 1.1rem; transition: var(--transition);
}
.btn-tdf-large:hover { transform: scale(1.05); box-shadow: 0 10px 25px rgba(255,209,0,0.3); }

/* ==========================================================================
   OUTILS & LIENS
   ========================================================================== */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.tool-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 24px; border-radius: 16px;
  background: var(--wz-gray-light); border: 1px solid var(--wz-gray-border);
  transition: var(--transition);
}
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.06); border-color: #DADCE0; background: #FFF; }
.tool-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tool-body strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.tool-body p { font-size: 0.85rem; color: var(--wz-text-muted); }

/* ==========================================================================
   CONTACT (Formulaire)
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.mail-box {
  display: flex; align-items: center; gap: 16px;
  padding: 24px; background: var(--wz-gray-light); border-radius: 16px; border: 1px solid var(--wz-gray-border);
}
.mail-box i { font-size: 32px; color: var(--wz-blue); }
.mail-box strong { display: block; font-size: 0.9rem; color: var(--wz-text-muted); margin-bottom: 4px; }
.mail-box a { font-size: 1.1rem; font-weight: 700; color: var(--wz-text); }

.contact-form-wrapper { position: relative; padding: 32px; border-radius: 24px; border: 1px solid var(--wz-gray-border); background: #FFF; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.disabled-form { opacity: 0.2; pointer-events: none; filter: blur(2px); }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 8px; }
.input-group input, .input-group textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--wz-gray-border); border-radius: 8px; background: var(--wz-gray-light); font-family: inherit; }

.form-overlay {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; background: rgba(255,255,255,0.7); backdrop-filter: blur(4px); border-radius: 24px; padding: 24px;
}
.form-overlay i { font-size: 48px; color: #E07700; margin-bottom: 16px; }
.form-overlay h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.form-overlay p { font-size: 0.9rem; color: var(--wz-text-muted); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.wz-footer { border-top: 1px solid var(--wz-gray-border); padding: 40px 24px 24px; background: #FFF; margin-top: 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; margin-bottom: 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { width: 40px; border-radius: 8px; }
.footer-title { font-weight: 800; }
.footer-author { font-size: 0.85rem; color: var(--wz-text-muted); }
.footer-copy { text-align: center; font-size: 0.8rem; color: var(--wz-text-muted); }

/* Responsive */
@media (max-width: 900px) {
  .hero-am { grid-template-columns: 1fr; text-align: center; }
  .sectors-grid { justify-content: center; }
  .contact-layout { grid-template-columns: 1fr; }
  .header-nav { display: none; }
}
/* Cache le bouton burger sur PC */
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; }

/* Styles pour le menu mobile */
.mobile-nav {
  display: none; position: fixed; inset: 0;
  background: white; z-index: 1000;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem;
}
.mobile-nav.active { display: flex; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 1.5rem; text-align: center; }
.mobile-nav-links a { font-size: 1.5rem; font-weight: 700; color: var(--wz-dark); }
.close-menu { position: absolute; top: 20px; right: 20px; border: none; background: none; }

/* Responsive Mobile */
@media (max-width: 768px) {
  .header-nav { display: none; } /* Cache le menu classique */
  .mobile-menu-toggle { display: block; } /* Affiche le bouton burger */
}