/* =========================================================
   APH — styles.css (BASE UTILISATEUR + FOND GRIS + ORBES RAPIDES)
   - Tout votre ancien code est conservé (Burger, Inputs, Admin)
   - Changement : Fond Noir -> Gris Ardoise (#2b2d31)
   - Ajout : 4 Orbes rouges qui bougent vite
   ========================================================= */

/* ---------- Variables ---------- */
:root{
  /* J'ai légèrement éclairci le rouge pour qu'il se voie bien sur le gris */
  --aph-red: #5e0a02;
  --aph-red-dark: #4a0600;
  --aph-white: #ffffff;

  /* NOUVEAU FOND : Gris Ardoise (au lieu de Noir) */
  --bg: #2b2d31; 

  --ink: #ffffff;
  --muted: rgba(255,255,255,.85);

  --card: rgba(255,255,255,.05);      
  --line: rgba(255,255,255,.15);
  --shadow: 0 10px 40px rgba(0,0,0,.25);

  --radius: 18px;
  --blur-nav: 14px;
  --blur-card: 12px;
}

/* ---------- Base et Orbes ---------- */
*{ box-sizing:border-box; }
html,body{ height:100%; }

html{ color-scheme: dark; }

body{
  margin:0;
  font-family: Unbounded, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);

  /* Fond dégradé gris ardoise */
  background: linear-gradient(180deg, #2b2d31 0%, #202225 100%);
  background-attachment: fixed;
  
  position: relative;
  min-height: 100vh;
  overflow-x: hidden; /* Important pour les orbes */
  z-index: 1;
}

/* --- LES 4 ORBES RAPIDES (Ajoutées ici) --- */

/* Orbe 1 */
html::before {
  content: ''; position: fixed;
  top: -5%; left: -5%; width: 45vw; height: 45vw; max-width: 400px; max-height: 400px;
  background: radial-gradient(circle, rgba(94, 10, 2, 0.5) 0%, transparent 70%);
  filter: blur(50px); border-radius: 50%; z-index: -2; opacity: 0.6;
  animation: float1 12s ease-in-out infinite alternate;
}
/* Orbe 2 */
html::after {
  content: ''; position: fixed;
  bottom: -5%; right: -5%; width: 50vw; height: 50vw; max-width: 450px; max-height: 450px;
  background: radial-gradient(circle, rgba(94, 10, 2, 0.4) 0%, transparent 70%);
  filter: blur(60px); border-radius: 50%; z-index: -2; opacity: 0.5;
  animation: float2 11s ease-in-out infinite alternate-reverse;
}
/* Orbe 3 */
body::before {
  content: ''; position: fixed;
  top: 40%; left: -10%; width: 30vw; height: 30vw; max-width: 300px; max-height: 300px;
  background: radial-gradient(circle, rgba(94, 10, 2, 0.35) 0%, transparent 70%);
  filter: blur(40px); border-radius: 50%; z-index: -1; opacity: 0.4;
  animation: float3 14s ease-in-out infinite alternate;
}
/* Orbe 4 */
body::after {
  content: ''; position: fixed;
  top: 10%; right: -5%; width: 35vw; height: 35vw; max-width: 350px; max-height: 350px;
  background: radial-gradient(circle, rgba(94, 10, 2, 0.3) 0%, transparent 70%);
  filter: blur(45px); border-radius: 50%; z-index: -1; opacity: 0.4;
  animation: float4 13s ease-in-out infinite alternate-reverse;
}

/* Mouvements rapides */
@keyframes float1 { 0% { transform: translate(0, 0); } 100% { transform: translate(60px, 40px) scale(1.1); } }
@keyframes float2 { 0% { transform: translate(0, 0); } 100% { transform: translate(-50px, -30px) scale(1.05); } }
@keyframes float3 { 0% { transform: translate(0, 0); } 100% { transform: translate(40px, -80px) scale(1.2); } }
@keyframes float4 { 0% { transform: translate(0, 0); } 100% { transform: translate(-30px, 50px) scale(0.9); } }

a{ color:inherit; text-decoration:none; transition: color .2s ease; }
.wrap{ max-width:1100px; margin:0 auto; padding:0 20px; position:relative; z-index:2; }

/* ---------- Nav (Adaptée au gris) ---------- */
.nav{
  position:sticky; top:0; z-index:50;
  /* Fond gris transparent */
  background: rgba(43, 45, 49, 0.65); 
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(var(--blur-nav)); -webkit-backdrop-filter: blur(var(--blur-nav));
}

.nav-inner{ display:flex; align-items:center; justify-content:space-between; height:72px; }

.brand{ display:flex; align-items:center; gap:12px; letter-spacing:.2px; }
.brand strong{ font-weight:700; }
.brand small{ display:block; font-size:12px; color: var(--muted); margin-top:2px; }

.logo{
  width:40px; height:40px; border-radius:999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  display:grid; place-items:center; overflow:hidden;
}
.logo img{ width:100%; height:100%; object-fit: cover; display:block; }

