/* ============================================================
   OneClick — Formations, ateliers, cartes (pages) & modals
   ============================================================ */

/* ---------- Page header (sous-pages) ---------- */
.page-hero { background: var(--navy-800); color: #fff; position: relative; overflow: hidden; padding: 56px 0; }
.page-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(700px 360px at 90% -30%, rgba(243,118,35,.2), transparent 60%); }
.page-hero-in { position: relative; z-index: 2; }
.page-hero-in.with-media { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.page-hero-media .ph { box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.page-hero h1 { color: #fff; font-size: clamp(30px,4.4vw,46px); font-weight: 900; }
.page-hero p { color: rgba(255,255,255,.82); font-size: 17px; margin-top: 14px; max-width: 620px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: rgba(255,255,255,.6); font-family: var(--font-head); font-weight: 600; margin-bottom: 16px; }
.breadcrumb button { background: none; border: 0; color: rgba(255,255,255,.6); font: inherit; }
.breadcrumb button:hover { color: var(--orange); }

/* ---------- Tabs / filters ---------- */
.tabs-rail { display: flex; gap: 10px; overflow-x: auto; padding: 6px 0 4px; }
.tab {
  display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0;
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--ink-2);
  background: #fff; border: 1.5px solid var(--line); padding: 11px 18px; border-radius: 999px;
  transition: all .15s;
}
.tab:hover { border-color: var(--navy-500); color: var(--navy-800); }
.tab.active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.tab.active svg { color: var(--orange); }
.tab svg { color: var(--ink-3); }

/* ---------- Niveaux comparison ---------- */
.niv-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.niv-card {
  display: flex; flex-direction: column; padding: 18px 16px; position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.niv-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.niv-card.feat { border-color: var(--orange); box-shadow: 0 12px 30px rgba(243,118,35,.14); }
.niv-flag { position: absolute; top: 0; right: 0; background: var(--orange); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 11px; letter-spacing: .04em; padding: 5px 12px; border-bottom-left-radius: 12px; }
.niv-step { font-family: var(--font-head); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-600); }
.niv-name { font-size: 20px; margin-top: 6px; }
.niv-obj { color: var(--ink-2); font-size: 13px; margin-top: 7px; }
.niv-duree { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 600; font-size: 12.5px; color: var(--navy-700); background: var(--navy-100); padding: 4px 10px; border-radius: 999px; margin-top: 4px; align-self: flex-start; }
.niv-contenu { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.niv-li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink); }
.niv-li svg { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.niv-bonus { margin-top: 10px; padding: 8px 12px; background: var(--orange-050); border: 1px solid var(--orange-100); border-radius: 10px; font-size: 12.5px; color: var(--orange-700); }
.niv-bonus b { font-family: var(--font-head); display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.niv-card .btn { margin-top: 12px; }

/* ---------- Ateliers ---------- */
.atelier-block { margin-bottom: 36px; }
.atelier-head { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.atelier-ic { width: 46px; height: 46px; border-radius: 13px; background: var(--navy-100); color: var(--navy-700); display: grid; place-items: center; }
.atelier-head h3 { font-size: 20px; }
.atelier-items { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.atelier-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .15s, box-shadow .15s, transform .15s; cursor: pointer;
}
.atelier-item:hover { border-color: var(--orange); box-shadow: var(--sh-2); transform: translateY(-2px); }
.atelier-item .ai-nom { font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--navy-800); }
.atelier-item .ai-sem { font-size: 12px; color: var(--ink-3); }

/* ---------- Modal ---------- */
.modal-ov { position: fixed; inset: 0; z-index: 80; background: rgba(6,32,47,.55); backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; padding: 0; opacity: 0; animation: ovIn .25s forwards; }
@keyframes ovIn { to { opacity: 1; } }
.modal {
  background: var(--paper); width: 100%; max-width: 560px; max-height: 94vh; overflow-y: auto;
  border-radius: 22px 22px 0 0; box-shadow: var(--sh-3); transform: translateY(30px); animation: mdIn .3s cubic-bezier(.22,.61,.36,1) forwards;
}
@keyframes mdIn { to { transform: none; } }
.modal-head { position: sticky; top: 0; background: var(--paper); display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 14px; border-bottom: 1px solid var(--line); z-index: 2; }
.modal-head h3 { font-size: 21px; }
.modal-head p { color: var(--ink-3); font-size: 13.5px; margin-top: 3px; }
.modal-x { background: var(--paper-2); border: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); flex-shrink: 0; transition: background .15s; }
.modal-x:hover { background: var(--line); }
.modal-body { padding: 22px 24px; }
.modal-foot { position: sticky; bottom: 0; background: var(--paper); display: flex; gap: 12px; padding: 16px 24px 22px; border-top: 1px solid var(--line); }

/* steps */
.steps { display: flex; align-items: center; gap: 6px; margin-bottom: 22px; }
.step-dot { display: flex; align-items: center; gap: 9px; }
.step-dot .sd-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 13px; background: var(--paper-2); color: var(--ink-3); border: 1.5px solid var(--line); }
.step-dot.on .sd-n { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.step-dot.done .sd-n { background: var(--green); color: #fff; border-color: var(--green); }
.step-dot .sd-l { font-family: var(--font-head); font-weight: 600; font-size: 12.5px; color: var(--ink-3); }
.step-dot.on .sd-l { color: var(--navy-800); }
.step-line { flex: 1; height: 1.5px; background: var(--line); }
.step-line.done { background: var(--green); }

.opt-row { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 13px; padding: 14px 16px; border: 1.5px solid var(--line);
  border-radius: var(--r-md); background: #fff; cursor: pointer; transition: border-color .15s, background .15s;
}
.opt:hover { border-color: var(--navy-500); }
.opt.sel { border-color: var(--orange); background: var(--orange-050); }
.opt-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; display: grid; place-items: center; }
.opt.sel .opt-radio { border-color: var(--orange); }
.opt.sel .opt-radio::after { content:""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.opt-main { flex: 1; }
.opt-main strong { font-family: var(--font-head); font-size: 14.5px; color: var(--navy-800); display: block; }
.opt-main span { font-size: 12.5px; color: var(--ink-3); }

.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px; }
.summary-row + .summary-row { border-top: 1px solid var(--line-soft); }
.summary-row .k { color: var(--ink-2); }
.summary-row .v { font-family: var(--font-head); font-weight: 600; color: var(--navy-800); text-align: right; }

.success-ico { width: 72px; height: 72px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; margin: 8px auto 18px; animation: pop .4s cubic-bezier(.22,1.2,.4,1) both; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

@media (max-width: 900px) {
  .niv-grid { grid-template-columns: repeat(2,1fr); }
  .atelier-items { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .niv-grid, .atelier-items { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .modal { max-width: 100%; }
  .step-dot .sd-l { display: none; }
}
@media (min-width: 560px) {
  .modal-ov { align-items: center; padding: 24px; }
  .modal { border-radius: 22px; }
}
