@import url("https://api.fontshare.com/v2/css?f[]=switzer@400&f[]=khand@700&display=swap");
/* ========================================
   MAIN.CSS
   Reset + variables globales
======================================== */

:root {
  /* Colors */
  --color-primary: #51b4f1;
  --color-primary-dark: #122d4a;

  --color-white: #f7f9fc;
  --color-black: #111827;

  --color-text: var(--color-black);
  --color-text-inverse: var(--color-white);
  --color-background: var(--color-white);
  --color-background-dark: var(--color-primary-dark);
  --color-border: #d8e0ea;

  /* Fonts */
  --font-body: "Switzer", sans-serif;
  --font-heading: "Khand", sans-serif;

  /* Font sizes */
  --fs-body: 1rem;

  --fs-h1: clamp(2.5rem, 6vw, 5rem);
  --fs-h2: clamp(2rem, 4.5vw, 3.5rem);
  --fs-h3: clamp(1.5rem, 3vw, 2.5rem);
  --fs-h4: clamp(1.25rem, 2.2vw, 1.75rem);
  --fs-h5: 1.125rem;
  --fs-h6: 1rem;

  /* Line heights */
  --lh-body: 1.5;
  --lh-heading: 1.1;
}

/* ========================================
   RESET
======================================== */

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

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-background);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg,
canvas,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ========================================
   TYPO BASE
======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: var(--lh-heading);
  color: var(--color-text);
}

h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
}
h4 {
  font-size: var(--fs-h4);
}
h5 {
  font-size: var(--fs-h5);
}
h6 {
  font-size: var(--fs-h6);
}

p,
li,
a,
span,
label,
input,
textarea,
select,
button {
  font-family: var(--font-body);
}

/* navbar */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: var(--color-primary-dark);
  display: flex;
  overflow: visible;
  z-index: 1000;
}

.nav-transition {
  background-color: var(--color-primary);
  width: 25px;
  height: 60px;
  margin-left: -30px;
  transform: skewX(-22deg);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.nav-left {
  background-color: var(--color-white);
  width: 300px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, calc(100% - 50px) 100%, 0 100%);
  flex-shrink: 0;
  box-shadow: 0 8px 30px rgba(19, 44, 74, 0.08);
}

.logo-container {
  height: 100%;
  width: auto;
  overflow: hidden;
  padding: 15px;
}

.logo-container a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-right {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 70px;
  width: calc(100% - 285px);
  position: relative;
}

.nav-links,
.nav-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  text-transform: uppercase;
}
.nav-links {
  flex: 1;
  justify-content: flex-start;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 60px;
  color: var(--color-white);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition:
    color 0.25s ease,
    transform 0.25s ease,
    opacity 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 14px;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s ease;
}

.nav-links a:hover {
  color: var(--color-primary);
  transform: translateY(-1px);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--color-white);
}

.nav-links a.active::after {
  transform: scaleX(1);
  background: var(--color-primary);
}
.nav-link-orders {
  margin-left: auto;
}

.nav-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

.nav-icons a:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.nav-icons img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.nav-icons:empty {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  background: transparent;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: 999px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

/* TABLET */

@media (max-width: 1024px) {
  .nav-left {
    width: 240px;
    height: 100px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 38px) 100%, 0 100%);
  }

  .nav-transition {
    width: 20px;
    margin-left: -24px;
  }

  .nav-right {
    width: calc(100% - 228px);
    padding: 0 32px;
  }

  .nav-links,
  .nav-icons {
    gap: 18px;
  }

  .nav-links a {
    font-size: 0.92rem;
  }
}

/* MOBILE */

@media (max-width: 768px) {
  .nav {
    height: 72px;
    align-items: flex-start;
  }

  .nav-left {
    width: 180px;
    height: 90px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 28px) 100%, 0 100%);
  }

  .nav-transition {
    width: 16px;
    height: 72px;
    margin-left: -18px;
    transform: skewX(-20deg);
  }

  .nav-right {
    width: calc(100% - 178px);
    height: 72px;
    padding: 0 18px 0 20px;
    justify-content: flex-end;
    gap: 14px;
  }

  .nav-toggle {
    display: inline-flex;
    z-index: 12;
  }
  .nav-toggle {
    order: 2;
  }

  .nav-icons {
    order: 1;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 0;
    width: min(320px, 100vw);
    background: rgba(19, 44, 74, 0.97);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 18px 20px;
    border-bottom-left-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s ease;
    text-transform: uppercase;
    z-index: 10;
  }

  .nav-links a {
    width: 100%;
    height: auto;
    padding: 14px 0;
    font-size: 1rem;
    transform: none;
  }
  .nav-link-orders {
    margin-left: 0;
  }

  .nav-links a::after {
    bottom: 8px;
    transform-origin: left;
  }

  .nav-right.is-open .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-right.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-right.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-right.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-icons {
    gap: 10px;
  }

  .nav-icons a {
    width: 34px;
    height: 34px;
  }

  .nav-icons img {
    width: 18px;
    height: 18px;
  }
}

/* PETITS MOBILES */

@media (max-width: 480px) {
  .nav-left {
    width: 150px;
    height: 84px;
  }

  .logo-container {
    padding: 12px;
  }

  .nav-right {
    width: calc(100% - 148px);
    padding: 0 12px 0 14px;
  }

  .nav-links {
    width: 100%;
  }
}
