/* ========================================
   VARIABLES & BASE
======================================== */
:root {
  --primary: #1a56db;
  --primary-dark: #1e40af;
  --primary-light: #dbeafe;
  --accent: #f59e0b;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --gray: #64748b;
  --gray-light: #f1f5f9;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 86, 219, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 18px 40px; font-size: 17px; }

/* ========================================
   HEADER
======================================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(170, 65, 70, 0.97) 0%, rgba(162, 36, 40, 0.97) 100%);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}

#header.visible {
  transform: translateY(0);
}

#header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding-left: 10;
}

.logo {
  display: flex;
  align-items: center;
  line-height: 1.1;
}
.logo-img {
  height: 70px;
  width: auto;
  display: block;
}
.logo-main {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
}
.logo-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

#nav ul li a {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
#nav ul li a:hover { color: var(--white); }

.btn-nav {
  background: rgba(255,255,255,0.2) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  border: 1px solid rgba(255,255,255,0.4) !important;
  transition: background 0.2s !important;
}
.btn-nav:hover {
  background: rgba(255,255,255,0.35) !important;
  color: var(--white) !important;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ========================================
   HERO
======================================== */
.hero {
  background: var(--dark);
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center; /* Ajouté pour centrer horizontalement */
  padding-top: 0;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.65) 0%, rgba(30,58,95,0.60) 50%, rgba(26,86,219,0.55) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero.hero-scrolled::before {
  opacity: 1;
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 24px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
}

.hero.hero-scrolled .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-tag {
  display: inline-block;
  background: rgba(245,158,11,0.2);
  color: var(--accent);
  border: 1px solid rgba(245,158,11,0.3);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.hero.hero-scrolled .hero-tag {
  opacity: 1;
  transform: translateY(0);
}

.hero-content h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.hero-content h1 span {
  color: var(--accent);
}

.hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  margin: 0 auto 36px auto;
  max-width: 520px;
  line-height: 1.7;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease 0.25s, transform 0.6s ease 0.25s;
}

.hero.hero-scrolled .hero-desc {
  opacity: 1;
  transform: translateY(0);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.hero.hero-scrolled .hero-actions {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   STATS
======================================== */
.stats {
  background: var(--dark-2);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ========================================
   SECTION HEADER
======================================== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-desc {
  font-size: 17px;
  color: var(--gray);
  max-width: 520px;
  margin: 0 auto;
}

/* ========================================
   SERVICES
======================================== */
.services {
  padding: 96px 0;
  background: var(--gray-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.service-icon svg {
  width: 30px;
  height: 30px;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-list li {
  font-size: 14px;
  color: var(--dark);
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-light);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.service-list li:last-child { border-bottom: none; }

/* ========================================
   À PROPOS
======================================== */
.apropos {
  padding: 96px 0;
  background: var(--white);
}

.apropos-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.apropos-text .section-tag { text-align: justify; }

.apropos-text h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.apropos-text p {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 16px;
}

.apropos-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.apropos-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--dark);
  font-weight: 500;
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

.apropos-visual {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.apropos-badge {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.badge-year {
  display: block;
  font-size: 72px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.badge-text {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.apropos-card {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 28px 32px;
  color: white;
}

.apropos-card p {
  font-size: 16px;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.9);
}

.apropos-card span {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

/* ========================================
   AVIS CLIENTS
======================================== */
.avis {
  padding: 48px 0;
  background: white;
}

.avis-container {
  margin-top: 16px;
}

.avis .section-header {
  margin-bottom: 8px;
}

.google-reviews-widget {
  margin-bottom: 0;
}

/* Note globale */
.global-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 0 12px;
  background: none;
  border-radius: 0;
  margin-bottom: 0;
  text-align: center;
}

.global-rating-stars {
  display: flex;
  gap: 4px;
  font-size: 64px;
}

.global-rating-score {
  font-size: 52px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.global-rating-right {
  display: contents;
}

.global-rating-count {
  font-size: 15px;
  color: var(--gray);
  font-weight: 500;
}

.reviews-loading {
  text-align: center;
  padding: 48px 24px;
  background: var(--gray-light);
  border-radius: 12px;
}

.reviews-loading p {
  color: var(--text-secondary);
  font-size: 16px;
}

/* Styles pour les avis individuels (une fois chargés) */
.review-item {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.review-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 18px;
}

.review-author {
  flex: 1;
}

.review-author-name {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.review-date {
  font-size: 14px;
  color: var(--text-secondary);
}

.review-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.star {
  color: #fbbf24;
  font-size: 18px;
}

.star.empty {
  color: #e5e7eb;
}

.review-text {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 15px;
}

.avis-cta {
  text-align: center;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.avis-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Ticker défilant */
.reviews-ticker {
  overflow: hidden;
  width: 100%;
  margin-bottom: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.reviews-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
}

.reviews-ticker:hover .reviews-track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.review-item {
  width: 320px;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .avis {
    padding: 64px 0;
  }

  .reviews-track {
    animation-duration: 20s;
  }

  .review-item {
    width: 280px;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .avis-cta {
    margin-top: 32px;
  }
  
  .avis-cta .btn {
    width: 100%;
  }
}

/* ========================================
   CONTACT
======================================== */
.contact {
  padding: 96px 0;
  background: var(--gray-light);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hidden { display: none; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #cbd5e1;
}

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

/* Contact Info */
.contact-info {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 36px;
  color: white;
}

.contact-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 28px;
  color: white;
}

.info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.info-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.info-item p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
}

/* ========================================
   FOOTER
======================================== */
.footer {
  background: var(--dark);
  color: white;
  padding-top: 56px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-main {
  color: white;
  font-size: 20px;
}
.footer-brand .logo-sub {
  font-size: 13px;
  margin-bottom: 16px;
  display: block;
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  max-width: 260px;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-links ul li a:hover { color: white; }

.footer-bottom {
  text-align: center;
  padding: 20px;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.08); border-top: 1px solid rgba(255,255,255,0.08); }
  .stat-item:nth-child(4) { border-right: none; border-top: 1px solid rgba(255,255,255,0.08); }

  .apropos-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  #nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background:rgb(171, 63, 66);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 20px 24px;
    box-shadow: var(--shadow);
  }
  #nav.open { display: block; }
  #nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  #nav ul li a { color: rgba(255,255,255,0.9); font-size: 16px; }

  .burger { display: flex; }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .badge-year { font-size: 52px; }
  .contact-form { padding: 24px; }
  .service-card { padding: 24px; }
}
