/* ==========================================================
   BAYRADIO × BAYSIDE — THEME NÉON
   Palette inspirée des visuels joints
   ========================================================== */

/* === 1. Palette & Variables === */
:root {
  /* Base night */
  --bg: #081017;
  --bg-2: #0c1721;
  --card: #111a24;
  --muted: #a8b3c2;
  --text: #e9f6ff;

  /* Néons */
  --pink: #ff2ea6;
  --magenta: #ff3bbf;
  --hotpink: #ff4fd1;
  --orange: #ff8a3d;
  --sun: #ffb975;
  --cyan: #5ef3ff;
  --aqua: #7af7e8;

  /* Accents */
  --accent: var(--cyan);
  --accent2: #8aff8a;
  --danger: #ff6b6b;
  --warn: #ffb86b;

  /* UI */
  --border: rgba(255, 255, 255, .08);
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);

  /* Glows */
  --glow-pink: 0 0 10px rgba(255, 46, 166, .6), 0 0 28px rgba(255, 46, 166, .35);
  --glow-cyan: 0 0 10px rgba(94, 243, 255, .6), 0 0 28px rgba(94, 243, 255, .35);
  --glow-orange: 0 0 10px rgba(255, 138, 61, .6), 0 0 26px rgba(255, 138, 61, .35);
}

/* === 2. Reset & Base === */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(255, 46, 166, .12), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(94, 243, 255, .12), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 60%, var(--bg));
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === 3. Layout === */
.container {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.col {
  flex: 1 1 260px;
}

.center { text-align: center; }
.small { font-size: 12px; color: var(--muted); }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

/* === 4. Header / Navigation === */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(to bottom, rgba(12, 23, 33, .75), rgba(12, 23, 33, .35));
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.nav .right a,
.nav .right form button {
  margin-left: 8px;
}

/* === 5. Brand / Logo === */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 42px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 12px rgba(255, 46, 166, .35));
}

.brand .wordmark {
  font-weight: 800;
  letter-spacing: .5px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: var(--glow-orange);
}

/* === 6. Hero === */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(255, 46, 166, .08), rgba(94, 243, 255, .06)),
    radial-gradient(1000px 500px at 100% 0, rgba(255, 138, 61, .10), transparent 55%),
    var(--card);
}

.hero--with-image {
  background-size: cover;
  background-position: center;
}

.hero .title {
  font-size: clamp(26px, 4vw, 44px);
  margin: 0 0 6px;
  line-height: 1.05;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55), var(--glow-pink);
}

.hero .subtitle {
  color: var(--muted);
  max-width: 70ch;
}

/* === 7. Cards === */
.card {
  background:
    linear-gradient(180deg, rgba(255, 46, 166, .06), transparent 40%),
    linear-gradient(0deg, rgba(94, 243, 255, .04), transparent 35%),
    var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin: 14px 0;
  box-shadow: var(--shadow);
  max-width: 100%;
  overflow-x: hidden;
}

.card h3 { margin: 0 0 8px; }
.card:hover { box-shadow: 0 0 0 1px rgba(255, 46, 166, .25), var(--shadow); }

/* Fix overflow in all cards */
.card, .card *:not(input):not(textarea):not(button) {
  overflow-wrap: anywhere;
  word-wrap: break-word;
  white-space: normal;
}

.card pre, .card code {
  white-space: pre-wrap;
  word-break: break-all;
}

.card img, .card iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Text layout inside cards */
.card p, .card span, .card div, .card label {
  line-height: 1.4;
  word-break: break-word;
}

.card .content {
  max-width: 100%;
  line-height: 1.5;
  text-align: justify;
}

/* === 8. Tables === */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.table th, .table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  white-space: normal;
}

.table tr {
  background: rgba(12, 23, 33, .6);
  backdrop-filter: blur(4px);
}

.table tr:hover {
  background: rgba(20, 35, 48, .9);
}

/* === 9. Badges & Tags === */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: #d7e9ff;
  font-size: 12px;
  background: linear-gradient(135deg, rgba(94, 243, 255, .12), rgba(255, 46, 166, .12));
  box-shadow: inset 0 0 14px rgba(255, 255, 255, .03), 0 0 0 1px rgba(255, 255, 255, .02);
}

/* === 10. Inputs & Forms === */
.input, .select, textarea.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0f1823;
  color: var(--text);
  outline: none;
  transition: box-shadow .15s, border-color .15s, transform .06s;
}

.input:focus, .select:focus, textarea.input:focus {
  border-color: rgba(94, 243, 255, .65);
  box-shadow: var(--glow-cyan);
}

textarea.input { resize: vertical; }

/* === 11. Buttons === */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0f1823;
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .06s ease, border-color .2s, box-shadow .2s, background .2s;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(94, 243, 255, .45);
  box-shadow: var(--glow-cyan);
}

.btn.primary {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: #1a0a0f;
  border-color: transparent;
  box-shadow: var(--glow-orange);
}

.btn.primary:hover {
  box-shadow: 0 0 0 2px rgba(255, 46, 166, .15), var(--glow-orange);
}

.btn.success {
  background: linear-gradient(135deg, #54f7c9, #7af7e8);
  color: #072018;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(122, 247, 232, .4);
}

.btn.danger {
  background: linear-gradient(135deg, #ff556e, #ff8a8a);
  color: #2b0006;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(255, 85, 110, .35);
}

/* === 12. Alerts === */
.alert {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
  backdrop-filter: blur(6px);
}

.alert.warn {
  border-color: var(--warn);
  box-shadow: 0 0 0 1px rgba(255, 184, 107, .15);
}

/* === 13. Text utilities === */
.neon-pink { color: var(--pink); text-shadow: var(--glow-pink); }
.neon-cyan { color: var(--cyan); text-shadow: var(--glow-cyan); }

.neon-grad {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: var(--glow-orange);
}

/* Underline heading (neon stripe) */
.h-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

.h-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--cyan));
  filter: drop-shadow(0 0 8px rgba(255, 46, 166, .55));
}

/* === 14. Media cards === */
.img-card {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.img-card img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.01);
  transition: transform .3s ease;
}

.img-card:hover img { transform: scale(1.04); }

/* === 15. Footer === */
.footer {
  margin: 40px 0 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  opacity: .85;
}

/* === 16. Responsive === */
@media (max-width: 720px) {
  .nav { padding: 10px 12px; }
  .container { padding: 0 12px; }
  .hero { padding: 18px; }
}

/* === Media grid === */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.video-card, .img-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}

.video-card video {
  display: block;
  width: 100%;
  height: auto;
  outline: none;
  background: #000;
}

/* sécurise le rendu des médias */
.media-grid img, .media-grid video {
  max-width: 100%;
  height: auto;
}

/* hover glow léger */
.img-card:hover, .video-card:hover {
  box-shadow: 0 0 0 1px rgba(94, 243, 255, .25), var(--shadow);
}
