/* ==========================================================================
   metriqBIM — Feuille de style principale
   ========================================================================== */

:root {
  --color-header: #272f3d;
  --color-navy: #1b2431;
  --color-navy-light: #2a3444;
  --color-blue: #2563a8;
  --color-cyan: #22c8dd;
  --color-cyan-dark: #14a8bc;
  --color-gray-900: #1b2431;
  --color-gray-700: #4b5563;
  --color-gray-500: #6b7684;
  --color-gray-200: #e3e8ee;
  --color-gray-100: #f4f6f9;
  --color-white: #ffffff;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container-width: 1180px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 2px 10px rgba(11, 31, 51, 0.06);
  --shadow-md: 0 12px 30px rgba(11, 31, 51, 0.1);
  --shadow-lg: 0 20px 50px rgba(11, 31, 51, 0.16);

  --transition-fast: 0.2s ease;
  --transition-medium: 0.35s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-gray-900);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
  color: var(--color-gray-700);
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

img, svg {
  max-width: 100%;
  display: block;
}

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-cyan-dark);
  margin-bottom: 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-blue) 100%);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border-color: var(--color-navy);
  color: var(--color-navy);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn-full {
  width: 100%;
}

.btn-pill {
  border-radius: 9999px;
}

/* ==========================================================================
   En-tête / Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--color-cyan);
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
  color: var(--color-white);
  flex-shrink: 0;
}

.logo-mark svg {
  width: 18px;
  height: 18px;
}

.main-nav ul {
  display: flex;
  gap: 26px;
}

.nav-link {
  font-weight: 500;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  position: relative;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--color-cyan);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-white);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-cta {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.hero {
  position: relative;
  padding: 100px 0 70px;
  overflow: hidden;
  background: var(--color-navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(34, 200, 221, 0.2), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(37, 99, 168, 0.28), transparent 50%),
    linear-gradient(160deg, rgba(15, 22, 33, 0.6) 0%, rgba(27, 36, 49, 0.52) 100%),
    url("images/banner-hero.jpg");
  background-size: cover, cover, cover, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: block;
}

/* ==========================================================================
   Animations d'entrée (Hero) et de révélation au scroll (toutes sections)
   ========================================================================== */

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-anim {
  opacity: 0;
  animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-anim-1 { animation-delay: 0.05s; }
.hero-anim-2 { animation-delay: 0.18s; }
.hero-anim-3 { animation-delay: 0.32s; }
.hero-anim-4 { animation-delay: 0.46s; }
.hero-anim-5 { animation-delay: 0.4s; }

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.in-view {
  transition-delay: calc(var(--reveal-index, 0) * 90ms);
}

@media (prefers-reduced-motion: reduce) {
  .hero-anim,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.hero-content {
  max-width: 760px;
}

.hero .eyebrow {
  color: var(--color-cyan);
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero h1 .highlight {
  background: linear-gradient(120deg, var(--color-cyan) 0%, #6fd8ff 50%, var(--color-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 32px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--color-white);
}

.hero .btn-outline:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

/* ==========================================================================
   Bandeau défilant des services (marquee)
   ========================================================================== */

.services-marquee {
  overflow: hidden;
  background: var(--color-cyan);
  padding: 16px 0;
  position: relative;
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
  will-change: transform;
}

.services-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-navy);
  white-space: nowrap;
}

.marquee-sep {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(11, 31, 51, 0.4);
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

@media (max-width: 768px) {
  .marquee-item {
    font-size: 0.78rem;
    padding: 0 14px;
  }
}

/* ==========================================================================
   Chiffres clés
   ========================================================================== */

.stats-section {
  background: var(--color-navy);
  padding: 28px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}

.stat-block {
  text-align: center;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(34, 200, 221, 0.12), rgba(37, 99, 168, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-block-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.1;
  background: linear-gradient(135deg, var(--color-cyan), #7fe3ef);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
  white-space: nowrap;
}

.stat-block-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
}

/* ==========================================================================
   Sections génériques
   ========================================================================== */

section {
  padding: 100px 0;
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.section-subtitle {
  font-size: 1.05rem;
}

/* ==========================================================================
   À propos
   ========================================================================== */

.about {
  background: var(--color-gray-100);
}

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

.about-visual {
  position: relative;
  height: 420px;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  display: flex;
  flex-direction: column;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  background: var(--color-navy);
  box-shadow: var(--shadow-lg);
}

.about-badge .stat-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-cyan);
}

.about-badge .stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

.about-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

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

.about-list li {
  position: relative;
  padding-left: 28px;
  color: var(--color-gray-700);
  font-size: 0.98rem;
}

.about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
}

/* ==========================================================================
   Services
   ========================================================================== */

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

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-gray-100);
  color: var(--color-cyan-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

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

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.94rem;
  margin-bottom: 0;
}

/* ==========================================================================
   Processus
   ========================================================================== */

.process {
  background: var(--color-navy);
}

.process .section-heading .eyebrow {
  color: var(--color-cyan);
}

.process .section-heading h2 {
  color: var(--color-white);
}

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

.process-step {
  padding: 32px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-cyan);
  display: block;
  margin-bottom: 12px;
}

