/* ===== VARIABLES CSS ===== */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #f59e0b;
  --accent-color: #10b981;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --text-white: #ffffff;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

/* ===== READING PROGRESS BAR ===== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  z-index: 1001;
}

.reading-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--progress-width, 0%);
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.1s ease;
}

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
}

h3 {
  font-size: 1.875rem;
  color: var(--text-dark);
}

h4 {
  font-size: 1.5rem;
  color: var(--text-dark);
}

p {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* ===== HYPERLIENS ===== */
a {
  color: var(--primary-color);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
  font-weight: 400;
}

a::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: width 0.2s ease;
  opacity: 0.6;
}

a:hover {
  color: var(--primary-dark);
}

a:hover::before {
  width: 100%;
}

a:focus {
  outline: 1px solid var(--primary-color);
  outline-offset: 1px;
  border-radius: 2px;
}

/* Liens dans le contenu principal */
.content a {
  color: var(--primary-color);
  font-weight: 500;
  transition: color 0.2s ease;
}

.content a:hover {
  color: var(--primary-dark);
}

/* Liens dans les paragraphes */
p a {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

p a::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: width 0.2s ease;
  opacity: 0.7;
}

p a:hover {
  color: var(--primary-dark);
}

p a:hover::before {
  width: 100%;
}

/* Liens dans les listes */
ul a, ol a {
  color: var(--primary-color);
  font-weight: 400;
  transition: color 0.2s ease;
}

ul a:hover, ol a:hover {
  color: var(--primary-dark);
}

/* Liens externes */
a[href^="http"]:not([href*="aitmadi.dev"]) {
  position: relative;
}

a[href^="http"]:not([href*="aitmadi.dev"])::after {
  content: '↗';
  position: absolute;
  top: -1px;
  right: -8px;
  font-size: 0.7rem;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

a[href^="http"]:not([href*="aitmadi.dev"]):hover::after {
  opacity: 0.8;
}

/* Liens de navigation (sauf nav-link) */
a:not(.nav-link):not(.btn):not(.mobile-nav-link) {
  color: var(--primary-color);
  text-decoration: none;
  position: relative;
  font-weight: 400;
  transition: color 0.2s ease;
}

a:not(.nav-link):not(.btn):not(.mobile-nav-link)::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: width 0.2s ease;
  opacity: 0.6;
}

a:not(.nav-link):not(.btn):not(.mobile-nav-link):hover {
  color: var(--primary-dark);
}

a:not(.nav-link):not(.btn):not(.mobile-nav-link):hover::before {
  width: 100%;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-wide {
  width: 100%;
  padding: 0 2rem;
}

/* Container-wide responsive */
@media (min-width: 992px) {
  .container-wide {
    padding: 0 4rem;
  }
}

@media (min-width: 1200px) {
  .container-wide {
    padding: 0 6rem;
  }
}

@media (min-width: 1400px) {
  .container-wide {
    padding: 0 8rem;
  }
}

/* Optimisations desktop pour utiliser plus de largeur */
@media (min-width: 992px) {
  .container {
    max-width: 1600px;
    padding: 0 2rem;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1800px;
    padding: 0 3rem;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 2000px;
    padding: 0 4rem;
  }
}

@media (min-width: 1600px) {
  .container {
    max-width: 95vw;
    padding: 0 5rem;
  }
}

.section {
  padding: 5rem 0;
}

/* Éviter le chevauchement avec le header fixe */
@media (min-width: 768px) {
  .section {
    padding-top: 6rem;
  }
  
  .section:first-of-type {
    padding-top: 6rem;
  }
}

.section-header {
  text-align: left;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0;
}

/* Optimisations desktop pour éviter l'étirement */
@media (min-width: 992px) {
  .section {
    padding: 5rem 0;
  }
  
  .section-header {
    max-width: 1200px;
    margin: 0 auto 4rem;
  }
  
  .section-title {
    font-size: 2.75rem;
  }
  
  .section-subtitle {
    font-size: 1.375rem;
    max-width: 1000px;
  }
  
  /* Limiter la largeur des paragraphes pour une meilleure lisibilité */
  .card p {
    line-height: 1.7;
  }
  
  .hero-text p {
    font-size: 1.25rem;
    line-height: 1.6;
  }
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.3);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom-color: rgba(229, 231, 235, 0.5);
  transform: translateY(0) scale(0.85);
  transform-origin: top center;
  border-radius: 0 0 20px 20px;
}

