:root {
  --bg: #ffffff;
  --bg-alt: #f3f4f6;
  --card: #ffffff;
  --accent: #ff3355;
  --accent-soft: rgba(255, 51, 85, 0.18);
  --accent-gradient: linear-gradient(135deg, #ff3355, #ff7a29);
  --text: #0f172a;
  --muted: #6b7280;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --radius-lg: 18px;
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.18);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --duration: 0.22s;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --border-subtle: rgba(148, 163, 184, 0.25);
    --card: #1e293b;
  }
  .cookie-banner {
    background: #1e293b;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
  }
  .footer {
    background: var(--bg-alt);
  }
  .section#about .about-grid h2,
  .section#about .about-grid p,
  .section#about .about-grid p strong,
  .section#about .about-number,
  .section#about .about-label {
    color: var(--text);
  }
  .section#about .about-label {
    color: var(--muted);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition-duration: 0.01ms !important; }
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 100;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.88rem;
  font-weight: 600;
  transform: translateY(-120%);
  transition: transform var(--duration) var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3, .section-header h2, .hero-text h1 {
  font-family: "DM Sans", "Poppins", sans-serif;
  font-weight: 700;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Décalage du scroll pour les ancres (header fixe) */
#simulators,
#pricing,
#events,
#about,
#realisations,
#testimonials,
#partners,
#contact {
  scroll-margin-top: 4.5rem;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(248, 113, 113, 0.35);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.logo-fallback {
  display: none;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.logo-fallback.show {
  display: inline-block;
}

.logo-tagline {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.logo-title {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.logo-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.nav a {
  position: relative;
  color: var(--muted);
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.35rem;
  height: 2px;
  border-radius: 999px;
  background-image: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--duration) var(--ease-out);
}

.nav a:hover {
  color: var(--text);
  background: rgba(248, 113, 113, 0.08);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 0.55rem 1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background-image: var(--accent-gradient);
  color: #0b1120;
  font-weight: 600;
  box-shadow: 0 0 22px rgba(248, 113, 113, 0.7);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(248, 113, 113, 0.5);
}

.nav-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  line-height: 1.15;
  text-align: center;
}

.nav-cta-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-cta-hint {
  font-size: 0.62rem;
  font-weight: 500;
  opacity: 0.92;
  letter-spacing: 0.03em;
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.burger span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger span + span {
  margin-top: 4px;
}

.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

/* Fond : prototype RSS (image 1/4) en transparence */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./assets/fond-rss.png");
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.58) 0%, rgba(248, 250, 252, 0.52) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 3.2vw, 3rem);
  line-height: 1.18;
  margin: 0 0 1rem;
  text-align: left;
  /* Répartit les retours à la ligne plus équitablement (sans « rivières » du justify) */
  text-wrap: balance;
}

.hero-text p {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 34rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.7rem 0 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease),
    background var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.btn-primary {
  background-image: var(--accent-gradient);
  box-shadow: 0 18px 40px rgba(248, 113, 113, 0.5);
  color: #0b1120;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.86rem;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 60px rgba(248, 113, 113, 0.75);
}

.btn-ghost {
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--muted);
  background: #ffffff;
}

.btn-ghost:hover {
  border-color: rgba(248, 113, 113, 0.8);
  color: var(--text);
}

.btn-full {
  width: 100%;
}

.btn-stack {
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  min-height: auto;
  text-align: center;
}

.btn-stack .btn-label {
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.btn-stack .btn-hint {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0.92;
  line-height: 1.2;
}

.btn-stack.btn-ghost .btn-label {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-badges span {
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  background: var(--bg-alt);
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: radial-gradient(circle at 0 0, rgba(248, 113, 113, 0.04), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(56, 189, 248, 0.05), transparent 55%),
    rgba(255, 255, 255, 0.42);
  border-radius: 32px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
  padding: 1px;
  transition: box-shadow var(--duration) var(--ease);
}

.hero-card:hover {
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
}

.hero-card-gradient {
  position: absolute;
  inset: 0;
  background-image: conic-gradient(
    from 180deg at 50% 50%,
    rgba(248, 113, 113, 0.9),
    rgba(56, 189, 248, 0.9),
    rgba(251, 191, 36, 0.9),
    rgba(248, 113, 113, 0.9)
  );
  opacity: 0.12;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-card-content {
  position: relative;
  padding: 1.7rem 1.5rem 1.7rem;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.65), rgba(249, 250, 251, 0.42) 55%);
  border-radius: inherit;
}

.hero-card-content h2 {
  margin: 0 0 0.7rem;
  font-size: 1.2rem;
}

.hero-card-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-card-content li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0;
}

