/* ================================================================
   STUPEFIX CONSEIL — Feuille de style principale
   Charte graphique : bleu marine / gradient teal-cyan
   ================================================================ */

/* ── Variables ── */
:root {
  --teal-dark:  #0b4a5e;
  --teal:       #0f6a82;
  --teal-mid:   #1588a5;
  --teal-light: #1aa8c8;
  --cyan:       #4dc8e0;
  --noir:       #060a0f;
  --noir2:      #0a0f15;
  --gris1:      #0d141c;
  --gris2:      #121a24;
  --gris3:      #1a2535;
  --gris4:      #243040;
  --txt:        rgba(255,255,255,0.88);
  --txt2:       rgba(255,255,255,0.45);
  --txt3:       rgba(255,255,255,0.16);
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'DM Sans', sans-serif;
  /* Gradient signature du logo */
  --gradient:   linear-gradient(135deg, var(--teal-dark), var(--teal-light));
  --gradient-h: linear-gradient(90deg, var(--teal-dark), var(--cyan));
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--noir);
  color: var(--txt);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Texture grain ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--noir); }
::-webkit-scrollbar-thumb { background: var(--teal-dark); border-radius: 2px; }

/* ================================================================
   NAVIGATION
   ================================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: rgba(6,10,15,0.96);
  padding: 16px 64px;
  border-bottom-color: var(--gris3);
  backdrop-filter: blur(16px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.nav-logo-text {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--txt2);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--txt2);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--gradient-h);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  display: inline-block;
  padding: 9px 24px;
  background: var(--gradient);
  color: #fff !important;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: opacity 0.2s ease;
}
.nav-cta:hover { opacity: 0.85; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 140px 64px 100px;
  overflow: hidden;
}

/* Fond géométrique — hommage au S low-poly */
.hero-geometry {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 52vw;
  max-width: 780px;
  opacity: 0.06;
  pointer-events: none;
}

/* Ligne centrale */
.hero::before {
  content: '';
  position: absolute;
  top: 15%; bottom: 15%;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--teal-dark) 30%, var(--teal-dark) 70%, transparent);
}

.hero-bg-word {
  position: absolute;
  left: -10px;
  bottom: -40px;
  font-family: var(--serif);
  font-size: clamp(100px, 15vw, 220px);
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px rgba(15,106,130,0.12);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -8px;
}

.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 32px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gradient-h);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(56px, 6.5vw, 96px);
  font-weight: 300;
  line-height: 1.03;
  color: rgba(255,255,255,0.94);
  margin-bottom: 40px;
}

.hero-title em {
  font-style: italic;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .line { display: block; overflow: hidden; }

.hero-title .line span {
  display: block;
  transform: translateY(100%);
  animation: lineUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title .line:nth-child(2) span { animation-delay: 0.14s; }
.hero-title .line:nth-child(3) span { animation-delay: 0.28s; }

.hero-text {
  font-size: 15px;
  color: var(--txt2);
  line-height: 1.9;
  max-width: 520px;
  margin-bottom: 52px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.7s forwards;
}

.hero-cta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.9s forwards;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.5s forwards;
}

.hero-stat {
  background: var(--gris1);
  padding: 36px 32px;
  border: 1px solid var(--gris3);
  position: relative;
  overflow: hidden;
}

.hero-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px;
  height: 100%;
  background: var(--gradient);
}

.hero-stat-num {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  line-height: 1;
  margin-bottom: 8px;
}

.hero-stat-num sup {
  font-size: 24px;
  vertical-align: super;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--txt3);
}

/* ================================================================
   BOUTONS
   ================================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--gradient);
  color: #fff;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 32px;
  border: 1px solid var(--gris4);
  color: var(--txt2);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s ease;
}
.btn-ghost:hover { border-color: var(--teal-light); color: var(--cyan); }

/* ================================================================
   SÉPARATEURS
   ================================================================ */
.divider {
  width: 100%;
  height: 1px;
  background: var(--gris2);
}

.divider-gradient {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal-dark), transparent);
}

/* ================================================================
   SECTIONS — BASE
   ================================================================ */
.section {
  padding: 120px 64px;
  max-width: 1240px;
  margin: 0 auto;
}

.section-bg {
  background: var(--gris1);
  padding: 120px 64px;
}

.section-bg-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gradient-h);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(40px, 4.5vw, 62px);
  font-weight: 300;
  line-height: 1.1;
  color: rgba(255,255,255,0.92);
  margin-bottom: 24px;
}

.section-title em {
  font-style: italic;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  font-size: 15px;
  color: var(--txt2);
  line-height: 1.85;
  max-width: 560px;
}

/* ================================================================
   IDENTITÉ
   ================================================================ */
.identite-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 100px;
  align-items: start;
}

.identite-text {
  font-size: 15px;
  color: var(--txt2);
  line-height: 1.9;
  margin-bottom: 20px;
}

.identite-text strong {
  color: var(--txt);
  font-weight: 400;
}

.identite-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 48px;
}

.value-card {
  background: var(--noir2);
  border: 1px solid var(--gris3);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.value-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-h);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.value-card:hover { border-color: var(--teal-dark); }
.value-card:hover::after { transform: scaleX(1); }

