/* ==========================================================================
   QOMUNIQA — Design Épuré, Multilingue & Dark Mode
   ========================================================================== */

:root {
  --primary: #f15c02;
  --primary-hover: #d84f00;
  --primary-bg-tint: #fff2ed;

  /* Thème Clair (Light) */
  --text-dark: #121316;
  --text-body: #4a4e57;
  --text-muted: #787d87;
  --bg-page: #ffffff;
  --bg-card: #ffffff;
  --bg-light: #f5f7fa;
  --border: #e2e6ed;
  --border-light: #eaedf2;
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.06);

  --bg-surface: #f5f7fa;
  --card-bg: #ffffff;
  --border-color: #e2e6ed;
  --text-title: #121316;
  --text-main: #121316;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
}

/* Thème Sombre (Dark Mode) */
[data-theme="dark"] {
  --text-dark: #f3f4f6;
  --text-body: #9da3af;
  --text-muted: #6b7280;
  --bg-page: #0d0f13;
  --bg-card: #1b1e27;
  --bg-light: #14171f;
  --border: #282d3b;
  --border-light: #202430;
  --primary-bg-tint: rgba(242, 84, 27, 0.14);
  --navbar-bg: rgba(13, 15, 19, 0.95);
  --shadow-subtle: 0 4px 24px rgba(0, 0, 0, 0.45);

  --bg-surface: #14171f;
  --card-bg: #1b1e27;
  --border-color: #282d3b;
  --text-title: #f3f4f6;
  --text-main: #f3f4f6;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.bg-light,
.section-alt {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.accent {
  color: var(--primary);
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   Typographie & Sections
   ========================================================================== */

.section {
  padding: 90px 0;
}

.sub-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 620px;
  line-height: 1.65;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 44px;
  gap: 20px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Boutons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-dark);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-cta-btn {
  margin-left: 10px;
}

@media (max-width: 920px) {
  .nav-cta-btn {
    display: none;
  }
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Navbar, Sélecteur Langue & Dark Mode
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--navbar-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 32px;
  width: auto;
  max-width: 190px;
  display: block;
  object-fit: contain;
}

.footer-logo-img {
  height: 28px;
  margin-bottom: 8px;
}

.logo-dark {
  display: none !important;
}

.logo-light {
  display: block !important;
}

[data-theme="dark"] .logo-light {
  display: none !important;
}

[data-theme="dark"] .logo-dark {
  display: block !important;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1;
  color: var(--text-dark);
}

.brand-baseline {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-top: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 26px);
}

.nav-item {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-body);
  transition: color 0.15s ease;
}

.nav-item:hover,
.nav-item.active {
  color: var(--primary);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Langue FR | EN */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
}

.lang-btn {
  color: var(--text-muted);
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.lang-btn.active {
  color: var(--primary);
  font-weight: 700;
}

.lang-btn:hover {
  color: var(--text-dark);
}

.lang-sep {
  color: var(--border);
  font-size: 0.8rem;
}

/* Bouton Dark Mode */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  background-color: var(--bg-card);
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(15deg);
}

.nav-mobile-btn {
  display: none;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
}

.burger span {
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
}

/* ==========================================================================
   Hero Banner
   ========================================================================== */

.hero {
  padding: 60px 0 80px;
  background-color: var(--bg-page);
  transition: background-color 0.25s ease;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 50px;
}

.hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.hero-text {
  font-size: 1.1rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-image-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-subtle);
}

.hero-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

/* ==========================================================================
   Vos Objectifs
   ========================================================================== */

.carousel-nav {
  display: flex;
  gap: 8px;
}

.arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  background-color: var(--bg-card);
  transition: all 0.15s ease;
}

.arrow-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

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

.goal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.goal-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-subtle);
}

.goal-img-wrap {
  position: relative;
  height: 180px;
}

.goal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.goal-icon {
  position: absolute;
  bottom: 12px;
  left: 14px;
  width: 46px;
  height: 46px;
  background-color: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.goal-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.goal-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.goal-content p {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.goal-tags {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.goal-link {
  align-self: flex-end;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-dark);
  transition: all 0.15s ease;
}

.goal-card:hover .goal-link {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   Nos Services — Présentation 4 par 4 avec Scroll & Animations
   ========================================================================== */

.services-slider-container {
  position: relative;
  overflow: hidden;
  padding: 6px 2px;
}

.services-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 10px 4px 20px;
}

.services-slider::-webkit-scrollbar {
  display: none;
}

.service-card {
  flex: 0 0 calc(25% - 15px);
  min-width: 260px;
  scroll-snap-align: start;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s ease, 
              border-color 0.2s ease;
  position: relative;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.service-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.service-card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-bg-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.service-card:hover .service-card-icon {
  background-color: var(--primary);
  color: #ffffff;
  transform: scale(1.08) rotate(4deg);
}

.service-card-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.service-card-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.service-card-desc {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 22px;
  flex-grow: 1;
}

.service-card-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary);
  transition: transform 0.2s ease, color 0.2s ease;
}

.service-card:hover .service-card-link {
  color: var(--primary-hover);
  transform: translateX(5px);
}

.services-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.srv-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border);
  transition: all 0.25s ease;
  cursor: pointer;
}

.srv-dot:hover {
  background-color: var(--primary-hover);
}

.srv-dot.active {
  width: 28px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
}

/* ==========================================================================
   Nos Réalisations
   ========================================================================== */

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

