/* 
   Style CSS pour domain.com
   Site de services comptables en France
*/

/* ===== RESET & GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Palette de couleurs */
  --color-gradient-start: #6A0572;
  --color-gradient-end: #0FF4C6;
  --color-accent-yellow: #FFD700;
  --color-accent-emerald: #046865;
  --color-text-light: #FFFFFF;
  --color-text-dark: #1E1E1E;
  --color-card-bg: rgba(255, 255, 255, 0.85);
  --border-radius: 25px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  font-family: 'Roboto', 'Arial', sans-serif;
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  color: var(--color-text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

section[id] {
  scroll-margin-top: 40px;
  padding: 4rem 1rem;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.card {
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--color-text-light);
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background-color: var(--color-accent-yellow);
  border-radius: 5px;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text-light);
  text-decoration: none;
  letter-spacing: 1px;
}

.hamburger {
  display: none;
}

nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 20px;
}

header a {
  color: var(--color-text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  padding: 0.5rem;
}

header a:hover {
  color: var(--color-accent-yellow);
}

/* Hamburger menu (CSS only) */
.hamburger-label {
  cursor: pointer;
  display: none;
  order: 2;
}

.hamburger-icon, .hamburger-icon::before, .hamburger-icon::after {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-text-light);
  position: relative;
  transition: all 0.3s;
}

.hamburger-icon::before, .hamburger-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger-icon::before {
  top: -8px;
}

.hamburger-icon::after {
  top: 8px;
}

#hamburger:checked ~ .mobile-menu {
  transform: translateX(0);
}

.mobile-menu {
  position: fixed;
  top: 94px;
  left: 0;
  width: 250px;
  height: calc(100vh - 70px);
  background-color: rgba(26, 26, 26, 0.95);
  transform: translateX(-300%);
  transition: transform 0.3s ease;
  z-index: 999;
  padding: 2rem;
  display: none;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  text-align: center;
}

/* ===== HERO SECTION ===== */
.hero {
  height: 80vh;
  min-height: 500px;
  background-image: url('./img/QlvrC.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-text-light);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: fadeInDown 1s ease;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.5s both;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--color-accent-yellow);
  color: var(--color-text-dark);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  animation: fadeIn 1s ease 1s both;
}

.btn:hover {
  background-color: #e5c100;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===== ABOUT SECTION ===== */
.about {
  background-color: rgba(255, 255, 255, 0.1);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-img {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.about-img img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text {
  color: var(--color-text-light);
}

/* ===== SERVICES SECTION ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.service-img {
  height: 200px;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-content {
  padding: 1.5rem;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-accent-emerald);
}

/* ===== ADVANTAGES SECTION ===== */
.advantages {
  background-color: rgba(255, 255, 255, 0.1);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.advantage-item {
  text-align: center;
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: transform 0.3s;
}

.advantage-item:hover {
  transform: translateY(-5px);
}

.advantage-icon {
  font-size: 3rem;
  color: var(--color-accent-yellow);
  margin-bottom: 1rem;
}

.advantage-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--color-accent-emerald);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 5rem;
  color: var(--color-accent-yellow);
  opacity: 0.2;
  line-height: 0;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-info {
  line-height: 1.2;
}

.testimonial-name {
  font-weight: 700;
  color: var(--color-accent-emerald);
}

.testimonial-position {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ===== STEPS SECTION ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.step-card {
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  position: relative;
}

.step-number {
  background-color: var(--color-accent-yellow);
  color: var(--color-text-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--color-accent-emerald);
}

/* ===== FORM SECTION ===== */
.form-section {
  background-color: rgba(255, 255, 255, 0.1);
}

.form-container {
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--color-accent-emerald);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

.form-select {
  background-color: white;
}

.form-select option {
  background-color: white;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.checkbox-input {
  margin-right: 0.5rem;
  margin-top: 0.3rem;
}

.checkbox-label {
  font-size: 0.9rem;
}

.checkbox-label a {
  color: var(--color-accent-emerald);
}

.btn-submit {
  width: 100%;
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.contact-info {
  color: var(--color-text-light);
}

.contact-item {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
}

.contact-icon {
  margin-right: 1rem;
  color: var(--color-accent-yellow);
  font-size: 1.5rem;
  width: 24px;
  text-align: center;
}

.contact-map {
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 300px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== FOOTER ===== */
footer {
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--color-text-light);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-col h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--color-accent-yellow);
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--color-accent-yellow);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--color-accent-yellow);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.footer-contact-icon {
  color: var(--color-accent-yellow);
  margin-right: 0.8rem;
  width: 16px;
}

.footer-bottom {
  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%);
  width: 90%;
  max-width: 400px;
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: none;
}

.cookie-popup.show {
  display: block;
  animation: slideUp 0.5s forwards;
}

.cookie-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--color-accent-emerald);
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-cookie {
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-accept {
  background-color: var(--color-accent-yellow);
  color: var(--color-text-dark);
}

.btn-accept:hover {
  background-color: #e5c100;
}

.btn-decline {
  background-color: transparent;
  color: var(--color-text-dark);
  border: 1px solid #ccc;
}

.btn-decline:hover {
  background-color: #f1f1f1;
}

/* ===== POLICY PAGES ===== */
.policy-container {
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  margin: 4rem auto;
  max-width: 900px;
}

.policy-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--color-accent-emerald);
}

.policy-section {
  margin-bottom: 2rem;
}

.policy-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--color-accent-emerald);
}

.policy-section p {
  margin-bottom: 1rem;
}

.policy-section ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

/* ===== THANK YOU PAGE ===== */
.thank-you {
  text-align: center;
}

.thank-you-container {
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  max-width: 600px;
  margin: 8rem auto 5rem;
  border: 2px solid var(--color-accent-yellow);
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--color-accent-emerald);
  margin-bottom: 1.5rem;
}

.thank-you-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-accent-emerald);
}

.thank-you-text {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* ===== FAQ SECTION (CSS-only accordion) ===== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
}

.faq-question {
  background-color: var(--color-card-bg);
  padding: 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  display: block;
}

.faq-checkbox {
  display: none;
}

.faq-question-text {
  font-size: 1.1rem;
  font-weight: 600;
  padding-right: 2rem;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.faq-checkbox:checked ~ .faq-question::after {
  content: '−';
}

.faq-answer {
  background-color: var(--color-card-bg);
  border-radius: 0 0 10px 10px;
  padding: 0 1.2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-checkbox:checked ~ .faq-answer {
  max-height: 500px;
  padding: 1.2rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
  .section-title {
    font-size: 2.2rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  nav ul {
    display: none;
  }
  
  .hamburger-label {
    display: block;
  }
  
  .mobile-menu {
    display: block;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .form-container {
    padding: 1.5rem;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
}
