/* ============================================================
   Gamblissimo — Neo-Mediterranean Digital Magazine
   Compact French editorial showcase aggregator
   assets/css/main.css
   ============================================================ */

:root {
  /* Palette */
  --sand: #FFF3E4;
  --teal: #103536;
  --teal-soft: #1C4B4D;
  --turquoise: #21B8AA;
  --apricot: #FF9A73;
  --lavender: #9B84E6;
  --mint: #E7F4EF;
  --footer: #071B1C;
  --ink: #223A3B;
  --muted: #5C7475;
  --line: rgba(16, 53, 54, 0.14);
  --card-bg: #FFFFFF;
  --white: #FFFFFF;

  /* Card logo backgrounds */
  --logo-1: #0F6D70;
  --logo-2: #D96F58;
  --logo-3: #8069C8;
  --logo-4: #3B8F69;
  --logo-5: #AF7B32;

  /* Geometry */
  --radius-card: 26px;
  --radius-panel: 22px;
  --radius-pill: 999px;
  --shadow-card: 0 10px 30px rgba(16, 53, 54, 0.08);
  --shadow-soft: 0 4px 14px rgba(16, 53, 54, 0.07);

  /* Type */
  --font-display: "Georgia", "Times New Roman", serif;
  --font-body: "Segoe UI", "Arial", "Helvetica Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--sand);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

main {
  flex: 1 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--turquoise);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================================================
   Responsible warning bar (top + bottom of every public page)
   ============================================================ */
.responsible-bar {
  background: var(--teal);
  color: var(--sand);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  padding: 10px 16px;
}

.responsible-bar strong {
  font-weight: 700;
}

/* ============================================================
   Header — desktop: logo only, no nav
   ============================================================ */
.site-header {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 60;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 190px;
  height: auto;
}

/* Desktop: no nav, no burger, no CTA */
.desktop-nav {
  display: none;
}

/* Burger — mobile only */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  background: var(--teal);
  border: none;
  border-radius: 14px;
  padding: 12px;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--sand);
  border-radius: 3px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.is-active span:nth-child(2) {
  opacity: 0;
}

.burger.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================================
   Mobile menu — burger only, public page links
   ============================================================ */
.mobile-menu {
  display: none; /* closed by default */
}

.mobile-menu.is-open {
  display: block !important; /* must visibly override display:none */
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  z-index: 55;
}

.mobile-menu.is-open ul {
  padding: 10px 20px 18px;
}

.mobile-menu.is-open li + li {
  border-top: 1px solid var(--line);
}

.mobile-menu.is-open a {
  display: block;
  padding: 15px 4px;
  font-weight: 600;
  font-size: 16px;
  color: var(--teal);
}

.mobile-menu.is-open a:hover {
  color: var(--turquoise);
  text-decoration: none;
}

@media (min-width: 900px) {
  .burger {
    display: none;
  }
  .mobile-menu.is-open {
    display: none !important;
  }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 56px 0 30px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--mint);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  margin-bottom: 22px;
}

.hero-eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--turquoise);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.08;
  color: var(--teal);
  max-width: 15ch;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 64ch;
  line-height: 1.65;
  margin-bottom: 30px;
}

/* Badges */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
}

.hero-badges span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--turquoise);
}

.hero-badges span:nth-child(2)::before {
  background: var(--apricot);
}

.hero-badges span:nth-child(3)::before {
  background: var(--lavender);
}

.hero-badges span:nth-child(4)::before {
  background: var(--teal);
}

/* ============================================================
   Asymmetrical information block
   ============================================================ */
.info-block {
  background: var(--mint);
  border-radius: var(--radius-panel) 8px var(--radius-panel) 8px;
  padding: 30px 26px;
  margin: 0 0 46px;
  max-width: 720px;
  position: relative;
}

.info-block::after {
  content: "G";
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 120px;
  line-height: 1;
  color: rgba(16, 53, 54, 0.06);
  position: absolute;
  right: 14px;
  top: -12px;
  pointer-events: none;
}

.info-block h2 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--teal);
  margin-bottom: 12px;
}

.info-block p {
  color: var(--ink);
  font-size: 16.5px;
  max-width: 60ch;
}

/* ============================================================
   Showcase cards — exactly 1 per row (all breakpoints)
   ============================================================ */
.cards-section {
  padding: 10px 0 20px;
}

.cards-title {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--teal);
  margin-bottom: 6px;
}

.cards-subtitle {
  color: var(--muted);
  margin-bottom: 30px;
  max-width: 60ch;
}

.cards-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.showcase-card {
  width: 100%; /* one card per row */
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 22px 0;
}

/* Large editorial numeral */
.card-numeral {
  font-family: var(--font-display);
  font-size: 66px;
  font-weight: 700;
  line-height: 0.9;
  color: var(--turquoise);
  min-width: 56px;
}

