/********** Template CSS **********/
/* Global reset to ensure 100% width and no extra spacing */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Ensure all containers are 100% width on mobile */
@media (max-width: 768px) {
  .container, .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
  .col-sm, .col-md, .col-lg, .col-xl, .col-xxl {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

:root {
  --primary: #6366f1;
  --light: #c7d2fe;
  --dark: #3730a3;
  --bg-color: #f8fafc;
  --accent-color: #f59e0b;
  --text-color: #475569;
  --white: #ffffff;
  --bg-primary: #f1f5f9;
  --text-primary: #334155;
  --heading-color: #1e293b;
  --border-radius: 8px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  --gradient-bg: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.bg-dark {
  background-color: var(--dark) !important;
}

.fw-medium {
  font-weight: 500 !important;
}

.fw-semi-bold {
  font-weight: 600 !important;
}

.error-message {
  color: var(--primary);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
  min-height: 1.2rem;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.error-message:not(:empty) {
  opacity: 1;
}

/* Додатковий стиль для полів з помилками */
.form-control.error {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 0.2rem var(--dark) !important;
}


/* Back-to-top button styles are now enhanced above */

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Button ***/
.btn {
  font-weight: 500;
  text-transform: uppercase;
  transition: 0.5s;
}

.btn.btn-primary,
.btn.btn-secondary {
  color: #ffffff;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn.btn-primary::before,
.btn.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn.btn-primary:hover::before,
.btn.btn-secondary:hover::before {
  left: 100%;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
  border-radius: 2px;
}

/*** Navbar ***/
.navbar-dark .navbar-nav .nav-link {
  margin-right: 30px;
  padding: 25px 0;
  color: #ffffff;
  font-size: 15px;
  text-transform: uppercase;
  outline: none;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--accent-color);
  transform: translateY(-2px);
  text-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

@media (max-width: 991.98px) {
  .navbar-dark .navbar-nav .nav-link {
    margin-right: 0;
    padding: 10px 0;
  }
}

  /* Footer Styles */
  .footer {
    background-color: var(--dark) !important;
    color: #ffffff;
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.footer-brand {
    color: #ffffff !important;
    font-size: 1.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
}

.footer-brand:hover {
    color: var(--accent-color) !important;
    transform: translateY(-3px) scale(1.05);
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.footer-brand::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.footer-brand:hover::after {
    width: 100%;
}

.footer-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}



.btn-link {
    color: #ffffff !important;
    text-decoration: none;
    padding: 0.5rem 0;
    border: none;
    text-align: left;
    transition: all 0.4s ease;
    font-size: 0.95rem;
    position: relative;
}

.btn-link:hover {
    color: var(--accent-color) !important;
    transform: translateX(8px) scale(1.05);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.btn-link::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--accent-color);
}

.btn-link:hover::before {
    opacity: 1;
    left: -20px;
}

.footer-email {
    color: #ffffff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-email-icon {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.footer-section-title {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Copyright section */
.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: #bdc3c7;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-brand {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .footer-links {
        margin-bottom: 1.5rem;
    }
}

/* Google Fonts - Inter */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,100..900;1,100..900&display=swap");

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Animation classes */
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Additional animations */
@keyframes colorShift {
  0% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(180deg); }
  100% { filter: hue-rotate(360deg); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.6), 0 0 30px rgba(245, 158, 11, 0.4); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.animate-color-shift {
  animation: colorShift 3s infinite;
}

.animate-glow {
  animation: glow 2s infinite;
}

.animate-bounce {
  animation: bounce 1s infinite;
}

.animate-shake {
  animation: shake 0.5s ease-in-out;
}

.animate-rotate {
  animation: rotate 2s linear infinite;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out;
}

@media (max-width: 700px) {
  .cookie-wrapper {
    width: 100%;
  }
}

.cookie-wrapper {
  position: fixed;
  bottom: 0px;
  right: 0;
  width: 40%;
  background: #f2f2f2;
  padding: 15px 25px 22px;
  transition: right 0.3s ease;
  box-shadow: 0 5px 10px rgb(0, 0, 0);
  z-index: 999;
  width: 100%;

  @media (max-width: 600px) {
    width: 100%;
  }
}

.cookie-wrapper .show {
  right: 20px;
}

.hidden {
  display: none;
}

header i {
  color: var(--dark);
  font-size: 32px;
  text-align: center;
}

header h2 {
  color: var(--dark);
  font-weight: 500;
  text-align: center;
}

.data {
  text-align: center;
}

.data p a {
  color: var(--dark);
  text-decoration: none;
  text-align: center !important;
}

.data p a:hover {
  text-decoration: underline;
}

.buttons {
  padding: 20px 0px;
  text-align: center;
}

.buttons .cookie-button {
  border: 2px solid var(--dark);
  color: #fff;
  padding: 8px 0;
  background: var(--dark);
  cursor: pointer;
  width: calc(100% / 2 - 10px);
  transition: all 0.5s ease;
  max-width: 150px;
  border-radius: 0;
}

.buttons #acceptBtn:hover {
  background-color: transparent;
  color: var(--dark);
}

#declineBtn {
  background-color: #fff;
  color: var(--dark);
}

#declineBtn:hover {
  background-color: var(--dark);
  color: #fff;
}

/* new styles  */
/* Variables globales */

/* Styles pour le bloc hero */
.hero-section {
  padding: 150px 0;
  background: var(--gradient-bg);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23f1f5f9" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23e2e8f0" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23cbd5e1" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero-title {
  color: var(--heading-color);
  font-weight: 700;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  transition: all 0.4s ease;
  position: relative;
}

.hero-title:hover {
  color: var(--accent-color);
  transform: scale(1.05);
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.hero-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-accent);
  transition: width 0.4s ease;
}

