/* ============================================
   MEILLEURE SÉLECTION — Warm Magazine Design
   Color System #9 | Warm Magazine
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, 'Times New Roman', Times, serif;
  color: #2C1810;
  background: #FAF0E6;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #A0522D;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover, a:focus {
  color: #8B4513;
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid #A0522D;
  outline-offset: 2px;
}

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

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

.section-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #D4B8A0, transparent);
  margin: 60px 0;
}

/* ============================================
   HEADER — Magazine Masthead (HeaderFooter #7)
   ============================================ */
.site-header {
  background: #FFF8F0;
  border-bottom: 1px solid #E8D5C4;
}

.header-utility {
  background: #2C1810;
  padding: 6px 0;
  font-size: 0.75rem;
  color: #D4B8A0;
}

.header-utility .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.utility-note {
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.65rem;
}

.utility-update {
  font-size: 0.65rem;
  color: #B89A80;
}

.header-masthead {
  padding: 24px 0 16px;
  text-align: center;
  border-bottom: 1px solid #E8D5C4;
}

.logo-link {
  display: inline-block;
}

.site-logo {
  max-width: 300px;
  height: auto;
}

.header-nav {
  background: #FFFDF8;
  border-bottom: 1px solid #E8D5C4;
}

.header-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #2C1810;
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 0;
}

.nav-link {
  display: block;
  padding: 14px 20px;
  color: #2C1810;
  font-size: 0.9rem;
  font-weight: normal;
  letter-spacing: 0.3px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: #A0522D;
  text-decoration: none;
  border-bottom-color: #A0522D;
}

/* --- Category Pills (Navigation #7) --- */
.header-pills {
  background: #FFF8F0;
  padding: 12px 0;
  border-bottom: 1px solid #E8D5C4;
}

.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.pill {
  display: inline-block;
  padding: 6px 18px;
  background: #FFFDF8;
  border: 1px solid #D4B8A0;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #5C4033;
  letter-spacing: 0.3px;
  transition: all 0.2s;
}

.pill:hover,
.pill:focus {
  background: #A0522D;
  color: #FFFDF8;
  border-color: #A0522D;
  text-decoration: none;
}

/* ============================================
   HERO — Editorial Magazine (Hero #3)
   ============================================ */
.hero {
  padding: 60px 0 50px;
  background: linear-gradient(135deg, #FAF0E6 0%, #F5E6D3 50%, #EDE0D4 100%);
  border-bottom: 1px solid #E8D5C4;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  color: #2C1810;
  margin-bottom: 20px;
  font-weight: bold;
}

.hero-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #5C4033;
  margin-bottom: 30px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 0.9rem;
  border: 1px solid #A0522D;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background: #A0522D;
  color: #FFFDF8;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #8B4513;
  border-color: #8B4513;
  color: #FFFDF8;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: #A0522D;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: #FFFDF8;
  color: #8B4513;
  text-decoration: none;
}

/* ============================================
   ANCHOR NAV — Quick Reading Guide
   ============================================ */
.anchor-nav {
  background: #FFF8F0;
  padding: 20px 0;
  border-bottom: 1px solid #E8D5C4;
}

.anchor-nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.anchor-nav-link {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: #5C4033;
  border: 1px solid #D4B8A0;
  border-radius: 4px;
  transition: all 0.2s;
}

.anchor-nav-link:hover,
.anchor-nav-link:focus {
  background: #A0522D;
  color: #FFFDF8;
  border-color: #A0522D;
  text-decoration: none;
}

/* ============================================
   SECTIONS — Magazine Layout (Section Layout #4)
   ============================================ */
.section {
  padding: 50px 0;
}

.section-alt {
  background: #F5E6D3;
}

.section-cream {
  background: #FFF8F0;
}

.section-title {
  font-size: 1.6rem;
  color: #2C1810;
  margin-bottom: 10px;
  font-weight: bold;
}

.section-subtitle {
  font-size: 1rem;
  color: #8B7355;
  margin-bottom: 30px;
  font-style: italic;
}

.section-intro {
  max-width: 720px;
  margin-bottom: 40px;
  color: #5C4033;
  font-size: 1rem;
}

/* --- Feature Blocks --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.feature-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.feature-block {
  background: #FFFDF8;
  border: 1px solid #E8D5C4;
  border-radius: 6px;
  padding: 28px;
  transition: box-shadow 0.2s;
}

.feature-block:hover {
  box-shadow: 0 4px 16px rgba(44,24,16,0.06);
}

.feature-block-title {
  font-size: 1.1rem;
  color: #A0522D;
  margin-bottom: 10px;
  font-weight: bold;
}

.feature-block p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #5C4033;
}

/* --- Criteria Grid --- */
.criteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.criterion-card {
  background: #FFFDF8;
  border: 1px solid #E8D5C4;
  border-radius: 6px;
  padding: 24px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.criterion-card:hover {
  box-shadow: 0 4px 16px rgba(44,24,16,0.06);
}

.criterion-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  background: #F5E6D3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.criterion-icon svg {
  width: 24px;
  height: 24px;
  fill: #A0522D;
}

