/* =========================================================
   M.V.S.E infra IT — Feuille de styles complète
   ========================================================= */

:root {
  --bg: #e7e4de;
  --bg-2: #dfdbd4;
  --bg-3: #d6d1ca;
  --bg-4: #f3f1ec;

  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --surface-soft: rgba(255, 255, 255, 0.45);

  --text: #1f2328;
  --muted: #5f665f;
  --muted-2: #7a8078;

  --gold: #b69259;
  --gold-soft: #c6a870;

  --line: rgba(182, 146, 89, 0.2);
  --line-soft: rgba(31, 35, 40, 0.08);
  --line-strong: rgba(31, 35, 40, 0.12);

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 30px 70px rgba(0, 0, 0, 0.12);

  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1200px;
}

/* ========================= Reset ========================= */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(182, 146, 89, 0.1), transparent 18%),
    radial-gradient(circle at left bottom, rgba(255, 255, 255, 0.45), transparent 24%),
    linear-gradient(180deg, #ece9e3 0%, #ddd8d1 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: none;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* ========================= Skip Link ========================= */

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 12px 20px;
  background: linear-gradient(180deg, #e0c38f 0%, #c8a56a 100%);
  color: #111;
  border-radius: 0 0 12px 12px;
  z-index: 9999;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: 0;
}

/* ========================= Scroll Progress ========================= */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  width: 0%;
  z-index: 1001;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* ========================= Fond animé ========================= */

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.bg-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.5;
  animation: floatGlow 14s ease-in-out infinite;
}

.glow-1 {
  width: 340px;
  height: 340px;
  top: -60px;
  right: -60px;
  background: rgba(182, 146, 89, 0.14);
}

.glow-2 {
  width: 280px;
  height: 280px;
  bottom: 5%;
  left: -60px;
  background: rgba(255, 255, 255, 0.28);
  animation-delay: -5s;
}

.bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(31, 35, 40, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 35, 40, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 96%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 96%);
}

@keyframes floatGlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -16px, 0) scale(1.05); }
}

/* ========================= Header ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 242, 236, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(31, 35, 40, 0.06);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(239, 235, 228, 0.92);
  border-bottom: 1px solid rgba(182, 146, 89, 0.16);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  width: 220px;
  max-width: 46vw;
  height: auto;
  object-fit: contain;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.main-nav a {
  position: relative;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: #4d524f;
  transition: color 0.25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transition: width 0.25s ease;
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav a[aria-current="page"] {
  color: var(--text);
}

.main-nav a[aria-current="page"]::after {
  width: 100%;
}

/* Hamburger mobile */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-direction: column;
  transition: 0.25s ease;
}

.nav-toggle:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 3px 0;
  border-radius: 999px;
  transition: 0.25s ease;
}

/* ========================= Hero ========================= */

.hero {
  padding: 84px 0 74px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 58% 10%, rgba(255, 255, 255, 0.28) 0%, transparent 20%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.32));
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 900;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 760px;
  text-wrap: balance;
}

.lead {
  font-size: 18px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

/* ========================= Boutons ========================= */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.28) 50%, transparent 100%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #111;
  background: linear-gradient(180deg, #dfc18a 0%, #c8a56a 100%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
}

.btn-primary:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  border-color: rgba(182, 146, 89, 0.35);
  background: rgba(255, 255, 255, 0.6);
}

/* ========================= Hero Points ========================= */

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.point {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.45) 100%);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.point:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.56) 100%);
}

.point strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  margin-bottom: 6px;
}

.point span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ========================= Hero Card ========================= */

.hero-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 245, 240, 0.92) 100%);
  border: 1px solid rgba(182, 146, 89, 0.18);
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  transform-style: preserve-3d;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(182, 146, 89, 0.1), transparent 26%),
    linear-gradient(135deg, transparent 60%, rgba(255, 255, 255, 0.28) 100%);
  pointer-events: none;
}

.hero-card > * {
  position: relative;
}

.card-kicker {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 14px;
}

.hero-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--text);
}

.hero-card > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 24px;
}

.card-list {
  display: grid;
  gap: 14px;
}

.card-item {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.card-item:hover {
  transform: translateY(-3px);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.card-item strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text);
}

.card-item span {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.card-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.45);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ========================= Hero Animation ========================= */

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-grid > *:first-child {
  animation: heroFadeUp 0.8s ease 0.1s both;
}

.hero-card {
  animation: heroFadeUp 0.8s ease 0.35s both;
}

/* ========================= Séparateur doré ========================= */

