/* Dictionnaire / Dictionary — sites 2.0, design direction B « La pile » (design team, 12 November 2026).
   Colours are the app's Ink & paper tokens. The same file is served by web/ (French) and web-en/ (English). */

/* Newsreader, SIL Open Font License 1.1 (fonts/newsreader-OFL.txt), self-hosted. */
@font-face {
  font-family: 'Newsreader'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/newsreader-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/newsreader-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --ground: #F6F4EF; --surface: #FFFFFF; --line: #E4E0D7; --separator: #EFECE5;
  --text: #1F1D1A; --text-2: #5E5A53;
  --accent: #2F5BD3; --accent-hover: #1F3F9E; --accent-tint: #E6ECFB;
  --navy: #16213D; --navy-deep: #0D1428; --on-navy: #F6F4EF; --on-navy-2: #C3C9DA; --on-navy-accent: #8FA8F5;
  --frame: #1F1D1A; --frame-edge: transparent;
  --recall: #985600; --recall-tint: #F7ECDD;
  --choice: #6A3FC0; --choice-tint: #EFE9FA;
  --plan-premium: #F6F4EF;
  --focus: #2F5BD3; --focus-on-navy: #8FA8F5;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --page-max: 1200px; --gutter: 40px;
  --r-card: 24px; --r-tile: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #161513; --surface: #22201D; --line: #3A3732; --separator: #2E2B27;
    --text: #F2EFE8; --text-2: #ADA79C;
    --accent: #8FA8F5; --accent-hover: #B9C9F8; --accent-tint: #1E2A4D;
    --navy-deep: #0B1122;
    --frame: #000000; --frame-edge: #3A3732;
    --recall: #E0A050; --recall-tint: #3A2A12;
    --choice: #B79AF0; --choice-tint: #2C2343;
    --plan-premium: #22201D;
    --focus: #8FA8F5;
  }
}

/* The design was drawn with border-box sizing everywhere: a 260 px phone frame includes its padding. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--text);
  font: 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; text-size-adjust: 100%;
}
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.on-navy a:focus-visible, .on-navy button:focus-visible { outline-color: var(--focus-on-navy); }
:target { scroll-margin-top: 16px; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 10px 16px; border-radius: 10px; background: var(--surface); color: var(--text); font-weight: 600; }
.skip:focus { top: 16px; }

.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); box-sizing: border-box; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--accent); }
.on-navy .eyebrow { color: var(--on-navy-accent); }
.h1 { margin: 0; font-family: var(--serif); font-size: 76px; line-height: 1.02; font-weight: 500; letter-spacing: -1.5px; }
.h2 { margin: 0; font-family: var(--serif); font-size: 54px; line-height: 1.06; font-weight: 500; letter-spacing: -0.8px; }
.h3 { margin: 0; font-family: var(--serif); font-size: 30px; line-height: 1.15; font-weight: 500; }
.sub { font-family: var(--serif); font-size: 26px; line-height: 1.4; color: var(--on-navy-2); }

/* Header */
.on-navy { background: var(--navy); color: var(--on-navy); }
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand, .brand:hover { color: var(--on-navy); }
.brand img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(246,244,239,0.18); }
.brand span { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--on-navy); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: #FFFFFF; border-bottom-color: var(--on-navy-accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--on-navy-accent); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(246,244,239,0.25); border-radius: 22px; background: transparent; color: var(--on-navy); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn .close, .menu-open .menu-btn .open { display: none; }
.menu-open .menu-btn .close { display: block; }

/* App Store badge. Slot for Apple's official artwork (black badge, unmodified, at least 40 px high):
   until the SVG is added, the link shows its label on the badge's black ground. */
