/* GothamDev — système visuel accueil v3 (studio premium) */

.gd-home {
  background: var(--gd-bg-main, #0b0f15);
  color: var(--gd-text-primary, #f4f7fb);
}

.gd-home .container {
  width: min(1240px, calc(100% - 2 * var(--gd-gutter, 24px)));
  margin-inline: auto;
}

.gd-section {
  padding: var(--gd-section-y, 96px) 0;
}

.gd-section-tight {
  padding: clamp(48px, 6vw, 80px) 0;
}

.gd-section-head {
  max-width: 760px;
  margin: 0 0 var(--space-7, 48px);
}

.gd-section-head h2,
.gd-hero h1,
.gd-split-why h2,
.gd-final h2 {
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--gd-text-primary);
}

.gd-section-head h2,
.gd-split-why h2 {
  font-size: var(--text-4xl);
  margin: 0.35rem 0 0.75rem;
}

.gd-section-head p,
.gd-lead,
.gd-muted,
.gd-note {
  color: var(--gd-text-secondary);
  line-height: 1.7;
  max-width: 65ch;
}

.gd-eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gd-text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Buttons */
.gd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.35rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.gd-btn-primary,
a.gd-btn.gd-btn-primary {
  background: #22c55e !important;
  color: #04140c !important;
  border: 1px solid transparent !important;
}

.gd-btn-primary:hover,
.gd-btn-primary:focus-visible,
a.gd-btn.gd-btn-primary:hover,
a.gd-btn.gd-btn-primary:focus-visible {
  background: #4ade80 !important;
  color: #04140c !important;
}

/* Masquer le sticky doublon sur l’accueil refondu */
.gd-home ~ .sticky-cta-desktop,
aside.sticky-cta-desktop[hidden] {
  display: none !important;
}

.gd-btn-secondary {
  background: transparent;
  color: var(--gd-text-primary);
  border: 1px solid var(--gd-border-strong);
}

.gd-btn-secondary:hover,
.gd-btn-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.35);
}

.gd-link {
  color: var(--gd-accent);
  text-decoration: none;
  font-weight: 600;
}

.gd-link:hover,
.gd-link:focus-visible {
  color: var(--gd-accent-hover);
}

/* Cards */
.gd-card-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .gd-card-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .gd-card-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.gd-card {
  background: var(--gd-bg-surface);
  border: 1px solid var(--gd-border-soft);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
}

.gd-card-visual {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gd-card-shot {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #05070b;
}

.gd-card-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 220ms ease;
}

.gd-card-visual:hover .gd-card-shot img {
  transform: scale(1.03);
}

.gd-card-body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gd-card-body .gd-link {
  margin-top: auto;
}

.gd-card-featured {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.12), var(--shadow-md);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.08), var(--gd-bg-surface) 42%);
}

.gd-card-visual.gd-card-featured {
  background: var(--gd-bg-surface);
}

.gd-card-visual.gd-card-featured .gd-card-body {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.08), transparent 55%);
}

.gd-card h3 {
  margin: 0 0 0.55rem;
  font-size: var(--text-3xl);
  letter-spacing: -0.02em;
}

.gd-card p {
  margin: 0 0 0.85rem;
  color: var(--gd-text-secondary);
  line-height: 1.6;
}

.gd-card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 12px;
  color: var(--gd-accent);
  background: var(--gd-accent-soft);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.gd-price-line,
.gd-price-big {
  color: var(--gd-text-primary) !important;
  font-weight: 700;
}

.gd-price-big {
  font-size: 1.55rem;
  margin: 0.2rem 0 1rem !important;
}

.gd-meta {
  margin: 0 0 0.4rem !important;
  color: var(--gd-text-muted) !important;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gd-badge {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--gd-accent-soft);
  color: var(--gd-accent-hover);
  font-size: 0.75rem;
  font-weight: 700;
}

.gd-checklist,
.gd-case-results,
.gd-commit-list,
.gd-name-list {
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
}

.gd-checklist li,
.gd-case-results li {
  position: relative;
  padding-left: 1.15rem;
  margin: 0.35rem 0;
  color: var(--gd-text-secondary);
}

.gd-checklist li::before,
.gd-case-results li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--gd-accent);
}

/* Hero */
.gd-hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}

.gd-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 80% 20%, rgba(34, 197, 94, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(91, 140, 255, 0.08), transparent 50%),
    var(--gd-bg-deep);
  pointer-events: none;
}

.gd-hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 980px) {
  .gd-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.gd-hero h1 {
  font-size: var(--text-5xl);
  margin: 0 0 1rem;
  max-width: 16ch;
}

.gd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.35rem 0 1rem;
}

.gd-hero-price {
  margin: 0 0 1rem;
  color: var(--gd-text-secondary);
  font-size: 0.95rem;
}

.gd-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--gd-text-muted);
  font-size: 0.88rem;
}

