/* ===== DESIGN TOKENS ===== */
:root {
  /* Couleurs */
  --bg-main: #F7F5F1;
  --text-black: #0E0E0E;
  --accent-red: #8A1111;
  --gray-outline: #D9D6CF;

  /* Typographie */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Espacements */
  --container-max: 1240px;
  --padding-x-desktop: 8vw;
  --padding-x-tablet: 6vw;
  --padding-x-mobile: 6vw;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background: var(--bg-main);
  color: var(--text-black);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== SCROLL SNAP SCREENS ===== */
.screen {
  height: 100vh;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}

/* ===== HEADER (fixe) ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  background: transparent;
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--padding-x-desktop);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.nav-left,
.nav-right {
  display: flex;
  gap: 32px;
  align-items: center;
  flex: 1;
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

.nav-center {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.nav-link {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-black);
  text-decoration: none;
  position: relative;
  transition: all 150ms ease;
}

.nav-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.nav-link:focus-visible {
  outline: 2px solid var(--text-black);
  outline-offset: 4px;
  border-radius: 2px;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-black);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.logo-text:hover {
  opacity: 0.7;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.logo-link:hover {
  opacity: 0.8;
}

.logo-img {
  height: 80px;
  width: auto;
  display: block;
}

/* ===== ÉCRAN 1 — HERO ===== */
.hero-screen {
  display: flex;
  flex-direction: column;
}

.hero-body {
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 64px;
}

.hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--padding-x-desktop);
  width: 100%;
  display: grid;
  grid-template-columns: 42% 58%;
  gap: 64px;
  align-items: center;
}

/* Colonne gauche */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-size: 108px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-black);
  white-space: nowrap;
}

.hero-label {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 16px;
  color: var(--text-black);
}

.hero-tagline {
  margin-top: 32px;
  border-left: 2px solid var(--text-black);
  padding-left: 20px;
}

.hero-tagline p {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
  color: var(--text-black);
}

.hero-cta {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-black);
  text-decoration: underline;
  text-decoration-thickness: 2.5px;
  text-underline-offset: 4px;
  margin-top: 20px;
  transition: text-decoration-thickness 150ms ease;
}

.hero-cta:hover {
  text-decoration-thickness: 4px;
}

.hero-cta:focus-visible {
  outline: 2px solid var(--text-black);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Colonne droite */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.globe-container {
  width: 44vw;
  max-width: 620px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.globe-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.globe-caption {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--text-black);
}

/* ===== ÉCRAN 2 — NOS PÔLES ===== */
.poles-screen {
  display: flex;
  flex-direction: column;
}

.poles-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 64px;
  padding-bottom: 48px;
}

.poles-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--padding-x-desktop);
  width: 100%;
  display: flex;
  flex-direction: column;
}

.poles-title {
  font-size: 88px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 0 80px 0;
  color: var(--text-black);
}

.poles-bubbles {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 140px;
  margin-bottom: auto;
}

/* Boules */
.bubble {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.bubble:focus-visible {
  outline: 2px solid var(--text-black);
  outline-offset: 6px;
}

/* Boule pleine noire */
.bubble-filled {
  background: var(--text-black);
  border: none;
}

.bubble-filled .bubble-text {
  color: #FFFFFF;
}

.bubble-filled .bubble-link {
  color: #FFFFFF;
  border-bottom: 1px solid #FFFFFF;
}

.bubble-filled:hover {
  background: var(--accent-red);
  transform: scale(1.05);
}

/* Boule outline */
.bubble-outline {
  background: transparent;
  border: 4px solid var(--text-black);
}

.bubble-outline .bubble-text {
  color: var(--accent-red);
}

.bubble-outline .bubble-link {
  color: var(--accent-red);
  border-bottom: 1px solid var(--accent-red);
}

.bubble-outline:hover {
  background: rgba(240, 237, 230, 0.4);
  border-width: 6px;
  transform: scale(1.05);
}

/* Contenu des boules */
.bubble-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.bubble-text {
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.3;
  margin: 0;
}

.bubble-link {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  padding-bottom: 2px;
}

/* CTA secondaire */
.poles-cta {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-red);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
  text-align: center;
  display: block;
  margin-top: 64px;
  transition: text-decoration-thickness 150ms ease;
}

