@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --ink: #17243a;
  --ink-soft: #475569;
  --paper: #fffdf8;
  --surface: #f4f1ea;
  --white: #ffffff;
  --brand: #283d8f;
  --brand-dark: #17245c;
  --brand-soft: #e9edff;
  --accent: #f1c548;
  --accent-2: #e56063;
  --mint: #d9f0e7;
  --line: #dfe3e8;
  --success: #18794e;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(23, 36, 58, .12);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip-link { position: fixed; left: 12px; top: -70px; z-index: 1000; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; }
.skip-link:focus { top: 12px; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.section.surface { background: var(--surface); }
.section.brand-soft { background: var(--brand-soft); }
.section.dark { color: #fff; background: var(--ink); }
.grid { display: grid; gap: 24px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.brand-logo-window { width: 210px; height: 64px; overflow: hidden; }
.header-brand-logo { width: 100%; height: 100%; object-fit: contain; transform: scale(1.5); }
.formation-logo-window { width: min(420px, 100%); height: 170px; overflow: hidden; border-radius: 22px; background: rgba(255,255,255,.72); }
.formation-brand-logo { width: 100%; height: 100%; object-fit: contain; transform: scale(1.38); }
.formation-hero .container { justify-items: start; }
.stack > * + * { margin-top: 18px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--brand); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .76rem; }
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--accent-2); border-radius: 99px; }
.dark .eyebrow { color: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.035em; font-family: "Poppins", sans-serif; }
h1 { font-weight: 700; }
h2, h3 { font-weight: 600; }
h1 { font-size: clamp(2.65rem, 7vw, 5.75rem); max-width: 950px; }
h2 { font-size: clamp(2rem, 4vw, 3.55rem); max-width: 820px; }
h3 { font-size: clamp(1.15rem, 2vw, 1.55rem); }
p { margin: 0; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.42rem); color: var(--ink-soft); max-width: 760px; }
.human-accent { font-family: "Brasika", "Poppins", sans-serif; font-weight: 500; color: var(--brand); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: .16em; text-underline-offset: .13em; }
.dark .lead { color: #d6deec; }
.muted { color: var(--ink-soft); }
.small { font-size: .88rem; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,253,248,.94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(223,227,232,.85); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; min-width: 180px; }
.brand-symbol { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px 14px 14px 4px; background: var(--accent); color: var(--brand-dark); font-weight: 950; font-size: 1.25rem; transform: rotate(-3deg); }
.brand-copy strong { display: block; color: var(--brand-dark); font-size: 1.22rem; letter-spacing: .08em; }
.brand-copy span { display: block; color: var(--ink-soft); font-size: .68rem; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > a { padding: 10px 11px; border-radius: 10px; font-size: .91rem; font-weight: 720; }
.main-nav > a:hover, .main-nav > a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.menu-toggle { display: none; border: 0; background: var(--brand-soft); color: var(--brand-dark); border-radius: 12px; padding: 10px 12px; font-weight: 800; }

.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border: 1px solid transparent; border-radius: 14px; background: var(--brand); color: #fff; font-weight: 800; transition: .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(40,61,143,.2); }
.btn.secondary { color: var(--brand); background: var(--white); border-color: var(--line); }
.btn.accent { color: var(--brand-dark); background: var(--accent); }
.btn.ghost { color: var(--brand); background: transparent; border-color: currentColor; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.prototype-note { color: #fff; background: var(--brand-dark); }
.prototype-note .container { min-height: 36px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: .78rem; }
.hero { position: relative; min-height: 680px; display: grid; align-items: center; overflow: hidden; background: linear-gradient(120deg, #fffdf8 0%, #fffdf8 58%, #f0ecdf 58%); }
.hero::after { content: ""; position: absolute; width: 260px; height: 260px; border: 50px solid rgba(241,197,72,.35); border-radius: 50%; right: -80px; bottom: -100px; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.14fr .86fr; gap: 58px; align-items: center; padding: 72px 0; }
.hero-copy { display: grid; gap: 24px; }
.hero-copy h1 em { color: var(--brand); font-style: normal; }
.hero-visual { position: relative; min-height: 520px; }
.hero-photo { width: 88%; height: 500px; margin-left: auto; object-fit: cover; border-radius: 120px 24px 120px 24px; box-shadow: var(--shadow); filter: saturate(.72) contrast(1.03); }
.floating-card { position: absolute; left: 0; bottom: 54px; max-width: 280px; padding: 20px; border-radius: 18px; color: #fff; background: var(--brand); box-shadow: var(--shadow); }
.floating-card strong { display: block; font-size: 1.35rem; }
.mini-proof { display: flex; flex-wrap: wrap; gap: 10px; }
.mini-proof span { padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-soft); font-size: .82rem; font-weight: 700; }

.pathways { position: relative; z-index: 4; margin-top: -70px; }
.path-card, .card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 35px rgba(23,36,58,.08); }
.path-card { min-height: 310px; display: flex; flex-direction: column; gap: 15px; padding: 28px; transition: .2s ease; }
.path-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.path-card .number { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: var(--brand-dark); background: var(--accent); font-weight: 900; }
.path-card p { color: var(--ink-soft); }
.path-card .link { margin-top: auto; color: var(--brand); font-weight: 850; }
.card { padding: 26px; }
.card.flat { box-shadow: none; }
.icon-card { display: grid; gap: 14px; }
.icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; color: var(--brand-dark); background: var(--brand-soft); font-size: 1.5rem; }

.media-split { display: grid; grid-template-columns: .92fr 1.08fr; gap: 64px; align-items: center; }
.media-frame { position: relative; }
.media-frame img { width: 100%; min-height: 480px; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); filter: saturate(.7); }
.media-tag { position: absolute; right: -18px; bottom: 26px; max-width: 245px; padding: 18px; border-radius: 16px; background: var(--accent); color: var(--brand-dark); font-weight: 800; }
.check-list { display: grid; gap: 13px; padding: 0; margin: 24px 0 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 900; }

.quote { display: grid; gap: 18px; min-height: 260px; padding: 30px; border-radius: 28px; background: var(--brand); color: #fff; }
.quote blockquote { margin: 0; font-size: clamp(1.2rem, 2vw, 1.75rem); font-weight: 700; line-height: 1.35; }
.quote cite { margin-top: auto; color: #dfe5ff; font-style: normal; }
.quote-mark { color: var(--accent); font-size: 3rem; font-weight: 900; line-height: .7; }

.page-hero { padding: 86px 0 70px; background: linear-gradient(135deg, var(--brand-soft), #fffdf8 70%); border-bottom: 1px solid var(--line); }
.page-hero .container { display: grid; gap: 22px; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
.breadcrumb { display: flex; gap: 8px; color: var(--ink-soft); font-size: .88rem; }
.breadcrumb span { color: var(--brand); font-weight: 800; }

.filter-panel { position: sticky; top: 96px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 30px rgba(23,36,58,.07); }
.directory-layout { display: grid; grid-template-columns: 290px 1fr; gap: 30px; align-items: start; }
.field { display: grid; gap: 7px; }
.field label, .field .label { font-size: .82rem; font-weight: 800; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #cbd2dc; border-radius: 12px; padding: 12px 13px; background: #fff; color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.filter-stack { display: grid; gap: 15px; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.profile-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.profile-card .photo { height: 220px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--brand-soft), var(--mint)); color: var(--brand); font-size: 2.8rem; font-weight: 900; letter-spacing: -.06em; }
.profile-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.profile-card .content { display: grid; gap: 13px; padding: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 9px; border-radius: 999px; color: var(--brand-dark); background: var(--brand-soft); font-size: .76rem; font-weight: 800; }
.chip.formateur { background: var(--accent); }
.profile-meta { color: var(--ink-soft); font-size: .88rem; }
.contact-panel { display: none; gap: 5px; padding: 12px; border-radius: 12px; background: var(--surface); font-size: .88rem; }
.contact-panel.is-open { display: grid; }
.demo-label { display: inline-flex; width: fit-content; padding: 5px 8px; border-radius: 8px; color: #7c2d12; background: #ffedd5; font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }

.profile-detail { display: grid; grid-template-columns: .7fr 1.3fr; gap: 42px; align-items: start; }
.profile-aside { position: sticky; top: 102px; display: grid; gap: 18px; }
.avatar-large { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: 26px; color: var(--brand); background: linear-gradient(135deg, var(--brand-soft), var(--mint)); font-size: 5rem; font-weight: 900; }
.avatar-large img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.info-list { display: grid; gap: 9px; padding: 0; list-style: none; }
.info-list strong { color: var(--brand-dark); }

.timeline { display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding-bottom: 28px; }
.timeline-number { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--brand-dark); background: var(--accent); font-weight: 900; }
.timeline-number::after { content: ""; position: absolute; top: 42px; width: 2px; height: 28px; background: var(--line); }
.timeline-item:last-child .timeline-number::after { display: none; }

.domain-card { min-height: 220px; display: flex; flex-direction: column; gap: 14px; padding: 25px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.domain-card .symbol { color: var(--brand); font-size: 2rem; }
.domain-card p { color: var(--ink-soft); }
.domain-card a { margin-top: auto; color: var(--brand); font-weight: 850; }

.session-card { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.session-card.is-full { opacity: .6; }
.spots { font-size: .82rem; font-weight: 850; color: var(--success); }
.spots.low { color: #b45309; }
.spots.full { color: #b91c1c; }

.form-shell { display: grid; gap: 20px; padding: 30px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field.full { grid-column: 1 / -1; }
.form-status { display: none; padding: 16px; border-radius: 14px; color: #14532d; background: #dcfce7; font-weight: 750; }
.form-status.is-visible { display: block; }

.quality-band { display: grid; grid-template-columns: .72fr 1.28fr; gap: 46px; align-items: center; padding: 38px; border-radius: 28px; color: #fff; background: var(--brand-dark); }
.quality-band .lead { color: rgba(255,255,255,.88); }
.quality-seal { width: 190px; height: 190px; display: grid; place-items: center; margin: auto; padding: 20px; border-radius: 50%; border: 8px solid var(--accent); text-align: center; font-weight: 900; }
.qualiopi-mark { padding: 20px; border-radius: 22px; background: #fff; }
.qualiopi-mark img { display: block; width: 100%; height: auto; }
.gear-watermark { position: relative; overflow: hidden; }
.gear-watermark::after { content: ""; position: absolute; right: -90px; bottom: -120px; width: 460px; height: 460px; pointer-events: none; opacity: .09; background: url("../img/brand/engrenages.png") center/contain no-repeat; }
.gear-watermark > .container { position: relative; z-index: 1; }
.bge-signature { display: grid; grid-template-columns: 170px 1fr auto; gap: 32px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.bge-signature img { width: 150px; height: auto; }

.org-chart { display: grid; gap: 26px; text-align: center; }
.org-node { position: relative; display: grid; gap: 5px; justify-items: center; max-width: 310px; margin-inline: auto; padding: 18px 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(23,36,58,.08); }
.org-node.root { color: #fff; background: var(--brand-dark); border-color: var(--brand-dark); }
.org-node.root .muted { color: #dbe3f5; }
.org-avatar { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: var(--brand-dark); background: var(--accent); font-weight: 700; }
.org-lead { position: relative; }
.org-lead::before { content: ""; position: absolute; left: 50%; top: -27px; width: 2px; height: 27px; background: #aab4c3; }
.org-branches { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding-top: 28px; }
.org-branches::before { content: ""; position: absolute; top: 0; left: 16.66%; right: 16.66%; height: 2px; background: #aab4c3; }
.org-branches .org-node::before { content: ""; position: absolute; left: 50%; top: -29px; width: 2px; height: 29px; background: #aab4c3; }
.org-network { position: relative; max-width: 680px; margin-inline: auto; padding: 20px; border-radius: 18px; color: var(--brand-dark); background: var(--brand-soft); font-weight: 600; }
.org-network::before { content: ""; position: absolute; left: 50%; top: -27px; width: 2px; height: 27px; background: #aab4c3; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metric { padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.metric strong { display: block; color: var(--brand); font-size: 2rem; }

.cta-band { padding: 46px; border-radius: 30px; color: #fff; background: linear-gradient(120deg, var(--brand), var(--brand-dark)); }
.cta-band .inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); }

.site-footer { padding: 58px 0 26px; color: #d8dfec; background: #10192a; }
.footer-logo-window { width: 230px; height: 92px; overflow: hidden; }
.footer-brand-logo { width: 100%; height: 100%; object-fit: contain; transform: scale(1.35); }
.footer-partner { display: flex; align-items: center; gap: 14px; color: #fff; font-weight: 700; }
.footer-partner img { width: 78px; height: 78px; object-fit: contain; border-radius: 8px; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 36px; }
.footer-grid h3 { color: #fff; font-size: 1rem; letter-spacing: 0; }
.footer-grid ul { display: grid; gap: 8px; padding: 0; list-style: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 36px; padding-top: 20px; border-top: 1px solid #2a3548; font-size: .8rem; }

.faq-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 64px; align-items: start; }
.faq-aside { position: sticky; top: 118px; padding: 24px; background: var(--brand-soft); border-radius: var(--radius); }
.faq-aside nav { display: grid; gap: 10px; margin-top: 14px; }
.faq-aside a { color: var(--ink); font-weight: 600; }
.faq-section { scroll-margin-top: 130px; }
.faq-section + .faq-section { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--line); }
.faq-section > div:first-child { margin-bottom: 24px; }
.faq-section details { border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; }
.faq-section details + details { margin-top: 12px; }
.faq-section summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 24px; color: var(--ink); font-weight: 700; }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after { content: "+"; display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 1.25rem; }
.faq-section details[open] summary::after { content: "−"; }
.faq-section details > div { padding: 0 24px 24px; color: var(--muted); }
.faq-section details > div p + p { margin-top: 12px; }

.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; background: #f4f6f9; }
.admin-nav { padding: 26px; color: #fff; background: var(--ink); }
.admin-nav ul { display: grid; gap: 8px; padding: 24px 0; list-style: none; }
.admin-nav a { display: block; padding: 10px; border-radius: 10px; }
.admin-nav a:hover { background: #2a3952; }
.admin-main { padding: 34px; }

@media (max-width: 980px) {
  .main-nav { display: none; position: absolute; top: 78px; left: 20px; right: 20px; padding: 14px; flex-direction: column; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .header-inner > .btn { display: none; }
  .hero { background: linear-gradient(160deg, #fffdf8 0%, #fffdf8 65%, #f0ecdf 65%); }
  .hero-grid, .media-split, .quality-band, .bge-signature { grid-template-columns: 1fr; }
  .hero-visual { min-height: 440px; }
  .hero-photo { height: 420px; }
  .grid.four, .grid.five, .metrics { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: 1fr; }
  .pathways { margin-top: -30px; }
  .path-card { min-height: auto; }
  .directory-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .profile-detail { grid-template-columns: 1fr; }
  .profile-aside { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-aside { position: static; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 64px 0; }
  .brand-copy span { display: none; }
  .brand-lockup { min-width: auto; }
  .hero-grid { padding: 50px 0; gap: 36px; }
  .hero-visual { min-height: 350px; }
  .hero-photo { width: 94%; height: 330px; border-radius: 70px 18px 70px 18px; }
  .floating-card { left: 0; bottom: 20px; max-width: 225px; }
  .grid.two, .grid.four, .grid.five, .profile-grid, .metrics, .form-grid { grid-template-columns: 1fr; }
  .media-frame img { min-height: 340px; }
  .media-tag { right: 10px; }
  .results-head, .session-card, .cta-band .inner, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .session-card { display: flex; }
  .quality-band { padding: 26px; }
  .quality-seal { width: 150px; height: 150px; }
  .brand-logo-window { width: 145px; height: 54px; }
  .formation-logo-window { height: 120px; }
  .bge-signature { padding: 22px; }
  .cta-band { padding: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { display: none; }
  .admin-main { padding: 20px; }
  .org-branches { grid-template-columns: 1fr; padding-top: 0; }
  .org-branches::before, .org-branches .org-node::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
