/* =====================================================================
   Fécalome — site vitrine fecalo.me
   Feuille de style unique, sans JavaScript. Mobile d'abord.
   Esprit du site de 2015 : grands bandeaux bleus texturés, mascotte,
   vraies captures, typographie fine et aérée.
   ===================================================================== */

/* ---------- Polices (Manrope, auto-hébergée, licence OFL) ---------- */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/manrope-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/manrope-latin-700-normal.woff2") format("woff2"); }

/* ---------- Couleurs ---------- */
:root {
  --blue: #1769a6;          /* bleu de marque (texte blanc : 5,9:1) */
  --blue-deep: #10507f;
  --blue-ink: #0e4470;
  --sky: #65b2df;           /* bleu de l'appli */
  --sky-pale: #e8f3fa;
  --ink: #25333a;           /* ardoise de l'appli */
  --ink-soft: #52626b;      /* 6,1:1 sur blanc */
  --line: #dde5ea;
  --brown: #916b49;
  --brown-dark: #6f4f33;
  --amber: #b07a12;
  --paper: #ffffff;
  --wrap: 1140px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
picture { display: contents; }
source { display: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; color: inherit; }
p { margin: 0 0 1em; }
strong, b { font-weight: 700; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--blue-ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.blue :focus-visible, .topbar :focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: #fff; color: var(--blue-ink); padding: 10px 16px; border-radius: 6px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Bandeaux bleus ---------- */
.blue { background-color: var(--blue); color: #fff; }
.blue a { color: #fff; }
.blue a:hover { color: #fff; }
.textured {
  background-image:
    linear-gradient(180deg, rgba(21, 101, 160, .86) 0%, rgba(17, 86, 140, .88) 100%),
    url("/assets/img/mosaique.jpg");
  background-size: cover;
  background-position: center;
}
/* Parallaxe façon 2015 : la texture reste fixe pendant le défilement (ordinateur uniquement) */
@media (min-width: 900px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .textured { background-attachment: fixed; }
}

/* ---------- Titres de section ---------- */
.title {
  font-weight: 300;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  letter-spacing: -.015em;
  line-height: 1.15;
}
.title::after {
  content: "";
  display: block;
  width: 96px;
  height: 2px;
  margin: 24px 0 28px;
  background: var(--sky);
}
.title--center { text-align: center; }
.title--center::after { margin-left: auto; margin-right: auto; }
.blue .title::after { background: rgba(255, 255, 255, .55); }

/* ---------- Barre du haut ---------- */
.topbar { position: relative; z-index: 10; color: #fff; }
.topbar--over { position: absolute; top: 0; left: 0; right: 0; }
.topbar--solid { background: var(--blue); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mascot { width: 40px; height: auto; }
.brand-word { width: 118px; height: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 18px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  color: #fff; text-decoration: none; font-size: .9375rem; font-weight: 400;
  padding: 6px 0; border-bottom: 1px solid transparent; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: rgba(255, 255, 255, .8); color: #fff; }
.nav-wide { display: none; }
@media (min-width: 760px) {
  .nav ul { gap: 4px 30px; }
  .nav-wide { display: list-item; }
  .brand-mascot { width: 44px; }
  .brand-word { width: 140px; }
}
@media (max-width: 400px) { .nav ul { gap: 4px 14px; } .nav a { font-size: .875rem; } }

/* ---------- Visuels de téléphones (mises en scène pré-rendues, fond transparent) ---------- */
.shot { display: block; width: 100%; height: auto; margin: 0 auto; }

/* ---------- Héros ---------- */
.hero { padding: 104px 0 48px; overflow: hidden; }
.hero-grid { display: grid; gap: 44px; align-items: center; }
.hero-text { text-align: center; }
.hero-brand { margin: 0 0 26px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-mascot { width: 170px; filter: drop-shadow(0 14px 18px rgba(4, 30, 52, .3)); }
.hero-logotype { width: 230px; }
.hero h1 {
  font-weight: 300;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem);
  line-height: 1.18;
  letter-spacing: -.015em;
  max-width: 13em;
  margin: 0 auto 20px;
}
.hero-lead { font-size: 1.125rem; font-weight: 300; line-height: 1.7; max-width: 32em; margin: 0 auto 30px; color: rgba(255, 255, 255, .94); }

.hero-visual { min-width: 0; }
.shot--hero { max-width: 380px; }

@media (min-width: 960px) {
  .hero { padding: 120px 0 56px; min-height: min(100vh, 900px); display: flex; align-items: center; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-text { padding-bottom: 90px; }
  .hero-mascot { width: 210px; }
  .hero-logotype { width: 280px; }
  .shot--hero { max-width: 520px; }
}

/* ---------- Badge Google Play (non cliquable) ---------- */
.store-badge {
  display: inline-flex; flex-direction: row; align-items: center; gap: 12px;
  margin: 0; padding: 10px 22px 11px 16px; min-width: 176px;
  background: #0b1114; color: #fff; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  line-height: 1.15; text-align: left;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6);
}
.store-icon { flex: none; display: block; }
.store-text { display: flex; flex-direction: column; align-items: flex-start; }
.store-small { font-size: .72rem; letter-spacing: .04em; color: rgba(255, 255, 255, .82); }
.store-big { font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }

/* ---------- Sections « téléphone + texte » ---------- */
.feature { padding: 88px 0; }
.feature + .feature { padding-top: 24px; }
.feature-grid { display: grid; gap: 52px; align-items: center; }
.feature-visual { display: flex; justify-content: center; min-width: 0; }
.feature-text { max-width: 34rem; }
.feature-text p { color: var(--ink-soft); }
.feature-text strong { color: var(--ink); }
.shot--saisie { max-width: 270px; }
.shot--habitudes { max-width: 380px; }

.points { list-style: none; margin: 30px 0 0; padding: 0; }
.points li { position: relative; padding-left: 22px; margin: 0 0 10px; color: var(--ink); }
.points li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  border-style: solid; border-width: 5px 0 5px 7px; border-color: transparent transparent transparent var(--blue);
}

.quote-inline {
  margin-top: 26px; padding: 14px 0 14px 20px;
  border-left: 3px solid var(--sky);
  font-size: 1.125rem; font-weight: 300; color: var(--ink) !important; font-style: italic;
}

@media (min-width: 900px) {
  .feature { padding: 120px 0; }
  .feature + .feature { padding-top: 40px; }
  .feature-grid { grid-template-columns: 5fr 6fr; gap: 72px; }
  .feature--reverse .feature-grid { grid-template-columns: 6fr 5fr; }
  .shot--saisie { max-width: 350px; }
  .shot--habitudes { max-width: 470px; }
}

/* ---------- Bandeau Bristol ---------- */
.band { padding: 88px 0 96px; text-align: center; }
.scale {
  list-style: none; margin: 8px auto 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 4px; max-width: 980px;
}
.scale li { flex: 0 0 calc(25% - 3px); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .8125rem; line-height: 1.35; color: rgba(255, 255, 255, .9); }
.scale b { font-size: .9375rem; font-weight: 600; color: #fff; margin-top: 8px; }
.disc {
  width: 76px; height: 76px; border-radius: 50%; background: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .5);
}
.disc img { width: 58px; height: auto; }
.z-ok .disc { box-shadow: 0 0 0 4px var(--sky), 0 10px 22px -12px rgba(0, 0, 0, .5); }
.zones { display: none; }
.zones-note { margin: 26px 0 0; font-size: .875rem; color: rgba(255, 255, 255, .88); }
@media (min-width: 760px) {
  .scale { flex-wrap: nowrap; gap: 0 10px; }
  .scale li { flex: 1 1 0; }
  .disc { width: 92px; height: 92px; }
  .disc img { width: 70px; }
  .zones {
    display: grid; grid-template-columns: 2fr 3fr 2fr; gap: 14px; max-width: 980px; margin: 26px auto 0;
    font-size: .8125rem; letter-spacing: .02em; color: rgba(255, 255, 255, .85);
  }
  .zones span { border-top: 1px solid rgba(255, 255, 255, .45); padding-top: 8px; }
  .zones-note { display: none; }
  .zones .zone-ok { border-top: 3px solid var(--sky); padding-top: 6px; color: #fff; font-weight: 600; }
}
.fact { margin: 64px auto 0; max-width: 46rem; }
.fact blockquote { margin: 0; }
.fact blockquote p { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.65rem); font-weight: 300; font-style: italic; line-height: 1.5; margin: 0; }
.fact figcaption { margin-top: 26px; font-size: .9375rem; font-weight: 600; }
.fact figcaption::before { content: ""; display: block; width: 110px; height: 1px; margin: 0 auto 18px; background: rgba(255, 255, 255, .6); }

/* ---------- Rapport pour le médecin ---------- */
.report { padding: 96px 0 104px; }
.report-head { max-width: 46rem; margin: 0 auto; text-align: center; }
.report-head p { color: var(--ink-soft); }
.report-visual { position: relative; max-width: 1000px; margin: 56px auto 0; }
.sheet {
  margin: 0; background: #fff; border-radius: 6px; overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 34px 60px -30px rgba(10, 40, 66, .45), 0 0 0 1px var(--line);
}
.sheet img { display: block; width: 100%; }
/* Mobile : le téléphone passe sous la feuille, à cheval sur sa marge basse (vide). */
.shot--rapport { max-width: 230px; margin: -12px 2% 0 auto; position: relative; }
@media (min-width: 760px) {
  /* Le téléphone est posé à droite de la feuille, sur sa marge blanche : les chiffres restent visibles. */
  .report-visual { padding: 0 240px 64px 0; }
  .sheet { transform: rotate(-1.2deg); }
  .shot--rapport { position: absolute; right: 0; bottom: 0; width: 300px; max-width: none; margin: 0; }
}

/* ---------- Confidentialité (bleu) ---------- */
.privacy { padding: 92px 0 96px; background: var(--blue-deep); }
.privacy-lead { text-align: center; font-size: 1.125rem; font-weight: 300; max-width: 36rem; margin: 0 auto 52px; color: rgba(255, 255, 255, .94); }
.privacy-cols { display: grid; gap: 32px; max-width: 1000px; margin: 0 auto; }
.privacy-cols h3 { font-size: 1.1875rem; font-weight: 600; margin-bottom: 10px; }
.privacy-cols p { margin: 0; color: rgba(255, 255, 255, .9); font-size: 1rem; }
@media (min-width: 820px) {
  .privacy-cols { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .privacy-cols > div { padding: 4px 36px; border-left: 1px solid rgba(255, 255, 255, .28); }
  .privacy-cols > div:first-child { border-left: 0; padding-left: 0; }
  .privacy-cols > div:last-child { padding-right: 0; }
}
.privacy-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin: 52px 0 0; font-weight: 600; }
.privacy-links a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); }
.privacy-links a:hover { text-decoration-color: #fff; }

/* ---------- Questions ---------- */
.faq { padding: 96px 0 40px; }
.faq-grid { display: grid; gap: 36px; max-width: 1000px; margin: 0 auto; }
.qa h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
.qa p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.qa strong { color: var(--ink); }
@media (min-width: 820px) { .faq-grid { grid-template-columns: 1fr 1fr; gap: 44px 72px; } }

/* ---------- Disponibilité ---------- */
.closing { padding: 56px 0 96px; }
.closing-inner {
  display: grid; gap: 20px; justify-items: center; text-align: center;
  max-width: 900px; padding-top: 64px; border-top: 1px solid var(--line);
}
.closing-mascot { width: 130px; }
.closing h2 { font-weight: 300; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.375rem); letter-spacing: -.01em; margin-bottom: 12px; }
.closing p { color: var(--ink-soft); max-width: 32rem; }
.closing .store-badge { color: #fff; margin-top: 8px; }
@media (min-width: 760px) {
  .closing-inner { grid-template-columns: auto minmax(0, 32rem); justify-content: center; justify-items: start; text-align: left; gap: 48px; align-items: center; }
  .closing-mascot { width: 170px; }
}

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 48px; text-align: center; font-size: .9375rem; color: var(--ink-soft); }
.footer-brand { display: inline-block; }
.footer-brand img { width: 168px; display: block; }
.footer-links { list-style: none; margin: 24px 0 26px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--blue); text-decoration: underline; }
.footer-links a[aria-current="page"] { color: var(--blue); }
.footer-note { max-width: 40rem; margin: 0 auto 10px; font-size: .875rem; }
.footer-copy { margin: 0; font-size: .875rem; }

/* =====================================================================
   Pages de texte (mentions légales, confidentialité, suppression)
   ===================================================================== */
.page-head { padding: 64px 0 40px; max-width: 46rem; }
.page-head h1 {
  font-weight: 300; font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem); letter-spacing: -.015em; line-height: 1.12;
}
.page-head h1::after { content: ""; display: block; width: 96px; height: 2px; margin: 24px 0 26px; background: var(--sky); }
.page-head p { font-size: 1.125rem; color: var(--ink-soft); }
.page-head .page-meta { font-size: .9375rem; margin: 0; }

.doc-layout { display: grid; gap: 40px; padding-bottom: 96px; }
.toc { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0 14px; }
.toc h2 { font-size: .9375rem; font-weight: 700; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.4em; font-size: .9375rem; line-height: 1.5; columns: 1; }
.toc li { margin: 0 0 6px; color: var(--ink-soft); }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; }
@media (min-width: 600px) and (max-width: 959px) { .toc ol { columns: 2; column-gap: 40px; } .toc li { break-inside: avoid; } }
@media (min-width: 960px) {
  .doc-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 72px; align-items: start; }
  .toc { position: sticky; top: 24px; border-bottom: 0; }
}

.prose { max-width: 70ch; min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; margin: 2.4em 0 .7em; scroll-margin-top: 24px; }
.prose h3 { font-size: 1.125rem; font-weight: 700; margin: 1.8em 0 .5em; }
.prose p, .prose li { color: #34434b; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--blue); }
.prose address { font-style: normal; margin: 0 0 1.2em; padding: 14px 0 14px 20px; border-left: 3px solid var(--sky); }
.prose code { font-size: .9em; background: var(--sky-pale); padding: 1px 6px; border-radius: 4px; }
.prose small { font-size: .85em; color: var(--ink-soft); font-weight: 400; }
.ui { font-weight: 700; color: var(--ink); white-space: nowrap; }
@media (max-width: 420px) { .ui { white-space: normal; } }

.summary-box { background: var(--sky-pale); border-radius: 8px; padding: 24px 24px 10px; margin: 0 0 2em; }
.summary-box h2 { margin: 0 0 .6em; font-size: 1.25rem; }
.summary-box ul { margin-bottom: 1em; }

.notice { display: flex; gap: 14px; align-items: flex-start; background: var(--sky-pale); border-radius: 8px; padding: 18px 20px; margin: 0 0 2em; }
.notice svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--blue); margin-top: 3px; }
.notice p { margin: 0; }

.steps { list-style: none; counter-reset: step; padding-left: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 14px; min-height: 30px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -1px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-size: .875rem; font-weight: 700;
}

.tag-health {
  display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 99px;
  background: #f4ebe2; color: var(--brown-dark); font-size: .75rem; font-weight: 700; letter-spacing: .02em;
}

/* Tableau : lignes empilées sur mobile, tableau classique dès 860 px */
.table-wrap { margin: 0 0 1.5em; }
.table-wrap:focus-visible { outline-offset: 4px; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.55; }
caption { text-align: left; font-weight: 700; padding: 0 0 10px; }
thead { display: none; }
tbody tr { display: block; border-top: 1px solid var(--line); padding: 14px 0; }
tbody tr:last-child { border-bottom: 1px solid var(--line); }
tbody th, tbody td { display: block; text-align: left; padding: 0; }
tbody th { font-weight: 700; margin-bottom: 8px; }
tbody td { margin-bottom: 8px; color: #34434b; }
tbody td::before { content: attr(data-label); display: block; font-size: .8125rem; font-weight: 600; color: var(--ink-soft); }
@media (min-width: 860px) {
  .table-wrap { overflow-x: auto; }
  thead { display: table-header-group; }
  tbody tr { display: table-row; padding: 0; border-top: 0; }
  tbody tr:last-child { border-bottom: 0; }
  thead th, tbody th, tbody td { display: table-cell; vertical-align: top; text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
  thead th { font-size: .8125rem; font-weight: 700; color: var(--ink-soft); border-bottom: 2px solid var(--ink); padding-top: 0; }
  tbody th, tbody td { margin: 0; }
  tbody td::before { content: none; }
  tbody th { width: 28%; }
}

/* ---------- Page 404 ---------- */
.error-page { min-height: min(100vh, 820px); display: flex; flex-direction: column; justify-content: center; text-align: center; padding-top: 120px; padding-bottom: 80px; }
.error-page .hero-mascot { width: 160px; margin: 0 auto 18px; display: block; }
.error-code { font-size: clamp(4rem, 3rem + 6vw, 7rem); font-weight: 300; line-height: 1; margin: 0 0 10px; letter-spacing: -.03em; }
.error-page h1 { font-weight: 300; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); margin-bottom: 16px; }
.error-page p { max-width: 30rem; margin-left: auto; margin-right: auto; color: rgba(255, 255, 255, .92); }
.error-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: 28px; font-weight: 600; }

/* ---------- Impression ---------- */
@media print {
  .topbar, .toc, .footer-links, .skip-link { display: none !important; }
  .blue { background: none !important; color: #000; }
  body { font-size: 11pt; }
  .prose { max-width: none; }
  a { color: #000; }
}