.gold-divider {
  width: 0;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gold-divider.visible {
  width: 120px;
}

/* ========================= Sections ========================= */

.section {
  padding: 88px 0;
}

.section-head {
  max-width: 900px;
  margin: 0 auto 44px;
  text-align: center;
}

.tag {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 900;
}

.section-head h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

/* ========================= Services ========================= */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(250, 248, 244, 0.55) 100%);
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.service:hover {
  transform: translateY(-6px);
  border-color: var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

/* Shimmer doré au hover */
.service::after,
.panel::after,
.logo-group::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(182, 146, 89, 0.06) 45%,
    rgba(182, 146, 89, 0.12) 50%,
    rgba(182, 146, 89, 0.06) 55%,
    transparent 60%
  );
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service:hover::after,
.panel:hover::after,
.logo-group:hover::after {
  opacity: 1;
  animation: shimmer 1.5s ease forwards;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.service-num {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #e0c38f 0%, #c8a56a 100%);
  color: #111;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(182, 146, 89, 0.22);
}

.service h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 12px;
}

.service > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 18px;
}

.service ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.service li {
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

/* ========================= Logos / Solutions ========================= */

.logo-groups {
  display: grid;
  gap: 22px;
}

.logo-group {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(249, 246, 241, 0.58) 100%);
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.logo-group:hover {
  border-color: var(--line);
  transform: translateY(-3px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.08);
}

.logo-group h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 22px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.logo-tile {
  min-height: 170px;
  border-radius: 24px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.36) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 26px 22px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.5s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, opacity 0.6s ease;
}

/* État initial pour animation stagger (activé par JS) */
.js .logo-tile {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
}

.logo-tile.visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

.logo-tile img {
  width: 100%;
  max-width: 150px;
  height: 52px;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: saturate(0.96) contrast(1.02);
}

.logo-tile span {
  font-size: 15px;
  line-height: 1.35;
  color: var(--muted);
  font-weight: 700;
}

.logo-tile:hover {
  transform: translateY(-5px) scale(1);
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.52) 100%);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
}

.logos-note {
  margin-top: 18px;
  text-align: center;
  color: var(--muted-2);
  font-size: 14px;
}

/* ========================= Split / Panels ========================= */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 28px;
}

.extra-split {
  margin-top: 26px;
}

.panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(249, 246, 241, 0.58) 100%);
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.panel:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.08);
}

/* ========================= Panel Header (icône + titre) ========================= */

.panel-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.panel-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(182, 146, 89, 0.12), rgba(182, 146, 89, 0.04));
  border: 1px solid var(--line);
  font-size: 22px;
  line-height: 1;
}

.panel-header h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 6px;
}

.panel-header p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 0;
}

/* Panel highlight (accent doré subtil) */
.panel-highlight {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.74) 0%,
    rgba(248, 244, 236, 0.65) 100%
  );
  border-color: rgba(182, 146, 89, 0.13);
}

.panel-highlight:hover {
  border-color: rgba(182, 146, 89, 0.28);
}

/* ========================= Steps (Timeline visuelle) ========================= */

.steps {
  list-style: none;
  display: grid;
  gap: 0;
  padding: 0;
}

.step {
  display: flex;
  gap: 16px;
  align-items: stretch;
  padding: 0;
  border-bottom: none;
}

.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 44px;
}

