/* =========================================================
   HÉLÈNE AUBERT — STYLES
   Identité éditeur neutre : blanc / gris / noir
   Couleurs des livres = utilisées UNIQUEMENT sur leur fiche dédiée
   Typographie : Inter (400, 500, 600, 700, 800)
   ========================================================= */

:root {
  /* Palette éditeur neutre */
  --white: #FFFFFF;
  --black: #0D0D0D;
  --black-deep: #0D0D0D;
  --text-secondary: #555555;
  --border-light: #E5E5E5;
  --gray-soft: #F8F8F8;
  --gray-medium: #AAAAAA;

  /* Couleurs des livres — réservées à leur section/CTA dédiés */
  --book-filles: #FF4D8B;
  --book-garcons: #4D9FFF;
}

/* ---------- 1. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--black); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { padding-left: 1.2em; }
.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;
}

/* ---------- 2. Typography ---------- */
h1, h2, h3, h4 { color: var(--black); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-weight: 800; font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-weight: 700; font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-weight: 600; font-size: 1.25rem; }
p  { margin: 0 0 1.2em; color: var(--black); }
.lead { font-size: 1.15rem; color: var(--text-secondary); }

/* Accent sobre dans le titre hero — filet noir 4px sous le segment */
.accent-magenta {
  color: var(--black);
  display: inline;
  background-image: linear-gradient(to top, var(--black) 0, var(--black) 4px, transparent 4px);
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 2px;
}

.section-overline,
.hero-overline,
.page-overline,
.book-overline {
  font-weight: 500;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--black);
  margin: 0 0 1.2em;
}

/* ---------- 3. Layout utils ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
@media (min-width: 1024px) { section { padding: 110px 0; } }

.bg-soft { background: var(--gray-soft); }

/* ---------- 4. Header ---------- */
.site-header {
  height: 80px;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-weight: 700; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--black);
}
.brand:hover { color: var(--black); }
.nav-toggle { display: none; padding: 8px; color: var(--black); }
.nav-toggle svg { width: 26px; height: 26px; }
.main-nav ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.main-nav a {
  font-weight: 500; font-size: .95rem; color: var(--black);
  position: relative; padding-bottom: 4px;
}
.main-nav a:hover { color: var(--black); }
.main-nav a.active::after,
.main-nav a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--black);
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; top: 80px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border-light);
    transform: translateY(-110%); transition: transform .3s ease;
    visibility: hidden;
  }
  .main-nav.open { transform: translateY(0); visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 16px 24px; }
  .main-nav li { border-bottom: 1px solid var(--border-light); }
  .main-nav li:last-child { border-bottom: 0; }
  .main-nav a { display: block; padding: 16px 0; }
  .main-nav a.active::after,
  .main-nav a:hover::after { display: none; }
}