.showcase-card:nth-child(2) .card-numeral {
  color: var(--apricot);
}

.showcase-card:nth-child(3) .card-numeral {
  color: var(--lavender);
}

.showcase-card:nth-child(4) .card-numeral {
  color: var(--logo-4);
}

.showcase-card:nth-child(5) .card-numeral {
  color: var(--logo-5);
}

/* Logo tile */
.card-logo {
  width: 118px;
  height: 88px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.logo-bg-1 { background: var(--logo-1); }
.logo-bg-2 { background: var(--logo-2); }
.logo-bg-3 { background: var(--logo-3); }
.logo-bg-4 { background: var(--logo-4); }
.logo-bg-5 { background: var(--logo-5); }

/* Category description + ANJ */
.card-body {
  flex: 1 1 auto;
}

.card-anj {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--teal);
  background: var(--mint);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  margin-bottom: 10px;
}

.card-category {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.35;
  color: var(--teal);
  margin-bottom: 14px;
}

/* Score panel */
.card-score {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--mint);
  border-radius: 18px;
  padding: 14px 18px;
  min-width: 96px;
  text-align: center;
  border: 1px solid rgba(33, 184, 170, 0.28);
}

.card-score-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}

.card-score-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 5px;
}

/* Key points */
.card-points {
  padding: 20px 22px 6px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
}

.card-points li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: var(--ink);
  align-items: flex-start;
  line-height: 1.5;
}

.card-points li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--turquoise);
  margin-top: 8px;
}

/* Card CTA */
.card-action {
  padding: 8px 22px 24px;
  margin-top: 4px;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--teal);
  color: var(--sand);
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius-pill);
  padding: 13px 26px;
  transition: background 0.2s ease, transform 0.15s ease;
  border: none;
}

.btn-card::after {
  content: "→";
  font-size: 18px;
  transition: transform 0.2s ease;
}

.btn-card:hover {
  background: var(--turquoise);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-card:hover::after {
  transform: translateX(4px);
}

@media (max-width: 700px) {
  .card-top {
    flex-wrap: wrap;
  }
  .card-score {
    order: 5;
    flex-direction: row;
    gap: 12px;
    width: 100%;
    min-width: 0;
  }
  .card-score-value {
    font-size: 26px;
  }
  .card-score-label {
    margin-top: 0;
  }
  .card-points {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Page content (public secondary pages)
   ============================================================ */
.page-section {
  padding: 48px 0 70px;
}

.page-heading h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 44px);
  color: var(--teal);
  line-height: 1.15;
  margin-bottom: 14px;
}

.page-heading p {
  color: var(--muted);
  max-width: 62ch;
  font-size: 17px;
}

.prose {
  margin-top: 30px;
  max-width: 72ch;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--teal);
  margin: 34px 0 12px;
}

.prose h3 {
  font-size: 19px;
  color: var(--teal);
  margin: 26px 0 10px;
}

.prose p {
  margin-bottom: 16px;
  color: var(--ink);
}

.prose ul {
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
}

.prose ul li {
  position: relative;
  padding-left: 24px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--turquoise);
}

.prose strong {
  color: var(--teal);
}

.note-panel {
  background: var(--mint);
  border-radius: var(--radius-panel) 8px var(--radius-panel) 8px;
  padding: 22px 24px;
  margin: 26px 0;
  border-left: 5px solid var(--turquoise);
}

.note-panel p {
  margin: 0;
  font-size: 15.5px;
}

/* ============================================================
   Contact form
   ============================================================ */
.contact-form {
  margin-top: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-soft);
  padding: 28px;
  max-width: 620px;
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: block;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--teal);
  margin-bottom: 7px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sand);
  padding: 13px 15px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(33, 184, 170, 0.35);
  outline-offset: 0;
  border-color: var(--turquoise);
}

.contact-form button {
  justify-self: start;
}

.contact-email {
  margin-top: 22px;
  font-size: 15.5px;
  color: var(--muted);
}

.contact-email a {
  font-weight: 700;
  color: var(--teal);
}

/* ============================================================
   Thank you
   ============================================================ */
.thankyou {
  text-align: left;
  padding: 70px 0;
}

.thankyou .icon-tick {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--turquoise);
  margin-bottom: 22px;
}

/* ============================================================
   Training pages (catalogue)
   ============================================================ */
.training {
  padding: 70px 0;
  display: flex;
  justify-content: center;
}

.training-panel {
  max-width: 640px;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 44px 34px;
  text-align: center;
}

.training-panel .training-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 22px;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: var(--turquoise);
}

.training-panel h1 {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--teal);
  margin-bottom: 14px;
}

.training-panel p {
  color: var(--muted);
  font-size: 16.5px;
  margin-bottom: 28px;
}

