/* Retail Revive — Espace Formation
   Couleurs et typos reprises des styles de la maquette Figma RSS-FORMATIOn */
:root {
  --light-beige: #F4F2E9;
  --beige-grey: #E5E1CD;
  --blond: #B6A682;
  --gold: #B69F61;
  --dark: #241A0D;
  --forms: #C8C2AD;
  --brown: #5F2F17;
  --error: #D40000;
  --valid: #7CB352;
  --white-75: rgba(255,255,255,.75);
  --white-50: rgba(255,255,255,.5);
  --white-15: rgba(255,255,255,.15);
  --lb-80: rgba(244,242,233,.8);
  --lb-50: rgba(244,242,233,.5);
  --lb-25: rgba(244,242,233,.25);
  --shadow: 0 6px 24px rgba(36,26,13,.12);
  --radius: 16px;
  --f-title: "Gilda Display", "Didot", "Bodoni MT", serif;
  --f-text: "Poppins", system-ui, sans-serif;
  --f-label: "Archivo", "Poppins", sans-serif;
  --header-h: 58px;
  --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--f-text);
  font-size: 12px;
  line-height: 1.45;
  color: var(--dark);
  background: var(--light-beige);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
svg.i { width: 18px; height: 18px; flex: none; }

/* ---------- Structure ---------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.page {
  flex: 1;
  padding: calc(var(--header-h) + 30px) 30px calc(var(--nav-h) + 30px);
  background: var(--light-beige) url("img/fond-vagues.jpg") center / cover fixed no-repeat;
  animation: fade .35s ease;
}
.page.no-nav { padding-bottom: 30px; }
.container { max-width: 1380px; margin: 0 auto; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; height: var(--header-h); z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 30px;
  background: var(--lb-80); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--beige-grey);
}
.header .back { display: flex; align-items: center; gap: 6px; font-family: var(--f-label); font-size: 10px; font-weight: 600; letter-spacing: .02em; }
.header .back svg { width: 14px; height: 14px; }
.header .icons { justify-self: end; display: flex; gap: 14px; align-items: center; }
.header .icons a { position: relative; display: grid; place-items: center; width: 26px; height: 26px; }
.header .icons .count { position: absolute; top: -4px; right: -6px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; background: var(--gold); color: #fff; font-size: 9px; font-weight: 600; display: grid; place-items: center; }
.logo { display: flex; align-items: center; gap: 6px; color: var(--dark); }
.logo .mono { font-family: var(--f-title); font-size: 30px; line-height: 1; letter-spacing: -.32em; padding-right: .32em; }
.logo .mono span:first-child { display: inline-block; transform: scaleX(-1); }
.logo .word { font-family: var(--f-title); font-size: 12.5px; line-height: .95; letter-spacing: .04em; }

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: fixed; inset: auto 0 0; height: var(--nav-h); z-index: 50;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--lb-80); backdrop-filter: blur(14px);
  border-top: 1px solid var(--beige-grey);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-family: var(--f-label); font-size: 10px; font-weight: 600; letter-spacing: .03em;
  color: #A9A291; transition: color .2s;
}
.bottom-nav a svg { width: 20px; height: 20px; color: #A9A291; }
.bottom-nav a .dot-wrap { position: relative; }
.bottom-nav a .dot { position: absolute; top: -2px; right: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--error); }
.bottom-nav a.active, .bottom-nav a:hover { color: var(--dark); }
.bottom-nav a.active svg { color: var(--gold); }

/* ---------- Chatbot ---------- */
.chat-fab {
  position: fixed; right: 22px; bottom: calc(var(--nav-h) + 16px); z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brown); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(95,47,23,.35); transition: transform .2s;
}
.chat-fab:hover { transform: scale(1.06); }
.page.no-nav ~ .chat-fab { bottom: 22px; }
.chat-panel {
  position: fixed; right: 22px; bottom: calc(var(--nav-h) + 72px); z-index: 61;
  width: min(360px, calc(100vw - 32px)); height: min(480px, calc(100vh - 200px));
  display: none; flex-direction: column; overflow: hidden;
  background: var(--light-beige); border-radius: var(--radius); box-shadow: 0 16px 48px rgba(36,26,13,.25);
}
.chat-panel.open { display: flex; animation: fade .25s ease; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--dark); color: var(--light-beige); }
.chat-head .logo { color: var(--light-beige); }
.chat-head .logo .mono { font-size: 22px; }
.chat-head b { font-family: var(--f-title); font-weight: 400; font-size: 15px; flex: 1; }
.chat-head .status { font-size: 10px; color: var(--valid); display: flex; align-items: center; gap: 4px; }
.chat-head .status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--valid); }
.chat-head button { color: var(--light-beige); }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 12px; font-size: 12px; line-height: 1.45; }
.msg.bot { background: var(--brown); color: var(--light-beige); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--beige-grey); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-sugg { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 8px; }
.chat-sugg button { padding: 5px 10px; border-radius: 20px; border: 1px solid var(--blond); font-size: 10.5px; background: #fff; }
.chat-foot { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--beige-grey); background: #fff; }
.chat-foot input { flex: 1; border: 0; outline: 0; background: transparent; padding: 6px; }
.chat-foot button { color: var(--gold); }

/* ---------- Typo ---------- */
.h1 { font-family: var(--f-title); font-weight: 400; font-size: 33px; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.h2 { font-family: var(--f-title); font-weight: 400; font-size: 26px; line-height: 1.05; }
.h3 { font-family: var(--f-title); font-weight: 400; font-size: 20px; line-height: 1.1; }
.label { font-family: var(--f-label); font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.gold { color: var(--gold); }
.muted { color: #9A927E; }
.center { text-align: center; }
.italic { font-style: italic; }

/* ---------- Boutons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 34px; padding: 0 22px; border-radius: 20px;
  font-family: var(--f-label); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--gold); color: #fff; transition: filter .2s, transform .15s;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: scale(.98); }
.btn.dark { background: var(--dark); color: var(--gold); }
.btn.light { background: var(--beige-grey); color: var(--dark); }
.btn.ghost { background: transparent; border: 1px solid var(--blond); color: var(--dark); }
.btn.white { background: var(--white-75); color: var(--dark); }
.btn.block { width: 100%; }
.btn.sm { height: 26px; padding: 0 16px; font-size: 10px; }
.btn .end { position: absolute; right: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--white-15); }
.btn .end svg { width: 14px; height: 14px; }
.btn.light .end, .btn.white .end, .btn.ghost .end { background: transparent; color: var(--gold); }
.btn.dark .end { background: var(--gold); color: var(--dark); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-back { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 12px 0 6px; border-radius: 12px; background: var(--beige-grey); color: var(--dark); font-family: var(--f-label); font-size: 9.5px; font-weight: 700; }
.btn-back svg { width: 13px; height: 13px; }
.round-back { position: absolute; top: 16px; left: 16px; z-index: 2; width: 24px; height: 24px; border-radius: 50%; background: var(--white-75); display: grid; place-items: center; }
.round-back svg { width: 14px; height: 14px; }

/* ---------- Cartes ---------- */
.card { background: var(--lb-80); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--white-50); backdrop-filter: blur(10px); }
.card.white { background: #fff; }
.card.dark { background: var(--dark); color: var(--light-beige); border: 0; }
.card-head { background: var(--gold); color: #fff; text-align: center; padding: 12px; border-radius: var(--radius) var(--radius) 0 0; font-family: var(--f-title); font-size: 20px; }
.card-head.dark { background: var(--dark); color: var(--gold); }
.card-body { padding: 22px 24px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 17px; padding: 0 9px; border-radius: 10px; background: var(--beige-grey); font-family: var(--f-label); font-size: 9.5px; font-weight: 600; text-transform: uppercase; }
.chip.light { background: var(--light-beige); color: var(--dark); }
.chip svg { width: 11px; height: 11px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 10px; background: var(--dark); color: var(--light-beige); font-family: var(--f-label); font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.badge.gold { background: var(--gold); color: #fff; }

/* Barre de progression */
.progress { height: 6px; border-radius: 4px; background: var(--beige-grey); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--valid); border-radius: 4px; transition: width .6s ease; }
.progress.seg { display: grid; gap: 3px; background: none; }
.progress.seg > i { background: var(--beige-grey); }
.progress.seg > i.on { background: var(--valid); }

/* Photos avec titre */
.photo-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--dark) center / cover no-repeat; color: #fff; min-height: 420px; display: flex; flex-direction: column; justify-content: center; }
.photo-card::before { content: ""; position: absolute; inset: 0; background: rgba(36,26,13,.25); }
.photo-card > * { position: relative; }
.photo-card .h1 { text-align: center; padding: 0 20px; text-shadow: 0 2px 16px rgba(0,0,0,.25); }
.photo-card .actions { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 8px; }

/* ---------- Formulaires ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.field { display: grid; gap: 4px; }
.field > span { font-family: var(--f-label); font-size: 9px; font-weight: 600; text-transform: uppercase; color: var(--forms); letter-spacing: .03em; }
.input, .field input, .field textarea, .field select {
  width: 100%; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--forms); background: #fff; outline: 0;
  font-size: 11.5px; text-align: center; transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: 120px; padding: 10px 12px; text-align: left; resize: vertical; }
.field input:focus, .field textarea:focus, .input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(182,159,97,.18); }
.field input:disabled, .input:disabled { background: var(--beige-grey); color: #A9A291; border-color: transparent; }
.field input[readonly] { background: #fff; cursor: default; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-family: var(--f-label); font-size: 10px; font-weight: 600; text-transform: uppercase; }
.check input { appearance: none; width: 13px; height: 13px; border: 1px solid var(--forms); border-radius: 3px; background: #fff; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { content: ""; width: 6px; height: 3px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px,-1px); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 24px); transform: translate(-50%, 20px); opacity: 0; z-index: 90; background: var(--dark); color: var(--light-beige); padding: 11px 20px; border-radius: 24px; font-size: 12px; box-shadow: var(--shadow); transition: .3s; pointer-events: none; display: flex; align-items: center; gap: 8px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { color: var(--valid); }

/* ---------- Écran d'accueil (choix du profil) ---------- */
.portal { position: relative; min-height: calc(100vh - var(--header-h) - 60px); border-radius: 22px; overflow: hidden; display: grid; place-items: center; padding: 40px 20px;
  background: radial-gradient(ellipse at 70% 20%, #f2c98a 0%, transparent 45%), radial-gradient(ellipse at 15% 80%, #e8d9c4 0%, transparent 50%), linear-gradient(120deg, #e6d4bf 0%, #c98a4c 45%, #a9612e 70%, #d8b996 100%); }
.portal::before { content: ""; position: absolute; inset: 0; background: url("img/fond-or.jpg") center / cover; opacity: .55; mix-blend-mode: soft-light; }
.portal-card { position: relative; width: min(560px, 100%); padding: 40px 50px 50px; border-radius: 20px; background: rgba(244,242,233,.78); backdrop-filter: blur(18px); box-shadow: 0 20px 60px rgba(95,47,23,.25); text-align: center; }
.portal-card .h1 { font-size: 40px; color: var(--gold); }
.portal-card p { margin: 14px 0 26px; font-family: var(--f-label); font-size: 11px; font-weight: 500; text-transform: uppercase; line-height: 1.5; }
.profiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profile { aspect-ratio: 1.3; border-radius: 14px; background: var(--beige-grey); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--gold); font-family: var(--f-title); font-size: 22px; transition: transform .2s, box-shadow .2s, background .2s; }
.profile svg { width: 30px; height: 30px; color: var(--brown); }
.profile:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--shadow); }
.portal-card .alt { display: inline-block; margin-top: 22px; font-size: 11px; color: var(--brown); border-bottom: 1px solid var(--blond); }

/* ---------- Accueil espace ---------- */
.welcome { position: fixed; inset: 0; background: center / cover no-repeat; display: grid; place-items: center; text-align: center; color: #fff; padding: 80px 20px; }
.welcome::before { content: ""; position: absolute; inset: 0; background: rgba(36,26,13,.08); }
.welcome.light { color: var(--dark); }
.welcome.light::before { background: rgba(244,242,233,.35); }
.welcome > div { position: relative; }
.welcome .label { font-size: 11px; opacity: 0; animation: rise .8s .2s forwards; }
.welcome .h1 { font-size: clamp(34px, 5vw, 64px); margin: 12px 0 32px; opacity: 0; animation: rise .9s .5s forwards; }
.welcome .pill { display: inline-block; padding: 12px 40px; border-radius: 30px; background: rgba(244,242,233,.55); backdrop-filter: blur(10px); color: var(--dark); font-family: var(--f-title); font-size: clamp(15px, 1.6vw, 20px); opacity: 0; animation: rise .9s .9s forwards; }
.welcome .pill b { font-weight: 700; }
.welcome .shortcuts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; opacity: 0; animation: rise .9s 1.2s forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Mon compte : choix ---------- */
.choice-title { text-align: center; margin-bottom: 10px; }
.choice-q { display: block; width: fit-content; margin: 0 auto 26px; padding: 9px 60px; border-radius: 24px; background: var(--lb-80); box-shadow: var(--shadow); font-family: var(--f-title); font-size: 17px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; }
.choice { position: relative; aspect-ratio: .82; border-radius: var(--radius); overflow: hidden; background: center / cover; display: grid; place-items: center; color: #fff; font-family: var(--f-title); font-size: 24px; text-align: center; box-shadow: var(--shadow); }
.choice::before { content: ""; position: absolute; inset: 0; background: rgba(36,26,13,.2); transition: background .3s; }
.choice span { position: relative; line-height: 1.05; padding: 0 20px; }
.choice:hover::before { background: rgba(36,26,13,.45); }

/* ---------- Mise en page 2 colonnes ---------- */
.split { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 30px; align-items: stretch; }
.split.narrow { grid-template-columns: minmax(220px, 1fr) 2.7fr; }
.split.wide { grid-template-columns: 1fr 1fr; }
.stack { display: grid; gap: 16px; align-content: start; }
.collapse-card { display: flex; align-items: center; justify-content: center; gap: 10px; position: relative; padding: 20px 60px; cursor: pointer; text-align: center; }
.collapse-card .h3 { color: #8f7a42; font-size: 22px; }
.collapse-card small { display: block; font-size: 9.5px; color: #8f7a42; font-style: italic; margin-top: 2px; }
.collapse-card .ico { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; }
.collapse-card .ico svg { width: 14px; height: 14px; }
.collapsible { display: none; padding: 0 24px 22px; }
.collapsible.open { display: block; animation: fade .3s; }

/* ---------- Abonnement / plans ---------- */
.plan { position: relative; border-radius: 14px; padding: 22px 26px 26px; text-align: center; background: url("img/soie-beige.jpg") center / cover; box-shadow: var(--shadow); overflow: hidden; }
.plan.gold { color: var(--dark); background: linear-gradient(135deg, rgba(212,193,140,.9), rgba(182,159,97,.85)), url("img/soie-beige.jpg") center / cover; }
.plan .name { font-family: var(--f-title); font-size: 30px; text-transform: uppercase; margin: 10px 0 6px; }
.plan .price { font-family: var(--f-title); font-size: 17px; }
.plan .price small { display: block; font-family: var(--f-text); font-size: 10px; font-style: italic; color: #6c624d; }
.plan .tagline { font-family: var(--f-title); font-weight: 700; font-size: 12.5px; margin: 14px 0 6px; }
.plan ul { list-style: none; display: grid; gap: 2px; font-size: 10.5px; margin-bottom: 16px; }
.plan ul li::before { content: "• "; }
.plan .opts { display: flex; justify-content: center; gap: 22px; padding: 7px 14px; border-radius: 8px; background: var(--lb-80); margin: 0 auto 16px; width: fit-content; }
.toggle { display: inline-flex; align-items: center; gap: 10px; padding: 4px 4px 4px 16px; border-radius: 20px; background: var(--lb-80); font-family: var(--f-label); font-size: 9.5px; font-weight: 700; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; cursor: pointer; }
.toggle i { width: 34px; height: 18px; border-radius: 10px; background: var(--forms); position: relative; transition: background .2s; }
.toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle.on i { background: var(--gold); }
.toggle.on i::after { transform: translateX(16px); }
.plans-title { text-align: center; font-family: var(--f-title); font-size: 26px; line-height: 1.05; margin-bottom: 22px; }
.plans-title b { font-family: var(--f-title); font-weight: 700; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
.plans-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; max-width: 1000px; margin: 22px auto 0; }

/* ---------- Tableau de bord ---------- */
.dash { display: grid; grid-template-columns: minmax(300px, 1fr) 1.45fr; gap: 26px; }
.current { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.current .cover { border-radius: 10px; aspect-ratio: 1.85; background: center 25% / cover; }
.current .h2 { text-align: center; color: var(--light-beige); font-size: 24px; }
.current .chips { justify-content: center; }
.current .chips .chip { background: transparent; color: var(--light-beige); padding: 0 4px; }
.current .chips .chip:first-child { background: var(--light-beige); color: var(--dark); padding: 0 9px; }
.current .goal { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; font-size: 10.5px; }
.current .goal svg { width: 46px; height: 46px; color: var(--light-beige); }
.side-panel { padding: 18px 22px 22px; display: grid; gap: 14px; align-content: start; }
.side-panel .h2 { text-align: center; color: var(--gold); font-size: 22px; }
.course { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow); display: block; transition: transform .2s; }
.course:hover { transform: translateY(-2px); }
.course .img { aspect-ratio: 4.4; background: center / cover; }
.course .t { text-align: center; font-family: var(--f-title); font-size: 16px; padding: 10px 10px 8px; }
.course .btn { margin: 0 10px 10px; width: calc(100% - 20px); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile { position: relative; aspect-ratio: 1.3; border-radius: 12px; overflow: hidden; background: center / cover; display: flex; align-items: flex-end; padding: 12px; box-shadow: var(--shadow); }
.tile .btn { width: 100%; }
.banner { position: relative; border-radius: var(--radius); overflow: hidden; background: center / cover; padding: 24px; display: grid; place-items: center; gap: 12px; text-align: center; color: #fff; min-height: 150px; }
.banner::before { content: ""; position: absolute; inset: 0; background: rgba(95,47,23,.35); }
.banner > * { position: relative; }

/* ---------- Catalogue ---------- */
.cat-hero { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 180px; background: url("img/cafe-notes.jpg") center 60% / cover; display: grid; place-items: center; color: #fff; margin-bottom: 20px; }
.cat-hero::before { content: ""; position: absolute; inset: 0; background: rgba(95,47,23,.35); }
.cat-hero .h1 { position: relative; text-align: center; }
.cat-hero .mini-dash { position: absolute; right: 16px; top: 16px; width: 230px; padding: 14px; border-radius: 12px; background: var(--dark); text-align: center; display: grid; gap: 8px; }
.cat-hero .mini-dash p { font-size: 9.5px; color: var(--light-beige); }
.catalog { display: grid; grid-template-columns: 1fr 280px; gap: 26px; align-items: start; }
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters .lbl { display: flex; align-items: center; gap: 6px; margin-right: 6px; }
.filters button { height: 20px; padding: 0 12px; border-radius: 10px; background: var(--beige-grey); font-family: var(--f-label); font-size: 9.5px; font-weight: 600; transition: background .2s; }
.filters button.on { background: var(--dark); color: var(--light-beige); }
.filters .sep { width: 1px; height: 16px; background: var(--forms); margin: 0 6px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.fcard { position: relative; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.fcard:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(36,26,13,.16); }
.fcard .img { position: relative; aspect-ratio: 1.6; background: center / cover; }
.fcard .img.bw { filter: grayscale(1); }
.fcard .acts { position: absolute; top: 8px; right: 8px; display: grid; gap: 6px; }
.fcard .acts button { width: 24px; height: 24px; border-radius: 50%; background: var(--white-75); display: grid; place-items: center; color: var(--dark); transition: background .2s, color .2s; }
.fcard .acts button svg { width: 13px; height: 13px; }
.fcard .acts button.on { background: var(--brown); color: #fff; }
.fcard .state { position: absolute; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: 1fr 22px; gap: 8px; align-items: center; padding: 4px 4px 4px 10px; border-radius: 14px; background: rgba(36,26,13,.75); }
.fcard .state .progress { background: rgba(255,255,255,.35); height: 5px; }
.fcard .state span { width: 22px; height: 22px; border-radius: 50%; background: var(--light-beige); color: var(--dark); display: grid; place-items: center; }
.fcard .state span svg { width: 13px; height: 13px; }
.fcard .state.done span { background: var(--gold); color: #fff; }
.fcard .body { padding: 12px 12px 14px; text-align: center; display: grid; gap: 10px; flex: 1; align-content: space-between; }
.fcard .t { font-family: var(--f-title); font-size: 16px; line-height: 1.1; }
.fcard .chips { justify-content: center; }
.fcard .pick { position: absolute; top: 8px; left: 8px; }
.fcard.selected { outline: 3px solid var(--gold); }
.favs { padding: 0 0 16px; overflow: hidden; position: sticky; top: calc(var(--header-h) + 20px); }
.favs .list { padding: 14px; display: grid; gap: 10px; min-height: 230px; align-content: start; }
.fav { display: grid; grid-template-columns: 42px 1fr 22px; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; background: #fff; box-shadow: var(--shadow); font-family: var(--f-label); font-size: 9.5px; font-weight: 700; text-transform: uppercase; }
.fav .img { width: 42px; height: 42px; border-radius: 6px; background: center / cover; }
.fav button { width: 22px; height: 22px; border-radius: 50%; background: var(--beige-grey); display: grid; place-items: center; }
.fav button svg { width: 11px; height: 11px; }
.favs .empty { text-align: center; color: #A9A291; font-style: italic; padding: 40px 10px; }
.favs .btn { margin: 0 14px; width: calc(100% - 28px); }

/* ---------- Page formation ---------- */
.f-head { position: relative; border-radius: var(--radius); background: var(--dark); color: var(--light-beige); padding: 22px 28px 20px; margin-bottom: 18px; }
.f-head .top { display: grid; grid-template-columns: 120px 1fr 120px; align-items: center; gap: 12px; }
.f-head .top > :last-child { justify-self: end; }
.f-head .top svg.target { width: 34px; height: 34px; color: var(--light-beige); }
.f-head .h1 { text-align: center; font-size: 28px; }
.f-head .desc { text-align: center; font-size: 10.5px; max-width: 560px; margin: 10px auto 14px; opacity: .9; }
.f-head .row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin-bottom: 14px; }
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.module { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.module .img { position: relative; aspect-ratio: 1.15; background: center / cover; }
.module .img.bw { filter: grayscale(1); }
.module .img .badge { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); }
.module .body { padding: 14px 12px 12px; text-align: center; display: grid; gap: 6px; flex: 1; align-content: space-between; }
.module .t { font-family: var(--f-title); font-size: 16px; line-height: 1.1; }
.module .s { font-size: 9.5px; font-style: italic; color: var(--blond); }
.modules.two .module .img { aspect-ratio: 2.3; }

/* Présentation formation (non achetée) */
.p-head { display: grid; grid-template-columns: 280px 1fr 260px; gap: 26px; align-items: center; padding: 16px; border-radius: var(--radius); background: var(--dark); color: var(--light-beige); margin-bottom: 18px; }
.p-head .img { position: relative; border-radius: 10px; aspect-ratio: 1.7; background: center / cover; }
.p-head .img .btn-back { position: absolute; top: 10px; left: 10px; }
.p-head .mid { text-align: center; display: grid; gap: 10px; justify-items: center; }
.p-head .mid p { font-size: 10.5px; max-width: 420px; opacity: .9; }
.p-head .right { display: grid; gap: 10px; text-align: center; font-size: 10.5px; color: var(--gold); justify-items: center; }
.p-head .right b { color: var(--light-beige); }
.p-head .right svg.lock { width: 28px; height: 28px; color: var(--light-beige); }
.p-head .right .btn { width: 100%; }
.p-body { padding: 26px 30px 30px; text-align: center; }
.p-body .quote { font-family: var(--f-title); font-size: 24px; line-height: 1.1; margin: 8px 0 12px; }
.p-body > p { max-width: 720px; margin: 0 auto 26px; font-size: 11px; font-style: italic; }
.p-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; }
.p-cols .h3 { text-align: center; margin-bottom: 12px; }
.p-cols .box { background: var(--beige-grey); border-radius: 12px; padding: 18px 22px; display: grid; gap: 10px; font-size: 11px; }
.p-cols .box li { list-style: none; }
.p-cols .box li::before { content: "•  "; }
.p-cols .box .lbl { font-family: var(--f-label); font-weight: 700; font-size: 10.5px; text-transform: uppercase; }

/* Module (cours) */
.m-head { border-radius: var(--radius); background: var(--dark); color: var(--light-beige); padding: 18px 26px; margin-bottom: 18px; display: grid; gap: 14px; }
.m-head .top { display: grid; grid-template-columns: 120px 1fr 120px; align-items: center; }
.m-head .h1 { text-align: center; font-size: 26px; }
.lesson-wrap { display: grid; grid-template-columns: 270px 1fr; gap: 18px; align-items: start; }
.obj { overflow: hidden; padding-bottom: 14px; }
.obj .img { aspect-ratio: 1.3; background: center 20% / cover; }
.obj h4 { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 14px; font-family: var(--f-label); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.obj h4 svg { width: 24px; height: 24px; color: var(--gold); }
.obj ul { padding: 0 18px 14px 30px; display: grid; gap: 8px; font-size: 10.5px; }
.obj .progress { margin: 0 14px; }
.lesson { overflow: hidden; }
.lesson .card-head { font-family: var(--f-label); font-size: 11px; font-weight: 700; padding: 9px; letter-spacing: .04em; }
.lesson .inner { padding: 20px 28px 22px; position: relative; text-align: center; }
.lesson .read { position: absolute; right: 22px; top: 22px; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; background: var(--dark); color: var(--gold); font-size: 11px; font-family: var(--f-title); }
.lesson .read.off { background: var(--beige-grey); color: #A9A291; }
.lesson .read svg { width: 13px; height: 13px; }
.lesson .h2 { margin-bottom: 18px; }
.lesson .intro { font-size: 11px; max-width: 640px; margin: 0 auto 14px; }
.lesson .sub { font-family: var(--f-label); font-size: 10.5px; font-weight: 700; text-transform: uppercase; margin-bottom: 12px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.step { border-radius: 10px; padding: 14px 12px; font-size: 10px; text-align: center; }
.step b { display: block; font-family: var(--f-title); font-weight: 400; font-size: 26px; margin-bottom: 6px; }
.step:nth-child(1) { background: var(--light-beige); color: var(--gold); }
.step:nth-child(2) { background: var(--beige-grey); }
.step:nth-child(3) { background: var(--gold); color: #fff; }
.step:nth-child(4) { background: var(--dark); color: var(--gold); }
.lesson .foot { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.tip { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 10px; background: var(--light-beige); font-size: 10.5px; font-weight: 600; text-align: center; }
.tip svg { width: 30px; height: 30px; color: var(--gold); }
.pager { display: grid; gap: 10px; justify-items: center; }
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--gold); }
.dots i.on { background: var(--gold); }

/* ---------- Certifications / Progression ---------- */
.framed { position: relative; padding: 34px 40px; background: var(--lb-80); border: 1px solid var(--blond); border-radius: 4px; box-shadow: var(--shadow); text-align: center; }
.framed .corner { position: absolute; width: 46px; height: 46px; background: var(--gold); color: var(--light-beige); display: grid; place-items: center; font-family: var(--f-title); font-size: 22px; letter-spacing: -.32em; padding-right: .32em; }
.framed .corner.tl { top: -1px; left: -1px; border-radius: 0 0 46px 0; }
.framed .corner.tr { top: -1px; right: -1px; border-radius: 0 0 0 46px; }
.framed .corner.bl { bottom: -1px; left: -1px; border-radius: 0 46px 0 0; }
.framed .corner.br { bottom: -1px; right: -1px; border-radius: 46px 0 0 0; }
.framed .h1 { color: var(--gold); font-size: 30px; }
.framed .sub { font-family: var(--f-title); font-size: 20px; margin: 6px 0 22px; }
.carousel { max-width: 560px; margin: 0 auto; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.carousel .bar { display: grid; grid-template-columns: 30px 1fr 30px; align-items: center; height: 34px; background: var(--dark); color: var(--gold); font-family: var(--f-label); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.carousel .bar button { color: var(--light-beige); display: grid; place-items: center; height: 100%; }
.carousel .bar span { display: flex; align-items: center; justify-content: center; gap: 8px; }
.carousel .bar span svg { width: 16px; height: 16px; }
.carousel .inner { padding: 12px; display: grid; gap: 10px; justify-items: center; }
.carousel .img { width: 100%; aspect-ratio: 4.8; border-radius: 8px; background: center / cover; }
.carousel .inner p { font-size: 10px; font-weight: 600; }
.carousel .save { display: grid; justify-items: center; gap: 4px; color: var(--gold); font-size: 10px; font-weight: 600; }
.carousel .save svg { width: 26px; height: 26px; }
.prog-list { max-height: 300px; overflow-y: auto; padding: 12px 14px; display: grid; gap: 9px; }
.prog-row { display: grid; grid-template-columns: 1.1fr 1fr 22px; gap: 14px; align-items: center; }
.prog-row .who { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px 0 4px; border: 1px solid var(--forms); border-radius: 8px; background: #fff; font-family: var(--f-label); font-size: 10px; font-weight: 600; text-transform: uppercase; }
.prog-row .who img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.prog-row .st { color: var(--gold); display: grid; place-items: center; }
.prog-row .st svg { width: 20px; height: 20px; }

/* ---------- Accès ---------- */
.access-list { max-height: 240px; overflow-y: auto; display: grid; gap: 8px; padding-right: 6px; margin: 12px 0 16px; }
.access-row { display: grid; grid-template-columns: 1fr 1fr 22px; gap: 10px; align-items: center; }
.icon-input { display: flex; align-items: center; height: 28px; border: 1px solid var(--forms); border-radius: 7px; background: #fff; overflow: hidden; }
.icon-input svg { width: 14px; height: 14px; margin: 0 8px; color: var(--blond); flex: none; }
.icon-input input { flex: 1; min-width: 0; border: 0; outline: 0; height: 100%; text-align: center; font-size: 10.5px; font-weight: 600; background: transparent; }
.access-row .del, .access-add .add { width: 22px; height: 22px; border-radius: 50%; background: var(--beige-grey); display: grid; place-items: center; color: #A9A291; }
.access-row .del svg, .access-add .add svg { width: 12px; height: 12px; }
.access-add .add { background: var(--gold); color: #fff; }

/* ---------- Messagerie ---------- */
.notif { display: grid; gap: 8px; }
.notif div { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; background: #fff; font-size: 11px; text-align: left; }
.notif div i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.notif div.read i { background: var(--beige-grey); }
.notif small { color: #A9A291; font-size: 9.5px; }
.contact-bar { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; background: var(--white-15); backdrop-filter: blur(8px); font-size: 10px; }
.contact-bar span { display: flex; align-items: center; gap: 8px; }
.contact-bar svg { width: 15px; height: 15px; }

/* ---------- Paiement ---------- */
.cart { overflow: hidden; display: flex; flex-direction: column; }
.cart .card-head { font-family: var(--f-title); }
.cart .inner { padding: 16px; display: grid; gap: 14px; flex: 1; align-content: start; }
.cart .total { margin: 0 16px 16px; padding: 12px 14px; border-radius: 10px; background: var(--beige-grey); display: flex; justify-content: space-between; align-items: center; font-family: var(--f-label); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.cart .total b { display: block; text-align: right; font-size: 13px; }
.cart .total small { font-weight: 500; text-transform: none; }
.cart .sel { display: grid; gap: 6px; }
.pay { padding: 22px 26px; }
.pay .top { display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 16px; }
.pay .top .ico { position: absolute; left: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--beige-grey); color: var(--gold); display: grid; place-items: center; }
.pay .top .ico svg { width: 14px; height: 14px; }
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.method { border-radius: 8px; padding: 8px; background: var(--beige-grey); display: grid; gap: 4px; justify-items: center; font-family: var(--f-label); font-size: 10px; font-weight: 700; transition: background .2s, color .2s; }
.method.on { background: var(--gold); color: #fff; }
.method.full { grid-column: 1 / -1; }
.method .logos { display: flex; gap: 4px; align-items: center; height: 18px; }
.method .logos img { height: 18px; width: auto; border-radius: 3px; background: #fff; }
.method svg { width: 16px; height: 16px; color: var(--gold); }
.method.on svg { color: #fff; }
.pay form { display: grid; gap: 12px; margin-top: 14px; }
.pay .field input { text-align: left; }

/* ---------- Modale ---------- */
.modal { position: fixed; inset: 0; z-index: 95; background: rgba(36,26,13,.45); display: none; place-items: center; padding: 20px; }
.modal.open { display: grid; animation: fade .25s; }
.modal .box { width: min(420px, 100%); padding: 30px; text-align: center; background: var(--light-beige); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.3); display: grid; gap: 14px; justify-items: center; }
.modal .box .big { width: 54px; height: 54px; border-radius: 50%; background: var(--valid); color: #fff; display: grid; place-items: center; }
.modal .box .big svg { width: 28px; height: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .dash, .catalog, .split, .split.narrow, .split.wide, .lesson-wrap, .p-head { grid-template-columns: 1fr; }
  .favs { position: static; }
  .photo-card { min-height: 260px; }
  .p-head .img { aspect-ratio: 2.4; }
}
@media (max-width: 720px) {
  :root { --header-h: 52px; --nav-h: 60px; }
  .header { padding: 0 14px; }
  .header .back b { display: none; }
  .page { padding: calc(var(--header-h) + 16px) 16px calc(var(--nav-h) + 20px); }
  .bottom-nav a { font-size: 8.5px; }
  .h1 { font-size: 26px; }
  .portal-card { padding: 30px 22px 34px; }
  .portal-card .h1 { font-size: 30px; }
  .form-grid, .p-cols, .methods, .steps, .tiles { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .f-head .top, .m-head .top { grid-template-columns: 1fr; justify-items: center; gap: 10px; }
  .f-head .top > :last-child { justify-self: center; }
  .f-head .row { grid-auto-flow: row; }
  .cat-hero { padding: 24px 16px; gap: 16px; }
  .cat-hero .mini-dash { position: static; width: 100%; }
  .lesson .foot { grid-template-columns: 1fr; }
  .lesson .read { position: static; margin-bottom: 12px; }
  .choice-q { padding: 9px 20px; font-size: 15px; }
  .framed { padding: 34px 16px; }
  .collapse-card { padding: 18px 50px; }
  .access-row { grid-template-columns: 1fr 22px; }
  .access-row .icon-input:nth-child(2) { grid-column: 1; }
  .access-row .del { grid-row: 1 / span 2; grid-column: 2; }
}

.side-panel.two-col { grid-template-columns: 1.3fr 1fr; align-items: start; }
@media (max-width: 720px) { .side-panel.two-col { grid-template-columns: 1fr; } }
