/* Style principal pour domain.com */
:root {
  --color-primary: #5D3FD3;       /* Violet profond */
  --color-secondary: #00C2A8;     /* Turquoise */
  --color-background: #F5F5F7;    /* Gris clair */
  --color-background-gradient: #E8E9ED; /* Gris plus foncé pour gradient */
  --color-accent: #FF6F3C;        /* Orange vif */
  --color-text: #2A2A2A;          /* Graphite foncé */
  --color-text-secondary: #666666; /* Gris secondaire */
  --border-radius: 20px;          /* Arrondi des coins */
  --box-shadow: 0 8px 16px rgba(93, 63, 211, 0.1); /* Ombre violette subtile */
}

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, var(--color-background) 0%, var(--color-background-gradient) 100%);
  color: var(--color-text);
  line-height: 1.6;
}

section[id] {
  scroll-margin-top: 40px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--color-text);
}

h1 {
  font-size: 2.8rem;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: 2.2rem;
  position: relative;
  margin-bottom: 2.5rem;
}

h2:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 60px;
  height: 4px;
  background: var(--color-secondary);
  border-radius: 2px;
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-accent);
}

/* Navigation */
header {
    top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}

nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 20px;
}

nav a {
  color: var(--color-text);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

nav a:hover {
  background-color: rgba(93, 63, 211, 0.1);
  color: var(--color-primary);
}

.hamburger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

#menu-toggle {
  display: none;
}

/* Container */
.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 0;
}

section {
  padding: 5rem 0;
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--color-primary);
  color: white;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: var(--box-shadow);
}

.btn:hover {
  background: var(--color-accent);
  color: white;
  transform: translateY(-3px);
}

.btn-secondary {
  background: var(--color-secondary);
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./img/UFs0k.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: -1;
}

.hero-content {
  max-width: 700px;
  text-align: center;
  margin: 0 auto;
}

/* À propos */
.about {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 3rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  animation-delay: calc(0.1s * var(--animation-order, 0));
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(93, 63, 211, 0.2);
}

.service-icon {
  font-size: 3rem;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

/* Avantages */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.advantage-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  animation-delay: calc(0.15s * var(--animation-order, 0));
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(93, 63, 211, 0.15);
}

.advantage-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* Témoignages */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  animation-delay: calc(0.2s * var(--animation-order, 0));
}

.testimonial-image {
  width: 100%;
  height: 50%;
  overflow: hidden;
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.testimonial-quote {
  font-style: italic;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.testimonial-author {
  font-weight: 700;
  color: var(--color-primary);
}

/* Étapes */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  counter-reset: step-counter;
}

.step-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  animation-delay: calc(0.25s * var(--animation-order, 0));
}

.step-card::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  top: -25px;
  left: 25px;
  width: 50px;
  height: 50px;
  background-color: var(--color-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: var(--box-shadow);
}

/* Équipe */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.team-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  height: 100%;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  animation-delay: calc(0.3s * var(--animation-order, 0));
}

.team-image {
  width: 100%;
  height: 50%;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-content {
  padding: 1.5rem;
}

.team-name {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.team-position {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Formulaire */
.form-section {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 3rem;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  background-color: #f9f9f9;
  transition: border-color 0.3s ease;
}

.form-select option {
  background: white;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(93, 63, 211, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.checkbox-input {
  margin-right: 10px;
  margin-top: 5px;
}

.checkbox-label {
  font-size: 0.9rem;
}

.checkbox-label a {
  text-decoration: underline;
}

/* Page Merci */
.thank-you-container {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 3rem;
  text-align: center;
  max-width: 700px;
  margin: 8rem auto 5rem;
}

/* FAQ avec checkboxes */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  background-color: white;
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.faq-checkbox {
  display: none;
}

.faq-label {
  display: block;
  padding: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.faq-label:hover {
  background-color: rgba(93, 63, 211, 0.05);
}

.faq-label::after {
  content: '+';
  position: absolute;
  right: 1.2rem;
  font-size: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.2rem;
}

.faq-checkbox:checked ~ .faq-label::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-checkbox:checked ~ .faq-content {
  max-height: 500px;
  padding: 0 1.2rem 1.2rem;
}

/* Pages politiques */
.policy-container {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 3rem;
  margin: 8rem auto 5rem;
  max-width: 900px;
}

.policy-section {
  margin-bottom: 2rem;
}

.policy-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--color-secondary);
  padding-bottom: 0.5rem;
}

/* Footer */
footer {
  background-color: #f1f1f1;
  padding: 3rem 0;
  margin-top: 5rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--color-text-secondary);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: none;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.cookie-popup p {
  margin-bottom: 1rem;
}

.cookie-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--color-primary);
  color: white;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
}

/* Burger menu for mobile */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .hamburger span,
  .hamburger span::before,
  .hamburger span::after {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    position: absolute;
    transition: all 0.3s ease;
  }
  
  .hamburger span {
    top: 50%;
    transform: translateY(-50%);
  }
  
  .hamburger span::before,
  .hamburger span::after {
    content: '';
  }
  
  .hamburger span::before {
    top: -8px;
  }
  
  .hamburger span::after {
    bottom: -8px;
  }
  
  #menu-toggle:checked + .hamburger span {
    background-color: transparent;
  }
  
  #menu-toggle:checked + .hamburger span::before {
    top: 0;
    transform: rotate(45deg);
  }
  
  #menu-toggle:checked + .hamburger span::after {
    bottom: 0;
    transform: rotate(-45deg);
  }
  
  nav ul {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
  }
  
  #menu-toggle:checked ~ ul {
    left: 0;
  }
  
  nav ul li {
    margin: 1rem 0;
  }
  
  .container {
    width: 95%;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
}

/* Animation pour les apparitions au scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-element {
  animation: fadeInUp 0.6s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-element {
    animation: none;
  }
  
  html {
    scroll-behavior: auto;
  }
}
