/* =========================================
   Parallax IA — style.css
   ========================================= */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #faf5ee;
  color: #3A3A38;
}

/* ─── TYPOGRAPHIE ────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Clash Display', system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  word-spacing: 0.18em;
}

/* Texte display hero */
.parallax-label-text {
  font-family: 'Clash Display', system-ui, sans-serif;
  font-weight: 700;
}

/* Logo nav */
#main-nav > a {
  font-family: 'Clash Display', system-ui, sans-serif;
  font-weight: 700;
}

/* Card titles */
.pcard-title {
  font-family: 'Clash Display', system-ui, sans-serif;
  font-weight: 700;
}

/* Éléments DM Sans Medium/SemiBold */
nav a, button, .cta-label, .pcard-badge, .pcard-desc,
.brand-pill, .faq-trigger span, .process-step p {
  font-family: 'DM Sans', system-ui, sans-serif;
}

/* ─── SECTION LABELS (signature script) ─────────────────────── */
@font-face {
  font-family: 'Lindsey Signature';
  src: url('../fonts/lindsey-signature-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.section-label {
  font-family: 'Lindsey Signature', cursive;
  font-weight: 400;
  font-size: clamp(2.88rem, 5.04vw, 3.96rem);
  color: #3562b1;
  -webkit-text-stroke: 1px #3562b1;
  text-transform: none;
  letter-spacing: 1.5px;
  line-height: 1;
  margin-top: 10px;
  margin-bottom: -0.3em;
  margin-left: calc(0.2em - 50px);
  display: block;
}

.faq-header .section-label {
  margin-left: calc(0.2em - 35px);
}

@media (max-width: 767px) {
  .section-label {
    margin-left: 0;
  }
  .faq-header .section-label {
    margin-left: 0;
  }
}

/* ─── PREMIUM CARDS ──────────────────────────────────────────── */
.glow-card-outer {
  padding: 0;
  border-radius: 32px;
  background: #F5F4F6;
  position: relative;
  border: 1.5px solid transparent;
  box-shadow: 0 2px 18px rgba(58,58,56,0.07);
  transition: box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.22,1,0.36,1), border-color 0.35s ease;
}
.glow-card-outer:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 38px rgba(58,58,56,0.11);
  border-color: #3562b1;
}
.glow-card-inner {
  background: #F5F4F6;
  border-radius: 32px;
  height: 100%;
  position: relative;
  overflow: hidden;
  color: #3A3A38;
}


/* === NAV === */
.nav-transparent {
  top: 0;
  left: 0;
  right: 0;
  border-radius: 0;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  transition: top 0.4s cubic-bezier(0.22,1,0.36,1),
              left 0.4s cubic-bezier(0.22,1,0.36,1),
              right 0.4s cubic-bezier(0.22,1,0.36,1),
              border-radius 0.4s cubic-bezier(0.22,1,0.36,1),
              background 0.4s ease,
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.nav-scrolled {
  top: 14px;
  left: 20px;
  right: 20px;
  border-radius: 999px;
  background: rgba(250, 245, 238, 0.88);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid rgba(206, 186, 163, 0.35);
  box-shadow: 0 4px 24px rgba(100, 70, 40, 0.08);
  transition: top 0.4s cubic-bezier(0.22,1,0.36,1),
              left 0.4s cubic-bezier(0.22,1,0.36,1),
              right 0.4s cubic-bezier(0.22,1,0.36,1),
              border-radius 0.4s cubic-bezier(0.22,1,0.36,1),
              background 0.4s ease,
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

/* ─── BOUTON GLOW (Bloc 02) ──────────────────────────────────── */
.btn-glow {
  --transition: 0.3s ease-in-out;
  --border_radius: 9999px;

  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  background: transparent;
  border: none;
  border-radius: var(--border_radius);
  text-decoration: none;
  transition: transform var(--transition);
}

.btn-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #3562b1;
  border-radius: var(--border_radius);
  transition: background var(--transition);
}

.btn-glow:is(:hover, :focus-visible)::before {
  background: #ffffff;
}

.btn-glow:active { transform: scale(0.97); }

.btn-glow .dots_border {
  overflow: hidden;
  position: absolute;
  inset: -3px;
  background: transparent;
  border-radius: var(--border_radius);
  z-index: 1;
}

.btn-glow::before { z-index: 2; }
.btn-glow .btn-inner { z-index: 3; }

.btn-glow .dots_border::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 50%;
  width: 100%;
  height: 2.5rem;
  background: #3562b1;
  mask: linear-gradient(transparent 0%, white 100%);
  transform-origin: left center;
  animation: btn-rotate 2s linear infinite;
}

