/* Main CSS for domain - French accounting services */
:root {
  /* Color palette */
  --primary: #003B73; /* Deep azure */
  --accent: #FF6F61; /* Coral pink */
  --secondary-1: #CBEF43; /* Lime */
  --secondary-2: #D5C3AA; /* Clay beige */
  --text-dark: #1A1A1A; /* Almost black */
  --text-light: #6F6F6F; /* Warm gray */
  --white: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.15);
  
  /* Layout */
  --border-radius: 24px;
  --padding-sm: 1rem; /* p-4 */
  --padding-md: 2rem; /* p-8 */
  --padding-lg: 3rem; /* p-12 */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', 'Arial', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Adds padding for anchor links to account for fixed header */
}

body {
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Additional anchor positioning fix */
section[id] {
  scroll-margin-top: 80px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--padding-sm);
}

/* Grid system - 12 columns */
.grid {
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 15px 30px;
  background: var(--accent);
  color: white;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:hover {
  background: linear-gradient(45deg, var(--accent), var(--primary));
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  color: white;
}

.btn-primary {
  background: var(--primary);
}

/* Header styles */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation - Updated to align all items */
nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  margin: 0;
  height: 100%;
}

nav ul li {
  margin-left: 2rem;
  display: flex;
  align-items: center;
  height: 100%;
}

