/* Sapphire Executive Glass : zone haute bleu nuit en verre dépoli (l'essentiel du mois),
   feuille blanche arrondie pour le détail, dock flottant. Un seul thème, par choix. */
:root {
  --abyss: #051937;
  --deep: #0B2545;
  --royal: #0E2C5C;
  --cobalt: #0066FF;
  --cobalt-deep: #0052CC;
  --sky: #7BD0FF;
  --sky-ray: #38BDF8;
  --on-dark: #FFFFFF;
  --on-dark-2: #C2C6D8;
  --sheet: #FFFFFF;
  --ink: #0F172A;
  --ink-2: #64748B;
  --line: rgba(15, 23, 42, .07);
  --tint: #EEF4FF;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: linear-gradient(to bottom, var(--abyss) 0 50%, var(--sheet) 50% 100%);
  color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }
svg { flex: none; display: block; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 12px; }
.hero :focus-visible { outline-color: var(--sky); }
[tabindex="-1"]:focus { outline: none; }

.in { width: 100%; max-width: 1040px; margin: 0 auto; padding-inline: 20px; }
.in.narrow { max-width: 760px; }

/* ---------- Zone haute ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(0, 102, 255, .38) 0%, rgba(0, 102, 255, 0) 55%),
    radial-gradient(90% 60% at 0% 80%, rgba(56, 189, 248, .14) 0%, rgba(56, 189, 248, 0) 60%),
    linear-gradient(180deg, var(--abyss) 0%, var(--deep) 55%, var(--royal) 100%);
  padding-block: 18px 66px;
}
.hero .in { display: grid; gap: 22px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo-w { height: 30px; width: auto; display: block; }
.sep { width: 1px; height: 22px; background: rgba(255, 255, 255, .22); }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-2); padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 16px; color: #fff; background: linear-gradient(135deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .06)); border: 1px solid rgba(255, 255, 255, .25); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.hello h1 { font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -.025em; }

/* Verre dépoli */
.glass {
  position: relative; isolation: isolate; border-radius: 28px;
  background: linear-gradient(140deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .05) 55%, rgba(255, 255, 255, .03) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 24px 48px -18px rgba(0, 8, 32, .7);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .06));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}

