/* Portail entreprises formapps.pro — design EduForge (bleu #308dc2 → turquoise #34b5a8, étincelle ambre).
   Aucune police externe, aucun style en ligne : compatible avec une politique CSP stricte. */
:root {
  --blue: #308dc2; --blue-d: #1f6f9f; --teal: #34b5a8; --amber: #f5a524;
  --ink: #17304a; --text: #3b4a5f; --mute: #64748b; --line: #e3e8ef; --soft: #eaf5fb; --bg: #f5f8fb;
  --grad: linear-gradient(135deg, #308dc2 0%, #34b5a8 100%);
  --shadow: 0 10px 30px rgba(24, 60, 90, .10); --shadow-l: 0 24px 60px rgba(24, 60, 90, .18);
  --r: 20px; --w: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-d); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--w), 100% - 40px); margin-inline: auto; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.skip { position: absolute; left: 12px; top: -60px; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 10px; z-index: 100; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ en-tête */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.brand img { height: 46px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; color: #33415c; font-weight: 600; font-size: 15.5px; padding: 9px 16px; border-radius: 999px; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.nav a:hover { background: var(--soft); color: var(--blue-d); border-color: #cfe7f4; }
.nav .btn { margin-left: 8px; color: #fff; }
.nav .btn:hover { color: #fff; background: var(--grad); border-color: transparent; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.burger .ic { width: 24px; height: 24px; }

/* ------------------------------------------------------------------ boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 24px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; box-shadow: 0 10px 22px rgba(48, 141, 194, .30); transition: transform .15s, box-shadow .15s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(48, 141, 194, .40); color: #fff; }
.btn .ic { width: 20px; height: 20px; }
.btn-line { background: #fff; color: var(--blue-d); border-color: #bcdcee; box-shadow: none; }
.btn-line:hover { background: var(--soft); color: var(--blue-d); box-shadow: none; }
.btn-light { background: #fff; color: var(--blue-d); box-shadow: 0 10px 22px rgba(0, 0, 0, .18); }
.btn-light:hover { color: var(--blue-d); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--grad); padding: 72px 0 120px; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image: url("../img/hex.svg"); background-size: 220px; }
.hero::after { content: ""; position: absolute; right: -140px; top: -140px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.eyebrow .ic { width: 17px; height: 17px; }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); margin: 20px 0 18px; }
.hero p.lead { font-size: 19px; color: rgba(255, 255, 255, .94); max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero ul.chips { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 30px 0 0; padding: 0; }
.hero ul.chips li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15.5px; }
.hero ul.chips .ic { color: #ffe08a; }
.stack { position: relative; min-height: 400px; }
.stack figure { position: absolute; margin: 0; width: 72%; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-l); border: 5px solid #fff; background: #fff; }
.stack figure:nth-child(1) { left: 0; top: 4%; transform: rotate(-5deg); }
.stack figure:nth-child(2) { right: 0; top: 24%; transform: rotate(4deg); z-index: 2; }
.stack figure:nth-child(3) { left: 14%; bottom: 0; transform: rotate(-1.5deg); z-index: 3; }

/* ------------------------------------------------------------------ chiffres */
.facts { position: relative; z-index: 2; margin-top: -64px; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.facts li { padding: 26px 20px; text-align: center; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; }
.facts b { display: block; font-size: 34px; line-height: 1.1; color: var(--ink); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.facts span { color: var(--mute); font-size: 14.5px; }

/* ------------------------------------------------------------------ sections */
section { padding: 84px 0 0; }
.head { max-width: 760px; margin-bottom: 38px; }
.head .tag { display: inline-block; color: var(--blue-d); background: var(--soft); border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: 13.5px; letter-spacing: .04em; text-transform: uppercase; }
.head h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 14px 0 12px; }
.head p { color: var(--mute); font-size: 18px; }

/* catalogue */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 26px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(48, 141, 194, .20); border-color: #bcdcee; }
.card .pic { position: relative; }
.card .pic img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card .time { position: absolute; right: 14px; top: 14px; background: rgba(255, 255, 255, .95); color: var(--blue-d); font-weight: 800; font-size: 14px; padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow); display: inline-flex; gap: 6px; align-items: center; }
.card .time .ic { width: 16px; height: 16px; }
.card .in { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; flex: 1; }
.card h3 { font-size: 22px; }
.card .sub { color: var(--blue-d); font-weight: 700; margin: 0; font-size: 15.5px; }
.card p { margin: 0; font-size: 16px; }
.card ul.ok { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 7px; font-size: 15.5px; }
.card ul.ok li { display: flex; gap: 10px; align-items: flex-start; }
.card ul.ok .ic { width: 19px; height: 19px; color: var(--teal); margin-top: 3px; }
.who { background: var(--soft); border-radius: 14px; padding: 12px 14px; font-size: 14.5px; color: var(--ink); }
.who b { color: var(--blue-d); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--mute); font-size: 14.5px; font-weight: 600; }
.meta span { display: inline-flex; gap: 6px; align-items: center; }
.meta .ic { width: 17px; height: 17px; color: var(--blue); }
details.prog { border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; }
details.prog summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.prog summary::-webkit-details-marker { display: none; }
details.prog summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--blue); }
details.prog[open] summary::after { content: "–"; }
details.prog ol { margin: 0 0 14px; padding-left: 22px; font-size: 14.5px; display: grid; gap: 5px; }
.foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 6px; }
.price { font-size: 28px; font-weight: 800; color: var(--ink); line-height: 1; }
.price small { font-size: 13px; color: var(--mute); font-weight: 700; margin-left: 4px; }
.note { margin-top: 24px; color: var(--mute); font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.note .ic { color: var(--blue); margin-top: 3px; }

/* avantages */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why article { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px; box-shadow: var(--shadow); }
.why .i { width: 52px; height: 52px; border-radius: 14px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; box-shadow: 0 8px 18px rgba(48, 141, 194, .28); }
.why h3 { font-size: 19px; margin-bottom: 8px; }
.why p { margin: 0; font-size: 15.5px; color: var(--text); }

/* étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px 22px 24px; box-shadow: var(--shadow); counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; top: -18px; left: 22px; width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(48, 141, 194, .35); }
.steps h3 { font-size: 18px; margin: 6px 0 6px; }
.steps p { margin: 0; font-size: 15.5px; }

/* bandeau équipes */
.band { position: relative; overflow: hidden; background: var(--grad); color: #fff; border-radius: 28px; padding: 46px 48px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; box-shadow: var(--shadow-l); }
.band::before { content: ""; position: absolute; inset: 0; opacity: .45; background-image: url("../img/hex.svg"); background-size: 200px; }
.band > * { position: relative; }
.band h2 { color: #fff; font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 10px; }
.band p { margin: 0; color: rgba(255, 255, 255, .95); max-width: 38em; }
.band .cta { margin: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--text); }

/* contact */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: stretch; }
.contact .box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 32px; }
.contact h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 12px 0; }
.contact ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.contact li { display: flex; gap: 12px; align-items: flex-start; }
.contact li .ic { color: var(--teal); margin-top: 3px; }
.contact .side { background: var(--soft); border-color: #cfe7f4; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.contact .side p { margin: 0; }

/* pied de page */
footer { margin-top: 90px; background: #0f2a43; color: #c9d6e3; padding: 56px 0 34px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
footer .logo { background: #fff; display: inline-block; border-radius: 14px; padding: 8px 16px; }
footer .logo img { height: 40px; width: auto; }
footer h2 { color: #fff; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
footer a { color: #c9d6e3; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer p { font-size: 15px; }
footer .legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; color: #9fb2c6; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* pages simples (mentions légales, confidentialité, 404) */
.page { padding: 56px 0 0; }
.page .doc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 38px 42px; max-width: 880px; }
.page .doc h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 8px; }
.page .doc h2 { font-size: 21px; margin: 28px 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--soft); }
.page .doc .upd { color: var(--mute); font-size: 15px; margin-bottom: 20px; }
.page .doc ul { padding-left: 22px; }
.err { text-align: center; padding: 96px 0 0; }
.err b { display: block; font-size: 88px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.err h1 { font-size: 30px; margin: 12px 0; }

/* ------------------------------------------------------------------ adaptatif */
@media (max-width: 1080px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 30px; }
  .stack { min-height: 340px; max-width: 520px; margin: 0 auto; width: 100%; }
  .why, .steps { grid-template-columns: repeat(2, 1fr); }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .burger { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 4px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 16px; }
  .nav .btn { margin: 8px 0 0; }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .band, .contact { grid-template-columns: 1fr; }
  .band { padding: 34px 26px; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .hero { padding: 48px 0 100px; }
  .grid { grid-template-columns: 1fr; }
  .why, .steps { grid-template-columns: 1fr; gap: 28px; }
  .stack { min-height: 280px; }
  .page .doc { padding: 26px 20px; }
  footer .cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .top, .hero::before, .cta, footer { display: none; } }

/* utilitaires */
.mt { margin-top: 22px; }
mark { background: #fff3bf; padding: 0 4px; border-radius: 4px; color: #5c4400; }
.foot .btn { padding: 12px 16px; font-size: 15px; }
.foot { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.foot .btn { width: 100%; white-space: nowrap; }