.hero-title:hover::after {
  width: 100%;
}

.hero-subtitle {
  color: var(--accent-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  transition: all 0.4s ease;
  position: relative;
}

.hero-subtitle:hover {
  color: var(--primary);
  transform: translateX(10px);
  text-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.hero-subtitle::before {
  content: '→';
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all 0.3s ease;
  color: var(--primary);
}

.hero-subtitle:hover::before {
  opacity: 1;
  left: -30px;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 3rem;
  max-width: 600px;
}

.stats-card {
  background: var(--bg-primary);
  border: 2px solid #e2e8f0;
  border-radius: var(--border-radius);
  padding: 2rem;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.stats-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
  transform: translateY(-5px) scale(1.02);
}

.stats-card:hover::before {
  opacity: 0.05;
}

.stats-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  transition: all 0.4s ease;
  position: relative;
}

.stats-number:hover {
  color: var(--primary);
  transform: scale(1.2);
  text-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.stats-card:hover .stats-number {
  animation: bounce 0.6s ease;
}

.stats-label {
  color: var(--heading-color);
  font-weight: 600;
  font-size: 1rem;
}

.btn-primary-custom {
  background: var(--gradient-accent);
  border: 2px solid var(--accent-color);
  color: white;
  padding: 12px 32px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-primary-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.btn-primary-custom:hover {
  background: transparent;
  color: var(--accent-color);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.btn-primary-custom:hover::before {
  left: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-section {
    padding: 60px 0;
  }
  
  .stats-card {
    margin-bottom: 1.5rem;
  }
}
/* Styles pour le bloc À propos */
.about-section {
  padding: 80px 0;
  background-color: var(--bg-color);
}

.about-image {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: all 0.4s ease;
  position: relative;
}

.about-image:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.3);
  filter: brightness(1.1) contrast(1.1);
}

.about-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(245, 158, 11, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--border-radius);
}

.about-image:hover::after {
  opacity: 1;
}

.about-title {
  color: var(--heading-color);
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  transition: all 0.4s ease;
  position: relative;
}

.about-title:hover {
  color: var(--accent-color);
  transform: scale(1.05);
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.about-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-accent);
  transition: width 0.4s ease;
}

.about-title:hover::after {
  width: 100%;
}

.about-text {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-primary);
  border-left: 4px solid var(--accent-color);
  border-radius: var(--border-radius);
}

.feature-icon {
  color: var(--accent-color);
  margin-right: 1rem;
  margin-top: 0.2rem;
  font-size: 1.5rem;
}

.feature-text {
  flex: 1;
  color: var(--text-primary);
  font-size: 1rem;
}

/* Styles pour le bloc Programmes */
.programs-section {
  padding: 80px 0;
  background-color: var(--bg-primary);
}

.programs-title {
  color: var(--heading-color);
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
}

.programs-title:hover {
  color: var(--primary);
  transform: scale(1.05);
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.programs-title::before {
  content: '🚀';
  position: absolute;
  left: -50px;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 1.5rem;
}

.programs-title:hover::before {
  opacity: 1;
  left: -60px;
  animation: bounce 0.6s ease;
}

.program-card {
  background: var(--bg-primary);
  border: 2px solid #e2e8f0;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.program-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--gradient-accent);
  transition: height 0.3s ease;
}

.program-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.15);
  transform: translateY(-8px) scale(1.02);
}

