/* ============================================================
   CONCERTO PARTENAIRE — VERSION B — STYLES PARTAGÉS
   ============================================================ */
:root {
  --bleu-nuit: #183058;
  --bleu: #183058;
  --bleu-clair: #3a5a8a;
  --terre: #e07a52;
  --terre-deep: #c95d35;
  --terre-light: #f9d9c5;
  --creme: #fdf9f3;
  --creme-warm: #f5e8d3;
  --vert: #4a7a5e;
  --rose: #f4a890;
  --texte: #183058;
  --texte-soft: #5e6f87;
  --line: rgba(24, 48, 88, 0.1);
  --line-on-dark: rgba(253, 249, 243, 0.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--creme);
  color: var(--texte);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}
body.no-scroll { overflow: hidden; }
.serif { font-family: 'Instrument Serif', serif; }

/* TYPO BALANCE - évite les veuves/orphelins en distribuant les mots */
h1, h2, h3, h4, h5, h6,
.section-title, .hero-title,
.manifesto-text, .manifeste-text {
  text-wrap: balance;
}
p, .lead, blockquote, .quote {
  text-wrap: pretty;
}

/* PRELOADER */
.preloader {
  position: fixed; inset: 0;
  background: var(--bleu-nuit);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  overflow: hidden;
}
.preloader::before {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  background: var(--terre);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: preBlob 2.4s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
@keyframes preBlob {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  50% { transform: translate(20%, -20%) scale(1.2); opacity: 0.5; }
  100% { transform: translate(60%, 80%) scale(0.8); opacity: 0; }
}
.preloader-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 2;
}
.preloader-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 10vw, 140px);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--creme);
  overflow: hidden;
  display: flex;
  gap: 0;
}
.preloader-text span {
  display: inline-block;
  transform: translateY(110%);
  animation: preLetterUp 1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.preloader-text span:nth-child(1) { animation-delay: 0.1s; }
.preloader-text span:nth-child(2) { animation-delay: 0.16s; }
.preloader-text span:nth-child(3) { animation-delay: 0.22s; }
.preloader-text span:nth-child(4) { animation-delay: 0.28s; }
.preloader-text span:nth-child(5) { animation-delay: 0.34s; }
.preloader-text span:nth-child(6) { animation-delay: 0.4s; }
.preloader-text span:nth-child(7) { animation-delay: 0.46s; }
.preloader-text span:nth-child(8) { animation-delay: 0.52s; }
.preloader-text-2 {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 7.5vw, 110px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--terre);
  overflow: hidden;
  display: flex;
  gap: 0;
  margin-top: -0.05em;
}
.preloader-text-2 span {
  display: inline-block;
  transform: translateY(110%);
  animation: preLetterUp 1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.preloader-text-2 span:nth-child(1) { animation-delay: 0.65s; }
.preloader-text-2 span:nth-child(2) { animation-delay: 0.71s; }
.preloader-text-2 span:nth-child(3) { animation-delay: 0.77s; }
.preloader-text-2 span:nth-child(4) { animation-delay: 0.83s; }
.preloader-text-2 span:nth-child(5) { animation-delay: 0.89s; }
.preloader-text-2 span:nth-child(6) { animation-delay: 0.95s; }
.preloader-text-2 span:nth-child(7) { animation-delay: 1.01s; }
.preloader-text-2 span:nth-child(8) { animation-delay: 1.07s; }
.preloader-text-2 span:nth-child(9) { animation-delay: 1.13s; }
.preloader-text-2 span:nth-child(10) { animation-delay: 1.19s; }
@keyframes preLetterUp { to { transform: translateY(0); } }
.preloader-sub {
  margin-top: 32px;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(253, 249, 243, 0.6);
  opacity: 0;
  animation: fadeIn 0.6s ease 1.5s forwards;
  position: relative;
  z-index: 2;
}
@keyframes fadeIn { to { opacity: 1; } }
.preloader.done {
  animation: preloaderOut 1s cubic-bezier(0.76, 0, 0.24, 1) 2.6s forwards;
}
/* Mode LITE pour la navigation interne */
.preloader.lite::before { display: none; }
.preloader.lite .preloader-stack,
.preloader.lite .preloader-sub { display: none; }
.preloader.lite.done {
  animation: preloaderOutLite 0.5s cubic-bezier(0.76, 0, 0.24, 1) 0s forwards;
}
@keyframes preloaderOutLite {
  0% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes preloaderOut {
  to { clip-path: polygon(0 0, 100% 0, 100% 0%, 0 0%); }
}

/* CURSOR */
.cursor-blob {
  position: fixed;
  width: 32px; height: 32px;
  background: var(--terre);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s, background 0.3s;
  mix-blend-mode: multiply;
  filter: blur(2px);
  opacity: 0.7;
}
.cursor-blob.hover {
  width: 100px; height: 100px;
  opacity: 0.5;
}
@media (hover: none) {
  body { cursor: auto; }
  .cursor-blob { display: none; }
}

/* MESH BG */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

/* LOGO WATERMARK (parallaxe) */
.logo-watermark {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  width: clamp(600px, 75vw, 1200px);
  height: auto;
  right: -8%;
  bottom: -12%;
  opacity: 0.08;
  will-change: transform;
  transform: rotate(-8deg);
  transition: opacity 0.6s ease;
}
.logo-watermark img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 800px) {
  .logo-watermark {
    width: 130vw;
    right: -25%;
    bottom: -10%;
    opacity: 0.06;
  }
}
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: meshFloat 25s ease-in-out infinite;
}
.mesh-blob-1 {
  width: 600px; height: 600px;
  background: var(--terre);
  top: -100px; right: -150px;
  animation-delay: 0s;
}
.mesh-blob-2 {
  width: 500px; height: 500px;
  background: var(--bleu-clair);
  top: 40%; left: -200px;
  opacity: 0.35;
  animation-delay: -8s;
}
.mesh-blob-3 {
  width: 400px; height: 400px;
  background: var(--rose);
  bottom: -100px; right: 20%;
  opacity: 0.3;
  animation-delay: -15s;
}
@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(100px, 50px) scale(1.1); }
  66% { transform: translate(-50px, 100px) scale(0.9); }
}

