/* ============================================================
   commun.css – Styles partagés par toutes les pages vitrines
   (variables, reset, boutons, navigation, footer)
   ============================================================ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --bg: #f1f3ea;
  --ink: #0a0a0a;
  --muted: #5d6155;
  --lime: #c6f400;
  --red: #ff1a0a;
  --violet: #6d28d9;
  --card: #fff;
  --soft: #eceee3;
  --radius: 14px;
  --mono: "DM Mono", ui-monospace, monospace;
}

/* ── Reset et base ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
}
section {
  padding: 64px 0;
}

/* ── Conteneur centré ───────────────────────────────────────── */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Boutons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font:
    600 14px "Outfit",
    system-ui,
    sans-serif;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-red {
  background: var(--red);
  color: #fff;
}
.btn-white {
  background: #fff;
  color: var(--ink);
  border-color: #d9dccf;
}
.btn-black {
  background: var(--ink);
  color: #fff;
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  background: var(--ink);
  color: #fff;
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.logo i {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--lime);
  display: grid;
  place-items: center;
  color: var(--ink);
  font-style: normal;
  font-size: 14px;
}
.nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 14px;
}
.nav ul a {
  opacity: 0.75;
}
.nav ul a:hover {
  opacity: 1;
}
.nav ul a[aria-current] {
  opacity: 1;
  border-bottom: 2px solid var(--lime);
  padding-bottom: 4px;
}
.nav .actions {
  display: flex;
  gap: 10px;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--ink);
  color: #fff;
  padding: 28px 0;
  font-size: 12px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
footer small {
  display: block;
  opacity: 0.6;
  margin-top: 4px;
}
footer a:hover {
  text-decoration: underline;
}

/* ── Responsive et accessibilité ────────────────────────────── */
@media (max-width: 860px) {
  .nav ul {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/*choix de la langue*/
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
}
.lang-switch a {
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0.65;
}
.lang-switch a:hover {
  opacity: 1;
}
.lang-switch a[aria-current] {
  opacity: 1;
  background: var(--lime);
  color: var(--ink);
}
