/* ============================================================
   portaildivertissement.com — Main Stylesheet
   Warm cultural-portal aesthetic
   ============================================================ */

/* --- Fonts --- */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@400;500;600&display=swap");

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: #FFF7E8;
  color: #2C1A24;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* --- Warning Banner (top & bottom) --- */
.warning-banner {
  width: 100%;
  background: #4A2332;
  color: #FFF7E8;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* --- Header / Nav --- */
.site-header {
  width: 100%;
  max-width: 1120px;
  padding: 28px 24px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-link img {
  height: 44px;
  width: auto;
}

/* Mobile burger — visible only on mobile */
.mobile-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.mobile-burger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #4A2332;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-burger.active span:nth-child(2) {
  opacity: 0;
}
.mobile-burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(74, 35, 50, 0.97);
  z-index: 100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px 24px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: #FFF7E8;
  font-size: 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 247, 232, 0.15);
  width: 100%;
  text-align: center;
  letter-spacing: 0.5px;
}

.mobile-menu a:hover {
  color: #D9983F;
}

/* --- Main Content Wrapper --- */
.main-wrapper {
  width: 100%;
  max-width: 920px;
  padding: 0 24px;
  flex: 1;
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  padding: 48px 0 32px;
}

.hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  color: #4A2332;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero p {
  font-size: 16px;
  color: #5A4A52;
  max-width: 680px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

/* Hero badges */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #FFF7E8;
  border: 1.5px solid #D9983F;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #4A2332;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero-update {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: #728DA8;
}

.hero-update svg {
  width: 18px;
  height: 18px;
}

/* --- Cards Section --- */
.cards-section {
  padding: 16px 0 32px;
}

/* 1 card per row — wide showcase */
.card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(74, 35, 50, 0.06);
  border: 1px solid rgba(217, 152, 63, 0.15);
}

/* Card left — logo area */
.card-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  min-width: 160px;
  width: 160px;
  flex-shrink: 0;
}

.card-logo img {
  width: 18rem;
  height: 8rem;
  object-fit: contain;
  border-radius: 12px;
}

.card-logo .anj-ref {
  margin-top: 8px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  line-height: 1.3;
  font-weight: 400;
}

/* Card body */
.card-body {
  flex: 1;
  padding: 24px 24px 24px 20px;
  display: flex;
  flex-direction: column;
}

.card-description {
  font-size: 14px;
  color: #3A2A34;
  line-height: 1.65;
  margin-bottom: 14px;
}

.card-bullets {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  margin-bottom: 14px;
}

.card-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #4A4A5A;
  line-height: 1.5;
}

.card-bullets li svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Card footer (score + CTA) */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(217, 152, 63, 0.12);
}

.card-score {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.card-score .score-value {
  font-size: 28px;
  font-weight: 700;
  font-family: "Playfair Display", Georgia, serif;
  color: #4A2332;
  line-height: 1;
}

.card-score .score-label {
  font-size: 12px;
  color: #728DA8;
  font-weight: 400;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: #4A2332;
  color: #FFF7E8;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

.card-cta:hover {
  background: #5D2E40;
}

.card-cta svg {
  width: 16px;
  height: 16px;
}

/* Visually hidden accessible heading */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Footer --- */
.site-footer {
  width: 100%;
  background: #281720;
  color: #D4C8CC;
  padding: 48px 24px 24px;
  margin-top: 48px;
  font-size: 13px;
  line-height: 1.7;
}

.footer-inner {
  max-width: 920px;
  margin: 0 auto;
}

.footer-paragraph {
  margin-bottom: 28px;
}

.footer-paragraph p {
  margin-bottom: 10px;
}

.footer-paragraph strong {
  color: #D9983F;
  font-weight: 600;
}

/* Footer links */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 247, 232, 0.08);
}

.footer-links a {
  color: #D4C8CC;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #D9983F;
}

/* Footer resource images */
.footer-resources {
  margin-bottom: 24px;
}

.footer-resources h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 16px;
  color: #D9983F;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-resources-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.footer-resources-grid a {
  display: block;
  line-height: 0;
}

