/* Style principal pour domain - Services comptables */
:root {
  /* Palette de couleurs */
  --fond-gradient-debut: #7C3AED; /* Pourpre */
  --fond-gradient-fin: #F59E0B; /* Ambre */
  --accent-1: #0EA5E9; /* Azur */
  --accent-2: #84CC16; /* Vert salade */
  --texte-sombre: #1E293B; /* Gris foncé */
  --texte-clair: #FFFFFF; /* Blanc */
  --ombre: rgba(0, 0, 0, 0.1);
}

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Arial', sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  background: linear-gradient(135deg, var(--fond-gradient-debut), var(--fond-gradient-fin));
  color: var(--texte-sombre);
  line-height: 1.6;
  min-height: 100vh;
}

section[id] {
  scroll-margin-top: 40px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: var(--accent-1);
  transition: color 0.3s;
}

a:hover {
  color: var(--accent-2);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--texte-sombre);

  font-size: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border-radius: 2px;
}

/* Header et navigation */
header {
  background-color: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(5px);
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 10px var(--ombre);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--texte-clair);
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
}

nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 20px;
}

nav a {
  color: var(--texte-clair);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* Hero section */
#hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('./img/AYufL.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--texte-clair);
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  color: var(--texte-clair);
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  color: var(--texte-clair);
}

/* À propos section */
#a-propos {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--ombre);
  margin: 4rem auto;
  position: relative;
  z-index: 10;

}

.a-propos-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: center;
}

.a-propos-text {
  padding: 2rem;
}

.a-propos-image {
  overflow: hidden;
  border-radius: 10px;
}

/* Services section */
#services {
  padding: 5rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--ombre);
  transition: transform 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--texte-sombre);
}

.service-description {
  color: var(--texte-sombre);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Avantages section */
#avantages {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 5rem 0;
}

.avantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.avantage-item {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--ombre);
  text-align: center;
  transition: transform 0.3s;
}

.avantage-item:hover {
  transform: translateY(-5px);
}

.avantage-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-1);
}

.avantage-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--texte-sombre);
}

/* Étapes section */
#etapes {
  padding: 5rem 0;
}

.etapes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  counter-reset: etape;
}

.etape-item {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px var(--ombre);
  position: relative;
}

.etape-item::before {
  counter-increment: etape;
  content: counter(etape);
  position: absolute;
  top: -20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: var(--texte-clair);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 5px 10px var(--ombre);
}

.etape-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--texte-sombre);
}

/* Témoignages section */
#temoignages {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 5rem 0;
}

.temoignages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.temoignage-card {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px var(--ombre);
  position: relative;
}

.temoignage-card::before {
  content: '"';
  font-size: 5rem;
  color: rgba(14, 165, 233, 0.2);
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

.temoignage-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.temoignage-auteur {
  display: flex;
  align-items: center;
}

.temoignage-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  overflow: hidden;
}

.temoignage-info {
  line-height: 1.4;
}

.temoignage-nom {
  font-weight: 700;
}

.temoignage-poste {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Formulaire section */
#formulaire {
  padding: 5rem 0;
}

.formulaire-container {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--ombre);
  padding: 3rem;
  max-width: 800px;
  margin: 8rem auto 5rem;
}

.form-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--texte-sombre);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(30, 41, 59, 0.2);
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

select.form-control {
  appearance: none;
  background-color: #FFFFFF;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

select.form-control option {
  background-color: white;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.checkbox-input {
  margin-top: 0.25rem;
  margin-right: 0.5rem;
}

.checkbox-label {
  font-size: 0.9rem;
}

.checkbox-label a {
  text-decoration: underline;
}

.form-btn {
  width: 100%;
  margin-top: 1rem;
}

/* FAQ section */
#faq {
  padding: 5rem 0;
  background-color: rgba(255, 255, 255, 0.1);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px var(--ombre);
}

.faq-question-container {
  background-color: rgba(255, 255, 255, 0.9);
}

.faq-question {
  display: block;
  width: 100%;
  padding: 1.5rem;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--texte-sombre);
  position: relative;
  cursor: pointer;
  border: none;
  background: transparent;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.faq-toggle {
  display: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.8);
  transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-toggle:checked + .faq-question-container .faq-question::after {
  content: '−';
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
  padding: 1.5rem;
}

/* Footer */
footer {
  background-color: rgba(30, 41, 59, 0.9);
  color: var(--texte-clair);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border-radius: 2px;
}

.footer-contact-info {
  list-style: none;
}

.footer-contact-info li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
}

.footer-contact-info i {
  margin-right: 0.8rem;
  color: var(--accent-1);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-copyright {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie popup */
.cookie-popup {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(30, 41, 59, 0.95);
  color: var(--texte-clair);
  padding: 1.5rem;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
  z-index: 1001;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-text {
  flex: 1;
  min-width: 250px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

/* Page policies */
.policy-container {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--ombre);
  padding: 3rem;
  max-width: 900px;
  margin: 8rem auto 5rem;
}

.policy-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--texte-sombre);
}

.policy-content h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--texte-sombre);
}

.policy-content h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--texte-sombre);
}

.policy-content p {
  margin-bottom: 1.5rem;
}

.policy-content ul, .policy-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.policy-content li {
  margin-bottom: 0.5rem;
}

/* Page Merci */
.merci-container {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--ombre);
  padding: 3rem;
  text-align: center;
  max-width: 800px;
  margin: 8rem auto 5rem;
}

.merci-icon {
  font-size: 4rem;
  color: var(--accent-2);
  margin-bottom: 2rem;
}

.merci-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--texte-sombre);
}

.merci-text {
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

/* Responsive styles */
@media screen and (max-width: 960px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .policy-title {
    font-size: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .nav-toggle-label {
    display: block;
    position: relative;
    width: 30px;
    height: 21px;
  }
  
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    position: absolute;
    height: 3px;
    width: 100%;
    background-color: var(--texte-clair);
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  
  .nav-toggle-label span {
    top: 9px;
  }
  
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: '';
    left: 0;
  }
  
  .nav-toggle-label span::before {
    top: -9px;
  }
  
  .nav-toggle-label span::after {
    top: 9px;
  }
  
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(30, 41, 59, 0.95);
    clip-path: circle(0 at top right);
    transition: clip-path 0.5s ease;
    padding: 1rem 0;
  }
  
  nav ul {
    flex-direction: column;
    gap: 0;
  }
  
  nav li {
    width: 100%;
  }
  
  nav a {
    display: block;
    padding: 1rem 2rem;
  }
  
  .nav-toggle:checked ~ nav {
    clip-path: circle(150% at top right);
  }
  
  .nav-toggle:checked ~ .nav-toggle-label span {
    background: transparent;
  }
  
  .nav-toggle:checked ~ .nav-toggle-label span::before {
    transform: rotate(45deg);
    top: 0;
  }
  
  .nav-toggle:checked ~ .nav-toggle-label span::after {
    transform: rotate(-45deg);
    top: 0;
  }
  
  .hero-title {
    font-size: 2.3rem;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .formulaire-container, .policy-container, .merci-container {
    padding: 2rem 1.5rem;
    margin: 5rem auto 3rem;
  }
}

@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 0.7rem 1.5rem;
  }
  
  .etape-item::before {
    left: 50%;
    transform: translateX(-50%);
  }
}
