@import url('fonts.css');

:root {
  --text: #121212;
  --text-soft: #3a3a3a;
  --border: #e3e3e3;
  --bg: #ffffff;
  --bg-soft: #f3f3f3;
  --accent: #e8622c;
  --black: #000000;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- En-tête ---------- */
.header {
  position: relative;
  max-width: 1920px;
  margin: 0 auto;
  padding: 40px 80px 0;
}
.header__top {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.logo { display: inline-flex; align-items: center; }

/* Logo : emblème + nom sur deux lignes. Tout est en em : la taille se règle avec font-size. */
.brand { display: inline-flex; align-items: center; gap: .5em; font-size: 28px; line-height: 1; color: var(--text); }
.brand__mark { width: 1.6em; height: 1.6em; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; align-items: flex-start; gap: .22em; }
.brand__name { font-weight: 700; letter-spacing: .05em; white-space: nowrap; }
.brand__tag { font-size: .4em; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--text-soft); white-space: nowrap; }

.header__icons {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 26px;
}
.header__icons a { display: flex; padding: 2px; }
.header__icons svg { width: 24px; height: 24px; }

.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 25px;
  padding: 62px 0 12px;
}
.nav a {
  font-size: 22px;
  color: var(--text-soft);
  letter-spacing: .1px;
}
.nav a:hover,
.nav a.active { color: var(--text); }

/* Sous-catégories : menu déroulant sous la catégorie parente */
.nav__group { position: relative; }
.nav__sub {
  display: none;
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  min-width: 240px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
  white-space: nowrap;
}
.nav__group:hover .nav__sub,
.nav__group:focus-within .nav__sub { display: block; }
.nav__sub a { display: block; font-size: 17px; padding: 5px 0; }

