/* fidjy59.fr — style.css v3.0 (Dynamic & Colorful Theme) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Gradients par catégorie (Interface ultra colorée) */
  --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  --grad-home: linear-gradient(135deg, #FF512F 0%, #DD2476 100%);     /* Rouge/Rose Néon */
  --grad-drone: linear-gradient(135deg, #FF9233 0%, #FF5E36 100%);    /* Orange Fluo */
  --grad-meteo: linear-gradient(135deg, #36D1DC 0%, #5B86E5 100%);    /* Bleu Électrique */
  --grad-jetski: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);   /* Cyan Sport */
  --grad-voyages: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%);  /* Violet Royal */
  --grad-webcams: linear-gradient(135deg, #f12711 0%, #f5af19 100%);  /* Jaune/Rouge Soleil */
  --grad-divers: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);   /* Vert Menthe */

  /* Couleurs de base */
  --surface: rgba(255, 255, 255, 0.07);
  --surface-hover: rgba(255, 255, 255, 0.15);
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.25);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  
  --nav-h: 64px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

html { 
  scroll-behavior: smooth; 
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
}

/* ── Navigation Dynamique ────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 32px; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo img {
  filter: drop-shadow(0 0 8px rgba(55, 138, 221, 0.6));
  animation: pulse 3s infinite alternate;
}
.nav-logo-text { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -0.5px; }
.nav-logo-text span { background: var(--grad-home); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; gap: 6px; overflow-x: auto; padding: 4px; }
.nav-links::-webkit-scrollbar { display: none; }

.nav-link {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  text-decoration: none; white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover { color: #fff; background: var(--surface-hover); }
.nav-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; }

/* Différenciation de l'onglet actif par couleur dynamique */
.nav-link[href="index.html"].active { background: var(--grad-home); color: white; }
.nav-link[href="drone.html"].active { background: var(--grad-drone); color: white; }
.nav-link[href="meteo.html"].active { background: var(--grad-meteo); color: white; }
.nav-link[href="jetski.html"].active { background: var(--grad-jetski); color: white; }
.nav-link[href="voyages.html"].active { background: var(--grad-voyages); color: white; }
.nav-link[href="webcams.html"].active { background: var(--grad-webcams); color: white; }
.nav-link[href="divers.html"].active { background: var(--grad-divers); color: white; }

/* ── Hero Moderne ────────────────────────────────────────────────────────── */
.hero {
  padding: 60px 24px 40px;
  text-align: center;
  position: relative;
}
.hero-inner { max-width: 1000px; margin: 0 auto; }
.hero h1 { 
  font-size: 38px; font-weight: 800; margin-bottom: 8px; letter-spacing: -1px;
  background: linear-gradient(to right, #fff, var(--text-muted)); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: 14px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 2px; }

/* ── Structure Globale (Glassmorphism) ────────────────────────────────────── */
.content { max-width: 1000px; margin: 0 auto; padding: 0 24px 60px; }
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: #fff;
  margin-bottom: 18px; margin-top: 40px;
  display: flex; align-items: center; gap: 8px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Grilles & Cartes */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--surface);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--glow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card:hover {
  transform: translateY(-6px);
  background: var(--surface-hover);
  border-color: var(--border-hover);
  box-shadow: 0 12px 24px rgba(0,0,0,0.5);
}
.card-featured { border: 1.5px solid var(--grad-meteo); }

/* En-tête colorée pour les icônes de cartes */
.card-icon {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; }

/* Classes dynamiques appliquées aux icônes */
.icon-blue   { background: var(--grad-meteo); }
.icon-teal   { background: var(--grad-divers); }
.icon-amber  { background: var(--grad-webcams); }
.icon-coral  { background: var(--grad-home); }
.icon-purple { background: var(--grad-voyages); }
.icon-home { background: var(--grad-webcams); }
.icon-drone { background: var(--grad-drone); }
.icon-meteo { background: var(--grad-meteo); }
.icon-jetski { background: var(--grad-jetski); }
.icon-voyages { background: var(--grad-voyages); }
.icon-divers { background: var(--grad-divers); }

.card h3 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.card p { font-size: 13.5px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }

/* Liens à l'intérieur des cartes */
.card-links { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.card-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: rgba(0, 0, 0, 0.2); 
  border-radius: var(--radius-md); color: #fff; text-decoration: none;
  font-size: 13px; font-weight: 500; border: 1px solid transparent;
  transition: all 0.2s ease;
}
.card-link:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
  padding-left: 18px;
}
.card-link svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2; opacity: 0.6; flex-shrink: 0; }

