:root {
  --ink: #2b2e33;
  --text: #4a4f58;
  --muted: #8a8f98;
  --orange: #f97844;
  --orange-dark: #e2602f;
  --coral: #fd8a6a;
  --amber: #ffb95f;
  --cream: #fbf7f3;
  --line: #e8e6e2;
  --white: #ffffff;
  --maxw: 1100px;
  --radius: 14px;
  --font-title: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --font-text: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-text); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-title); color: var(--ink); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--orange-dark); }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin: 0.3em 0; }
ul.star { list-style: none; padding-left: 0; }
ul.star li { position: relative; padding-left: 1.5em; }
ul.star li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.8em; height: 0.8em; background: var(--orange); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.small { font-size: 0.9rem; color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--text); }
.eyebrow { font-family: var(--font-title); font-weight: 700; color: var(--orange-dark); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; margin-bottom: 0.6em; display: block; }
.maj { font-size: 0.85rem; color: var(--muted); }

/* Boutons */
.btn { display: inline-block; font-family: var(--font-title); font-weight: 700; font-size: 1rem; padding: 14px 26px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }

/* En-tête */
.header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand .word { font-family: var(--font-title); line-height: 1; }
.brand .word b { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.brand .word span { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.25em; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--ink); }
.nav a:hover { color: var(--orange-dark); }
.nav .btn { padding: 10px 18px; font-size: 0.92rem; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; }
@media (max-width: 860px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; text-align: center; border-bottom: 0; }
}

/* Sections */
.section { padding: 64px 0; }
.section.tint { background: var(--cream); }
.section.dark { background: var(--ink); color: #d9dbe0; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--text); font-size: 1.1rem; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tint .card { border-color: transparent; }
.card h3 { margin-top: 0; }
.card .num { font-family: var(--font-title); font-weight: 800; font-size: 2rem; color: var(--orange); line-height: 1; margin-bottom: 10px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; background: var(--cream); }
.hero .container { position: relative; z-index: 1; max-width: 860px; }
.hero .nova-bg { position: absolute; right: -6%; top: 50%; transform: translateY(-50%); width: 52vw; max-width: 620px; min-width: 320px; opacity: 0.07; pointer-events: none; }
.hero h1 { margin-bottom: 0.5em; }
.hero .lead { max-width: 640px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; padding: 0; list-style: none; }
.tags li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.9rem; font-weight: 500; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Fiche formation */
.fiche { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0; }
@media (max-width: 860px) { .fiche { grid-template-columns: 1fr 1fr; } }
.fiche div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.fiche b { display: block; font-family: var(--font-title); font-size: 1.1rem; color: var(--ink); }
.fiche span { font-size: 0.85rem; color: var(--muted); }

/* Numérotation des sections de la page formation */
.numbered { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 40px 0; border-top: 1px solid var(--line); }
.numbered:first-of-type { border-top: 0; }
.numbered .n { font-family: var(--font-title); font-weight: 800; font-size: 2.6rem; color: var(--orange); line-height: 1; }
@media (max-width: 600px) { .numbered { grid-template-columns: 1fr; gap: 8px; } .numbered .n { font-size: 2rem; } }
.numbered h2 { margin-top: 0; }

/* Frise horaire */
.timeline { list-style: none; padding: 0; margin: 20px 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 28px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 16px; height: 16px; background: var(--orange); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.timeline li.pause::before { background: var(--line); }
.timeline li.eval::before { background: var(--ink); }
.timeline .h { font-family: var(--font-title); font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.timeline .t { font-weight: 600; color: var(--ink); }
.timeline .d { font-size: 0.95rem; }
.timeline .m { font-size: 0.85rem; color: var(--muted); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }

/* Tableaux */
table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 0.95rem; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--cream); color: var(--ink); font-family: var(--font-title); font-weight: 700; }
.table-wrap { overflow-x: auto; }

/* Documents */
.docs { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .docs { grid-template-columns: 1fr; } }
.docs li a { display: flex; justify-content: space-between; gap: 10px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; text-decoration: none; }
.docs li a:hover { border-color: var(--orange); }
.docs li a span { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }

/* Étapes */
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.steps li::before { counter-increment: s; content: "0" counter(s); font-family: var(--font-title); font-weight: 800; font-size: 1.6rem; color: var(--orange); line-height: 1; }
.steps b { display: block; color: var(--ink); font-family: var(--font-title); margin-bottom: 4px; }

/* FAQ */
details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-family: var(--font-title); font-weight: 700; color: var(--ink); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--orange); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; }

/* Formulaire */
form { display: grid; gap: 16px; max-width: 640px; }
label { display: block; font-weight: 600; color: var(--ink); font-size: 0.95rem; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #cfd3d9; border-radius: 10px; background: var(--white); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
textarea { min-height: 140px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.95rem; }
.check input { margin-top: 5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-left: 3px solid var(--orange); background: var(--cream); padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }

.contact-grid { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* Encadré */
.box { border: 1px solid var(--line); border-left: 4px solid var(--orange); background: var(--cream); border-radius: 8px; padding: 16px 20px; margin: 16px 0; }

/* Pied de page */
.footer { background: var(--ink); color: #c9ccd3; padding: 48px 0 28px; font-size: 0.9rem; }
.footer a { color: var(--white); text-decoration-color: var(--orange); }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr; } }
.footer h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 6px 0; }
.footer .legal { border-top: 1px solid #3d4148; padding-top: 18px; font-size: 0.82rem; color: #a7abb3; }
.footer .brand .word b, .footer .brand .word span { color: var(--white); }
.footer .brand .word span { color: #a7abb3; }

/* Pages de texte */
.prose { max-width: 800px; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.2em; }
