/* ==========================================================================
   Aeris — shared foundations: tokens, reset, buttons, header, footer
   ========================================================================== */

:root {
  /* Brand */
  --navy-900: #0a2233;
  --navy-800: #0a2a40;
  --navy-700: #0a3d62;
  --navy-600: #072c47;
  --blue-500: #2b8fc7;
  --blue-400: #5fb0e6;
  --blue-300: #7fc4ef;

  /* Text */
  --ink: #0a2a40;
  --ink-soft: #324d61;
  --ink-muted: #4a6276;
  --ink-dim: #5b7286;
  --ink-faint: #7e93a4;

  /* Surfaces & lines */
  --white: #fff;
  --tint: #f7fafd;
  --tint-strip: #fbfdfe;
  --line: #e7eef5;
  --line-soft: #eef3f8;
  --line-faq: #e1eaf2;
  --line-thumb: #d5e3ef;

  /* Accents */
  --green: #1c9d6b;
  --amber: #f6a623;

  /* Type */
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-display: 'Schibsted Grotesk', sans-serif;

  /* Rhythm */
  --gutter: 22px;
  --section-y: clamp(64px, 9vw, 120px);
  --radius-pill: 999px;
}

/* --- Reset ---------------------------------------------------------------- */

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

::selection { background: #cfe6f7; color: var(--ink); }

a { color: var(--navy-700); }
a:hover { color: var(--blue-500); }

button, input { font-family: inherit; }
input::placeholder { color: #9db0c0; }

:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }

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

/* Must beat the component display rules below (.drawer is display:flex). */
[hidden] { display: none !important; }

h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Layout -------------------------------------------------------------- */

.container { max-width: 1200px; margin: 0 auto; }
.container--wide  { max-width: 1240px; }
.container--narrow { max-width: 1040px; }
.container--tight { max-width: 820px; }
.container--cta   { max-width: 760px; }

.section { padding: var(--section-y) var(--gutter); }
.section--tint { background: var(--tint); border-top: 1px solid var(--line); }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.8vw, 48px);
  letter-spacing: -.025em;
  line-height: 1.04;
  max-width: 520px;
  text-wrap: balance;
}

