/* ============================================================
   MY-VIP-VOYAGE.CSS — Page projet My VIP Voyage
   Accent UI : vert lime Grafitiks (base.css) — or réservé aux
   nuanciers Couleurs, au logo et au halo Site Internet.
   ============================================================ */

/* ── PALETTE PROJET (or) ────────────────────────────────────────
   L'accent UI reste le VERT LIME Grafitiks hérité de base.css
   (curseur, labels, icônes, étincelle, CTA, hovers, bande footer).
   L'or n'apparaît QUE dans : les nuanciers Couleurs (inline),
   le logo (SVG section 05) et le halo de la section Site Internet. */
:root {
  --gold:      #be9652;
  --gold-dark: #8e6936;
  --cream:     #f1e2d8;
}

/* ── HERO ───────────────────────────────────────────────────── */
#hero {
  position: relative;
  height: clamp(560px, 80vh, 720px);
  margin-top: 99px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  scale: 1;
  filter: brightness(1.22) saturate(1.05); /* image trop sombre -> éclaircie */
  transition: scale 9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: scale, translate;
}
#hero.loaded .hero-bg img { scale: 1.08; }
/* Dégradé uniquement à gauche (zone texte) ; la partie droite reste claire */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(13,13,12,0.94) 0%,
    rgba(13,13,12,0.8) 32%,
    rgba(13,13,12,0.45) 52%,
    rgba(13,13,12,0) 72%
  );
}
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 64px var(--content-pad) 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
}
.hero-name {
  display: flex;
  flex-direction: column;
  line-height: 1.02;
  gap: 0;
}
.hero-line1 {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-name span,
.hero-line1 > span {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: clamp(46px, 5.4vw, 75px);
  color: var(--white);
  letter-spacing: 0.005em;
  display: block;
  overflow: hidden;
}
.hero-name span em,
.hero-line1 > span em {
  display: block;
  font-style: normal;
  transform: translateY(110%);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
#hero.loaded .hero-name span em,
#hero.loaded .hero-line1 > span em { transform: translateY(0); }
#hero.loaded .hero-name > span:nth-child(2) em { transition-delay: 0.12s; }
.hero-spark {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-top: 0;
  opacity: 0;
  animation: sparkPulse 3s ease-in-out infinite;
  transition: opacity 0.6s var(--transition) 0.3s;
}
#hero.loaded .hero-spark { opacity: 0.9; }
@keyframes sparkPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.35) rotate(15deg); }
}
.hero-desc {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--gray);
  line-height: 1.75;
  max-width: 430px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--transition) 0.45s, transform 0.7s var(--transition) 0.45s;
}
#hero.loaded .hero-desc { opacity: 1; transform: translateY(0); }
.hero-desc + .hero-desc {
  margin-top: 12px;
  transition: opacity 0.7s var(--transition) 0.6s, transform 0.7s var(--transition) 0.6s;
}

/* ══════════════════════════════════════════════════════════
   COLONNE TEXTE PARTAGÉE (label + titre + desc à gauche)
══════════════════════════════════════════════════════════ */
.split-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  grid-template-rows: auto auto 1fr;
  column-gap: 56px;
  row-gap: 0;
}
.split-grid .section-label { grid-column: 1; grid-row: 1; }
.split-grid .section-title { grid-column: 1; grid-row: 2; align-self: start; }
.split-grid .section-desc  { grid-column: 1; grid-row: 3; align-self: start; padding-top: 6px; }