/* ---------- 5. Buttons & links ---------- */
.cta-primary {
  display: inline-block;
  background: var(--black);
  color: var(--white) !important;
  padding: 16px 32px;
  font-weight: 600; font-size: 15px;
  letter-spacing: 0.05em;
  border-radius: 4px;
  transition: background .2s ease, transform .2s ease;
}
.cta-primary:hover { background: #333333; transform: translateY(-1px); }
.cta-primary:disabled { background: #999; cursor: not-allowed; transform: none; }

.cta-secondary {
  display: inline-block;
  background: transparent;
  color: var(--black) !important;
  padding: 14px 30px;
  font-weight: 600; font-size: 15px;
  letter-spacing: 0.05em;
  border: 2px solid var(--black);
  border-radius: 4px;
  transition: all .2s ease;
}
.cta-secondary:hover { background: var(--black); color: var(--white) !important; }

/* Exception : CTA spécifique au livre Filles (sa propre fiche uniquement) */
.cta-book-filles {
  display: inline-block;
  background: var(--book-filles);
  color: var(--white) !important;
  padding: 16px 32px;
  font-weight: 600; font-size: 15px;
  letter-spacing: 0.05em;
  border-radius: 4px;
  transition: background .2s ease, transform .2s ease;
}
.cta-book-filles:hover { background: #E33D78; transform: translateY(-1px); }

.link-arrow { font-weight: 600; color: var(--black); display: inline-block; margin-top: 8px; }
.link-arrow:hover { color: var(--text-secondary); }
.link-arrow-disabled { font-weight: 600; color: #999; display: inline-block; margin-top: 8px; }

.cta-center { text-align: center; margin-top: 56px; }

/* ---------- 6. Hero ---------- */
.hero { padding: 90px 0 100px; }
.hero .container {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
}
@media (min-width: 1024px) {
  .hero .container { grid-template-columns: 6fr 4fr; gap: 64px; }
}
.hero-title { margin-bottom: .4em; }
.hero-subtitle {
  font-size: 1.2rem; color: var(--text-secondary);
  max-width: 580px; margin-bottom: 2em;
}
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  min-height: 320px;
}
.hero-image { max-width: 420px; width: 100%; margin: 0 auto; }
.hero-image img {
  width: 100%; height: auto; display: block; border-radius: 4px;
  box-shadow: 0 30px 60px -20px rgba(13,13,13,.35);
}
.hero-visual .book-mockup-frame {
  background: linear-gradient(135deg, #0D0D0D, #2a2a2a);
  color: var(--white);
  width: 100%; max-width: 320px; aspect-ratio: 3/4;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 30px 60px -20px rgba(13,13,13,.35);
}

/* ---------- 7. Page hero ---------- */
.page-hero { padding: 100px 0 60px; text-align: left; }
.page-hero h1 { max-width: 880px; }
.page-intro { font-size: 1.2rem; color: var(--text-secondary); max-width: 740px; }

/* ---------- 8. Project section ---------- */
.project { background-color: var(--gray-soft); }
.project-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 40px;
}
@media (min-width: 768px) { .project-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.project-block h3 { margin-bottom: .6em; }
.project-block p { color: var(--text-secondary); margin: 0; }

/* ---------- 9. Collection preview / Book cards ---------- */
.books-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 48px;
}
@media (min-width: 768px) { .books-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.book-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 28px 24px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.book-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(13,13,13,.15); }
.book-card-upcoming { opacity: .85; }
.book-card h3 { margin: 16px 0 8px; }
.book-card p { color: var(--text-secondary); flex-grow: 1; }

.book-mockup {
  aspect-ratio: 3/4;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #0D0D0D, #2a2a2a);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; text-align: center; padding: 16px;
  font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
}
.book-mockup img { width: 100%; height: 100%; object-fit: cover; display: block; }

.book-mockup-placeholder {
  aspect-ratio: 3/4;
  background-color: var(--gray-soft);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 16px;
}
.placeholder-icon { width: 60px; height: 60px; margin-bottom: 16px; opacity: 0.5; }
.placeholder-icon rect,
.placeholder-icon line,
.placeholder-icon circle { stroke: #999999 !important; }
.placeholder-icon circle[fill] { fill: #999999 !important; }
.placeholder-text {
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gray-medium); margin: 0;
}

.badge-status {
  position: absolute; top: 16px; right: 16px;
  font-size: .7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 3px;
}
/* Badge "DISPONIBLE" = magenta uniquement parce que c'est le livre Filles */
.badge-published { background: var(--book-filles); color: var(--white); }
.badge-upcoming  { background: var(--black); color: var(--white); }

/* ---------- 10. Freebie (neutre — gris très clair) ---------- */
.freebie { background-color: var(--gray-soft); }
.freebie .container { max-width: 820px; }
.freebie-intro { font-size: 1.15rem; color: var(--text-secondary); }
.freebie-features { list-style: none; padding: 0; margin: 0 0 2em; }
.freebie-features li {
  padding: 12px 0 12px 32px; position: relative;
  border-bottom: 1px solid rgba(13,13,13,.08);
}
.freebie-features li::before {
  content: ""; position: absolute; left: 0; top: 18px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--black);
}
.freebie-note { color: var(--text-secondary); font-style: italic; margin-bottom: 2em; }

.freebie-form { margin-top: 32px; }
.form-row { margin-bottom: 14px; }
.freebie-form input[type="text"],
.freebie-form input[type="email"] {
  width: 100%; padding: 16px 18px;
  font-family: inherit; font-size: 1rem;
  border: 1px solid var(--border-light); border-radius: 4px;
  background: var(--white); color: var(--black);
  transition: border-color .2s ease;
}
.freebie-form input:focus { outline: none; border-color: var(--black); }
.form-consent { margin: 18px 0 22px; }
.checkbox-label {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .9rem; color: var(--text-secondary); line-height: 1.5;
  cursor: pointer;
}
.checkbox-label input { margin-top: 4px; accent-color: var(--black); flex-shrink: 0; }

.form-message { margin-top: 14px; font-size: .95rem; min-height: 1.2em; }
.form-message.success { color: #117a3a; }
.form-message.error   { color: #c0392b; }

/* ---------- 11. About preview ---------- */
.about-preview .container { max-width: 820px; }
.about-preview-text { font-size: 1.1rem; color: var(--text-secondary); }

/* ---------- 12. Book detail (collection page) ---------- */
.book-detail { border-bottom: 1px solid var(--border-light); }
.book-detail:last-child { border-bottom: 0; }
.book-detail-grid {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start;
}
@media (min-width: 1024px) { .book-detail-grid { grid-template-columns: 4fr 6fr; gap: 72px; } }
.book-detail-image { position: relative; }
.book-detail-image .book-mockup,
.book-detail-image .book-mockup-placeholder {
  max-width: 360px; margin: 0 auto;
}
.book-detail-image img {
  max-width: 360px; width: 100%; height: auto;
  margin: 0 auto; display: block; border-radius: 4px;
  box-shadow: 0 24px 48px -18px rgba(13,13,13,.3);
}
.book-tagline { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 1.8em; }
.book-stats {
  display: flex; gap: 32px; margin: 24px 0 32px;
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.stat { display: flex; flex-direction: column; }
.stat-number {
  font-weight: 800; font-size: 1.8rem; color: var(--black); line-height: 1;
}
.stat-label {
  font-size: .8rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-secondary); margin-top: 6px;
}
.book-description { color: var(--text-secondary); }
.book-features { list-style: none; padding: 0; margin: 0 0 2em; }
.book-features li {
  padding: 10px 0 10px 24px; position: relative;
  border-bottom: 1px solid rgba(13,13,13,.06);
  color: var(--black);
}
.book-features li::before {
  content: "·"; position: absolute; left: 6px; top: 6px;
  color: var(--black); font-weight: 800; font-size: 1.6em;
}
.upcoming-note {
  background: var(--gray-soft); padding: 18px 22px; border-radius: 4px;
  color: var(--black); font-weight: 500;
}

/* Exception magenta : chiffres-clés sur la fiche du livre Filles uniquement */
.book-detail#filles .stat-number { color: var(--book-filles); }
.book-detail#filles .book-features li::before { color: var(--book-filles); }

/* ---------- 13. Legal / About / Contact content ---------- */
.about-content .container,
.legal-content .container,
.freebie-detail .container,
.contact-content .container { max-width: 760px; }
.about-content h2,
.legal-content h2,
.freebie-detail h2 { margin-top: 2em; }
.about-content p,
.legal-content p,
.freebie-detail p { color: var(--black); }
.legal-content ul li { margin-bottom: 8px; }

.contact-email { font-size: 1.35rem; font-weight: 600; margin: 32px 0; }
.contact-email a { color: var(--black); text-decoration: underline; }
.contact-email a:hover { color: var(--text-secondary); }
.contact-note { color: var(--text-secondary); font-style: italic; }

/* ---------- 14. Footer ---------- */
.site-footer {
  background-color: var(--black-deep);
  color: var(--white);
  padding: 80px 0 40px;
  margin-top: 0;
  position: relative;
}
.site-footer::before {
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  background-color: rgba(255,255,255,0.12);
  margin: 0 auto 60px;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}
.footer-top { margin-bottom: 40px; }
.footer-brand {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 12px;
}
.footer-tagline {
  font-size: 15px;
  color: var(--gray-medium);
  margin: 0;
}
.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.footer-nav a {
  color: var(--white);
  font-size: 14px;
  transition: color .2s ease;
}
.footer-nav a:hover { color: var(--gray-medium); }
.footer-separator { color: #555555; font-size: 14px; }
.footer-copyright { font-size: 13px; color: #777777; margin: 0; }

@media (max-width: 768px) {
  .footer-nav { flex-direction: column; gap: 12px; }
  .footer-separator { display: none; }
  .footer-content { padding: 0 24px; }
}

/* ---------- 15. Scroll fade-in ---------- */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- 16. Hero CTA group (multiple buttons) ---------- */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero-cta-group .cta-link {
  color: var(--black);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
  transition: opacity .2s ease;
}
.hero-cta-group .cta-link:hover { opacity: .6; }

/* ---------- 17. Guide page — hero with form card ---------- */
.guide-hero {
  padding: 80px 0 60px;
  background: var(--gray-soft);
  border-bottom: 1px solid var(--border-light);
}
.guide-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 1024px) {
  .guide-hero-grid {
    grid-template-columns: 5fr 5fr;
    gap: 72px;
    align-items: center;
  }
}
.guide-hero h1 { margin-bottom: .4em; }
.guide-hero .page-intro { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 1.6em; }
.guide-hero-features {
  list-style: none; padding: 0; margin: 0;
}
.guide-hero-features li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--black);
  font-size: .98rem;
}
.guide-hero-features li::before {
  content: "✓";
  position: absolute; left: 0; top: 8px;
  font-weight: 700; color: var(--black);
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 36px 32px;
  box-shadow: 0 24px 48px -24px rgba(13,13,13,.18);
}
.form-card-heading {
  font-weight: 700; font-size: 1.35rem;
  margin: 0 0 8px;
}
.form-card-sub {
  color: var(--text-secondary);
  font-size: .95rem;
  margin: 0 0 24px;
}
.form-card .freebie-form { margin-top: 0; }
.form-card .cta-primary { width: 100%; text-align: center; }
.trust-line {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
  margin-top: 18px;
  font-size: .8rem; color: var(--text-secondary);
}
.trust-line svg { width: 14px; height: 14px; flex-shrink: 0; }
@media (max-width: 767px) {
  .form-card { padding: 28px 22px; }
}

/* ---------- 18. About page enrichments ---------- */
.about-hero {
  padding: 100px 0 40px;
  text-align: center;
}
.about-hero h1 { margin-bottom: .3em; }
.about-hero .page-intro { margin: 0 auto; }
.about-pillars {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  margin: 56px 0 24px;
}
@media (min-width: 768px) { .about-pillars { grid-template-columns: repeat(2, 1fr); gap: 40px; } }
.about-pillar {
  padding: 32px 28px;
  background: var(--gray-soft);
  border-radius: 6px;
}
.about-pillar h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: .8em;
}
.about-pillar p { color: var(--text-secondary); margin: 0; }
.about-quote {
  margin: 56px auto;
  max-width: 720px;
  padding: 32px 24px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}
.about-quote p {
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--black);
  margin: 0;
}

/* ---------- 19. Responsive tweaks ---------- */
@media (max-width: 767px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .page-hero { padding: 56px 0 32px; }
  .hero { padding: 56px 0 64px; }
  .guide-hero { padding: 56px 0 40px; }
  .book-stats { gap: 20px; flex-wrap: wrap; }
}