.hero-card-content li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background-image: var(--accent-gradient);
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.7);
}

.section {
  padding: 3.2rem 0;
}

/* Fonds en transparence pour les sections (images 2, 3, 4) */
.section#simulators {
  position: relative;
  overflow: hidden;
}
.section#simulators::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./assets/fond-porsche.png");
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  z-index: 0;
}
.section#simulators::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(248, 250, 252, 0.48) 100%);
  z-index: 1;
}
.section#simulators .container {
  position: relative;
  z-index: 2;
}

.section#pricing {
  position: relative;
  overflow: hidden;
  /* Respiration visuelle avant « À propos » (sinon les deux fonds voiture se touchent) */
  margin-bottom: 4.25rem;
}
.section#pricing::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./assets/fond-red-prototype.png");
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  z-index: 0;
}
.section#pricing::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(248, 250, 252, 0.48) 100%);
  z-index: 1;
}
.section#pricing .container {
  position: relative;
  z-index: 2;
}

.section#about {
  position: relative;
  overflow: hidden;
}
.section#about::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./assets/fond-hyper-p1.png");
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  z-index: 0;
}
.section#about::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(248, 250, 252, 0.48) 100%);
  z-index: 1;
}
.section#about .container {
  position: relative;
  z-index: 2;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 2.2rem;
}

.section-header h2 {
  margin: 0 0 0.6rem;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 0 0, rgba(30, 64, 175, 0.08), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(248, 113, 113, 0.08), transparent 60%),
    #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.3rem;
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.card:hover {
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
}

/* Transparence des blocs simulateurs (comme les formules tarifs) */
.section#simulators .card {
  border-color: rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at 0 0, rgba(30, 64, 175, 0.06), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(248, 113, 113, 0.06), transparent 60%),
    rgba(255, 255, 255, 0.58);
}
.section#simulators .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card-tag {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.card-list li {
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1.1rem;
}

.card-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #f97373;
}

.card-note {
  margin: 0;
  font-size: 0.85rem;
  color: #4b5563;
}

.card-note--highlight {
  margin-top: 0.5rem;
  padding: 0.5rem 0.65rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #0f172a;
  background: linear-gradient(135deg, rgba(255, 51, 85, 0.12), rgba(255, 122, 41, 0.08));
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

.chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
}

.chip {
  padding: 0.5rem 1.15rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #ffffff;
  font-size: 0.9rem;
  color: #111827;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease),
    transform var(--duration) var(--ease), border-color var(--duration) var(--ease);
  cursor: default;
}

.chip:hover {
  background: #fff7f7;
  border-color: rgba(248, 113, 113, 0.8);
  box-shadow: 0 14px 30px rgba(248, 113, 113, 0.14);
  transform: translateY(-1px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at 0 0, rgba(30, 64, 175, 0.06), transparent 60%),
    radial-gradient(circle at 100% 0, rgba(248, 113, 113, 0.06), transparent 60%),
    rgba(255, 255, 255, 0.58);
  padding: 1.4rem 1.3rem;
  font-size: 0.92rem;
  color: var(--muted);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.pricing-card:hover {
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.1);
}

.pricing-header h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: #111827;
}

.price {
  margin: 0 0 0.9rem;
  font-weight: 600;
  color: #111827;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-card li {
  padding: 0.28rem 0;
  position: relative;
  padding-left: 1.1rem;
}

.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4ade80;
  font-size: 0.78rem;
}

.pricing-note {
  margin-top: 1.3rem;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: center;
}

.about-grid h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.section#about .about-grid h2 {
  color: #0f172a;
}

