/* Go East Technologies — styles (logo 80px, balanced header spacing) */

/* Reset (kept minimal) */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }

:root {
  --container-max: 1200px;
  --gutter: 16px; /* mobile default */
  --radius: 16px;
  --shadow-sm: 0 4px 12px rgba(0,0,0,.08);
  --shadow: 0 12px 24px rgba(0,0,0,.18), 0 4px 8px rgba(0,0,0,.10);
}

@media (min-width: 800px) {
  :root { --gutter: min(15vw, 320px); }
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.6;
  font-size: clamp(16px, 1.2vw + 12px, 18px);
}

/* Layout primitives */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
}

.section {
  padding-inline: var(--gutter);
  margin-block: 3vh; /* reduced spacing between sections */
}

/* Header: sticky frosted */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.site-header .container { padding-inline: var(--gutter); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 100px; /* increased for balanced spacing */
  padding-block: 10px; /* equal space above/below logo */
  gap: 12px;
}
.logo img { height: 80px; width: auto; } /* logo size */

/* Nav (mobile-first) */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-btn { width: 40px; height: 40px; display: inline-block; position: relative; cursor: pointer; border-radius: 10px; }
.nav-toggle-btn::before, .nav-toggle-btn::after {
  content: ""; position: absolute; left: 8px; right: 8px; height: 2px; top: 14px; background: currentColor; transition: transform .2s ease, top .2s ease;
}
.nav-toggle-btn::after { top: 24px; }
.site-nav {
  position: absolute; inset: 100px 0 auto 0; transform: translateY(-8px); opacity: 0; pointer-events: none;
  background: #fff; box-shadow: var(--shadow-sm); transition: opacity .2s ease, transform .2s ease;
}
.site-nav ul { list-style: none; margin: 0; padding: 8px; display: grid; gap: 8px; }
.site-nav a {
  display: block; padding: 12px 16px; text-decoration: none; color: inherit; border-radius: 10px; font-weight: 700;
}
.site-nav a:hover { background: linear-gradient(90deg,#0ea5e9,#2563eb); color: #fff; }

.nav-toggle:checked ~ .nav-toggle-btn::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle:checked ~ .nav-toggle-btn::after { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle:checked ~ .site-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }

@media (min-width: 600px) {
  .site-nav { position: static; inset: auto; transform: none; opacity: 1; pointer-events: auto; box-shadow: none; background: transparent; }
  .site-nav ul { grid-auto-flow: column; justify-content: end; gap: 6px; padding: 0; }
  .nav-toggle, .nav-toggle-btn { display: none; }
}

/* Banner: convex 3D background, image fully visible */
.site-banner {
  padding-inline: var(--gutter);
  margin-top: 2vh; /* subtle space under logo */
  margin-bottom: 3vh; /* reduced bottom spacing */
  display: flex; justify-content: center; align-items: center;
  background: radial-gradient(ellipse at center, #fafafa 0%, #eaeaea 80%);
  box-shadow:
    inset 0 10px 30px rgba(255, 255, 255, 0.6),
    inset 0 -10px 30px rgba(0, 0, 0, 0.08),
    var(--shadow-sm);
  border-radius: 20px;
}
.site-banner img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  display: block;
  border-radius: 16px;
}

/* Section blocks: white cards with subtle 3D */
.section .container {
  padding-inline: clamp(12px, 2vw, 24px);
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .section .container:hover, .section .container:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.22), 0 6px 12px rgba(0,0,0,0.14);
    border-color: rgba(0,0,0,0.10);
  }
}

/* Footer */
.site-footer { border-top: 1px solid rgba(0,0,0,.06); padding: 24px 0; }
.site-footer .container { padding-inline: var(--gutter); }

/* === Mobile hamburger improvements === */
.nav-toggle-btn {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  transition: background-color .12s ease;
}
.nav-toggle-btn::before,
.nav-toggle-btn::after {
  left: 10px;
  right: 10px;
  height: 3px;             /* thicker bars for visibility */
  top: 18px;
  transition: transform .12s ease, top .12s ease, opacity .12s ease;
}
.nav-toggle-btn::after { top: 30px; }

