/* ============================================
   Le Mur des Empreintes — Mines Saint-Étienne
   Design System
   ============================================ */

/* Police Inter auto-hébergée (RGPD : aucun appel à Google Fonts,
   pas de transfert d'IP visiteur vers un tiers — recommandation CNIL) */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/inter-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/inter-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/inter-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/inter-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/inter-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/inter-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/inter-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/inter-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:800;font-display:swap;src:url('/fonts/inter-800-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:800;font-display:swap;src:url('/fonts/inter-800-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

:root {
  --violet: #5b2d90;
  --violet-dark: #43206b;
  --violet-deeper: #331856;
  --violet-light: #efe7f8;
  --violet-soft: #f7f2fb;
  --text: #2c2440;
  --muted: #6e6482;
  --white: #ffffff;
  --gold: #d8b25f;
  --gold-light: #f5ecd4;
  --shadow: 0 12px 30px rgba(91, 45, 144, 0.10);
  --shadow-lg: 0 20px 50px rgba(91, 45, 144, 0.14);
  --radius: 22px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --stagger: 0.08s;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fcfbfe 0%, #f7f2fb 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }

/* --- Container --- */
.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.navbar.scrolled {
  background: rgba(67, 32, 107, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.navbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.navbar-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  overflow: hidden;
}
.navbar-brand .brand-icon img {
  display: block;
  height: 28px;
  width: auto;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}
.navbar-links a:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}
.navbar-links .nav-cta {
  background: var(--white);
  color: var(--violet);
  font-weight: 700;
  padding: 8px 20px;
  white-space: nowrap;
}
.navbar-links .nav-cta:hover {
  background: var(--gold-light);
  color: var(--violet-dark);
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 130px 0 72px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(216,178,95,0.15), transparent 50%),
    radial-gradient(ellipse at 10% 60%, rgba(91,45,144,0.2), transparent 50%),
    linear-gradient(155deg, var(--violet-deeper) 0%, var(--violet-dark) 30%, var(--violet) 100%);
  color: var(--white);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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.85' 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: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, #fcfbfe, transparent);
  pointer-events: none;
  z-index: 2;
}

/* Animated orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(216, 178, 95, 0.12);
  top: -100px;
  right: -50px;
  animation: orbFloat1 8s ease-in-out infinite;
}
.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(91, 45, 144, 0.2);
  bottom: -80px;
  left: -60px;
  animation: orbFloat2 10s ease-in-out infinite;
}
.hero-orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(216, 178, 95, 0.08);
  top: 40%;
  left: 40%;
  animation: orbFloat3 12s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 20px) scale(1.1); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.05); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-15px, -20px) scale(1.15); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(6px);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.subtitle {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.88);
  max-width: 620px;
  margin-bottom: 24px;
  line-height: 1.7;
}

.signature {
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
}
.handwrite {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  font-size: 1.35em;
  color: var(--gold);
  letter-spacing: 0.01em;
}

/* --- Buttons --- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--white);
  color: var(--violet);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-primary:hover {
  background: var(--gold-light);
  color: var(--violet-dark);
}
.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.18);
}
.btn-violet {
  background: var(--violet);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(91,45,144,0.3);
}
.btn-violet:hover {
  background: var(--violet-dark);
}

.small-note {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  max-width: 500px;
}

/* --- Hero Card --- */
.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.12);
}
.hero-card h3 {
  margin-top: 0;
  font-size: 1.12rem;
  margin-bottom: 12px;
}
.hero-card > p {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  line-height: 1.65;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px 12px;
  text-align: center;
  transition: background var(--transition);
}
.stat:hover { background: rgba(255,255,255,0.14); }
.stat strong {
  display: block;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.stat span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
  display: block;
}

/* --- Sections --- */
section { padding: 80px 0; }

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin: 0 0 14px;
  color: var(--violet-dark);
  letter-spacing: -0.02em;
  font-weight: 800;
}
.section-lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* --- Cards Grid --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(91,45,144,0.06);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  background: linear-gradient(135deg, var(--violet), var(--gold));
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: transparent;
}
.card:hover::before {
  opacity: 1;
}
.card h3 {
  margin-top: 0;
  color: var(--violet-dark);
  font-size: 1.15rem;
}

.highlight {
  background: linear-gradient(135deg, rgba(91,45,144,0.06), rgba(216,178,95,0.1));
  border-left: 4px solid var(--gold);
  padding: 18px 20px;
  border-radius: 14px;
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--violet-dark);
}

/* --- Flip Cards (Images) --- */
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 32px;
}

