/* Mediacloser — feuille de style (sans framework) */
:root {
  --bg: #fefefe;
  --fg: #080809;
  --primary: #2b7fff;
  --primary-hover: #155dfc;
  --primary-active: #1447e6;
  --muted: #5b6472;
  --muted-2: #62748e;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --soft: #f8fafc;
  --soft-2: #f1f5f9;
  --ok-bg: #ecfdf5;
  --ok-fg: #065f46;
  --ok-line: #a7f3d0;
  --err-bg: #fef2f2;
  --err-fg: #991b1b;
  --err-line: #fecaca;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --container: 1120px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.25rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 42rem; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.mono { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.02em; }
ul.clean { list-style: none; padding: 0; margin: 0; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--fg); color: #fff; padding: 10px 14px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* Blueprint : lignes verticales du conteneur */
.container {
  width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; position: relative;
}
.frame { position: relative; }
.frame::before, .frame::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); pointer-events: none;
}
.frame::before { left: 0; }
.frame::after { right: 0; }
@media (max-width: 1200px) { .frame::before, .frame::after { display: none; } }

section { padding: 80px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }
@media (max-width: 640px) { section { padding: 56px 0; } }

/* Badges */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--primary); background: rgba(43, 127, 255, 0.08); color: var(--primary);
  font-size: 0.8rem; font-weight: 500; padding: 5px 12px; border-radius: 999px; letter-spacing: 0.01em;
}
.pill svg { width: 14px; height: 14px; }
.section-head { margin-bottom: 40px; }
.section-head .pill { margin-bottom: 16px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 500; font-size: 0.95rem; line-height: 1;
  padding: 13px 20px; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-primary:active { background: var(--primary-active); }
.btn-outline { background: #fff; color: var(--fg); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--fg); color: var(--fg); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Navbar */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(254, 254, 254, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--primary); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: 15px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--fg); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }
  .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: var(--nav-h);
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px 24px 24px;
  }
  .nav-menu.open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-links a { display: block; padding: 10px 4px; font-size: 1.05rem; }
  .nav-menu .btn { margin-top: 12px; width: 100%; }
}
@media (min-width: 861px) { .nav-menu .btn { display: none; } }

