/* =========================================
   ASSETS/CSS/STYLE.CSS
   Design System: PromethEUs (Fluid Dark UI)
   ========================================= */

:root {
  /* --- Palette --- */
  --bg-deep: #020617;     /* Fond principal */
  --bg-surface: #0f172a;  /* Fond des cartes */
  --bg-surface-hover: #1e293b; 
  
  --primary: #3b82f6;     /* Bleu Électrique */
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.4);
  --accent: #fbbf24;      /* Or Europe */
  
  /* --- Typographie --- */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* --- UI --- */
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --radius: 16px;
  --nav-height: 90px;
  
  /* --- Animations --- */
  --ease-fluid: cubic-bezier(0.19, 1, 0.22, 1);
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s var(--ease-fluid);
}

/* =========================================
   1. RESET & BASE (LAYOUT STICKY FOOTER)
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { 
    scroll-behavior: smooth; 
    -webkit-font-smoothing: antialiased; 
    height: 100%; /* Crucial pour le sticky footer */
}

body {
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(124, 58, 237, 0.15) 0px, transparent 50%);
  background-size: 150% 150%;
  background-attachment: fixed; /* Évite que le fond bouge */
  animation: drift 20s ease infinite alternate;
  
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  
  /* STRUCTURE FLEX VERTICALE POUR LE FOOTER */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

@keyframes drift { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }

h1, h2, h3, h4, h5, h6 { color: #fff; letter-spacing: -0.02em; font-weight: 700; }
p { color: var(--text-muted); font-size: 1.05rem; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; position: relative; }

/* =========================================
   2. HEADER & NAVIGATION (Liquid Glass)
   ========================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 3000;
  height: var(--nav-height); display: flex; align-items: center;
  transition: background 0.3s ease;
  width: 100%;
}
.header.scrolled {
  background: rgba(2, 6, 23, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border); box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 100%; }

.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.25rem; color: #fff; letter-spacing: -0.02em; }
.brand img { filter: drop-shadow(0 0 10px rgba(59,130,246,0.5)); transition: transform 0.3s; }
.brand:hover img { transform: scale(1.1) rotate(5deg); }

.nav-links {
  position: relative; display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 60px; padding: 6px; height: 56px;
}
/* La Goutte Liquide */
.nav-liquid-cursor {
  position: absolute; top: 50%; transform: translateY(-50%); left: 6px;
  height: calc(100% - 10px); width: 0px; border-radius: 40px;
  background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2), inset 0 0 15px rgba(255, 255, 255, 0.1);
  filter: url(#liquid-distortion);
  transition: left 0.5s cubic-bezier(0.23, 1, 0.32, 1), width 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease;
  pointer-events: none; opacity: 0; z-index: 0;
}
.nav-item {
  position: relative; z-index: 1; height: 100%; display: flex; align-items: center;
  padding: 0 24px; border-radius: 40px; font-size: 0.95rem; font-weight: 500;
  color: rgba(255,255,255,0.6); cursor: pointer; transition: color 0.3s;
  background: transparent; border: none;
}
.nav-item:hover, .nav-item.active { color: #fff; text-shadow: 0 0 12px rgba(255,255,255,0.4); }

.btn-cta { background: var(--text-main); color: var(--bg-deep); padding: 10px 24px; border-radius: 8px; font-weight: 700; font-size: 0.9rem; transition: 0.2s; }
.btn-cta:hover { transform: translateY(-1px); box-shadow: 0 0 15px rgba(255,255,255,0.3); }

.btn-login { 
  background: transparent; color: #fff; padding: 10px 20px; border-radius: 8px; 
  font-weight: 600; font-size: 0.9rem; border: 1px solid rgba(255, 255, 255, 0.2); 
  display: flex; gap: 8px; transition: 0.2s;
}
.btn-login:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 4px; }

/* On cache les boutons mobiles sur desktop */
.mobile-only-btns { display: none; }

/* =========================================
   3. HERO & BOUTONS
   ========================================= */
.hero {
  min-height: auto; display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center; padding-top: 40px; padding-bottom: 80px;
  position: relative; overflow: hidden; margin-bottom: 40px; width: 100%;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.04em;
  margin: 0 auto 24px auto; max-width: 900px;
  /* CORRECTIF DÉGRADÉ */
  display: inline-block;
  background: linear-gradient(to bottom, #ffffff 30%, #94a3b8 100%); 
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; color: transparent;
}
.hero p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 40px; color: #cbd5e1; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--primary); color: #fff; padding: 14px 32px; border-radius: 99px; font-weight: 600;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3); transition: var(--transition-smooth);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5); transform: translateY(-2px) scale(1.02); }

.btn-ghost {
  background: transparent; color: #fff; padding: 14px 32px; border-radius: 99px;
  font-weight: 600; border: 1px solid var(--border); transition: var(--transition-fast);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.25); transform: translateY(-2px); }

/* =========================================
   4. BENTO GRID & SPOTLIGHT CARDS
   ========================================= */
.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin: 40px 0; }

