/*
Theme Name: LAPSO Child
Theme URI: https://lapso.fr
Description: Thème enfant LAPSO — Manager de Transition & IA Factory
Author: Pascal Yassef
Author URI: https://lapso.fr
Template: twentytwentyfour
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: lapso-child
*/

/* ============================================================
   VARIABLES GLOBALES
   ============================================================ */
:root {
  --ink:              #0f0f0f;
  --cream:            #f5f2ed;
  --gold:             #c8a96e;
  --transition-blue:  #1a2d4a;
  --transition-light: #e8edf4;
  --ia-dark:          #0d0d0d;
  --ia-accent:        #7fffb4;
  --ia-purple:        #9b6dff;
  --ia-bg:            #111318;
  --white:            #ffffff;
  --font-serif:       'Playfair Display', Georgia, serif;
  --font-sans:        'DM Sans', sans-serif;
  --font-mono:        'Space Mono', monospace;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.25s; }

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 900;
  line-height: 1.1;
}
.mono { font-family: var(--font-mono); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.lapso-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(245,242,237,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.lapso-nav__logo img {
  width: 150px !important;
  height: auto !important;
}
.lapso-nav__links {
  display: flex; gap: 2.5rem; list-style: none; align-items: center;
}
.lapso-nav__links a {
  font-size: 1rem !important; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); opacity: 0.7;
}
.lapso-nav__links a:hover { opacity: 1; }
.lapso-nav__links .nav-cta {
  background: var(--ink); color: var(--cream);
  opacity: 1; padding: 0.6rem 1.4rem; border-radius: 50px;
  font-size: 0.95rem;
}
.lapso-nav__links .nav-cta:hover { background: var(--gold); color: var(--ink); }

/* ============================================================
   HERO — SPLIT
   ============================================================ */
.lapso-hero {
  display: flex;
  min-height: 100vh;
  padding-top: 80px;
}
.lapso-hero__panel {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 4rem 4rem;
  position: relative; overflow: hidden;
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(.77,0,.18,1);
}
.lapso-hero__panel:has(:hover),
.lapso-hero__panel--transition:hover { flex: 1.15; }
.lapso-hero__panel--transition {
  background: var(--transition-blue);
}
.lapso-hero__panel--transition::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.lapso-hero__panel--ia {
  background: var(--ia-bg);
}
.lapso-hero__panel--ia::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(155,109,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.lapso-hero__panel--ia::after {
  content: '';
  position: absolute; bottom: 80px; left: -50px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(127,255,180,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.lapso-hero__panel--ia .tech-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(127,255,180,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127,255,180,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Pill tag */
.lapso-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.4rem 1rem; border-radius: 50px;
  margin-bottom: 2rem; width: fit-content;
}
.lapso-pill--blue {
  background: rgba(200,169,110,0.15);
  color: var(--gold); border: 1px solid rgba(200,169,110,0.3);
}
.lapso-pill--green {
  background: rgba(127,255,180,0.1);
  color: var(--ia-accent); border: 1px solid rgba(127,255,180,0.25);
}

/* Hero headings */
.lapso-hero h1 {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  color: var(--white);
  margin-bottom: 1.5rem;
}
.lapso-hero h1 em { font-style: italic; color: var(--ia-accent); }
.lapso-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 1rem; line-height: 1.7;
  max-width: 400px; margin-bottom: 2.5rem;
}

/* Separators */
.sep { width: 50px; height: 2px; margin-bottom: 2rem; }
.sep--gold { background: var(--gold); }
.sep--green { background: var(--ia-accent); }

/* Stat row */
.lapso-stats {
  display: flex; gap: 2rem;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.lapso-stat__num {
  display: block;
  font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700;
}
.lapso-stat__num--gold { color: var(--gold); }
.lapso-stat__num--green { color: var(--ia-accent); }
.lapso-stat__label {
  display: block; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   BAND CITATION
   ============================================================ */
.lapso-band {
  background: var(--ink); color: var(--cream);
  padding: 2.5rem 3rem;
  display: flex; align-items: center; gap: 3rem;
  overflow: hidden;
}
.lapso-band__text {
  font-family: var(--font-serif); font-size: 1.1rem; font-style: italic;
  white-space: nowrap; opacity: 0.9;
}
.lapso-band__name {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); white-space: nowrap;
}
.lapso-band__sep { color: rgba(255,255,255,0.2); font-size: 1.5rem; }

/* ============================================================
   ABOUT
   ============================================================ */
.lapso-about {
  background: var(--cream);
  padding: 8rem 3rem;
}
.lapso-about__inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 380px 1fr;
  gap: 6rem; align-items: start;
}
.lapso-about__photo-wrap { position: sticky; top: 120px; }
.lapso-about__photo {
  width: 100%; aspect-ratio: 3/4;
  border-radius: 2px; overflow: hidden;
  position: relative; background: var(--transition-blue);
}
.lapso-about__photo img { width: 100%; height: 100%; object-fit: cover; }
.lapso-about__photo-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(26,45,74,0.9), transparent);
  color: white;
}
.lapso-about__photo-caption strong {
  display: block; font-family: var(--font-serif); font-size: 1.1rem;
}
.lapso-about__photo-caption span {
  font-size: 0.75rem; opacity: 0.7;
  font-family: var(--font-mono); letter-spacing: 0.05em;
}

/* Timeline */
.lapso-timeline {
  position: relative; padding-left: 2rem; margin: 2rem 0;
}
.lapso-timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.lapso-timeline__item { padding-bottom: 1.5rem; position: relative; }
.lapso-timeline__item::before {
  content: ''; position: absolute;
  left: -2.3rem; top: 0.4rem;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--cream);
}
.lapso-timeline__year {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--gold); letter-spacing: 0.1em; margin-bottom: 0.2rem;
}
.lapso-timeline__role { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.15rem; }
.lapso-timeline__co { font-size: 0.8rem; color: rgba(15,15,15,0.5); }