.figure {
  background: transparent;
  border-radius: 24px;
  padding: 0;
  box-shadow: none;
  border: 0;
  perspective: 1200px;
  cursor: pointer;
}
.figure-card {
  position: relative;
  width: 100%;
  height: 520px;
}
.figure h4 {
  margin: 14px 0 6px;
  color: var(--violet-dark);
  font-size: 1rem;
}
.figure p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.flip-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(91,45,144,0.06);
  box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.6, 1);
  backface-visibility: hidden;
}
.flip-face.front {
  z-index: 2;
  display: flex;
  flex-direction: column;
  transform: rotateY(0deg);
}
.flip-face.back {
  z-index: 1;
  transform: rotateY(-90deg);
  background: var(--violet-soft);
  transition: transform 0.35s cubic-bezier(0.0, 0, 0.2, 1);
  transition-delay: 0s;
}
.figure:hover .flip-face.front,
.figure.is-flipped .flip-face.front {
  transform: rotateY(90deg);
}
.figure:hover .flip-face.back,
.figure.is-flipped .flip-face.back {
  transform: rotateY(0deg);
  transition-delay: 0.32s;
}
.flip-visual {
  width: 100%;
  height: 280px;
  overflow: hidden;
  flex: 0 0 280px;
  background: var(--violet-soft);
}
.flip-visual svg { width: 100%; height: 100%; display: block; }
.figure-copy {
  padding: 20px;
  border-top: 1px solid rgba(91,45,144,0.06);
  background: var(--white);
  flex: 1 1 auto;
}
.flip-face.back picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--violet-soft);
}

.caption-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  font-size: 0.8rem;
  border-radius: 999px;
  background: var(--violet-light);
  color: var(--violet-dark);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* --- Demo tesselle (page principale, section visuels) --- */
.demo-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 12px;
  background: rgba(91, 45, 144, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}
.demo-hex-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: var(--violet-soft);
}
.demo-hex-shadow {
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.18));
}
.demo-tesselle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 280px;
  height: 300px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(160deg, #c8bfb4, #a89e93);
  text-align: center;
  padding: 40px 28px;
  box-sizing: border-box;
  color: #2c2440;
  font-family: inherit;
  transition: background 0.4s ease;
}
.demo-tesselle.mat-bois {
  background: url('images/texture-bois.webp') center/cover, url('images/texture-bois.jpg') center/cover;
  color: #3d2b1a;
}
.demo-picto {
  margin-bottom: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 64px;
}
.demo-picto img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: transparent;
}
.demo-name {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.demo-detail {
  font-size: 0.76rem;
  opacity: 0.7;
  margin-top: 4px;
  font-weight: 600;
}
.demo-quote {
  font-size: 0.68rem;
  font-style: italic;
  opacity: 0.78;
  margin-top: 8px;
  line-height: 1.35;
  max-width: 200px;
}

/* --- Steps --- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 28px;
  position: relative;
}
.how-grid::before {
  content: '';
  position: absolute;
  top: 21px;
  left: calc(12.5% + 21px);
  right: calc(12.5% + 21px);
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--gold), var(--violet));
  opacity: 0.2;
  z-index: 0;
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(91,45,144,0.06);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  z-index: 1;
}
.step:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.step .num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--violet), var(--violet-dark));
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(91, 45, 144, 0.25);
}
.step h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: var(--violet-dark);
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* --- CTA Block --- */
.cta-block {
  background: linear-gradient(155deg, var(--violet-deeper), var(--violet-dark) 40%, var(--violet));
  color: white;
  border-radius: 30px;
  padding: 48px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(216,178,95,0.15), transparent 70%);
  pointer-events: none;
}
.cta-block .section-title {
  color: white;
  margin-top: 0;
}
.cta-block p {
  font-size: 1.04rem;
  color: rgba(255,255,255,0.88);
  max-width: 780px;
  line-height: 1.7;
}

/* --- Footer --- */
footer {
  padding: 48px 0 40px;
  background: var(--violet-deeper);
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner > span {
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.8);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
}
.footer-brand img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 28px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 340px;
}
.footer-col-title {
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin: 0 0 12px;
}
.footer-col .footer-links {
  flex-direction: column;
  gap: 8px;
}

