:root {
  --bg: #EDEAE3;
  --bg-deep: #DAD4C6;
  --ink: #241F1A;
  --terracotta: #C1562D;
  --gold: #A9822E;
  --green: #3B4B3A;
  --brown: #5C2C16;
  --white: #F8F5EE;

  --line: rgba(36, 31, 26, 0.14);
  --glass: rgba(237, 234, 227, 0.68);
}


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


html {
  scroll-behavior: smooth;
}


body {
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, sans-serif;
  overflow-x: hidden;
}


body.no-scroll {
  overflow: hidden;
}


::selection {
  background: var(--terracotta);
  color: var(--white);
}


a {
  color: inherit;
}


h1,
h2,
h3,
.display {
  font-family: Fraunces, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}


/* =========================
   NAVIGATION
========================= */

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  height: 92px;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 48px;

  background: rgba(237, 234, 227, 0.72);
  backdrop-filter: blur(18px);

  border-bottom: 1px solid rgba(36, 31, 26, 0.06);
}


.logo {
  font: 600 23px Fraunces, serif;
  text-decoration: none;
  letter-spacing: 0.04em;
}


.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}


.nav-links a {
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 700;

  position: relative;
  padding: 8px 0;
}


.nav-links a::after {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 2px;

  background: var(--terracotta);

  transform: scaleX(0);
  transform-origin: right;

  transition: transform 0.35s ease;
}


.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}


.nav-links a:hover,
.nav-links a.active {
  color: var(--terracotta);
}


.menu-toggle {
  display: none;

  width: 44px;
  height: 44px;

  border: 0;
  background: none;

  position: relative;
  z-index: 1100;

  cursor: pointer;
}


.menu-toggle span {
  position: absolute;

  left: 10px;

  width: 24px;
  height: 2px;

  background: var(--brown);

  transition: 0.35s;
}


.menu-toggle span:first-child {
  top: 18px;
}


.menu-toggle span:last-child {
  top: 26px;
}


.site-nav.open .menu-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}


.site-nav.open .menu-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}


/* =========================
   CURSEUR
========================= */

#cursor {
  position: fixed;

  left: 0;
  top: 0;

  width: 13px;
  height: 13px;

  border: 1px solid var(--gold);

  transform: rotate(45deg);

  z-index: 5000;

  pointer-events: none;

  mix-blend-mode: difference;

  opacity: 0;

  transition:
    transform 0.25s,
    background 0.25s;
}


#cursor.hover {
  transform: rotate(45deg) scale(1.8);

  background: rgba(169, 130, 46, 0.16);
}


/* =========================
   STRUCTURE
========================= */

.container {
  width: min(1120px, calc(100% - 48px));
  margin: auto;
}


.page-main {
  padding-top: 92px;
}


/* =========================
   TEXTES
========================= */

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;

  color: var(--terracotta);

  font-weight: 700;

  margin-bottom: 20px;
}


.hero-inner {
  max-width: 1120px;
  width: min(100% - 48px, 1120px);
  margin: auto;
}


.hero-title {
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.94;
  max-width: 1050px;
}


.hero-sub {
  font-size: 18px;
  line-height: 1.7;

  max-width: 570px;

  color: rgba(36, 31, 26, 0.75);

  margin-top: 28px;
}


.section {
  min-height: 88vh;

  padding: 110px 0;

  display: flex;
  align-items: center;

  position: relative;
}


.section-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 90px;

  align-items: center;
}


.section-title {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
}


.section-copy {
  font-size: 16px;
  line-height: 1.85;

  color: rgba(36, 31, 26, 0.74);
}


/* =========================
   BOUTONS
========================= */

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 12px;

  padding: 17px 30px;

  background: var(--terracotta);
  color: var(--white);

  border: 1px solid var(--terracotta);

  text-decoration: none;

  text-transform: uppercase;

  letter-spacing: 0.11em;

  font-size: 11px;
  font-weight: 700;

  margin-top: 30px;

  transition:
    transform 0.3s,
    background 0.3s;
}


.btn:hover {
  background: var(--ink);
  border-color: var(--ink);
}


.btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}


.btn.secondary:hover {
  background: var(--ink);
  color: var(--white);
}


/* =========================
   REVEAL
========================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);
}


.reveal.is-visible {
  opacity: 1;
  transform: none;

  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}


/* =========================
   CARTES
========================= */

.card-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 18px;
}


.glass-card {
  background: var(--glass);

  border: 1px solid rgba(169, 130, 46, 0.22);

  backdrop-filter: blur(14px);

  padding: 28px;

  position: relative;

  overflow: hidden;
}


.glass-card::before {
  content: "";

  position: absolute;

  inset: 0;

  background:
    radial-gradient(
      circle at var(--mx, 50%) var(--my, 0),
      rgba(169, 130, 46, 0.12),
      transparent 32%
    );

  pointer-events: none;
}


.glass-card h3 {
  font-size: 25px;

  margin-bottom: 12px;

  color: var(--gold);
}


.glass-card p {
  font-size: 14px;
  line-height: 1.7;

  color: rgba(36, 31, 26, 0.72);
}


/* =========================
   ODÙ
========================= */

.odu-number {
  font: 300 42px Fraunces, serif;

  color: var(--terracotta);

  display: block;

  margin-bottom: 15px;
}


.odu-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 14px;
}


.odu-card {
  min-height: 150px;

  padding: 22px;

  border: 1px solid rgba(169, 130, 46, 0.25);

  background: rgba(255, 255, 255, 0.24);

  transition:
    transform 0.4s,
    border-color 0.4s,
    background 0.4s;
}


.odu-card:hover {
  transform: translateY(-7px);

  border-color: var(--terracotta);

  background: rgba(255, 255, 255, 0.5);
}


.odu-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}


.odu-card p {
  font-size: 12px;
  line-height: 1.55;

  color: rgba(36, 31, 26, 0.68);
}


/* =========================
   TIMELINE
========================= */

.timeline {
  position: relative;
  margin-top: 55px;
}


.timeline::before {
  content: "";

  position: absolute;

  left: 35px;
  top: 0;
  bottom: 0;

  width: 1px;

  background:
    linear-gradient(
      var(--gold),
      transparent
    );
}


.timeline-item {
  display: grid;

  grid-template-columns: 70px 1fr;

  gap: 30px;

  margin-bottom: 28px;

  position: relative;
}


.timeline-dot {
  width: 12px;
  height: 12px;

  border: 2px solid var(--gold);

  background: var(--bg);

  transform: rotate(45deg);

  margin: 7px auto;
}


.timeline-card {
  padding: 28px 30px;

  border: 1px solid var(--line);

  background: rgba(255, 255, 255, 0.32);
}


.timeline-card h3 {
  font-size: 27px;
  margin-bottom: 10px;
}


.timeline-card p {
  font-size: 14px;
  line-height: 1.8;

  color: rgba(36, 31, 26, 0.72);
}


/* =========================
   TÉMOIGNAGES
========================= */

.review-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 20px;
}


.review {
  min-height: 300px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;
}


.quote {
  font: 300 italic 25px/1.45 Fraunces, serif;
}


.author {
  font-size: 11px;

  letter-spacing: 0.12em;

  text-transform: uppercase;

  color: var(--gold);
}


/* =========================
   FAQ
========================= */

.faq {
  border-top: 1px solid var(--line);
}


.faq-item {
  border-bottom: 1px solid var(--line);
}


.faq-q {
  width: 100%;

  padding: 24px 0;

  background: none;

  border: 0;

  display: flex;

  justify-content: space-between;

  text-align: left;

  font: 500 22px Fraunces, serif;

  color: var(--ink);

  cursor: pointer;
}


.faq-q span:last-child {
  font: 300 28px Manrope, sans-serif;

  color: var(--gold);
}


.faq-a {
  max-height: 0;

  overflow: hidden;

  transition: max-height 0.45s ease;
}


.faq-a p {
  padding: 0 0 24px;

  max-width: 760px;

  font-size: 15px;

  line-height: 1.8;

  color: rgba(36, 31, 26, 0.72);
}