.value-num {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--teal-light);
  margin-bottom: 14px;
}

.value-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--txt);
  margin-bottom: 10px;
}

.value-text {
  font-size: 13px;
  color: var(--txt2);
  line-height: 1.7;
}

/* ================================================================
   PORTFOLIO
   ================================================================ */
.portfolio-header {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}

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

.p-card {
  background: var(--gris1);
  border: 1px solid var(--gris2);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.p-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-h);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.p-card:hover {
  background: var(--gris2);
  border-color: var(--gris3);
}

.p-card:hover::before { transform: scaleX(1); }

.p-card.featured {
  grid-column: span 2;
  background: var(--gris2);
  border-color: var(--gris3);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.p-num {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--txt3);
  margin-bottom: 28px;
}

.p-domain {
  display: inline-block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal-light);
  border: 1px solid rgba(26,168,200,0.25);
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.p-name {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  line-height: 1.1;
  margin-bottom: 18px;
}

.p-card.featured .p-name { font-size: 48px; }

.p-text {
  font-size: 13px;
  color: var(--txt2);
  line-height: 1.8;
  margin-bottom: 36px;
}

.p-footer {
  border-top: 1px solid var(--gris3);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.p-meta {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--txt3);
  text-transform: uppercase;
}

.p-link {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--teal-light);
  text-decoration: none;
  transition: color 0.2s ease, letter-spacing 0.2s ease;
  white-space: nowrap;
}

.p-link:hover { color: var(--cyan); letter-spacing: 2px; }

/* ================================================================
   DIRIGEANT
   ================================================================ */
.dirigeant-inner {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: 40px;
  align-items: start;
}

.portrait-frame {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--gris2);
  border: 1px solid var(--gris3);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-initials {
  font-family: var(--serif);
  font-size: 88px;
  font-weight: 300;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.4;
  user-select: none;
}

.portrait-badge {
  position: absolute;
  bottom: 0; right: 0;
  background: var(--gradient);
  color: #fff;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 18px;
}

.dirigeant-name {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 300;
  line-height: 1.05;
  color: rgba(255,255,255,0.95);
  margin-bottom: 10px;
}

.dirigeant-role {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 36px;
}

.bio {
  font-size: 15px;
  color: var(--txt2);
  line-height: 1.9;
  margin-bottom: 18px;
  max-width: 560px;
}

.bio strong { color: var(--txt); font-weight: 400; }
.bio em { color: var(--cyan); font-style: italic; }

.xp-section {
  margin-top: 48px;
  border-top: 1px solid var(--gris3);
  padding-top: 36px;
}

.xp-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--txt3);
  margin-bottom: 24px;
}

.xp-list { display: flex; flex-direction: column; gap: 16px; }

.xp-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 20px;
  align-items: baseline;
  font-size: 13px;
}

.xp-year {
  font-family: var(--serif);
  font-size: 11px;
  color: var(--teal-light);
  letter-spacing: 1px;
}

.xp-role { color: var(--txt2); }

.xp-co {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--txt);
  text-align: right;
}

/* ================================================================
   CONTACT / SOCIAL
   ================================================================ */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: var(--noir2);
  border: 1px solid var(--gris3);
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-card:hover { border-color: var(--teal); }
.social-card:hover::before { opacity: 0.06; }

.social-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gris3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--teal-light);
}

.social-info { position: relative; z-index: 1; flex: 1; }

.social-network {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 4px;
}

.social-handle {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
}

.social-arrow {
  position: relative;
  z-index: 1;
  font-size: 18px;
  color: var(--txt3);
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-card:hover .social-arrow {
  color: var(--teal-light);
  transform: translateX(4px);
}

.contact-note {
  margin-top: 28px;
  font-size: 12px;
  color: var(--txt3);
  letter-spacing: 0.5px;
  line-height: 1.7;
  border-left: 2px solid var(--teal-dark);
  padding-left: 16px;
}

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  background: var(--noir);
  border-top: 1px solid var(--gris2);
  padding: 56px 64px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.5;
}

.footer-logo-name {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--txt3);
}

.footer-copy {
  text-align: center;
  font-size: 11px;
  color: var(--txt3);
  letter-spacing: 0.5px;
}

.footer-nav {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  list-style: none;
}

.footer-nav a {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--txt3);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover { color: var(--teal-light); }

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes lineUp {
  to { transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-1 { transition-delay: 0.1s; }
.reveal-2 { transition-delay: 0.2s; }
.reveal-3 { transition-delay: 0.3s; }
.reveal-4 { transition-delay: 0.4s; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .identite-inner { grid-template-columns: 1fr; gap: 56px; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .p-card.featured { grid-column: span 2; grid-template-columns: 1fr; gap: 24px; }
  .portfolio-header { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  nav { padding: 18px 24px; }
  nav.scrolled { padding: 14px 24px; }
  .nav-links { display: none; }
  .hero { padding: 110px 24px 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 24px; }
  .section-bg { padding: 80px 24px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .p-card.featured { grid-column: span 1; }
  .dirigeant-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .footer-nav { justify-content: center; }
  .hero-bg-word { display: none; }
  .hero::before { display: none; }
}
