/* ==========================================================================
   OE STUDIO — PALETTE BLEU NUIT PROFOND & DESIGN SYSTEM ÉPURÉ
   ========================================================================== */

:root {
  /* Palette officielle inspirée du logo : Bleu sombre profond & Ivoire */
  --bg-main: #040711;             /* Bleu nuit abyssal / très sombre */
  --bg-surface: #070c1b;          /* Nuance nocturne légèrement rehaussée */
  --bg-card: rgba(8, 14, 30, 0.65);
  --bg-card-hover: rgba(12, 22, 46, 0.85);

  --text-main: #f2efe9;           /* Blanc cassé / ivoire chaud du logo */
  --text-muted: #8b9ab5;          /* Gris ardoise bleuté élégant */
  --text-subtle: #4a5873;         /* Teinte estompée pour les indices */

  --accent-ivory: #ece7de;
  --accent-blue-glow: rgba(45, 95, 220, 0.22);
  --border-subtle: rgba(180, 210, 255, 0.08);
  --border-highlight: rgba(180, 215, 255, 0.26);

  /* Typographies */
  --font-display: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Rayons */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

::selection {
  background: var(--text-main);
  color: var(--bg-main);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   FOND AMBIANT : CANVA BLEU PROFOND + GRILLE ARCHITECTURALE + HALO SOURIS
   ========================================================================== */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: 
    radial-gradient(circle at 50% 28%, rgba(32, 75, 175, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 85% 75%, rgba(18, 48, 120, 0.18) 0%, transparent 65%),
    radial-gradient(circle at 15% 85%, rgba(14, 38, 95, 0.2) 0%, transparent 60%);
}

#ambient-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

/* Grille architecturale contemporaine ultra-fine dans les tons bleu nuit */
.tech-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(to right, rgba(180, 210, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(180, 210, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 38%, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 38%, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 75%);
}

.mouse-glow {
  position: fixed;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(50, 105, 235, 0.07) 0%, rgba(50, 105, 235, 0) 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* ==========================================================================
   LAYOUT & CONTENEURS
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

/* Effet Liquid Glass en verre saphir nocturne */
.liquid-glass {
  background: var(--bg-card);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 
    0 16px 36px -12px rgba(2, 4, 10, 0.7),
    inset 0 1px 1px 0 rgba(180, 215, 255, 0.12);
  position: relative;
  transition: all 0.35s var(--ease-out);
}

.liquid-glass::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(180, 215, 255, 0.25) 0%, rgba(180, 215, 255, 0) 55%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.35s ease;
}

.liquid-glass:hover::before {
  opacity: 1;
}

/* Boutons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--text-main);
  color: var(--bg-main);
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  transition: all 0.25s var(--ease-out);
  box-shadow: 0 0 24px rgba(45, 95, 220, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(60, 120, 255, 0.4);
  color: #02040a;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(180, 210, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.9rem;
  backdrop-filter: blur(12px);
  transition: all 0.25s var(--ease-out);
}

.btn-secondary:hover {
  background: rgba(180, 210, 255, 0.09);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

/* Badges & Tags */
.badge-tech {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 14px;
  background: rgba(180, 210, 255, 0.035);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
}

.dot-status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

/* ==========================================================================
   HERO SECTION (PLEIN ÉCRAN 100VH, TOUT REGROUPÉ & PARFAITEMENT CENTRÉ)
   ========================================================================== */
.hero-section {
  height: 100vh;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 24px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  z-index: 5;
}

.hero-logo-box {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-main {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 10px 28px rgba(45, 95, 220, 0.28));
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.8vw, 5.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-main);
  max-width: 820px;
  margin: 20px auto 16px auto;
  text-align: center;
  width: 100%;
}

.hero-title span {
  color: #7b8ea8;
}

.hero-desc {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.6;
  text-align: center;
  width: 100%;
}

/* Flèche fine d'invitation au scroll */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: max-content;
  color: #ffffff;
  opacity: 0.85;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  z-index: 10;
  animation: scroll-float 2.2s ease-in-out infinite;
}

.scroll-indicator svg {
  display: block;
  stroke: #ffffff;
  filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.35));
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
}

@keyframes scroll-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(9px);
  }
}

/* Halo doux spéculaire bleu profond derrière le Hero */
.hero-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 850px;
  height: 520px;
  background: radial-gradient(
    ellipse,
    rgba(35, 75, 175, 0.24) 0%,
    rgba(15, 35, 85, 0.08) 45%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
  filter: blur(55px);
}

/* ==========================================================================
   SECTION SERVICES (GRILLE 4 CARTES ÉPURÉES)
   ========================================================================== */
.services-section {
  padding: 90px 0 70px;
}

.section-head {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 12px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.service-card {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  overflow: hidden;
}

.service-card .spotlight-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(70, 130, 255, 0.12),
    transparent 50%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover .spotlight-glow {
  opacity: 1;
}

.service-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(4, 7, 17, 0.9);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-bottom: 16px;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.service-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
  font-weight: 300;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(180, 210, 255, 0.035);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   SECTION PHILOSOPHIE (STATEMENT ULTRA-COURT)
   ========================================================================== */
.manifesto-section {
  padding: 70px 0;
}

.manifesto-box {
  padding: 50px 44px;
  text-align: center;
}

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.025em;
  max-width: 780px;
  margin: 16px auto 32px;
}

.manifesto-quote em {
  font-style: normal;
  color: #ffffff;
  border-bottom: 1px solid rgba(180, 215, 255, 0.35);
}

.manifesto-pillars {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
}

