/* Réinitialisation CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Variables globales */
:root {
  --background: #0e1323;
  --text: #f1f1f1;
  --accent1: #f72585;
  --accent2: #4cc9f0;
  --accent3: #7209b7;
}

/* Styles de base */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  padding-top: 60px;
}

section[id] {
  scroll-margin-top: 40px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  font-weight: 700;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent2);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  background: linear-gradient(to right, var(--accent1), var(--accent3));
  color: var(--text);
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(247, 37, 133, 0.4);
  color: var(--text);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--background);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
}

.logo:hover {
  color: var(--accent1);
}

.nav-desktop {
  display: flex;
}

.nav-desktop ul {
  display: flex;
  list-style: none;
}

.nav-desktop ul li {
  margin-left: 1.5rem;
}

.nav-desktop ul li a {
  position: relative;
}

.nav-desktop ul li a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent1);
  transition: width 0.3s ease;
}

.nav-desktop ul li a:hover::after {
  width: 100%;
}

/* Burger menu */
.burger-menu {
  position: relative;
  display: none;
}

#burger-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.burger-icon {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1002;
  position: relative;
}

.burger-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--background);
  padding: 6rem 1.5rem 1.5rem;
  z-index: 999;
  overflow-y: auto;
}

.nav-mobile ul {
  list-style: none;
  text-align: center;
}

.nav-mobile ul li {
  margin: 1.5rem 0;
}

.nav-mobile ul li label {
  display: block;
  cursor: pointer;
  width: 100%;
}

.nav-mobile ul li a {
  font-size: 1.4rem;
  font-weight: 600;
  display: block;
  padding: 0.8rem 0;
  color: var(--text);
}

#burger-toggle:checked ~ .nav-mobile {
  display: block;
}

#burger-toggle:checked ~ .burger-icon span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 7px);
}

#burger-toggle:checked ~ .burger-icon span:nth-child(2) {
  opacity: 0;
}

#burger-toggle:checked ~ .burger-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -7px);
}

/* Hero section */
.hero {
  background-image: url("./img/XoW7a.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(14, 19, 35, 0.7);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 3rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: both;
}

.hero .btn {
  animation: fadeInUp 1s ease 0.4s;
  animation-fill-mode: both;
}

/* About section */
.about {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--accent1), var(--accent3));
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-img {
  overflow: hidden;
  border-radius: 8px;
}

.about-img img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.about-img img:hover {
  transform: scale(1.05);
}

.about-text {
  padding: 1rem;
}

/* Services section */
.services {
  padding: 5rem 0;
  background-color: rgba(114, 9, 183, 0.05);
}

.services-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(76, 201, 240, 0.2);
}

.service-img {
  height: 200px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.05);
}

.service-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  margin-bottom: 1rem;
  color: var(--accent2);
}

.service-content p {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Advantages section */
.advantages {
  padding: 5rem 0;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.advantage-item {
  text-align: center;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.advantage-item:hover {
  transform: translateY(-5px);
}

.advantage-icon {
  margin-bottom: 1rem;
}

.advantage-icon img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.advantage-item h3 {
  margin-bottom: 0.5rem;
  color: var(--accent1);
}

/* Testimonials section */
.testimonials {
  padding: 5rem 0;
  background-color: rgba(114, 9, 183, 0.05);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 4rem;
  opacity: 0.2;
  color: var(--accent2);
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.author-info h4 {
  margin-bottom: 0.2rem;
  color: var(--accent1);
}

.author-info p {
  font-size: 0.9rem;
}

/* Form section */
.contact {
  padding: 5rem 0;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.8rem;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent1);
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.checkbox-group input {
  width: auto;
  margin-right: 10px;
}

/* Customize select dropdown */
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f1f1f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  padding-right: 2.5em;
}

/* Custom styles for select options */
select option {
  background-color: var(--background);
  color: var(--text);
  padding: 10px;
}

/* FAQ section */
.faq {
  padding: 5rem 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  cursor: pointer;
  position: relative;
}

.faq-question label {
  display: block;
  padding-right: 30px;
  font-weight: 600;
  cursor: pointer;
}

.faq-question label::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  background-color: rgba(255, 255, 255, 0.02);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.faq-answer-content {
  padding: 0 1rem 1rem;
}

.faq-toggle {
  display: none;
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
}

.faq-toggle:checked ~ .faq-question label::after {
  content: "−";
}

/* Footer */
footer {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 4rem 0 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-col {
  margin-bottom: 1.5rem;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent1);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links li a {
  position: relative;
  padding-left: 0;
  transition: padding 0.3s ease, color 0.3s ease;
}

.footer-links li a:hover {
  padding-left: 8px;
}

.contact-info {
  list-style: none;
}

.contact-info li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
}

.contact-info li i {
  margin-right: 10px;
  color: var(--accent1);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Cookie popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--background);
  color: var(--text);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  max-width: 400px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cookie-text {
  margin-bottom: 1rem;
  text-align: center;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-accept,
.cookie-decline {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  border: none;
}

.cookie-accept {
  background-color: var(--accent1);
  color: white;
}

.cookie-decline {
  background-color: transparent;
  border: 1px solid var(--accent1);
  color: var(--accent1);
}

.hidden {
  display: none;
}

/* Policy pages */
.policy-page {
  padding: 4rem 0;
}

.policy-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.policy-container h1 {
  margin-bottom: 2rem;
  text-align: center;
}

.policy-container h2 {
  margin: 2rem 0 1rem;
  color: var(--accent1);
}

.policy-container p {
  margin-bottom: 1rem;
}

.policy-container ul {
  margin: 1rem 0 1rem 2rem;
}

.policy-container ul li {
  margin-bottom: 0.5rem;
}

/* Thank you page */
.thank-you {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thank-you-container {
  max-width: 600px;
  margin: 8rem auto 3rem;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 3rem 2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 1s ease;
}

.thank-you-icon {
  font-size: 4rem;
  color: var(--accent1);
  margin-bottom: 2rem;
}

.thank-you h1 {
  margin-bottom: 1.5rem;
}

.thank-you p {
  margin-bottom: 2rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Media queries */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .burger-menu {
    display: block;
  }

  .burger-icon {
    display: flex;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}
