/* ========================================
   Reset & Base
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ========================================
   Header
   ======================================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 20px 0;
  position: relative;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding .site-name {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.site-branding .site-name:hover {
  text-decoration: none;
  color: #0066cc;
}

/* Burger Menu Button - Caché sur desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.burger-icon {
  display: block;
  width: 30px;
  height: 2px;
  background: #333;
  position: relative;
  transition: background 0.3s ease;
}

.burger-icon::before,
.burger-icon::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: #333;
  position: absolute;
  transition: transform 0.3s ease;
}

.burger-icon::before {
  top: -8px;
}

.burger-icon::after {
  top: 8px;
}

/* Animation burger → croix */
.menu-toggle.active .burger-icon {
  background: transparent;
}

.menu-toggle.active .burger-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active .burger-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Navigation Desktop */
.main-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

.main-nav a {
  color: #333;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
  color: #0066cc;
  text-decoration: none;
}

/* ========================================
   Hero
   ======================================== */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 100px 0;
  text-align: center;
}

.hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-text {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-cta {
  margin-top: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: white;
  color: #667eea;
}

.btn-primary:hover {
  background: #f0f0f0;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ========================================
   Text + Image
   ======================================== */
.textimg,
.imgtext {
  padding: 80px 0;
}

.textimg-wrapper,
.imgtext-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.textimg-content h2,
.imgtext-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #333;
}

.textimg-content p,
.imgtext-content p {
  font-size: 18px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 15px;
}

.textimg-image img,
.imgtext-image img {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Ordre inversé pour imgtext */
.imgtext-wrapper {
  grid-template-columns: 1fr 1fr;
}

/* ========================================
   FAQ
   ======================================== */
.faq {
  padding: 80px 0;
  background: #f8f9fa;
}

.faq-title {
  text-align: center;
  font-size: 40px;
  margin-bottom: 50px;
  color: #333;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
}

.faq-question {
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #f8f9fa;
}

.faq-question h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.faq-toggle {
  font-size: 24px;
  color: #667eea;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.faq-answer {
  display: none;
  padding: 0 25px 20px 25px;
  border-top: 1px solid #e5e5e5;
}

.faq-answer p {
  color: #666;
  line-height: 1.8;
}

/* ========================================
   Logos
   ======================================== */
.logos {
  padding: 60px 0;
  background: #f8f9fa;
}

.logos-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: #333;
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 40px;
  align-items: center;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: white;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.logo-img {
  max-height: 60px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  filter: grayscale(100%);
}

.logo-item:hover .logo-img {
  opacity: 1;
  filter: grayscale(0%);
}

/* ========================================
   Témoignages
   ======================================== */
.temoignages {
  padding: 80px 0;
  background: #fff;
}

.temoignages-title {
  text-align: center;
  font-size: 40px;
  margin-bottom: 50px;
  color: #333;
}

.temoignages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.temoignage-item {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.temoignage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.temoignage-text {
  margin-bottom: 25px;
  font-style: italic;
  color: #555;
  line-height: 1.8;
  border-left: 4px solid #667eea;
  padding-left: 20px;
}

.temoignage-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-image img {
  border-radius: 50%;
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.author-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.author-role {
  font-size: 14px;
  color: #666;
}

/* ========================================
   CTA (Call-to-Action)
   ======================================== */
.cta {
  padding: 80px 0;
  text-align: center;
}

.cta-light {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.cta-dark {
  background: #2c3e50;
  color: white;
}

.cta-title {
  font-size: 42px;
  margin-bottom: 20px;
  font-weight: 700;
}

.cta-text {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  margin-top: 30px;
}

.btn-cta {
  background: white;
  color: #667eea;
  font-size: 18px;
  padding: 15px 40px;
}

.cta-dark .btn-cta {
  color: #2c3e50;
}

.btn-cta:hover {
  background: #f0f0f0;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ========================================
   Gallery
   ======================================== */
.gallery {
  padding: 80px 0;
  background: #fff;
}

.gallery-title {
  text-align: center;
  font-size: 40px;
  margin-bottom: 50px;
  color: #333;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.gallery-item {
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.gallery-image {
  overflow: hidden;
  height: 250px;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image img {
  transform: scale(1.05);
}

.gallery-info {
  padding: 20px;
}

.gallery-item-title {
  font-size: 20px;
  margin-bottom: 10px;
  color: #333;
}

.gallery-item-title a {
  color: #333;
  text-decoration: none;
}

.gallery-item-title a:hover {
  color: #667eea;
}

.gallery-item-description {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* ========================================
   Formulaire de Contact
   ======================================== */
.contact-form {
  padding: 80px 0;
  background: #fff;
}

.contact-form-title {
  text-align: center;
  font-size: 40px;
  margin-bottom: 50px;
  color: #333;
}

.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: #f8f9fa;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-messages {
  max-width: 600px;
  margin: 0 auto 30px auto;
  padding: 15px 20px;
  border-radius: 5px;
  display: none;
}

.form-messages.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-messages.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-group .required {
  color: #dc3545;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.btn-submit {
  width: 100%;
  padding: 15px 30px;
  font-size: 18px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: #2c3e50;
  color: white;
  padding: 40px 0 20px;
}

.footer-links ul,
.footer-social ul {
  display: flex;
  gap: 20px;
  list-style: none;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-links a,
.footer-social a {
  color: white;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-links a:hover,
.footer-social a:hover {
  opacity: 1;
  text-decoration: none;
}

.footer-copyright {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  opacity: 0.7;
  font-size: 14px;
}

/* ========================================
   Responsive - Mobile
   ======================================== */
@media (max-width: 768px) {
  /* Header Mobile */
  .site-header .container {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
  }
  
  /* Afficher le burger sur mobile */
  .menu-toggle {
    display: block;
  }
  
  /* Menu mobile - Caché par défaut */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 80px 0 40px 0;
    overflow-y: auto;
  }
  
  /* Menu mobile ouvert */
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  
  .main-nav li {
    border-bottom: 1px solid #e5e5e5;
  }
  
  .main-nav a {
    display: block;
    padding: 20px 30px;
    font-size: 18px;
  }
  
  .main-nav a:hover,
  .main-nav a.active {
    background: #f8f9fa;
  }
  
  /* Overlay sombre quand menu ouvert */
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
  }
  
  /* Contenu */
  .hero-title {
    font-size: 32px;
  }
  
  .textimg-wrapper,
  .imgtext-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* Sur mobile, inverser l'ordre pour imgtext (texte en premier) */
  .imgtext-wrapper {
    display: flex;
    flex-direction: column-reverse;
  }
  
  /* S'assurer que les conteneurs d'images ne dépassent jamais */
  .textimg-image,
  .imgtext-image {
    max-width: 100%;
    overflow: hidden;
  }
  
  .logos-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
  }
  
  .temoignages-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links ul,
  .footer-social ul {
    flex-direction: column;
    align-items: center;
  }
}
