/* ═══════════════════════════════════════════════════════════
   PREMIUM REDESIGN — Dark luxury · Glassmorphism · Orange
   Chrisnaël Berdier Portfolio
═══════════════════════════════════════════════════════════ */

/* ── Token overrides ──────────────────────────────────────── */
[data-theme="dark"],
[data-theme="auto"] {
  --bg-primary: #07070f;
  --bg-secondary: #0c0c18;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.14);
  --accent: #FF7043;
  --accent-2: #FF9A3C;
}

/* ── Body ─────────────────────────────────────────────────── */
body {
  background: var(--bg-primary);
}

/* ── Nav glass ────────────────────────────────────────────── */
.nav {
  background: rgba(7,7,15,0.72) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
}

/* Glowing orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}
.hero__orb--1 {
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(255,112,67,0.16) 0%, transparent 65%);
  top: -220px; right: -180px;
  animation: orbFloat 14s ease-in-out infinite;
}
.hero__orb--2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(92,160,255,0.1) 0%, transparent 65%);
  bottom: -120px; left: -100px;
  animation: orbFloat 18s ease-in-out infinite reverse;
}
.hero__orb--3 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255,160,67,0.07) 0%, transparent 65%);
  top: 45%; left: 38%;
  animation: orbFloat 22s ease-in-out infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(28px,-18px) scale(1.06); }
  66%       { transform: translate(-14px,14px) scale(0.96); }
}

.hero__content { position: relative; z-index: 1; }

/* Greeting → pill tag */
.hero__greeting {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: rgba(255,112,67,0.85) !important;
  background: rgba(255,112,67,0.1) !important;
  border: 1px solid rgba(255,112,67,0.22) !important;
  padding: 6px 18px !important;
  border-radius: 9999px !important;
  margin-bottom: 28px !important;
}

/* Title — massive */
.hero__title {
  font-size: clamp(72px, 12vw, 168px) !important;
  font-weight: 800 !important;
  line-height: 0.88 !important;
  letter-spacing: -0.045em !important;
  margin-bottom: 22px !important;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hero__name-first {
  display: block;
  color: #f0ece8;
}
.hero__name-last {
  display: block;
  background: linear-gradient(135deg, #FF7043 0%, #FF9A3C 55%, #FFD166 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Hide the old .highlight — replaced by .hero__role */
.hero__title .highlight {
  display: none !important;
}

/* Role strip */
.hero__role {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: clamp(14px, 1.6vw, 17px);
  font-weight: 400;
  color: rgba(255,255,255,0.42);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
.hero__role-dot {
  color: rgba(255,112,67,0.55);
  font-size: 20px;
  line-height: 1;
}

/* Glass stats card */
.hero__stats-card {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  margin-top: 40px;
  padding: 0;
  overflow: hidden;
}
.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  gap: 3px;
}
.hero__stat-num {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 20px;
  font-weight: 800;
  color: #FF7043;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero__stat-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  font-weight: 600;
}
.hero__stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
  align-self: stretch;
}

/* ═══════════════════════════════════════════════════════════
   GLASS SYSTEM
═══════════════════════════════════════════════════════════ */
.glass-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.13);
}

/* Glass CTA button */
.btn--glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.82);
  padding: 13px 28px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}
.btn--glass:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════════ */
.about__image-wrap {
  position: relative !important;
}
.about__img-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(ellipse 55% 55% at 50% 50%, rgba(255,112,67,0.2) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(10px);
}
.about__image-wrap img {
  position: relative;
  z-index: 1;
  border-radius: 22px !important;
  filter: brightness(0.93) saturate(1.08);
}
.about__img-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  color: rgba(255,255,255,0.78);
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 14px !important;
}

