/* ======================================================
   Comparatif Expert — Main Stylesheet
   Color System: Corporate Neutral (#3)
   ====================================================== */

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1b2a4a;
  background: #f8f7f4;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #1b6b7a;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #145560;
}
a:focus-visible {
  outline: 2px solid #1b6b7a;
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  color: #1b2a4a;
  line-height: 1.25;
  font-weight: 600;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

ul { list-style: none; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e0ddd6;
}

/* --- Header --- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e0ddd6;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-search {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border: 1px solid #d5d2ca;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #f8f7f4;
  color: #1b2a4a;
  transition: border-color 0.2s;
}
.search-input:focus {
  outline: none;
  border-color: #1b6b7a;
  background: #ffffff;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #8a8780;
  pointer-events: none;
}

.header-nav .nav-list {
  display: flex;
  gap: 1.25rem;
}
.header-nav .nav-list a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1b2a4a;
  white-space: nowrap;
}
.header-nav .nav-list a:hover {
  color: #1b6b7a;
}

/* --- Mobile Menu --- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
}
.menu-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #1b2a4a;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.mobile-menu {
  display: block;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100%;
  background: #ffffff;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  z-index: 2000;
  padding: 1.5rem;
  transition: right 0.3s ease;
  overflow-y: auto;
  visibility: hidden;
}
.mobile-menu.open {
  right: 0;
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2rem;
}
.menu-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #1b2a4a;
  padding: 0.25rem;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mobile-nav-list a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: #1b2a4a;
  border-bottom: 1px solid #f0efe9;
}
.mobile-nav-list a:hover {
  color: #1b6b7a;
}

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1500;
}
.menu-overlay.open {
  display: block;
}

/* --- Hero --- */
.hero {
  background: #ffffff;
  padding: 3.5rem 0;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.hero-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1b2a4a;
}

.hero-lead {
  font-size: 1.05rem;
  color: #4a4a4a;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: #1b6b7a;
  color: #ffffff;
}
.btn-primary:hover {
  background: #145560;
  color: #ffffff;
}
.btn-secondary {
  background: #f0efe9;
  color: #1b2a4a;
}
.btn-secondary:hover {
  background: #e0ddd6;
}

.hero-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.hero-tile {
  background: #f8f7f4;
  border: 1px solid #e0ddd6;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}
.hero-tile .tile-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1b6b7a;
  margin-bottom: 0.25rem;
}
.hero-tile .tile-label {
  display: block;
  font-size: 0.8rem;
  color: #6a6a6a;
}

/* --- Platform Cards Section --- */
.platform-cards-section {
  padding: 3rem 0;
  background: #f8f7f4;
}

.platform-cards-section .section-intro {
  max-width: 800px;
  margin-bottom: 2rem;
  color: #4a4a4a;
  font-size: 0.95rem;
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.platform-card {
  background: #ffffff;
  border: 1px solid #e0ddd6;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* --- Logo area with colored backgrounds --- */
.platform-card-logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  min-height: 180px;
}
.platform-card[data-platform="1"] .platform-card-logo-area {
  background: #e4f0f2;
}
.platform-card[data-platform="2"] .platform-card-logo-area {
  background: #e1e7f0;
}
.platform-card[data-platform="3"] .platform-card-logo-area {
  background: #f0ebe2;
}
.platform-card[data-platform="4"] .platform-card-logo-area {
  background: #e4f0e4;
}
.platform-card[data-platform="5"] .platform-card-logo-area {
  background: #ece4f0;
}

.platform-card-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  padding: 0.5rem;
}

.platform-card-header {
  padding: 1rem 1.25rem 0.75rem;
}
.platform-card-header h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}
.platform-card-meta {
  font-size: 0.75rem;
  color: #6a6a6a;
  line-height: 1.4;
}

.platform-card-body {
  padding: 0 1.25rem 1rem;
  flex: 1;
}
.platform-card-summary {
  font-size: 0.88rem;
  color: #4a4a4a;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.platform-criteria {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.criteria-chip {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  border: 1px solid #d5d2ca;
  border-radius: 4px;
  color: #4a4a4a;
  background: #f8f7f4;
}

.platform-card-editorial {
  padding: 0.75rem 1.25rem;
  background: #f8f7f4;
  border-top: 1px solid #e0ddd6;
  font-size: 0.82rem;
  color: #6a6a6a;
  line-height: 1.5;
}

.platform-card-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #e0ddd6;
}
.platform-card-footer .btn {
  width: 100%;
}

/* --- Editorial Content Sections --- */
.editorial-section {
  padding: 2.5rem 0;
}
.editorial-section:nth-child(even) {
  background: #ffffff;
}

.editorial-section .container {
  max-width: 800px;
}

.editorial-section p {
  margin-bottom: 1rem;
  color: #4a4a4a;
}

/* --- Criteria Grid --- */
.criteria-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.criteria-card {
  background: #ffffff;
  border: 1px solid #e0ddd6;
  border-radius: 8px;
  padding: 1.25rem;
}
.criteria-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  padding-left: 0.75rem;
  border-left: 3px solid #1b6b7a;
}
.criteria-card p {
  font-size: 0.9rem;
  color: #4a4a4a;
  line-height: 1.6;
}

/* --- CTA Card Area --- */
.cta-area {
  padding: 3rem 0;
  background: #ffffff;
}

