/* ==========================================================================
   clitoris-moi.ch - CSS Moderne 2026
   Design: responsive, rapide, accessible
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #2d2d2d;
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #c2185b; text-decoration: none; transition: color .2s; }
a:hover { color: #880e4f; }
ul, ol { padding-left: 1.5em; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; color: #1a1a1a; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 2rem 0 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin: 1.5rem 0 .8rem; }
p { margin-bottom: 1rem; }
blockquote {
  border-left: 4px solid #c2185b;
  padding: .8rem 1.2rem;
  margin: 1.5rem 0;
  background: #fce4ec;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #4a4a4a;
}

/* --- Layout --- */
.container { max-width: 900px; margin: 0 auto; padding: 0 1.25rem; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #f0f0f0;
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: .6rem 1.25rem;
}
.site-logo { display: flex; align-items: center; gap: .6rem; }
.site-logo img { height: 40px; width: auto; }
.site-logo span {
  font-size: 1.25rem;
  font-weight: 800;
  color: #c2185b;
  letter-spacing: -.02em;
}

/* Desktop nav */
.nav-desktop { display: flex; align-items: center; gap: .2rem; }
.nav-desktop a {
  padding: .5rem .9rem;
  border-radius: 8px;
  color: #444;
  font-size: .92rem;
  font-weight: 500;
  transition: all .2s;
}
.nav-desktop a:hover, .nav-desktop a.active {
  color: #c2185b;
  background: #fce4ec;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-toggle { cursor: pointer; display: flex; align-items: center; gap: .3rem; }
.nav-dropdown .dropdown-toggle::after {
  content: '';
  border: solid #666;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 2.5px;
  transform: rotate(45deg);
  margin-top: -2px;
  transition: transform .2s;
}
.nav-dropdown:hover .dropdown-toggle::after { transform: rotate(-135deg); }
.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  padding: .5rem;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: .6rem .9rem;
  border-radius: 8px;
  font-size: .88rem;
}
.dropdown-menu a:hover { background: #fce4ec; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  margin: 6px 0;
  transition: all .3s;
  border-radius: 2px;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(10px);
  z-index: 999;
  padding: 5rem 2rem 2rem;
  flex-direction: column;
  gap: .3rem;
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block;
  padding: .9rem 1rem;
  font-size: 1.1rem;
  color: #333;
  border-radius: 10px;
  font-weight: 500;
}
.nav-mobile a:hover, .nav-mobile a.active { background: #fce4ec; color: #c2185b; }
.nav-mobile .sub-link { padding-left: 2rem; font-size: 1rem; color: #666; }

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #880e4f 0%, #c2185b 40%, #e91e63 100%);
  color: #fff;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 1;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding: 2rem 1.5rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
  text-shadow: 0 2px 15px rgba(0,0,0,.3);
}
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: .92;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}
.hero .btn {
  display: inline-block;
  padding: .85rem 2rem;
  background: #fff;
  color: #c2185b;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all .3s;
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
}
.hero .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(0,0,0,.25); color: #880e4f; }

/* --- Article Header (for subpages) --- */
.article-header {
  background: linear-gradient(135deg, #880e4f 0%, #c2185b 50%, #e91e63 100%);
  color: #fff;
  padding: 4rem 1.25rem 3rem;
  text-align: center;
}
.article-header h1 { color: #fff; margin-bottom: .5rem; }
.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: .9rem;
  opacity: .85;
  margin-top: .8rem;
  flex-wrap: wrap;
}
.article-meta span { display: flex; align-items: center; gap: .3rem; }

/* --- Reading time badge --- */
.reading-time {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.15);
  padding: .3rem .8rem;
  border-radius: 20px;
  font-size: .85rem;
}