/* Glass stats */
.about__stats {
  display: grid !important;
  grid-template-columns: repeat(3,1fr) !important;
  gap: 12px !important;
  margin-top: var(--space-2xl) !important;
}
.stat.glass-card {
  padding: 22px 16px !important;
  text-align: center !important;
  border-radius: 16px !important;
}
.stat.glass-card .stat__number {
  font-size: clamp(34px,4vw,52px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  background: linear-gradient(135deg, #FF7043, #FF9A3C) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  line-height: 1 !important;
  margin-bottom: 6px !important;
  display: block !important;
}
.stat.glass-card .stat__label {
  font-size: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  color: rgba(255,255,255,0.35) !important;
  font-weight: 600 !important;
  display: block !important;
}

/* ═══════════════════════════════════════════════════════════
   SECTION LABELS — orange pill
═══════════════════════════════════════════════════════════ */
.section__label {
  color: rgba(255,112,67,0.85) !important;
  background: rgba(255,112,67,0.1) !important;
  border: 1px solid rgba(255,112,67,0.18) !important;
  display: inline-block !important;
  padding: 5px 16px !important;
  border-radius: 9999px !important;
  letter-spacing: 0.14em !important;
  font-size: 10px !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
}

/* ═══════════════════════════════════════════════════════════
   PROJECT CARDS — glass
═══════════════════════════════════════════════════════════ */
.project-card {
  background: rgba(255,255,255,0.035) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 20px !important;
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
              background 0.3s, border-color 0.3s, box-shadow 0.4s !important;
}
.project-card:hover {
  transform: translateY(-8px) !important;
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,112,67,0.28) !important;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,112,67,0.1) !important;
}
.project-card__link {
  color: #FF7043 !important;
}
.project-card__link:hover {
  color: #FF9A3C !important;
}
.tag--web { background: rgba(255,112,67,0.12) !important; color: #FF9A3C !important; border-color: rgba(255,112,67,0.22) !important; }

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEALS — enhanced
═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.85s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.85s cubic-bezier(0.25,0.46,0.45,0.94);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.stagger-1 { transition-delay: 0.05s !important; }
.stagger-2 { transition-delay: 0.12s !important; }
.stagger-3 { transition-delay: 0.2s !important; }
.stagger-4 { transition-delay: 0.28s !important; }
.stagger-5 { transition-delay: 0.38s !important; }

/* ═══════════════════════════════════════════════════════════
   MARQUEE — orange dots
═══════════════════════════════════════════════════════════ */
.marquee-strip {
  border-top: 1px solid rgba(255,255,255,0.05) !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  background: rgba(255,255,255,0.015) !important;
}
.marquee-strip__item {
  color: rgba(255,255,255,0.25) !important;
}
.marquee-strip__item::before {
  color: rgba(255,112,67,0.55) !important;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-primary) !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
}

/* ═══════════════════════════════════════════════════════════
   FIX 3 — Burger menu z-index au-dessus du widget a11y (300)
═══════════════════════════════════════════════════════════ */
.nav__mobile {
  z-index: 350 !important;
}

/* ═══════════════════════════════════════════════════════════
   FIX 6a — About glow : sortir du overflow:hidden
   Le glow a besoin que le parent soit visible.
   L'image garde ses coins arrondis via son propre border-radius.
═══════════════════════════════════════════════════════════ */
.about__image-wrap {
  overflow: visible !important;
}
.about__image-wrap::after {
  border-radius: 22px !important;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — corrections mobile
═══════════════════════════════════════════════════════════ */
@media (max-width: 599px) {
  /* Fix 1 — Titre hero : clamp min de 72px débordait sur 375px */
  .hero__title {
    font-size: clamp(44px, 12vw, 64px) !important;
    margin-bottom: 14px !important;
  }

  /* Fix 2 — Hero trop haut : réduire les marges pour tenir dans 100vh */
  .hero__greeting {
    margin-bottom: 16px !important;
  }
  .hero__stats-card {
    margin-top: 24px !important;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero__content {
    padding-bottom: 80px !important;
  }

  /* Fix 5 — Role strip : cohérence avec hero centré */
  .hero__role { justify-content: center !important; }

  .hero__stat-divider { display: none; }
  .about__img-badge { display: none; }
}

/* Fix 5 — Nav trop chargée sous 380px : masquer le sélecteur de langue */
@media (max-width: 380px) {
  .lang-selector { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE MENU — Logo + bouton fermer
═══════════════════════════════════════════════════════════ */
.nav__mobile-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav__mobile-logo {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary, #f0ece8);
  text-decoration: none;
  line-height: 1;
}
.nav__mobile-logo span { color: #FF7043; }
.nav__mobile-close {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.nav__mobile-close:hover {
  border-color: #FF7043;
  background: rgba(255,112,67,0.1);
  color: #FF7043;
}
.nav__mobile-close svg { width: 20px; height: 20px; }

/* ═══════════════════════════════════════════════════════════
   PAGE CONTACT — PREMIUM
═══════════════════════════════════════════════════════════ */

/* Hero header */
.contact-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(70px + 5rem);
  padding-bottom: 4rem;
  text-align: center;
  background: var(--bg-secondary);
}
.contact-hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.contact-hero__orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,112,67,0.14) 0%, transparent 65%);
  top: -280px; right: -120px;
  animation: orbFloat 16s ease-in-out infinite;
}
.contact-hero__orb--2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(92,160,255,0.08) 0%, transparent 65%);
  bottom: -120px; left: -80px;
  animation: orbFloat 20s ease-in-out infinite reverse;
}
.contact-hero__content { position: relative; z-index: 1; }
.contact-hero__title {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 12px 0 20px;
  color: var(--text-primary);
}
.contact-hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.42);
  line-height: 1.7;
}

