@font-face{font-family:'EdenSerif';src:url(assets/lora.woff) format('woff');font-style:normal;font-weight:400 700;font-display:swap}
@font-face{font-family:'EdenSerif';src:url(assets/lora-italic.woff) format('woff');font-style:italic;font-weight:400 700;font-display:swap}
@font-face{font-family:'EdenSans';src:url(assets/carlito.woff) format('woff');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'EdenSans';src:url(assets/carlito-bold.woff) format('woff');font-style:normal;font-weight:700;font-display:swap}
@font-face{font-family:'EdenSans';src:url(assets/carlito-italic.woff) format('woff');font-style:italic;font-weight:400;font-display:swap}
/* =========================================================================
   EDEN CONNECT — Design system (extrait de EDEN_Presentation_Officielle_V3)
   Bleu nuit dominant · bleu roi · bleu ciel · rose poudré · blanc · touche bordeaux
   Titres : serif éditorial (bold vs italic) · Texte : sans humaniste (famille Calibri)
   ========================================================================= */
:root {
  --navy: #0A1B3F; --deep: #0F2A63; --royal: #1554A6; --mid: #4F86C6; --sky: #A9CFE6; --sky-pale: #EAF2F9;
  --off: #F6F8FC; --white: #FFFFFF; --rose: #E7B3B5; --rose-old: #C27D86; --rose-light: #F7E6E7; --bord: #7A2338;
  --ink: #1C2740; --muted: #5E6B85; --line: #D5E3F0; --ok: #1E7A55; --ok-bg: #E3F4EC; --warn: #9A5B00; --warn-bg: #FFF2DC; --bad: #A3263C; --bad-bg: #FBE7EA;
  --canvas: #EEF3F9; --card: #FFFFFF;
  --grad-navy: linear-gradient(135deg, #08163A 0%, #0F2A63 55%, #1554A6 100%);
  --grad-rose: linear-gradient(120deg, #0A1B3F 0%, #1554A6 55%, #C496AA 100%);
  --grad-bord: linear-gradient(120deg, #7A2338 0%, #281E50 50%, #0A1B3F 100%);
  --serif: 'EdenSerif', Georgia, 'Times New Roman', serif; --sans: 'EdenSans', Calibri, Carlito, 'Segoe UI', Roboto, system-ui, sans-serif;
  --r: 14px; --r-sm: 10px; --shadow: 0 6px 22px rgba(10, 27, 63, .09); --shadow-lg: 0 18px 50px rgba(10, 27, 63, .18);
  --sb: 270px; --bn: 64px; --gut: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--canvas); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--royal); text-decoration: none; } a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.15; margin: 0 0 .4em; overflow-wrap: anywhere; }
h1 { font-size: clamp(28px, 6vw, 46px); font-weight: 700; } h2 { font-size: clamp(22px, 4.2vw, 30px); font-weight: 700; } h3 { font-size: 19px; font-weight: 700; } h4 { font-size: 16px; }
p { margin: 0 0 .8em; } em.accent, .accent { font-style: italic; font-weight: 400; color: var(--royal); }
.on-dark .accent { color: var(--sky); } .rose { color: var(--rose); } .rose-old { color: var(--rose-old); }
.kicker { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--royal); margin: 0 0 8px; }
.on-dark .kicker, .kicker.rose { color: var(--rose); }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.serif { font-family: var(--serif); } .italic { font-style: italic; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.22em; }