.accent { color: var(--blue-500); }
.sep { color: #c3d2de; }

.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--green { background: var(--green); }

/* --- Motion -------------------------------------------------------------- */

@keyframes aerisPulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes aerisSlideR { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes aerisSlideL { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes aerisFade { from { opacity: 0; } to { opacity: 1; } }

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
[data-reveal].rv-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* --- Responsive visibility (header breakpoint) ---------------------------- */

.only-desktop { display: none !important; }
.only-mobile { display: inline-flex !important; }

@media (min-width: 920px) {
  .only-desktop { display: inline-flex !important; }
  .only-mobile { display: none !important; }
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 16.5px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s, color .15s;
}

.btn--primary {
  background: var(--navy-700);
  color: var(--white);
  padding: 17px 28px;
  box-shadow: 0 12px 28px rgba(10, 61, 98, .22);
}
.btn--primary:hover {
  background: var(--navy-600);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--split { gap: 12px; }

.btn__price {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, .25);
  font-variant-numeric: tabular-nums;
}

.btn--ghost {
  background: var(--white);
  color: var(--navy-700);
  font-size: 16px;
  padding: 16px 26px;
  border: 1.5px solid var(--line-thumb);
}
.btn--ghost:hover {
  border-color: #9cc6e6;
  background: #f3f9fe;
  color: var(--navy-700);
  transform: none;
}

.btn--sm {
  font-size: 14.5px;
  padding: 11px 20px;
  gap: 8px;
  flex: none;
  box-shadow: 0 6px 16px rgba(10, 61, 98, .16);
}
.btn--sm:hover { transform: none; }

.btn--block {
  /* `flex: 1` sert dans une rangée de boutons ; `width: 100%` sert dans un
   * conteneur bloc — la boîte de prix de la fiche produit, par exemple, où le
   * bouton restait à sa largeur de contenu. En contexte flex, flex-basis: 0%
   * l'emporte, les deux déclarations ne se contredisent donc jamais. */
  flex: 1;
  width: 100%;
  min-width: 210px;
  justify-content: center;
  gap: 11px;
  padding: 17px 26px;
  box-shadow: 0 10px 26px rgba(10, 61, 98, .2);
}
.btn.is-disabled,
.btn:disabled {
  opacity: .62;
  cursor: not-allowed;
  box-shadow: none;
  filter: saturate(.55);
}

.btn--invert {
  background: var(--white);
  color: var(--navy-700);
  font-weight: 700;
  padding: 17px 32px;
}
.btn--invert:hover { color: var(--navy-700); transform: translateY(-2px); }

/* --- Icon buttons -------------------------------------------------------- */

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  flex: none;
  border: 1px solid #e1eaf2;
  border-radius: 12px;
  background: var(--white);
  color: var(--navy-700);
  cursor: pointer;
  transition: background .15s;
}
.icon-btn:hover { background: #eef5fb; }

.icon-btn--sm { width: 38px; height: 38px; border-radius: 10px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  font-family: var(--font-body);
}

.topbar {
  background: linear-gradient(90deg, var(--navy-700), #0d4f80);
  color: #dcebf8;
}

.topbar__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 9px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.topbar__perk { display: inline-flex; align-items: center; gap: 8px; }

.topbar__timer {
  align-items: center;
  gap: 7px;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, .2);
  color: #b9d7f0;
}
.topbar__timer strong {
  color: var(--white);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.navbar {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.navbar.is-scrolled { box-shadow: 0 8px 30px rgba(10, 61, 98, .1); }

.navbar__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 13px var(--gutter);
  display: flex;
  align-items: center;
  gap: 18px;
}

.navbar__spacer { flex: 1; }

.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.logo img { width: 120px; height: 32px; object-fit: contain; }

.logo__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -.02em;
  color: var(--ink);
}
.logo__dot { color: var(--blue-500); }

.nav { align-items: center; gap: 2px; margin-left: 10px; }

.nav__link {
  position: relative;
  text-decoration: none;
  color: #3a5266;
  font-weight: 600;
  font-size: 15px;
  padding: 9px 14px;
  border-radius: 10px;
  transition: color .15s, background .15s;
}
.nav__link:hover { color: var(--ink); background: #eef5fb; }

.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--blue-500);
  border-radius: 2px;
}

.phone { align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.phone:hover { color: var(--ink); }

.phone__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #eef5fb;
  border-radius: 50%;
  flex: none;
}
.phone__text { line-height: 1.15; }
.phone__label { display: block; font-size: 11px; font-weight: 600; color: var(--ink-faint); }
.phone__number { font-size: 15px; font-weight: 700; }

.cart-btn { position: relative; }

.cart-btn__badge {
  position: absolute;
  top: -7px; right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--navy-700);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: 2px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Drawers (mobile menu + cart) ---------------------------------------- */

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(8, 30, 48, .45);
  z-index: 80;
  animation: aerisFade .25s both;
}

.drawer {
  position: fixed;
  top: 0; bottom: 0;
  z-index: 81;
  background: var(--white);
  box-shadow: 0 0 60px rgba(8, 30, 48, .25);
  display: flex;
  flex-direction: column;
}

.drawer--left {
  left: 0;
  width: min(86vw, 360px);
  animation: aerisSlideL .32s cubic-bezier(.4, 0, .2, 1) both;
}

.drawer--right {
  right: 0;
  width: min(92vw, 420px);
  background: var(--tint);
  animation: aerisSlideR .32s cubic-bezier(.4, 0, .2, 1) both;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.drawer__head--cart { background: var(--white); }

.drawer__nav { display: flex; flex-direction: column; padding: 10px 12px; gap: 2px; }

.drawer__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #15364c;
  font-weight: 600;
  font-size: 18px;
  padding: 14px;
  border-radius: 12px;
}
.drawer__nav a:hover { background: #eef5fb; color: #15364c; }

.drawer__foot {
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.drawer__foot .phone { display: flex; }
.drawer__foot .phone__icon { width: 40px; height: 40px; }
.drawer__foot .phone__text { line-height: 1.2; }
.drawer__foot .phone__label { font-size: 12px; color: var(--ink-faint); }
.drawer__foot .phone__number { font-size: 16px; }

/* --- Cart ---------------------------------------------------------------- */

.cart__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
}

.cart__body { flex: 1; overflow: auto; padding: 18px; }

.cart__items { display: flex; flex-direction: column; gap: 12px; }

.cart__item {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.cart__item-name { font-weight: 700; color: var(--ink); font-size: 15px; }
.cart__item-qty { font-size: 13px; color: var(--ink-faint); margin-top: 2px; }
.cart__item-price { font-weight: 700; color: var(--ink); font-size: 15px; }
.cart__item-body { flex: 1; min-width: 0; }

.cart__thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  flex: none;
  background: repeating-linear-gradient(135deg, #eaf2f9, #eaf2f9 8px, #e1ecf6 8px, #e1ecf6 16px);
}

.cart__empty { text-align: center; padding: 26px 8px 18px; }

.cart__empty-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #eef5fb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart__empty-title { font-weight: 700; color: var(--ink); font-size: 16px; }
.cart__empty-text { color: var(--ink-faint); font-size: 14px; margin-top: 4px; }

.cart__suggest {
  margin-top: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  text-align: left;
}
.cart__suggest .cart__thumb { width: 60px; height: 60px; }
.cart__suggest-text { flex: 1; min-width: 0; }
.cart__suggest-name { display: block; font-weight: 700; color: var(--ink); font-size: 15px; }
.cart__suggest-price { display: block; font-size: 14px; color: var(--navy-700); font-weight: 700; margin-top: 2px; }

.cart__suggest-btn {
  border: none;
  background: var(--navy-700);
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  flex: none;
}

.cart__foot {
  background: var(--white);
  border-top: 1px solid var(--line-soft);
  padding: 18px 20px;
}

.cart__subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  color: var(--ink-dim);
  font-size: 14px;
}
.cart__subtotal strong { font-weight: 800; color: var(--ink); font-size: 18px; }

.cart__shipping { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 14px; }

.cart__checkout {
  width: 100%;
  border: none;
  background: var(--navy-700);
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  padding: 15px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(10, 61, 98, .2);
  transition: background .15s;
}
.cart__checkout:hover { background: var(--navy-600); }

.cart__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
  color: var(--ink-faint);
  font-size: 12.5px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-900);
  color: #b9cad8;
  font-family: var(--font-body);
}

