/* ==========================================
   DOMAIN - STYLES PRINCIPAUX
   ==========================================*/

/* Variables CSS pour la palette de couleurs */
:root {
  --primary-bg: #3E294C;          /* Темный баклажановый */
  --accent-blue: #00BCD4;         /* Лазурный */
  --light-cream: #edebeb;         /* Светло-сливочный */
  --powder-yellow: #F9D976;       /* Пудрово-желтый */
  
  /* Couleurs dérivées */
  --primary-dark: #2A1A33;
  --accent-dark: #00ACC1;
  --text-dark: #333333;
  --text-light: #666666;
  --border-light: #E0E0E0;
  --shadow: rgba(62, 41, 76, 0.1);
}

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-cream);
  overflow-x: hidden;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary-bg);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.4;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* Liens */
a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* Conteneur principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--primary-bg), var(--primary-dark));
  color: var(--light-cream);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--shadow);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--light-cream);
  text-decoration: none;
}

.logo:hover {
  color: var(--powder-yellow);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav a {
  color: var(--light-cream);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.nav a:hover {
  background-color: var(--accent-blue);
  color: var(--light-cream);
  text-decoration: none;
}

/* Sections */
.section {
  padding: 7rem 0;
}

.section-alt {
  background: linear-gradient(rgba(62, 41, 76, 0.8), rgba(42, 26, 51, 0.9)), url('./img/wIcBAu.jpg');
  background-size: cover;
  background-position: center;
  color: var(--light-cream);
}

.section-alt h2,
.section-alt h3 {
  color: var(--light-cream);
}

.section-alt p {
  color: var(--light-cream);
  opacity: 0.9;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(62, 41, 76, 0.85), rgba(42, 26, 51, 0.9)), url('./img/tjLlVp.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--light-cream);
  padding: 6rem 0;
  text-align: center;
}

.hero h1 {
  color: var(--light-cream);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--light-cream);
  opacity: 0.9;
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-dark));
  color: var(--light-cream);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
  background: linear-gradient(135deg, var(--powder-yellow), #F6C842);
  color: var(--primary-bg);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--accent-blue);
  color: var(--accent-blue);
}

.btn-secondary:hover {
  background: var(--accent-blue);
  color: var(--light-cream);
}

/* Grille de services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--primary-bg);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--powder-yellow);
}

.service-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: var(--light-cream);
  box-shadow: 0 5px 15px rgba(0, 188, 212, 0.4);
}

/* Avantages */
.advantages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.advantage-item {
  text-align: center;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(62, 41, 76, 0.15);
  transition: all 0.3s ease;
}

.advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(62, 41, 76, 0.2);
  background-color: rgba(255, 255, 255, 0.95);
}

.advantage-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--powder-yellow), #F6C842);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  color: var(--primary-bg);
  box-shadow: 0 5px 15px rgba(249, 217, 118, 0.4);
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial {
  background: var(--primary-bg);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px var(--shadow);
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--accent-blue);
  opacity: 0.3;
}

.testimonial-author {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--light-cream);
}

/* FAQ */
.faq {
  max-width: 800px;
  margin: 3rem auto 0;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
}

.faq-question {
  background: var(--light-cream);
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: var(--powder-yellow);
  color: var(--primary-bg);
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-item:target .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item:target .faq-answer {
  max-height: 200px;
  padding: 1.5rem;
}

/* Formulaire */
.form-container {
  max-width: 600px;
  margin: 3rem auto 0;
  background: var(--light-cream);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-bg);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
  margin-top: 0.2rem;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: 400;
  color: #333;
  line-height: 1.4;
}

/* Footer */
.footer {
  background: var(--primary-bg);
  color: var(--light-cream);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--light-cream);
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: var(--light-cream);
  opacity: 0.8;
}

.footer-section a:hover {
  opacity: 1;
  color: var(--powder-yellow);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 248, 240, 0.1);
  color: var(--light-cream);
  opacity: 0.7;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: -200px;
  left: 20px;
  right: 20px;
  background: var(--primary-bg);
  color: var(--light-cream);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px var(--shadow);
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.cookie-popup.show {
  transform: translateY(-216px);
  opacity: 1;
}

.cookie-popup p {
  margin-bottom: 1rem;
  color: var(--light-cream);
}

.cookie-popup .btn {
  margin-right: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .advantages {
    grid-template-columns: 1fr;
  }
  
  .testimonials {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .cookie-popup {
    left: 10px;
    right: 10px;
  }
  
  /* About section mobile */
  #about > .container > div {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  /* Form adjustments */
  .btn {
    width: 100% !important;
    text-align: center;
  }
  
  /* Navigation active state */
  .nav a.active {
    background-color: var(--accent-blue);
    color: var(--light-cream);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 0;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .form-container {
    padding: 1.5rem;
  }
  
  .btn {
    padding: 0.8rem 1.5rem;
  }
} 

/* Custom section backgrounds */
#avantages {
  background: linear-gradient(rgba(255, 248, 240, 0.9), rgba(255, 248, 240, 0.85)), url('./img/r8Os75.jpg');
  background-size: cover;
  background-position: center;
}

#avantages h2, 
#avantages h3 {
  color: var(--primary-bg);
} 

#contact {
  background: linear-gradient(rgba(62, 41, 76, 0.85), rgba(42, 26, 51, 0.9)), url('./img/qez8PX.jpg');
  background-size: cover;
  background-position: center bottom;
} 