.badge { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 162px; height: 54px; padding: 0 16px; border-radius: 10px; background: #000; box-shadow: 0 0 0 1px #A6A6A6; color: #FFF; font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; }
.badge, .badge:hover { color: #FFF; }
.badge img { display: block; height: 54px; width: auto; }
.badge:has(img) { min-width: 0; padding: 0; background: none; box-shadow: none; }

/* Hero */
.hero { text-align: center; padding-top: 64px; }
.hero-icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 0 0 1px rgba(246,244,239,0.16), 0 20px 50px -10px rgba(0,0,0,0.5); }
.hero .h1 { margin: 36px auto 0; max-width: 900px; }
.hero .sub { margin: 22px auto 0; max-width: 640px; }
.cta { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 24px; }
.cta p { margin: 0; font-size: 15px; color: var(--on-navy-2); }
.hero-visual { position: relative; max-width: 1060px; margin: 64px auto 0; aspect-ratio: 1060 / 480; overflow: hidden; }
.hv-ipad { position: absolute; left: 10.4%; right: 10.4%; top: 0; padding: 1.1%; border-radius: 28px 28px 0 0; background: var(--navy-deep); box-shadow: 0 0 0 1px rgba(246,244,239,0.12); }
.hv-ipad img { display: block; width: 100%; height: auto; border-radius: 16px 16px 0 0; }
.hv-phone { position: absolute; width: 19.8%; padding: 0.66%; border-radius: 36px; background: var(--navy-deep); box-shadow: 0 0 0 1px rgba(246,244,239,0.14), 0 30px 60px -20px rgba(0,0,0,0.6); }
.hv-phone img { display: block; width: 100%; height: auto; border-radius: 29px; }
.hv-left { left: 0; top: 31%; } .hv-right { right: 0; top: 23%; }
.hero-phone { display: none; }

/* Facts */
.facts { background: var(--surface); border-bottom: 1px solid var(--line); }
.facts-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fact { padding: 36px 32px; border-left: 1px solid var(--line); }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact:last-child { padding-right: 0; }
.fact-title { margin: 0; font-family: var(--serif); font-size: 30px; line-height: 1.15; font-weight: 500; }
.fact p:last-child { margin: 8px 0 0; font-size: 15px; color: var(--text-2); }

/* Device frames */
.phone { padding: 8px; border-radius: 44px; background: var(--frame); box-shadow: 0 0 0 1px var(--frame-edge); }
.phone img { display: block; width: 100%; height: auto; border-radius: 36px; }

/* Look it up */
.search { padding-top: 112px; display: flex; flex-wrap: wrap; gap: 64px 96px; align-items: center; }
.search-text { flex: 1 1 460px; min-width: 0; }
.search .h2 { margin-top: 12px; }
.dots { margin: 32px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.dots li { display: flex; gap: 14px; }
.dots li::before { content: ""; flex: none; margin-top: 10px; width: 8px; height: 8px; border-radius: 4px; background: var(--accent); }
.search-shots { flex: 0 1 560px; display: flex; gap: 24px; justify-content: center; }
.search-shots .phone { width: 260px; }
.search-shots .phone + .phone { margin-top: 64px; }

/* Remember it */
.remember { padding-top: 120px; padding-bottom: 112px; }
.remember-head { display: flex; flex-wrap: wrap; gap: 24px 96px; align-items: end; }
.remember-head > div { flex: 1 1 460px; }
.remember-head .h2 { margin-top: 12px; }
.remember-head > p { flex: 1 1 420px; margin: 0; color: var(--text-2); }
.families { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.family { border-radius: var(--r-card); padding: 32px 32px 0; display: flex; gap: 28px; overflow: hidden; }
.family.recall { background: var(--recall-tint); } .family.choice { background: var(--choice-tint); }
.family-text { flex: 1 1 0; min-width: 0; padding-bottom: 32px; }
.family .eyebrow { color: var(--recall); } .family.choice .eyebrow { color: var(--choice); }
.family .h3 { margin-top: 14px; }
.family .h3 + p { margin: 6px 0 0; font-size: 15px; color: var(--text-2); }
.family .h3 ~ .h3 { margin-top: 22px; }
.family-shot { flex: 0 0 210px; height: 330px; overflow: hidden; align-self: end; padding: 7px 7px 0; border-radius: 34px 34px 0 0; background: var(--frame); box-shadow: 0 0 0 1px var(--frame-edge); box-sizing: border-box; }
.family-shot img { display: block; width: 100%; height: auto; border-radius: 28px 28px 0 0; }
.ipad-note { display: none; }

/* Premium */
.premium { padding-top: 104px; padding-bottom: 104px; }
.premium .h2 { margin-top: 12px; max-width: 820px; }
.plans { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 24px; }
.plan-free { flex: 1 1 340px; border: 1px solid rgba(246,244,239,0.2); border-radius: var(--r-card); padding: 36px; }
.plan-free ul { margin: 20px 0 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 12px; color: #DCE0EA; }
.plan-premium { flex: 2 1 560px; background: var(--plan-premium); color: var(--text); border-radius: var(--r-card); padding: 36px; }
.benefits { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.benefit svg { color: var(--accent); }
.benefit p { margin: 10px 0 0; font-weight: 600; }
.benefit p + p { margin-top: 4px; font-size: 15px; font-weight: 400; color: var(--text-2); }
.footnote { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }

/* Help */
.help { padding-top: 104px; padding-bottom: 104px; }
.help-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card-link { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-tile); padding: 28px; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.card-link, .card-link:hover { color: var(--text); }
.card-link:hover { border-color: var(--accent); box-shadow: 0 6px 20px -12px rgba(31,29,26,0.35); }
.card-link:focus-visible { border-radius: var(--r-tile); }
.card-link h3 { margin: 0; font-size: 17px; font-weight: 600; }
.card-link p { margin: 8px 0 0; font-size: 15px; color: var(--text-2); }
.card-link .go { margin: 20px 0 0; color: var(--accent); font-size: 17px; }
.card-link:hover .go { text-decoration: underline; }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer-row { padding-top: 40px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 24px 48px; font-size: 13px; color: var(--text-2); }
.footer-legal { flex: 1 1 520px; display: flex; gap: 14px; }
.footer-legal img { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.footer-legal p { margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { color: var(--text-2); }
.footer-nav a:hover { color: var(--text); }

/* Inner pages (FAQ) */
.page-head { padding-top: 56px; padding-bottom: 64px; }
.page-head .h1 { font-size: 64px; }
.page-head p { margin: 16px 0 0; max-width: 640px; font-family: var(--serif); font-size: 22px; color: var(--on-navy-2); }
.faq { padding-top: 64px; padding-bottom: 104px; max-width: 840px; }
.qa { border-top: 1px solid var(--line); }
.qa:last-of-type { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 20px; padding: 24px 0; font-family: var(--serif); font-size: 28px; line-height: 1.2; font-weight: 500; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; margin-left: auto; width: 12px; height: 12px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg) translate(-3px, -3px); }
.qa[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.qa summary:hover { color: var(--accent); }
.qa-body { padding: 0 48px 28px 0; }
.qa-body p { margin: 0 0 12px; }
.faq-more { margin-top: 40px; color: var(--text-2); }

/* Privacy: restyled with CSS only. The markup is the app's text (main > h1, p, section > h2 + p, p > a),
   checked by Tests/Privacy/check-assets.py; the navy band and the wordmark come from body::before. */
.privacy-page { --band-x: max(var(--gutter), calc((100vw - var(--page-max)) / 2 + var(--gutter))); }
.privacy-page::before {
  content: "Dictionnaire"; display: block; height: 74px; box-sizing: border-box; padding-left: calc(var(--band-x) + 46px);
  background: var(--navy) url(../img/icon.png) no-repeat; background-size: 34px 34px; background-position: var(--band-x) center;
  color: var(--on-navy); font: 600 22px/74px var(--serif);
}
html[lang="en"] .privacy-page::before { content: "Dictionary"; }
.privacy-page main { max-width: 46rem; margin: 0 auto; padding: 64px 40px 96px; box-sizing: content-box; }
.privacy-page h1 { margin: 0; font-family: var(--serif); font-size: 60px; line-height: 1.05; font-weight: 500; letter-spacing: -1px; }
.privacy-page h1 + p { margin: 14px 0 40px; font-size: 15px; color: var(--text-2); }
.privacy-page section { border-top: 1px solid var(--line); padding: 28px 0 8px; }
.privacy-page h2 { margin: 0 0 10px; font-family: var(--serif); font-size: 28px; line-height: 1.2; font-weight: 500; }
.privacy-page section p { margin: 0 0 20px; line-height: 1.65; }
.privacy-page main > p:not(:first-of-type) { margin: 0; padding: 18px 0; border-top: 1px solid var(--line); font-size: 15px; }
.privacy-page a { overflow-wrap: anywhere; }

/* Tablet 700–1099 */
@media (max-width: 1099px) {
  :root { --gutter: 32px; }
  .h1 { font-size: 60px; letter-spacing: -1.2px; } .h2 { font-size: 44px; } .sub { font-size: 23px; }
  .hero { padding-top: 48px; } .hero-icon { width: 96px; height: 96px; border-radius: 22px; }
  .hero-visual { margin-top: 52px; }
  .hv-phone { border-radius: 26px; } .hv-phone img { border-radius: 21px; }
  .hv-ipad { border-radius: 20px 20px 0 0; } .hv-ipad img { border-radius: 12px 12px 0 0; }
  .fact { padding: 28px 22px; } .fact-title { font-size: 24px; }
  .search { padding-top: 88px; gap: 48px; } .search-text { flex-basis: 100%; }
  .search-shots { flex-basis: 100%; } .search-shots .phone { width: 250px; }
  .remember { padding-top: 96px; padding-bottom: 88px; }
  .families { grid-template-columns: minmax(0, 1fr); }
  .premium, .help { padding-top: 88px; padding-bottom: 88px; }
  .plan-free, .plan-premium { flex-basis: 100%; }
  .page-head .h1 { font-size: 52px; }
  .privacy-page h1 { font-size: 52px; }
}

/* Phone < 700 */
@media (max-width: 699px) {
  :root { --gutter: 20px; --r-card: 20px; --r-tile: 18px; }
  body { font-size: 16px; }
  .h1 { font-size: 42px; line-height: 1.05; letter-spacing: -0.8px; } .h2 { font-size: 36px; line-height: 1.08; letter-spacing: -0.5px; } .h3 { font-size: 26px; }
  .sub { font-size: 20px; } .eyebrow { font-size: 12px; }
  .topbar { padding-top: 12px; padding-bottom: 12px; }
  .brand img { width: 30px; height: 30px; border-radius: 7px; } .brand span { font-size: 20px; }
  /* Without JavaScript the links wrap under the brand; with it, they sit behind the menu button. */
  .nav { flex-basis: 100%; flex-wrap: wrap; gap: 4px 20px; margin: 8px 0 0; }
  .js .nav { display: none; }
  .js .menu-btn { display: inline-flex; }
  .js .menu-open .nav { display: flex; flex-direction: column; gap: 0; margin: 12px 0 4px; }
  .js .menu-open .nav a { padding: 12px 0; border-bottom: 1px solid rgba(246,244,239,0.14); font-size: 17px; }
  .js .menu-open .nav a:last-child { border-bottom: 0; }
  .hero { padding-top: 36px; } .hero-icon { width: 84px; height: 84px; border-radius: 20px; }
  .hero .h1 { margin-top: 26px; } .hero .sub { margin-top: 16px; }
  .cta { margin-top: 28px; flex-direction: column; gap: 12px; } .badge { height: 50px; } .badge img { height: 50px; }
  .hero-visual { display: none; }
  .hero-phone { display: block; margin: 40px auto 0; width: 250px; height: 400px; overflow: hidden; padding: 8px 8px 0; border-radius: 42px 42px 0 0; background: var(--navy-deep); box-shadow: 0 0 0 1px rgba(246,244,239,0.14); box-sizing: border-box; }
  .hero-phone img { display: block; width: 100%; height: auto; border-radius: 34px 34px 0 0; }
  .facts-row { grid-template-columns: minmax(0, 1fr); }
  .fact, .fact:first-child, .fact:last-child { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .fact:first-child { border-top: 0; }
  .fact p:last-child { margin-top: 4px; }
  .search { padding-top: 64px; gap: 36px; } .search .h2 { margin-top: 10px; }
  .dots { margin-top: 24px; gap: 12px; } .dots li::before { margin-top: 9px; width: 7px; height: 7px; }
  .search-shots .phone + .phone { display: none; }
  .remember { padding-top: 72px; padding-bottom: 64px; }
  .remember-head .h2 { margin-top: 10px; }
  .families { margin-top: 32px; gap: 16px; }
  .family { flex-direction: column; padding: 24px 24px 0; gap: 24px; }
  .family-text { padding-bottom: 0; }
  .family .h3 { margin-top: 10px; } .family .h3 + p { margin-top: 2px; } .family .h3 ~ .h3 { margin-top: 16px; }
  .family-shot { flex: none; width: 200px; height: 220px; margin: 0 auto; border-radius: 32px 32px 0 0; }
  .family-shot img { border-radius: 26px 26px 0 0; }
  .ipad-note { display: block; margin-top: 32px; }
  .ipad-note .frame { padding: 6px; border-radius: 16px; background: var(--frame); }
  .ipad-note img { display: block; width: 100%; height: auto; border-radius: 10px; }
  .ipad-note p { margin: 14px 0 0; font-size: 14px; color: var(--text-2); }
  .premium, .help { padding-top: 64px; padding-bottom: 64px; }
  .premium .h2 { margin-top: 10px; }
  .plans { margin-top: 32px; gap: 14px; }
  .plan-free, .plan-premium { padding: 24px; }
  .benefits { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 8px; }
  .benefit { display: grid; grid-template-columns: 24px 1fr; column-gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .benefit:last-child { border-bottom: 0; }
  .benefit svg { grid-row: span 2; }
  .benefit p { margin: 0; } .benefit p + p { margin-top: 2px; }
  .footnote { margin-top: 6px; padding-top: 14px; }
  .help-grid { margin-top: 24px; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .card-link { padding: 22px; } .card-link .go { margin-top: 14px; }
  .footer-row { flex-direction: column; padding-top: 32px; padding-bottom: 44px; }
  .footer-legal { flex-direction: column; flex-basis: auto; }
  .page-head { padding-top: 36px; padding-bottom: 44px; } .page-head .h1 { font-size: 40px; } .page-head p { font-size: 19px; }
  .faq { padding-top: 32px; padding-bottom: 64px; }
  .qa summary { font-size: 22px; padding: 20px 0; } .qa-body { padding-right: 0; }
  .privacy-page::before { height: 60px; line-height: 60px; font-size: 20px; padding-left: calc(var(--band-x) + 40px); background-size: 30px 30px; }
  .privacy-page main { padding: 40px 20px 64px; }
  .privacy-page h1 { font-size: 40px; } .privacy-page h2 { font-size: 23px; }
  .privacy-page section p { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-link { transition: none; }
}
