:root {
  --bg-frame: #0b1a33;
  --bg-body: #102748;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f3efe6;
  --text-secondary: rgba(243, 239, 230, 0.72);
  --text-muted: rgba(243, 239, 230, 0.58);
  --maxw: 980px;
  --navy-1: var(--bg-frame);
  --navy-2: rgba(255, 255, 255, 0.03);
  --panel-border: rgba(255, 255, 255, 0.08);
}

@media (min-width: 720px) {
  .contact-actions {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .btn-action {
    text-align: center;
  }
}

/* Base (anti-overflow + médias) */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.no-scroll {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

body {
  margin: 0;
  background: var(--bg-body);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* Layout */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-frame);
}

/* Mobile drawer (overlay, no layout shift) */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 26, 51, 0.45);
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: 999;
}

.drawer-overlay.is-open {
  opacity: 1;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(86vw, 360px);
  background: rgba(11, 26, 51, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateX(102%);
  transition: transform 260ms ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.drawer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  text-align: left;
  text-decoration: none;
  color: inherit;
}

.drawer-mark {
  height: 56px;
  width: auto;
  display: block;
}

.drawer-tagline {
  font-size: 12px;
  letter-spacing: 0.03em;
  opacity: 0.8;
}

.drawer-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  color: inherit;
  font-size: 24px;
  line-height: 1;
}

.drawer-close:focus-visible {
  outline: 2px solid rgba(243, 239, 230, 0.5);
  outline-offset: 2px;
}