/* ---------------- Layout applicatif ---------------- */
.app { min-height: 100vh; display: flex; }
.sidebar { display: none; }
.main { flex: 1; min-width: 0; padding-bottom: calc(var(--bn) + 24px + env(safe-area-inset-bottom)); }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px var(--gut); background: rgba(10, 27, 63, .96); color: #fff; backdrop-filter: blur(8px); min-height: 58px; }
.topbar .logo { height: 30px; width: auto; }
.topbar .spacer { flex: 1; }
.topbar .who { display: none; font-size: 13px; color: var(--sky); text-align: right; line-height: 1.2; }
.iconbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.iconbtn:hover { background: rgba(255, 255, 255, .16); text-decoration: none; }
.iconbtn .dot { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rose); color: var(--navy); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.content { padding: 0 var(--gut) 24px; max-width: 1240px; margin: 0 auto; }
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; background: var(--navy); border-top: 1px solid rgba(169, 207, 230, .2); padding-bottom: env(safe-area-inset-bottom); }
.bottomnav a { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--bn); color: var(--sky); font-size: 11px; font-weight: 600; text-decoration: none; }
.bottomnav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.bottomnav a svg { width: 24px; height: 24px; }
.bottomnav a.on { color: #fff; } .bottomnav a.on svg { color: var(--rose); }

/* Tiroir (menu complet) */
.drawer-bg { position: fixed; inset: 0; background: rgba(5, 12, 30, .55); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(88vw, 330px); z-index: 61; transform: translateX(-102%); transition: transform .25s ease; overflow-y: auto; }
.drawer-open .drawer-bg { opacity: 1; pointer-events: auto; } .drawer-open .drawer { transform: none; }
.navpanel { background: var(--grad-navy); color: #fff; min-height: 100%; padding: 20px 14px 28px; display: flex; flex-direction: column; gap: 4px; position: relative; }
.navpanel::after { content: ''; position: absolute; inset: 0; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><circle cx="300" cy="0" r="220" fill="none" stroke="%23A9CFE6" stroke-opacity=".08" stroke-width="2"/><circle cx="0" cy="300" r="180" fill="none" stroke="%23E7B3B5" stroke-opacity=".08" stroke-width="2"/></svg>') no-repeat; pointer-events: none; }
.navpanel .brand { display: block; padding: 4px 8px 14px; } .navpanel .brand img { width: 150px; }
.navpanel .role { margin: 0 6px 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .07); font-size: 13px; }
.navpanel .role b { display: block; font-family: var(--serif); font-size: 16px; color: #fff; }
.navpanel .role span { color: var(--sky); }
.navpanel .grp { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--rose); font-weight: 700; padding: 14px 10px 4px; }
.navpanel a.nav { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #DCE8F4; font-size: 15px; text-decoration: none; position: relative; z-index: 1; }
.navpanel a.nav:hover { background: rgba(255, 255, 255, .08); }
.navpanel a.nav.on { background: #fff; color: var(--navy); font-weight: 700; } .navpanel a.nav.on svg { color: var(--royal); }
.navpanel .navfoot { margin-top: auto; padding: 16px 10px 0; font-size: 12px; color: var(--sky); font-style: italic; font-family: var(--serif); position: relative; z-index: 1; }

/* ---------------- En-tête de page (bandeau éditorial) ---------------- */
.hero { position: relative; overflow: hidden; margin: 0 calc(-1 * var(--gut)) 18px; padding: 26px var(--gut) 24px; background: var(--grad-navy); color: #fff; }
.hero.rose { background: var(--grad-rose); } .hero.bord { background: var(--grad-bord); } .hero.light { background: linear-gradient(120deg, #EAF2F9, #F7E6E7); color: var(--ink); }
.hero h1 { color: #fff; margin-bottom: 6px; } .hero.light h1 { color: var(--navy); }
.hero .lead { color: #D6E6F3; max-width: 640px; margin: 0; } .hero.light .lead { color: var(--muted); }
.hero .photo { position: absolute; right: -40px; top: 12px; bottom: -10px; width: 42%; max-width: 360px; border-radius: 999px 999px 0 0; background-size: cover; background-position: center; opacity: .22; mask-image: linear-gradient(90deg, transparent, #000 40%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); }
.hero .row { position: relative; z-index: 1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; position: relative; z-index: 1; }

/* ---------------- Cartes & grilles ---------------- */
.grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card.navy { background: var(--navy); color: #fff; } .card.navy h3, .card.navy h2 { color: #fff; } .card.navy .muted { color: var(--sky); }
.card.royal { background: var(--royal); color: #fff; } .card.royal h3 { color: #fff; } .card.royal .muted { color: var(--sky-pale); }
.card.rose { background: var(--rose-light); } .card.sky { background: var(--sky-pale); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.card-h h3 { margin: 0; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 26px 0 10px; flex-wrap: wrap; }
.section-title h2 { margin: 0; font-size: 22px; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kpi { background: #fff; border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); min-width: 0; position: relative; overflow: hidden; }
.kpi .v { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--navy); margin: 6px 0 4px; }
.kpi .l { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kpi .s { font-size: 12.5px; color: var(--muted); }
.kpi.navy { background: var(--navy); } .kpi.navy .v { color: #fff; } .kpi.navy .l, .kpi.navy .s { color: var(--sky); }
.kpi.royal { background: var(--royal); } .kpi.royal .v { color: #fff; } .kpi.royal .l, .kpi.royal .s { color: var(--sky-pale); }
.kpi.rose { background: var(--rose-light); } .kpi.rose .v { color: var(--bord); }
.kpi a.stretched::after { content: ''; position: absolute; inset: 0; }
.kpi .ic-c { position: absolute; right: 12px; top: 12px; opacity: .4; }

/* Barres de progression */
.progress { height: 8px; background: var(--sky-pale); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--royal), var(--mid)); border-radius: 99px; }
.on-dark .progress, .card.navy .progress { background: rgba(255, 255, 255, .16); } .card.navy .progress > i { background: linear-gradient(90deg, var(--rose), #fff); }
.ring { --p: 0; width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(var(--rose) calc(var(--p) * 1%), rgba(255, 255, 255, .15) 0); display: grid; place-items: center; flex: none; }
.ring > span { width: 74px; height: 74px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; font-family: var(--serif); font-size: 24px; color: #fff; }

/* Badges & puces */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--sky-pale); color: var(--deep); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.warn { background: var(--warn-bg); color: var(--warn); } .badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.rose { background: var(--rose-light); color: var(--bord); } .badge.navy { background: var(--navy); color: #fff; } .badge.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.badge.lock { background: #EEE8F7; color: #4B2C7A; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid transparent; background: var(--royal); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; text-align: center; line-height: 1.2; }
.btn:hover { filter: brightness(1.07); text-decoration: none; } .btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }
.btn.navy { background: var(--navy); } .btn.rose { background: var(--rose); color: var(--navy); } .btn.white { background: #fff; color: var(--navy); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--navy); } .on-dark .btn.ghost, .hero .btn.ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn.danger { background: var(--bad); } .btn.sm { min-height: 36px; padding: 6px 12px; font-size: 13.5px; border-radius: 10px; } .btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--royal); font-weight: 700; cursor: pointer; }

/* Listes, tableaux → cartes sur mobile */
.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); min-width: 0; }
.item .grow { flex: 1; min-width: 0; } .item .t { font-weight: 700; color: var(--navy); overflow-wrap: anywhere; } .item .m { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.item .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sky-pale); color: var(--royal); flex: none; }
.item .ico.rose { background: var(--rose-light); color: var(--bord); } .item .ico.navy { background: var(--navy); color: #fff; }
a.item:hover { text-decoration: none; border-color: var(--mid); }
.seances { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; font-size: 13.5px; }
.seances li { display: flex; gap: 6px; align-items: baseline; min-width: 0; } .seances .n { font-family: var(--serif); font-weight: 700; color: var(--royal); min-width: 1.1em; }
.card.navy .seances .n { color: var(--rose); } .calnote { background: var(--rose-light); color: var(--bord); border-radius: 10px; padding: 8px 10px; margin: 10px 0 0; }
.on-sky { color: var(--sky); }
.tblx { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 10px; border-bottom: 2px solid var(--line); white-space: normal; min-width: 72px; }
.tbl .badge { white-space: normal; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.tbl tr:hover td { background: #FAFCFE; }
@media (max-width: 759px) {
  .tbl thead { display: none; } .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 8px 12px; }
  .tbl td { border: 0; padding: 5px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .tbl td::before { content: attr(data-l); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; text-align: left; flex: none; max-width: 45%; }
  .tbl td.main-cell { display: block; text-align: left; font-weight: 700; color: var(--navy); } .tbl td.main-cell::before { display: none; }
  .tbl td:empty { display: none; }
}

/* Formulaires */
.form { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 700; color: var(--navy); }
.field small { color: var(--muted); font-size: 12px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=time], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1px solid #C3D4E6; background: #fff; font-size: 16px; }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; } .check input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--royal); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; } .seg label { flex: 1 1 auto; } .seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 10px 12px; border-radius: 10px; border: 1px solid #C3D4E6; background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.seg input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--rose); }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--sky-pale); color: var(--deep); font-size: 14px; }
.notice.lock { background: #F1ECF8; color: #43286C; } .notice.warn { background: var(--warn-bg); color: #6E4200; } .notice.rose { background: var(--rose-light); color: var(--bord); } .notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice svg { flex: none; margin-top: 2px; }
.filters { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); margin-bottom: 14px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { flex: none; padding: 9px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.tabs .on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Timeline */
.tl { list-style: none; margin: 0; padding: 0 0 0 4px; }
.tl li { position: relative; padding: 0 0 18px 30px; }
.tl li::before { content: ''; position: absolute; left: 8px; top: 18px; bottom: -2px; width: 2px; background: var(--line); }
.tl li:last-child::before { display: none; }
.tl .pt { position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.tl li.done .pt { background: var(--royal); border-color: var(--royal); } .tl li.done::before { background: var(--royal); }
.tl li.current .pt { background: var(--rose); border-color: var(--bord); box-shadow: 0 0 0 4px rgba(231, 179, 181, .35); }
.tl li.na { opacity: .45; }
.tl .tt { font-weight: 700; color: var(--navy); } .tl .td { font-size: 13px; color: var(--muted); }

/* Escalier des parcours (motif PPT) */
.stairs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 8px; }
.stairs .st { border-radius: 10px 10px 0 0; padding: 10px; color: #fff; background: rgba(255, 255, 255, .14); min-width: 0; }
.stairs .st:nth-child(1) { height: 92px; } .stairs .st:nth-child(2) { height: 122px; } .stairs .st:nth-child(3) { height: 152px; } .stairs .st:nth-child(4) { height: 182px; background: var(--rose); color: var(--navy); }
.stairs .st b { font-family: var(--serif); font-size: 26px; display: block; line-height: 1; }
.stairs .st span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; display: block; margin-top: 4px; overflow-wrap: anywhere; }
.stairs .st.me { outline: 3px solid #fff; }

/* Arches photo */
.arch { border-radius: 999px 999px 18px 18px; overflow: hidden; background: var(--sky-pale) center / cover no-repeat; aspect-ratio: 3 / 4; box-shadow: var(--shadow-lg); }
.circle-photo { border-radius: 50%; overflow: hidden; background: center / cover no-repeat; aspect-ratio: 1; border: 4px solid #fff; box-shadow: var(--shadow); }

/* Modules */
.modgrid { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.mod { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink); min-width: 0; }
.mod:hover { text-decoration: none; border-color: var(--mid); }
.mod .n { font-family: var(--serif); font-size: 26px; color: var(--royal); line-height: 1; min-width: 34px; }
.mod.termine { background: var(--navy); border-color: var(--navy); color: #fff; } .mod.termine .n { color: var(--rose); } .mod.termine .t { color: #fff; }
.mod.en_cours { border: 2px solid var(--rose-old); } .mod.a_rattraper { border: 2px dashed var(--warn); }
.mod .t { font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.reader { font-size: 17px; line-height: 1.65; max-width: 760px; } .reader h3 { margin-top: 28px; } .reader blockquote { margin: 16px 0; padding: 14px 18px; border-left: 0; background: var(--rose-light); border-radius: 12px; font-family: var(--serif); font-style: italic; color: var(--bord); }
.reader ul, .reader ol { padding-left: 1.3em; } .reader li { margin-bottom: 6px; }
.bible { display: flex; flex-wrap: wrap; gap: 6px; } .bible span { padding: 5px 10px; border-radius: 99px; background: var(--navy); color: #fff; font-size: 13px; font-family: var(--serif); font-style: italic; }

/* Calendrier */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .dh { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); text-align: center; padding: 4px 0; letter-spacing: .1em; }
.cal .d { min-height: 64px; background: #fff; border-radius: 8px; padding: 4px; font-size: 12px; border: 1px solid var(--line); min-width: 0; overflow: hidden; cursor: pointer; }
.cal .d.out { opacity: .4; } .cal .d.today { border: 2px solid var(--rose-old); } .cal .d.sel { background: var(--sky-pale); }
.cal .d .num { font-weight: 700; color: var(--navy); }
.cal .d .ev { display: block; height: 6px; border-radius: 3px; margin-top: 3px; background: var(--royal); }
.ev-cours { --c: var(--royal); } .ev-entretien { --c: #6A3FA0; } .ev-suivi { --c: var(--rose-old); } .ev-mentorat { --c: #1E7A55; } .ev-session { --c: var(--navy); } .ev-evenement { --c: var(--bord); } .ev-echeance { --c: #B46A00; } .ev-disponibilite { --c: #6B7A90; }
.cal .d .ev { background: var(--c); }
.evrow { display: flex; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #fff; border-left: 5px solid var(--c, var(--royal)); box-shadow: var(--shadow); min-width: 0; }
.evrow .time { font-family: var(--serif); font-size: 18px; color: var(--navy); min-width: 52px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 4px; vertical-align: -1px; }

/* Maison du projet de foyer (motif PPT) */
.house { max-width: 520px; margin: 0 auto; }
.house .roof { height: 0; border-left: 30px solid transparent; border-right: 30px solid transparent; }
.house .roof-shape { width: 100%; aspect-ratio: 5 / 1.4; background: var(--rose); clip-path: polygon(50% 0, 100% 100%, 0 100%); display: grid; place-items: end center; padding-bottom: 8px; font-family: var(--serif); font-style: italic; font-weight: 700; color: var(--navy); }
.house .bricks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 6px 6% 0; }
.house .brick { padding: 10px 6px; text-align: center; font-weight: 700; font-size: 13px; border-radius: 4px; background: var(--sky-pale); color: var(--navy); border: 2px dashed var(--sky); overflow-wrap: anywhere; }
.house .brick.full { background: var(--royal); color: #fff; border-style: solid; border-color: var(--royal); }
.house .brick.base.full { background: var(--navy); border-color: var(--navy); }

/* Modales / feuilles */
.modal-bg { position: fixed; inset: 0; z-index: 80; background: rgba(5, 12, 30, .55); display: flex; align-items: flex-end; justify-content: center; }
.modal { background: #fff; width: 100%; max-height: 92vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 20px var(--gut) calc(20px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); animation: up .2s ease; }
@keyframes up { from { transform: translateY(30px); opacity: .5; } to { transform: none; opacity: 1; } }
.modal .mh { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; } .modal .mh h2 { margin: 0; font-size: 22px; }
.modal .x { border: 0; background: var(--sky-pale); width: 40px; height: 40px; border-radius: 12px; cursor: pointer; flex: none; color: var(--navy); }
.toasts { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: calc(var(--bn) + 14px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; animation: up .2s ease; }
.toast.err { background: var(--bad); } .toast.ok svg { color: var(--rose); }

/* Démo */
.demo-strip { background: var(--rose-light); color: var(--bord); font-size: 12.5px; padding: 6px var(--gut); display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; }
.demo-strip .ds { display: none; }
@media (max-width: 559px) { .demo-strip { flex-wrap: nowrap; font-size: 12px; padding: 5px 12px; } .demo-strip > svg, .demo-strip .ic { display: none; } .demo-strip .dl { display: none; } .demo-strip .ds { display: inline; } .demo-strip > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; } .demo-strip button { flex: none; } }
.demo-strip button { border: 0; background: var(--bord); color: #fff; border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 700; cursor: pointer; }
.empty { text-align: center; padding: 26px 16px; color: var(--muted); } .empty svg { width: 40px; height: 40px; color: var(--sky); margin-bottom: 6px; }
.skel { height: 120px; border-radius: var(--r); background: linear-gradient(90deg, #E3ECF6, #F2F6FB, #E3ECF6); background-size: 200% 100%; animation: sk 1.2s infinite; margin-top: 16px; }
@keyframes sk { to { background-position: -200% 0; } }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.kv { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 14px; } .kv dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 8px; } .kv dd { margin: 0; overflow-wrap: anywhere; }
.steps { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; } .steps::-webkit-scrollbar { display: none; }
.steps .s { flex: none; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); }
.steps .s.done { background: var(--ok-bg); color: var(--ok); border-color: transparent; } .steps .s.cur { background: var(--navy); color: #fff; border-color: var(--navy); }
.bar-chart { display: flex; flex-direction: column; gap: 8px; } .bar-chart .b { display: grid; grid-template-columns: 70px minmax(0, 1fr) 42px; gap: 8px; align-items: center; font-size: 13px; }
.bar-chart .b i { display: block; height: 14px; border-radius: 7px; background: var(--royal); min-width: 2px; }
.qr { width: 120px; height: 120px; image-rendering: pixelated; border-radius: 8px; }

/* ---------------- Pages publiques ---------------- */
.pub-top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px var(--gut); }
.pub-top .logo { height: 34px; }
.pub-top nav { display: none; gap: 18px; } .pub-top nav a { color: #fff; font-weight: 700; font-size: 14px; }
.cover { position: relative; min-height: min(100vh, 860px); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; padding: 90px var(--gut) 36px; background: #0A1B3F center / cover no-repeat; overflow: hidden; }
.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 27, 63, .15) 0%, rgba(10, 27, 63, .1) 35%, rgba(10, 27, 63, .92) 78%); }
.cover > * { position: relative; z-index: 1; }
.cover .big { font-family: var(--serif); font-weight: 700; font-size: clamp(64px, 18vw, 150px); line-height: .9; letter-spacing: .03em; margin: 0; color: #fff; }
.cover .sub { font-family: var(--serif); font-size: clamp(16px, 4.2vw, 30px); letter-spacing: .32em; text-transform: uppercase; margin: 8px 0 10px; }
.cover .slogan { font-family: var(--serif); font-style: italic; color: var(--rose); font-size: clamp(18px, 4.5vw, 24px); margin: 0 0 22px; }
.pub-section { padding: 46px var(--gut); } .pub-section .in { max-width: 1120px; margin: 0 auto; }
.pub-section.navy { background: var(--grad-navy); color: #fff; } .pub-section.navy h2, .pub-section.navy h3 { color: #fff; }
.pub-section.pale { background: linear-gradient(120deg, #EAF2F9, #F7E6E7); } .pub-section.white { background: #fff; }
.manifest { font-family: var(--serif); font-size: clamp(26px, 6vw, 44px); line-height: 1.12; color: var(--sky); margin: 0; }
.manifest b { color: #fff; display: block; margin-top: 14px; font-size: 1.25em; } .manifest i { color: var(--rose); }
.pcard { border-radius: var(--r); padding: 20px; color: #fff; min-width: 0; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; min-height: 230px; text-decoration: none; }
.pcard:hover { text-decoration: none; transform: translateY(-2px); transition: transform .15s; }
.pcard .num { font-family: var(--serif); font-size: 54px; line-height: 1; } .pcard h3 { color: inherit; font-size: 24px; margin: 0; } .pcard .it { font-family: var(--serif); font-style: italic; }
.pcard.p1 { background: var(--royal); } .pcard.p2 { background: var(--mid); } .pcard.p3 { background: var(--navy); } .pcard.p4 { background: var(--rose); color: var(--navy); }
.stats3 { display: flex; gap: 0; flex-wrap: wrap; } .stats3 > div { padding: 0 18px; border-left: 1px solid rgba(255, 255, 255, .25); } .stats3 > div:first-child { padding-left: 0; border-left: 0; }
.stats3 b { font-family: var(--serif); font-weight: 400; font-size: 46px; display: block; line-height: 1; } .stats3 span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--rose); }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--grad-navy); }
.auth-photo { display: none; background: center / cover no-repeat; }
.auth-card { margin: auto; width: min(100%, 460px); padding: 26px var(--gut) 34px; }
.auth-card .card { padding: 22px; }
.persona { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; width: 100%; min-width: 0; }
.persona:hover { border-color: var(--mid); } .persona .av { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; flex: none; }
.persona .grow { flex: 1; min-width: 0; } .persona b { display: block; color: var(--navy); font-size: 14px; } .persona span { font-size: 12px; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- Points de rupture ---------------- */
@media (min-width: 560px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form.cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form .full { grid-column: 1 / -1; }
  .kv.cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  :root { --gut: 24px; }
  .grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .modal-bg { align-items: center; } .modal { width: min(640px, 94vw); border-radius: 20px; padding: 24px; }
  .toasts { left: auto; right: 20px; bottom: 20px; width: 380px; }
  .hero { padding: 34px var(--gut) 30px; }
  .hero .photo { opacity: .35; }
  .auth-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .auth-photo { display: block; }
  .pub-top nav { display: flex; }
  .split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .split.rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
}
@media (min-width: 1024px) {
  .sidebar { display: block; position: sticky; top: 0; height: 100vh; width: var(--sb); flex: none; overflow-y: auto; }
  .bottomnav, .topbar .menu-btn { display: none; }
  .main { padding-bottom: 30px; }
  .topbar { background: rgba(255, 255, 255, .92); color: var(--navy); border-bottom: 1px solid var(--line); } .topbar .logo-m { display: none; }
  .topbar .iconbtn { background: var(--sky-pale); color: var(--navy); } .topbar .who { display: block; color: var(--muted); }
  .grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpis.k6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .modgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .toasts { bottom: 24px; }
  .cal .d { min-height: 92px; }
  .cal .d .evt { display: block; font-size: 11px; line-height: 1.25; margin-top: 3px; padding: 2px 4px; border-radius: 4px; background: var(--c); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cal .d .ev { display: none; }
}
.cal .d .evt { display: none; }
@media (min-width: 1024px) { .cal .d .evt { display: block; } }
@media (min-width: 1440px) { .content { max-width: 1320px; } }
@media print { .sidebar, .topbar, .bottomnav, .demo-strip, .noprint { display: none !important; } body { background: #fff; } .card { box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------------- Wedding Planning V2 ---------------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 7px 12px; border-radius: 99px; border: 1px solid #C3D4E6; background: #fff; font-size: 14px; line-height: 1.25; color: var(--ink); transition: background .15s, color .15s; }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--rose); outline-offset: 1px; }
.wsteps { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; margin: 4px 0 6px; }
.wsteps::-webkit-scrollbar { display: none; }
.wsteps a { flex: none; display: flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.wsteps a b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--sky-pale); color: var(--deep); font-size: 12px; }
.wsteps a.done b { background: var(--ok-bg); color: var(--ok); }
.wsteps a.on { background: var(--navy); color: #fff; border-color: var(--navy); } .wsteps a.on b { background: var(--rose); color: var(--navy); }
.wprog { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 16px; } .wprog .grow { flex: 1 1 160px; min-width: 0; }
.wstep h3 { margin-top: 18px; }
.wnav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.wneed { margin-bottom: 10px; } .wneed summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; font-family: var(--serif); color: var(--navy); font-size: 17px; }
.wneed summary::-webkit-details-marker { display: none; } .wneed summary::after { content: '+'; margin-left: auto; font-family: var(--sans); color: var(--royal); font-size: 20px; } .wneed[open] summary::after { content: '–'; }
.wneed[open] summary { margin-bottom: 10px; }
.retro { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.jcol { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.jcol.jday { background: var(--navy); color: #fff; } .jcol.jday .muted { color: var(--sky); }
.jh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; } .jh b { font-family: var(--serif); font-size: 18px; }
.jtask { display: flex; flex-direction: column; gap: 2px; text-align: left; width: 100%; border: 1px solid var(--line); background: var(--off); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 14px; color: var(--ink); cursor: default; }
button.jtask { cursor: pointer; } button.jtask:hover { border-color: var(--royal); }
.jtask.termine span:first-child { text-decoration: line-through; color: var(--muted); } .jtask.bloque { border-color: var(--bad); }
.thread { display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: min(560px, 88%); padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: #fff; border: 1px solid var(--line); overflow-wrap: anywhere; }
.bubble.me { align-self: flex-end; background: var(--sky-pale); border-color: #C6DBEF; border-radius: 14px 14px 4px 14px; }
.bubble.annonce { border-left: 4px solid var(--royal); } .bubble.complement { border-left: 4px solid var(--rose-old); background: var(--rose-light); }
.bubble .tiny { color: var(--muted); margin-bottom: 4px; }
.moodgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-bottom: 12px; }
.moodgrid figure { margin: 0; } .moodgrid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.vpick { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.wappt h3 { font-size: 17px; }