.site-footer .container { padding: 64px var(--gutter) 28px; }

.footer__cols { display: flex; flex-wrap: wrap; gap: 48px 56px; }

.footer__brand { flex: 1 1 300px; min-width: 260px; }

.footer__logo { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }

.footer__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--white);
}
.footer__dot { color: var(--blue-400); }

.footer__pitch {
  margin-bottom: 20px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #9fb3c4;
  max-width: 330px;
  text-wrap: pretty;
}

.footer__contact { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__contact a { display: flex; align-items: center; gap: 10px; color: #cfdded; text-decoration: none; }
.footer__contact a:hover { color: var(--white); }

.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #13344c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9fc4e3;
  text-decoration: none;
  transition: background .15s;
}
.footer__social a:hover { background: #184a68; color: #9fc4e3; }

.footer__col { display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.footer__col--shop { flex: 0 1 160px; }
.footer__col--help { flex: 0 1 170px; }
.footer__col a { color: #c4d3e0; text-decoration: none; }
.footer__col a:hover { color: var(--white); }

.footer__head {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #7e96aa;
  margin-bottom: 5px;
}

.footer__news { flex: 1 1 240px; min-width: 240px; }
.footer__news .footer__head { margin-bottom: 16px; }
.footer__news-text { margin-bottom: 14px; font-size: 14px; line-height: 1.55; color: #9fb3c4; }

.footer__form {
  display: flex;
  gap: 8px;
  background: #13344c;
  border: 1px solid #1d445f;
  border-radius: 12px;
  padding: 6px;
}
.footer__form input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--white);
  font-size: 14px;
  padding: 9px 10px;
  outline: none;
  border-radius: 8px;
}
.footer__form input:focus { box-shadow: 0 0 0 2px rgba(95, 176, 230, .55); }
.footer__form button {
  border: none;
  background: var(--blue-500);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: background .15s;
}
.footer__form button:hover { background: #2280b6; }

.footer__rule { height: 1px; border: 0; background: #173145; margin: 40px 0 22px; }

.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.footer__row--legal { gap: 14px; margin-top: 22px; }

.footer__pay { display: flex; flex-wrap: wrap; gap: 7px; }
.footer__pay li {
  font-size: 11px;
  font-weight: 600;
  color: #8aa0b3;
  background: #102a3e;
  border: 1px solid #1b3850;
  border-radius: 7px;
  padding: 5px 9px;
}

.footer__ssl { display: flex; align-items: center; gap: 8px; color: #7e96aa; font-size: 12.5px; }

.footer__copy { font-size: 13px; color: #7e96aa; }

.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; }
.footer__legal a { color: #8aa0b3; text-decoration: none; }
.footer__legal a:hover { color: var(--white); }