@keyframes btn-rotate {
  to { transform: rotate(360deg); }
}

.btn-glow .btn-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow: hidden;
}

.btn-glow .text_button {
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #ffffff;
  white-space: nowrap;
  transition: color 0.4s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

.btn-glow:is(:hover, :focus-visible) .text_button {
  color: #3562b1;
  transform: translateX(1.1rem);
}

.btn-glow .btn-arrow {
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #fff;
  transition: transform 0.4s cubic-bezier(0.4,0,0.6,1),
              opacity 0.25s ease,
              background var(--transition);
}

.btn-glow:is(:hover, :focus-visible) .btn-arrow {
  transform: translateX(3rem);
  opacity: 0;
}

/* ─── BOUTON GLOW INVERSÉ (Bloc 05 — fond bleu) ─────────────── */
.btn-glow-inv {
  --transition: 0.3s ease-in-out;
  --border_radius: 9999px;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  background: transparent;
  border: none;
  border-radius: var(--border_radius);
  text-decoration: none;
  transition: transform var(--transition);
}

.btn-glow-inv::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  border-radius: var(--border_radius);
  transition: background var(--transition);
}

.btn-glow-inv:is(:hover, :focus-visible)::before {
  background: #3A3A38;
}

.btn-glow-inv:active { transform: scale(0.97); }

.btn-glow-inv .dots_border {
  overflow: hidden;
  position: absolute;
  inset: -3px;
  background: transparent;
  border-radius: var(--border_radius);
  z-index: 1;
}

.btn-glow-inv::before { z-index: 2; }
.btn-glow-inv .btn-inner { z-index: 3; }

.btn-glow-inv .dots_border::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 50%;
  width: 100%;
  height: 2.5rem;
  background: white;
  mask: linear-gradient(transparent 0%, white 100%);
  transform-origin: left center;
  animation: btn-rotate 2s linear infinite;
}

.btn-glow-inv .btn-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow: hidden;
}

.btn-glow-inv .text_button {
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #3562b1;
  white-space: nowrap;
  transition: color 0.4s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

.btn-glow-inv:is(:hover, :focus-visible) .text_button {
  color: #ffffff;
  transform: translateX(1.1rem);
}

.btn-glow-inv .btn-arrow {
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  background: rgba(0, 92, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #3562b1;
  transition: transform 0.4s cubic-bezier(0.4,0,0.6,1),
              opacity 0.25s ease,
              background var(--transition);
}

.btn-glow-inv:is(:hover, :focus-visible) .btn-arrow {
  transform: translateX(3rem);
  opacity: 0;
}

/* ─── CTA BTN (nav) ──────────────────────────────────────────── */
.cta-btn {
  transition: background 0.25s ease, color 0.25s ease;
}
.cta-btn:hover { background: #3562b1; color: #fff; }
.cta-btn:hover .cta-dot { background: #fff; color: #3562b1; }

.cta-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow: hidden;
}

.cta-label {
  white-space: nowrap;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

.cta-dot {
  transition: transform 0.4s cubic-bezier(0.4,0,0.6,1),
              opacity 0.25s ease,
              background 0.25s ease,
              color 0.25s ease;
}

.cta-btn:hover .cta-label { transform: translateX(1rem); }
.cta-btn:hover .cta-dot   { transform: translateX(3rem); opacity: 0; }

/* === HERO CARD === */
.hero-card {
  background: transparent;
}

/* === FADE-UP ANIMATION === */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
}

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

/* ─── BLOC 02 — Split gauche / droite ───────────────────────── */
.col-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1s cubic-bezier(0.16,1,0.3,1),
              transform 1s cubic-bezier(0.16,1,0.3,1);
}
.col-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1s cubic-bezier(0.16,1,0.3,1) 1s,
              transform 1s cubic-bezier(0.16,1,0.3,1) 1s;
}
.bloc-02.visible .col-left,
.bloc-02.visible .col-right {
  opacity: 1;
  transform: translateX(0);
}

/* ─── BLOC 03 — Header fade + cards stagger ─────────────────── */
.section-header {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.bloc-03.visible .section-header {
  opacity: 1;
  transform: translateY(0);
}
.bloc-03 .project-card {
  opacity: 0;
  transform: translateY(36px);
}
.bloc-03 .project-card.card-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
.bloc-03 .project-card.card-in:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 44px rgba(58,58,56,0.12);
}

/* ─── BLOC 04 — Titre tombe + items glissent de gauche ──────── */
.faq-header {
  opacity: 0;
  transform: translateY(-18px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.bloc-04.visible .faq-header {
  opacity: 1;
  transform: translateY(0);
}
.faq-item {
  opacity: 0;
  transform: translateX(-28px);
}
.faq-item.item-in {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1),
              border-color 0.25s ease;
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === PROJECT CARDS === */
.project-card {
  background: #F5F4F6;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 18px rgba(58,58,56,0.07);
  transition: box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 44px rgba(58,58,56,0.12);
}
.svc-card-img {
  width: 100%;
  overflow: hidden;
  border-radius: 32px 32px 0 0;
}
.svc-card-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.glow-card-outer:hover .svc-card-img img {
  transform: scale(1.03);
}


/* === FAQ === */
.faq-item {
  transition: border-color 0.25s ease;
}
.faq-item:hover {
  border-color: rgba(0, 92, 255, 0.3);
}
.faq-item.open {
  border-color: rgba(0, 92, 255, 0.4);
}

.faq-trigger {
  cursor: pointer;
  background: none;
  border: none;
  color: #3A3A38;
}

.faq-icon {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  flex-shrink: 0;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  overflow: hidden;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-card {
    min-height: 80vh !important;
  }
}

/* === PROTECTION IMAGES === */
img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}
.gal-item, .project-card-real, a[href] img {
  pointer-events: auto;
}

/* ─── FOND PAPIER PREMIUM ────────────────────────────────────── */

/* Glow 1 — halo chaud centré */
#bg-glow-1 {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  will-change: opacity;
  background: radial-gradient(circle at 50% 50%, rgba(206,186,163,0.38) 0%, transparent 70%);
  animation: bg-breathe 10s ease-in-out infinite alternate;
}

/* Glow 2 — profondeur beige */
#bg-glow-2 {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  will-change: opacity;
  background: radial-gradient(circle at 50% 50%, rgba(180,148,108,0.18) 0%, transparent 75%);
  animation: bg-breathe 14s ease-in-out infinite alternate-reverse;
}

