/* OceanGoldBrandsLive - Thème océan / or, typographie distinctive */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg-dark: #0a1628;
  --bg-card: #0f2137;
  --bg-card-hover: #152d47;
  --text: #e8eef4;
  --text-muted: #8fa3bf;
  --accent: #d4a853;
  --accent-hover: #e4bc65;
  --accent-soft: rgba(212, 168, 83, 0.15);
  --success: #4ade80;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --font-head: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-link img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo-text span { color: var(--accent); }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-desktop a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-desktop a:hover {
  color: var(--accent);
}

/* Burger */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
}
.burger-btn span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
.burger-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger-btn.is-open span:nth-child(2) { opacity: 0; }
.burger-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-dark);
  z-index: -1;
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
  height: 100vh;
}
.nav-mobile.is-open { display: block; }
.nav-mobile a {
  display: block;
  padding: 1rem;
  font-size: 1.1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ----- Main layout ----- */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Hero — deux colonnes sur desktop */
.hero {
  padding: 2.5rem 0 2rem;
  margin-bottom: 2rem;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2rem;
}
.hero-content {
  text-align: left;
}
.hero-content .hero-badge {
  margin-bottom: 0.75rem;
}
.hero-content h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.hero-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0;
}
.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.hero-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}
.hero-img[src=""],
.hero-img:not([src]) {
  display: none;
}
.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}

/* Bandeau confiance */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-item {
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 1.25rem;
}
.trust-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.8;
}

/* Filters — style segment / underline */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.65rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.filter-btn:hover {
  color: var(--text);
  background: var(--accent-soft);
}
.filter-btn.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: transparent;
}

/* Section offres */
.offers-section {
  margin-top: 2rem;
}
.offers-section-title {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

/* Grille offres — première carte en pleine largeur (featured), reste en 2 col */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.offer-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.offer-card:hover {
  border-color: rgba(212, 168, 83, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* Barre d'accent à gauche (cartes normales) */
.offer-card-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), transparent);
  border-radius: var(--radius) 0 0 var(--radius);
  opacity: 0.7;
}

/* Carte mise en avant — pleine largeur, layout horizontal */
.offer-card-featured {
  grid-column: 1 / -1;
  padding: 1.75rem 2rem;
  border-color: rgba(212, 168, 83, 0.25);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(21, 45, 71, 0.6) 100%);
}
.offer-card-featured::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  border-radius: var(--radius) 0 0 var(--radius);
}
.offer-badge-featured {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bg-dark);
  background: var(--accent);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}
.offer-card-featured .offer-card-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.offer-card-featured .offer-card-main {
  min-width: 0;
}
.offer-card-featured .offer-card-cta {
  flex-shrink: 0;
}
.offer-card-featured .btn-bonus {
  width: auto;
  min-width: 200px;
  padding: 1rem 1.5rem;
}
.offer-features-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-bottom: 0;
}
.offer-features-tags li {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: none;
  padding-left: 0.75rem;
}
.offer-features-tags li::before {
  display: none;
}

.offer-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.offer-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.2);
}
.offer-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}
.offer-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--accent);
  white-space: nowrap;
}
.offer-reviews {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.offer-bonus {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.35;
}

.offer-features {
  list-style: none;
  margin-bottom: 1.25rem;
  flex: 1;
}
.offer-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
}
.offer-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: var(--success);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
}

.btn-bonus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--bg-dark);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-bonus:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}
.btn-bonus:active {
  transform: scale(0.98);
}

/* ----- Page content (CGU, Privacy, About, Jeu responsable) ----- */
.page-hero {
  padding: 2rem 0 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}
.page-hero p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.prose {
  max-width: 720px;
}
.prose p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}
.prose h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}
.prose ul {
  margin: 0 0 1rem 1.5rem;
  color: var(--text-muted);
}
.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ----- Safe gaming block ----- */
.safe-gaming {
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(15, 33, 55, 0.95) 100%);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}
.safe-gaming::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.2), transparent);
  opacity: 0.6;
}
.safe-gaming-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.safe-gaming h2 {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.gambling-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem 2rem;
}
.gambling-logos a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 48px;
  color: var(--text-muted);
  transition: opacity 0.2s, transform 0.2s;
}
.gambling-logos a:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  color: var(--text-muted);
}
.gambling-logos img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(0.9);
}
.gambling-logos .logo-item-18 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 48px;
}
.gambling-logos .logo-item-18 img {
  max-width: 60px;
  max-height: 48px;
}

/* ----- Footer — deux colonnes ----- */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-primary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem 3rem;
  align-items: start;
}
.footer-disclaimers {
  min-width: 0;
}
.footer-disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 520px;
}
.footer-disclaimer:last-child {
  margin-bottom: 0;
}
.footer-meta {
  text-align: right;
}
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.8;
}

/* ----- Popups ----- */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.popup-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.popup-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
  transform: scale(0.95);
  transition: transform 0.3s;
}
.popup-overlay.is-visible .popup-box {
  transform: scale(1);
}

.popup-box h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text);
}
.popup-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.popup-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.popup-actions button {
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border: none;
}
.popup-btn-accept {
  background: var(--accent);
  color: var(--bg-dark);
}
.popup-btn-accept:hover {
  background: var(--accent-hover);
}
.popup-btn-deny {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.popup-btn-deny:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.popup-refused .popup-box h2 {
  color: #f87171;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-visual {
    justify-content: center;
    order: -1;
  }
  .hero-img {
    max-width: 100%;
  }
  .footer-primary {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .footer-meta {
    text-align: left;
  }
  .footer-links {
    align-items: flex-start;
  }
  .offer-card-featured .offer-card-body {
    grid-template-columns: 1fr;
  }
  .offer-card-featured .offer-card-cta {
    width: 100%;
  }
  .offer-card-featured .btn-bonus {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .burger-btn { display: flex; }

  .hero {
    padding: 2rem 0 1.5rem;
  }
  .trust-strip {
    gap: 1rem;
    padding: 0.75rem 0;
  }
  .trust-item {
    font-size: 0.8rem;
  }
  .filters {
    margin-bottom: 1.5rem;
  }
  .offers-grid {
    grid-template-columns: 1fr;
  }
  .main-content {
    padding: 1.5rem 1rem 3rem;
  }
  .gambling-logos a {
    width: 88px;
    height: 44px;
  }
  .offer-card-featured {
    padding: 1.5rem 1.25rem;
  }
  .offer-badge-featured {
    top: 0.75rem;
    right: 0.75rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0.75rem 1rem;
  }
  .logo-text {
    font-size: 1rem;
  }
  .filter-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.82rem;
  }
  .offer-card {
    padding: 1.25rem;
  }
  .offer-card-header {
    flex-wrap: wrap;
  }
  .offer-logo {
    width: 64px;
    height: 64px;
    padding: 8px;
  }
}
