/* --- Polices locales Poppins --- */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --surface: #141414;
  --surface-2: #202020;
  --text: #f3f3f3;
  --muted: #a8a8a8;
  --red: #f20505;
  --red-dark: #b80404;
  --border: rgba(255, 255, 255, 0.11);
  --font: 'Poppins', system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --nav-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--red) var(--bg);
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6rem;
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--text);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.red {
  color: var(--red);
}

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

.small {
  font-size: 0.9rem;
}

.wrap {
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
}

.section {
  padding-block: 4.5rem;
}

.section--alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
}

.pill {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: rgba(242, 5, 5, 0.14);
  color: var(--red);
  border: 1px solid rgba(242, 5, 5, 0.45);
  margin-bottom: 0.75rem;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--red);
  color: #fff;
}

.btn--primary:hover {
  background: var(--red-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn--outline:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn--red-outline {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}

.btn--red-outline:hover {
  background: var(--red);
  color: #fff;
}

.btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn--block {
  width: 100%;
}

/* Navbar */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
}

.brand img {
  border-radius: 50%;
}

.brand__tag {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.35rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
}

/* Hero */
.hero {
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 4rem;
}

.hero__card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2.25rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.hero__logo {
  border-radius: 14px;
  margin-inline: auto;
}

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 3rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* Grilles & Cartes */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 5, 5, 0.5);
}

.card--featured {
  border: 2px solid var(--red);
}

.price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1.1;
}

.price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}

.features {
  list-style: none;
  margin: 1rem 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--muted);
  flex-grow: 1;
}

.note-box {
  margin-top: 1.5rem;
  padding: 1.15rem 1.4rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  border-left: 4px solid var(--red);
}

/* Portfolio */
.portfolio-img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 1rem;
  background: var(--surface);
  padding: 0.75rem;
  border-radius: 12px;
}

/* Encart sobriété & liberté outils */
.freedom-box {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.freedom-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.contact-links {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 2px solid var(--red);
  padding-top: 3rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--red);
}

.site-footer__bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Retour en haut */
.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--red);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, background-color 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.to-top:hover {
  background: var(--red-dark);
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .burger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem 1rem 1.5rem;
    background: var(--surface-2);
    border-bottom: 1px solid var(--red);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero__card,
  .grid-3,
  .freedom-box,
  .contact__grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .hero__card {
    text-align: center;
    padding: 1.5rem;
  }

  .hero__actions {
    justify-content: center;
  }
}

@media (max-width: 540px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}