.about-grid p {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.section#about .about-grid p {
  color: #1e293b;
}

.section#about .about-grid p strong {
  color: #0f172a;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.about-item {
  border-radius: 12px;
  padding: 0.45rem 0.75rem;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  background: #ffffff;
}

/* Transparence des blocs À propos (voiture en fond) */
.section#about .about-item {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(148, 163, 184, 0.5);
}

.about-number {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
}

.section#about .about-number {
  color: #0f172a;
}

.about-label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.3;
}

.section#about .about-label {
  color: #475569;
}

.partners-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5rem;
  max-width: none;
  margin: 0;
  overflow-x: auto;
  padding: 0 0 0.5rem 0;
}

.partners-grid::-webkit-scrollbar {
  display: none;
}

.partners-grid {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  min-width: 140px;
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.partner-item:hover {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.partner-logo {
  height: 48px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

.partner-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: #111827;
  text-align: center;
}

.card-testimonial {
  background: radial-gradient(circle at 10% 0, rgba(30, 64, 175, 0.08), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(248, 113, 113, 0.12), transparent 60%),
    #ffffff;
}

/* Réalisations : galerie horizontale auto-défilante */
.realisations-scroll {
  overflow-x: hidden;
  overflow-y: hidden;
  position: relative;
  margin-top: 1rem;
}
.realisations-track {
  display: flex;
  gap: 1.25rem;
  padding: 0.25rem 1.5rem 0.5rem;
  width: max-content;
  min-width: 100%;
  box-sizing: border-box;
}
.realisations-item {
  flex: 0 0 auto;
  width: min(320px, 80vw);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  transform: translateZ(0);
  content-visibility: auto;
  contain-intrinsic-size: 320px 260px;
  display: flex;
  flex-direction: column;
  background: var(--card);
}
.realisations-img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform var(--duration) var(--ease);
  flex-shrink: 0;
}
.realisations-caption {
  margin: 0;
  padding: 0.5rem 0.75rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  background: var(--card);
}
.realisations-item:hover .realisations-img {
  transform: scale(1.03);
}

.testimonial-text {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
}

.testimonial-author {
  margin: 0;
  font-size: 0.83rem;
  color: var(--muted);
}

/* Défilement horizontal des avis clients */
.testimonials-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  margin-top: 1rem;
}
.testimonials-scroll::-webkit-scrollbar {
  display: none;
}
.testimonials-track {
  display: flex;
  gap: 1.25rem;
  padding: 0.25rem 1.5rem 1rem;
  width: max-content;
  min-width: 100%;
  box-sizing: border-box;
}
#testimonials .card-testimonial {
  flex: 0 0 auto;
  width: min(340px, 85vw);
  min-height: 0;
  scroll-snap-align: start;
}