/* Effet de réduction des boutons quand on scroll */
.header.scrolled .nav-link {
  height: 32px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
}

.header.scrolled .btn-sm {
  height: 32px;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
}

.header.scrolled .logo-text,
.header.scrolled .logo-suffix {
  font-size: 1.1rem;
}

.header.scrolled .nav {
  padding: 0.5rem 2rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== LOGO ===== */
.nav-brand {
  z-index: 1001;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
  transform: scale(1.05);
  animation: logoPulse 2s infinite;
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1.05);
  }
  50% {
    transform: scale(1.08);
  }
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.025em;
}

.logo-suffix {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-light);
  margin-left: 0.25rem;
}

/* ===== DESKTOP NAVIGATION ===== */
.nav-menu-desktop {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
  height: auto;
}

.nav-item {
  position: relative;
  display: inline-block;
  height: auto;
  line-height: 1;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  line-height: 1.2;
  height: 40px;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 6px;
  z-index: -1;
}

.nav-link:hover::before {
  opacity: 0.6;
}

.nav-link:hover {
  color: var(--primary-color);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--primary-color);
  background: rgba(37, 99, 235, 0.05);
}

.nav-link.active::before {
  opacity: 0.8;
}

.nav-text {
  position: relative;
  z-index: 1;
}

.nav-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.nav-link.active .nav-indicator {
  width: 80%;
}

.nav-link:hover .nav-indicator {
  width: 100%;
}

/* ===== CTA BUTTON ===== */
.nav-cta {
  display: flex;
  align-items: center;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  line-height: 1.2;
  height: 40px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-icon {
  transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

.btn-primary {
  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.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

/* ===== MOBILE MENU TOGGLE ===== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  z-index: 1001;
}

.nav-toggle:hover {
  background: rgba(37, 99, 235, 0.1);
}

.hamburger {
  display: flex;
  flex-direction: column;
  width: 24px;
  height: 18px;
  justify-content: space-between;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: var(--text-dark);
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--bg-white);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu-container {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-logo .logo-text {
  font-size: 1.25rem;
  color: var(--primary-color);
}

.mobile-logo .logo-suffix {
  font-size: 1.25rem;
  color: var(--text-light);
}

.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.mobile-menu-close:hover {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
}

.mobile-menu-nav {
  flex: 1;
  padding: 2rem 0;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-item {
  margin: 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.mobile-nav-link:hover {
  background: rgba(37, 99, 235, 0.05);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  padding-left: 2.5rem;
}

.mobile-nav-link.active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}

.mobile-nav-icon {
  font-size: 1.25rem;
  margin-right: 1rem;
  width: 24px;
  text-align: center;
}

.mobile-nav-text {
  flex: 1;
}

.mobile-menu-footer {
  padding: 2rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-light);
}

.btn-full {
  width: 100%;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.mobile-contact-info {
  text-align: center;
}

.mobile-contact-info p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.mobile-contact-info a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.mobile-contact-info a:hover {
  text-decoration: underline;
}

/* ===== BOUTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--text-white);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  background: var(--primary-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.btn-accent {
  background: var(--gradient-accent);
  color: var(--text-white);
  box-shadow: var(--shadow-medium);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-large);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 8rem; /* Espace supplémentaire pour le header fixe */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/hero-bg.jpg') center/cover;
  opacity: 0.1;
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-image {
  position: relative;
  animation: fadeInRight 1s ease-out 0.6s both;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-large);
}

/* ===== GRID LAYOUTS ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 100%;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 100%;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 100%;
}

/* Optimisations pour desktop - éviter l'étirement excessif */
@media (min-width: 992px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1600px;
    margin: 0 auto;
  }
  
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    max-width: 1800px;
    margin: 0 auto;
  }
}

/* Grilles dans container-wide utilisent toute la largeur */
.container-wide .grid-2,
.container-wide .grid-3,
.container-wide .grid-4 {
  max-width: none !important;
  margin: 0 !important;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  max-width: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-large);
}