.gd-hero-trust li {
  position: relative;
}

@media (min-width: 700px) {
  .gd-hero-trust li:not(:last-child)::after {
    content: "·";
    margin-left: 1rem;
    color: var(--gd-border-strong);
  }
}

.gd-hero-visual {
  position: relative;
  min-height: 340px;
  padding-bottom: 2.5rem;
}

.gd-frame {
  margin: 0;
  border: 1px solid var(--gd-border-strong);
  border-radius: 14px;
  overflow: hidden;
  background: #05070b;
  box-shadow: var(--shadow-lg);
}

.gd-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.gd-frame-chrome {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: #0e131b;
  border-bottom: 1px solid var(--gd-border-soft);
}

.gd-frame-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.gd-frame-desk {
  transform: rotate(-1.2deg);
  position: relative;
  z-index: 1;
}

.gd-frame-desk img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.gd-frame-phone {
  position: absolute;
  right: 2%;
  bottom: 0;
  width: min(36%, 168px);
  border-radius: 18px;
  transform: rotate(4deg);
  box-shadow: var(--shadow-lg);
  z-index: 3;
}

.gd-frame-phone img {
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}

.gd-frame-float {
  position: absolute;
  left: -4%;
  bottom: 8%;
  width: min(48%, 220px);
  transform: rotate(-6deg);
  z-index: 2;
  box-shadow: var(--shadow-lg);
}

.gd-frame-float img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

@media (max-width: 979px) {
  .gd-hero h1 { max-width: none; }
  .gd-hero-visual {
    min-height: 260px;
    margin-top: 0.5rem;
  }
  .gd-frame-desk { transform: none; }
  .gd-frame-phone {
    width: 32%;
    bottom: -2%;
  }
  .gd-frame-float {
    width: 42%;
    left: 0;
    bottom: 4%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gd-card-visual:hover .gd-card-shot img {
    transform: none;
  }
}

/* Trust band */
.gd-trustband {
  border-block: 1px solid var(--gd-border-soft);
  background: rgba(255, 255, 255, 0.015);
}

.gd-trustband-inner {
  display: grid;
  gap: 1rem;
  padding: 1.15rem 0;
}

@media (min-width: 800px) {
  .gd-trustband-inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.gd-trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--gd-text-secondary);
  font-size: 0.92rem;
}

.gd-trust-item svg { color: var(--gd-accent); flex: 0 0 auto; }

/* Case study */
.gd-case {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

@media (min-width: 960px) {
  .gd-case {
    grid-template-columns: 1.35fr 1fr;
    gap: 2.25rem;
  }
}

.gd-case-media-wrap {
  position: relative;
  padding-bottom: 1.5rem;
}

.gd-case-media {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gd-border-soft);
  box-shadow: var(--shadow-md);
}

.gd-case-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.gd-case-phone {
  position: absolute;
  right: 6%;
  bottom: 0;
  width: min(28%, 140px);
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gd-border-strong);
  box-shadow: var(--shadow-lg);
  background: #05070b;
}

.gd-case-phone img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}

.gd-project-shot {
  display: block;
  overflow: hidden;
  background: #05070b;
}

.gd-project-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transition: transform 220ms ease;
}

.gd-card-project:hover .gd-project-shot img {
  transform: scale(1.03);
}

.gd-card-project {
  padding: 0;
  overflow: hidden;
}

.gd-card-project .gd-meta,
.gd-card-project h3,
.gd-card-project p,
.gd-card-project .gd-link {
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}

.gd-card-project .gd-meta { margin-top: 1rem; }
.gd-card-project .gd-link { display: inline-block; margin-bottom: 1.25rem; }

/* Thumb grids — clients / projets internes */
.gd-thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .gd-thumb-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gd-thumb {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--gd-border-soft);
  border-radius: 12px;
  overflow: hidden;
  background: var(--gd-bg-elevated);
  transition: border-color 180ms ease, transform 180ms ease;
}

a.gd-thumb:hover,
a.gd-thumb:focus-visible {
  border-color: rgba(34, 197, 94, 0.4);
  transform: translateY(-2px);
}