@media (hover:hover) and (pointer:fine) {
  .nav-toggle-btn:hover { background: rgba(0,0,0,.05); }
}

.site-nav { transition: opacity .12s ease, transform .12s ease; transform: translateY(-4px); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.0);
  display: none;
  z-index: 999;
}
.nav-toggle:checked ~ .nav-backdrop { display: block; }

@media (max-width: 599.98px) {
  .site-nav {
    position: fixed;
    top: 100px;
    left: 0; right: 0;
    z-index: 1001;
  }
  .site-nav ul a { padding: 14px 18px; }
}

/* === Header actions (hamburger + language) === */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.header-inner > .logo { order: 0; }
.header-inner > #site-nav { order: 1; }
.header-inner > .header-actions { order: 2; }
@media (max-width: 599.98px) {
  .header-inner { flex-wrap: nowrap; }
  .header-actions { gap: 8px; }
}

/* === Language switch (minimal '🌐 EN') === */
.lang-switch { position: relative; display: flex; align-items: center; margin-left: 8px; }
.lang-btn {
  appearance: none; -webkit-appearance: none;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: box-shadow .12s ease, border-color .12s ease, background-color .12s ease;
}
.lang-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.2); }
@media (hover:hover) and (pointer:fine) { .lang-btn:hover { background: rgba(0,0,0,.03); } }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 140px; list-style: none; margin: 0; padding: 6px;
  background: #fff; border: 1px solid rgba(0,0,0,.1);
  border-radius: 12px; box-shadow: var(--shadow-sm);
  display: none; z-index: 1002;
}
.lang-menu.open { display: block; }
.lang-menu li { margin: 0; padding: 0; }
.lang-menu a {
  display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: inherit; font-weight: 600;
}
.lang-menu a:hover { background: rgba(0,0,0,.04); }


/* === Ajustement du logo (desktop 68px, mobile 60px) === */
.logo img { height: 68px; width: auto; }
@media (max-width: 600px) { .logo img { height: 60px; } }

/* === Bouton langue harmonisé (gras, bord couleur menu/hamburger) === */
.lang-btn {
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;
  color: #0b1220;
  border: 2px solid currentColor;
  background: #fff;
  border-radius: 10px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.lang-btn:hover { background: rgba(0,0,0,0.05); }

/* === Hero layout & contact button === */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(16px, 4vw, 48px);
  padding: clamp(8px, 2vw, 16px) 0;
}
.hero-left { text-align: left; }
.hero-title {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  background-image: linear-gradient(90deg, #0ea5e9, #2563eb);
  box-shadow: 0 8px 20px rgba(37, 99, 235, .25);
  transition: transform .08s ease, box-shadow .2s ease, filter .2s ease;
  will-change: transform;
}
.btn-contact:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 24px rgba(37, 99, 235, .30);
}
.btn-contact:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 6px 16px rgba(37, 99, 235, .22);
}

/* Right column alignment on desktop */
.hero-right { display: flex; align-items: center; justify-content: flex-start; }

/* Mobile: stack, button under text, full-width button */
@media (max-width: 600px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero-right { justify-content: flex-start; }
  .btn-contact {
    width: 100%;
    padding: 16px 20px;
    font-size: 17px;
  }
}


/* === Hero text (under title) === */
.hero-text {
  font-size: 1em;       /* same as normal paragraph text */
  font-weight: 400;
  margin-top: 0.5em;
  line-height: 1.6;
  color: inherit;
}

/* === Emphasis for hero contact button === */
.btn-contact { text-transform: uppercase; font-size: 17px; }
@media (max-width: 600px) { .btn-contact { font-size: 18px; } }


/* === Hero precise layout: 3/4 text (left-aligned) + 1/4 centered button === */
.hero-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  align-items: center;
  gap: clamp(16px, 4vw, 48px);
  padding: clamp(8px, 2vw, 16px) 0;
}
.hero-left {
  text-align: left;
  width: 75%;
}
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-left, .hero-right { width: 100%; }
  .hero-right { justify-content: flex-start; }
  .btn-contact { width: 100%; }
}