/* Hero */
.hero { padding: 96px 0 72px; }
.hero h1 { max-width: 16ch; margin-top: 20px; }
.hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--primary); }
.hero .lead { margin-top: 8px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px 28px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.hero-meta strong { color: var(--fg); font-weight: 500; }
@media (max-width: 640px) {
  .hero { padding: 56px 0 48px; text-align: center; }
  .hero h1, .hero .lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-meta { justify-content: center; }
}

/* Grilles & cartes */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px;
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card h3 { margin: 4px 0 0; }
.icon-sq { width: 44px; height: 44px; border-radius: 12px; background: var(--primary); color: #fff; display: grid; place-items: center; flex: none; }
.icon-sq svg { width: 22px; height: 22px; }
.step-num { font-family: var(--mono); color: var(--primary); font-size: 0.8rem; letter-spacing: 0.08em; }
.art { font-family: var(--mono); font-size: 0.75rem; color: var(--muted-2); letter-spacing: 0.03em; }

/* Partenaires */
.partner { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.partner:hover { border-color: var(--primary); color: inherit; transform: translateY(-2px); }
.partner-top { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex: none;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; border: 1px solid rgba(8, 8, 9, 0.08);
}
.partner-name { font-weight: 600; margin: 0; font-size: 1.02rem; }
.partner-url { font-family: var(--mono); font-size: 0.72rem; color: var(--muted-2); margin: 0; }
.partner-theme { font-size: 0.78rem; color: var(--muted); margin-top: auto; padding-top: 6px; border-top: 1px dashed var(--line); }
.partner-ext { margin-left: auto; color: var(--muted-2); flex: none; }
.partner-ext svg { width: 16px; height: 16px; }

/* Processus 4 étapes */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: 28px; }
.process > div { padding: 22px; border-left: 1px solid var(--line); background: var(--soft); }
.process > div:first-child { border-left: 0; }
.process h3 { font-size: 1rem; margin: 10px 0 6px; }
.process p { margin: 0; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 860px) { .process { grid-template-columns: repeat(2, 1fr); } .process > div:nth-child(3) { border-left: 0; } .process > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .process { grid-template-columns: 1fr; } .process > div { border-left: 0; border-top: 1px solid var(--line); } }

/* Formulaire */
.form-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }
form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 32px; }
@media (max-width: 560px) { form { padding: 22px 18px; } }
fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
legend { font-weight: 600; font-size: 1.05rem; padding: 0; margin-bottom: 12px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
label { font-size: 0.9rem; font-weight: 500; }
.hint { font-size: 0.8rem; color: var(--muted); margin: 0; }
.req { color: var(--primary); }
input[type="text"], input[type="email"], select, textarea {
  font: inherit; font-size: 0.95rem; color: var(--fg); background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 11px 12px; width: 100%;
}
textarea { resize: vertical; min-height: 120px; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235b6472' stroke-width='1.6'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; padding-right: 36px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(43, 127, 255, 0.35); outline-offset: 0; border-color: var(--primary); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #dc2626; }
.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 400; }
.radios label:has(input:checked) { border-color: var(--primary); background: rgba(43, 127, 255, 0.08); color: var(--primary); }
.radios input { accent-color: var(--primary); margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.9rem; line-height: 1.5; }
.check input { accent-color: var(--primary); margin-top: 4px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.field-error { font-size: 0.8rem; color: #b91c1c; margin: 0; display: none; }
.field-error.show { display: block; }
.form-msg { display: none; border-radius: var(--radius); padding: 14px 16px; margin-top: 18px; font-size: 0.95rem; }
.form-msg.ok { display: block; background: var(--ok-bg); color: var(--ok-fg); border: 1px solid var(--ok-line); }
.form-msg.err { display: block; background: var(--err-bg); color: var(--err-fg); border: 1px solid var(--err-line); }
.form-msg a { color: inherit; }
.aside-card { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: calc(var(--nav-h) + 20px); }
.aside-card h3 { font-size: 1rem; margin-bottom: 12px; }
.aside-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 0.88rem; }
.aside-card dt { color: var(--muted); }
.aside-card dd { margin: 0; }
.aside-card + .aside-card { margin-top: 16px; position: static; }
@media (max-width: 900px) { .aside-card { position: static; } }

/* Accordéons */
.acc { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.acc details { border-top: 1px solid var(--line); }
.acc details:first-child { border-top: 0; }
.acc summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 500; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s; flex: none; margin-right: 4px;
}
.acc details[open] summary::after { transform: rotate(-135deg); }
.acc summary:hover { color: var(--primary); }
.acc summary:focus-visible { outline-offset: -3px; }
.acc .body { padding: 0 22px 22px; color: var(--muted); font-size: 0.95rem; }
.acc .body p:last-child, .acc .body ul:last-child { margin-bottom: 0; }
.acc .body ul { padding-left: 20px; }
.acc .body strong { color: var(--fg); font-weight: 500; }
.todo { background: #fff7ed; color: #9a3412; padding: 1px 6px; border-radius: 4px; font-size: 0.85em; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 0.9rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
footer h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg); margin-bottom: 12px; font-weight: 600; }
footer address { font-style: normal; line-height: 1.7; }
footer ul.clean li { margin-bottom: 6px; }
footer a { color: var(--fg); text-decoration: none; }
footer a:hover { color: var(--primary); }
.copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.82rem; }

/* 404 */
.page-404 { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; text-align: center; padding: 40px 24px; }
.page-404 .code { font-family: var(--mono); color: var(--primary); letter-spacing: 0.1em; }