.footer-resources-grid img {
  height: 40px;
  width: auto;
  border-radius: 4px;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-resources-grid img:hover {
  opacity: 1;
}

.footer-copyright {
  text-align: center;
  font-size: 12px;
  color: #8A7A82;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 247, 232, 0.06);
}

/* --- 18+ Popup --- */
.age-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

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

.age-popup-content {
  background: #FFF7E8;
  border-radius: 16px;
  padding: 40px 32px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.age-popup-content h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  color: #4A2332;
  margin-bottom: 12px;
}

.age-popup-content p {
  font-size: 14px;
  color: #5A4A52;
  margin-bottom: 24px;
  line-height: 1.6;
}

.age-popup-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.age-popup-buttons button {
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-yes {
  background: #4A2332;
  color: #FFF7E8;
}

.btn-yes:hover {
  background: #5D2E40;
}

.btn-no {
  background: transparent;
  color: #4A2332;
  border: 1.5px solid #4A2332;
}

.btn-no:hover {
  background: rgba(74, 35, 50, 0.06);
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #281720;
  color: #D4C8CC;
  z-index: 190;
  padding: 20px 24px;
  display: none;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-banner.open {
  display: block;
}

.cookie-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-inner p {
  font-size: 13px;
  flex: 1;
  min-width: 240px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-buttons button {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
}

.cookie-accept {
  background: #D9983F;
  color: #281720;
}

.cookie-accept:hover {
  background: #C68A34;
}

.cookie-refuse {
  background: transparent;
  color: #D4C8CC;
  border: 1.5px solid rgba(212, 200, 204, 0.3);
}

.cookie-refuse:hover {
  border-color: #D4C8CC;
}

/* --- Page header (for subpages) --- */
.page-header {
  padding: 40px 0 24px;
}

.page-header h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 32px;
  color: #4A2332;
  line-height: 1.25;
  margin-bottom: 12px;
}

.page-content {
  font-size: 15px;
  color: #3A2A34;
  line-height: 1.8;
  padding-bottom: 40px;
}

.page-content p {
  margin-bottom: 16px;
}

.page-content strong {
  color: #4A2332;
}

.page-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.page-content ul li {
  padding: 6px 0 6px 24px;
  position: relative;
}

.page-content ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 6px;
  height: 6px;
  background: #D9983F;
  border-radius: 50%;
}

/* --- Turnstile Overlay --- */
.turnstile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(40, 23, 32, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.turnstile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.turnstile-modal {
  background: #FFF7E8;
  border-radius: 16px;
  padding: 40px 32px 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.turnstile-modal-text {
  font-size: 15px;
  color: #4A2332;
  line-height: 1.6;
  margin-bottom: 24px;
}

#turnstile-widget {
  display: flex;
  justify-content: center;
  min-height: 80px;
}

/* --- Thank-you page --- */
.thank-you-box {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  margin: 40px 0;
  box-shadow: 0 2px 12px rgba(74, 35, 50, 0.06);
  border: 1px solid rgba(217, 152, 63, 0.15);
}

.thank-you-box h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  color: #4A2332;
  margin-bottom: 12px;
}

.thank-you-box p {
  font-size: 15px;
  color: #5A4A52;
}

/* --- Internal card pages --- */
.internal-page {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 40px 32px;
  margin: 40px 0;
  text-align: center;
  box-shadow: 0 2px 12px rgba(74, 35, 50, 0.06);
  border: 1px solid rgba(217, 152, 63, 0.15);
}

.internal-page h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  color: #4A2332;
  margin-bottom: 16px;
}

.internal-page p {
  font-size: 15px;
  color: #5A4A52;
  line-height: 1.7;
  margin-bottom: 12px;
}

.internal-page .fallback-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 32px;
  background: #4A2332;
  color: #FFF7E8;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
}

.internal-page .fallback-btn:hover {
  background: #5D2E40;
}

/* --- Top page (identical to homepage) --- */
.top-note {
  text-align: center;
  font-size: 12px;
  color: #728DA8;
  padding: 8px 0;
}

/* --- Contact form --- */
.contact-form {
  max-width: 520px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #4A2332;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid rgba(74, 35, 50, 0.15);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  background: #FFFFFF;
  color: #2C1A24;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #D9983F;
}

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

.contact-form button {
  padding: 12px 32px;
  background: #4A2332;
  color: #FFF7E8;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
}

.contact-form button:hover {
  background: #5D2E40;
}

/* --- Responsive --- */

/* Tablet 768px */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 15px;
  }

  .card {
    flex-direction: column;
  }

  .card-logo {
    width: 100%;
    min-width: auto;
    padding: 20px 24px 12px;
    gap: 16px;
    justify-content: flex-start;
  }


  .card-logo .anj-ref {
    margin-top: 0;
    font-size: 11px;
  }

  .card-body {
    padding: 12px 20px 20px;
  }

  .card-bullets {
    grid-template-columns: 1fr;
  }

  .card-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .site-header {
    padding: 20px 16px 10px;
  }

  .page-header h1 {
    font-size: 26px;
  }

  .footer-inner {
    padding: 0 8px;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile 430px and below */
@media (max-width: 430px) {
  .mobile-burger {
    display: flex;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero {
    padding: 32px 0 24px;
  }

  .hero-badges {
    gap: 6px;
  }

  .hero-badge {
    font-size: 11px;
    padding: 4px 10px;
  }

  .card {
    border-radius: 12px;
  }

  .card-logo {
    padding: 16px 16px 8px;
  }


  .card-body {
    padding: 8px 16px 16px;
  }

  .card-description {
    font-size: 13px;
  }

  .card-bullets li {
    font-size: 12px;
  }

  .card-score .score-value {
    font-size: 24px;
  }

  .card-cta {
    padding: 8px 18px;
    font-size: 13px;
  }

  .age-popup-content {
    padding: 28px 20px 24px;
  }

  .age-popup-content h2 {
    font-size: 20px;
  }

  .age-popup-buttons button {
    padding: 10px 24px;
    font-size: 14px;
  }

  .site-footer {
    padding: 32px 16px 20px;
  }

  .footer-resources-grid img {
    height: 32px;
  }

  .page-content {
    font-size: 14px;
  }

  .internal-page,
  .thank-you-box {
    padding: 28px 20px;
  }
}

/* Mobile 390px */
@media (max-width: 390px) {
  .hero h1 {
    font-size: 22px;
  }

  .hero p {
    font-size: 14px;
  }

  .main-wrapper {
    padding: 0 14px;
  }
}

/* Mobile 360px */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 20px;
  }

  .hero-badge {
    font-size: 10px;
    padding: 3px 8px;
  }

  .card-score .score-value {
    font-size: 20px;
  }
}

/* Desktop 1024px+ */
@media (min-width: 1025px) {
  .hero h1 {
    font-size: 42px;
  }

  .card-logo {
    min-width: 180px;
    width: 180px;
    padding: 32px 24px;
  }

  .card-logo img {
    width: 18rem;
    height: 8rem;
  }
}
