/* Altius : styles communs aux pages du site (charte Ingenium : bleu profond et blanc, or pour les filets, orange pour les boutons). */
:root {
  --ink: #0D1245;
  --ink-2: #1A2163;
  --slate: #303366;
  --gold: #DDB670;
  --signal: #F0822D;
  --paper: #FFFFFF;
  --mist: #E6E4F0;
  --line: #C9CBDD;
  --haze: #EEEEF5;
  --late: #C2410C;
  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --text: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hdr: 64px;
  --tabbar: 0px;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
html { overflow-x: clip; }
body {
  margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); }
.dark .eyebrow { color: var(--gold); }
.lede { font-size: 18px; line-height: 1.65; max-width: 60ch; color: var(--slate); }
.dark .lede { color: var(--mist); }
.muted { color: var(--slate); font-size: 14px; }
.dark .muted { color: var(--mist); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 8px 26px; box-sizing: border-box;
  border-radius: 6px; border: 1.5px solid var(--signal); background: var(--signal); color: var(--ink);
  font: 700 14px/1 var(--text); letter-spacing: 0.07em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn.ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn.ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.line { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--paper); }
.btn-sm { min-height: 38px; padding: 6px 18px; font-size: 12.5px; white-space: nowrap; }
.btn[disabled] { opacity: .5; cursor: default; }
.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- en-tête commun ---------- */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 50; background: var(--ink); color: var(--paper); padding-top: env(safe-area-inset-top, 0px); }
.hdr-in { height: var(--hdr); display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; min-width: 0; }
.brand img { height: 36px; width: auto; display: block; }
.brand-plan { padding-left: 16px; border-left: 1px solid rgba(255,255,255,0.28); font-family: var(--display); font-size: 20px; white-space: nowrap; }
.tabs { display: flex; gap: 32px; font-size: 15px; font-weight: 500; }
.tabs a { text-decoration: none; padding-block: 8px; border-bottom: 2px solid transparent; color: var(--mist); }
.tabs a:hover { color: var(--paper); }
.tabs a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--gold); }
.hdr-end { display: flex; align-items: center; gap: 14px; }
main { padding-top: calc(var(--hdr) + env(safe-area-inset-top, 0px)); }

/* menu du compte */
.me { position: relative; }
.me-btn { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.4); background: transparent; color: var(--paper); font: 700 13px/1 var(--text); letter-spacing: 0.04em; cursor: pointer; }
.me-btn:hover, .me-btn[aria-expanded="true"] { border-color: var(--gold); color: var(--gold); }
.me-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px; background: var(--paper); color: var(--ink); border-radius: 8px; box-shadow: 0 18px 48px rgba(13,18,69,0.28); padding: 8px; z-index: 60; }
.me-menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.me-menu .who b { display: block; font-size: 15px; }
.me-menu .who span { font-size: 13px; color: var(--slate); }
.me-menu a, .me-menu button { display: block; width: 100%; box-sizing: border-box; text-align: left; padding: 10px 12px; border-radius: 6px; border: 0; background: none; font: 500 15px/1.3 var(--text); color: var(--ink); text-decoration: none; cursor: pointer; }
.me-menu a:hover, .me-menu button:hover { background: var(--haze); }

/* ---------- bandeau d'ouverture des pages ---------- */
.band { position: relative; overflow: clip; background: var(--ink); color: var(--paper); padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.band::after { content: ""; position: absolute; right: -60px; top: -40px; width: 420px; height: 420px; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.13) 1.5px, transparent 1.7px); background-size: 11px 11px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent); }
.band .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; }
.band h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.06; max-width: 22ch; }
.band .lede { max-width: 62ch; }

/* ---------- pied de page ---------- */
.foot { background: var(--ink); color: var(--mist); border-top: 1px solid rgba(255,255,255,0.12); padding-block: 40px; font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.foot img { height: 32px; width: auto; display: block; }

/* ---------- formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field > .lab { font-size: 14px; font-weight: 700; color: var(--ink); }
.input, select.input, textarea.input {
  box-sizing: border-box; width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 6px; border: 1.5px solid var(--line);
  background: var(--paper); color: var(--ink); font: 400 16px/1.4 var(--text);
}
textarea.input { min-height: 112px; resize: vertical; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(240,130,45,0.35); }
.err { color: var(--late); font-size: 14px; font-weight: 600; }

/* ---------- message court ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--tabbar) + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); z-index: 70; max-width: min(520px, calc(100vw - 32px)); padding: 14px 20px; border-radius: 6px; background: var(--ink); color: var(--paper); font-size: 15px; box-shadow: 0 16px 40px rgba(0,0,0,0.3); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--late); }

/* ---------- petits écrans : onglets en barre basse ---------- */
@media (max-width: 960px) {
  :root { --tabbar: 60px; }
  body { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom, 0px)); }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: var(--tabbar); padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--ink); border-top: 1px solid rgba(255,255,255,0.14); gap: 0; justify-content: space-around; align-items: stretch; font-size: 13px; font-weight: 600; }
  .tabs a { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 4px; border-bottom: 0; border-top: 3px solid transparent; }
  .tabs a[aria-current="page"] { border-top-color: var(--gold); border-bottom: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand-plan { display: none; }
  .brand img { height: 30px; }
  .hdr-in, .hdr-end { gap: 10px; }
  .hdr .btn-sm { padding-inline: 12px; font-size: 11.5px; letter-spacing: .05em; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }
