:root {
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(225, 61%, 16%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(225, 61%, 16%);
  --primary: hsl(225, 61%, 16%);
  --primary-foreground: hsl(0, 0%, 98%);
  --secondary: hsl(0, 0%, 96.1%);
  --secondary-foreground: hsl(225, 61%, 16%);
  --muted: hsl(0, 0%, 96.1%);
  --muted-foreground: hsl(225, 61%, 30%);
  --border: hsl(225, 61%, 80%);
  --radius: 0.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  transition: background-color 0.3s, color 0.3s;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--foreground);
}

.section-subtitle {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

.animated-gradient-text {
  background: linear-gradient(to right, var(--primary), #3b82f6, var(--primary));
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: text-gradient-flow 3s linear infinite;
}

.separator {
  height: 1px;
  width: 100%;
  background-color: var(--border);
  opacity: 0.5;
}

@keyframes text-gradient-flow {
  to { background-position: 200% center; }
}

@keyframes subtle-pulse {
  50% { opacity: 0.7; }
}

@keyframes cursor-blink {
  50% { border-color: transparent; }
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid hsla(225, 61%, 80%, 0.4);
  background-color: hsla(0, 0%, 100%, 0.8);
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  height: 56px;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.logo span {
  color: var(--primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

header nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

header nav a {
  color: hsla(225, 61%, 16%, 0.8);
  transition: color 0.2s;
}

header nav a:hover {
  color: var(--foreground);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem;
}

.lang-btn {
  border: none;
  background: none;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--muted-foreground);
}

.lang-btn.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.lang-btn:not(.active):hover {
  background-color: hsla(225, 61%, 16%, 0.1);
  color: var(--foreground);
}

#hero {
  position: relative;
  overflow: hidden;
  padding: 8rem 0;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--background);
  background-image: radial-gradient(hsla(225, 61%, 16%, 0.1) 1px, transparent 1px);
  background-size: 2rem 2rem;
  mask-image: linear-gradient(to bottom, white 0%, white 75%, transparent 100%);
}

.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-shapes > div { 
  position: absolute; 
}

.shape1 { 
  top: -20%; 
  left: -10%; 
  width: 40vw; 
  height: 40vw; 
  background-color: hsla(225, 61%, 16%, 0.05); 
  border-radius: 50%; 
  opacity: 0.5; 
}

.shape2 { 
  bottom: -15%; 
  right: -15%; 
  width: 50vw; 
  height: 50vw; 
  background-color: hsla(225, 61%, 16%, 0.05); 
  border-radius: 50%; 
  opacity: 0.3; 
}

.shape3 { 
  top: 10%; 
  right: 5%; 
  width: 8rem; 
  height: 8rem; 
  border: 2px solid hsla(225, 61%, 16%, 0.2); 
  border-radius: 50%; 
}

.shape4 { 
  bottom: 20%; 
  left: 5%; 
  width: 6rem; 
  height: 6rem; 
  background-color: hsla(225, 61%, 16%, 0.1); 
  border-radius: 50%; 
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--foreground);
  min-height: 1.2em; /* Empêche le saut de page pendant l'écriture */
  display: inline-block; /* Correction pour le curseur */
}

.hero-content h1.typing {
  border-right: 0.1em solid var(--foreground);
  animation: cursor-blink 0.7s step-end infinite;
}

.hero-content h2 {
  margin-top: 1rem;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.025em;
}

.hero-content p {
  margin-top: 1.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted-foreground);
}

.hero-content .slogan {
  margin-top: 0.5rem;
  font-weight: 700;
}

.hero-cta {
  margin-top: 2.5rem;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  animation: subtle-pulse 5s ease-in-out infinite;
}

.hero-glow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 50%;
  background-color: hsla(225, 61%, 16%, 0.1);
  border-radius: 50%;
  filter: blur(120px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: 1.125rem;
  font-weight: 700;
  height: 3.5rem;
  padding: 0 2rem;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px hsla(225, 61%, 16%, 0.5);
}

.btn svg {
  transition: transform 0.3s;
}

.btn:hover svg {
  transform: translateX(4px);
}

#mission {
  position: relative;
  padding: 6rem 0;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  overflow: hidden;
}

.mission-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mission-shapes > div { 
  position: absolute; 
  filter: blur(6rem); 
  opacity: 0.5; 
}

.mission-shapes .shape1 { 
  top: 0; 
  right: 0; 
  transform: translate(25%, -50%); 
  width: 24rem; 
  height: 24rem; 
  background-color: hsla(225, 61%, 16%, 0.05); 
  border-radius: 50%; 
}

.mission-shapes .shape2 { 
  bottom: 0; 
  left: 0; 
  transform: translate(-25%, 50%); 
  width: 20rem; 
  height: 20rem; 
  background-color: hsla(225, 61%, 16%, 0.05); 
  border-radius: 50%; 
}

.mission-content {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.mission-content blockquote {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 500;
  font-style: italic;
  position: relative;
  padding: 0 2.5rem;
  line-height: 1.4;
}

.quote-char {
  position: absolute;
  font-size: 8rem;
  font-family: serif;
  color: hsla(225, 61%, 16%, 0.1);
  line-height: 1;
}

.quote-start { 
  top: -1rem; 
  left: 0; 
}

.quote-end { 
  bottom: -2.5rem; 
  right: 0; 
}

.mission-text {
  margin-top: 4rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

#for-who {
  padding: 6rem 0;
  background-color: var(--background);
}

.for-who-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

.card {
  border: 1px solid hsla(225, 61%, 80%, 0.5);
  background-color: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--card-foreground);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card-icon-wrapper {
  background-color: hsla(225, 61%, 16%, 0.1);
  padding: 0.75rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.card-icon-wrapper svg {
  color: var(--primary);
  display: block;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.card-content ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-content li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.card-content li svg {
  color: var(--primary);
  margin-top: 4px;
  flex-shrink: 0;
}

.card-content li span {
  color: hsla(225, 61%, 16%, 0.8);
}

#how-it-works {
  padding: 6rem 0;
  background-color: var(--secondary);
}

.how-it-works-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.how-it-works-line {
  position: absolute;
  top: 36px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: hsla(225, 61%, 80%, 0.5);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-icon-container {
  margin-bottom: 1rem;
  background-color: var(--background);
  padding: 1rem;
  border-radius: 50%;
  border: 1px solid hsla(225, 61%, 80%, 0.5);
  box-shadow: 0 4px 6px hsla(0, 0%, 0%, 0.05);
}

.step-icon-wrapper {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem;
  border-radius: 50%;
}

.step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.step p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

#features {
  padding: 6rem 0;
  background-color: var(--background);
}

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

.feature-card-wrapper {
  position: relative;
}

.feature-card-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  background-image: linear-gradient(to right, hsla(225, 61%, 16%, 0.5), hsla(217, 89%, 61%, 0.5));
  border-radius: calc(var(--radius) + 2px);
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: -1;
}

.feature-card-wrapper:hover::before {
  opacity: 0.75;
}

.features-grid .card {
  position: relative;
  height: 100%;
  border-color: hsla(225, 61%, 80%, 0.5);
  transition: all 0.3s;
  background-color: var(--card);
}

.feature-card-wrapper:hover .card {
  transform: translateY(-4px);
  border-color: hsla(225, 61%, 16%, 0.3);
}

.features-grid .card-header {
  flex-direction: column;
  align-items: flex-start;
}

.features-grid .card-header svg {
  color: var(--primary);
  margin-bottom: 1rem;
}

.features-grid .card-title {
  font-size: 1.25rem;
}

.features-grid .card-content {
  padding-top: 0;
}

.features-grid .card-content p {
  color: hsla(225, 61%, 16%, 0.8);
}

#team {
  padding: 6rem 0;
  background-color: var(--secondary);
}

.team-member-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 32rem;
  margin: 0 auto;
}

.team-member-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid hsla(225, 61%, 16%, 0.2);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  flex-shrink: 0;
}

.team-member-info {
  text-align: left;
}

.team-member-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.team-member-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
}

.team-member-header a {
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.team-member-header a:hover {
  color: var(--primary);
}

.team-member-role {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}

.team-member-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
  margin-top: 0.5rem;
}

.team-member-contact:hover {
  color: var(--primary);
}

.team-member-contact svg {
  flex-shrink: 0;
}

#cta {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  background-color: var(--background);
  text-align: center;
}

.cta-shapes { 
  position: absolute; 
  inset: 0; 
  z-index: 0; 
}

.cta-shapes > div { 
  position: absolute; 
  border-radius: 50%; 
  z-index: -1; 
}

.cta-shapes .shape1 { 
  bottom: -25%; 
  left: -16rem; 
  width: 24rem; 
  height: 24rem; 
  border: 16px solid hsla(225, 61%, 16%, 0.1); 
}

.cta-shapes .shape2 { 
  top: -12.5%; 
  right: -16rem; 
  width: 20rem; 
  height: 20rem; 
  background-color: hsla(225, 61%, 16%, 0.1); 
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.cta-content p {
  margin-top: 1rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.cta-button {
  margin-top: 2.5rem;
}

.social-links {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-links a {
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--primary);
}

footer {
  background-color: var(--background);
}

.footer-container {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.footer-content {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-content p, .footer-content a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-content a:hover {
  color: var(--primary);
  transition: color 0.2s;
}

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

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  header nav {
    display: none;
  }
  .for-who-grid {
    grid-template-columns: 1fr;
  }
  .how-it-works-grid, .features-grid {
    grid-template-columns: 1fr;
  }
  .how-it-works-line {
    display: none;
  }
  .team-member-card {
    flex-direction: column;
    text-align: center;
  }
  .team-member-info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .team-member-header {
    flex-direction: column;
    gap: 0.25rem;
  }
  .footer-content {
    flex-direction: column;
  }
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

@media (min-width: 769px) {
  .footer-content {
    flex-direction: row;
  }
  .container {
    max-width: 1280px;
  }
  .for-who-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
