/* Site vitrine de Rose — mêmes jetons que l'app (src/index.css), en CSS maison. */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('/polices/nunito-latin-wght-normal.woff2') format('woff2-variations');
  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;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('/polices/nunito-latin-ext-wght-normal.woff2') format('woff2-variations');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --fond: #fff9ee;
  --fond-2: #f6f1e7;
  --carte: #ffffff;
  --bordure: #f0e8d9;
  --texte: #1f1b16;
  --texte-2: #625a52;
  --accent: #fbbf24;
  --accent-vif: #f5b40f;
  --corail: #f2725b;
  --accent-texte: #b45309;
  --nuit: #2b2836;
  --nuit-fond: #1f1d29;
  --nuit-texte: #fff9ee;
  --nuit-texte-2: #b9b3c9;
  --boire: #f5b40f;
  --dodo: #6d5ce0;
  --couche: #0f9f6e;
  --ombre-tel: 0 30px 60px -30px rgb(120 70 20 / 0.45), 0 10px 20px -12px rgb(120 70 20 / 0.25);
  --piste: #f0e8d9;
  --pouce: #ffffff;
  --badge: #4a433b;
  --badge-texte: #fff9ee;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --fond: #15141a;
    --fond-2: #1c1b22;
    --carte: #201f27;
    --bordure: #2c2a33;
    --texte: #f3efe8;
    --texte-2: #b3aca3;
    --accent-texte: #fbbf24;
    --nuit: #0f0e14;
    --nuit-fond: #221f2e;
    --dodo: #9a8cf2;
    --couche: #34c38f;
    --ombre-tel: 0 30px 60px -30px rgb(0 0 0 / 0.8);
    --piste: #26242e;
    --pouce: #3a3744;
    --badge: #2c2a33;
    --badge-texte: #d9d3ca;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-texte); text-underline-offset: 3px; }
a:focus-visible, .bouton:focus-visible { outline: 3px solid var(--corail); outline-offset: 3px; border-radius: 12px; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.025em; margin: 0; }
p { margin: 0; }

.cadre { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* En-tête collant avec la bascule Grossesse / Naissance */
.barre {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--fond) 90%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--bordure) 70%, transparent);
}
.entete { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding-block: 14px; flex-wrap: wrap; }
/* Contrôle segmenté : une pastille blanche glisse sous le mode choisi. */
.bascule {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr;
  padding: 4px; border-radius: 999px; background: var(--piste);
}
.bascule::before {
  content: ''; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: var(--pouce);
  box-shadow: 0 1px 2px rgb(60 40 10 / 0.12), 0 6px 14px -6px rgb(60 40 10 / 0.3);
  transition: transform 0.32s cubic-bezier(0.3, 0.8, 0.2, 1);
}
[data-mode='naissance'] .bascule::before { transform: translateX(100%); }
.bascule button {
  font: inherit; font-weight: 800; font-size: 0.98rem; min-height: 40px; padding: 0 22px;
  border: 0; border-radius: 999px; background: transparent; color: var(--texte-2); cursor: pointer;
  transition: color 0.2s;
}
.bascule button:hover, .bascule button[aria-pressed='true'] { color: var(--texte); }
.bascule button:focus-visible { outline: 3px solid var(--corail); outline-offset: 2px; }
.js[data-mode='naissance'] [data-pour='grossesse'],
.js[data-mode='grossesse'] [data-pour='naissance'] { display: none !important; }
html:not(.js) .bascule, html:not(.js) .lien-mode { display: none; }
.js main.change { animation: changer 0.35s ease-out; }
@keyframes changer { from { opacity: 0.25; } }