/* About content */
.lapso-about__content h2 {
  font-size: 2.8rem; margin-bottom: 0.5rem;
}
.lapso-about__content .sub {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 2.5rem; display: block;
}
.lapso-about__content p {
  font-size: 1.05rem; line-height: 1.8;
  color: rgba(15,15,15,0.75); margin-bottom: 1.5rem;
}
.lapso-about__content p strong { color: var(--ink); }

/* Tags */
.lapso-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 2rem 0; }
.lapso-tag {
  padding: 0.4rem 1rem; border-radius: 50px;
  font-size: 0.78rem; font-weight: 500;
  border: 1px solid rgba(0,0,0,0.15); color: rgba(0,0,0,0.6);
}
.lapso-tag--blue {
  border-color: var(--transition-blue); color: var(--transition-blue);
  background: rgba(26,45,74,0.05);
}
.lapso-tag--purple {
  border-color: var(--ia-purple); color: var(--ia-purple);
  background: rgba(155,109,255,0.05);
}

/* ============================================================
   SECTIONS SERVICES
   ============================================================ */
.lapso-section {
  padding: 8rem 0;
}
.lapso-section--transition { background: var(--transition-light); }
.lapso-section--ia { background: var(--ia-dark); }
.lapso-section__container { max-width: 1200px; margin: 0 auto; padding: 0 3rem; }

.lapso-section__header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 5rem; gap: 2rem;
}
.lapso-section__header h2 { font-size: 3rem; }
.lapso-section__header h2 em { font-style: italic; }
.lapso-section--ia .lapso-section__header h2 { color: white; }
.lapso-section__desc {
  font-size: 0.95rem; line-height: 1.7;
  max-width: 340px; color: rgba(15,15,15,0.65);
}
.lapso-section--ia .lapso-section__desc { color: rgba(255,255,255,0.5); }

.mono-label {
  display: block; font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem;
}
.lapso-section--ia .mono-label { color: var(--ia-accent); }

/* Cards Transition */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card-t {
  background: white; border-radius: 4px; padding: 2.5rem;
  border: 1px solid rgba(0,0,0,0.08);
  position: relative; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card-t:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(26,45,74,0.1); }
.card-t::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--gold);
}
.card-t--highlight { border: 2px solid var(--gold); background: rgba(200,169,110,0.04); }
.card-num {
  font-family: var(--font-serif); font-size: 3.5rem; font-weight: 900;
  color: rgba(26,45,74,0.08); line-height: 1; margin-bottom: 1.5rem;
}
.card-t h3 {
  font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700;
  margin-bottom: 0.8rem; color: var(--transition-blue);
}
.card-t p { font-size: 0.9rem; line-height: 1.7; color: rgba(15,15,15,0.6); }