.cta-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.cta-card {
  background: #f8f7f4;
  border: 1px solid #e0ddd6;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}
.cta-card-icon {
  margin-bottom: 0.75rem;
  color: #1b6b7a;
}
.cta-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.cta-card p {
  font-size: 0.88rem;
  color: #4a4a4a;
  margin-bottom: 1rem;
}
.cta-card .btn {
  width: 100%;
}

/* --- FAQ --- */
.faq-section {
  padding: 3rem 0;
  background: #ffffff;
}
.faq-section .container {
  max-width: 800px;
}

.faq-item {
  border: 1px solid #e0ddd6;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: #f8f7f4;
  border: none;
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1b2a4a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s;
}
.faq-question:hover {
  background: #f0efe9;
}
.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  flex-shrink: 0;
  color: #1b6b7a;
  transition: transform 0.2s;
}
.faq-question[aria-expanded="true"]::after {
  content: '−';
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1rem;
  font-size: 0.9rem;
  color: #4a4a4a;
  line-height: 1.6;
}
.faq-answer.open {
  display: block;
}

/* --- Pre-footer --- */
.pre-footer {
  padding: 2.5rem 0;
  background: #1b2a4a;
  color: #e0ddd6;
}
.pre-footer .container {
  max-width: 800px;
}
.pre-footer p {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* --- Footer --- */
.site-footer {
  background: #ffffff;
  border-top: 1px solid #e0ddd6;
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-resources {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0ddd6;
}
.footer-resources-title {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #1b2a4a;
}
.footer-resources-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  align-items: center;
}
.footer-resource-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  background: #959594;
  border-radius: 6px;
  padding: 0.5rem;
}
.footer-resource-item img {
  max-height: 42px;
  width: auto;
  object-fit: contain;
}
.footer-resource-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: opacity 0.2s;
}
.footer-resource-item a:hover {
  opacity: 0.8;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.footer-col h3 {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8a8780;
}
.footer-col ul li {
  margin-bottom: 0.4rem;
}
.footer-col ul li a {
  font-size: 0.85rem;
  color: #4a4a4a;
}
.footer-col ul li a:hover {
  color: #1b6b7a;
}

.footer-bottom {
  border-top: 1px solid #e0ddd6;
  padding-top: 1.5rem;
  text-align: center;
}
.footer-description {
  font-size: 0.8rem;
  color: #8a8780;
  max-width: 700px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}
.footer-responsible {
  font-size: 0.82rem;
  color: #4a4a4a;
  max-width: 700px;
  margin: 0 auto 1rem;
  line-height: 1.6;
  padding: 0.75rem;
  background: #f8f7f4;
  border-radius: 6px;
}
.footer-copy {
  font-size: 0.8rem;
  color: #8a8780;
}

/* --- Age Gate Popup --- */
.age-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.age-gate-overlay.hidden {
  display: none;
}

.age-gate-modal {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.age-gate-modal h2 {
  margin-bottom: 0.75rem;
}
.age-gate-modal p {
  font-size: 0.9rem;
  color: #4a4a4a;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.age-gate-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e0ddd6;
  padding: 1.25rem;
  z-index: 9000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.cookie-banner.hidden {
  display: none;
}
.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner p {
  flex: 1;
  font-size: 0.85rem;
  color: #4a4a4a;
  min-width: 250px;
}
.cookie-buttons {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.cookie-buttons .btn {
  font-size: 0.82rem;
  padding: 0.5rem 1rem;
}

/* --- Legal FAQ Pages --- */
.legal-hero {
  background: #ffffff;
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid #e0ddd6;
}
.legal-hero h1 {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.legal-faq-section {
  padding: 2.5rem 0;
}
.legal-faq-section .container {
  max-width: 800px;
}

.legal-summary-card {
  background: #f8f7f4;
  border: 1px solid #e0ddd6;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
}
.legal-summary-card h3 {
  margin-bottom: 0.75rem;
}
.legal-summary-card p {
  font-size: 0.9rem;
  color: #4a4a4a;
  line-height: 1.6;
}
.legal-summary-card .btn {
  margin-top: 1rem;
}

/* --- Contact Page --- */
.contact-section {
  padding: 3rem 0;
}
.contact-section .container {
  max-width: 700px;
}
.contact-info {
  margin-bottom: 2rem;
}
.contact-info p {
  margin-bottom: 0.75rem;
  color: #4a4a4a;
}

.contact-form {
  display: grid;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #1b2a4a;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.6rem 0.75rem;
  border: 1px solid #d5d2ca;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #ffffff;
  color: #1b2a4a;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1b6b7a;
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* --- Thank-you Page --- */
.thankyou-section {
  padding: 5rem 0;
  text-align: center;
}
.thankyou-section .container {
  max-width: 600px;
}
.thankyou-section h1 {
  margin-bottom: 1rem;
}
.thankyou-section p {
  color: #4a4a4a;
  margin-bottom: 1rem;
  line-height: 1.7;
}
.thankyou-links {
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

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

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .header-search {
    max-width: none;
  }
  .hero-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
  .criteria-grid {
    grid-template-columns: 1fr;
  }
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-grid {
    grid-template-columns: 1fr;
  }
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .footer-resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  h1 { font-size: 1.5rem; }
  .hero { padding: 2rem 0; }
  .section { padding: 2rem 0; }
  .age-gate-modal { padding: 1.5rem; }
}