/* =========================
   FORMULAIRE
========================= */

.form-shell {
  max-width: 760px;

  margin: auto;

  padding: 40px;

  background: rgba(255, 255, 255, 0.3);

  border: 1px solid rgba(169, 130, 46, 0.25);

  backdrop-filter: blur(16px);
}


.form-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 22px;
}


.form-group {
  display: flex;

  flex-direction: column;

  gap: 8px;
}


.form-group.full {
  grid-column: 1 / -1;
}


label {
  font-size: 11px;

  letter-spacing: 0.14em;

  text-transform: uppercase;

  color: var(--gold);

  font-weight: 700;
}


input,
select,
textarea {
  font: 15px Manrope, sans-serif;

  padding: 15px 16px;

  border: 1px solid rgba(36, 31, 26, 0.18);

  background: rgba(255, 255, 255, 0.42);

  color: var(--ink);

  outline: none;

  border-radius: 0;

  transition:
    border 0.3s,
    box-shadow 0.3s,
    background 0.3s;
}


input:focus,
select:focus,
textarea:focus {
  border-color: var(--terracotta);

  background: rgba(255, 255, 255, 0.7);

  box-shadow:
    0 0 0 4px rgba(193, 86, 45, 0.08);
}


.form-note {
  font-size: 12px;

  line-height: 1.6;

  color: rgba(36, 31, 26, 0.6);

  margin-top: 16px;
}


.success {
  display: none;

  margin-top: 20px;

  padding: 18px;

  border-left: 3px solid var(--gold);

  background: rgba(169, 130, 46, 0.08);

  line-height: 1.6;
}


.success.show {
  display: block;
}


/* =========================
   FOOTER
========================= */

.footer {
  background: var(--ink);

  color: var(--white);

  margin-top: 80px;

  border-top: 3px solid var(--gold);
}


.footer-inner {
  width: min(1200px, calc(100% - 48px));

  margin: auto;

  padding: 72px 0 26px;
}


.footer-grid {
  display: grid;

  grid-template-columns: 1.4fr 1fr 1fr;

  gap: 60px;

  padding-bottom: 50px;
}


.footer-logo {
  font: 600 36px Fraunces, serif;

  text-decoration: none;
}


.footer-title {
  font-size: 10px;

  letter-spacing: 0.2em;

  text-transform: uppercase;

  color: var(--gold);

  margin: 22px 0;
}


.footer-desc,
.footer a,
.footer span {
  font-size: 13px;

  line-height: 1.8;

  color: rgba(248, 245, 238, 0.68);
}


.footer a {
  text-decoration: none;

  display: block;

  transition: color 0.3s;
}


.footer a:hover {
  color: var(--terracotta);
}


.footer-bottom {
  border-top: 1px solid rgba(248, 245, 238, 0.12);

  padding-top: 22px;

  display: flex;

  justify-content: space-between;

  gap: 20px;
}


.footer-bottom small {
  font-size: 10px;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  color: rgba(248, 245, 238, 0.42);
}


/* =========================
   ARRIÈRE-PLANS
========================= */

.bg-photo {
  position: fixed;

  inset: 0;

  z-index: -2;

  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(169, 130, 46, 0.12),
      transparent 30%
    ),
    linear-gradient(
      rgba(237, 234, 227, 0.9),
      rgba(237, 234, 227, 0.9)
    ),
    url('../images/savoir-bg.jpg')
    center / cover;
}


.consult-bg {
  position: fixed;

  inset: 0;

  z-index: -2;

  background:
    radial-gradient(
      circle at 75% 25%,
      rgba(193, 86, 45, 0.1),
      transparent 30%
    ),
    linear-gradient(
      rgba(237, 234, 227, 0.9),
      rgba(237, 234, 227, 0.9)
    ),
    url('../images/consultation-bg.jpg')
    center / cover;
}


/* =========================
   SCÈNE 3D
========================= */

#scene-canvas {
  position: fixed;

  inset: 0;

  width: 100%;
  height: 100%;

  z-index: -1;

  pointer-events: none;
}