.nav-links{ display:flex; gap:18px; align-items:center; font-size:14px; }
.nav-links a{ color: rgba(255,255,255,.78); }
.nav-links a:hover{ color: #ffffff; }
.nav-links a.active{ color: #ffffff; font-weight:650; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px; border-radius:999px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92); font-weight:600; font-size:14px; cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.26); }
.btn.primary{
  background: var(--aph-red); color: var(--aph-white);
  border-color: var(--aph-red); box-shadow: 0 10px 40px rgba(94, 10, 2, 0.4);
}
.btn.primary:hover{ background: var(--aph-red-dark); transform: translateY(-1px); }

/* ---------- Cards / Pills ---------- */
.card{
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); backdrop-filter: blur(var(--blur-card)); -webkit-backdrop-filter: blur(var(--blur-card));
  padding:18px;
}
.pill{
  display:inline-flex; padding:6px 10px; border-radius:999px;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.90); font-size:11px; font-weight:600; letter-spacing:.2px;
}

/* ---------- Typography ---------- */
section{ padding:34px 0; }
h1{ margin:14px 0 10px; font-size:44px; line-height:1.05; letter-spacing:-.6px; }
h2{ margin:0; font-size:24px; letter-spacing:-.2px; }
h3{ margin:0; font-size:16px; }
.lead{ margin:0; color: var(--muted); font-size:16px; line-height:1.7; max-width:60ch; }
.sub{ margin:0; color: var(--muted); font-size:13px; line-height:1.6; max-width:75ch; }

/* ---------- Layout helpers ---------- */
.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; }
.split{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
.stack{ display:grid; gap:14px; }

/* ---------- Inputs / Forms (VOTRE CODE EXACT) ---------- */
.input, select.input, textarea.input{
  width:100%; padding:12px 14px; border-radius:14px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.92); font: inherit; font-size:14px; outline:none; -webkit-appearance: none; appearance: none;
}
.input::placeholder{ color: rgba(255,255,255,.55); }
.input:focus{ border-color: rgba(255,255,255,.3); box-shadow: 0 0 0 4px rgba(94, 10, 2, 0.25); background: rgba(255,255,255,.08); }
select.input{
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,.75) 50%), linear-gradient(135deg, rgba(255,255,255,.75) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
select.input option{ background: #2b2d31; color: rgba(255,255,255,.92); }

/* ---------- Modal ---------- */
.modal-backdrop{
  position:fixed; inset:0; background: rgba(0,0,0,.60); display:none; align-items:center; justify-content:center;
  padding:22px; z-index:100; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.modal{
  max-width:780px; width:100%; background: #2b2d31; border:1px solid rgba(255,255,255,.16);
  border-radius:22px; box-shadow: 0 20px 80px rgba(0,0,0,.5); padding:22px;
}
.modal-header{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.icon-btn{
  width:40px; height:40px; border-radius:999px; border:1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92); cursor:pointer; font: inherit; display:grid; place-items:center;
}
.icon-btn:hover{ background: rgba(255,255,255,.12); }

/* ---------- Footer (VOTRE CODE EXACT) ---------- */
footer{ padding:26px 0 40px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.60); font-size:12px; position:relative; z-index:2; }
.foot{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.foot a{ color: rgba(255,255,255,.75); } .foot a:hover{ color: #fff; }

.admin-footer{ opacity:.2; filter: blur(.3px); transition: opacity .15s ease, filter .15s ease; }
.admin-footer:hover, .admin-footer:focus{ opacity:1; filter:none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px){
  .grid-3{ grid-template-columns: 1fr; } .split{ grid-template-columns: 1fr; } .nav-links{ display:none; } h1{ font-size:36px; }
}

/* ===== Mobile menu (VOTRE CODE EXACT) ===== */
.nav-actions{ display:flex; align-items:center; gap:10px; } .desktop-only{ display:inline-flex; } .mobile-only{ display:none; }

/* BURGER ANIMÉ (Votre version) */
.burger {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06);
  cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; transition: all .3s ease;
}
.burger:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.burger[aria-expanded="true"] { background: var(--aph-red); border-color: var(--aph-red); }
.burger span { display: block; width: 20px; height: 2px; background-color: rgba(255, 255, 255, .92); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; transform-origin: center; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: translateX(-5px); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer */
.mobile-menu{ display:none; padding:14px 20px 18px; border-top: 1px solid rgba(255,255,255,.12); background: rgba(43, 45, 49, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.mobile-menu a{ display:block; padding:12px 10px; border-radius:14px; color: rgba(255,255,255,.90); font-weight: 500; }
.mobile-menu a:hover{ background: rgba(255,255,255,.08); color: #fff; }
.mobile-menu.open{ display:block; animation: slideDown 0.3s ease forwards; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 920px){ .nav-links{ display:none; } .desktop-only{ display:none; } .mobile-only{ display:flex; } }

/* ================= TEAM GRID ================= */

/* La grille qui contient les cartes */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* S'adapte auto */
  gap: 20px;
  margin-bottom: 40px;
}

/* La carte individuelle */
.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 18px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.member-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

/* Conteneur de la photo (pour gérer l'ombre et le rond) */
.photo-wrapper {
  width: 100px;
  height: 100px;
  margin-bottom: 16px;
  position: relative;
}

/* La photo elle-même */
.member-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%; /* Rond parfait */
  object-fit: cover;  /* Évite de déformer l'image */
  border: 2px solid rgba(255, 255, 255, 0.2);
  background-color: #2b2d31;
}

/* Si pas de photo : le rond avec initiales */
.member-photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.5);
}