.program-card:hover::after {
  height: 100%;
}

.btn-small {
  padding: 4px 10px;
  text-transform: initial;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 0px;
}
.program-number {
  background-color: var(--accent-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.program-title {
  color: var(--heading-color);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
  position: relative;
}

.program-title:hover {
  color: var(--accent-color);
  transform: translateX(5px);
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.program-card:hover .program-title {
  animation: slideInRight 0.5s ease;
}

.program-feature {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

.program-feature-icon {
  color: var(--accent-color);
  margin-right: 0.75rem;
  margin-top: 0.1rem;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.program-feature-icon:hover {
  color: var(--primary);
  transform: scale(1.3) rotate(10deg);
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.program-card:hover .program-feature-icon {
  animation: bounce 0.5s ease;
}

.program-feature-text {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Responsive pour les nouveaux blocs */
@media (max-width: 768px) {
  .about-title, .programs-title {
    font-size: 2rem;
  }
  
  .about-image {
    height: 300px;
    margin-bottom: 2rem;
  }
  
  .program-card {
    padding: 2rem;
  }
}

/* Styles pour le bloc Avantages */
.advantages-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--bg-color) 0%, #f5f5f5 100%);
}

.advantages-title {
  color: var(--heading-color);
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
}

.advantages-title:hover {
  color: var(--accent-color);
  transform: scale(1.05);
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.advantages-title::after {
  content: '⭐';
  position: absolute;
  right: -50px;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 1.5rem;
}

.advantages-title:hover::after {
  opacity: 1;
  right: -60px;
  animation: rotate 1s ease;
}

.advantage-card {
  background: var(--bg-primary);
  border: none;
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.advantage-card:hover {
  transform: translateY(-8px) rotateX(5deg);
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.2);
}

.advantage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.advantage-card:hover::before {
  transform: scaleX(1);
}

.advantage-icon {
  background: var(--gradient-accent);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.advantage-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
}

.advantage-card:hover .advantage-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.advantage-card:hover .advantage-icon::before {
  width: 100%;
  height: 100%;
}

.advantage-title-item {
  color: var(--heading-color);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  transition: all 0.4s ease;
  position: relative;
}

.advantage-title-item:hover {
  color: var(--accent-color);
  transform: scale(1.05);
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.advantage-title-item::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width 0.3s ease;
}

.advantage-title-item:hover::after {
  width: 100%;
}

.advantage-text {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.6;
}

.advantages-image {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
  position: relative;
}

.advantages-image:hover {
  transform: scale(1.1) rotate(2deg);
  box-shadow: 0 25px 50px rgba(99, 102, 241, 0.3);
  filter: hue-rotate(10deg) brightness(1.1);
}

.advantages-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(99, 102, 241, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--border-radius);
}

.advantages-image:hover::after {
  opacity: 1;
}

/* Styles pour le bloc Histoires de réussite */
.success-section {
  padding: 80px 0;
  background-color: var(--bg-primary);
}

.success-title {
  color: var(--heading-color);
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
}

.success-title:hover {
  color: var(--primary);
  transform: scale(1.05);
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.success-title::before {
  content: '🏆';
  position: absolute;
  left: -50px;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 1.5rem;
}

.success-title:hover::before {
  opacity: 1;
  left: -60px;
  animation: bounce 0.8s ease;
}

.testimonial-card {
  font-family: 'Inter', sans-serif;
  background: var(--bg-color);
  border-left: 5px solid var(--accent-color);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 0;
  background: var(--gradient-accent);
  transition: height 0.3s ease;
}

.testimonial-card:hover {
  background: #f8fafc;
  transform: translateX(8px) translateY(-3px);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.15);
}

.testimonial-card:hover::before {
  height: 100%;
}

.testimonial-quote {
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--accent-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.testimonial-text {
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-style: italic;
  margin-top: 1rem;
  transition: all 0.4s ease;
}

.testimonial-text:hover {
  color: var(--heading-color);
  transform: scale(1.02);
  text-shadow: 0 0 5px rgba(30, 41, 59, 0.2);
}

.testimonial-card:hover .testimonial-text {
  animation: slideInLeft 0.6s ease;
}

.testimonial-author {
  color: var(--heading-color);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.author-icon {
  color: var(--accent-color);
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

/* Responsive pour les nouveaux blocs */
@media (max-width: 768px) {
  .advantages-title, .success-title {
    font-size: 2rem;
  }
  
  .advantage-card {
    padding: 1.5rem;
  }
  
  .advantages-image {
    height: 200px;
  }
  
  .testimonial-card {
    padding: 2rem;
  }
}
/* Styles pour le bloc Conseils pratiques */
.tips-section {
  padding: 80px 0;
  background-color: var(--bg-primary);
}

.tips-title {
  color: var(--heading-color);
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
}

.tips-title:hover {
  color: var(--accent-color);
  transform: scale(1.05);
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.tips-title::after {
  content: '💡';
  position: absolute;
  right: -50px;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 1.5rem;
}

.tips-title:hover::after {
  opacity: 1;
  right: -60px;
  animation: shake 0.6s ease;
}

.tips-intro {
  font-size: 1.2rem;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.tips-images {
  margin-bottom: 3rem;
}

.tips-image {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: all 0.4s ease;
  position: relative;
}

.tips-image:hover {
  transform: scale(1.08) rotate(-1deg);
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.4);
  filter: saturate(1.2) brightness(1.05);
}

.tips-image::before {
  content: '✨';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2;
}

.tips-image:hover::before {
  opacity: 1;
  transform: scale(1.2);
}

.tip-item {
  background: var(--bg-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  border-left: 5px solid var(--accent-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tip-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0.1;
  transition: width 0.3s ease;
  z-index: -1;
}

.tip-item:hover {
  background: #f8fafc;
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.15);
}

.tip-item:hover::after {
  width: 100%;
}

.tip-number {
  position: absolute;
  top: -15px;
  left: 20px;
  background: var(--accent-color);
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.tip-title {
  color: var(--heading-color);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
  transition: all 0.4s ease;
  position: relative;
}

.tip-title:hover {
  color: var(--accent-color);
  transform: translateX(5px);
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.tip-title::before {
  content: '💡';
  position: absolute;
  left: -25px;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.tip-title:hover::before {
  opacity: 1;
  left: -30px;
}

.tip-description {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.6;
}

/* Styles pour le bloc Tarifs */
.pricing-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--bg-color) 0%, #f5f5f5 100%);
}

.pricing-title {
  color: var(--heading-color);
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
}

.pricing-title:hover {
  color: var(--primary);
  transform: scale(1.05);
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.pricing-title::before {
  content: '💰';
  position: absolute;
  left: -50px;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 1.5rem;
}

.pricing-title:hover::before {
  opacity: 1;
  left: -60px;
  animation: bounce 0.6s ease;
}

.pricing-card {
  background: var(--bg-primary);
  border: 2px solid #e2e8f0;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.pricing-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.2);
  transform: translateY(-8px) scale(1.03);
}

.pricing-card:hover::before {
  opacity: 0.05;
}

.pricing-card.featured {
  border-color: var(--accent-color);
  transform: scale(1.05);
}

.pricing-card.featured::before {
  content: 'POPULAIRE';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-color);
  color: white;
  padding: 5px 20px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.plan-name {
  color: var(--heading-color);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.plan-price {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.4s ease;
  position: relative;
}

.plan-price:hover {
  color: var(--primary);
  transform: scale(1.1);
  text-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.pricing-card:hover .plan-price {
  animation: bounce 0.6s ease;
}

.plan-period {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  text-align: left;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

.plan-feature-icon {
  color: var(--accent-color);
  margin-right: 0.75rem;
  margin-top: 0.1rem;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.plan-feature-icon:hover {
  color: var(--primary);
  transform: scale(1.2) rotate(5deg);
  text-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

.pricing-card:hover .plan-feature-icon {
  animation: shake 0.5s ease;
}

.plan-feature-text {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
}

.pricing-note {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-top: 3rem;
  text-align: center;
  color: var(--text-primary);
  font-size: 1rem;
  font-style: italic;
}

/* Responsive pour les nouveaux blocs */
@media (max-width: 768px) {
  .tips-title, .pricing-title {
    font-size: 2rem;
  }
  
  .tips-image {
    height: 250px;
    margin-bottom: 1rem;
  }
  
  .tip-item {
    padding: 1.5rem;
  }
  
  .pricing-card {
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .plan-price {
    font-size: 2rem;
  }
}
/* Styles pour le bloc Contacts */
.contact-section {
  padding: 80px 0;
  background-color: var(--bg-primary);
}

.contact-title {
  color: var(--heading-color);
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
}

.contact-title:hover {
  color: var(--accent-color);
  transform: scale(1.05);
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.contact-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  background: var(--gradient-accent);
  transition: width 0.4s ease;
}

.contact-title:hover::after {
  width: 100px;
}

.contact-description {
  font-size: 1.2rem;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.contact-info {
  background: var(--bg-color);
  border: 2px solid #f0f0f0;
  border-radius: var(--border-radius);
  padding: 3rem;
  text-align: center;
  transition: all 0.3s ease;
}

.contact-info:hover {
  border-color: var(--accent-color);
  box-shadow: var(--shadow);
}

.email-link {
  display: inline-flex;
  align-items: center;
  background: var(--gradient-accent);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .email-link {
    width: 100%;
    font-size: 14px;
  }
}

.email-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.email-link:hover {
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.3);
}

.email-link:hover::before {
  left: 100%;
}

.email-icon {
  margin-right: 0.5rem;
  font-size: 1.3rem;
}

.social-title {
  color: var(--heading-color);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--gradient-accent);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.5rem;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
}

.social-link:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-5px) scale(1.15) rotate(5deg);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.social-link:hover::before {
  width: 100%;
  height: 100%;
}

/* Styles pour le bloc Formulaire */
.form-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--bg-color) 0%, #f5f5f5 100%);
}

.form-title {
  color: var(--heading-color);
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
}

.form-title:hover {
  color: var(--primary);
  transform: scale(1.05);
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.form-title::before {
  content: '📝';
  position: absolute;
  left: -40px;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 1.5rem;
}

.form-title:hover::before {
  opacity: 1;
  left: -50px;
}

.form-container {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 0 auto;
}

.form-floating {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-floating .form-control {
  border: 2px solid #f0f0f0;
  border-radius: var(--border-radius);
  padding: 1rem 0.75rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: transparent;
}

.form-floating .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25);
  background: transparent;
  transform: scale(1.02);
}

.form-floating .form-control:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.1rem rgba(99, 102, 241, 0.2);
}

.form-floating .form-control:focus ~ label {
  color: var(--accent-color);
}

.form-floating label {
  color: var(--text-primary);
  display: flex;
  align-items: center;
  font-weight: 500;
  transition: all 0.3s ease;
}

.form-floating label .material-icons-outlined {
  color: var(--accent-color);
}

.error-message {
  color: var(--primary);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
  display: none;
}

.btn-primary {
  background: var(--gradient-accent);
  border: 2px solid var(--accent-color);
  color: white;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:focus {
  box-shadow: 0 0 0 0.2rem rgba(78, 21, 4, 0.25);
}

/* Responsive pour les blocs finaux */
@media (max-width: 768px) {
  .contact-title, .form-title {
    font-size: 2rem;
  }
  
  .contact-info {
    padding: 2rem;
  }
  
  .form-container {
    padding: 2rem;
    margin: 0 1rem;
  }
  
  .social-links {
    gap: 0.75rem;
  }
  
  .social-link {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* Enhanced Back-to-Top Button */
.back-to-top {
  position: static;
  display: none;
  left: 30px;
  bottom: 30px;
  z-index: 9999;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border: 2px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  text-align: center;
  line-height: 46px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  overflow: hidden;
  position: relative;
}

.back-to-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.back-to-top:hover {
  background: var(--gradient-accent);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
  border-color: var(--accent-color);
}

.back-to-top:hover::before {
  left: 100%;
}

.back-to-top:active {
  transform: translateY(-2px) scale(1.05);
}

/* Mobile responsive for back-to-top */
@media (max-width: 768px) {
  .back-to-top {
    right: 20px;
    bottom: 20px;
    width: 45px;
    height: 45px;
    line-height: 41px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .back-to-top {
    right: 15px;
    bottom: 15px;
    width: 40px;
    height: 40px;
    line-height: 36px;
    font-size: 0.9rem;
  }
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 991.98px) {
  .navbar-dark .navbar-nav .nav-link {
    margin-right: 0;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar-dark .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
  
  .navbar-collapse {
    background: rgba(55, 48, 163, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    margin-top: 10px;
    padding: 15px;
  }
}

@media (max-width: 768px) {
  /* Hero Section Mobile */
  .hero-title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.4;
  }
  
  .hero-section {
    padding: 3rem 0;
    text-align: center;
  }
  
  .stats-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  /* About Section Mobile */
  .about-title, .programs-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .about-image {
    margin-bottom: 2rem;
    border-radius: 12px;
  }
  
  .program-card {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  
  /* Advantages Section Mobile */
  .advantages-title, .success-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .advantage-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  .advantages-image {
    margin-bottom: 1.5rem;
    border-radius: 12px;
  }
  
  .testimonial-card {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  
  /* Tips Section Mobile */
  .tips-title, .pricing-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .tips-image {
    margin-bottom: 1.5rem;
    border-radius: 12px;
  }
  
  .tip-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  
  .pricing-card {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  
  .pricing-card.featured {
    transform: none;
    margin-top: 0;
  }
  
  .plan-price {
    font-size: 2.5rem;
  }
  
  /* Contact Section Mobile */
  .contact-title, .form-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .contact-info {
    padding: 1.5rem;
    margin: 0 1rem;
  }
  
  .form-container {
    padding: 1.5rem;
    margin: 0 1rem;
  }
  
  .social-links {
    gap: 0.75rem;
    justify-content: center;
  }
  
  .social-link {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  
  /* Footer Mobile */
  .footer {
    padding: 2rem 0 1rem;
    margin-top: 3rem;
  }
  
  .footer-brand {
    font-size: 1.5rem;
    text-align: center;
    display: block;
    margin-bottom: 1rem;
  }
  
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .footer-email {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .footer-section-title {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .footer-bottom {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 576px) {
  /* Extra Small Mobile */
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .about-title, .programs-title, .advantages-title, .success-title, .tips-title, .pricing-title, .contact-title, .form-title {
    font-size: 1.6rem;
  }
  
  .stats-card, .program-card, .advantage-card, .testimonial-card, .tip-item, .pricing-card {
    padding: 1rem;
  }
  
  .contact-info, .form-container {
    padding: 1rem;
    margin: 0 0.5rem;
  }
  
  .footer {
    padding: 1.5rem 0 1rem;
    margin-top: 2rem;
  }
  
  .footer-brand {
    font-size: 1.3rem;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/* Fix Footer Spacing */
.footer {
  background-color: var(--dark) !important;
  color: #ffffff;
  padding: 3rem 0 1rem;
  margin-top: 5rem;
  position: relative;
  margin-bottom: 0 !important;
}

.footer::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: 0;
  right: 0;
  height: 2rem;
  background: linear-gradient(to bottom, transparent, var(--dark));
  pointer-events: none;
}

/* Ensure no extra spacing after footer */
.footer + * {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Ensure body ends exactly at footer */
body {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Container spacing fixes */
.container {
  padding-left: 15px;
  padding-right: 15px;
}

@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* Fix spacing between sections */
section {
  margin-bottom: 0;
  padding: 4rem 0;
  position: relative;
}

section:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }
  
  section:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  }
}

@media (max-width: 576px) {
  section {
    padding: 2rem 0;
  }
}

/* Ensure proper container spacing */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 5px;
    padding-right: 5px;
  }
  
  /* Ensure 100% width on mobile */
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  /* Remove any potential margins/paddings */
  * {
    max-width: 100% !important;
  }
  
  /* Ensure footer has no bottom margin */
  .footer {
    margin-bottom: 0 !important;
    padding-bottom: 1rem !important;
  }
}

/* Fix navbar mobile layout */
@media (max-width: 991.98px) {
  .navbar-brand {
    font-size: 1.5rem !important;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
  
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(55, 48, 163, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 0 0 8px 8px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
  
  .navbar-nav {
    margin: 0;
  }
  
  .navbar-nav .nav-item {
    margin: 0;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin: 0.25rem 0;
    transition: all 0.3s ease;
  }
  
  .navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
  }
}

/* Fix cookie banner mobile */
@media (max-width: 700px) {
  .cookie-wrapper {
    padding: 1rem;
    margin: 1rem;
    border-radius: 12px;
  }
  
  .cookie-wrapper h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .cookie-wrapper .data p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .cookie-wrapper .buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .cookie-wrapper .buttons .cookie-button {
    width: 100%;
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .cookie-wrapper {
    margin: 0.5rem;
    padding: 0.75rem;
  }
  
  .cookie-wrapper h2 {
    font-size: 1.1rem;
  }
  
  .cookie-wrapper .data p {
    font-size: 0.85rem;
  }
}