.pillar {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.pillar strong {
  color: var(--text-main);
  font-weight: 600;
}

/* ==========================================================================
   SECTION CONTACT & CANAUX DIRECTS (INSTAGRAM @OESTUDIO & EMAIL)
   ========================================================================== */
.contact-section {
  padding: 90px 0 130px;
}

.contact-card-centered {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 48px;
  text-align: center;
}

.contact-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 14px auto 40px auto;
  font-weight: 300;
  max-width: 540px;
  line-height: 1.6;
}

.contact-channels-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  text-align: left;
}

.channel-card {
  padding: 28px 26px;
  border-radius: var(--radius-md);
  background: rgba(6, 11, 24, 0.6);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.channel-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-3px);
  background: rgba(9, 16, 36, 0.85);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7);
}

/* Carte Instagram mise en avant */
.highlight-instagram {
  border-color: rgba(180, 215, 255, 0.22);
  background: linear-gradient(145deg, rgba(14, 25, 54, 0.7) 0%, rgba(8, 14, 30, 0.8) 100%);
  box-shadow: 0 12px 30px -10px rgba(45, 95, 220, 0.25);
}

.highlight-instagram:hover {
  border-color: rgba(200, 230, 255, 0.5);
  box-shadow: 0 18px 40px -10px rgba(60, 120, 255, 0.45);
}

.channel-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(180, 210, 255, 0.06);
  border: 1px solid rgba(180, 210, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: transform 0.3s ease;
}

.channel-card:hover .channel-icon-wrap {
  transform: scale(1.08);
  background: rgba(180, 210, 255, 0.12);
}

.channel-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.channel-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #7b8ea8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.channel-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  word-break: break-word;
  overflow-wrap: break-word;
}

.channel-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 300;
}

.channel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--text-main);
  color: var(--bg-main);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.25s ease;
  margin-top: 8px;
}

.highlight-instagram:hover .channel-btn {
  background: #ffffff;
  box-shadow: 0 0 20px rgba(180, 215, 255, 0.4);
}

.copy-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 8px 16px;
  background: rgba(180, 210, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
  margin-top: 8px;
  cursor: pointer;
}

.copy-btn:hover {
  color: var(--text-main);
  border-color: var(--border-highlight);
  background: rgba(180, 210, 255, 0.09);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0 32px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(4, 7, 17, 0.8);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--text-main);
  line-height: 1;
}

.footer-logo-img {
  width: 29px;
  height: 29px;
  object-fit: contain;
  display: block;
}

.footer-links {
  display: flex;
  gap: 22px;
  list-style: none;
}

.footer-link {
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--text-main);
}

.footer-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   AFFICHAGE IMMÉDIAT DES CONTENUS (ZÉRO LATENCE, ZÉRO BLOCAGE AU SCROLL)
   ========================================================================== */
.reveal {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
  transition: none !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETTE & MOBILE)
   Ne modifie aucunement le rendu sur PC / Grand écran
   ========================================================================== */
@media (max-width: 768px) {
  /* Désactiver les calculs GPU lourds sur mobile pour garantir une fluidité totale 60/120 fps */
  #ambient-canvas {
    display: none !important;
  }
  .mouse-glow {
    display: none !important;
  }
  .liquid-glass {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(7, 13, 27, 0.95) !important;
  }
}

@media (max-width: 860px) {
  .contact-channels-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .contact-card-centered {
    padding: 44px 28px;
  }
}

@media (max-width: 640px) {
  /* Conteneur global */
  .container {
    padding: 0 18px;
  }

  /* Désactiver le halo de souris sur écran tactile */
  .mouse-glow {
    display: none;
  }

  /* Hero Section Mobile */
  .hero-section {
    height: 100vh;
    height: 100dvh;
    min-height: 100dvh;
    padding: 24px 16px 56px 16px;
    justify-content: center;
    box-sizing: border-box;
  }

  .hero-content {
    max-width: 100%;
    padding: 0;
  }

  .hero-logo-box {
    margin-bottom: 14px;
  }

  .hero-logo-main {
    width: 68px;
    height: 68px;
  }

  .badge-tech {
    font-size: 0.68rem;
    padding: 5px 12px;
    max-width: 90%;
    text-align: center;
    white-space: normal;
    line-height: 1.4;
  }

  .hero-title {
    font-size: clamp(2.1rem, 9.5vw, 2.9rem);
    line-height: 1.1;
    margin: 16px auto 14px auto;
  }

  .hero-desc {
    font-size: 0.98rem;
    line-height: 1.5;
    padding: 0 6px;
  }

  .scroll-indicator {
    bottom: 16px;
    padding: 8px;
  }

  .scroll-indicator svg {
    width: 18px;
    height: 18px;
  }

  /* Section Approche Mobile */
  .manifesto-section {
    padding: 60px 0;
  }

  .manifesto-box {
    padding: 32px 18px;
  }

  .manifesto-quote {
    font-size: 1.25rem;
    line-height: 1.4;
    margin: 14px auto 24px auto;
  }

  .manifesto-pillars {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 20px;
    text-align: left;
  }

  .pillar {
    font-size: 0.82rem;
  }

  /* Section Contact Mobile */
  .contact-section {
    padding: 60px 0 90px;
  }

  .contact-card-centered {
    padding: 32px 16px;
  }

  .contact-subtitle {
    font-size: 0.88rem;
    margin: 10px auto 24px auto;
    padding: 0 4px;
  }

  .channel-card {
    padding: 20px 16px;
    gap: 16px;
  }

  .channel-icon-wrap {
    width: 42px;
    height: 42px;
  }

  .channel-title {
    font-size: 1.35rem;
    word-break: break-word;
  }

  .channel-btn {
    padding: 11px 16px;
    font-size: 0.82rem;
  }

  .copy-btn {
    padding: 7px 14px;
    font-size: 0.72rem;
  }

  /* Footer Mobile */
  .site-footer {
    padding: 32px 0 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .footer-time {
    font-size: 0.72rem;
  }
}