.poles-cta:hover {
  text-decoration-thickness: 5px;
}

.poles-cta:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ===== MENU HAMBURGER (MOBILE) ===== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
  position: relative;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-black);
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-main);
  z-index: 999;
  padding: 100px 24px 40px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 400px;
  margin: 0 auto;
}

.mobile-menu-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu-section h3 {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(14, 14, 14, 0.5);
  margin: 0;
}

.mobile-menu-link {
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-black);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-menu-link:hover {
  color: var(--accent-red);
}

/* ===== RESPONSIVE ===== */

/* Tablette (992px - 1279px) */
@media (max-width: 1279px) and (min-width: 992px) {
  .hero-title {
    font-size: 96px;
  }

  .poles-title {
    font-size: 78px;
  }

  .globe-container {
    width: 46vw;
    max-width: 500px;
  }

  .bubble {
    width: 260px;
    height: 260px;
  }

  .poles-bubbles {
    gap: 120px;
  }
}

/* Mobile et petites tablettes (≤991px) */
@media (max-width: 991px) {
  .nav-container {
    padding: 0 var(--padding-x-mobile);
    position: relative;
    justify-content: center;
  }

  /* Cacher les menus desktop, montrer hamburger */
  .nav-left,
  .nav-right {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    left: var(--padding-x-mobile);
    top: 50%;
    transform: translateY(-50%);
  }

  .mobile-menu {
    display: block;
  }

  .nav-center {
    margin: 0;
  }

  .logo-text {
    font-size: 18px;
  }

  .logo-img {
    height: 65px;
  }

  /* Hero mobile */
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 var(--padding-x-mobile);
    text-align: center;
  }

  .hero-left {
    align-items: center;
    order: 1;
  }

  .hero-right {
    order: 2;
  }

  .hero-title {
    font-size: 64px;
  }

  .hero-tagline {
    border-left: none;
    border-top: 2px solid var(--text-black);
    padding-left: 0;
    padding-top: 16px;
    margin-top: 24px;
  }

  .hero-tagline p {
    font-size: 16px;
  }

  .globe-container {
    width: 70vw;
    max-width: 400px;
  }

  /* Pôles mobile */
  .poles-container {
    padding: 0 var(--padding-x-mobile);
  }

  .poles-title {
    font-size: 56px;
    margin-bottom: 48px;
    text-align: center;
  }

  .poles-bubbles {
    flex-direction: column;
    gap: 48px;
  }

  .bubble {
    width: 230px;
    height: 230px;
  }

  .poles-cta {
    margin-top: 48px;
  }
}

/* Très petits écrans (≤640px) */
@media (max-width: 640px) {
  .site-header {
    padding: 16px 0;
  }

  .nav-left,
  .nav-right {
    gap: 16px;
  }

  .nav-link {
    font-size: 12px;
  }

  .logo-img {
    height: 55px;
  }

  .hero-title {
    font-size: 56px;
  }

  .hero-label {
    font-size: 11px;
  }

  .hero-tagline p {
    font-size: 15px;
  }

  .globe-container {
    width: 80vw;
    max-width: 320px;
  }

  .globe-caption {
    font-size: 11px;
  }

  .poles-title {
    font-size: 48px;
  }

  .bubble {
    width: 220px;
    height: 220px;
  }

  .bubble-text {
    font-size: 16px;
  }
}

/* ===== FOOTER ===== */
footer {
  background: var(--text-black);
  color: var(--bg-main);
  padding: 80px 0 40px;
  margin-top: auto;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--padding-x-desktop);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-title {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bg-main);
  margin-bottom: 8px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: var(--bg-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: opacity 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  opacity: 0.7;
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(247, 245, 241, 0.2);
  font-size: 13px;
  color: rgba(247, 245, 241, 0.7);
  text-align: center;
}

.footer-bottom a {
  color: var(--bg-main);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.footer-bottom a:hover {
  opacity: 0.7;
}

/* Footer responsive */
@media (max-width: 991px) {
  footer {
    padding: 60px 0 40px;
  }

  .footer-container {
    padding: 0 var(--padding-x-mobile);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 40px;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  footer {
    padding: 50px 0 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
  }

  .footer-col:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    padding-top: 32px;
    font-size: 12px;
  }
}