/* NAV PILL */
nav {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  padding: 12px 16px 12px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  background: rgba(253, 249, 243, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  border-radius: 100px;
  border: 1px solid rgba(24, 48, 88, 0.08);
  box-shadow: 0 8px 32px rgba(24, 48, 88, 0.06);
  transition: all 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}
nav.hidden { transform: translate(-50%, -120%); }
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--bleu);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.nav-logo-icon {
  width: 38px; height: 38px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 4px;
  box-shadow: 0 2px 8px rgba(24, 48, 88, 0.06);
  flex-shrink: 0;
}
.nav-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.nav-logo:hover .nav-logo-icon { transform: rotate(8deg) scale(1.1); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  color: var(--texte);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 100px;
  transition: all 0.3s;
  font-weight: 500;
}
.nav-links a:hover {
  background: var(--creme-warm);
  color: var(--bleu);
}
.nav-links a.active {
  background: var(--bleu);
  color: var(--creme);
}
.nav-cta {
  background: var(--terre) !important;
  color: white !important;
  padding: 10px 20px !important;
  margin-left: 8px;
  box-shadow: 0 4px 14px rgba(224, 122, 82, 0.4);
  transition: all 0.3s !important;
}
.nav-cta:hover {
  background: var(--terre-deep) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(224, 122, 82, 0.5);
}

/* HAMBURGER BUTTON */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--bleu);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
  transition: background 0.3s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--creme);
  border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.3s;
}
.nav-burger.open { background: var(--terre); }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* NAV DRAWER (mobile) */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24, 48, 88, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
  z-index: 60;
}
.nav-overlay.open { opacity: 1; visibility: visible; }
.nav-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  height: 100dvh;
  width: min(420px, 88vw);
  background: var(--creme);
  z-index: 70;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
  display: flex;
  flex-direction: column;
  padding: 96px 36px 36px;
  box-shadow: -20px 0 60px rgba(24, 48, 88, 0.15);
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-drawer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  color: var(--bleu);
  text-decoration: none;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s, padding-left 0.3s;
}
.nav-drawer-links a:hover { color: var(--terre); padding-left: 8px; }
.nav-drawer-links a.active { color: var(--terre); }
.nav-drawer-links a::after {
  content: '→';
  opacity: 0.4;
  font-weight: 400;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-drawer-links a:hover::after { opacity: 1; transform: translateX(4px); }
.nav-drawer-cta {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--terre);
  color: white !important;
  padding: 18px 28px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(224, 122, 82, 0.35);
  transition: background 0.3s, transform 0.3s;
}
.nav-drawer-cta:hover { background: var(--terre-deep); transform: translateY(-2px); }
.nav-drawer-footer {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--texte-soft);
  line-height: 1.7;
}
.nav-drawer-footer a {
  color: var(--bleu);
  text-decoration: none;
  font-weight: 600;
}

/* SECTION GENERIC */
section { padding: 140px 32px; position: relative; }
.max-w { max-width: 1500px; margin: 0 auto; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--terre);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.section-eyebrow::before {
  content: '✦';
  display: inline-block;
  animation: rotate 8s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }
h2.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 7vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--bleu-nuit);
  margin-bottom: 32px;
}
h2.section-title .accent {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--terre);
}