/* Bouton secondaire : passer à l'autre mode. */
.lien-mode {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; min-height: 48px; padding: 0 20px 0 22px;
  font: inherit; font-weight: 800; font-size: 1.05rem; color: var(--texte); cursor: pointer;
  border: 0; border-radius: 999px; background: var(--carte);
  box-shadow: 0 1px 2px rgb(60 40 10 / 0.08), 0 8px 20px -10px rgb(60 40 10 / 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.lien-mode::after {
  content: ''; width: 7px; height: 7px; margin-right: 4px;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg);
}
.lien-mode:hover { transform: translateY(-1px); box-shadow: 0 1px 2px rgb(60 40 10 / 0.1), 0 12px 24px -10px rgb(60 40 10 / 0.35); }
.lien-mode:focus-visible { outline: 3px solid var(--corail); outline-offset: 3px; }
.marque { display: flex; align-items: center; gap: 10px; color: var(--texte); text-decoration: none; font-weight: 900; font-size: 1.4rem; letter-spacing: -0.02em; }
.marque img { width: 40px; height: 40px; border-radius: 11px; }
.langue { font-weight: 800; font-size: 1rem; }

/* Héros */
.heros { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding-block: 32px 56px; }
.heros h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 900; max-width: 13ch; }
.heros .chapeau { margin-top: 20px; font-size: 1.25rem; color: var(--texte-2); max-width: 36ch; }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.bouton {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px;
  border-radius: 999px; background: var(--accent); color: #1f1b16; font-weight: 900; font-size: 1.1rem;
  text-decoration: none; box-shadow: 0 8px 18px -10px rgb(180 83 9 / 0.55);
  transition: transform 0.15s, background-color 0.15s;
}
.bouton:hover { background: var(--accent-vif); transform: translateY(-1px); }
/* Badges des magasins, en attente : forme des vrais badges, atténués. */
.magasins { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.magasin {
  display: inline-flex; flex-direction: column; justify-content: center; min-height: 46px; padding: 5px 16px 6px;
  border-radius: 12px; background: var(--badge); color: var(--badge-texte); line-height: 1.15;
}
.magasin small { font-size: 0.72rem; font-weight: 700; opacity: 0.75; }
.magasin span { font-size: 0.98rem; font-weight: 900; letter-spacing: -0.01em; }
@media (prefers-reduced-motion: reduce) {
  .bascule::before, .bascule button, .bouton, .lien-mode { transition: none; }
  .js main.change { animation: none; }
}
.note-web { margin-top: 12px; font-size: 0.95rem; color: var(--texte-2); max-width: 44ch; }

.telephone {
  justify-self: center; width: min(320px, 78vw); border-radius: 44px; padding: 10px;
  background: var(--nuit); box-shadow: var(--ombre-tel);
}
.telephone img { border-radius: 34px; }

/* Ruban de 24 h : l'élément marquant */
.journee { background: var(--nuit-fond); color: var(--nuit-texte); padding-block: 56px 64px; }
.journee h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; }
.journee p { margin-top: 12px; color: var(--nuit-texte-2); max-width: 58ch; }
.ruban { margin-top: 36px; overflow-x: auto; }
.ruban svg { display: block; width: 100%; min-width: 680px; height: auto; }
.legende { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 20px; font-weight: 700; font-size: 1rem; color: var(--nuit-texte-2); }
.legende span { display: inline-flex; align-items: center; gap: 8px; }
.pastille { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.pastille.boire { background: #f5b40f; }
.pastille.dodo { background: #8f80f0; border-radius: 4px; }
.pastille.contraction { background: #f07a9a; border-radius: 3px; width: 8px; height: 18px; }
.pastille.regulier { background: #f07a9a; opacity: 0.5; border-radius: 3px; width: 22px; height: 6px; }
.pastille.couche { background: #34c38f; transform: rotate(45deg); border-radius: 3px; width: 11px; height: 11px; }

/* Fonctions */
.fonctions { padding-block: 72px; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.fonctions .capture { position: sticky; top: 24px; }
.fonctions h2, .section h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; max-width: 18ch; }
.liste { margin: 32px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.liste li { padding-left: 26px; position: relative; }
.liste li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.liste li.dodo::before { background: var(--dodo); border-radius: 3px; }
.liste li.couche::before { background: var(--couche); border-radius: 2px; transform: rotate(45deg); width: 10px; height: 10px; }
.liste li.corail::before { background: var(--corail); }
.liste li.rose::before { background: #f07a9a; border-radius: 3px; width: 8px; height: 16px; top: 0.35em; left: 2px; }
.liste h3 { font-size: 1.2rem; font-weight: 900; letter-spacing: -0.01em; }
.liste p { margin-top: 6px; color: var(--texte-2); font-size: 1.05rem; }

.captures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 700px; margin-bottom: 72px; }
.captures figure { margin: 0; }
.captures img { border-radius: 24px; box-shadow: var(--ombre-tel); }
.captures figcaption { margin-top: 12px; font-weight: 800; font-size: 1rem; }
.captures figcaption span { display: block; font-weight: 600; color: var(--texte-2); }

.section { padding-block: 72px; }
.section.grossesse { background: var(--fond-2); }
.deux { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.deux p.chapeau { margin-top: 16px; color: var(--texte-2); font-size: 1.2rem; max-width: 44ch; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo img { border-radius: 24px; box-shadow: var(--ombre-tel); }
.duo img:last-child { margin-top: 40px; }

.vie-privee { margin-top: 28px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; }
.vie-privee li strong { display: block; font-weight: 900; font-size: 1.15rem; }
.vie-privee li { color: var(--texte-2); }
.vie-privee li strong { color: var(--texte); }

.appel { padding-block: 64px; text-align: left; }
.appel .boite { background: var(--accent); color: #1f1b16; border-radius: 32px; padding: 44px 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.appel h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 900; max-width: 20ch; }
.appel .bouton { background: #1f1b16; color: #fff9ee; box-shadow: none; }
.appel .bouton:hover { background: #3a342c; }

.pied { padding-block: 40px 56px; color: var(--texte-2); font-size: 0.98rem; border-top: 1px solid var(--bordure); }
.pied .rangee { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 16px; font-weight: 700; }
.pied p + p { margin-top: 8px; }

/* Pages simples (suppression) */
.page { max-width: 680px; padding-block: 24px 72px; }
.page h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 900; }
.page h2 { font-size: 1.35rem; font-weight: 900; margin-top: 36px; }
.page p, .page li { margin-top: 12px; color: var(--texte-2); }
.page ol, .page ul { padding-left: 22px; }
.page strong { color: var(--texte); }

@media (max-width: 860px) {
  .heros, .fonctions, .deux { grid-template-columns: 1fr; gap: 40px; }
  .heros { padding-top: 28px; }
  .fonctions .capture { position: static; order: 2; }
}
@media (max-width: 560px) {
  body { font-size: 1.05rem; }
  .bascule { order: 3; width: 100%; }
  .bascule button { flex: 1; padding: 0 10px; }
  .liste, .vie-privee { grid-template-columns: 1fr; }
  .appel .boite { padding: 32px 24px; }
  .bouton { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .ruban .point { animation: apparaitre 0.5s ease-out both; animation-delay: calc(var(--i) * 40ms + 200ms); }
  @keyframes apparaitre { from { opacity: 0; transform: translateY(6px); } }
}