/* ---------- Slider hero ---------- */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: var(--bg-soft);
}
.hero__slide {
  position: absolute;
  inset: 0;
  /* Fond sur le slide lui-même : sans lui, le « multiply » des photos ne s'applique pas pendant le fondu. */
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility .5s;
}
.hero__slide.active { opacity: 1; visibility: visible; }
.hero__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 84px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero__tag {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero__title {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero__text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 460px;
  margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.btn {
  display: inline-block;
  background: var(--black);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 23px 30px;
  border-radius: 14px;
  transition: opacity .2s;
}
.btn:hover { opacity: .85; }
.hero__link { font-size: 16px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.hero__link:hover { color: var(--accent); }

.hero__media { justify-self: center; width: min(100%, 430px); }
/* Les photos produit sont sur fond blanc : « multiply » fond le blanc dans le gris du slide. */
.hero__media img { width: 100%; height: auto; mix-blend-mode: multiply; }

.hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-top: -34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.hero__arrow:hover { border-color: var(--text); }
.hero__arrow svg { width: 18px; height: 18px; }
.hero__arrow--prev { left: 20px; }
.hero__arrow--next { right: 20px; }

.hero__dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
}
.hero__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #c4c4c4;
  cursor: pointer;
}
.hero__dots button.active { background: var(--text); }

/* ---------- Avantages : bandeau de trois atouts ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  margin: 70px auto;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 34px 30px;
}
.feature + .feature { border-left: 1px solid var(--border); }
.feature__icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text);
}
.feature__icon svg { width: 28px; height: 28px; }
.feature__icon i { font-size: 22px; }
.feature__icon svg { fill: currentColor; }
.feature h3 { font-size: 18px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.feature p { font-size: 15px; line-height: 1.6; color: var(--text-soft); }

/* ---------- FAQ ---------- */
.faq {
  max-width: 1910px;
  margin: 0 auto;
  padding: 40px 55px 100px;
}
.faq h2 {
  font-size: 40px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -.5px;
  margin-bottom: 38px;
}
.faq details { border-top: 1px solid #121212; }
.faq details:last-child { border-bottom: 1px solid #121212; }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 0;
  font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 14px; height: 14px; transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding: 0 0 20px; font-size: 16px; line-height: 1.7; color: var(--text-soft); }

/* ---------- Pages légales ---------- */
.policy {
  max-width: 780px;
  margin: 0 auto;
  padding: 70px 18px 90px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-soft);
}
.policy h1 {
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 50px;
}
.policy h2 { font-size: 21px; color: var(--text); margin: 34px 0 10px; }
.policy p, .policy ul, .policy ol { margin-bottom: 14px; }
.policy ul, .policy ol { padding-left: 24px; }
.policy li { margin-bottom: 8px; }
.policy li > ul { margin: 8px 0 0; }
.policy a { text-decoration: underline; }
.policy .demo-note {
  background: #fff4ec;
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
}

/* ---------- Footer ---------- */
.footer {
  max-width: 1910px;
  margin: 0 auto;
  padding: 100px 55px 30px;
  text-align: center;
  font-size: 15px;
}
.footer__info {
  max-width: 330px;
  margin: 0 auto;
  line-height: 1.2;
}
.footer__info p { margin-bottom: 18px; }
.footer__info .footer__legal { margin-top: 72px; }
.footer__link {
  display: block;
  width: fit-content;
  font-size: 18px;
  margin: 100px auto 120px;
}
.footer__link:hover { text-decoration: underline; }
.footer__logo { display: flex; justify-content: center; width: 100%; }
.footer__logo .brand { font-size: 32px; }

.footer__newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
  margin-top: 80px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer__newsletter h3 { font-size: 30px; font-weight: 700; margin-bottom: 8px; }
.footer__newsletter p { font-size: 17px; line-height: 1.65; max-width: 540px; }
.newsletter-form { position: relative; }
.newsletter-form input {
  width: 100%;
  height: 74px;
  border: 1px solid #ddd;
  border-radius: 40px;
  padding: 0 70px 0 32px;
  font: inherit;
  font-size: 18px;
  outline: none;
}
.newsletter-form input:focus { border-color: #999; }
.newsletter-form button {
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer; display: flex;
}
.newsletter-form button svg { width: 26px; height: 26px; }

.footer__bottom {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 30px;
  align-items: center;
  padding-top: 28px;
  font-size: 15px;
  color: #555;
  text-align: left;
}
/* ---------- Responsive ---------- */
@media (max-width: 989px) {
  .hero__inner { padding: 0 70px 24px; gap: 24px; }
  .hero__title { font-size: 34px; }
  .header { padding: 24px 16px 0; }
  .nav { padding-top: 30px; gap: 4px 18px; }
  .nav a { font-size: 17px; }
  .header__icons { gap: 14px; }
  .features { grid-template-columns: 1fr; margin: 50px 16px; }
  .feature { padding: 24px 6px; }
  .feature + .feature { border-left: none; border-top: 1px solid var(--border); }
}
/* Menu mobile */
.header__left { display: none; }
.menu-toggle { background: none; border: none; cursor: pointer; display: flex; padding: 2px; color: inherit; }
.menu-toggle svg, .header__left svg { width: 24px; height: 24px; }
/* Éléments propres au panneau mobile : masqués sur ordinateur */
.nav__head, .nav__foot, .nav__sub-toggle, .nav-backdrop { display: none; }
@media (max-width: 749px) {
  .header { padding: 0 18px; border-bottom: 1px solid var(--border); }
  .header__top { height: 74px; justify-content: center; }
  .header__left {
    display: flex; gap: 26px; align-items: center;
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  }
  .header__left a { display: flex; padding: 2px; }
  .header__icons .icon-search { display: none; }
  .brand { font-size: 20px; }

  /* Panneau latéral : logo en tête, liste séparée par des filets, sous-catégories repliables */
  .nav {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(86%, 360px);
    z-index: 100;
    background: #fff;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform .3s ease;
  }
  .nav.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0, 0, 0, .18); }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .nav.open + .nav-backdrop { opacity: 1; visibility: visible; }

  .nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav .nav__head a { padding: 0; border: none; }
  .nav__head .brand { font-size: 19px; }
  .nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: none;
    color: var(--text);
    cursor: pointer;
  }
  .nav__close svg { width: 16px; height: 16px; }

  .nav a {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav a.active { color: var(--accent); }
  .nav__group { display: grid; grid-template-columns: 1fr auto; }
  .nav__sub-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    border: none;
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: none;
    color: var(--text);
    cursor: pointer;
  }
  .nav__sub-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
  .nav__group.open .nav__sub-toggle svg { transform: rotate(180deg); }
  .nav__sub,
  .nav__group:hover .nav__sub,
  .nav__group:focus-within .nav__sub {
    display: none;
    grid-column: 1 / -1;
    position: static;
    transform: none;
    min-width: 0;
    padding: 6px 0;
    border: none;
    border-bottom: 1px solid var(--border);
    box-shadow: none;
    background: var(--bg-soft);
    white-space: normal;
  }
  .nav__group.open .nav__sub { display: block; }
  .nav__sub a { font-size: 15px; font-weight: 400; color: var(--text-soft); padding: 10px 20px 10px 34px; border: none; }

  .nav__foot { display: block; margin-top: auto; padding: 14px 0 20px; }
  .nav__foot a { font-size: 15px; font-weight: 400; color: var(--text-soft); padding: 9px 20px; border: none; }

  .hero { height: 600px; }
  .hero__inner { grid-template-columns: 1fr; gap: 18px; padding: 0 22px 40px; text-align: center; }
  .hero__media { order: -1; width: 210px; }
  .hero__title { font-size: 29px; margin-bottom: 12px; }
  .hero__text { font-size: 16px; margin: 0 auto 22px; }
  .hero__actions { justify-content: center; }
  .hero__arrow { display: none; }
  .btn { padding: 22px 30px; }
  .faq { padding: 40px 18px 60px; }
  .faq h2 { font-size: 30px; }
  .footer { padding: 60px 18px 24px; }
  .footer__link { margin: 60px 0 70px; }
  .footer__logo .brand { font-size: 24px; }
  .footer__newsletter { grid-template-columns: 1fr; gap: 24px; margin-top: 50px; }
  .footer__newsletter h3 { font-size: 24px; }
  .newsletter-form input { height: 60px; }
  .footer__bottom { grid-template-columns: 1fr; gap: 14px; text-align: left; }
  .footer__bottom > span { display: none; }
}
