/* brainonwhat.com — direction artistique wellness : crème, sauge, pêche, lavande ; titres serif doux. */
:root {
  --ink: #2f3a33;
  --paper: #fbf8f3;
  --mist: #f3ede4;
  --muted: #6f7a72;
  --line: #e6ddd0;
  --sage: #8fae94;
  --sage-deep: #4f6d58;
  --sage-soft: #dfe9df;
  --peach: #f2c9b1;
  --peach-soft: #f8e4d8;
  --lavender: #d9cdea;
  --lavender-soft: #ece6f4;
  --sand: #f8f4ee;
  --butter: #f6e7b8;
  --head: "Fraunces", Georgia, serif;
  --body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --label: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --radius: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; }
.wrap { width: min(1080px, 100% - 160px); margin-inline: auto; }
@media (max-width: 960px) { .wrap { width: min(1080px, 100% - 80px); } }
@media (max-width: 600px) { .wrap { width: calc(100% - 44px); } }

/* Navigation : pilule crème flottante */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 20; }
.nav .bar { display: flex; align-items: center; gap: 22px; background: rgba(251,248,243,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 999px; padding: 9px 10px 9px 18px; box-shadow: 0 8px 30px rgba(79,109,88,.10); }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--head); font-weight: 600; font-size: 22px; letter-spacing: -.3px; white-space: nowrap; }
.logo .q { color: var(--sage); }
.nav .links { display: flex; gap: 22px; margin-right: auto; }
.nav .links a { font-weight: 500; font-size: 15px; text-decoration: none; color: var(--muted); }
.nav .links a:hover { color: var(--sage-deep); }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 20px; font-family: var(--label); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.pill:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(79,109,88,.18); }
.pill.yellow { background: var(--sage-deep); color: #fff; }
.pill.red { background: var(--peach); }
.pill.white { background: #fff; }
.pill.ghost { background: transparent; color: var(--sage-deep); box-shadow: inset 0 0 0 1.5px var(--sage); }
.lang { display: flex; border-radius: 999px; background: var(--mist); padding: 3px; }
.lang button { border: 0; background: none; border-radius: 999px; padding: 5px 11px; font-family: var(--label); font-weight: 600; font-size: 13px; cursor: pointer; color: var(--muted); }
.lang button[aria-pressed="true"] { background: #fff; color: var(--sage-deep); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

/* Héros clair avec halos doux */
.hero { position: relative; background: #fff; color: var(--ink); padding: 170px 0 120px; overflow: hidden; }
.hero .grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
.tiles { display: grid; gap: 14px; }
.tile { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(79,109,88,.10); }
.tile svg { width: 32px; height: 32px; stroke: var(--sage-deep); }
.tile.red { background: var(--peach-soft); } .tile.blue { background: var(--lavender-soft); } .tile.yellow { background: var(--butter); } .tile.green { background: var(--sage-soft); } .tile.violet { background: var(--lavender); }
.tile:nth-child(even) { transform: translateX(16px); }
.hero h1 { font-family: var(--head); font-weight: 500; font-size: clamp(46px, 7.6vw, 98px); line-height: 1.02; letter-spacing: -2px; margin: 0; }
.hero h1 .swap { display: inline-block; min-width: 4ch; }
.hero h1 .swap span { color: var(--sage-deep); font-style: italic; }
.hero p { font-size: clamp(18px, 2vw, 21px); max-width: 600px; color: var(--muted); margin: 26px 0 32px; }
.hero .intro mark { background: linear-gradient(transparent 55%, #c9ddc9 55%); color: var(--ink); font-style: italic; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
section { padding: 100px 0; }
.mist { background: var(--mist); }
.dark { background: var(--lavender-soft); color: var(--ink); }
.eyebrow { font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--sage-deep); margin: 0 0 14px; }
h2 { font-family: var(--head); font-weight: 500; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.06; letter-spacing: -1.2px; margin: 0 0 20px; }
h3 { font-family: var(--head); font-weight: 600; font-size: 24px; line-height: 1.2; margin: 0 0 10px; letter-spacing: -.3px; }
.lede { font-size: 19px; max-width: 700px; color: var(--muted); margin: 0; }
.dark .lede { color: var(--muted); }

/* Cartes sujets */
.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.topic { border-radius: var(--radius); padding: 28px; min-height: 290px; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.topic:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(79,109,88,.14); }
.topic.red { background: #fff; } .topic.red .ti { background: var(--sage-soft); } .topic.blue { background: var(--lavender-soft); } .topic.yellow { background: var(--butter); } .topic.green { background: var(--sage-soft); }
.topic .tag { font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; color: var(--muted); }
.topic .th { display: flex; align-items: center; gap: 12px; margin: 10px 0 12px; }
.topic .ti { width: 36px; height: 36px; flex: none; padding: 8px; border-radius: 50%; background: rgba(255,255,255,.7); color: var(--sage-deep); }
.topic h3 { font-size: 27px; font-weight: 500; margin: 0; line-height: 1.1; }
.topic .more.soon { align-self: flex-start; font-size: 13px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.7); color: var(--muted); }
.topic p { margin: 0 0 auto; font-size: 16px; color: #4c5750; }
.topic .more { margin-top: 22px; font-weight: 600; font-size: 15px; color: var(--sage-deep); }

/* Grande affirmation */
.statement { font-family: var(--head); font-weight: 400; font-size: clamp(30px, 4.6vw, 60px); line-height: 1.15; letter-spacing: -1px; margin: 0 auto; max-width: 980px; text-align: center; }
.statement mark { background: linear-gradient(transparent 62%, var(--peach-soft) 62%); color: var(--ink); font-style: italic; }

/* Lectures */
.reads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.read { background: var(--paper); border-radius: var(--radius); padding: 30px; text-decoration: none; display: block; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.read:hover { border-color: var(--sage); box-shadow: 0 10px 30px rgba(79,109,88,.10); }
.read .src { font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--sage-deep); font-size: 12px; }
.read h3 { font-size: 22px; margin-top: 10px; }
.read p { margin: 0; color: var(--muted); font-size: 16px; }

/* Séréna */
.serena { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.phone { background: #faf8f4; border-radius: 42px; border: 9px solid #fff; padding: 30px 22px; max-width: 330px; margin-inline: auto; color: #352a40; box-shadow: 0 30px 70px rgba(97,69,117,.18); }
.phone .brand { font-family: var(--head); color: #614575; font-size: 26px; text-align: center; margin-bottom: 18px; }
.bubble { border-radius: 6px 20px 20px 20px; background: #eee8f3; padding: 14px 16px; font-size: 15px; margin-bottom: 12px; }
.bubble.me { background: #614575; color: #fff; border-radius: 20px 6px 20px 20px; margin-left: 40px; }
.badge { display: inline-flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); border-radius: 18px; padding: 12px 18px; font-weight: 600; text-decoration: none; margin-top: 28px; box-shadow: 0 6px 20px rgba(97,69,117,.12); }
.badge small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }

/* Aide */
.lines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.line { background: var(--paper); border-radius: 22px; padding: 22px; text-decoration: none; border: 1px solid var(--line); transition: border-color .2s; }
.line:hover { border-color: var(--sage); }
.line b { display: block; font-family: var(--head); font-weight: 600; font-size: 28px; color: var(--sage-deep); }
.line span { color: var(--muted); font-size: 15px; }

/* Newsletter */
.news { background: var(--sage-soft); border-radius: 36px; padding: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.news h2 { margin-bottom: 10px; }
.news form { display: flex; flex-direction: column; gap: 12px; }
.news .row { display: flex; gap: 10px; }
.news input[type=email] { flex: 1; min-width: 0; border: 1px solid #c9d8ca; border-radius: 999px; padding: 15px 22px; font: inherit; background: #fff; color: var(--ink); }
.news input[type=email]:focus { outline: 2px solid var(--sage); outline-offset: 1px; }
.news .pill { background: var(--sage-deep); color: #fff; padding: 15px 24px; }
.news small { font-size: 13px; color: var(--muted); }
.news .choose { display: flex; gap: 16px; font-size: 15px; }
.hp { position: absolute; left: -9999px; }

/* Pied de page */
footer { border-top: 1px solid var(--line); background: var(--sand); color: var(--muted); padding: 60px 0 40px; font-size: 15px; }
footer .cols { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
footer .logo { color: var(--ink); font-size: 26px; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--sage-deep); }
footer .fine { margin-top: 34px; border-top: 1px solid #ece4d8; padding-top: 22px; font-size: 13px; }

/* Pages simples (Séréna : assistance, confidentialité) */
.page-hero { position: relative; overflow: hidden; background: #fff; color: var(--ink); padding: 150px 0 76px; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-family: var(--head); font-weight: 500; font-size: clamp(38px, 5.6vw, 70px); line-height: 1.05; letter-spacing: -1.4px; margin: 0 0 14px; }
.page-hero p { color: var(--muted); font-size: 19px; max-width: 700px; margin: 0; }
.prose { max-width: 760px; }
.prose h2 { font-size: 32px; margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #45504a; }
.prose a { color: var(--sage-deep); }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-family: var(--head); font-weight: 600; font-size: 20px; cursor: pointer; }

[data-lang-only] { display: none; }
html[lang="fr"] [data-lang-only="fr"], html[lang="en"] [data-lang-only="en"] { display: block; }

@media (max-width: 960px) {
  .topics { grid-template-columns: repeat(2, 1fr); }
  .lines { grid-template-columns: repeat(2, 1fr); }
  .serena, .news { grid-template-columns: 1fr; }
  .nav .links { display: none; }
  .nav .bar { justify-content: space-between; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 68px 0; }
  .hero { padding: 130px 0 76px; }
  .hero .grid { grid-template-columns: 1fr; gap: 30px; }
  .tiles { grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .tile { width: 100%; height: auto; aspect-ratio: 1; }
  .tile svg { width: 50%; height: 50%; }
  .tile:nth-child(even) { transform: translateY(8px); }
  .topics, .reads { grid-template-columns: 1fr; }
  .topic { min-height: 0; }
  .news { padding: 32px 22px; border-radius: 28px; }
  .news .row { flex-direction: column; }
  .nav .bar { gap: 10px; padding-left: 14px; }
  .logo { font-size: 19px; }
  .nav .pill.yellow { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .topic, .pill { transition: none; } }
@media (min-width: 601px) and (max-width: 1100px) { .topics { grid-template-columns: repeat(2, 1fr); } }

/* Pages Séréna : reprend la DA de l'app (crème, prune, lavande, Lora). */
.serena-theme {
  --ink: #352a40; --paper: #faf8f4; --mist: #eee8f3; --muted: #706777; --line: #e8e1e9;
  --sage: #b9a6cc; --sage-deep: #614575; --sage-soft: #eee8f3; --peach-soft: #f3eef7; --sand: #eee8f3;
  --head: "Lora", Georgia, serif;
  background: var(--paper);
}
.serena-theme .page-hero { background: var(--mist); }
.serena-theme .prose p, .serena-theme .prose li { color: #4a3f55; }
.serena-theme footer .fine { border-top-color: #dcd2e3; }
.serena-theme .nav .bar { background: rgba(250,248,244,.9); }

.appstore { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; background: #000; color: #fff; border-radius: 12px; padding: 9px 18px 9px 14px; text-decoration: none; font-weight: 600; font-size: 19px; line-height: 1.1; transition: transform .2s; }
.appstore:hover { transform: translateY(-1px); }
.appstore small { display: block; font-weight: 400; font-size: 11px; letter-spacing: .2px; }
.bubble.typing { display: inline-flex; gap: 6px; padding: 16px 18px; }
.bubble.typing span { width: 8px; height: 8px; border-radius: 50%; background: #614575; opacity: .3; }
@media (prefers-reduced-motion: no-preference) {
  .bubble.typing span { animation: typing 1.2s infinite; }
  .bubble.typing span:nth-child(2) { animation-delay: .2s; } .bubble.typing span:nth-child(3) { animation-delay: .4s; }
  @keyframes typing { 30% { opacity: 1; } }
}

/* Pages newsletter : merci / confirmé */
.done { background: #fff; min-height: 72vh; display: grid; place-items: center; padding: 150px 0 90px; }
.done-card { max-width: 620px; margin-inline: auto; text-align: center; }
.done-icon { width: 76px; height: 76px; margin: 0 auto 26px; border-radius: 50%; background: var(--sage-soft); color: var(--sage-deep); display: grid; place-items: center; }
.done-icon svg { width: 34px; height: 34px; }
.done h1 { font-family: var(--head); font-weight: 500; font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -1.2px; margin: 0 0 16px; }
.done .lede { margin: 0 auto; }
.done .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

mark.yellow { background: linear-gradient(transparent 55%, #f4dd8d 55%); color: var(--ink); font-style: italic; padding: 0 .05em; }
.sub { display: block; font-size: .58em; letter-spacing: -.2px; margin-top: .45em; }
mark.violet { background: linear-gradient(transparent 55%, #d6c4ec 55%); color: inherit; font-style: italic; padding: 0 .05em; }
mark.green { background: linear-gradient(transparent 55%, #b3cdb6 55%); color: inherit; font-style: italic; padding: 0 .05em; }
.ideas { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.ideas-label { font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.ideas ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 36px; }
.ideas li { font-size: 16px; color: var(--muted); padding: 7px 0 7px 18px; position: relative; break-inside: avoid; }
.ideas li::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); opacity: .6; transform: translateY(-50%); }
.ideas li em { font-family: var(--head); font-style: italic; font-size: 18px; color: var(--ink); }
.ideas li.more-ideas { padding-left: 0; color: var(--muted); }
.ideas li.more-ideas::before { display: none; }
.ideas-line { margin: 0; font-size: 16px; color: var(--muted); }
.ideas-line b { font-weight: 600; color: var(--ink); }
.serena-card { margin-top: 28px; background: var(--lavender-soft); border-radius: 36px; padding: 56px 60px; scroll-margin-top: 110px; }
@media (max-width: 600px) { .serena-card { padding: 36px 24px; border-radius: 28px; } }
.news-full { background: var(--sage-soft); }
.news-full .news { background: none; border-radius: 0; padding: 0; }
.help-card { background: var(--mist); border-radius: 28px; padding: 36px 40px; }
.help-card h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 6px; }
.help-card .lede { font-size: 15px; margin: 0; }
.help-card .eyebrow { margin-bottom: 10px; }
.help-card .lines { margin-top: 22px; gap: 10px; }
.help-card .line { background: #fff; border-color: transparent; padding: 14px 16px; border-radius: 16px; }
.help-card .line:hover { border-color: var(--sage); }
.help-card .line b { font-size: 19px; }
.help-card .line span { font-size: 13px; }
.help-card > p:last-child { margin-top: 16px !important; font-size: 14px; }
@media (max-width: 600px) { .help-card { padding: 36px 22px; border-radius: 28px; } }
#help { padding: 64px 0; }
