/* 
* Main Stylesheet for domain
* Colors:
* Primary: #1F1147 (violet-graphite)
* Accent: #F8BE2E (sunny yellow)
* Background: #F7F6F3 (soft cream)
* Additional: #362D59 (borders), #B9B4C7 (blocks)
*/

/* === Reset & Base === */
:root {
  --primary: #1f1147;
  --accent: #f8be2e;
  --background: #f7f6f3;
  --border: #362d59;
  --block: #b9b4c7;
  --white: #ffffff;
  --text: #333333;
  --shadow: rgba(31, 17, 71, 0.1);
  --header-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

section[id] {
  scroll-margin-top: 40px;
}

body {
  font-family: "Arial", sans-serif;
  color: var(--text);
  background-color: var(--background);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

img {
  max-width: 100%;
  height: auto;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #2a1a5e;
  color: var(--white);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--primary);
}

.btn-accent:hover {
  background-color: #e9af1b;
  color: var(--primary);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* === Header & Navigation === */
.main-header {
  background-color: var(--white);
  box-shadow: 0 2px 10px var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo a {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 var(--accent);
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 1.5rem;
}

.main-nav a {
  font-weight: 600;
  position: relative;
  padding: 4px 14px;
}

.main-nav a:not(.btn-accent)::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent);
  transition: all 0.3s ease;
}

.main-nav a:not(.btn-accent):hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
}

.menu-button {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
}

.menu-button span {
  height: 3px;
  width: 100%;
  background-color: var(--primary);
  transition: all 0.3s ease;
}

/* === Hero Section === */
.hero {
  height: 100vh;
  background-image: url("./img/GeUwx.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(147 144 123 / 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* === Section Styles === */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent);
}

/* === About Section === */
.about {
  background-color: var(--white);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
}

/* === Features Section === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
}

.feature-icon {
  background-color: var(--accent);
  color: var(--primary);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: bold;
}

/* === Services Section === */
.services {
  background-color: var(--background);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px var(--shadow);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  margin-bottom: 1rem;
}

/* === Process Section === */
.process {
  background-color: var(--white);
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.process-step {
  width: 220px;
  margin: 1rem;
  text-align: center;
  position: relative;
}

.step-number {
  background-color: var(--accent);
  color: var(--primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-weight: bold;
  font-size: 1.5rem;
}

.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25px;
  right: -50px;
  width: 80px;
  height: 2px;
  background-color: var(--accent);
}

/* === Testimonials Section === */
.testimonials {
  background-color: var(--background);
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
  height: 280px;
}

.testimonial-slides {
  display: flex;
  transition: all 0.5s ease;
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 1rem;
}

.testimonial-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px var(--shadow);
  position: relative;
}

.testimonial-text {
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-text::before {
  content: '"';
  font-size: 3rem;
  color: var(--accent);
  position: absolute;
  top: 10px;
  left: 20px;
  opacity: 0.2;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-info h4 {
  margin-bottom: 0;
}

.author-role {
  color: var(--block);
  font-size: 0.9rem;
}

/* CSS-only Slider */
.testimonials-slider input {
  display: none;
}

.testimonials-controls {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.testimonials-controls label {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--block);
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#slide1:checked ~ .testimonials-controls label:nth-child(1),
#slide2:checked ~ .testimonials-controls label:nth-child(2),
#slide3:checked ~ .testimonials-controls label:nth-child(3) {
  background-color: var(--accent);
  transform: scale(1.3);
}

#slide1:checked ~ .testimonial-slides {
  transform: translateX(0);
}

#slide2:checked ~ .testimonial-slides {
  transform: translateX(-100%);
}

#slide3:checked ~ .testimonial-slides {
  transform: translateX(-200%);
}

/* === Contact Form Section === */
.contact {
  background-color: var(--white);
  position: relative;
}

.contact-map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  background-image: url("./img/7PByk.jpg");
  background-size: cover;
  background-position: center;
}

.contact-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.contact-form-wrapper {
  width: 100%;
  max-width: 600px;
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px var(--shadow);
  border: 2px solid var(--accent);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--block);
  border-radius: 4px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 17, 71, 0.1);
}

.form-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.form-check input {
  margin-top: 5px;
  margin-right: 10px;
}

/* === Footer === */
.main-footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col h3 {
  color: var(--accent);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: var(--white);
  opacity: 0.8;
}

.footer-col a:hover {
  color: var(--accent);
  opacity: 1;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.legal-links {
  margin-bottom: 1.5rem;
}

.legal-links a {
  color: var(--white);
  opacity: 0.7;
  margin: 0 10px;
  font-size: 0.9rem;
}

.legal-links a:hover {
  color: var(--accent);
  opacity: 1;
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* === Cookie Consent === */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 -2px 10px var(--shadow);
  padding: 1rem;
  z-index: 1100;
  display: none;
}

.cookie-consent.show {
  display: block;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

/* === Policy Pages === */
.policy-page {
  padding: 5rem 0;
}

.policy-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid var(--border);
}

.policy-container h1 {
  margin-bottom: 2rem;
  text-align: center;
}

.policy-container h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.policy-container p,
.policy-container ul {
  margin-bottom: 1.5rem;
}

.policy-container ul {
  padding-left: 2rem;
}

/* === Merci Page === */
.thank-you {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
}

.thank-you-container {
  max-width: 600px;
  gap: 12px;
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px var(--shadow);
  border: 2px solid var(--accent);
  margin: 0 auto;
  margin-top: 5rem;
}
.thank-you-container .btn {
  margin-top: 2rem;
}
.thank-you h1 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.thank-you .icon {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

/* === FAQ Section === */
.faq {
  background-color: var(--background);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--white);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow);
  padding: 1rem;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  position: relative;
  font-weight: 600;
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 0 1.5rem;
}

.faq-toggle {
  display: none;
}

.faq-toggle:checked + .faq-question {
  border-bottom: 1px solid #eee;
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
  padding: 1.5rem;
}

/* === Responsive Design === */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-button {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--white);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 10px var(--shadow);
  }

  .menu-toggle:checked ~ .main-nav {
    max-height: 500px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem 0;
  }

  .main-nav li {
    margin: 0;
  }

  .main-nav a {
    display: block;
    padding: 0.8rem 1.5rem;
  }

  .about-content {
    flex-direction: column;
  }

  .services-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }
}