.process-step h3 {
  color: var(--color-white);
  font-size: 1.05rem;
}

.process-step p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  margin-bottom: 0;
}

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

.realisations {
  background: var(--color-gray-100);
}

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

.project-card {
  display: flex;
  flex-direction: column;
  height: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--color-gray-900);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.project-media {
  position: relative;
  flex: 0 0 65%;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-medium);
}

.project-card:hover .project-media img {
  transform: scale(1.08);
}

.project-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 20px 24px;
  background: var(--color-gray-900);
}

.project-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-cyan);
}

.project-title {
  color: var(--color-white);
  font-size: 1.05rem;
  margin: 0;
}

.project-desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  margin: 0;
}

/* ==========================================================================
   Vidéo de démonstration
   ========================================================================== */

.video-embed {
  margin-top: 64px;
  text-align: center;
}

.video-embed h3 {
  font-size: 1.4rem;
}

.video-embed-text {
  max-width: 560px;
  margin: 0 auto 28px;
}

.video-responsive {
  position: relative;
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding-top: 47.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-navy);
}

.video-responsive iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

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

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

.faq-item {
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  background: var(--color-white);
  overflow: hidden;
}

.faq-heading {
  margin: 0;
}

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

.faq-question:hover {
  color: var(--color-cyan-dark);
}

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--color-cyan-dark);
  transform: translate(-50%, -50%);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.faq-icon::before {
  width: 14px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 14px;
}

.faq-item.open .faq-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium) ease;
}

.faq-answer p {
  padding: 0 24px 20px;
  margin: 0;
  font-size: 0.95rem;
}

.faq-item.open .faq-question {
  color: var(--color-cyan-dark);
}

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

.contact {
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(34, 200, 221, 0.18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(37, 99, 168, 0.25), transparent 50%);
  pointer-events: none;
}

.contact .container {
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.contact .eyebrow {
  color: var(--color-cyan);
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  color: var(--color-white);
}

.contact-info > p {
  color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   Correction du Badge de réponse (Entouré en rouge)
   ========================================================================== */

.response-badge {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.06); /* Fond blanc subtil et moderne */
  border: 1px solid rgba(34, 200, 221, 0.25); /* Bordure cyan douce */
}

.response-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(34, 200, 221, 0.15);
  color: var(--color-cyan); /* Utilise votre variable cyan lumineuse */
}

.response-badge-icon svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Forcer les textes en blanc et blanc opale pour le contraste */
.response-badge strong {
  display: block;
  color: var(--color-white) !important; /* Blanc pur pour le titre */
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.response-badge span {
  display: block;
  color: rgba(255, 255, 255, 0.75); /* Blanc à 75% pour la description */
  font-size: 0.86rem;
  line-height: 1.4;
}


.contact-upload-cta {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.5;
}

.contact-upload-cta strong {
  color: var(--color-cyan);
}

.contact-details {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-cyan);
}