/* --- Table of Contents (summary box) --- */
.toc-box {
  background: #fce4ec;
  border: 1px solid #f8bbd0;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.toc-box h3 {
  font-size: 1.1rem;
  color: #880e4f;
  margin: 0 0 .8rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.toc-box ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin: 0;
}
.toc-box li {
  margin-bottom: .4rem;
  font-size: .95rem;
}
.toc-box a { color: #c2185b; }
.toc-box a:hover { text-decoration: underline; }

/* --- Summary box --- */
.summary-box {
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-left: 4px solid #c2185b;
}
.summary-box p { margin-bottom: .5rem; color: #4a4a4a; }
.summary-box p:last-child { margin-bottom: 0; }

/* --- Content Sections --- */
.content-section { padding: 3rem 0; }
.content-section:nth-child(even) { background: #fafafa; }
.content-section h2 {
  position: relative;
  padding-bottom: .5rem;
}
.content-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #c2185b;
  border-radius: 3px;
}

/* --- Cards grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.1); }
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-body { padding: 1.2rem 1.5rem; }
.card-body h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card-body p { font-size: .92rem; color: #666; margin-bottom: .8rem; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-weight: 600;
  font-size: .9rem;
  color: #c2185b;
}
.card-link:hover { gap: .6rem; }

/* --- Image gallery / figure --- */
.figure {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,.08);
}
.figure img { width: 100%; display: block; }
.figure figcaption {
  padding: .8rem 1rem;
  font-size: .85rem;
  color: #666;
  background: #f9f9f9;
  text-align: center;
}

/* --- FAQ Section --- */
.faq-section { padding: 3rem 0; }
.faq-section h2 { text-align: center; margin-bottom: 2rem; }
.faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  margin-bottom: .8rem;
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item:hover { border-color: #f8bbd0; }
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.5rem;
  background: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: inherit;
  line-height: 1.4;
}
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: #c2185b;
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-answer-inner {
  padding: 0 1.5rem 1.2rem;
  color: #555;
  font-size: .95rem;
  line-height: 1.7;
}

/* --- Footer --- */
.site-footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.footer-col a { color: #aaa; font-size: .9rem; display: block; padding: .2rem 0; }
.footer-col a:hover { color: #f48fb1; }
.footer-social { display: flex; gap: .8rem; margin-top: .5rem; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  transition: all .2s;
}
.footer-social a:hover { background: #c2185b; }
.footer-social svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .85rem;
  color: #888;
}

/* --- Tables --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .92rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
thead { background: #c2185b; color: #fff; }
th { padding: .8rem 1rem; text-align: left; font-weight: 600; }
td { padding: .7rem 1rem; border-bottom: 1px solid #eee; }
tbody tr:hover { background: #fce4ec; }

/* --- Lists (enhanced) --- */
.check-list { list-style: none; padding-left: 0; }
.check-list li {
  padding: .4rem 0 .4rem 1.8rem;
  position: relative;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #c2185b;
  font-weight: 700;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: .8rem 0;
  font-size: .85rem;
  color: #888;
}
.breadcrumbs a { color: #666; }
.breadcrumbs a:hover { color: #c2185b; }
.breadcrumbs span { margin: 0 .4rem; }

/* --- Utilities --- */
.text-center { text-align: center; }
.text-pink { color: #c2185b; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --- Responsive images grid --- */
.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.img-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

/* --- Stat cards (homepage) --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}
.stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #c2185b;
  line-height: 1;
  margin-bottom: .3rem;
}
.stat-label { font-size: .88rem; color: #888; }

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, #880e4f, #c2185b);
  color: #fff;
  padding: 3.5rem 1.25rem;
  text-align: center;
  border-radius: 0;
}
.cta-section h2 { color: #fff; margin-bottom: .8rem; }
.cta-section h2::after { display: none; }
.cta-section p { opacity: .9; margin-bottom: 1.5rem; }
.cta-btn {
  display: inline-block;
  padding: .85rem 2.5rem;
  background: #fff;
  color: #c2185b;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all .3s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(0,0,0,.2); color: #880e4f; }

/* --- Schema / structured data helpers --- */
.article-content { max-width: 800px; margin: 0 auto; }
.article-content p { font-size: 1.05rem; }
.article-content h2 { margin-top: 2.5rem; }

/* --- Print --- */
@media print {
  .site-header, .site-footer, .nav-toggle, .faq-section { display: none; }
  body { font-size: 12pt; color: #000; }
}

/* --- Accessibility --- */
:focus-visible {
  outline: 3px solid #c2185b;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
