/* Styles spécifiques à index */
:root{
  --bg1: #2b2bfb;
  --bg2: #ff0000;
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --glass: rgb(0, 0, 0);
  --border: rgba(255,255,255,.16);
  --shadow: rgba(255, 0, 0, 0.45);

  --dj-accent: #d4af37;
  --dj-glow: rgb(255, 0, 0);

  --ph-accent: #d4af37;
  --ph-glow: rgb(213, 116, 237);
}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(800px 400px at 15% 15%, rgba(255,148,77,.12), transparent 60%),
    radial-gradient(900px 450px at 85% 35%, rgba(170,90,255,.14), transparent 60%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
  overflow-x: hidden;
}

/* grain léger */
body::before{
  content: "";
  position: fixed; 
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: .18;
  mix-blend-mode: overlay;
}

.wrap{ 
  min-height: 100%; 
  display: flex; 
  flex-direction: column; 
}

.container{ 
  width: min(1120px, 92%); 
}

header{
  padding: 28px 0 14px;
}

.pill{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px var(--shadow);
  font-weight: 900;
  letter-spacing: .6px;
}

.sub{
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 700px;
  line-height: 1.5;
  font-weight: 600;
}

/* Mobile-first : une colonne par défaut */
.cards{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 22px 0 40px;
}

/* Tablette (768px et plus) */
@media (min-width: 768px){
  .cards{ 
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
    gap: 22px; 
  }
  
  header{ 
    padding: 28px 0 14px; 
  }
}

/* Desktop (1024px et plus) */
@media (min-width: 1024px){
  .cards{ 
    gap: 24px; 
  }
}

.card{
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  text-decoration: none;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  transform: translateY(0);
  transition: transform .25s ease, box-shadow .25s ease;
  isolation: isolate;
}

/* halo coloré */
.card::before{
  content: "";
  position: absolute;
  inset: -80px;
  background: radial-gradient(circle at 30% 20%, var(--glow), transparent 55%);
  filter: blur(18px);
  opacity: .9;
  z-index: 0;
  transition: opacity .25s ease;
}

.card:hover{
  transform: translateY(-6px);
  box-shadow: 0 22px 70px rgba(0,0,0,.55);
}

.card:hover::before{ 
  opacity: 1; 
}

.media{
  height: 280px;
  width: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform .35s ease;
  z-index: 1;
  position: relative;
}

.card:hover .media{ 
  transform: scale(1.06); 
}

.content{
  position: relative;
  z-index: 2;
  padding: 18px 18px 20px;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.25) 65%, transparent);
}

.title{
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: .2px;
  color: var(--accent);
  font-weight: 1000;
  text-shadow: 0 0 16px rgba(0,0,0,.55);
}

.desc{
  margin: 0 0 14px;
  color: rgba(255,255,255,.90);
  line-height: 1.45;
  font-weight: 650;
  text-shadow: 0 0 14px rgba(0,0,0,.45);
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 950;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  transition: .25s;
  width: fit-content;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

.btn strong{
  color: #111;
  background: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 1000;
}

.card:hover .btn{ 
  opacity: .95; 
  transform: translateY(-1px); 
}

/* variantes */
.card.dj{ 
  --accent: var(--dj-accent); 
  --glow: var(--dj-glow); 
}

.card.photo{ 
  --accent: var(--ph-accent); 
  --glow: var(--ph-glow); 
}

footer{
  margin-top: auto;
  padding: 18px 0 24px;
  color: rgba(255,255,255,.55);
}

/* Tablette (768px et plus) */
@media (min-width: 768px){
  .title{ 
    font-size: 32px; 
  }
  
  .media{ 
    height: 300px; 
  }
  
  .content{ 
    padding: 20px 20px 24px; 
  }
}

/* Desktop (1024px et plus) */
@media (min-width: 1024px){
  .title{ 
    font-size: 34px; 
  }
  
  .media{ 
    height: 320px; 
  }
}

/* Mobile spécifique (moins de 480px) */
@media (max-width: 480px){
  .title{ 
    font-size: 24px; 
  }
  
  .media{ 
    height: 220px; 
  }
  
  .content{ 
    padding: 14px; 
  }
  
  .sub{ 
    font-size: 13px; 
  }
}