nav ul li a {
  color: var(--text-dark);
  font-weight: 600;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* Hero section - Updated for center alignment */
.hero {
  background: linear-gradient(135deg, var(--primary), rgba(0, 59, 115, 0.8));
  color: var(--white);
  padding: var(--padding-lg) 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url('./img/23tUpn.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0.2;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  grid-column: span 12;
  padding: var(--padding-lg) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* About section - Updated layout */
.about {
  padding: var(--padding-lg) 0;
  background-color: var(--white);
}

.about .section-header {
  grid-column: span 12;
  text-align: center;
  margin-bottom: 3rem;
}

.about h2 {
  margin: 0 auto;
  text-align: center;
  display: inline-block;
}

.about-content {
  grid-column: span 7;
  padding-right: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-image {
  grid-column: span 5;
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  margin-top: 2.5rem;
  height: 300px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Services section - Updated to show cards in row with images */
.services {
  padding: var(--padding-lg) 0;
  background: linear-gradient(135deg, rgba(0, 59, 115, 0.05), rgba(255, 111, 97, 0.05));
}

.services-header {
  grid-column: span 12;
  text-align: center;
  margin-bottom: 3rem;
}

.services-container {
  grid-column: span 12;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.service-card {
  flex: 1;
  min-width: 300px;
  max-width: calc(33.333% - 20px);
  background: var(--white);
  border-radius: var(--border-radius);
  padding: var(--padding-md);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  margin-bottom: 20px;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
  width: 100%;
  height: 160px;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

/* Why us section */
.why-us {
  padding: var(--padding-lg) 0;
  background-color: var(--white);
}

.why-us-header {
  grid-column: span 12;
  text-align: center;
  margin-bottom: 3rem;
}

.why-us-item {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--padding-sm);
}

.why-us-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 1.5rem;
  border: 2px solid rgba(255, 111, 97, 0.3);
}

/* Testimonials section - Improved mobile adaptation */
.testimonials {
  padding: var(--padding-lg) 0;
  background: linear-gradient(135deg, var(--primary), rgba(0, 59, 115, 0.8));
  color: var(--white);
}

.testimonials-header {
  grid-column: span 12;
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-header h2 {
  color: var(--white);
}

.testimonials-slider {
  grid-column: span 12;
  position: relative;
  overflow: hidden;
}

.testimonial-slides {
  display: flex;
  width: 300%;
  transition: transform 0.5s ease;
}

.testimonial {
  width: 33.333%;
  padding: var(--padding-md);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  margin: 0 10px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.testimonial-author {
  font-weight: 700;
  display: block;
  margin-top: 1rem;
  color: var(--white);
}

/* CSS-only slider controls - Improved for mobile */
.testimonial-controls {
  text-align: center;
  margin-top: 2rem;
}

.testimonial-radio {
  display: none;
}

.testimonial-label {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  margin: 0 5px;
  transition: background 0.3s ease;
}

#testimonial-1:checked ~ .testimonial-controls label[for="testimonial-1"],
#testimonial-2:checked ~ .testimonial-controls label[for="testimonial-2"],
#testimonial-3:checked ~ .testimonial-controls label[for="testimonial-3"] {
  background: var(--white);
  transform: scale(1.2);
}

#testimonial-1:checked ~ .testimonial-slides {
  transform: translateX(0);
}

#testimonial-2:checked ~ .testimonial-slides {
  transform: translateX(-33.333%);
}

#testimonial-3:checked ~ .testimonial-slides {
  transform: translateX(-66.666%);
}

/* Mobile adaptations for testimonials */
@media (max-width: 768px) {
  .testimonial {
    padding: var(--padding-sm);
  }
  
  .testimonial-label {
    width: 16px;
    height: 16px;
    margin: 0 8px;
  }
}

@media (max-width: 480px) {
  .testimonials {
    padding: var(--padding-md) 0;
  }
  
  .testimonials-slider {
    margin: 0 -15px;
  }
  
  .testimonial-slides {
    width: 100%;
    flex-direction: column;
  }
  
  .testimonial {
    width: 100%;
    margin: 0 0 1rem 0;
    display: none;
  }
  
  /* Show only active testimonial on mobile */
  #testimonial-1:checked ~ .testimonial-slides .testimonial:nth-child(1),
  #testimonial-2:checked ~ .testimonial-slides .testimonial:nth-child(2),
  #testimonial-3:checked ~ .testimonial-slides .testimonial:nth-child(3) {
    display: block;
  }
  
  /* Remove horizontal sliding and use opacity transition instead */
  #testimonial-1:checked ~ .testimonial-slides,
  #testimonial-2:checked ~ .testimonial-slides,
  #testimonial-3:checked ~ .testimonial-slides {
    transform: none;
  }
  
  .testimonial-label {
    width: 20px;
    height: 20px;
    margin: 0 10px;
  }
}

/* FAQ section */
.faq {
  padding: var(--padding-lg) 0;
  background-color: var(--white);
}

.faq-header {
  grid-column: span 12;
  text-align: center;
  margin-bottom: 3rem;
}

.faq-item {
  grid-column: span 12;
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-question {
  padding: var(--padding-sm);
  background: linear-gradient(135deg, rgba(0, 59, 115, 0.05), rgba(255, 111, 97, 0.05));
  font-weight: 600;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-inner {
  padding: var(--padding-sm);
  background: rgba(255, 255, 255, 0.5);
}

/* Contact form section */
.contact-form-section {
  padding: var(--padding-lg) 0;
  background: linear-gradient(135deg, rgba(0, 59, 115, 0.05), rgba(255, 111, 97, 0.05));
}

.contact-form-header {
  grid-column: span 12;
  text-align: center;
  margin-bottom: 3rem;
}

.contact-form {
  grid-column: span 8;
  grid-column-start: 3;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: var(--padding-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
    transparent, 
    rgba(255, 111, 97, 0.1), 
    transparent, 
    rgba(0, 59, 115, 0.1), 
    transparent);
  transform: rotate(45deg);
  animation: formGlow 10s linear infinite;
  z-index: -1;
}

@keyframes formGlow {
  0% {
    transform: rotate(45deg) translateX(-100%);
  }
  100% {
    transform: rotate(45deg) translateX(100%);
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.2);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236F6F6F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 5px;
}

.checkbox-group label {
  font-size: 0.9rem;
}

.checkbox-group a {
  color: var(--accent);
  text-decoration: underline;
}

/* Footer styles - Updated for white text */
footer {
  background: var(--primary);
  color: var(--white);
  padding: var(--padding-lg) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.footer-col {
  grid-column: span 4;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--white), var(--secondary-1));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-links h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a {
  color: var(--white); /* Changed to white */
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-contact p {
  color: var(--white); /* Changed to white */
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.footer-contact p i {
  margin-right: 10px;
  color: var(--accent);
}

.footer-bottom {
  grid-column: span 12;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  color: var(--white); /* Changed to white */
  font-size: 0.9rem;
}

/* Make all footer text and links white */
footer p, 
footer a, 
footer .legal-links a, 
footer .legal-links, 
.footer-col p {
  color: var(--white);
}

footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Cookie consent popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  padding: var(--padding-md);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 1100;
  max-width: 400px;
  text-align: center;
}

.cookie-popup p {
  margin-bottom: 1rem;
}

.cookie-popup.show {
  display: block;
  animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translate(-50%, 20px); }
  100% { opacity: 1; transform: translate(-50%, 0); }
}

/* Legal pages */
.legal-page {
  padding: var(--padding-lg) 0;
}

.legal-content {
  grid-column: span 10;
  grid-column-start: 2;
  background: var(--white);
  border-radius: var(--border-radius);
  padding: var(--padding-md);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.legal-content h1 {
  margin-bottom: 2rem;
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content p, .legal-content ul {
  margin-bottom: 1rem;
}

.legal-content ul {
  padding-left: 1.5rem;
}

/* Mobile menu - PHP based */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  z-index: 2000;
  padding-top: 80px;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
}

.mobile-menu ul li {
  margin-bottom: 1rem;
}

.mobile-menu ul li a {
  color: var(--white);
  font-size: 1.2rem;
  display: block;
  padding: 1rem 2rem;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .service-card, .why-us-item {
    grid-column: span 6;
  }
  
  .hero-content {
    grid-column: span 8;
  }
  .service-card {
    max-width: calc(50% - 20px);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  nav {
    display: none;
  }
  
  .hero-content, .about-content, .about-image, .service-card, .why-us-item, .footer-col, .contact-form {
    grid-column: span 12;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .footer-grid {
    row-gap: 2rem;
  }
  .service-card {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  :root {
    --padding-md: 1.5rem;
    --padding-lg: 2rem;
  }
  
  .testimonial-slides {
    flex-direction: column;
  }
  
  .testimonial {
    width: 100%;
    margin: 0 0 1rem 0;
  }
  
  #testimonial-1:checked ~ .testimonial-slides,
  #testimonial-2:checked ~ .testimonial-slides,
  #testimonial-3:checked ~ .testimonial-slides {
    transform: translateY(0);
  }
  
  .testimonial:not(.active) {
    display: none;
  }
  
  .btn {
    width: 100%;
    padding: 12px 20px;
  }
} 