/* PAGE HEADER (commun aux pages internes) */
.page-header {
  padding: 180px 32px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  color: var(--bleu);
  font-weight: 500;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(24, 48, 88, 0.04);
}
.page-header-eyebrow::before {
  content: '✦';
  color: var(--terre);
}
h1.page-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 8vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--bleu-nuit);
  margin-bottom: 32px;
  max-width: 1200px;
  margin-left: auto; margin-right: auto;
}
h1.page-title .accent {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--terre);
  position: relative;
}
.page-lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--texte-soft);
  max-width: 700px;
  margin: 0 auto;
}
.page-lede strong {
  color: var(--bleu);
  font-weight: 600;
  background: var(--terre-light);
  padding: 2px 6px;
  border-radius: 4px;
}

/* BUTTONS */
.magnetic-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--terre);
  color: white;
  padding: 20px 36px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border: none;
  box-shadow: 0 12px 32px rgba(224, 122, 82, 0.35);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  cursor: none;
  will-change: transform;
  font-family: inherit;
}
.magnetic-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bleu-nuit);
  transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}
.magnetic-btn:hover::before { transform: translateY(0); }
.magnetic-btn > span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}
.magnetic-btn .arrow {
  width: 28px; height: 28px;
  background: white;
  color: var(--terre);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s;
  font-size: 14px;
}
.magnetic-btn:hover .arrow {
  transform: rotate(-45deg);
  background: var(--terre);
  color: white;
}
.btn-secondary {
  color: var(--bleu);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  border-radius: 100px;
  transition: all 0.3s;
  cursor: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-secondary:hover {
  border-color: var(--bleu);
  transform: translateY(-2px);
  background: white;
}

/* FOOTER */
footer {
  background: var(--creme-warm);
  color: var(--bleu);
  padding: 100px 32px 32px;
  border-top: 3px solid var(--terre);
  position: relative;
}
.footer-top {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}
.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand-icon {
  width: 56px; height: 56px;
  background: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(24, 48, 88, 0.08);
}
.footer-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.footer-brand-name {
  font-weight: 700;
  color: var(--bleu);
  font-size: 20px;
}
.footer-tagline {
  color: var(--texte-soft);
  font-size: 14px;
  max-width: 320px;
  line-height: 1.6;
}
.footer-col h4 {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--terre-deep);
  margin-bottom: 24px;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  color: var(--bleu);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s, padding-left 0.3s;
}
.footer-col a:hover {
  color: var(--terre);
  padding-left: 4px;
}
.footer-bottom {
  max-width: 1500px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(24, 48, 88, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--texte-soft);
}
.footer-bottom-links {
  display: inline-flex;
  gap: 24px;
}
.footer-bottom-links a {
  color: var(--texte-soft);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-bottom-links a:hover { color: var(--terre); }

/* CTA SECTION (commun pages internes) */
.cta-section {
  padding: 180px 32px;
  text-align: center;
  background: var(--bleu-nuit);
  color: var(--creme);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, var(--terre) 0%, transparent 60%);
  opacity: 0.2;
  filter: blur(60px);
  animation: meshFloat 18s ease-in-out infinite;
}
.cta-section-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
}
.cta-section h2 {
  color: var(--creme);
  margin-bottom: 32px;
}
.cta-section h2 .accent {
  color: var(--terre-light);
}
.cta-section p {
  font-size: 19px;
  color: rgba(253, 249, 243, 0.75);
  margin-bottom: 56px;
  max-width: 600px;
  margin-left: auto; margin-right: auto;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-burger { display: flex; }
  nav { padding: 8px 8px 8px 16px; gap: 12px; }
  section { padding: 80px 24px; }
  body { cursor: auto; }
  .cursor-blob { display: none; }
  .magnetic-btn, .btn-secondary { cursor: pointer; }
  .page-header { padding: 140px 24px 60px; }
  .footer-bottom { flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 600px) {
  section { padding: 64px 16px; }
  .page-header { padding: 120px 16px 48px; }
  nav { top: 12px; padding: 6px 6px 6px 12px; gap: 8px; }
  .nav-logo { font-size: 0; }
  .nav-logo .nav-logo-icon { width: 36px; height: 36px; }
  .nav-cta { padding: 8px 14px !important; font-size: 12px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; margin-bottom: 48px; }
  footer { padding: 64px 20px 24px; }
  .magnetic-btn { padding: 16px 24px; font-size: 14px; }
  .btn-secondary { padding: 16px 22px; font-size: 14px; }
  .magnetic-btn .arrow { width: 24px; height: 24px; font-size: 12px; }
  .section-eyebrow { font-size: 12px; margin-bottom: 16px; }
  .page-lede { font-size: 17px; }
  .cta-section { padding: 96px 20px; }
  .cta-section p { font-size: 16px; margin-bottom: 36px; }
  .nav-drawer { padding: 88px 24px 24px; }
  .nav-drawer-links a { font-size: 18px; padding: 14px 4px; }
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