.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--primary);
}

.project-img-box {
  height: 190px;
}

.project-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-client {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.project-summary {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  align-self: flex-start;
}

.project-btn:hover {
  color: var(--primary-hover);
}

/* ==========================================================================
   Notre Méthode
   ========================================================================== */

.steps-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.step-item {
  flex: 1;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 18px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.step-item:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-subtle);
}

.step-number {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.step-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background-color: var(--primary-bg-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.step-item:hover .step-icon {
  background-color: var(--primary);
  color: #ffffff;
  transform: scale(1.08);
}

.step-item h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.step-item p {
  font-size: 0.84rem;
  color: var(--text-body);
  line-height: 1.55;
}

.step-arrow-divider {
  color: var(--border);
  font-size: 1.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Notre Agence
   ========================================================================== */

.agency-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.agency-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.agency-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.agency-intro {
  font-size: 1.1rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 26px;
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 26px;
}

.mission-vision h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.mission-vision p {
  font-size: 0.84rem;
  color: var(--text-body);
}

.values-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.value-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background-color: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.value-block i {
  color: var(--primary);
  margin-top: 2px;
}

.value-block strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-dark);
}

.value-block span {
  font-size: 0.78rem;
  color: var(--text-body);
}

/* ==========================================================================
   Composant FAQ
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(241, 92, 2, 0.4);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-subtle);
}

.faq-question-btn {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
}

.faq-question-btn i {
  font-size: 0.95rem;
  color: var(--primary);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-question-btn i {
  transform: rotate(180deg);
}

.faq-answer-box {
  display: none;
  padding: 0 24px 22px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-body);
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.faq-item.active .faq-answer-box {
  display: block;
}

/* ==========================================================================
   Bannière Finale
   ========================================================================== */

.banner-dark {
  background-color: #0b0c0e;
  color: #ffffff;
  padding: 70px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.banner-inner {
  text-align: center;
  max-width: 800px;
}

.banner-inner h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
  color: #ffffff;
}

.banner-inner em {
  font-style: italic;
  font-weight: 400;
}

.banner-inner p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: flex-start;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background-color: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.contact-line i {
  font-size: 1.1rem;
  color: var(--primary);
  width: 20px;
}

.contact-line small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.contact-line strong {
  font-size: 0.95rem;
  color: var(--text-dark);
}

.wa-line i {
  color: #25D366;
}

.social-links-block {
  margin-top: 24px;
}

.social-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background-color: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: all 0.15s ease;
}

.social-icons a:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Formulaire */
.contact-form-box {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 34px;
  border: 1px solid var(--border);
}

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

.field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-control,
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  background-color: var(--bg-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(241, 92, 2, 0.15);
}

.field-error {
  display: none;
  font-size: 0.78rem;
  color: #d32f2f;
  margin-top: 4px;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #d32f2f;
  background-color: rgba(211, 47, 47, 0.05);
}

.field.has-error .field-error {
  display: block;
}

.form-success {
  text-align: center;
  padding: 30px 10px;
}

.form-success i {
  font-size: 3rem;
  color: #25D366;
  margin-bottom: 12px;
}

.form-success h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-success p {
  font-size: 0.92rem;
  color: var(--text-body);
  margin-bottom: 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--border);
  background-color: var(--bg-card);
  padding: 60px 0 24px;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  display: block;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-nav strong,
.footer-services strong,
.footer-contact strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-dark);
}

.footer-nav a,
.footer-services span,
.footer-contact span {
  display: block;
  font-size: 0.86rem;
  color: var(--text-body);
  margin-bottom: 8px;
}

.footer-nav a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* WhatsApp Flottant */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.wa-float:hover {
  transform: scale(1.06);
}

/* Modale */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
}

.modal-box {
  position: relative;
  z-index: 2;
  background-color: var(--bg-card);
  color: var(--text-dark);
  border-radius: var(--radius-md);
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 34px;
  border: 1px solid var(--border);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.modal-close:hover {
  color: var(--text-dark);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .cards-carousel,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-flow {
    flex-wrap: wrap;
    gap: 16px;
  }

  .step-arrow-divider {
    display: none;
  }

  .step-item {
    flex: 1 1 calc(33.333% - 16px);
    min-width: 220px;
  }

  .service-card {
    flex: 0 0 calc(50% - 10px);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 920px) {
  .nav-container {
    padding: 12px 18px;
  }

  .logo-img {
    height: 24px;
    max-width: 145px;
  }

  .nav-end {
    gap: 12px;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .hero-grid,
  .agency-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-right {
    order: -1;
  }

  .hero-img {
    height: 320px;
  }

  .burger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .nav-end .nav-cta {
    display: none;
  }

  .nav-mobile-btn {
    display: block;
    width: 100%;
  }

  .nav-mobile-btn .btn {
    width: 100%;
  }

  .service-card {
    flex: 0 0 100%;
    min-width: 240px;
  }

  .steps-flow {
    flex-direction: column;
    gap: 14px;
  }

  .step-item {
    width: 100%;
  }
}

@media (max-width: 580px) {
  .nav-container {
    padding: 10px 14px;
  }

  .logo-img {
    height: 21px;
    max-width: 125px;
  }

  .cards-carousel,
  .projects-grid {
    grid-template-columns: 1fr;
  }

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

  .mission-vision,
  .values-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .contact-form-box {
    padding: 20px;
  }
}