.gd-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.gd-thumb span {
  display: block;
  padding: 0.45rem 0.6rem 0.55rem;
  font-size: 0.78rem;
  color: var(--gd-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (prefers-reduced-motion: reduce) {
  .gd-card-project:hover .gd-project-shot img,
  a.gd-thumb:hover {
    transform: none;
  }
}

/* Split clients / why */
.gd-split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .gd-split { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.gd-split-title {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
}

.gd-name-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
}

.gd-name-list a,
.gd-name-list li {
  color: var(--gd-text-secondary);
  text-decoration: none;
}

.gd-name-list a:hover { color: var(--gd-accent); }

.gd-commit-list li {
  margin: 0 0 0.95rem;
  color: var(--gd-text-secondary);
  line-height: 1.55;
}

.gd-commit-list strong { color: var(--gd-text-primary); }

.gd-steps {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.gd-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.gd-steps span {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--gd-border-strong);
  color: var(--gd-accent);
  font-weight: 700;
}

.gd-steps strong {
  display: block;
  margin-bottom: 0.2rem;
}

.gd-steps p {
  margin: 0;
  color: var(--gd-text-secondary);
}

.gd-quote p {
  color: var(--gd-text-primary) !important;
  font-size: 1.05rem;
  line-height: 1.55;
}

.gd-quote footer {
  color: var(--gd-text-muted);
  font-size: 0.85rem;
}

/* Assistant */
.gd-assistant {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .gd-assistant {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
    gap: 2.5rem;
  }
}

.gd-offer-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.gd-offer-options .btn,
.gd-offer-opt {
  min-height: 44px;
  border-radius: 999px !important;
  border: 1px solid var(--gd-border-strong) !important;
  background: var(--gd-bg-elevated) !important;
  color: var(--gd-text-primary) !important;
}

.gd-offer-result {
  background: var(--gd-bg-surface);
  border: 1px solid var(--gd-border-soft);
  border-radius: var(--radius-xl);
  padding: 1.35rem;
}

/* FAQ + final */
.gd-faq-wrap { max-width: 760px; }

.gd-faq-list details {
  border-top: 1px solid var(--gd-border-soft);
  padding: 1rem 0;
}

.gd-faq-list summary {
  cursor: pointer;
  font-weight: 650;
}

.gd-faq-list p {
  margin: 0.65rem 0 0;
  color: var(--gd-text-secondary);
  line-height: 1.65;
}

.gd-final {
  position: relative;
  overflow: hidden;
  padding: var(--gd-section-y) 0;
  border-top: 1px solid var(--gd-border-soft);
  background: var(--gd-bg-deep);
}

.gd-final-visuals {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  opacity: 0.22;
  pointer-events: none;
  filter: saturate(0.85);
}

.gd-final-visuals img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  min-height: 220px;
}

.gd-final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.78), rgba(7, 9, 13, 0.94)),
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(34, 197, 94, 0.14), transparent 60%);
  pointer-events: none;
}

.gd-final-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.gd-final h2 { font-size: var(--text-4xl); margin: 0 0 0.75rem; }
.gd-final p { margin: 0 0 1.25rem; color: var(--gd-text-secondary); }

@media (max-width: 700px) {
  .gd-final-visuals { grid-template-columns: repeat(2, 1fr); }
}

.gd-note { margin: 1.25rem 0 0.75rem; font-size: 0.92rem; }

/* Mega-menu compact */
.nav-dropdown--mega { position: static; }
.nav-mega-menu {
  left: 50% !important;
  transform: translateX(-50%);
  width: min(920px, calc(100vw - 2rem));
  padding: 1.15rem 1.15rem 0.85rem;
}
.nav-mega-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}
@media (min-width: 900px) {
  .nav-mega-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.nav-mega-col-title {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gd-text-muted);
}
.nav-mega-col a {
  display: block;
  padding: 0.28rem 0;
  color: var(--gd-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}
.nav-mega-col a:hover { color: var(--gd-text-primary); }
.nav-mega-foot {
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gd-border-soft);
}
.nav-mega-acc summary {
  cursor: pointer;
  padding: 0.75rem 0;
  font-weight: 600;
}
.nav-mega-acc-body a {
  display: block;
  padding: 0.35rem 0;
  color: var(--gd-text-secondary);
  text-decoration: none;
}

/* Mobile bar */
.gd-mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(7, 9, 13, 0.94);
  border-top: 1px solid var(--gd-border-soft);
}
.gd-mobile-bar a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.75rem 0.4rem;
  font-size: 0.85rem;
  font-weight: 650;
  min-height: 44px;
}
.gd-mobile-bar-call { color: var(--gd-text-primary); border: 1px solid var(--gd-border-strong); }
.gd-mobile-bar-wa { color: #04140f; background: #25d366; }
.gd-mobile-bar-devis { color: #04140c; background: var(--gd-accent); }

@media (max-width: 768px) {
  .gd-mobile-bar { display: flex; }
  body.has-mobile-bar { padding-bottom: 4.5rem; }
  body.gd-hide-mobile-bar .gd-mobile-bar { display: none; }
  body.gd-hide-mobile-bar { padding-bottom: 0; }
  .gd-hero-actions .gd-btn { width: 100%; }
}

/* Hide legacy mosa hero chrome if leftover */
.gd-home .mosa-hero-media,
.gd-home .mosa-hero-grid,
.gd-home .mosa-hero-glow { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .gd-btn,
  .gd-frame-desk,
  .gd-frame-phone { transition: none; transform: none !important; }
}
