:root {
  --dark: #10243f;
  --navy: #0a172a;
  --primary: #dc2626;
  --primary-dark: #b91c1c;
  --accent: #10b981;
  --accent-dark: #059669;
  --text: #374151;
  --muted: #6b7280;
  --light: #f6f8fb;
  --white: #ffffff;
  --border: #e3e8ef;
  --soft-red: #fee2e2;
  --soft-green: #eaf7f2;
  --shadow: 0 20px 40px rgba(16, 36, 63, 0.06);
  --shadow-lg: 0 30px 60px rgba(16, 36, 63, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
  font-size: 1.35rem;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  transition: transform 0.3s ease;
}

.logo:hover .logo-mark {
  transform: rotate(10deg) scale(1.05);
}

.main-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  color: #3f4d5f;
  font-size: 0.94rem;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.main-nav a:hover {
  color: var(--accent);
}

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

.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border: 0;
  border-radius: 14px;
  background: var(--dark);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  animation: pulseGlow 2.5s infinite;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
  background: var(--white);
  color: var(--dark);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--light);
  border-color: var(--dark);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--accent-dark);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 70px;
  background:
    radial-gradient(circle at right 12%, rgba(220, 38, 38, 0.12), transparent 28%),
    radial-gradient(circle at left 94%, rgba(16, 185, 129, 0.1), transparent 24%),
    var(--white);
}

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

.hero-content {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  color: var(--dark);
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  letter-spacing: -0.03em;
  margin-bottom: 15px;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
}

.hero-content p,
.section-title p,
.easyflash-content p,
.special-card p,
.final-cta p {
  max-width: 680px;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-actions.center {
  justify-content: center;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust-row span {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: #455468;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.3s ease;
}

.trust-row span:hover {
  border-color: var(--accent);
  background: var(--soft-green);
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: 38px;
  box-shadow: var(--shadow-lg);
  background: var(--navy);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-img-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.8s ease;
}

.hero-visual:hover .hero-img-fallback {
  transform: scale(1.03);
}

.floating-card {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.hero-visual:hover .floating-card {
  transform: translateY(-5px);
}

.floating-card strong,
.floating-card span {
  display: block;
}

.floating-card strong {
  color: var(--dark);
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.floating-card span {
  color: var(--muted);
  font-size: 0.94rem;
}

/* Section Partenaires */
.partners-section {
  padding: 40px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.partners-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.partner-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #c3cad5;
  transition: all 0.3s ease;
  cursor: default;
}

.partner-logo:hover {
  color: var(--dark);
  transform: scale(1.05);
}

/* Sections & Gradients */
.section,
.estimator-section {
  padding: 98px 0;
}

.estimator-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--light) 100%);
}

.services-section {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-top: 1px solid rgba(220, 38, 38, 0.1);
  border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.guarantees-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--light) 100%);
}

.fleet-section {
  background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
}

.easyflash-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--light) 100%);
}

.split-section {
  background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
}

.section-title {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-title.left {
  margin-inline: 0;
  text-align: left;
}

/* Estimateur Section */
.estimator-card {
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.estimator-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: end;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--dark);
  font-size: 0.88rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--light);
  color: var(--text);
  outline: none;
  transition: all 0.3s ease;
}

input:focus,
select:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.estimate-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 30px;
  padding: 24px 30px;
  border: 1px solid #d1fae5;
  border-radius: 22px;
  background: #f0fdf4;
}

.estimate-result span,
.estimate-result strong {
  display: block;
}

.estimate-result span {
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.estimate-result strong {
  color: var(--dark);
  font-size: 1.4rem;
  margin-top: 4px;
}

.estimate-result .btn svg {
  margin-right: 8px;
}

/* Lucide SVGs */
.icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2px;
  color: var(--accent-dark);
  transition: transform 0.3s ease;
}

.g-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.5px;
  color: var(--accent-dark);
  transition: transform 0.3s ease;
}

.btn svg,
.site-header svg,
.mobile-actions svg {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
  display: inline-block;
}

/* Cards & Interactions */
.service-card,
.vehicle-card,
.special-card,
.guarantee-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 35px rgba(16, 36, 63, 0.04);
}

.service-card:hover,
.vehicle-card:hover,
.guarantee-card:hover,
.special-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(220, 38, 38, 0.15);
}

/* Garanties Section */
.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.guarantee-card {
  padding: 30px;
  background: var(--white);
}

.g-icon {
  margin-bottom: 18px;
  height: 32px;
  display: flex;
  align-items: center;
}

.guarantee-card:hover .g-icon svg {
  transform: scale(1.15) rotate(-3deg);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.service-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.service-card p {
  flex-grow: 1;
  font-size: 0.94rem;
  margin-bottom: 20px;
}

.service-card.highlight {
  border-color: rgba(16, 185, 129, 0.28);
  background: linear-gradient(180deg, var(--white), #f0fdf4);
}

.service-card.highlight:hover {
  border-color: rgba(16, 185, 129, 0.5);
}

.icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 18px;
  background: var(--soft-red);
  transition: background-color 0.3s ease;
}

.service-card.highlight .icon {
  background: var(--soft-green);
}

.service-card:hover .icon svg {
  transform: scale(1.15) rotate(5deg);
}

.service-card a {
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 0.9rem;
}

/* Fleet & Fleet Grid */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.vehicle-card {
  padding: 28px;
  position: relative;
}

.vehicle-card.featured {
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(220, 38, 38, 0.08);
}

.badge-featured {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--primary);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  z-index: 5;
}