.reviews-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}
.reviews-cta-text {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.review-form {
  max-width: 560px;
}
.review-form .form-field {
  margin-bottom: 1rem;
}
.review-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.review-form button[type="submit"] {
  margin-top: 0.25rem;
}
@media (max-width: 640px) {
  .review-form-row {
    grid-template-columns: 1fr;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-grid h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.contact-grid p {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.contact-infos {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-infos li {
  padding: 0.3rem 0;
}

.contact-form {
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at 0 0, rgba(30, 64, 175, 0.1), transparent 60%),
    #ffffff;
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.7rem;
}

.form-field label {
  font-size: 0.82rem;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #ffffff;
  color: #111827;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.form-field textarea {
  min-height: 100px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: #f97373;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.7);
  background: #ffffff;
}

.form-field--hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.form-field select {
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #ffffff;
  color: #111827;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.form-note {
  margin: 0.8rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1.3rem 0 1.5rem;
  margin-top: 1.5rem;
  background: #f9fafb;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin: 0 0 0.5rem;
  font-size: 0.86rem;
  color: #111827;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--muted);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.footer-social-icon:hover {
  color: var(--accent);
  background: rgba(255, 51, 85, 0.1);
}

.footer-social-icon svg {
  width: 22px;
  height: 22px;
}

.footer-meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-meta a {
  color: var(--accent);
}

/* Bandeau cookies */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem;
  background: var(--text);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.35s var(--ease-out);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
}

.cookie-banner a {
  color: #93c5fd;
  text-decoration: underline;
}

/* Animation au scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.98);
  color: var(--muted);
  font-size: 0.82rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  z-index: 50;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.toast.toast-error {
  background: rgba(185, 28, 28, 0.95);
  border-color: rgba(248, 113, 113, 0.6);
  color: #fff;
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-visual {
    order: -1;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding-inline: 0.25rem;
  }

  .logo-img {
    height: 26px;
  }

  .nav {
    position: fixed;
    inset: 3.2rem 1rem auto 1rem;
    border-radius: 18px;
    padding: 0.9rem 1rem;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
    flex-direction: column;
    gap: 0.8rem;
    font-size: 0.95rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.16s ease-out, transform 0.16s ease-out;
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0.6rem 0.8rem;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .burger {
    display: inline-flex;
  }

  .hero-badges {
    gap: 0.4rem;
  }

  .hero-badges span {
    font-size: 0.76rem;
  }

  .cards-grid,
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  /* ——— Lisibilité smartphone : corps de texte + titres + formulaires ——— */
  body {
    font-size: 1.0625rem;
    line-height: 1.62;
  }

  .container {
    padding-inline: 1.25rem;
  }

  .section {
    padding: 3.6rem 0;
  }

  .section-header {
    margin-bottom: 1.85rem;
  }

  .section-header h2 {
    font-size: clamp(1.5rem, 5.2vw, 1.85rem);
    line-height: 1.22;
  }

  .section-header p {
    font-size: 1.05rem;
    line-height: 1.58;
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-text h1 {
    font-size: clamp(1.85rem, 6.8vw, 2.5rem);
    line-height: 1.14;
  }

  .hero-text p {
    font-size: 1.05rem;
    line-height: 1.68;
    max-width: none;
  }

  .hero-badges span {
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .nav {
    font-size: 1.02rem;
  }

  .card h3 {
    font-size: 1.18rem;
  }

  .card-tag,
  .card-list {
    font-size: 0.96rem;
  }

  .card-list li {
    line-height: 1.45;
  }

  .card-note,
  .card-note--highlight {
    font-size: 0.93rem;
  }

  .card-note--highlight {
    line-height: 1.45;
  }

  .pricing-card {
    font-size: 1.02rem;
    line-height: 1.58;
  }

  .pricing-header h3 {
    font-size: 1.12rem;
  }

  .pricing-note {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .chip {
    font-size: 0.96rem;
  }

  .about-grid p {
    font-size: 1.04rem;
    line-height: 1.66;
  }

  .about-number {
    font-size: 1.02rem;
  }

  .about-label {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .realisations-caption {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .testimonial-text {
    font-size: 1.03rem;
    line-height: 1.58;
  }

  .testimonial-author {
    font-size: 0.9rem;
  }

  .reviews-cta-text {
    font-size: 1.03rem;
    line-height: 1.55;
  }

  .contact-grid p {
    font-size: 1.02rem;
    line-height: 1.62;
  }

  .contact-infos {
    font-size: 1rem;
    line-height: 1.55;
  }

  .form-field label {
    font-size: 0.9rem;
  }

  .form-field input,
  .form-field textarea,
  .form-field select {
    font-size: 1.02rem;
  }

  .form-note {
    font-size: 0.85rem;
    line-height: 1.45;
  }

  .partner-name {
    font-size: 0.88rem;
  }

  .footer-brand {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .footer-meta {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .cookie-banner p {
    font-size: 1rem;
    line-height: 1.48;
  }

  .toast {
    font-size: 0.93rem;
    line-height: 1.4;
    max-width: calc(100vw - 2rem);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 3rem;
  }

  .hero-text h1 {
    font-size: clamp(1.72rem, 8.5vw, 2.1rem);
    line-height: 1.12;
  }

  .container {
    padding-inline: 1.15rem;
  }

  .card,
  .pricing-card,
  .contact-form {
    padding-inline: 1.15rem;
  }

  .section {
    padding: 3.25rem 0;
  }
}