/* Cards IA */
.cards-ia-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.card-ia {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px; padding: 2.5rem;
  transition: border-color 0.3s, background 0.3s;
}
.card-ia:hover {
  border-color: rgba(127,255,180,0.3);
  background: rgba(127,255,180,0.03);
}
.card-ia__icon { font-size: 1.8rem; margin-bottom: 1.5rem; display: block; }
.card-ia h3 {
  font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700;
  color: white; margin-bottom: 0.8rem;
}
.card-ia p { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.45); margin-bottom: 1.5rem; }
.card-ia__tag {
  display: inline-block; font-family: var(--font-mono);
  font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: 50px;
  border: 1px solid rgba(127,255,180,0.3); color: var(--ia-accent);
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 2rem; border-radius: 4px;
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  text-decoration: none; transition: all 0.25s;
  width: fit-content; cursor: pointer;
  border: none; font-family: var(--font-sans);
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #e4c27e; transform: translateY(-2px); }
.btn-green { background: var(--ia-accent); color: var(--ia-dark); }
.btn-green:hover { background: #a0ffc8; transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--transition-blue); transform: translateY(-2px); }
.btn-outline { border: 1px solid rgba(0,0,0,0.2); color: rgba(0,0,0,0.7); background: transparent; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 0.9rem; }
.text-center { text-align: center; }

/* ============================================================
   TÉMOIGNAGES
   ============================================================ */
.lapso-testimonials { background: var(--ink); padding: 7rem 0; }
.lapso-testimonials h2 {
  font-family: var(--font-serif); font-size: 2.5rem; font-weight: 900;
  color: white; line-height: 1.1;
}
.lapso-testimonials h2 em { font-style: italic; color: var(--gold); }
.testimonials-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; margin-top: 4rem;
}
.testimonial-card {
  padding: 2.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px; position: relative;
}
.testimonial-card::before {
  content: '"';
  font-family: var(--font-serif); font-size: 6rem; line-height: 1;
  position: absolute; top: -0.5rem; left: 2rem;
  color: rgba(200,169,110,0.15);
}
.testimonial-card p {
  font-size: 0.95rem; line-height: 1.75;
  color: rgba(255,255,255,0.65); font-style: italic;
  margin-bottom: 1.5rem; padding-top: 1rem;
}
.testimonial-card strong { display: block; color: white; font-size: 0.85rem; font-weight: 500; }
.testimonial-card span { color: var(--gold); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ============================================================
   CTA FINAL
   ============================================================ */
.lapso-cta { background: var(--cream); padding: 8rem 3rem; text-align: center; }
.lapso-cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 900;
  line-height: 1.05; max-width: 700px; margin: 0 auto 1.5rem;
}
.lapso-cta p {
  font-size: 1.05rem; color: rgba(15,15,15,0.6);
  max-width: 480px; margin: 0 auto 3rem; line-height: 1.7;
}
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.lapso-footer {
  background: var(--ink); color: rgba(255,255,255,0.5);
  padding: 3rem; display: flex;
  align-items: center; justify-content: space-between;
  font-size: 0.8rem;
}
.lapso-footer__logo {
  font-family: var(--font-serif); font-size: 1.4rem;
  font-weight: 900; color: white; letter-spacing: -0.02em;
}
.lapso-footer__links { display: flex; gap: 2rem; list-style: none; }
.lapso-footer__links a {
  color: rgba(255,255,255,0.4); font-size: 0.78rem;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.lapso-footer__links a:hover { color: white; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.lapso-hero__panel > * {
  animation: fadeUp 0.7s ease both;
}
.lapso-hero__panel--transition > *:nth-child(1) { animation-delay: 0.1s; }
.lapso-hero__panel--transition > *:nth-child(2) { animation-delay: 0.2s; }
.lapso-hero__panel--transition > *:nth-child(3) { animation-delay: 0.3s; }
.lapso-hero__panel--transition > *:nth-child(4) { animation-delay: 0.4s; }
.lapso-hero__panel--transition > *:nth-child(5) { animation-delay: 0.5s; }
.lapso-hero__panel--ia > *:nth-child(1) { animation-delay: 0.2s; }
.lapso-hero__panel--ia > *:nth-child(2) { animation-delay: 0.3s; }
.lapso-hero__panel--ia > *:nth-child(3) { animation-delay: 0.4s; }
.lapso-hero__panel--ia > *:nth-child(4) { animation-delay: 0.5s; }
.lapso-hero__panel--ia > *:nth-child(5) { animation-delay: 0.6s; }
.cursor {
  display: inline-block; width: 2px; height: 0.9em;
  background: var(--ia-accent); margin-left: 4px;
  vertical-align: middle; animation: blink 1s infinite;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .lapso-hero { flex-direction: column; }
  .lapso-hero__panel { padding: 5rem 2.5rem 4rem; }
  .lapso-about__inner { grid-template-columns: 1fr; gap: 3rem; }
  .lapso-about__photo-wrap { position: static; }
  .lapso-about__photo { aspect-ratio: 4/3; }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-ia-grid { grid-template-columns: 1fr; }
  .lapso-nav { padding: 1rem 1.5rem; }
  .lapso-nav__links { gap: 1.5rem; }
  .lapso-section__header { flex-direction: column; align-items: flex-start; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .lapso-footer { flex-direction: column; gap: 1.5rem; text-align: center; }
  .lapso-band { flex-direction: column; gap: 0.5rem; }
  .lapso-band__text { white-space: normal; }
}