/* ── Grille de liens simples (Style boutons éclatants) ────────────────────── */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.link-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-md); font-size: 13px; color: #fff;
  text-decoration: none; background: rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}
.link-item:hover { 
  background: var(--surface-hover); 
  border-color: var(--border-hover); 
  color: #fff;
}
.link-item svg { width: 15px; height: 15px; stroke: var(--text-muted); fill: none; stroke-width: 2; stroke-linecap: round; flex-shrink: 0; transition: stroke 0.12s; }
.link-item:hover svg { stroke: #fff; }

/* ── Bloc de section avec titre et liens ─────────────────────────────────── */
.block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 16px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.block-header { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.block-header svg { width: 18px; height: 18px; stroke: var(--text-muted); fill: none; stroke-width: 2; stroke-linecap: round; }
.block-header h2 { font-size: 15px; font-weight: 600; color: #fff; }

/* ── Barre Famille Dashboard ─────────────────────────────────────────────── */
.family-bar {
  background: var(--surface); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border); box-shadow: var(--glow);
  border-radius: var(--radius-lg); padding: 16px 24px;
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-around; align-items: center;
  margin-bottom: 28px;
}
.family-member { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: white;
}
.av-f { background: var(--grad-home); }
.av-g { background: var(--grad-meteo); }
.av-m { background: var(--grad-drone); }
.family-name { font-weight: 600; color: #fff; font-size: 14px; }
.family-phone { font-size: 12px; color: var(--text-muted); }
.family-sep { width: 1px; height: 30px; background: var(--border); }

/* ── Tags ────────────────────────────────────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border);
  border-radius: 6px; padding: 3px 9px;
  font-size: 11px; color: var(--text-muted);
}
.tag svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── Blocs Météo / Iframe / Grilles ──────────────────────────────────────── */
.meteo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 8px; }
.meteo-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--glow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.meteo-block-title {
  padding: 14px 20px; font-size: 13.5px; font-weight: 700; color: #fff;
  border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px;
  background: rgba(0, 0, 0, 0.15);
}
.meteo-block-title svg { width: 16px; height: 16px; stroke: #fff; }
.meteo-block iframe { display: block; width: 100%; border: none; filter: grayscale(0.1) contrast(1.1); }

/* ── Badge ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 600; letter-spacing: 0.3px;
  padding: 2px 8px; border-radius: 5px; margin-bottom: 10px;
}
.badge-blue { background: var(--grad-meteo); color: white; }

/* ── Actu Block / Flux RSS ────────────────────────────────────────────────── */
.actu-block { 
  background: var(--surface); border: 1px solid var(--border); 
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--glow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.actu-header { 
  display: flex; align-items: center; justify-content: space-between; 
  padding: 14px 20px; background: rgba(0,0,0,0.15); border-bottom: 1px solid var(--border); 
}
.actu-header-left { 
  display: flex; align-items: center; gap: 8px; 
  font-size: 14px; font-weight: 700; color: #fff; 
}
.actu-header-left svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.actu-source-link { color: var(--text-muted); text-decoration: none; font-size: 12px; transition: color 0.2s; }
.actu-source-link:hover { color: #fff; }
.actu-item { padding: 14px 20px; border-bottom: 1px solid var(--border); transition: background 0.2s; }
.actu-item:hover { background: rgba(255,255,255,0.03); }
.actu-title { color: #fff; text-decoration: none; font-size: 13.5px; font-weight: 600; display: block; margin-bottom: 4px; }
.actu-title:hover { text-decoration: underline; }
.actu-time { font-size: 11px; color: var(--text-faint); }
.actu-loading { padding: 20px; text-align: center; color: var(--text-muted); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  text-align: center; padding: 40px 24px;
  font-size: 12px; color: var(--text-faint);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
footer a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: #fff; }

@keyframes pulse { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.04); opacity: 1; } }

/* Ajustements Mobiles (Responsive) */
@media (max-width: 768px) {
  .nav { padding: 0 16px; flex-direction: row; }
  .nav-links { width: 100%; }
  .content { padding: 20px 14px 40px; }
  .hero { padding: 40px 14px 30px; }
  .hero h1 { font-size: 28px; }
  .family-bar { flex-direction: column; }
  .family-sep { width: 1px; height: 30px; }
}