.drawer-nav {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-nav a {
  text-decoration: underline;
  text-underline-offset: 6px;
  font-size: 18px;
}

.drawer-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-affiliation {
  opacity: 0.9;
  text-decoration: underline;
  text-underline-offset: 6px;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .drawer-overlay {
    background: rgba(11, 26, 51, 0.65);
  }

  .drawer {
    background: rgba(11, 26, 51, 0.92);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.header-top {
  display: flex;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch-mobile {
  display: none;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.lang-switch-mobile a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 10px 8px;
  line-height: 24px;
}

.lang-switch-mobile a:focus-visible {
  outline: 2px solid rgba(243, 239, 230, 0.5);
  outline-offset: 2px;
}

.lang-switch-mobile a[aria-current] {
  font-weight: 700;
  text-decoration-thickness: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-signature {
  display: block;
  height: 36px;
  width: auto;
}

.brand-monogram {
  display: none;
}

.hamburger {
  display: none;
}

.header-tagline {
  display: none;
}

.mobile-menu {
  display: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.lang-switch a {
  color: inherit;
}

/* Header & navigation (accessibilité + hit area) */
.site-nav a,
.lang-switch a {
  display: inline-block;
  padding: 8px 0;
}

.site-nav a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-nav a[aria-current="page"] {
  text-decoration-thickness: 2px;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  opacity: 0.85;
}

/* Typography & rhythm */
.hero {
  padding: 40px 0 28px;
}

.hero h1 {
  margin-bottom: 5px;
}

h1 {
  margin: 0 0 10px;
  font-size: 32px;
  letter-spacing: 0.02em;
}

h2 {
  margin: 28px 0 12px;
  font-size: 18px;
  letter-spacing: 0.01em;
}

h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

p {
  margin: 0 0 12px;
}

.tagline {
  margin: 0 0 14px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

.intro {
  max-width: 70ch;
  color: var(--text);
}

.meta {
  color: var(--text-secondary);
}

.page {
  padding: 36px 0 40px;
}

.contact-actions {
  margin-top: 24px;
  display: grid;
  gap: 10px;
  max-width: 520px;
}

.btn-action {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  border-radius: 8px;
}

.btn-action:focus-visible {
  outline: 2px solid rgba(243, 239, 230, 0.5);
  outline-offset: 2px;
}

.btn-action:active {
  transform: translateY(1px);
}

.contact-actions-status {
  margin-top: 8px;
  font-size: 0.95em;
  opacity: 0.85;
  min-height: 1.2em;
}

/* Cards (home) */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 14px;
}

.audience-block {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
}

/* Lists */
ul,
ol {
  margin: 0 0 16px;
  padding-left: 18px;
}

ul li,
ol li {
  margin: 0 0 6px;
}

.cta {
  margin-top: 18px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  background: var(--bg-frame);
}

.footer-inner {
  padding: 18px 0;
  min-height: 78px;
}


.site-footer-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-affiliation {
  color: var(--text-secondary);
  opacity: 0.9;
  line-height: 1.2;
}

.footer-olt-mark {
  height: 22px;
  width: auto;
  display: inline-block;
  align-self: center;
  flex: 0 0 auto;
  transform: translateY(2px);
}

.footer-line a {
  overflow-wrap: anywhere;
}

.wooggaa-link {
  text-decoration: none;
}

.wooggaa-wordmark {
  height: 18px;
  width: auto;
  vertical-align: middle;
}

.label {
  color: var(--text-muted);
}

/* Breakpoints */
@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }
}

/* Breakpoint: 1024px (desktop minor) */
@media (max-width: 1024px) {
  .container {
    padding: 0 18px;
  }
}

/* Breakpoint: 768px (tablet) */
@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .site-header {
    margin-bottom: 24px;
  }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 8px;
    padding: 20px 0 12px;
  }

  .header-top {
    display: contents;
  }

  .header-top > .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding-top: 10px;
  }

  .header-actions .hamburger {
    order: 1;
  }

  .header-actions .lang-switch-mobile {
    order: 2;
    font-size: 12px;
    opacity: 0.85;
    line-height: 1.2;
  }

  .header-right {
    display: none;
  }

  .brand-signature {
    display: none;
  }

  .brand-monogram {
    display: inline-block;
    height: 56px;
    width: auto;
    transform: translateY(25px);
  }

  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    border-radius: 8px;
    padding: 10px 12px;
    line-height: 1;
    font-size: 18px;
  }

  .lang-switch-mobile {
    display: inline-flex;
  }

  .hamburger:focus-visible {
    outline: 2px solid rgba(243, 239, 230, 0.5);
    outline-offset: 2px;
  }

  .header-tagline {
    display: block;
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 0.03em;
    white-space: nowrap;
    transform: translateY(-2px);
  }

  .nav-links a {
    display: block;
    padding: 14px 16px;
    text-decoration: underline;
    text-underline-offset: 3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-menu-sep {
    height: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-menu .lang-switch {
    display: block;
    padding: 16px;
    text-align: right;
    font-size: 13px;
    color: var(--text-secondary);
  }

  .hero {
    padding: 32px 0 22px;
  }

  .hero h1 {
    margin-top: 32px;
    margin-bottom: 7px;
  }

  .hero .tagline {
    margin-top: 3px;
    margin-bottom: 20px;
  }

  .hero .intro {
    margin-bottom: 48px;
  }

  .page {
    padding: 30px 0 34px;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
  }

  .page h1,
  .page h2,
  .page h3 {
    margin-top: 0;
    margin-bottom: 14px;
  }

  .page p {
    line-height: 1.6;
    margin-bottom: 18px;
  }

  .page ul,
  .page ol {
    margin: 12px 0 20px;
    padding-left: 18px;
  }

  .page li {
    margin-bottom: 10px;
    line-height: 1.55;
  }

  .page .cta {
    margin-top: 24px;
    margin-bottom: 16px;
  }

  .page h2 {
    margin-top: 26px;
    padding: 16px 16px;
    border: 1px solid var(--panel-border);
    border-radius: 8px 8px 0 0;
    background: transparent;
  }

  .page h2:first-of-type {
    margin-top: 0;
  }

  .page h2 + p,
  .page h2 + ul,
  .page h2 + ol {
    margin-top: -10px;
    padding: 0 16px 16px;
    border: 1px solid var(--panel-border);
    border-top: 0;
    border-radius: 0 0 8px 8px;
  }

  .page h2:nth-of-type(even) {
    background: var(--navy-2);
  }

  .page h2:nth-of-type(even) + p,
  .page h2:nth-of-type(even) + ul,
  .page h2:nth-of-type(even) + ol {
    background: var(--navy-2);
  }

  .audience-grid {
    gap: 24px;
  }

  .audience-block {
    padding: 20px;
  }

  main > section.container {
    margin-bottom: 48px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    margin: 24px 0 12px;
  }

  .tagline {
    letter-spacing: 0.04em;
  }
}

/* Breakpoint: 520px (mobile) */
@media (max-width: 520px) {
  .container {
    padding: 0 24px;
  }

  .header-inner {
    padding: 14px 0;
    gap: 12px;
  }

  .brand-signature {
    height: 34px;
  }

  .header-right {
    gap: 10px;
  }

  .site-nav {
    gap: 10px;
  }

  .site-nav a,
  .lang-switch a {
    padding: 10px 2px;
  }

  .hero {
    padding: 26px 0 18px;
  }

  h1 {
    font-size: 24px;
    letter-spacing: 0.015em;
  }

  h2 {
    font-size: 17px;
    margin: 22px 0 10px;
  }

  h3 {
    font-size: 15px;
  }

  .tagline {
    letter-spacing: 0.03em;
  }

  .audience-block {
    padding: 16px;
  }

  ul,
  ol {
    padding-left: 16px;
  }
}

/* Breakpoint: 380px (small mobile) */
@media (max-width: 380px) {
  .container {
    padding: 0 24px;
  }

  .brand-signature {
    height: 32px;
  }

  .site-nav {
    gap: 8px;
  }

  h1 {
    font-size: 22px;
  }

  .tagline {
    letter-spacing: 0.02em;
  }

  .audience-block {
    padding: 14px;
  }
}