@keyframes bg-breathe {
  from { opacity: 0.7; }
  to   { opacity: 1.0; }
}

/* ─── OVERRIDES THÈME CLAIR ──────────────────────────────────── */

/* text-white global → charcoal */
.text-white { color: #3A3A38 !important; }
.hover\:text-white:hover { color: #3A3A38 !important; }

/* Exception : cards projet (texte sur fond sombre) */
.project-card-real .text-white,
.project-card-real .text-white\/80,
.project-card-real p { color: #ffffff !important; }

/* Textes semi-transparents → version warm dark lisible */
.text-white\/20 { color: rgba(58,58,56,0.62) !important; }
.text-white\/30 { color: rgba(58,58,56,0.68) !important; }
.text-white\/35 { color: rgba(58,58,56,0.72) !important; }
.text-white\/40 { color: rgba(58,58,56,0.76) !important; }
.text-white\/45 { color: rgba(58,58,56,0.80) !important; }
.text-white\/50 { color: rgba(58,58,56,0.84) !important; }
.text-white\/60 { color: rgba(58,58,56,0.88) !important; }
.text-white\/70 { color: rgba(58,58,56,0.92) !important; }

/* Logo et liens nav */
#main-nav > a { color: #3A3A38; }

/* Bordures */
.border-white\/10 { border-color: rgba(58,58,56,0.10); }
.border-white\/15 { border-color: rgba(58,58,56,0.15); }

/* Fonds utilitaires */
.bg-white\/5  { background-color: rgba(58,58,56,0.04); }
.bg-white\/10 { background-color: rgba(58,58,56,0.08); }

/* Fond bleu CTA — garder texte blanc */
.bg-brand { color: #ffffff; }

/* Couleur bleue premium pour tous les textes brand */
.text-brand { color: #3562b1; }

/* Mobile nav (fond sombre) — garder blanc */
#mobile-nav a,
#mobile-nav .text-white,
#mobile-nav .hover\:text-white:hover { color: #ffffff !important; }

/* Point arrow du bouton nav (fond bleu) */
.cta-dot { color: #ffffff !important; }

/* Boutons CTA sur fond bleu — texte blanc */
.btn-glow .text_button { color: #ffffff; }
.btn-glow .btn-arrow   { color: #ffffff; }