.hero-home {
  min-height: 100vh;

  display: flex;

  align-items: center;

  position: relative;

  overflow: hidden;
}


.hero-home::after {
  content: "";

  position: absolute;

  inset: auto 0 0;

  height: 30vh;

  background:
    linear-gradient(
      transparent,
      var(--bg)
    );

  pointer-events: none;
}


.hero-home .hero-inner {
  position: relative;

  z-index: 2;

  padding-top: 70px;
}


.scroll-cue {
  position: absolute;

  left: 48px;
  bottom: 35px;

  z-index: 3;

  display: flex;

  gap: 12px;

  align-items: center;

  font-size: 10px;

  letter-spacing: 0.15em;

  text-transform: uppercase;

  color: rgba(36, 31, 26, 0.6);
}


.scroll-cue i {
  width: 1px;
  height: 38px;

  background: var(--gold);

  animation: pulse 2s infinite;
}


@keyframes pulse {

  50% {
    opacity: 0.35;
    transform: scaleY(0.65);
  }

}


.home-section {
  min-height: 100vh;
}


.ambient-band {
  background:
    linear-gradient(
      180deg,
      var(--bg),
      var(--bg-deep),
      var(--bg)
    );
}


.stat-row {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 1px;

  background: var(--line);

  margin-top: 45px;
}


.stat {
  padding: 28px;

  background: var(--bg);
}


.stat strong {
  display: block;

  font: 500 38px Fraunces, serif;

  color: var(--gold);
}


.stat span {
  font-size: 11px;

  letter-spacing: 0.1em;

  text-transform: uppercase;

  color: rgba(36, 31, 26, 0.55);
}


/* =========================
   TABLETTE
========================= */

@media (max-width: 900px) {

  .site-nav {
    padding: 0 24px;
  }


  .nav-links {
    gap: 18px;
  }


  .section-grid {
    gap: 45px;
  }


  .card-grid,
  .review-grid {
    grid-template-columns: 1fr 1fr;
  }


  .odu-grid {
    grid-template-columns: repeat(2, 1fr);
  }


  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

  body {
    cursor: auto;
  }


  .site-nav {
    height: 76px;
  }


  .menu-toggle {
    display: block;
  }


  .nav-links {
    position: fixed;

    inset: 0;

    background: var(--bg);

    flex-direction: column;

    justify-content: center;

    gap: 30px;

    opacity: 0;

    pointer-events: none;

    transform: translateY(-10px);

    transition: 0.35s;
  }


  .site-nav.open .nav-links {
    opacity: 1;

    pointer-events: auto;

    transform: none;
  }


  .nav-links a {
    font-size: 18px;
  }


  .page-main {
    padding-top: 76px;
  }


  .container,
  .hero-inner {
    width: min(100% - 40px, 1120px);
  }


  .section {
    padding: 80px 0;

    min-height: auto;
  }


  .section-grid {
    grid-template-columns: 1fr;

    gap: 35px;
  }


  .hero-home {
    min-height: 100svh;
  }


  .hero-title {
    font-size: clamp(48px, 15vw, 78px);
  }


  .hero-sub {
    font-size: 16px;
  }


  .scroll-cue {
    left: 20px;
  }


  .card-grid,
  .review-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }


  .form-group.full {
    grid-column: auto;
  }


  .form-shell {
    padding: 24px;
  }


  .timeline-item {
    grid-template-columns: 35px 1fr;

    gap: 12px;
  }


  .timeline::before {
    left: 17px;
  }


  .timeline-card {
    padding: 22px;
  }


  .timeline-card h3 {
    font-size: 23px;
  }


  .odu-grid {
    grid-template-columns: 1fr 1fr;
  }


  .stat-row {
    grid-template-columns: 1fr;
  }


  .footer-bottom {
    flex-direction: column;
  }


  .footer-inner {
    padding-top: 55px;
  }

}


/* =========================
   RÉDUCTION DES ANIMATIONS
========================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }


  .reveal {
    opacity: 1;

    transform: none;
  }


  * {
    animation-duration: 0.01ms !important;

    transition-duration: 0.01ms !important;
  }

}
