/* --- Variables --- */
:root,
[data-theme="red"] {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-primary: #dc2626;
  --color-primary-hover: #b91c1c;
  --color-border: #e5e7eb;
  --color-accent-bg: #fef2f2;
  --color-dark: #060b14;
  --color-circuit: #dc2626;
  --color-circuit-glow: #f87171;
  --color-accent-soft: #fee2e2;
  --color-primary-deep: #991b1b;
  --color-primary-darker: #7f1d1d;
  --color-primary-bright: #ef4444;
  --rgb-primary: 220, 38, 38;
  --rgb-primary-soft: 239, 68, 68;
  --rgb-primary-light: 248, 113, 113;
  --rgb-primary-dark: 185, 28, 28;
  --rgb-primary-pale: 252, 165, 165;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --font: "Inter", system-ui, sans-serif;
  --max-width: 1120px;
}

[data-theme="blue"] {
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-accent-bg: #eff6ff;
  --color-circuit: #2563eb;
  --color-circuit-glow: #60a5fa;
  --color-accent-soft: #eef2ff;
  --color-primary-deep: #1e40af;
  --color-primary-darker: #1e3a8a;
  --color-primary-bright: #3b82f6;
  --rgb-primary: 37, 99, 235;
  --rgb-primary-soft: 59, 130, 246;
  --rgb-primary-light: 96, 165, 250;
  --rgb-primary-dark: 29, 78, 216;
  --rgb-primary-pale: 147, 197, 253;
}

html.theme-transition,
html.theme-transition * {
  transition:
    color 0.85s ease,
    background-color 0.85s ease,
    border-color 0.85s ease,
    box-shadow 0.85s ease,
    fill 0.85s ease,
    stroke 0.85s ease;
}

/* --- Reset & base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

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

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* --- Header & nav --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 11, 20, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(var(--rgb-primary), 0.2);
}

.header .logo {
  color: var(--color-circuit-glow);
}

.header .nav-toggle span {
  background: #fff;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
  perspective: 1000px;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

.logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.logo-hint {
  position: absolute;
  left: calc(100% + 0.75rem);
  top: 50%;
  z-index: 110;
  width: max-content;
  max-width: 11rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(var(--rgb-primary-light), 0.35);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) scale(0.94);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.logo-hint::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  width: 10px;
  height: 10px;
  background: rgba(15, 23, 42, 0.88);
  border-left: 1px solid rgba(var(--rgb-primary-light), 0.35);
  border-bottom: 1px solid rgba(var(--rgb-primary-light), 0.35);
  transform: translateY(-50%) rotate(45deg);
}

.logo-hint.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.75rem;
  transform-style: preserve-3d;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.nav-link-3d {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid rgba(var(--rgb-primary-light), 0.35);
  background: linear-gradient(160deg, rgba(var(--rgb-primary-soft), 0.35) 0%, rgba(15, 23, 42, 0.85) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 3px 0 rgba(var(--rgb-primary-dark), 0.45),
    0 10px 20px rgba(0, 0, 0, 0.28);
  transform-style: preserve-3d;
  transition: transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
  will-change: transform;
}

.nav-link-3d::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, transparent 55%);
  pointer-events: none;
}

.nav-link-3d:hover {
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 5px 0 rgba(var(--rgb-primary-dark), 0.5),
    0 14px 26px rgba(var(--rgb-primary), 0.35);
}

.nav-link-3d-accent:hover {
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-deep) 100%);
}

.nav-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

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

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

.nav-cta.nav-link-3d-accent {
  background: linear-gradient(160deg, var(--color-primary-bright) 0%, var(--color-primary-hover) 100%);
  border: 1px solid rgba(var(--rgb-primary-pale), 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 4px 0 var(--color-primary-darker),
    0 12px 24px rgba(var(--rgb-primary), 0.45);
}

.nav-cta.nav-link-3d-accent:hover {
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-deep) 100%);
}

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

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

/* --- Splash (accueil visuel) --- */
.splash {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-top: clamp(5rem, 12vh, 8rem);
  background: var(--color-dark);
  overflow: hidden;
}

.circuit-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.circuit-bg .tracks {
  stroke: var(--color-circuit);
}

.circuit-bg .tracks-alt {
  stroke: var(--color-primary-bright);
}

.circuit-bg .nodes {
  fill: var(--color-circuit-glow);
}

.circuit-bg #track-glow stop:first-child,
.circuit-bg #track-glow stop:last-child {
  stop-color: var(--color-primary-deep);
}