/* Info cards grid */
.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 18px;
  border-radius: 16px !important;
  transition: border-color 0.25s, background 0.25s;
}
.contact-info-card:hover {
  border-color: rgba(255,112,67,0.25) !important;
}
.contact-info-card__icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255,112,67,0.1);
  border: 1px solid rgba(255,112,67,0.2);
  display: flex; align-items: center; justify-content: center;
  color: #FF7043;
}
.contact-info-card__icon svg { width: 16px !important; height: 16px !important; flex-shrink: 0; }
.contact-info-card__icon--green {
  background: rgba(74,222,128,0.1) !important;
  border-color: rgba(74,222,128,0.2) !important;
  color: #4ade80 !important;
}
.contact-info-card__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.32);
  font-weight: 600;
  margin-bottom: 5px;
}
.contact-info-card__value {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  word-break: break-all;
}
.contact-info-card__value a {
  color: inherit; text-decoration: none;
  transition: color 0.2s;
}
.contact-info-card__value a:hover { color: #FF7043; }
.contact-info-card__value--green {
  color: #4ade80 !important;
  display: flex; align-items: center; gap: 7px;
}
.contact-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: badgePulse 2s ease-in-out infinite;
}

/* LinkedIn card */
.contact-social {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px !important;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  transition: border-color 0.25s, background 0.25s !important;
  margin-bottom: 0;
}
.contact-social:hover {
  border-color: rgba(255,112,67,0.3) !important;
  background: rgba(255,255,255,0.07) !important;
}
.contact-social__icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 10px;
  background: rgba(10,102,194,0.15);
  border: 1px solid rgba(10,102,194,0.3);
  display: flex; align-items: center; justify-content: center;
  color: #5CA0FF;
}
.contact-social__text { flex: 1; }
.contact-social__name {
  font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.contact-social__handle {
  font-size: 12px;
  color: rgba(255,255,255,0.32);
  margin-top: 2px;
}
.contact-social__arrow { color: rgba(255,255,255,0.22); flex-shrink: 0; }

/* Form card */
.contact__form-card {
  padding: 40px 36px;
  border-radius: 22px !important;
  display: flex;
  flex-direction: column;
}
.contact__form-heading {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.contact__form-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.38);
  margin-bottom: 32px;
  line-height: 1.6;
}
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact__form-card .form-group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.contact__form-card .form-group input,
.contact__form-card .form-group textarea {
  background: rgba(255,255,255,0.07) !important;
  border: 1.5px solid rgba(255,255,255,0.18) !important;
  color: rgba(255,255,255,0.88) !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s !important;
}
.contact__form-card .form-group input:focus,
.contact__form-card .form-group textarea:focus {
  border-color: rgba(255,112,67,0.55) !important;
  background: rgba(255,112,67,0.04) !important;
  box-shadow: 0 0 0 3px rgba(255,112,67,0.08) !important;
  outline: none !important;
}
.contact__form-card .form-group input::placeholder,
.contact__form-card .form-group textarea::placeholder {
  color: rgba(255,255,255,0.18) !important;
}
.contact__form-card .form-group textarea { min-height: 130px; }
.contact__form-btn { align-self: flex-start; margin-top: 8px; }

/* Responsive contact */
@media (max-width: 767px) {
  .contact-info-grid { grid-template-columns: 1fr; }
  .contact-form-row { grid-template-columns: 1fr; }
  .contact__form-card { padding: 28px 22px; }
  .contact-hero { padding-top: calc(70px + 3rem); padding-bottom: 3rem; }
}