/* Bloc du mois */
.focus { padding: 22px; display: grid; gap: 20px; }
.focus::before { content: ""; position: absolute; z-index: -1; width: 440px; height: 440px; right: -150px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 102, 255, .34) 0%, rgba(0, 102, 255, .12) 45%, rgba(0, 102, 255, 0) 72%); pointer-events: none; }
.f-main { display: grid; gap: 16px; min-width: 0; }
.pill-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 7px 13px 7px 11px; border-radius: 999px; background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .16); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky-ray); box-shadow: 0 0 0 4px rgba(56, 189, 248, .18), 0 0 12px rgba(56, 189, 248, .8); }
.month { font-size: 13.5px; font-weight: 500; color: var(--on-dark-2); }
.focus h2 { font-size: clamp(27px, 7.4vw, 42px); line-height: 1.12; font-weight: 700; letter-spacing: -.025em; }
.focus h2 em, .howto-title em { font-style: normal; color: var(--sky); }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 58px; padding: 6px 6px 6px 22px; border-radius: 999px; background: #fff; color: var(--abyss); font-weight: 700; font-size: 16px; text-decoration: none; box-shadow: 0 12px 30px -10px rgba(0, 102, 255, .55); transition: transform .15s ease, box-shadow .15s ease; }
.cta:hover { transform: scale(1.02); box-shadow: 0 0 0 3px rgba(0, 102, 255, .35), 0 14px 34px -10px rgba(0, 102, 255, .6); }
.cta-pod { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #E8EEFA; color: var(--abyss); }


/* ---------- Feuille blanche ---------- */
.sheet { position: relative; margin-top: -32px; background: var(--sheet); border-radius: 32px 32px 0 0; padding-block: 30px 136px; min-height: 56vh; box-shadow: 0 -14px 40px -22px rgba(5, 25, 55, .55); }
.sheet .in { display: grid; gap: 34px; }
.sec { display: flex; flex-direction: column; min-width: 0; }
.h2 { font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.015em; color: var(--ink); margin-bottom: 14px; }
.fill { flex: 1; display: flex; }
.fill > * { flex: 1; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px; min-width: 0; box-shadow: 0 1px 2px rgba(5, 25, 55, .04), 0 12px 28px -16px rgba(5, 25, 55, .18); }

/* Nouveauté du mois */
.news { display: flex; flex-direction: column; gap: 12px; }
.news-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.chip { font-size: 12px; font-weight: 700; color: var(--cobalt); background: var(--tint); padding: 4px 10px; border-radius: 999px; }
.date { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ico-badge { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #2F86FF 0%, var(--cobalt-deep) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 18px -8px rgba(0, 82, 204, .7); }
.news h3 { font-size: 17px; line-height: 1.35; font-weight: 700; color: var(--ink); }
.pill-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; margin-top: auto; align-self: flex-start; border-radius: 999px; border: 1px solid #DDE3EE; background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.pill-btn:hover { border-color: rgba(0, 102, 255, .45); box-shadow: 0 0 0 3px rgba(0, 102, 255, .12); }
.pill-btn.wide { align-self: stretch; }

/* Prochain rendez-vous */
.meet { display: flex; flex-direction: column; gap: 16px; background: linear-gradient(180deg, #F7FAFF, #F1F6FF); border-color: #E2EBFA; }
.meet-row { display: flex; align-items: center; gap: 14px; }
.date-tile { width: 62px; height: 66px; flex: none; border-radius: 16px; display: grid; place-content: center; text-align: center; color: #fff; background: linear-gradient(160deg, var(--deep) 0%, var(--abyss) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 20px -10px rgba(5, 25, 55, .6); }
.date-tile b { font-size: 20px; line-height: 1; font-weight: 800; letter-spacing: -.01em; }
.date-tile span { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); margin-top: 5px; }
.meet-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--cobalt); }
.meet-meta.tbd { color: var(--ink-2); }
.meet h3 { font-size: 17px; line-height: 1.35; font-weight: 700; color: var(--ink); margin-top: 3px; }
.meet .theme { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.empty { color: var(--ink-2); }
.foot { text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #94A3B8; margin-top: 44px; }

/* ---------- Écran « Comment faire » ---------- */
.pod { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); transition: background .15s; }
.pod:hover { background: rgba(255, 255, 255, .17); }
.howto-head { display: grid; gap: 16px; }
.howto-title { font-size: clamp(32px, 8.4vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; }
.why { color: var(--on-dark-2); font-size: 16px; line-height: 1.6; max-width: 60ch; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding-bottom: 22px; }
.steps > li:last-child { padding-bottom: 0; }
.steps > li::before { content: counter(step); position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 17px; color: #fff; background: linear-gradient(145deg, #3B8BFF 0%, var(--cobalt-deep) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 8px 16px -8px rgba(0, 82, 204, .8); }
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: linear-gradient(#CFE0FF, #EEF4FF); }
.steps h3 { font-size: 16px; font-weight: 700; color: var(--ink); padding-top: 3px; }
.steps > li > div > p { font-size: 14.5px; color: var(--ink-2); margin-top: 2px; }

/* Outils prêts à l'emploi : message à copier, phrases à dire */
.kit { margin-top: 12px; padding: 12px 14px 14px; border-radius: 18px; background: var(--tint); border: 1px solid #DCE7FB; min-width: 0; }
.kit-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; min-height: 36px; }
.kit-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; color: var(--cobalt); }
.kit-text { margin-top: 6px; font-size: 14.5px; line-height: 1.6; color: #1E293B; white-space: pre-line; overflow-wrap: anywhere; }
.kit-lines { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 9px; }
.kit-lines li { padding-left: 12px; border-left: 2px solid #B6CEFA; font-size: 14.5px; line-height: 1.55; color: #1E293B; overflow-wrap: anywhere; }
.kit mark { background: rgba(0, 102, 255, .10); color: var(--cobalt-deep); font-weight: 600; border-radius: 5px; padding: 0 3px; }
.kit mark.nw { white-space: nowrap; }
.copy { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 13px; flex: none; border-radius: 999px; border: 1px solid #C7D9F8; background: #fff; color: var(--cobalt); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s, color .15s, border-color .15s, box-shadow .15s; }
.copy:hover { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(0, 102, 255, .12); }
.copy.done { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.kit-file { margin-top: 12px; }

/* ---------- Écran « Communication prête à l'emploi » ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.jump button { font: inherit; font-size: 13px; font-weight: 600; color: #fff; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .08); cursor: pointer; transition: background .15s, border-color .15s; }
.jump button:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); }
.com-sec { scroll-margin-top: 16px; min-width: 0; }
.items { display: grid; gap: 14px; }
.item { display: flex; flex-direction: column; gap: 8px; }
.item .chip { align-self: flex-start; }
.item h3 { font-size: 17px; line-height: 1.35; font-weight: 700; color: var(--ink); }
.item-visuel { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.item-visuel span { font-weight: 700; color: var(--ink); margin-right: 6px; }
.item .kit { margin-top: 4px; }
.plan { display: grid; gap: 16px; }
.plan-row { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: start; }
.plan-ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: var(--cobalt); background: var(--tint); }
.plan-label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cobalt); padding-top: 2px; }
.plan-row p { font-size: 15px; line-height: 1.5; color: var(--ink); margin-top: 2px; }
.segs { display: flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 999px; background: var(--tint); }
.seg { flex: 1 1 auto; min-width: 0; min-height: 40px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s; }
.seg.on { background: #fff; color: var(--abyss); box-shadow: 0 2px 10px -3px rgba(5, 25, 55, .25); }
.cal-title { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.cal { list-style: none; margin: 0; padding: 0; display: grid; }
.cal li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.cal li:first-child { border-top: 0; padding-top: 0; }
.cal li:last-child { padding-bottom: 0; }
.when { font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--cobalt); padding-top: 2px; }
.cal b { display: block; font-size: 15px; line-height: 1.4; color: var(--ink); }
.cal .what { display: block; font-size: 14px; line-height: 1.5; color: var(--ink-2); margin-top: 2px; }

/* Visuels prêts à publier : miniature légère, fichier complet au téléchargement */
.sub { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: -6px 0 14px; }
.item-top { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: start; }
.item-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.thumb { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 9 / 16; border-radius: 12px; background: var(--tint); color: #A9C1EC; }
.thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08); pointer-events: none; }
.thumb.r45 { aspect-ratio: 4 / 5; }
.thumb.a4 { aspect-ratio: 210 / 297; }
.thumb.r11 { aspect-ratio: 1; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dl { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 15px 0 12px; border-radius: 999px; background: var(--cobalt); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; transition: background .15s, box-shadow .15s; }
.dl:hover { background: var(--cobalt-deep); box-shadow: 0 0 0 3px rgba(0, 102, 255, .16); }
#com-pretes { margin-top: 14px; }
.strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -18px; padding: 2px 18px; scroll-padding-inline: 18px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.tile { flex: 0 0 104px; display: grid; align-content: start; gap: 8px; scroll-snap-align: start; text-decoration: none; }
.tile-t { font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.badge { position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(5, 25, 55, .72); }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

/* ---------- Dock flottant ---------- */
.dock {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 20;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 6px; padding: 7px; border-radius: 999px;
  background: rgba(7, 27, 57, .80); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 18px 40px -12px rgba(5, 25, 55, .6);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.dock :focus-visible { outline-color: var(--sky); }
.tab { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; min-width: 48px; padding: 0 14px; border-radius: 999px; color: rgba(255, 255, 255, .78); text-decoration: none; font-weight: 700; font-size: 14px; transition: background .15s, color .15s; }
.tab:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.tab.active { background: #fff; color: var(--abyss); padding: 0 18px 0 16px; }
.tab:not(.active) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (min-width: 900px) {
  .in { padding-inline: 32px; }
  .hero { padding-block: 28px 88px; }
  .hero .in { gap: 28px; }
  .logo-w { height: 34px; }
  .hello h1 { font-size: 40px; }
  .focus { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 48px; padding: 34px 36px; }
  .focus > .pill-row { grid-column: 1 / -1; }
  .cta { min-width: 300px; }
  .sheet { margin-top: -40px; border-radius: 40px 40px 0 0; padding-block: 44px 144px; }
  .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; align-items: stretch; }
  .card { padding: 22px; }
  .item-top { grid-template-columns: 96px minmax(0, 1fr); gap: 18px; }
  .strip { margin-inline: -22px; padding-inline: 22px; scroll-padding-inline: 22px; }
  .tile { flex: 1 1 0; }
  .photos { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Masquage des écrans non affichés */
[hidden] { display: none !important; }

/* Encoche des téléphones (quand l'app est ajoutée à l'écran d'accueil) */
@supports (padding: env(safe-area-inset-top)) {
  .hero { padding-top: calc(18px + env(safe-area-inset-top, 0px)); }
  @media (min-width: 900px) { .hero { padding-top: calc(28px + env(safe-area-inset-top, 0px)); } }
}