.vehicle-visual {
  position: relative;
  height: 190px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 20px;
  background: #eaf0f7;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.vehicle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.vehicle-card:hover .vehicle-img {
  transform: scale(1.06);
}

.vehicle-card ul,
.check-list {
  padding: 0;
  list-style: none;
}

.vehicle-card li,
.check-list li {
  margin: 10px 0;
  color: var(--text);
  font-size: 0.94rem;
}

.vehicle-card li::before,
.check-list li::before {
  content: "✓";
  margin-right: 9px;
  color: var(--accent);
  font-weight: 800;
}

.price {
  margin: 24px 0 14px;
  color: var(--accent-dark);
  font-size: 1.45rem;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
}

/* Easyflash Section */
.easyflash-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 50px;
  border-radius: 34px;
  background: var(--dark);
  box-shadow: var(--shadow-lg);
}

.easyflash-content h2,
.easyflash-content p {
  color: var(--white);
}

.easyflash-content p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 24px;
}

.easyflash-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.easyflash-points span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.delivery-visual-wrap {
  height: 220px;
  border-radius: 20px;
  margin-top: 24px;
}

.delivery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.easyflash-card:hover .delivery-img {
  transform: scale(1.03);
}

.parcel-form {
  padding: 34px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.parcel-form h3 {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}

.parcel-result {
  margin-top: 20px;
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.parcel-result span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.parcel-result strong {
  font-size: 1.3rem;
  color: var(--accent-dark);
  font-family: 'Space Grotesk', sans-serif;
}

.parcel-form .btn {
  width: 100%;
  margin-top: 18px;
}

.parcel-form .btn svg {
  margin-right: 8px;
}

/* Split Section alternating layout */
.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 70px;
}

.special-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.special-row.reverse {
  grid-template-columns: 0.85fr 1.15fr;
}



.special-card {
  padding: 40px;
  border: 1px solid var(--border);
  background: var(--white);
}

.special-card .check-list {
  margin: 24px 0;
}

.special-img-wrap {
  border-radius: 30px;
  overflow: hidden;
  height: 420px;
  box-shadow: var(--shadow-lg);
  background: var(--navy);
  border: 1px solid var(--border);
}

.special-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.special-row:hover .special-img {
  transform: scale(1.04);
}

/* Final CTA */
.final-cta {
  padding: 100px 0;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(220, 38, 38, 0.15), transparent 32%),
    linear-gradient(135deg, rgba(16, 36, 63, 0.98), rgba(16, 185, 129, 0.95));
}

.final-cta h2 {
  max-width: 880px;
  margin-inline: auto;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.final-cta p {
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 30px;
}

/* Site Footer */
.site-footer {
  padding: 60px 0;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
}

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

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

.site-footer strong,
.site-footer a {
  display: block;
}

.site-footer strong {
  margin-bottom: 18px;
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.site-footer a {
  margin-bottom: 10px;
  transition: color 0.2s;
}

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

/* Mobile Actions */
.mobile-actions {
  display: none;
}

/* RESPONSIVE MEDIA QUERIES */

@media (max-width: 1080px) {
  .main-nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  /* Navigation tiroir mobile */
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy);
    padding: 40px 24px;
    gap: 24px;
    z-index: 99;
    font-size: 1.3rem;
  }

  .main-nav.open a {
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
  }

  .hero-grid,
  .easyflash-card,
  .special-row,
  .special-row.reverse {
    grid-template-columns: 1fr;
  }

  .special-row.reverse .special-img-wrap {
    order: 2;
  }

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

  .estimator-form .btn {
    grid-column: span 2;
  }

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

  .fleet-grid,
  .guarantees-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .special-img-wrap {
    height: 340px;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 22px, 1160px);
  }

  .nav-wrap {
    min-height: 68px;
  }

  .hero {
    padding: 48px 0 36px;
  }

  h1 {
    font-size: 2.3rem;
  }

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

  .hero-visual {
    min-height: 350px;
    border-radius: 28px;
  }

  .trust-row span {
    width: 100%;
  }

  .section,
  .estimator-section {
    padding: 60px 0;
  }

  .estimator-card,
  .parcel-form,
  .special-card {
    padding: 22px;
  }

  .estimator-form,
  .services-grid,
  .fleet-grid,
  .guarantees-grid,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .estimator-form .btn {
    grid-column: auto;
  }

  .estimate-result {
    display: grid;
    padding: 20px;
  }

  .estimate-result button {
    margin-top: 14px;
    width: 100%;
  }

  .easyflash-card {
    padding: 26px;
    border-radius: 28px;
  }

  .mobile-actions {
    position: fixed;
    z-index: 80;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
  }

  .mobile-actions a {
    min-height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--dark);
    color: white;
    font-size: 0.9rem;
    font-weight: 800;
  }

  .mobile-actions a:nth-child(2) {
    background: var(--accent-dark);
  }

  .mobile-actions a:nth-child(3) {
    background: var(--primary);
    color: var(--white);
  }

  .site-footer {
    padding-bottom: 110px;
  }
}