/* --- FAQ Accordion --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(91,45,144,0.06);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover {
  box-shadow: var(--shadow-lg);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  cursor: pointer;
  gap: 16px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: var(--violet-dark);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
}
.faq-question:hover {
  color: var(--violet);
}
.faq-chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--violet-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition);
}
.faq-chevron svg {
  width: 14px;
  height: 14px;
  stroke: var(--violet);
  stroke-width: 2.5;
  fill: none;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--violet);
}
.faq-item.open .faq-chevron svg {
  stroke: var(--white);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer-inner {
  padding: 0 28px 24px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 500px;
}

/* --- Stat counter animation --- */
.stat.counted strong {
  animation: countPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes countPop {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered fade-in for grid children */
.grid-2 .fade-in:nth-child(2) { transition-delay: var(--stagger); }
.how-grid .fade-in:nth-child(2) { transition-delay: var(--stagger); }
.how-grid .fade-in:nth-child(3) { transition-delay: calc(var(--stagger) * 2); }
.how-grid .fade-in:nth-child(4) { transition-delay: calc(var(--stagger) * 3); }
.image-grid .fade-in:nth-child(2) { transition-delay: var(--stagger); }
.image-grid .fade-in:nth-child(3) { transition-delay: calc(var(--stagger) * 2); }
/* Évite que transform: translateY(0) crée un stacking context qui aplatirait preserve-3d dans Firefox */
.image-grid .figure.fade-in.visible { transform: none; }
.faq-list .fade-in:nth-child(2) { transition-delay: var(--stagger); }
.faq-list .fade-in:nth-child(3) { transition-delay: calc(var(--stagger) * 2); }
.faq-list .fade-in:nth-child(4) { transition-delay: calc(var(--stagger) * 3); }

/* --- Responsive --- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 110px 0 56px; }
  .grid-2, .image-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid::before { display: none; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .navbar-links .nav-label { display: none; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 640px) {
  .hero { padding: 100px 0 48px; }
  .container { width: min(100% - 24px, 1160px); }
  .stat-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .cta-block { padding: 32px 24px; border-radius: 22px; }
  section { padding: 56px 0; }
  .navbar-links { gap: 4px; }
  .navbar-links a { padding: 6px 10px; font-size: 0.85rem; }
  .navbar-links .nav-cta { padding: 6px 12px; font-size: 0.8rem; }
  .navbar-brand { font-size: 0.95rem; white-space: nowrap; }
  .navbar-brand .brand-icon { width: 32px; height: 32px; }
  .navbar-brand .brand-icon img { height: 24px; }
  .faq-question { padding: 18px 20px; font-size: 0.95rem; }
  .faq-answer-inner { padding: 0 20px 20px; }
}

/* Helpers — remplacent les styles inline (CSP : pas de 'unsafe-inline') */
.text-center { text-align: center; }
.visual-disclaimer {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 18px;
  text-align: center;
}
.cta-row.cta-row--mt { margin-top: 24px; }

/* Section Contact */
.contact-block {
  background: var(--violet-soft);
  border: 1px solid rgba(91, 45, 144, 0.08);
  border-radius: 30px;
  padding: 48px;
  text-align: center;
}
.contact-block p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 22px;
}
.contact-fallback { color: var(--muted); font-size: 0.95rem; }

/* --- Hero arguments (déductibilité + usage des fonds) --- */
.hero-args {
  list-style: none;
  padding: 0;
  margin: 4px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 560px;
}
.hero-args li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,0.92);
  font-size: 0.96rem;
  line-height: 1.55;
}
.hero-args strong { color: var(--white); }
.hero-args-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(216, 178, 95, 0.2);
  color: var(--gold);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  margin-top: 2px;
}

/* --- Deadline banner (date limite réservation) --- */
.deadline-banner {
  display: block;
  margin: 4px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--gold);
  background: rgba(216, 178, 95, 0.12);
  border-radius: 0 12px 12px 0;
  color: rgba(255,255,255,0.95);
  font-size: 0.95rem;
  max-width: 560px;
  line-height: 1.55;
}
.deadline-banner strong { color: var(--white); }
.deadline-banner time { white-space: nowrap; }

/* --- FAQ : liste d'étapes pour « réservation finalisée » --- */
.faq-steps {
  margin: 12px 0 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-steps li {
  padding-left: 4px;
  line-height: 1.6;
}
.faq-steps li::marker {
  color: var(--violet);
  font-weight: 700;
}

/* --- Hero visual : vue d'artiste du mur dès la home --- */
.hero-visual {
  padding: 60px 0 40px;
}
.hero-visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.hero-visual-figure {
  position: relative;
  margin: 0;
  background: var(--violet-soft);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.hero-visual-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 70%;
  display: block;
}
.hero-visual-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  background: rgba(67, 32, 107, 0.92);
  color: var(--white);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}
.hero-visual-tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.hero-visual-label {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}
.hero-visual-copy .section-title {
  margin-top: 0;
}
.hero-visual-copy .section-lead {
  margin-top: 8px;
}
.hero-visual-features {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-visual-features li {
  position: relative;
  padding-left: 26px;
  color: var(--text);
  line-height: 1.55;
}
.hero-visual-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(216, 178, 95, 0.18);
}
@media (max-width: 760px) {
  .hero-visual {
    padding: 40px 0 20px;
  }
  .hero-visual-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-visual-figure {
    aspect-ratio: 4 / 5;
    max-width: 460px;
    margin: 0 auto;
  }
}

/* --- Bandeau partenaires institutionnels --- */
.partners-band {
  padding: 32px 0 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(91, 45, 144, 0.04) 100%);
}
.partners-label {
  text-align: center;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 20px;
}
.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}
.partners-logo {
  display: inline-flex;
  align-items: center;
  opacity: 0.88;
  transition: opacity var(--transition), transform var(--transition);
  text-decoration: none;
}
.partners-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.partners-logo img {
  height: 64px;
  width: auto;
  max-width: 100%;
  display: block;
}
@media (max-width: 600px) {
  .partners-logos { gap: 36px; }
  .partners-logo img { height: 48px; }
}