.training-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.btn-training-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mint);
  color: var(--teal);
  font-weight: 700;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 13px 26px;
  transition: background 0.2s ease;
}

.btn-training-back::before {
  content: "←";
  font-size: 17px;
}

.btn-training-back:hover {
  background: #D9EDE6;
  text-decoration: none;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--footer);
  color: #C9D6D5;
  margin-top: 40px;
}

.footer-inner {
  padding: 54px 20px 40px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-bottom: 34px;
}

.footer-links a {
  color: #E8F1F0;
  font-size: 15px;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--turquoise);
}

/* Risk line under the regulator images */
.footer-risk {
  margin: 26px 0 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: #AFC2C1;
  border-left: 4px solid var(--turquoise);
  padding: 4px 0 4px 16px;
}

.footer-risk strong {
  color: #E8F1F0;
}

/* Transparency & conditions of use */
.footer-transparency {
  margin-top: 38px;
  border-top: 1px solid rgba(233, 241, 240, 0.14);
  padding-top: 30px;
}

.footer-transparency h2 {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.04em;
  color: #E8F1F0;
  margin-bottom: 24px;
}

.footer-block {
  margin-bottom: 24px;
}

.footer-block h3 {
  font-size: 15px;
  font-weight: 700;
  color: #E8F1F0;
  margin-bottom: 8px;
}

.footer-block p {
  font-size: 14px;
  line-height: 1.65;
  color: #AFC2C1;
}

/* Resources — clickable images only */
.footer-resources h2 {
  font-family: var(--font-display);
  font-size: 20px;
  color: #E8F1F0;
  margin-bottom: 18px;
}

.resource-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.resource-list a {
  display: inline-flex;
  border-radius: 14px;
  overflow: hidden;
  background: #0F2526;
  border: 1px solid rgba(233, 241, 240, 0.12);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.resource-list a:hover {
  transform: translateY(-2px);
  border-color: var(--turquoise);
}

.resource-list img {
  height: 62px;
  width: auto;
  object-fit: contain;
  padding: 8px 14px;
}

/* Mandatory footer line */
.footer-mandatory {
  border-top: 1px solid rgba(233, 241, 240, 0.14);
  padding-top: 22px;
  font-size: 14px;
  font-weight: 700;
  color: #E8F1F0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 6px;
  align-items: center;
}

.footer-mandatory span {
  color: #7E9A99;
  font-weight: 400;
}

.footer-copy {
  border-top: 1px solid rgba(233, 241, 240, 0.1);
  padding: 22px 0;
  text-align: center;
  font-size: 13.5px;
  color: #7E9A99;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .resource-list img {
    height: 52px;
  }
}

/* ============================================================
   18+ popup
   ============================================================ */
.age-popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7, 27, 28, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.age-popup.is-visible {
  opacity: 1;
  visibility: visible;
}

.age-popup-panel {
  background: var(--sand);
  border-radius: var(--radius-card);
  max-width: 460px;
  width: 100%;
  padding: 36px 30px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.age-popup-panel img {
  width: 88px;
  height: auto;
  margin: 0 auto 18px;
}

.age-popup-panel h2 {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--teal);
  margin-bottom: 12px;
}

.age-popup-panel p {
  color: var(--muted);
  font-size: 15.5px;
  margin-bottom: 14px;
}

.age-popup-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
}

.age-popup-actions button {
  border-radius: var(--radius-pill);
  padding: 13px 30px;
  font-weight: 700;
  font-size: 16px;
  border: none;
}

.btn-yes {
  background: var(--teal);
  color: var(--sand);
}

.btn-yes:hover {
  background: var(--turquoise);
  color: var(--white);
}

.btn-no {
  background: var(--mint);
  color: var(--teal);
  border: 1px solid var(--line);
}

.btn-no:hover {
  background: #D9EDE6;
}

body.popup-lock {
  overflow: hidden;
}

/* ============================================================
   Cookie banner
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 180;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 44px rgba(7, 27, 28, 0.28);
  padding: 22px 24px;
  max-width: 760px;
  margin: 0 auto;
  display: none;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner p {
  font-size: 14.5px;
  color: var(--ink);
  flex: 1 1 320px;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
}

.cookie-banner-actions button {
  border-radius: var(--radius-pill);
  padding: 11px 22px;
  font-weight: 700;
  font-size: 14.5px;
  border: none;
}

.btn-accept {
  background: var(--teal);
  color: var(--sand);
}

.btn-accept:hover {
  background: var(--turquoise);
  color: var(--white);
}

.btn-refuse {
  background: var(--mint);
  color: var(--teal);
  border: 1px solid var(--line);
}

.btn-refuse:hover {
  background: #D9EDE6;
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