/* Optimisations desktop pour les cartes */
@media (min-width: 992px) {
  .card {
    padding: 2.5rem;
  }
  
  .service-card {
    padding: 3rem 2.5rem;
  }
  
  .pricing-card {
    padding: 3.5rem 2.5rem;
  }
  
  /* Limiter la hauteur des cartes sur desktop pour éviter l'étirement */
  .testimonial-card {
    height: auto;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--text-white);
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.card p {
  color: var(--text-light);
}

/* ===== SERVICES SECTION ===== */
.services {
  background: var(--bg-light);
}

.service-card {
  text-align: left;
  padding: 3rem 2rem;
}

.service-card:hover .card-icon {
  transform: scale(1.1);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: var(--bg-white);
}

.testimonial-card {
  text-align: left;
  padding: 2rem;
  background: var(--bg-white);
  border-radius: 20px;
  box-shadow: var(--shadow-light);
  position: relative;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 0 1.5rem 0;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-white);
  font-weight: bold;
}

.testimonial-quote {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-quote::before {
  content: '"';
  font-size: 3rem;
  color: var(--primary-color);
  position: absolute;
  top: -10px;
  left: -10px;
  opacity: 0.3;
}

.testimonial-author {
  font-weight: 600;
  color: var(--text-dark);
}

.testimonial-company {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* ===== PRICING SECTION ===== */
.pricing {
  background: var(--bg-light);
}

.pricing-card {
  background: var(--bg-white);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: left;
  position: relative;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
}

.pricing-card.featured {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 2rem;
  background: var(--gradient-primary);
  color: var(--text-white);
  padding: 0.5rem 2rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.pricing-period {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--text-light);
  position: relative;
  padding-left: 2rem;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* ===== TEAM SECTION ===== */
.team {
  background: var(--bg-white);
}

.team-card {
  text-align: left;
  padding: 2rem;
}

.team-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 0 1.5rem 0;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-white);
  font-weight: bold;
}

.team-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.team-role {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

.team-description {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: var(--bg-light);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  padding: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 1.25rem;
}

.contact-form {
  background: var(--bg-white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== PAGES LÉGALES ===== */
.main-content {
    padding-top: 6rem; /* Espace pour le header fixe */
    min-height: 100vh;
}

.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.legal-page h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 3rem;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-section {
    margin-bottom: 3rem; /* Plus d'espace entre les sections */
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* Styles pour les listes dans les pages légales */
.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.legal-section ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
  color: var(--text-dark);
}

.legal-section ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.legal-section ul li strong {
  color: var(--text-dark);
  font-weight: 600;
}

.last-updated {
    text-align: center;
    font-style: italic;
    color: var(--text-light);
    margin-top: 3rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

/* ===== FOOTER ===== */
.footer {
  background: #1f2937;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
  clear: both;
}

.footer a {
  color: #ffffff !important;
  text-decoration: none;
}

.footer a:hover,
.footer a:focus,
.footer a:active {
  color: #ffffff !important;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.footer-main {
  padding: 4rem 0 2rem;
  position: relative;
  width: 100%;
  max-width: none;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: flex-start; /* Align to left */
}

/* Brand Section */
.footer-brand {
  max-width: 400px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.footer-logo .logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-logo .logo-suffix {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.footer-description {
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.footer-cta {
  margin-top: 1.5rem;
}

/* Navigation */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.footer-title {
  color: var(--text-white);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 2rem;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover,
.footer-links a:focus,
.footer-links a:active {
  color: #ffffff !important;
}

/* Contact Section */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center; /* Align emoji and text on the same baseline */
  line-height: 1.4; /* Consistent line height */
  gap: 0.5rem; /* Space between emoji and text */
}

.contact-item a {
  color: #ffffff !important;
  text-decoration: none;
}

.contact-item a:hover,
.contact-item a:focus,
.contact-item a:active {
  color: #ffffff !important;
}

/* Footer Bottom */
.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: none;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Align to left instead of center */
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright p {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-legal a {
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-legal a:hover,
.footer-legal a:focus,
.footer-legal a:active {
  color: #ffffff !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out both;
}

.fade-in-right {
  animation: fadeInRight 0.6s ease-out both;
}

.fade-in-left {
  animation: fadeInLeft 0.6s ease-out both;
}

/* ===== UTILITIES ===== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden {
  display: none;
}

.visible {
  display: block;
}