/* ── SECTION 01 — LE CONCEPT ────────────────────────────────── */
#concept .section-title { white-space: nowrap; }
.concept-cards {
  grid-column: 2;
  grid-row: 2 / 4;          /* du titre LE CONCEPT jusqu'au bas de la description */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-self: stretch;
}
.concept-card {
  background: #111110;
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 34px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  min-height: 290px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.concept-card:hover {
  border-color: rgba(216, 255, 0, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.concept-card-icon {
  margin-bottom: 4px;
  color: var(--accent);
}
.concept-card-icon img { width: 42px; height: 42px; object-fit: contain; }
.concept-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 0;
}
.concept-card-desc {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
  line-height: 1.55;
}

/* ── SECTION 02 — COULEURS ──────────────────────────────────── */
.couleurs-grid {
  grid-column: 2;
  grid-row: 1 / 4;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-self: end;
}
.couleur-swatch { display: flex; flex-direction: column; gap: 14px; }
.couleur-tile {
  width: 100%;
  aspect-ratio: 140.5 / 102.4;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.couleur-hex {
  font-size: 14.2px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
}
.couleur-desc {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.5;
}

/* ── SECTION 03 — IDENTITÉ VISUELLE ─────────────────────────── */
#identite { align-items: start; }
#identite.split-grid { grid-template-columns: 333px 1fr; column-gap: 40px; }
.identite-cards {
  grid-column: 2;
  grid-row: 1 / 4;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 26px;
  align-self: end;
}
.identite-card {
  background: #111110;
  border: 2px solid var(--border);
  border-radius: 20px;
  min-height: 264px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  transition: border-color var(--transition);
}
.identite-card:hover { border-color: rgba(216, 255, 0, 0.3); }
.identite-card--typo { padding: 36px 40px; }
.identite-card img { width: 100%; height: auto; object-fit: contain; }
.identite-card--icons img { max-width: 78%; }

/* ── SECTION 04 — LOGO ──────────────────────────────────────── */
.logo-header { margin-bottom: 8px; }
.logo-header-row {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.logo-header-row .section-title { margin-bottom: 0; flex-shrink: 0; }
.logo-header-row .section-desc { flex: 1; min-width: 280px; max-width: 720px; }
.logo-construction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 44px);
  margin-top: 56px;
  flex-wrap: nowrap;
}
.logo-piece {
  flex: 0 0 auto;
  width: clamp(150px, 19vw, 248px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-piece img { width: 100%; height: 100%; object-fit: contain; }
.logo-op {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: clamp(34px, 4.5vw, 64px);
  color: var(--gray);
  flex-shrink: 0;
  line-height: 1;
}
/* ── Construction animée du logo (tracé ligne par ligne) ── */
.lg { width: 100%; height: 100%; display: block; overflow: visible; }

/* États initiaux : cercles non tracés, formes & quadrillage masqués */
.lg-circle      { stroke-dasharray: 740; stroke-dashoffset: 740; }
.lg02 .lg-circle{ stroke-dasharray: 970; stroke-dashoffset: 970; }
.lg-mv          { opacity: 0; transform: scale(0.94); transform-origin: center; }
.lg-grid > g    { opacity: 0; transform: translateY(6px); }
.logo-op        { opacity: 0; }
.logo-piece--final { opacity: 0; transform: scale(0); transform-origin: center; }

/* Déclenchement au scroll (.is-visible posé sur .logo-construction) */
.logo-construction.is-visible .lg-grid > g { animation: lgRow 0.22s ease forwards; }
.logo-construction.is-visible .lg-grid > g:nth-child(1) { animation-delay: 0.40s; }
.logo-construction.is-visible .lg-grid > g:nth-child(2) { animation-delay: 0.46s; }
.logo-construction.is-visible .lg-grid > g:nth-child(3) { animation-delay: 0.52s; }
.logo-construction.is-visible .lg-grid > g:nth-child(4) { animation-delay: 0.58s; }
.logo-construction.is-visible .lg-grid > g:nth-child(5) { animation-delay: 0.64s; }
.logo-construction.is-visible .lg01 .lg-circle { animation: lgDraw 0.34s ease forwards 0.70s; }
.logo-construction.is-visible .lg01 .lg-mv     { animation: lgPop 0.2s cubic-bezier(0.16,1,0.3,1) forwards 1.02s; }
.logo-construction.is-visible .logo-op:nth-child(2)  { animation: lgPop 0.16s ease forwards 1.22s; }
.logo-construction.is-visible .lg02 .lg-circle { animation: lgDraw 0.34s ease forwards 1.38s; }
.logo-construction.is-visible .lg02 .lg-mv     { animation: lgPop 0.2s cubic-bezier(0.16,1,0.3,1) forwards 1.70s; }
.logo-construction.is-visible .logo-op:nth-child(4)  { animation: lgPop 0.16s ease forwards 1.90s; }
.logo-construction.is-visible .logo-piece--final     { animation: lgPop 0.42s cubic-bezier(0.33,1,0.68,1) forwards 1.98s; }

@keyframes lgDraw { to { stroke-dashoffset: 0; } }
@keyframes lgPop  { to { opacity: 1; transform: scale(1); } }
@keyframes lgRow  { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .lg-circle { stroke-dashoffset: 0; }
  .lg-mv, .lg-grid > g, .logo-op, .logo-piece--final { opacity: 1; transform: none; }
}

/* ── SECTION 05 — SITE INTERNET ─────────────────────────────── */
.site-header-row {
  display: flex;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}
.site-header .section-title { margin-bottom: 0; flex-shrink: 0; }
.site-header .section-desc { flex: 1; min-width: 300px; max-width: 640px; }
.site-inner {
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 48px;
}
.site-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 24px;
}
.site-feature {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-feature-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}
.site-feature-icon img { width: 100%; height: 100%; object-fit: contain; }
.site-feature-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
  line-height: 1.5;
}
.site-caption {
  font-size: 15.8px;
  font-weight: 500;
  color: var(--gray);
  margin-top: 40px;
}
.site-mockup {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-mockup-glow {
  position: absolute;
  width: 115%;
  height: 115%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(204,173,102,0.35) 0%, rgba(204,173,102,0) 65%);
  pointer-events: none;
  z-index: 0;
}
.site-mockup img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}

/* ── Boîtes scrollables — aperçu du site ────────────────────── */
.site-scrolls {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  margin-top: 56px;
}
.site-scroll {
  position: relative;
  height: clamp(520px, 44vw, 680px);
  border: 2px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: #0d0d0c;
}
.site-scroll-inner {
  position: absolute; inset: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(216,255,0,0.4) transparent;
}
.site-scroll-inner::-webkit-scrollbar { width: 6px; }
.site-scroll-inner::-webkit-scrollbar-thumb { background: rgba(216,255,0,0.35); border-radius: 3px; }
.site-scroll-inner img { width: 100%; height: auto; display: block; }
.scroll-hint {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 9px;
  padding: 9px 16px;
  background: rgba(13,13,12,0.82);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--white);
  z-index: 2; pointer-events: none;
  transition: opacity 0.4s ease;
}
.site-scroll.scrolled .scroll-hint { opacity: 0; }
.scroll-hint-mouse {
  width: 15px; height: 23px; border: 1.5px solid var(--accent);
  border-radius: 8px; position: relative; flex-shrink: 0;
}
.scroll-hint-mouse::after {
  content: ''; position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  width: 2.5px; height: 5px; background: var(--accent); border-radius: 2px;
  animation: scrollWheel 1.5s ease-in-out infinite;
}
@keyframes scrollWheel {
  0%, 100% { opacity: 1; top: 4px; }
  50%      { opacity: 0.3; top: 10px; }
}