/* Base Card Style (Shared) */
.card-spotlight, .magic-card, .card-soft {
  position: relative; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease-fluid), box-shadow 0.4s, border-color 0.4s;
  transform-style: preserve-3d;
  --x: 0px; --y: 0px;
}

/* AU SURVOL : Transition INSTANTANÉE (0s) pour suivre la souris sans délai */
.card-spotlight:hover, .magic-card:hover {
  transition: transform 0s, box-shadow 0.4s, border-color 0.4s; 
  border-color: rgba(59, 130, 246, 0.4); background: var(--bg-surface-hover);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

/* Spotlight Gradient */
.card-spotlight::before, .magic-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(800px circle at var(--x) var(--y), rgba(59, 130, 246, 0.12), transparent 40%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 1;
}
.card-spotlight:hover::before, .magic-card:hover::before { opacity: 1; }
.card-content, .magic-card-content { position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%; }
.card-icon {
  width: 48px; height: 48px; background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.5rem; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform var(--transition-smooth);
}
.card-spotlight:hover .card-icon { transform: scale(1.1) rotate(5deg); }

/* Soft UI Cards (Home) */
.card-soft { background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-radius: 32px; box-shadow: 0 4px 30px rgba(0,0,0,0.1); }
.card-soft:hover { transform: translateY(-6px); background: rgba(15, 23, 42, 0.8); border-color: rgba(59, 130, 246, 0.3); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5); }
.card-soft-img-container { width: 100%; height: 240px; border-radius: 24px; overflow: hidden; margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.05); position: relative; }
.card-soft-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.card-soft:hover .card-soft-img { transform: scale(1.1); }
.soft-tag { background: rgba(59, 130, 246, 0.15); color: #60a5fa; padding: 6px 12px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; display: inline-block; margin-bottom: 12px; border: 1px solid rgba(59, 130, 246, 0.2); }

/* =========================================
   5. MAGIC BENTO (Objectifs & News)
   ========================================= */
.magic-bento-grid { 
  display: grid; grid-template-columns: repeat(4, 1fr); 
  grid-auto-rows: 260px; gap: 24px; margin-bottom: 80px; 
}

.magic-card { justify-content: flex-end; padding: 24px; cursor: pointer; }
.magic-card-content { pointer-events: none; transform: translateZ(20px); position: relative; z-index: 3; }
.magic-title { font-size: 1.2rem; font-weight: 700; color: #fff; margin: 0 0 8px 0; line-height: 1.3; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.magic-text { 
  font-size: 0.9rem; color: rgba(255,255,255,0.8); margin: 0; line-height: 1.5; 
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; 
}
.magic-card-bg { 
    position: absolute; inset: 0; z-index: 0; 
    transition: transform 0.6s var(--ease-fluid); opacity: 0.4; 
    /* CORRECTIF IMAGES BENTO */
    width: 100%; height: 100%; object-fit: cover; 
}
.magic-card:hover .magic-card-bg { transform: scale(1.1); opacity: 0.6; }
.obj-number { 
    position: absolute; top: 20px; right: 20px; font-size: 1.5rem; font-weight: 800; 
    color: rgba(255,255,255,0.1); z-index: 10; transition: 0.3s; pointer-events: none; 
}
.magic-card:hover .obj-number { color: rgba(255,255,255,0.4); transform: scale(1.2); }
.magic-card .magic-close { display: none; }

.read-more-hint { font-size: 0.75rem; color: var(--primary); text-transform: uppercase; margin-top: 10px; opacity: 0; transition: 0.3s; letter-spacing: 0.05em; font-weight: 700; }
.magic-card:hover .read-more-hint { opacity: 1; transform: translateY(-2px); }

/* Spans */
.span-2-2 { grid-column: span 2; grid-row: span 2; } .span-2-2 .magic-title { font-size: 1.8rem; }
.span-2-1 { grid-column: span 2; grid-row: span 1; }
.span-1-2 { grid-column: span 1; grid-row: span 2; }
.span-1-1 { grid-column: span 1; grid-row: span 1; }

/* 6. MODAL SYSTEM (Expanded) */
.magic-backdrop {
  position: fixed; inset: 0; background: rgba(2, 6, 23, 0.7); 
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 2000; 
  opacity: 0; visibility: hidden; transition: all 0.3s;
}
.magic-backdrop.active { opacity: 1; visibility: visible; }

.magic-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -45%) scale(0.95);
  width: 90vw; max-width: 700px; max-height: 85vh;
  background: rgba(15, 23, 42, 0.95); 
  border: 1px solid var(--primary); border-radius: 24px; padding: 40px;
  z-index: 2001; overflow-y: auto; box-shadow: 0 50px 100px -20px rgba(0,0,0,0.8);
  opacity: 0; visibility: hidden; transition: all 0.4s var(--ease-fluid);
}
.magic-modal.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.magic-modal h3 { font-size: 2rem; color: var(--primary); margin-bottom: 20px; }
.magic-modal p { font-size: 1.1rem; line-height: 1.8; color: #fff; }

.magic-modal-close {
  position: absolute; top: 20px; right: 20px; width: 40px; height: 40px;
  background: rgba(255,255,255,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; color: #fff;
}
.magic-modal-close:hover { background: var(--primary); }

/* 7. PROFILE CARDS (Team) */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px; margin-bottom: 80px; }

.pc-card-wrapper {
  perspective: 1000px; height: 420px; transition: height 0.5s var(--ease-fluid); z-index: 1; position: relative; cursor: pointer;
  --pointer-x: 50%; --pointer-y: 50%;
}
.pc-card-wrapper.expanded { height: auto; min-height: 550px; z-index: 20; }

.pc-behind {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(59, 130, 246, 0.4) 0%, transparent 50%);
  filter: blur(60px); opacity: 0; transition: opacity 0.3s;
}
.pc-card-wrapper:hover .pc-behind { opacity: 1; }