.step-index {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #e0c38f 0%, #c8a56a 100%);
  color: #111;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(182, 146, 89, 0.22);
  position: relative;
  z-index: 2;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step:hover .step-index {
  transform: scale(1.1);
  box-shadow: 0 8px 22px rgba(182, 146, 89, 0.32);
}

.step-line {
  display: block;
  width: 2px;
  flex: 1;
  min-height: 18px;
  background: linear-gradient(180deg, var(--gold-soft), rgba(182, 146, 89, 0.12));
  border-radius: 999px;
  margin-top: 4px;
}

.step-content {
  flex: 1;
  padding: 8px 0 26px;
  border-bottom: 1px solid var(--line-soft);
}

.step:last-child .step-content {
  border-bottom: none;
  padding-bottom: 4px;
}

.step-content strong {
  display: block;
  color: var(--text);
  font-size: 17px;
  margin-bottom: 4px;
}

.step-content span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

/* ========================= Elegant List ========================= */

.elegant-list {
  list-style: none;
  display: grid;
  gap: 12px;
  padding: 0;
}

.elegant-list li {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 16px 18px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.elegant-list li:hover {
  transform: translateX(4px);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.elegant-list li strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 3px;
}

.elegant-list li span {
  display: block;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  font-weight: 400;
}

/* ========================= CTA ========================= */

/* ========================= Contact premium ========================= */

.contact-layout {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.contact-form-wrap,
.contact-side-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56) 0%, rgba(255, 255, 255, 0.4) 100%);
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.contact-form {
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.contact-form label {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(31, 35, 40, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(182, 146, 89, 0.45);
  box-shadow: 0 0 0 4px rgba(182, 146, 89, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

.contact-form textarea {
  resize: vertical;
  min-height: 180px;
}

.form-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-start;
}

.form-hidden-trap {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.contact-side-card {
  text-align: left;
}

.contact-side-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 900;
}

.contact-side-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.contact-action-list {
  display: grid;
  gap: 12px;
}

.contact-reveal-btn,
.contact-action-list a {
  width: 100%;
}

@media (max-width: 980px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap,
  .contact-side-card {
    padding: 20px;
    border-radius: 22px;
  }

  .form-actions .btn {
    width: 100%;
  }
}

/* ========================= Footer ========================= */

.site-footer {
  padding: 28px 0 42px;
  color: var(--muted);
}

.footer-main {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
}

.footer-brand img {
  width: 150px;
  height: auto;
  object-fit: contain;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--text);
}

/* ========================= Révélations au scroll ========================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ========================= Word Reveal (Hero) ========================= */

.js .word-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.word-reveal.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ========================= Accessibilité : Reduced Motion ========================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .word-reveal,
  .logo-tile,
  .gold-divider {
    opacity: 1 !important;
    transform: none !important;
  }

  .gold-divider {
    width: 120px !important;
  }
}

/* ========================= Pages légales ========================= */

.legal-hero {
  padding: 96px 0 34px;
  position: relative;
  z-index: 1;
}

.legal-hero-inner {
  max-width: 860px;
}

.legal-section {
  position: relative;
  z-index: 1;
  padding-top: 10px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.legal-aside {
  position: sticky;
  top: 110px;
}

.legal-nav-card,
.legal-card,
.legal-block {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(249, 246, 241, 0.58) 100%);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.legal-nav-card {
  border-radius: 24px;
  padding: 20px 18px;
}

.legal-nav {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.legal-nav a {
  display: block;
  color: var(--muted);
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 14px;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.legal-nav a:hover,
.legal-nav a:focus {
  color: var(--text);
  background: rgba(255, 255, 255, 0.48);
  border-color: var(--line);
  transform: translateX(4px);
}

.legal-content {
  display: grid;
  gap: 18px;
}

.legal-card {
  border-radius: 28px;
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.legal-card:hover {
  transform: translateY(-3px);
  border-color: var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
}

.legal-card h2 {
  margin: 10px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
}

.legal-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(182, 146, 89, 0.35);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.legal-card a:hover,
.legal-card a:focus {
  color: #111;
  border-color: var(--gold);
}

.legal-block {
  border-radius: 18px;
  padding: 16px 18px 4px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.42);
}

.legal-list {
  margin-top: 8px;
  padding-left: 18px;
}

.legal-list li {
  color: var(--text);
  font-weight: 700;
  margin-bottom: 6px;
}

/* ========================= Responsive ========================= */

@media (max-width: 1100px) {
  .hero-grid,
  .services,
  .split,
  .hero-points {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 70px;
  }

  .hero-card {
    max-width: 820px;
  }
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    background: rgba(248, 245, 239, 0.98);
    border: 1px solid var(--line-soft);
    border-radius: 22px;
    padding: 18px;
    box-shadow: var(--shadow-strong);
  }

  .main-nav.open {
    display: block;
    animation: menuFade 0.25s ease;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  @keyframes menuFade {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 980px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-aside {
    position: relative;
    top: 0;
  }

  .legal-nav {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .brand img {
    width: 170px;
    max-width: 52vw;
  }

  .hero {
    padding: 58px 0 54px;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 62px);
    line-height: 0.95;
  }

  .lead {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .hero-card,
  .service,
  .panel,
  .logo-group,
  .cta-box,
  .legal-card {
    padding: 24px;
  }

  .panel-header {
    flex-direction: column;
    gap: 12px;
  }

  .panel-header h4 {
    font-size: 26px;
  }

  .logo-group h4,
  .service h4 {
    font-size: 26px;
  }

  .hero-card h2 {
    font-size: 32px;
  }

  .cta-box h3 {
    font-size: 32px;
  }

  .step-marker {
    width: 38px;
  }

  .step-index {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .step-content {
    padding: 6px 0 20px;
  }

  .footer-main {
    align-items: flex-start;
  }

  .legal-hero {
    padding: 74px 0 26px;
  }

  .legal-nav-card {
    padding: 18px 16px;
  }

  .legal-card h2 {
    font-size: 30px;
  }
}

@media (max-width: 640px) {
  .legal-nav {
    grid-template-columns: 1fr;
  }

  .legal-card {
    padding: 20px;
    border-radius: 20px;
  }

  .legal-nav-card {
    border-radius: 20px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

  .nav {
    padding: 14px 0;
  }

  .brand img {
    width: 150px;
  }

  .eyebrow,
  .mini-badge,
  .main-nav a,
  .tag {
    letter-spacing: 0.12em;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-card h2 {
    font-size: 28px;
  }

  .section-head h3 {
    font-size: 32px;
  }

  .logo-group h4,
  .service h4,
  .cta-box h3 {
    font-size: 28px;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-card {
    width: 100%;
  }

  .contact-card .btn {
    width: 100%;
  }
}

.legal-reveal-btn {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.legal-reveal-btn + .legal-reveal-btn {
  margin-top: 10px;
}

.legal-page button.btn,
.legal-page a.btn {
  margin-top: 8px;
}