/* ========================
   VARIABLES & BASE
======================== */
:root {
  --bar-h: 90px;
  --max-w: 900px;
  --text: #222222;
  --muted: #333333;
  --header-bg: rgba(255, 255, 255, 0.9);
  --footer-bg: rgba(255, 255, 255, 0.85);
  --link: inherit;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --text: #f0f0f0;
    --muted: #dddddd;
    --header-bg: rgba(30, 30, 30, 0.85);
    --footer-bg: rgba(30, 30, 30, 0.85);
  }
}

/* ========================
   ACCESSIBILITÉ UTILITAIRES
======================== */

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 99999;
  font-size: 1rem;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* Texte visuellement masqué mais accessible aux lecteurs d'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visible */
:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
}

/* ========================
   BASE TYPO + RESET
======================== */
html, body {
  height: 100%;
}
body {
  margin: 0;
  font-family: 'Courier', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
h1, h2, h3, h4 {
  font-weight: 700;
  margin: 0.5em 0;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ========================
   HEADER & FOOTER
======================== */
#header, #footer {
  position: fixed;
  left: 0;
  width: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
}
#header {
  top: 0;
  transition: background 1s ease;
}
#header.home {
  background: var(--header-bg);
}
#header.not-home {
  background: #000;
}
#footer {
  bottom: 0;
  height: var(--bar-h);
  justify-content: center;
  background: var(--footer-bg);
  color: var(--text);
  backdrop-filter: blur(4px);
}
.footer-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-lang {
  display: flex;
  gap: 0.75rem;
}
.footer-lang a {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 2px;
  transition: color 0.2s;
}
.footer-lang a:hover {
  color: var(--text);
  text-decoration: none;
}
.footer-lang a.lang-active {
  color: var(--text);
  border-bottom: 2px solid currentColor;
}

/* Contenu interne du header */
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: .5rem 1rem;
}

/* Logo */
.logo {
  display: inline-block;
  width: 120px;
  height: 60px;
  aspect-ratio: 1 / 1;
  background: url('./asymetrik-ask-logo-wot.webp') center/contain no-repeat;
}

/* Menu */
nav .menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav .menu a {
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #ffffff;
}

/* Header timer */
.header-timer { font-weight: 700; }

/* Padding pour les sections sous header fixe */
.fullpage {
  padding-top: var(--bar-h);
  padding-bottom: var(--bar-h);
  box-sizing: border-box;
}

/* ========================
   SECTIONS
======================== */
.section {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
  text-align: center;
}

#re { font-weight: bold; }
.re { font-size: 3em; }

.manifesto {
  font-family: "Courier", monospace;
  font-size: 0.75em;
  text-align: left;
  width: 75%;
  margin: 0 auto;
}
.manifesto img {
  display: block;
  margin: 0 auto;
  opacity: 0.75;
}

/* Section contact */
#section4 .intro {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#section4 .content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 80%;
  height: 100%;
}
#section4 .image-side {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
#section4 .image-side img {
  max-height: 80%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
#section4 .text-side {
  flex: 1;
  padding: 1em;
  text-align: justify;
  font-family: "Courier", monospace;
  font-size: 0.75em;
}

/* Navigation dots */
.fp-slidesNav.bottom { bottom: 100px; color: #000; }
#infoMenu li a { color: #fff; }
#section2 h1 { color: var(--muted); }

/* ========================
   FORMULAIRE
======================== */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
}
label {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}
input, textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}
textarea { resize: vertical; }
button {
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  background-color: #222;
  color: #fff;
  cursor: pointer;
}
button:hover { background-color: #555; }

.form-error {
  color: #c0392b;
  font-weight: 500;
}

/* ========================
   ACCESSIBILITÉ MOUVEMENT
======================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 1024px) {
  .manifesto { width: 85%; }
}

@media (max-width: 768px) {
  :root { --bar-h: 72px; }
  .header-inner { gap: .5rem; }
  .logo { width: 48px; height: 48px; }
  nav .menu { gap: .75rem; }
  h1 { font-size: 2.5em; }
  .manifesto { width: 90%; }
  .form-row { flex-direction: column; }
}

@media (max-width: 480px) {
  .manifesto { width: 100%; }
  h1 { font-size: 2em; }
  .form-container { padding: 10px; }
}
