:root {
  --ink: #1b2b34;
  --ink-soft: #4a5a63;
  --petrol: #12465a;
  --petrol-dark: #0b3141;
  --amber: #c8702a;
  --amber-soft: #f6e6d6;
  --sand: #f7f3ec;
  --line: #e4ddd1;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 70, 90, 0.08);
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol); text-underline-offset: 3px; }
a:hover { color: var(--amber); }
h1, h2, h3 { line-height: 1.2; color: var(--petrol-dark); margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: 0.35em; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); margin-inline: auto; }
.section { padding: 72px 0; }
.section--sand { background: var(--sand); }
.section--petrol { background: var(--petrol-dark); color: #e9f1f3; }
.section--petrol h2, .section--petrol h3 { color: var(--white); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.8em;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }

/* Skip link */
.skip { position: absolute; left: -999px; top: 0; background: var(--petrol); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--petrol-dark); }
.brand img { width: 40px; height: 40px; }
.brand span { font-weight: 750; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand small { display: block; font-weight: 600; font-size: 0.72rem; color: var(--amber); letter-spacing: 0.14em; text-transform: uppercase; margin-top: -2px; }
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; align-items: center; }
.nav li { margin: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--petrol); background: var(--sand); }
.nav .nav-cta a { background: var(--petrol); color: #fff; }
.nav .nav-cta a:hover { background: var(--petrol-dark); color: #fff; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 600; color: var(--petrol-dark); cursor: pointer; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 4px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.btn--primary { background: var(--amber); color: #fff; }
.btn--primary:hover { background: #ad5d1e; color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn--outline { border-color: var(--petrol); color: var(--petrol); }
.btn--outline:hover { background: var(--petrol); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 85% -10%, #1d6178 0%, transparent 60%), linear-gradient(160deg, var(--petrol-dark), var(--petrol));
  color: #e9f1f3;
  padding: 96px 0 88px;
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero .lead { color: #cfe0e5; }
.hero .eyebrow { color: #f1b27a; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.hero-art { justify-self: end; width: 100%; max-width: 380px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { display: none; } .hero { padding: 64px 0; } }

.page-hero { background: var(--sand); padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 24ch; }
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 14px; }
.breadcrumb a { color: var(--ink-soft); }

/* Cards & grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0.2em; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--amber-soft); color: var(--amber); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 24px; height: 24px; }

/* Summary table */
.summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.summary div { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.summary div:nth-child(odd) { border-right: 1px solid var(--line); }
.summary dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); margin-bottom: 4px; }
.summary dd { margin: 0; font-weight: 600; color: var(--petrol-dark); }
@media (max-width: 700px) { .summary { grid-template-columns: 1fr; } .summary div:nth-child(odd) { border-right: 0; } }

/* Formation page */
.block { padding: 40px 0; border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: 0; }
.block h2 { font-size: 1.6rem; }
.verbatim { background: var(--sand); border-left: 4px solid var(--petrol); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; }
.verbatim p:last-child, .verbatim ul:last-child { margin-bottom: 0; }
.competences { counter-reset: comp; list-style: none; padding: 0; }
.competences li { counter-increment: comp; position: relative; padding: 14px 16px 14px 64px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.competences li::before { content: "C" counter(comp); position: absolute; left: 16px; top: 13px; font-weight: 800; color: var(--amber); }
.module { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: #fff; overflow: hidden; }
.module summary { cursor: pointer; list-style: none; padding: 18px 22px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; font-weight: 700; color: var(--petrol-dark); }
.module summary::-webkit-details-marker { display: none; }
.module summary .tag { flex: none; font-size: 0.82rem; font-weight: 700; color: var(--amber); background: var(--amber-soft); padding: 3px 10px; border-radius: 999px; }
.module[open] summary { border-bottom: 1px solid var(--line); background: var(--sand); }
.module .body { padding: 18px 22px 8px; }
.notice { background: var(--amber-soft); border-radius: var(--radius); padding: 18px 22px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.toc a { font-size: 0.85rem; font-weight: 600; text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--petrol-dark); }
.toc a:hover { border-color: var(--petrol); }

/* Trust band */
.trust { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.trust img { width: 170px; background: #fff; border-radius: 10px; padding: 6px; }
.trust p { margin: 0; max-width: 60ch; }

/* Legal pages */
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal h2:first-of-type { margin-top: 0; }

/* Forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .form .row { grid-template-columns: 1fr; } }
.form label { font-weight: 600; font-size: 0.95rem; display: block; margin-bottom: 6px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #cfc6b8; border-radius: 10px; background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: 3px solid rgba(200, 112, 42, 0.25); border-color: var(--amber); }
.form textarea { min-height: 160px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; }
.consent input { margin-top: 5px; }
.form button { justify-self: start; font: inherit; cursor: pointer; }

/* Footer */
.site-footer { background: var(--petrol-dark); color: #c9d8dd; padding: 56px 0 28px; font-size: 0.93rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #f1b27a; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: #fff; font-weight: 750; font-size: 1.1rem; }
.footer-brand img { width: 36px; height: 36px; }
.footer-qualiopi { display: flex; gap: 14px; align-items: center; margin-top: 18px; }
.footer-qualiopi img { width: 120px; background: #fff; border-radius: 8px; padding: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 16px; }