.criterion-title {
  font-size: 1rem;
  color: #2C1810;
  margin-bottom: 8px;
  font-weight: bold;
}

.criterion-desc {
  font-size: 0.85rem;
  color: #5C4033;
  line-height: 1.6;
}

/* ============================================
   PLATFORM CARDS
   ============================================ */
.cards-section {
  padding: 60px 0;
}

.cards-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.platform-card {
  background: #FFFDF8;
  border: 1px solid #E0CDBB;
  border-radius: 8px;
  padding: 35px 40px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.platform-card:hover {
  box-shadow: 0 6px 20px rgba(44,24,16,0.08);
}

.platform-card-logo {
  text-align: center;
  margin-bottom: 16px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-card-logo img {
  max-height: 200px;
  width: auto;
}

.platform-card-meta {
  text-align: center;
  font-size: 0.75rem;
  color: #8B7355;
  margin-bottom: 12px;
  font-style: italic;
}

.platform-card h3 {
  text-align: center;
  font-size: 1.15rem;
  color: #2C1810;
  margin-bottom: 14px;
  font-weight: bold;
}

.platform-card-summary {
  font-size: 0.88rem;
  color: #5C4033;
  line-height: 1.7;
  margin-bottom: 16px;
}

.platform-card-criteria {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.platform-card-criteria li {
  font-size: 0.85rem;
  color: #5C4033;
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.platform-card-criteria li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #A0522D;
  font-weight: bold;
}

.platform-card-note {
  font-size: 0.85rem;
  color: #8B7355;
  line-height: 1.6;
  margin-bottom: 16px;
  padding: 12px;
  background: #FAF0E6;
  border-radius: 4px;
  font-style: italic;
}

.platform-card-cta {
  margin-top: auto;
  text-align: center;
}

.platform-card-cta .btn {
  min-width: 200px;
}

/* ============================================
   CTA RESOURCE (CTA #8)
   ============================================ */
.cta-resource {
  background: #FFF8F0;
  padding: 50px 0;
  border-top: 1px solid #E8D5C4;
  border-bottom: 1px solid #E8D5C4;
}

.cta-resource-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.cta-resource h3 {
  font-size: 1.3rem;
  color: #2C1810;
  margin-bottom: 10px;
}

.cta-resource p {
  font-size: 0.95rem;
  color: #5C4033;
  margin-bottom: 20px;
}

.cta-resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid #E8D5C4;
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #FFFDF8;
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  text-align: left;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 0.95rem;
  color: #2C1810;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover {
  background: #FAF0E6;
}

.faq-question::after {
  content: '+';
  font-size: 1.2rem;
  color: #A0522D;
  transition: transform 0.2s;
}

.faq-question.open::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 20px;
}

.faq-answer.open {
  max-height: 600px;
  padding: 0 20px 16px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: #5C4033;
  line-height: 1.7;
}

/* ============================================
   PRE-FOOTER
   ============================================ */
.pre-footer {
  background: #F5E6D3;
  padding: 50px 0;
  border-top: 1px solid #E8D5C4;
}

.pre-footer-content {
  max-width: 720px;
  margin: 0 auto;
}

.pre-footer h3 {
  font-size: 1.2rem;
  color: #2C1810;
  margin-bottom: 16px;
  text-align: center;
}

.pre-footer p {
  font-size: 0.9rem;
  color: #5C4033;
  line-height: 1.7;
  margin-bottom: 14px;
}

/* ============================================
   FOOTER — Newspaper Footer (HeaderFooter #7)
   ============================================ */
.site-footer {
  background: #2C1810;
  color: #D4B8A0;
  padding: 50px 0 30px;
}

.site-footer a {
  color: #B89A80;
}

.site-footer a:hover {
  color: #FFFDF8;
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-heading {
  font-size: 0.9rem;
  color: #E8D5C4;
  margin-bottom: 14px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-col-about p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: #B89A80;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 0.82rem;
  color: #B89A80;
}

.footer-email {
  font-size: 0.82rem;
  color: #A0522D;
  margin-top: 8px;
}

/* --- Footer Resources --- */
.footer-resources {
  border-top: 1px solid #3D2A1E;
  padding-top: 30px;
  margin-bottom: 30px;
}

.footer-resources-title {
  font-size: 0.85rem;
  color: #E8D5C4;
  margin-bottom: 20px;
  text-align: center;
  font-weight: normal;
  letter-spacing: 0.5px;
}

.footer-resources-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  align-items: center;
}

.footer-resource-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-resource-item img {
  max-height: 50px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-resource-item a:hover img {
  opacity: 1;
}

/* --- Footer Bottom --- */
.footer-bottom {
  border-top: 1px solid #3D2A1E;
  padding-top: 20px;
  text-align: center;
}

.footer-copyright {
  font-size: 0.75rem;
  color: #8B7355;
  margin-bottom: 10px;
}

.footer-disclosure {
  font-size: 0.72rem;
  color: #8B7355;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================
   AGE GATE OVERLAY
   ============================================ */
.age-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44,24,16,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.age-gate-modal {
  background: #FFF8F0;
  border-radius: 8px;
  padding: 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  border: 1px solid #D4B8A0;
}

.age-gate-modal h2 {
  font-size: 1.4rem;
  color: #2C1810;
  margin-bottom: 12px;
}

.age-gate-modal p {
  font-size: 0.92rem;
  color: #5C4033;
  line-height: 1.6;
  margin-bottom: 24px;
}

.age-gate-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.age-gate-actions .btn {
  min-width: 140px;
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #2C1810;
  color: #D4B8A0;
  padding: 20px;
  z-index: 9998;
  border-top: 2px solid #A0522D;
}

.cookie-banner-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner p {
  font-size: 0.85rem;
  line-height: 1.5;
  flex: 1;
  min-width: 260px;
}

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

.cookie-banner-actions .btn {
  font-size: 0.8rem;
  padding: 8px 16px;
}

.cookie-btn-accept {
  background: #A0522D;
  color: #FFFDF8;
  border: 1px solid #A0522D;
}

.cookie-btn-accept:hover {
  background: #8B4513;
}

.cookie-btn-refuse {
  background: transparent;
  color: #B89A80;
  border: 1px solid #5C4033;
}

.cookie-btn-refuse:hover {
  color: #FFFDF8;
  border-color: #B89A80;
}

/* ============================================
   CONTENT PAGES
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, #FAF0E6 0%, #F5E6D3 100%);
  padding: 50px 0;
  border-bottom: 1px solid #E8D5C4;
}

.page-hero h1 {
  font-size: 1.8rem;
  color: #2C1810;
  text-align: center;
}

.page-content {
  padding: 50px 0;
}

.page-content article {
  max-width: 740px;
  margin: 0 auto;
}

.page-content h2 {
  font-size: 1.35rem;
  color: #A0522D;
  margin: 30px 0 14px;
  font-weight: bold;
}

.page-content h3 {
  font-size: 1.1rem;
  color: #2C1810;
  margin: 24px 0 10px;
}

.page-content p {
  font-size: 0.95rem;
  color: #5C4033;
  line-height: 1.8;
  margin-bottom: 16px;
}

.page-content ul,
.page-content ol {
  margin: 0 0 16px 24px;
  font-size: 0.95rem;
  color: #5C4033;
  line-height: 1.8;
}

.page-content li {
  margin-bottom: 6px;
}

.page-content strong {
  color: #2C1810;
}

.page-content blockquote {
  border-left: 3px solid #A0522D;
  padding: 12px 20px;
  margin: 20px 0;
  background: #FAF0E6;
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: #5C4033;
}

.page-cta {
  text-align: center;
  margin: 40px 0;
}

/* --- Thank you page --- */
.thank-you-icon {
  text-align: center;
  margin-bottom: 20px;
}

.thank-you-icon svg {
  width: 64px;
  height: 64px;
  fill: #A0522D;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-resources-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* Mobile large */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero-lead {
    font-size: 1rem;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #FFFDF8;
    border-bottom: 1px solid #E8D5C4;
    z-index: 100;
  }
  .nav-menu.active {
    display: block;
  }
  .nav-list {
    flex-direction: column;
  }
  .nav-link {
    padding: 12px 20px;
    border-bottom: 1px solid #F0E4D8;
  }
  .header-nav .container {
    position: relative;
  }
  .header-pills {
    display: none;
  }
  .feature-grid,
  .feature-grid-2,
  .feature-grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }
  .age-gate-modal {
    padding: 28px 20px;
  }
  .age-gate-actions {
    flex-direction: column;
  }
  .age-gate-actions .btn {
    width: 100%;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .criteria-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile small */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.35rem;
  }
  .section-title {
    font-size: 1.3rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }
  .criteria-grid {
    grid-template-columns: 1fr;
  }
  .footer-resources-grid {
    grid-template-columns: 1fr;
  }
  .platform-card {
    padding: 20px;
  }
}

/* Desktop large */
@media (min-width: 1025px) {
  .cards-grid {
    max-width: 820px;
  }
}