.contact-icon-badge svg {
  width: 18px;
  height: 18px;
}

.contact-details a,
.contact-details span:last-child {
  font-weight: 600;
  color: var(--color-white);
}

.contact-details a {
  transition: color var(--transition-fast);
}

.contact-details a:hover {
  color: var(--color-cyan);
}

.contact-socials {
  display: flex;
  gap: 14px;
  margin-top: 32px;
}

.contact-socials a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-white);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.contact-socials a:hover {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
}

.contact-socials svg {
  width: 16px;
  height: 16px;
}

.contact-form-wrapper {
  position: relative;
}

.contact-form {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}

.contact-form.form-hidden {
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ==========================================================================
   Message de remerciement (après envoi réussi du formulaire)
   ========================================================================== */

@keyframes formSuccessReveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.form-success {
  text-align: center;
  padding: 56px 40px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
  animation: formSuccessReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.form-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-blue) 100%);
  color: var(--color-white);
}

.form-success-icon svg {
  width: 26px;
  height: 26px;
}

.form-success h3 {
  color: var(--color-navy);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.form-success p {
  color: var(--color-gray-700);
  font-size: 1rem;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .contact-form,
  .form-success {
    animation: none !important;
    transition: none !important;
  }
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--color-navy);
}

.optional-tag {
  font-weight: 400;
  color: var(--color-gray-500);
  font-size: 0.82rem;
}

.file-drop {
  position: relative;
}

.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-drop-label {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--color-gray-200);
  background: var(--color-gray-100);
  color: var(--color-gray-700);
  font-size: 0.88rem;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.file-drop-label svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-cyan-dark);
}

.file-drop:hover .file-drop-label,
.file-drop input[type="file"]:focus + .file-drop-label {
  border-color: var(--color-cyan);
  background: rgba(34, 200, 221, 0.06);
}

.file-drop-label.has-file {
  border-style: solid;
  border-color: var(--color-cyan);
  background: rgba(34, 200, 221, 0.08);
  color: var(--color-navy);
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-gray-200);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-gray-900);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-gray-500);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7684' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  padding-right: 44px;
}

.form-group select option {
  background: var(--color-white);
  color: var(--color-gray-900);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-cyan);
  box-shadow: 0 0 0 4px rgba(34, 200, 221, 0.15);
}

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

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border-color: #e5484d;
}

.error-message {
  display: block;
  min-height: 18px;
  font-size: 0.8rem;
  color: #e5484d;
  margin-top: 6px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  margin-top: 18px;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 20px;
}

.form-status.success {
  color: #1a9e6a;
}

.form-status.error {
  color: #e5484d;
}

/* ==========================================================================
   Pied de page
   ========================================================================== */

.site-footer {
  background: var(--color-gray-900);
  padding: 40px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 4px;
}

.footer-logo span {
  color: var(--color-cyan);
}

.footer-brand p:last-child {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0;
}

.footer-socials {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.footer-socials a:hover {
  color: var(--color-white);
  border-color: var(--color-cyan);
  background: rgba(255, 255, 255, 0.08);
}

.footer-socials svg {
  width: 16px;
  height: 16px;
}

.footer-copy {
  text-align: right;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

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

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual {
    height: 320px;
    max-width: 480px;
    margin: 0 auto;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
  }

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

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    transform: translateY(-150%);
    opacity: 0;
    transition: transform var(--transition-medium), opacity var(--transition-medium);
    z-index: 999;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }

  .nav-cta {
    display: none;
  }

  .main-nav .nav-link {
    color: var(--color-gray-700);
  }

  .main-nav .nav-link:hover {
    color: var(--color-navy);
  }

  .burger {
    display: flex;
  }

  .hero {
    padding: 80px 0 50px;
  }

  section {
    padding: 70px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

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

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

  .contact-form {
    padding: 28px;
  }

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

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .project-card {
    height: 380px;
  }

  .stat-block-number {
    font-size: 1.4rem;
  }
}