.circuit-bg #track-glow stop:nth-child(2) {
  stop-color: var(--color-primary-bright);
}

.splash-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(70vw, 600px);
  height: min(70vw, 600px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(var(--rgb-primary), 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.splash-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  transform: translateY(clamp(1.5rem, 4vh, 3rem));
}

.logo-xl {
  font-size: clamp(5rem, 18vw, 12rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  color: #fff;
  text-shadow:
    0 0 40px rgba(var(--rgb-primary-soft), 0.6),
    0 0 80px rgba(var(--rgb-primary), 0.4),
    0 0 120px rgba(var(--rgb-primary), 0.2);
  margin-bottom: 1rem;
}

.splash-tagline {
  font-size: clamp(0.875rem, 2vw, 1.125rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(var(--rgb-primary-light), 0.8);
  margin-bottom: 2rem;
}

.splash-hours {
  max-width: 360px;
  margin: 0 auto 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(6, 11, 20, 0.6);
  border: 1px solid rgba(var(--rgb-primary), 0.35);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.hours-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-circuit-glow);
  margin-bottom: 0.875rem;
}

.hours-list {
  list-style: none;
  margin-bottom: 0.875rem;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  padding-block: 0.25rem;
}

.hours-list li span:last-child {
  color: rgba(var(--rgb-primary-light), 0.95);
  font-weight: 500;
}

.hours-online,
.hours-address,
.hours-phone {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  text-align: center;
}

.hours-phone {
  margin-top: 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.hours-phone a {
  color: var(--color-circuit-glow);
  text-decoration: none;
}

.hours-phone a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hours-online {
  margin-bottom: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(var(--rgb-primary), 0.25);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(var(--rgb-primary-light), 0.5);
  padding: 0.75rem 2rem;
}

.btn-outline:hover {
  background: rgba(var(--rgb-primary), 0.2);
  border-color: var(--color-circuit-glow);
  box-shadow: 0 0 24px rgba(var(--rgb-primary), 0.3);
}

/* Impulsions sur les pistes */
.pulse {
  stroke-dasharray: 80 900;
  stroke-dashoffset: 980;
  animation: pulse-travel 4s linear infinite;
}

.pulse-2 { animation-delay: 0.8s; }
.pulse-3 { animation-delay: 1.6s; }
.pulse-4 { animation-delay: 2.4s; }
.pulse-5 { animation-delay: 3.2s; }

@keyframes pulse-travel {
  to {
    stroke-dashoffset: -980;
  }
}

.nodes circle {
  animation: node-blink 3s ease-in-out infinite;
}

.nodes circle:nth-child(odd) {
  animation-delay: 1.5s;
}

@keyframes node-blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* --- Sections --- */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

/* --- Cards (services 3D) --- */
.section-services {
  background: linear-gradient(180deg, var(--color-accent-soft) 0%, var(--color-bg) 100%);
  perspective: 1400px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  transform-style: preserve-3d;
}

.card {
  position: relative;
  transform-style: preserve-3d;
  background: linear-gradient(160deg, #ffffff 0%, #f5f8ff 55%, #e8efff 100%);
  border: 1px solid rgba(var(--rgb-primary), 0.18);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 0 rgba(var(--rgb-primary-dark), 0.12),
    0 18px 36px -14px rgba(var(--rgb-primary), 0.35),
    0 8px 20px -10px rgba(15, 23, 42, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 255, 255, 0) 45%,
    rgba(var(--rgb-primary), 0.06) 100%
  );
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -10px;
  height: 12px;
  border-radius: 50%;
  background: rgba(var(--rgb-primary), 0.22);
  filter: blur(10px);
  transform: translateZ(-20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.card:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 0 rgba(var(--rgb-primary-dark), 0.14),
    0 28px 48px -16px rgba(var(--rgb-primary), 0.45),
    0 16px 32px -12px rgba(15, 23, 42, 0.2);
}

.card:hover::after {
  opacity: 0.85;
  transform: translateZ(-28px) scale(1.08);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--color-primary-bright) 0%, var(--color-primary-hover) 100%);
  border-radius: 10px;
  margin-bottom: 1.25rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 0 var(--color-primary-darker),
    0 8px 18px rgba(var(--rgb-primary), 0.4);
  transform: translateZ(16px);
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transform: translateZ(10px);
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  transform: translateZ(6px);
}

/* --- About --- */
.about {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  max-width: 52ch;
}

.about-stats {
  display: flex;
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat span {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* --- Contact form --- */
.contact {
  max-width: 480px;
  margin-inline: auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

.form-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row select {
  cursor: pointer;
  appearance: none;
  background-color: var(--color-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23dc2626' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

[data-theme="blue"] .form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232563eb' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--rgb-primary), 0.15);
}

.form-note {
  font-size: 0.875rem;
  color: #059669;
  text-align: center;
}

.form-note-error {
  color: var(--color-primary);
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* --- Avis --- */
.section-reviews {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-accent-bg) 100%);
}

.reviews-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  margin-bottom: 2.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.reviews-score-value {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.reviews-stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  font-size: 1.25rem;
  color: #fbbf24;
  margin-bottom: 0.5rem;
}

.reviews-count {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.reviews-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.review-author {
  font-weight: 600;
  font-size: 0.9375rem;
}

.review-card-stars {
  color: #fbbf24;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.review-text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.review-source {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.review-form-block {
  max-width: 560px;
  margin-inline: auto;
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.review-form-block h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}

.review-form-block > p {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.star-rating {
  display: flex;
  gap: 0.25rem;
}

.star-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #d1d5db;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.15s, transform 0.15s;
}

.star-btn:hover,
.star-btn.active {
  color: #fbbf24;
}

.star-btn:hover {
  transform: scale(1.1);
}

.page-avis {
  padding-top: 6rem;
}

.page-breadcrumb {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.page-breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.page-breadcrumb a:hover {
  text-decoration: underline;
}

.page-colis .section-header {
  max-width: 640px;
  margin-inline: auto;
}

.colis-content {
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.colis-intro p {
  margin: 0;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.colis-intro p + p {
  margin-top: 0.75rem;
}

.colis-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  counter-reset: colis-step;
}

.colis-steps li {
  counter-increment: colis-step;
  padding: 1.25rem 1.25rem 1.25rem 3.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  position: relative;
}

.colis-steps li::before {
  content: counter(colis-step);
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
  border-radius: 50%;
}

.colis-steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.colis-steps p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.colis-address h2 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
}

.colis-address-line {
  margin: 0;
  line-height: 1.6;
}

.colis-address-line + .colis-address-line {
  margin-top: 0.35rem;
}

.colis-address-line a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.colis-address-line a:hover {
  text-decoration: underline;
}

.colis-address-note {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.colis-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  padding-top: 0.5rem;
}

.reviews-grid-all {
  margin-bottom: 2rem;
}

.reviews-google-note {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.reviews-google-note a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.reviews-google-note a:hover {
  text-decoration: underline;
}

.review-form-google {
  max-width: 520px;
}

.review-form-cta {
  text-align: center;
}

.review-form-cta .btn {
  margin-top: 0.5rem;
}

.review-form-back {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9375rem;
}

.review-form-back a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.review-form-back a:hover {
  text-decoration: underline;
}

.star-rating-google {
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.star-rating-google .star-btn {
  font-size: 2.75rem;
  color: #d1d5db;
  transition: color 0.15s, transform 0.15s;
}

.star-rating-google .star-btn.active,
.star-rating-google .star-btn.is-preview {
  color: #fbbf24;
}

.star-rating-label {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  min-height: 1.5rem;
  margin-bottom: 0.25rem;
}

.btn-full {
  width: 100%;
}

/* --- Footer --- */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.site-credit {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  margin: 0;
  padding: 0.4rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.42);
  background: rgba(6, 11, 20, 0.28);
  border: 1px solid rgba(var(--rgb-primary), 0.14);
  border-radius: 8px;
  backdrop-filter: blur(6px);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.site-credit:hover {
  color: rgba(255, 255, 255, 0.62);
  background: rgba(6, 11, 20, 0.42);
  border-color: rgba(var(--rgb-primary), 0.28);
}

/* --- Responsive --- */
@keyframes navOverlayIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes navPanelIn {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes navItemPop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 992px) {
  .header {
    overflow: visible;
  }

  .nav-toggle {
    display: flex;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.58);
    backdrop-filter: blur(3px);
    z-index: 90;
    animation: navOverlayIn 0.28s ease;
  }

  .nav-menu {
    position: fixed;
    top: 4.75rem;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    gap: 0.7rem;
    margin-left: 0;
    padding: 1rem;
    background: rgba(10, 18, 32, 0.97);
    border: 1px solid rgba(var(--rgb-primary-light), 0.35);
    border-radius: 18px;
    box-shadow:
      0 24px 60px rgba(0, 0, 0, 0.45),
      0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-18px) scale(0.94);
    transform-origin: top center;
    pointer-events: none;
    z-index: 120;
    transition:
      opacity 0.3s ease,
      transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.3s ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    animation: navPanelIn 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0.7rem;
  }

  .nav-links .nav-link-3d,
  .nav-menu .nav-cta {
    width: 100%;
    justify-content: center;
    opacity: 0;
    transform: translateY(16px) scale(0.9);
  }

  .nav-menu.is-open .nav-links li:nth-child(1) .nav-link-3d {
    animation: navItemPop 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
  }

  .nav-menu.is-open .nav-links li:nth-child(2) .nav-link-3d {
    animation: navItemPop 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.11s both;
  }

  .nav-menu.is-open .nav-links li:nth-child(3) .nav-link-3d {
    animation: navItemPop 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
  }

  .nav-menu.is-open .nav-links li:nth-child(4) .nav-link-3d {
    animation: navItemPop 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.21s both;
  }

  .nav-menu.is-open .nav-cta {
    animation: navItemPop 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
  }

  .nav {
    position: relative;
    flex-wrap: nowrap;
  }
}

@media (max-width: 768px) {
  .logo-xl {
    letter-spacing: 0.08em;
  }

  .logo-hint {
    left: 0;
    top: calc(100% + 0.55rem);
    max-width: 9.5rem;
    transform: translateY(0) scale(0.94);
  }

  .logo-hint.is-visible {
    transform: translateY(0) scale(1);
  }

  .logo-hint::before {
    left: 1.25rem;
    top: -5px;
    transform: rotate(135deg);
  }

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

  .about-stats {
    justify-content: center;
  }
}

/* --- Easter egg : fer à souder --- */
.logo.is-charging {
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
  animation: logo-heat 0.6s ease-in-out infinite alternate;
}

@keyframes logo-heat {
  from { color: var(--color-circuit-glow); }
  to { color: #fcd34d; }
}

body.solder-mode,
body.solder-mode a,
body.solder-mode button,
body.solder-mode input,
body.solder-mode textarea {
  cursor: none;
}

.solder-fx {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  width: 56px;
  height: 84px;
}

.solder-fx.is-active {
  display: block;
}

.solder-iron {
  display: block;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
  transform: rotate(-28deg);
  transform-origin: 28px 75.6px;
  animation: iron-wobble 0.35s ease-in-out infinite alternate;
}

.iron-hot {
  opacity: 0.75;
  animation: tip-glow 0.25s ease-in-out infinite alternate;
}

@keyframes iron-wobble {
  from { transform: rotate(-26deg); }
  to { transform: rotate(-30deg); }
}

@keyframes tip-glow {
  from { filter: drop-shadow(0 0 3px rgba(249, 115, 22, 0.45)); opacity: 0.65; }
  to { filter: drop-shadow(0 0 8px rgba(var(--rgb-primary-soft), 0.55)); opacity: 0.85; }
}

.solder-bead {
  position: absolute;
  left: 22px;
  top: 69px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(254, 240, 138, 0.85), rgba(245, 158, 11, 0.55) 55%, rgba(180, 83, 9, 0.35));
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.55);
  animation: bead-pulse 0.4s ease-in-out infinite alternate;
}

@keyframes bead-pulse {
  from { transform: scale(0.85); opacity: 0.85; }
  to { transform: scale(1.15); opacity: 1; }
}

.solder-spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fde68a;
  box-shadow: 0 0 6px #fbbf24;
}

.solder-spark-1 {
  left: 20px;
  top: 62px;
  animation: spark-fly 0.5s ease-out infinite;
}

.solder-spark-2 {
  left: 32px;
  top: 60px;
  animation: spark-fly 0.55s ease-out infinite 0.12s;
}

.solder-spark-3 {
  left: 26px;
  top: 56px;
  animation: spark-fly 0.48s ease-out infinite 0.24s;
}

@keyframes spark-fly {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(-6px, -14px) scale(0); opacity: 0; }
}

.solder-smoke {
  position: absolute;
  left: 22px;
  top: 52px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
  filter: blur(4px);
  animation: smoke-rise 1s ease-out infinite;
}

@keyframes smoke-rise {
  0% { transform: translateY(0) scale(0.6); opacity: 0.5; }
  100% { transform: translateY(-18px) scale(1.2); opacity: 0; }
}