/* ── SECTION 06 — FONCTIONNALITÉS CLÉS ──────────────────────── */
.fonctionnalites-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.fonctionnalite-card {
  background: #111110;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.fonctionnalite-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.fonctionnalite-card:hover {
  border-color: rgba(216, 255, 0, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.fonctionnalite-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--accent);
}
.fonctionnalite-icon img { width: 100%; height: 100%; object-fit: contain; }
.fonctionnalite-title {
  font-size: 14.2px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 0;
}
.fonctionnalite-desc {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
  line-height: 1.5;
}
/* Retour à la ligne forcé dans certaines cartes — desktop uniquement
   (masqué ≤768px pour laisser le texte se répartir naturellement) */
.fn-desk-br { display: inline; }

/* ── SECTION 07 — COMPÉTENCES MOBILISÉES ────────────────────── */
.competences-card {
  background: #111110;
  border: 2px solid var(--border);
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 48px;
  overflow: hidden;
}
.competence-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  padding: 52px 20px;
  border-right: 2px solid var(--border);
  transition: background var(--transition);
}
.competence-col:last-child { border-right: none; }
.competence-col:hover { background: rgba(216, 255, 0, 0.04); }
.competence-col-icon {
  width: 64px;
  height: 64px;
  color: var(--accent);
}
.competence-col-icon img { width: 100%; height: 100%; object-fit: contain; }
.competence-col-label {
  font-size: 11.8px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.07em;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — TABLETTE (≤ 1024px)
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .split-grid { column-gap: 40px; }
  .split-grid,
  #identite.split-grid { grid-template-columns: 260px 1fr; }

  .concept-cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .couleurs-grid { grid-template-columns: repeat(3, 1fr); }
  .identite-cards { grid-template-columns: 1fr; }
  .identite-card--icons img { max-width: 60%; }

  .site-inner { grid-template-columns: 360px 1fr; gap: 40px; }
  .fonctionnalites-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Hero */
  #hero { height: auto; min-height: 70svh; margin-top: 72px; }
  .hero-content { padding: 56px var(--content-pad) 48px; gap: 14px; }
  .hero-name span,
  .hero-line1 > span { font-size: clamp(38px, 13vw, 56px); }
  .hero-spark { align-self: center; }
  .hero-desc { font-size: 14px; max-width: 75vw; }
  .hero-bg img { object-position: 72% center; }
  .hero-bg::after {
    background:
      linear-gradient(to right, rgba(13,13,12,0.88) 0%, rgba(13,13,12,0.55) 45%, transparent 75%),
      linear-gradient(to bottom, rgba(13,13,12,0.55) 0%, rgba(13,13,12,0.35) 40%, rgba(13,13,12,0.85) 100%);
  }

  /* Colonnes texte -> empilées */
  .split-grid,
  #identite.split-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .split-grid .section-desc { padding-top: 0; margin-bottom: 28px; }

  /* 01 — Concept */
  .concept-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .concept-card { min-height: 210px; padding: 26px 16px 24px; }

  /* 02 — Couleurs : barres horizontales pleine largeur (style Elysium) */
  .couleurs-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: none;
    border: none;
    border-radius: 0;
    overflow: visible;
    margin-top: 8px;
    width: 100%;
    align-self: stretch;
  }
  .couleur-swatch {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    padding: 0;
    border-bottom: none;
    flex-direction: unset;
    gap: unset;
  }
  .couleur-swatch:last-child { border-bottom: none; }
  .couleur-tile {
    grid-column: 1 / 3;
    grid-row: 1;
    width: 100%;
    height: 14px;
    aspect-ratio: auto;
    border-radius: 3px;
    align-self: auto;
    margin-bottom: 14px;
  }
  .couleur-hex { grid-column: 1; grid-row: 2; font-size: 13px; }
  .couleur-desc { grid-column: 2; grid-row: 2; font-size: 11.5px; }

  /* 03 — Identité */
  .identite-cards { gap: 16px; margin-top: 8px; }
  .identite-card { min-height: 0; padding: 28px; }
  .identite-card--icons img { max-width: 80%; }

  /* 04 — Logo : tout en hauteur (colonne) */
  .logo-construction {
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: 32px;
  }
  .logo-piece { width: min(200px, 55vw); }
  .logo-op { font-size: 28px; }

  /* 05 — Site internet : header + tableau features */
  .site-header-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-inner { grid-template-columns: 1fr; gap: 32px; margin-top: 28px; }
  .site-mockup { margin: 32px 0; }
  .site-features {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #111110;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
  }
  .site-feature {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 16px 18px;
    gap: 14px;
    border-bottom: 1px solid var(--border);
  }
  .site-feature:last-child { border-bottom: none; }
  .site-feature-icon { width: 32px; height: 32px; }
  .site-feature-label { font-size: 13px; font-weight: 500; color: var(--gray); line-height: 1.3; }
  .competence-col.clone { display: flex !important; }
  .site-scrolls { grid-template-columns: 1fr; gap: 36px; margin-top: 40px; }
  /* Cadre fixe scrollable, IDENTIQUE à Guy Testa */
  .site-scroll { height: clamp(440px, 120vw, 620px); }

  /* 06 — Fonctionnalités */
  .fonctionnalites-grid { grid-template-columns: 1fr; gap: 12px; }
  .fonctionnalite-card { min-height: 0; }
  .fn-desk-br { display: none; }

  /* 07 — Compétences : carousel JS (wrapper injecté par JS) */
  .comp-carousel-wrap { overflow: hidden; }
  .competences-card {
    display: flex;
    flex-direction: row;
    background: none;
    border: none;
    border-radius: 0;
    gap: 12px;
    margin-top: 32px;
  }
  .competence-col {
    flex: 0 0 auto;
    background: #111110;
    border: 2px solid var(--border) !important;
    border-radius: 12px;
    padding: 32px 16px;
  }
  .competence-col-icon { width: 52px; height: 52px; }

  /* Contrôles carousel compétences */
  .comp-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
  }
  .comp-carousel-dots { display: flex; gap: 8px; align-items: center; }
  .comp-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gray);
    display: inline-block;
    transition: background var(--transition), transform var(--transition);
  }
  .comp-dot.active { background: var(--accent); transform: scale(1.2); }
  .comp-nav-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
  }
  .comp-nav-btn:hover { border-color: var(--accent); background: var(--accent); }
  .comp-nav-btn:hover svg { color: var(--bg); }
  .comp-nav-btn svg { width: 12px; height: 12px; color: var(--gray); transition: color var(--transition); }
}