.pc-card {
  height: 100%; width: 100%; border-radius: 24px; position: relative;
  background: rgba(15, 23, 42, 0.95); border: 1px solid rgba(255,255,255,0.1); overflow: hidden;
  transform-style: preserve-3d; transition: transform 0.5s var(--ease-fluid), border-color 0.3s;
}
.pc-card-wrapper:hover .pc-card { transition: transform 0s, border-color 0.3s; border-color: rgba(255,255,255,0.3); }

.pc-inside { inset: 0; position: absolute; background-color: rgba(0,0,0,0.2); pointer-events: none; }
.pc-shine { position: absolute; inset: 0; mix-blend-mode: color-dodge; z-index: 3; pointer-events: none; opacity: 0.5; }
.pc-glare { position: absolute; inset: 0; z-index: 4; pointer-events: none; mix-blend-mode: overlay; opacity: 0.5; background: radial-gradient(farthest-corner circle at var(--pointer-x) var(--pointer-y), rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 60%); }

.pc-content-layer { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; justify-content: flex-end; }
.pc-avatar-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; mask-image: linear-gradient(to top, transparent 5%, black 60%); transition: transform 0.4s var(--ease-fluid); z-index: 1; }
.pc-card-wrapper:hover .pc-avatar-img { transform: scale(1.05); }
.pc-user-info { position: relative; z-index: 10; background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(12px); border-top: 1px solid rgba(255, 255, 255, 0.15); padding: 20px; transition: background 0.3s; }
.pc-card-wrapper.expanded .pc-user-info { background: rgba(15, 23, 42, 0.98); }
.pc-expanded-content { max-height: 0; overflow: hidden; opacity: 0; transition: all 0.5s var(--ease-fluid); }
.pc-card-wrapper.expanded .pc-expanded-content { max-height: 300px; opacity: 1; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); }
.pc-bio { font-size: 0.9rem; color: #cbd5e1; line-height: 1.6; margin-bottom: 16px; }
.pc-socials { display: flex; gap: 10px; }
.pc-social-link { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); border-radius: 8px; color: #fff; transition: 0.2s; }
.pc-social-link:hover { background: var(--primary); transform: translateY(-2px); }
.pc-user-details { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pc-mini-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #000; }
.pc-mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pc-user-text h3 { margin: 0; font-size: 1.1rem; color: #fff; font-weight: 700; }
.pc-user-text span { font-size: 0.8rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.pc-expand-btn { width: 100%; padding: 10px; background: rgba(255,255,255,0.1); border: none; border-radius: 8px; color: #fff; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pc-expand-btn:hover { background: var(--primary); border-color: var(--primary); }
.pc-expand-btn svg { width: 16px; height: 16px; transition: transform 0.3s; }
.pc-card-wrapper.expanded .pc-expand-btn svg { transform: rotate(180deg); }

/* 8. GOOEY BUTTON */
.gooey-wrapper { position: relative; width: 100%; display: flex; justify-content: center; margin-top: 30px; }
.gooey-particles-container { position: absolute; inset: -100px; pointer-events: none; z-index: 0; filter: blur(8px) contrast(20); mix-blend-mode: screen; display: flex; justify-content: center; align-items: center; }
.gooey-btn { position: relative; z-index: 10; background: var(--primary); color: #fff; font-weight: 700; font-size: 1rem; border: none; border-radius: 30px; padding: 16px 40px; cursor: pointer; width: 100%; outline: none; transition: transform 0.1s, background 0.3s; overflow: hidden; }
.gooey-btn:active { transform: scale(0.97); }
.particle { position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; border-radius: 50%; opacity: 0; pointer-events: none; transform: translate(-50%, -50%); }
.particle.animate { animation: particle-fly calc(var(--time)) cubic-bezier(0.25, 1, 0.5, 1) forwards; }
.particle .point { display: block; width: 100%; height: 100%; border-radius: 50%; background-color: var(--color); transform: scale(0); }
.particle.animate .point { animation: point-scale calc(var(--time)) cubic-bezier(0.25, 1, 0.5, 1) forwards; }
@keyframes particle-fly { 0% { transform: translate(calc(-50% + var(--start-x)), calc(-50% + var(--start-y))) rotate(0deg); opacity: 1; } 100% { transform: translate(calc(-50% + var(--end-x)), calc(-50% + var(--end-y))) rotate(var(--rotate)); opacity: 0; } }
@keyframes point-scale { 0% { transform: scale(0); } 20% { transform: scale(var(--scale)); } 100% { transform: scale(0); } }

/* 9. FOOTER (STICKY & SIZES) */
.footer { 
  position: relative; margin-top: auto; padding: 80px 0 40px; background: #020617; 
  border-top: 1px solid var(--border); overflow: hidden; width: 100%; 
  flex-shrink: 0; /* Empêche le footer de s'écraser */
}
.footer-glow { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80%; height: 300px; background: radial-gradient(ellipse at bottom, rgba(59, 130, 246, 0.08), transparent 70%); pointer-events: none; z-index: 0; }
.footer .container { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 60px; margin-bottom: 60px; width: 100%; }

/* Force taille Logo */
.footer-logo { width: 42px !important; height: 42px !important; object-fit: contain; filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3)); }
.brand-text { font-size: 1.4rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.footer-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; max-width: 320px; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: #fff; opacity: 0.7; margin-bottom: 24px; }
.footer-links a { display: block; margin-bottom: 10px; color: var(--text-muted); transition: 0.2s; }
.footer-links a:hover { color: var(--primary); transform: translateX(4px); }

/* Force taille Icones & Couleurs */
.social-links { display: flex; flex-direction: column; gap: 12px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0; width: 40px; height: 40px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 12px; color: var(--text-muted); transition: 0.2s; }
.social-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.social-btn img, .social-btn svg { width: 20px !important; height: 20px !important; min-width: 20px; object-fit: contain; fill: currentColor; }

/* Couleurs spécifiques */
.social-btn.linkedin:hover { border-color: #0077b5; color: #0077b5; background: rgba(0,119,181,0.1); }
.social-btn.x:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.1); }
.social-btn.insta:hover { border-color: #e1306c; color: #e1306c; background: rgba(225,48,108,0.1); }
.social-btn.rss:hover { border-color: #f59e0b; color: #f59e0b; background: rgba(245,158,11,0.12); }

/* Mail Button */
.mail-btn { width: auto; padding: 0 16px; justify-content: flex-start; color: var(--text-main); font-size: 0.9rem; width: fit-content; }
.mail-btn:hover { border-color: var(--primary); color: #fff; background: var(--primary); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 24px; display: flex; justify-content: space-between; font-size: 0.85rem; color: #64748b; width: 100%; }
.footer-bottom-links { display: flex; align-items: center; gap: 8px; }

/* =========================================
   10. GLOBAL & RESPONSIVE (FLEX STICKY FIX)
   ========================================= */
/* Le MAIN pousse le FOOTER */
main#main-content { 
  display: flex; flex-direction: column; align-items: center; 
  width: 100%; flex: 1; 
  padding-bottom: 0; /* Laisse le footer gérer */
  padding-top: 65px;
}

.newsletter-wrapper, .login-wrapper { width: 100%; display: flex; justify-content: center; align-items: center; flex-grow: 1; }
.about-wrapper { display: flex; align-items: flex-start; gap: 60px; padding-top: 40px; width: 100%; }
.page-header-container { text-align: center; max-width: 900px; margin: 0 auto 80px auto; padding: 0 20px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; width: 100%; }
.news-title { font-size: 1.4rem; margin-bottom: 12px; line-height: 1.3; transition: 0.2s; }

/* Scroll Reveal */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease-fluid), transform 0.8s var(--ease-fluid); }
[data-reveal="active"] { opacity: 1; transform: translateY(0); }
[data-reveal-delay="100"] { transition-delay: 0.1s; } [data-reveal-delay="200"] { transition-delay: 0.2s; }
[data-reveal-delay="300"] { transition-delay: 0.3s; } [data-reveal-delay="400"] { transition-delay: 0.4s; }

@media (max-width: 1024px) { .magic-bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 280px; } }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 20px; } .about-wrapper { flex-direction: column; } .about-nav { display: none; } }

/* =========================================
   11. MOBILE SIDEBAR SYSTEM (FIXED)
   ========================================= */

/* Par défaut (Desktop) : On cache les éléments mobiles */
.mobile-toggle, .mobile-menu-overlay { display: none !important; }
.desktop-only { display: flex !important; }

/* MOBILE (< 768px) */
@media (max-width: 768px) {
    /* Cacher les éléments Desktop */
    .desktop-only { display: none !important; }
    .desktop-actions { display: none !important; }
    
    /* Afficher le burger */
    .mobile-toggle { 
        display: block !important; 
        z-index: 3000; 
        position: relative; 
        background: none; border: none; color: #fff; font-size: 1.8rem; cursor: pointer;
    }

    /* Style de l'Overlay Mobile */
    .mobile-menu-overlay {
        display: block !important;
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 2900; /* Juste sous le burger */
        
        /* Animation d'entrée */
        opacity: 0; visibility: hidden;
        transform: translateX(100%); /* Slide depuis la droite */
        transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    }

    /* Classe ajoutée par JS pour ouvrir */
    .mobile-menu-overlay.active {
        opacity: 1; visibility: visible;
        transform: translateX(0);
    }

    /* Contenu du menu mobile */
    .mobile-menu-content {
        height: 100%;
        display: flex; flex-direction: column; justify-content: center; align-items: center;
        padding: 40px;
    }

    .mobile-nav-links {
        display: flex; flex-direction: column; align-items: center; gap: 24px;
    }

    .mobile-nav-links a {
        font-size: 1.5rem; font-weight: 800; color: #fff; text-decoration: none;
        transition: color 0.3s;
    }
    .mobile-nav-links a.active { color: var(--primary); }

    .mobile-actions {
        display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 300px;
        margin-top: 40px; /* Espace après les liens */
    }
    
    .mobile-btn {
        width: 100%; justify-content: center; padding: 14px; font-size: 1rem;
    }
    .btn-login.mobile-btn { border-color: rgba(255,255,255,0.2); color: #fff; }

    /* Ajustements Layout Mobile */
    .hero { padding-top: 120px; } 
    .magic-bento-grid { display: flex; flex-direction: column; gap: 20px; } 
    .magic-card { min-height: 260px; }
    .team-grid { grid-template-columns: 1fr; } 
    .pc-card-wrapper { height: 350px; } 
    .news-home-grid { grid-template-columns: 1fr; }
    
    /* Empilement boutons Hero */
    .hero-actions { flex-direction: column; width: 100%; align-items: center; gap: 16px; }
    .hero-actions a { width: 100%; max-width: 300px; justify-content: center; }

    /* Footer Mobile */
    .footer-grid { grid-template-columns: 1fr !important; text-align: center; gap: 40px; }
    .footer-brand { align-items: center; }
    .brand-link { justify-content: center; }
    .social-links { flex-direction: row; justify-content: center; gap: 15px; flex-wrap: wrap; }
    .mail-btn { margin: 0 auto; }
}

@media (max-width: 600px) { .footer-bottom { flex-direction: column; gap: 12px; } }

/* =========================================
   12. FIX ARTICLE & SIDEBAR SHARE
   ========================================= */

/* Conteneur de l'article */
.article-container {
    display: grid;
    grid-template-columns: 1fr 300px; /* Contenu + Sidebar */
    gap: 60px;
    align-items: start;
}

/* Sidebar de partage */
.share-sidebar {
    position: sticky;
    top: 140px; /* Pour ne pas passer sous le header */
}

/* Boutons de partage (Surcharge du style footer) */
.share-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Texte aligné à gauche */
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    height: auto; /* Écrase la hauteur fixe du footer */
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: var(--primary);
    transform: translateX(5px);
}

.share-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* RESPONSIVE ARTICLE */
@media (max-width: 900px) {
    .article-container {
        grid-template-columns: 1fr; /* Une seule colonne */
    }
    
    .share-sidebar {
        position: relative;
        top: 0;
        margin-top: 40px;
        display: flex; /* Optionnel : Afficher en ligne sur mobile ? */
        flex-direction: column;
    }
}
