/* =========================================================
   TOKENS GLOBAUX
   ========================================================= */

:root {
  --color-bg: 242 242 242;
  --color-surface: 255 255 255;
  --color-text: 0 0 0;
  --color-darkgray: 82 82 82;
  --color-muted: 128 128 128;
  --color-muted-2: 148 163 184;
  --color-border: 0 0 0;
  --color-grid: 218 218 218;

  --color-brand: 4 57 217;

  --site-max-width: 1120px;

  --radius-pill: 999px;

  --shadow-card: 0 12px 30px rgb(15 23 42 / 0.08);
  --shadow-dropdown:
    8px 8px 10px rgb(0 0 0 / 0.2),
    16px 16px 40px rgb(0 0 0 / 0.25);

  --header-height: 78px;
  --transition-fast: 180ms ease;
  --contact-eyebrow-size: clamp(0.78rem, 0.58rem + 0.35vw, 0.86rem);
}

/* =========================================================
   RESET / BASE
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  color: rgb(var(--color-text));
  background: rgb(var(--color-bg));
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

/* =========================================================
   UTILITAIRES
   ========================================================= */

.container {
  width: min(90%, var(--site-max-width));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
}

.skip-link {
  position: absolute;
  top: auto;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  top: 20px;
  left: 20px;
  z-index: 999;
  width: auto;
  height: auto;
  padding: 10px 14px;
  border: 1px solid rgb(var(--color-border));
  border-radius: 12px;
  background: rgb(var(--color-surface));
}

/* =========================================================
   HEADER / NAVIGATION GLOBALE
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  backdrop-filter: blur(12px);
  background: rgb(var(--color-bg) / 0.82);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--header-height);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.site-logo:hover {
  text-decoration: none;
}

.site-logo__image {
  width: 40px;
  height: 40px;
}

.site-logo__text {
  font-family: "Urbanist", system-ui, sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav__link[aria-current="page"] {
  color: rgb(var(--color-brand));
  font-weight: 700;
  text-decoration: underline;
}

.site-header__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 180px;
}

/* =========================================================
   SÉLECTEUR DE LANGUE
   ========================================================= */

.language-switcher {
  position: relative;
}

.language-switcher__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.language-switcher__button:hover {
  text-decoration: underline;
}

.language-switcher__current {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 2px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.language-switcher__chevron {
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition-fast);
}

.language-switcher__button[aria-expanded="true"] .language-switcher__chevron {
  margin-top: 5px;
  transform: rotate(225deg);
}

.language-switcher__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 2px;
  z-index: 320;
  display: grid;
  gap: 4px;
  min-width: 128px;
  padding: 10px;
  background: rgb(var(--color-surface));
  box-shadow: var(--shadow-dropdown);
}

.language-switcher__link {
  position: relative;
  display: block;
  padding: 5px 12px 5px 30px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.language-switcher__link:hover {
  text-decoration: none;
}

.language-switcher__link[aria-current="true"] {
  font-weight: 700;
}

.language-switcher__link[aria-current="true"]::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 7px;
  transform: translateY(-50%);
  font-size: 0.9rem;
  font-weight: 700;
}

/* =========================================================
   BOUTON HEADER
   ========================================================= */

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 15px;
  color: rgb(255 255 255);
  background: rgb(var(--color-text));
  border-radius: 20px 20px 0 20px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.header-cta:hover {
  background: rgb(var(--color-brand));
  text-decoration: none;
}

/* =========================================================
   BOUTON MENU MOBILE
   ========================================================= */

.menu-button {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 52px;
  min-height: 52px;
  padding: 6px 4px 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button:hover {
  color: rgb(var(--color-brand));
}

.menu-button__icon {
  position: relative;
  display: block;
  width: 28px;
  height: 18px;
}

.menu-button__line {
  position: absolute;
  left: 0;
  width: 28px;
  height: 2px;
  background: currentColor;
  transform-origin: center;
  transition:
    transform var(--transition-fast),
    opacity var(--transition-fast),
    top var(--transition-fast);
}

.menu-button__line--top {
  top: 1px;
}

.menu-button__line--middle {
  top: 8px;
}

.menu-button__line--bottom {
  top: 15px;
}

.menu-button__text {
  display: block;
  width: 40px;
  text-align: center;
  font-size: 0.6rem;
  line-height: 1;
  font-weight: 700;
}

.menu-button__text::before {
  content: attr(data-open);
}

.menu-button.is-active .menu-button__line--top {
  top: 8px;
  transform: rotate(45deg);
}

.menu-button.is-active .menu-button__line--middle {
  opacity: 0;
}

.menu-button.is-active .menu-button__line--bottom {
  top: 8px;
  transform: rotate(-45deg);
}

.menu-button.is-active .menu-button__text::before {
  content: attr(data-close);
}

/* =========================================================
   MENU MOBILE
   ========================================================= */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  padding: 24px;
  background: rgb(var(--color-bg) / 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(25px);
}

.mobile-nav__panel {
  position: absolute;
  top: 80px;
  width: min(320px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mobile-nav__list,
.mobile-nav__languages {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  padding: 24px 0;
  border-bottom: 1px solid rgb(var(--color-muted-2));
}

.mobile-nav__link {
  display: block;
  padding: 18px 20px;
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
}

.mobile-nav__link--cta {
  height: 72px;
  color: rgb(255 255 255);
  background: rgb(var(--color-text));
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border-bottom-right-radius: 28px;
  border-bottom-left-radius: 0;
}

.mobile-nav__link--cta:hover {
  background: rgb(var(--color-brand));
  text-decoration: none;
}

.mobile-nav__languages-title {
  margin: 0 0 10px;
  color: rgb(var(--color-text) / 0.65);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.mobile-nav__languages {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav__language-link {
  position: relative;
  display: block;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

.mobile-nav__language-link[aria-current="true"] {
  font-weight: 700;
}

.mobile-nav__language-link[aria-current="true"]::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 94px;
  transform: translateY(-50%);
  font-size: 0.95rem;
  font-weight: 700;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 0 14px;
  border-top: 1px solid rgb(var(--color-border));
}

.site-footer__text {
  margin: 0;
  color: rgb(var(--color-muted));
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.site-footer__link {
  position: relative;
  font-weight: 500;
  line-height: 1.4;
}

.site-footer__link + .site-footer__link {
  margin-left: 10px;
  padding-left: 18px;
}

.site-footer__link + .site-footer__link::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  /* color: rgb(var(--color-muted)); */
}

/* =========================================================
   RESPONSIVE GLOBAL
   ========================================================= */

@media (max-width: 920px) {
  .site-nav,
  .language-switcher,
  .header-cta {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    gap: 14px;
  }

  .site-logo {
    min-width: auto;
  }

  .site-logo__text {
    font-size: 1.25rem;
  }

  .mobile-nav__list {
    padding: 15% 12%;
  }
  
    .site-footer__inner {
    align-items: flex-start;
  }

  .site-footer__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .site-footer__link + .site-footer__link {
    margin-left: 0;
    padding-left: 0;
  }

  .site-footer__link + .site-footer__link::before {
    content: none;
  }
}

@media (max-width: 420px) {
  .site-header__inner {
    gap: 12px;
  }

  .site-logo__text {
    font-size: 1.2rem;
  }
}