/* Variables & Reset */
:root {
  --primary-blue: #0055a4;
  --primary-red: #ef4135;
  --primary-green: #2dbe60;
  --dark: #2c3e50;
  --light: #f8f9fa;
  --white: #ffffff;
  --text-color: #333;
  --nav-height: 80px;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--light);
  line-height: 1.6;
  overflow-x: clip;
  width: 100%;
}

body.no-scroll { overflow: hidden; height: 100vh; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; color: var(--dark); }
a { text-decoration: none; transition: 0.3s; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* Utilitaires */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.text-blue { color: var(--primary-blue); }
.text-red { color: var(--primary-red); }
.bg-light { background-color: var(--light); }
.bg-white { background-color: var(--white); }
.bg-blue { background-color: var(--primary-blue); }
.text-center { text-align: center; }
.text-white { color: white; }

/* Navigation */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  position: fixed;
  top: 0; left: 0; width: 100%; height: var(--nav-height);
  z-index: 1000;
  display: flex; align-items: center;
}

.nav-container {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  gap: 30px;
}

.logo {
  font-size: 1.4rem; font-weight: 700; text-transform: uppercase; letter-spacing: -0.5px; z-index: 1002;
  display: flex; align-items: center; gap: 15px;
  margin-right: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  text-transform: uppercase;
}

.logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  display: block;
}

.logo-img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex; align-items: center; gap: 15px;
}

.nav-links a {
  font-size: 0.95rem; font-weight: 600; color: var(--dark); position: relative;
}

.nav-links a:not(.btn-nav-cta)::after {
  content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
  background: var(--primary-blue); transition: 0.3s;
}
.nav-links a:not(.btn-nav-cta):hover::after { width: 100%; }
.nav-links a.active { color: var(--primary-blue); }

.btn-nav-cta {
  background-color: var(--primary-green);
  color: white !important;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem; font-weight: 700 !important;
  box-shadow: 0 4px 6px rgba(45, 190, 96, 0.2);
}
.btn-nav-cta:hover {
  background-color: #249d4f; transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(45, 190, 96, 0.3);
}

.lang-switch {
  display: flex; align-items: center; gap: 8px;
  margin-left: 5px; border-left: 1px solid #eee; padding-left: 10px;
}
.lang-btn {
  background: none; border: none; cursor: pointer; padding: 0;
  opacity: 0.5; transition: 0.3s;
}
.lang-btn:hover { opacity: 0.8; }
.lang-btn.active { opacity: 1; transform: scale(1.1); }
.lang-btn img { display: block; border-radius: 2px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }

.burger-menu {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 2000;
  margin-left: auto;
}

.bar {
  width: 25px; height: 3px; background-color: var(--dark);
  transition: 0.3s; border-radius: 3px;
}

.burger-menu.toggle .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.burger-menu.toggle .bar:nth-child(2) { opacity: 0; }
.burger-menu.toggle .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }


/* Elements globaux */
.hero {
  min-height: 90dvh;
  background: url('../src/hero-mm.jpg') center/cover no-repeat;
  background-color: #333;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: white;
  margin-top: var(--nav-height);
  padding: 0 20px;
}
.hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
}
.hero-content { position: relative; z-index: 2; padding: 20px; max-width: 800px; }
.hero h1 { font-size: 3rem; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); color: white; }
.hero h2 { font-size: 1.2rem; font-weight: 400; margin-bottom: 30px; color: #f1f1f1; }

.btn { display: inline-block; padding: 12px 30px; border-radius: 5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.btn-primary { background: white; color: var(--primary-blue); }
.btn-primary:hover { background: #eee; }
.btn-outline { border: 2px solid white; color: white; margin: 0 10px; }
.btn-outline:hover { background: white; color: var(--primary-blue); }

.social-strip {
  background: #5DAB3E;
  color: white;
  padding: 15px 0;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  position: relative;
  z-index: 5;
}
.social-strip .container { display: flex; justify-content: space-between; align-items: center; }
.social-text { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.social-icons a {
  color: white;
  margin-left: 20px;
  font-size: 1.3rem;
  transition: 0.3s;
  display: inline-block;
}
.social-icons a:hover {
  color: var(--dark);
  transform: translateY(-3px);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 50px; }
.card {
  background: white; padding: 30px; border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05); text-align: center; transition: 0.3s;
}
.card:hover { transform: translateY(-5px); }
.card-icon { font-size: 2.5rem; color: var(--primary-blue); margin-bottom: 20px; }
.section-title { font-size: 2rem; margin-bottom: 20px; color: var(--primary-blue); }
.link-arrow { color: var(--primary-red); font-weight: 700; border-bottom: 2px solid transparent; }
.link-arrow:hover { border-bottom: 2px solid var(--primary-red); }

/* Footer */
footer { background: #1a252f; color: #bdc3c7; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: white; margin-bottom: 20px; border-bottom: 2px solid var(--primary-blue); display: inline-block; padding-bottom: 5px;}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: white; }
.copyright { text-align: center; padding-top: 20px; border-top: 1px solid #34495e; font-size: 0.8rem; }


/* Page Adhesion */
.page-header-hero {
  margin-top: var(--nav-height);
  height: 40vh; min-height: 350px;
  background: linear-gradient(135deg, rgba(0,85,164,0.9) 0%, rgba(44,62,80,0.8) 100%), url('../src/img/hero-bg.jpg') center/cover;
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.page-header-hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 10px; text-shadow: 0 4px 10px rgba(0,0,0,0.3); color: white; }
.page-header-hero .subtitle { font-size: 1.2rem; opacity: 0.9; max-width: 600px; }

.step-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  padding: 50px 40px;
  position: relative;
  border-left: 8px solid var(--primary-blue);
  margin-bottom: 60px;
  overflow: visible;
  transition: transform 0.3s ease;
  z-index: 1;
}

.step-badge {
  position: absolute;
  top: -25px; left: 30px;
  width: 50px; height: 50px;
  background: var(--primary-blue); color: white;
  border-radius: 50%;
  font-size: 1.5rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 15px rgba(0,85,164,0.4);
  z-index: 10;
  transition: all 0.5s ease;
}

.locked-step .step-badge {
  filter: blur(4px) grayscale(1);
  opacity: 0.5;
  z-index: 1;
}

.step-connector { text-align: center; font-size: 2rem; color: #ccc; margin: -30px 0 30px; }
.step-content h3 { margin-top: 10px; margin-bottom: 20px; font-size: 1.6rem; color: var(--dark); }

.download-box {
  display: flex; align-items: center;
  background: #f8fbff; border: 1px solid #dcebfb;
  padding: 20px; border-radius: 12px;
  text-decoration: none; transition: 0.3s; margin: 25px 0;
}
.download-box:hover {
  background: #eef6ff; border-color: var(--primary-blue);
  transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,85,164,0.1);
}
.download-box .icon { font-size: 2.2rem; color: var(--primary-red); margin-right: 20px; }
.download-box .text strong { display: block; font-size: 1.1rem; color: var(--primary-blue); font-weight: 700; }
.download-box .text span { font-size: 0.9rem; color: #666; }
.download-box .action { margin-left: auto; color: var(--primary-blue); font-size: 1.2rem; }

.agreement-box {
  background: #fdfdfd; border: 2px dashed #cbd5e0;
  padding: 20px; border-radius: 10px; margin-top: 20px;
  display: flex; justify-content: center; transition: 0.3s;
}
.agreement-box:hover { border-color: var(--primary-green); background: #f0fff4; }

.custom-checkbox {
  display: flex; align-items: center; cursor: pointer;
  font-weight: 600; color: var(--dark); user-select: none;
}
.custom-checkbox input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark {
  width: 26px; height: 26px; min-width: 26px;
  background-color: white; border: 2px solid #a0aec0; border-radius: 6px;
  margin-right: 15px; position: relative; transition: 0.2s;
}
.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--primary-green); border-color: var(--primary-green);
}
.custom-checkbox input:checked ~ .checkmark::after {
  content: '\f00c'; font-family: "Font Awesome 6 Free"; font-weight: 900;
  color: white; font-size: 14px;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
}

.payment-tabs { display: flex; gap: 20px; margin-bottom: 30px; }
.tab-btn {
  flex: 1; padding: 20px; background: white;
  border: 2px solid #edf2f7; border-radius: 12px;
  font-weight: 700; color: #718096; cursor: pointer;
  transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.tab-btn:hover { background: #f7fafc; border-color: #cbd5e0; }
.tab-btn.active {
  background: white; border-color: var(--primary-green); color: var(--primary-green);
  box-shadow: 0 4px 12px rgba(45, 190, 96, 0.2);
}

.locked-step .step-content {
  filter: blur(5px) grayscale(0.8);
  opacity: 0.4;
  pointer-events: none; transition: 0.5s;
}

.lock-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 20;
  display: none; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.5);
  cursor: not-allowed;
  border-radius: 16px;
}
.locked-step .lock-overlay { display: flex; }

.lock-message {
  background: var(--dark); color: white; padding: 15px 30px;
  border-radius: 50px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  display: flex; align-items: center; gap: 15px;
  z-index: 30;
}


/* Responsive globale */
@media (min-width: 901px) and (max-width: 1200px) {
  .logo-text {
    display: none;
  }
  .nav-links {
    gap: 15px;
  }
}

@media (max-width: 900px) {
  .burger-menu { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 75%;
    max-width: 300px;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1500;
  }

  .nav-links.nav-active { transform: translateX(0); }

  .logo-text {
    display: block;
    font-size: 0.85rem;
  }
  .logo-img { height: 60px; }

  .hero h1 { font-size: 2rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .social-strip .container { flex-direction: column; gap: 10px; }

  .payment-tabs { flex-direction: column; gap: 10px; }
  .step-card { padding: 30px 20px; }
}

@media (max-width: 600px) {
  .logo { gap: 10px; }
  .logo-img { height: 45px; }
  .logo-text {
    display: block;
    font-size: 0.75rem;
    line-height: 1.1;
    white-space: normal;
  }
}

/* Page Waltrop / Cesson */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.stat-item {
  background: white;
  padding: 20px 10px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  border-bottom: 3px solid var(--primary-blue);
  transition: 0.3s;
}
.stat-item:hover { transform: translateY(-3px); }

.stat-item i { font-size: 1.5rem; margin-bottom: 10px; display: block; }
.stat-item strong { display: block; font-size: 1.4rem; color: var(--dark); line-height: 1.2; }
.stat-item span { font-size: 0.85rem; color: #666; text-transform: uppercase; letter-spacing: 0.5px; }

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 5px solid white;
}

.card-img {
  background-size: cover !important;
  background-position: center !important;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* Page Association */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.team-card {
  text-align: center;
  padding: 20px;
  transition: 0.3s;
}
.team-card:hover { transform: translateY(-5px); }

.member-img {
  width: 120px; height: 120px;
  background: #e2e8f0;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: #a0aec0;
  overflow: hidden;
  border: 4px solid var(--primary-blue);
}
.team-card h3 { font-size: 1.1rem; margin-bottom: 5px; }
.team-card .role { font-size: 0.9rem; color: var(--primary-red); font-weight: 600; text-transform: uppercase; }


/* Livre interactif */
.book-wrapper {
  height: 900vh;
  position: relative;
  margin: 0;
  background-color: var(--light);
}

.book-sticky {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
}

.book {
  width: 90vw;
  max-width: 900px;
  height: 65vh;
  min-height: 400px;
  position: relative;
  perspective: 2500px;
}

.book-page {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  transform-origin: left center;
  will-change: transform;
  transition: transform 0.1s ease-out;
}

.page-front, .page-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 0 10px 10px 0;
  overflow: hidden;
  box-shadow: inset 5px 0 20px rgba(0,0,0,0.05), 0 5px 15px rgba(0,0,0,0.1);
  background-color: white;
  border: 2px solid var(--primary-blue);
}

.page-back {
  transform: rotateY(180deg);
  border-radius: 10px 0 0 10px;
  box-shadow: inset -5px 0 20px rgba(0,0,0,0.05), 0 5px 15px rgba(0,0,0,0.1);
}

.page-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  text-align: left;
}

.cover-title { font-size: 2.8rem; margin-bottom: 25px; color: white; }
.cover-logo { width: 160px; border-radius: 10px; margin-bottom: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.3); }

.book-text {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background-color: #ffffff;
  position: relative;
  z-index: 10;
  display: block;
  height: 100%;
  width: 100%;
}

.book-text h3 { font-size: 1.5rem; margin-bottom: 5px; }
.book-text h4 { font-size: 1.1rem; color: var(--primary-red); margin-bottom: 15px; }
.book-text p { font-size: 0.9rem; margin-bottom: 10px; text-align: justify; line-height: 1.5; }

.book-text::-webkit-scrollbar { width: 4px; }
.book-text::-webkit-scrollbar-track { background: transparent; }
.book-text::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 4px; }
.book-text::-webkit-scrollbar-thumb:hover { background: var(--primary-blue); }
.book-text { scrollbar-width: thin; scrollbar-color: #cbd5e0 transparent; }

.book-page .cover { border: 2px solid #003b73; }

.end-page-content {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.end-page-content h3 { font-size: 1.8rem; margin-bottom: 20px; }
.end-page-content p { font-size: 1.1rem; line-height: 1.6; color: var(--dark); font-weight: 600; margin-bottom: 15px; }

.icon-large { font-size: 4.5rem; margin-bottom: 20px; opacity: 0.8; }
.italic-text { font-style: italic; color: #666 !important; font-weight: normal !important; }
.mt-btn { margin-top: 20px; box-shadow: 0 4px 15px rgba(0,85,164,0.3); }

/* Responsive Livre */
@media (max-width: 768px) {
  .book {
    width: 95vw;
    height: 72vh;
  }
  .page-content {
    padding: 15px;
  }

  .cover-title { font-size: 2rem; margin-bottom: 15px; }
  .cover-logo { width: 120px; }

  .book-text h3 { font-size: 1.3rem !important; }
  .book-text h4 { font-size: 1rem !important; margin-bottom: 10px; }
  .book-text p { font-size: 0.85rem !important; margin-bottom: 8px; line-height: 1.4; }

  .end-page-content h3 { font-size: 1.3rem !important; margin-bottom: 10px; }
  .end-page-content p { font-size: 0.9rem !important; margin-bottom: 10px; line-height: 1.4; }
  .icon-large { font-size: 3rem !important; margin-bottom: 15px; }
  .mt-btn { margin-top: 10px; padding: 10px 20px; font-size: 0.85rem; }
}


/* Page Contact */
.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.info-item i {
  width: 50px; height: 50px;
  background: #eef6ff;
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-form-wrapper {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  border-top: 5px solid var(--primary-green);
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,85,164,0.1);
}

/* Intro cinematique */
#intro-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #0f172a;
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: opacity 1s ease-out, visibility 1s;
}

#intro-overlay.hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
}

.intro-container {
  position: relative;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}

.blason-img {
  width: 160px; height: auto;
  filter: drop-shadow(0 0 15px rgba(255,255,255,0.2));
}

.asso-img {
  width: 250px;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(255,255,255,0.6));
}

.blason { position: absolute; opacity: 0; }
.center-logo { position: absolute; opacity: 0; transform: scale(0); z-index: 20; }
.shockwave {
  position: absolute;
  width: 20px; height: 20px;
  background: radial-gradient(circle, #fff 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  opacity: 0;
  z-index: 15;
}

.animate-crash .blason-left { animation: crashLeft 1.2s cubic-bezier(0.6, 0.05, 0.2, 1) forwards; }
.animate-crash .blason-right { animation: crashRight 1.2s cubic-bezier(0.6, 0.05, 0.2, 1) forwards; }

@keyframes crashLeft {
  0% { transform: translateX(-60vw) scale(0.5) rotate(-20deg); opacity: 0; }
  80% { opacity: 1; }
  95% { transform: translateX(0) scale(1) rotate(0deg); opacity: 1; }
  100% { transform: translateX(0) scale(1) rotate(0deg); opacity: 0; }
}

@keyframes crashRight {
  0% { transform: translateX(60vw) scale(0.5) rotate(20deg); opacity: 0; }
  80% { opacity: 1; }
  95% { transform: translateX(0) scale(1) rotate(0deg); opacity: 1; }
  100% { transform: translateX(0) scale(1) rotate(0deg); opacity: 0; }
}

.animate-crash .center-logo {
  animation: popLogo 2s cubic-bezier(0.2, 0.8, 0.2, 1) 1.1s forwards;
}

@keyframes popLogo {
  0% { transform: scale(0); opacity: 0; }
  10% { transform: scale(1.3); opacity: 1; }
  20% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.animate-crash .shockwave {
  animation: explode 0.8s ease-out 1.1s forwards;
}

@keyframes explode {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(50); opacity: 0; }
}

@media (max-width: 768px) {
  .blason-img { width: 100px; }
  .asso-img { width: 180px; }

  @keyframes explode {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(80); opacity: 0; }
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-green);
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-blue) #f1f1f1;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Correctifs Hero */
.page-header-hero {
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center center !important;
  background-attachment: scroll;
  color: #ffffff !important;
}

.hero-overlay { z-index: 1 !important; }
.page-header-hero .container { position: relative !important; z-index: 20 !important; }
.page-header-hero h1,
.page-header-hero .subtitle { position: relative; z-index: 21; pointer-events: auto; }

/* Animation contact */
.success-box {
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 0.5s ease;
}

.success-box h3 {
  color: var(--primary-green);
  margin-top: 20px;
  font-size: 1.8rem;
}

.checkmark-circle {
  width: 80px;
  height: 80px;
  position: relative;
  display: inline-block;
  vertical-align: top;
  border-radius: 50%;
  border: 3px solid var(--primary-green);
  background-color: white;
}

.checkmark-circle .checkmark { border-radius: 5px; }

.checkmark-circle .checkmark.draw:after {
  animation-delay: 100ms;
  animation-duration: 1s;
  animation-timing-function: ease;
  animation-name: checkmark;
  transform: scaleX(-1) rotate(135deg);
  animation-fill-mode: forwards;
}

.checkmark-circle .checkmark:after {
  opacity: 1; height: 40px; width: 20px;
  transform-origin: left top;
  border-right: 4px solid var(--primary-green);
  border-top: 4px solid var(--primary-green);
  content: ''; left: 22px; top: 40px; position: absolute;
}

@keyframes checkmark {
  0% { height: 0; width: 0; opacity: 1; }
  20% { height: 0; width: 20px; opacity: 1; }
  40% { height: 40px; width: 20px; opacity: 1; }
  100% { height: 40px; width: 20px; opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Page 404 */
.error-section {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
  background-color: var(--light); margin-top: var(--nav-height);
}

.error-number {
  font-size: 10rem; font-weight: 900; color: var(--dark);
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin-bottom: 20px; font-family: var(--font-heading);
}

.broken-compass {
  display: inline-block; color: var(--primary-blue);
  animation: spinCompass 4s infinite ease-in-out;
}

.error-subtitle { font-size: 1.2rem; color: #666; max-width: 600px; margin: 0 auto; }

@keyframes spinCompass {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(-20deg); }
  40% { transform: rotate(40deg); }
  60% { transform: rotate(360deg); }
  80% { transform: rotate(340deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .error-number { font-size: 6rem; }
  .broken-compass { font-size: 5rem; }
}
