/* ==========================================================================
   Ehrhard Alsa Serrure, serrurerie-ehrhard.fr
   Marine profond + doré, blanc dominant
   ========================================================================== */

:root {
  --navy: #060d1a;
  --navy-2: #14263e;
  --ink: #16273c;
  --text: #57606d;
  --gold: #bf9e4d;
  --gold-dark: #a5873c;
  --gold-soft: #f7f2e6;
  --paper: #ffffff;
  --soft: #f5f6f8;
  --line: #e6e8ec;
  --radius: 8px;
  --container: 1180px;
  --shadow-sm: 0 1px 2px rgba(13, 28, 48, 0.06);
  --shadow-md: 0 10px 28px rgba(13, 28, 48, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
}

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

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

[hidden] {
  display: none !important;
}

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

.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-block {
  width: 100%;
}

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

.btn-gold:hover {
  background: var(--gold-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Barre supérieure
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12.5px;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 38px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.topbar-brand {
  font-weight: 500;
  color: #fff;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.topbar-links a {
  transition: color 0.2s ease;
}

.topbar-links a:hover {
  color: #fff;
}

.topbar-account {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  color: #fff;
}

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}

.header.is-scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 86px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-key {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.logo-name {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.logo-name2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.logo-tag {
  margin-top: 4px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #97a0ac;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-chevron {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  color: var(--gold-dark);
}

.nav-item {
  position: relative;
}

.nav-drop {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 230px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 14px 6px 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 60;
}

.nav-drop::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-item:hover .nav-drop,
.nav-item:focus-within .nav-drop {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-drop-title {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  padding: 0 14px 8px;
}

.nav-drop a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-drop a .icon {
  color: #b6bcc5;
  transition: color 0.2s ease;
}

.nav-drop a:hover {
  background: var(--soft);
  color: var(--gold-dark);
}

.nav-drop a:hover .icon {
  color: var(--gold-dark);
}

.header-phone {
  text-align: right;
  flex-shrink: 0;
}

.header-phone-num {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  transition: color 0.2s ease;
}

.header-phone-num .icon {
  width: 19px;
  height: 19px;
  color: var(--gold);
}

.header-phone-num:hover {
  color: var(--gold-dark);
}

.header-hours {
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--text);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

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

/* --------------------------------------------------------------------------
   Bandeau principal
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background:
    linear-gradient(rgba(6, 13, 26, 0.85), rgba(6, 13, 26, 0.85)),
    var(--navy) url("assets/facade.jpg") center / cover no-repeat;
  color: #fff;
  padding: 96px 0 150px;
}

.hero-brand {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}

.hero-title {
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

.gold-txt {
  color: var(--gold);
}

.hero-sub {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 44px;
}


.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero-inner:has(.hero-visual.has-img) {
  grid-template-columns: 1.3fr 1fr;
}

/* Visuel animé du bandeau (adapté de Uiverse.io par Codewithvinay, MIT) */

.hero-visual {
  display: none;
  justify-content: center;
}

.hero-visual.has-img {
  display: flex;
}

.hero-box {
  position: relative;
  width: 300px;
  height: 370px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 1;
  transition: 0.5s;
}

.hero-box::before,
.hero-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 70px;
  width: 55%;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(315deg, var(--gold), #7d6229);
  transform: skewX(15deg);
  transition: 0.5s;
}

.hero-box::after {
  filter: blur(30px);
  opacity: 0.55;
}

.hero-box:hover::before,
.hero-box:hover::after {
  transform: skewX(0deg) scaleX(1.3);
}

.hero-box span {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.hero-box span::before,
.hero-box span::after {
  content: "";
  position: absolute;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
  animation: hero-float 2.6s ease-in-out infinite;
}

.hero-box span::before {
  top: 8px;
  left: 26px;
  width: 55px;
  height: 55px;
}

.hero-box span::after {
  bottom: 14px;
  right: 16px;
  width: 45px;
  height: 45px;
  animation-delay: -1.3s;
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(8px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero-artisan {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 115%;
  max-width: none;
  z-index: 3;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 0;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.hero-trust .icon {
  width: 26px;
  height: 26px;
  color: var(--gold);
}

.hero-trust li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  margin-left: 28px;
  padding-left: 28px;
}

/* --------------------------------------------------------------------------
   Commander une clé
   -------------------------------------------------------------------------- */

.commander {
  position: relative;
  z-index: 2;
  background: var(--paper);
  border-radius: 26px 26px 0 0;
  margin-top: -58px;
  padding: 64px 0 72px;
}

.sec-head {
  text-align: center;
  margin-bottom: 44px;
}

.sec-title {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sec-sub {
  font-size: 15.5px;
  margin-top: 12px;
}

/* Assistant de commande */

.commander-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 48px;
  align-items: stretch;
  max-width: 1060px;
  margin: 0 auto;
}

.wizard {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.wizard-head {
  padding: 26px 34px 0;
}

.wizard-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.wizard-count {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.wizard-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.wizard-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.wizard-bar span {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.35s ease;
}

.wizard-body {
  flex-grow: 1;
  padding: 30px 34px 4px;
  min-height: 218px;
}

.wz-step {
  display: none;
}

.wz-step.is-active {
  display: block;
  animation: wz-next 0.34s ease both;
}

.wizard-body.is-back .wz-step.is-active {
  animation-name: wz-prev;
}

@keyframes wz-next {
  from {
    opacity: 0;
    transform: translateX(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes wz-prev {
  from {
    opacity: 0;
    transform: translateX(-26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.wz-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

.wz-error {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #b3403a;
}

.wz-req {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

/* Adresse de livraison */

.wz-address {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  animation: wz-next 0.34s ease both;
}

.wz-address-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.wz-address-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 10px;
}

.wz-pickup-row {
  grid-template-columns: 1fr 1fr;
}

/* Menu déroulant personnalisé */

.select-custom {
  position: relative;
}

.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
}

.select-value[data-placeholder="true"] {
  color: #9aa1ab;
}

.select-chevron {
  width: 16px;
  height: 16px;
  color: var(--text);
  transition: transform 0.25s ease, color 0.2s ease;
}

.select-custom.is-open .select-trigger {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(191, 158, 77, 0.15);
}

.select-custom.is-open .select-chevron {
  transform: rotate(180deg);
  color: var(--gold-dark);
}

.select-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(6, 13, 26, 0.18);
  padding: 6px;
  max-height: 264px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.select-custom.is-open .select-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.select-panel li[role="option"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.select-panel li[role="option"]:hover,
.select-panel li.is-focused {
  background: var(--gold-soft);
  color: var(--gold-dark);
}

.select-panel li[role="option"] .icon {
  width: 15px;
  height: 15px;
  color: var(--gold-dark);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.select-panel li.is-selected {
  color: var(--gold-dark);
  font-weight: 600;
}

.select-panel li.is-selected .icon {
  opacity: 1;
}

.select-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 4px;
}

.wz-recap {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.wz-recap li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.wz-recap-key {
  color: var(--text);
}

.wz-recap-val {
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

.wz-recap-price {
  border-bottom: none;
}

.wz-recap-price .wz-recap-key {
  font-weight: 600;
  color: var(--ink);
}

.wz-recap-price .wz-recap-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-dark);
}

/* Recherche de clé en base */

.ref-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ref-row .order-input {
  flex: 1;
}

.ref-search {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ref-search:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.ref-search .icon {
  width: 19px;
  height: 19px;
}

.key-result {
  margin-top: 16px;
}

.key-searching {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.spinner {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.key-found {
  padding: 18px 20px;
  border: 1.5px solid var(--gold);
  border-radius: 10px;
  animation: wz-next 0.3s ease both;
}

.key-found-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.key-found-head .icon {
  width: 26px;
  height: 26px;
  color: var(--gold-dark);
  margin-top: 2px;
}

.key-found-img {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff;
}

.key-found-name {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.key-found-meta {
  font-size: 12.5px;
}

.key-found-price {
  margin-left: auto;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-dark);
  white-space: nowrap;
}

.key-found-desc {
  font-size: 13.5px;
  margin-top: 10px;
}

.key-found-delay {
  font-size: 12.5px;
  margin-top: 4px;
}

.key-found-question {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 14px;
}

.key-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.key-found-actions .btn {
  padding: 11px 18px;
  font-size: 12px;
}

.key-notfound,
.key-declined {
  padding: 14px 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.6;
  animation: wz-next 0.3s ease both;
}

.key-notfound strong,
.key-declined strong {
  color: var(--ink);
}

/* Demande de devis */

.wz-quote .order-input {
  margin-bottom: 4px;
}

.wz-quote .btn {
  margin-top: 12px;
}

.wz-sent {
  text-align: center;
  padding: 6px 0 4px;
  animation: wz-next 0.34s ease both;
}

.wz-sent .paid-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
}

.wz-sent-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.wz-sent-text {
  font-size: 14px;
}

.wz-sent-text a {
  color: var(--gold-dark);
  font-weight: 600;
}

/* Paiement Stripe */

.wz-pay .btn {
  gap: 10px;
}

.wz-pay-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.55;
  margin-top: 12px;
}

.wz-pay-note .icon {
  color: var(--gold-dark);
  margin-top: 2px;
}

.wz-pay .order-notice {
  margin-top: 14px;
}

.wizard-foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 34px 30px;
}

.wizard-foot .btn-gold {
  margin-left: auto;
}

.order-input {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.order-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(191, 158, 77, 0.15);
}

select.order-input:invalid {
  color: #9aa1ab;
}

.order-hint {
  font-size: 12px;
  margin-top: 10px;
}

.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 108px;
  padding: 18px;
  background: var(--soft);
  border: 1.5px dashed #c4cad3;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.upload-zone:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.upload-zone .icon {
  width: 24px;
  height: 24px;
  color: currentColor;
}

/* Choix livraison ou retrait */

.order-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.order-choice + .order-choice {
  margin-top: 12px;
}

.order-choice:hover {
  border-color: var(--gold);
}

.order-choice.is-checked {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.order-choice input {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  accent-color: var(--gold-dark);
  flex-shrink: 0;
}

.order-choice .icon {
  width: 26px;
  height: 26px;
  color: var(--navy);
  margin-top: 1px;
}

.order-choice-text {
  line-height: 1.4;
}

.order-choice-title {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.order-choice-sub {
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.order-notice {
  font-size: 12.5px;
  line-height: 1.55;
  padding: 12px 14px;
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  color: var(--ink);
}

.order-notice a {
  color: var(--gold-dark);
  font-weight: 600;
}

/* Colonne de réassurance */

.commander-aside {
  padding-top: 4px;
}

.commander-aside-title {
  font-size: 16.5px;
  margin-bottom: 20px;
}

.trust-list {
  display: grid;
  gap: 18px;
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.trust-list .icon {
  width: 25px;
  height: 25px;
  color: var(--navy);
  margin-top: 2px;
}

.trust-list span {
  display: flex;
  flex-direction: column;
  font-size: 12.5px;
  line-height: 1.55;
}

.trust-list strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.commander-note {
  margin-top: 26px;
  padding: 18px 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.6;
}

.commander-note p + p {
  margin-top: 4px;
}

.commander-note strong {
  color: var(--ink);
}

.commander-note a {
  color: var(--gold-dark);
  font-weight: 600;
}

.commander-note a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Sections génériques
   -------------------------------------------------------------------------- */

.section {
  padding: 84px 0;
}

.section-soft {
  background: var(--soft);
}

/* --------------------------------------------------------------------------
   Nos services
   -------------------------------------------------------------------------- */

/* Barre de recherche (adaptée de Uiverse.io par ahmedyasserdev, MIT) */

.services-search {
  position: relative;
  max-width: 440px;
  margin: -12px auto 40px;
}

.search-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 13px 46px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input::placeholder {
  color: #9aa1ab;
}

.search-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(191, 158, 77, 0.15);
}

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.services-search.has-text .search-clear {
  display: inline-flex;
}

.search-clear:hover {
  color: var(--gold-dark);
  background: var(--gold-soft);
}

.search-clear .icon {
  width: 15px;
  height: 15px;
}

.search-empty {
  text-align: center;
  font-size: 14.5px;
  margin: -8px 0 32px;
}

.search-empty a {
  color: var(--gold-dark);
  font-weight: 600;
}

.search-empty a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    transform 0.25s ease;
}

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

.service-icon {
  width: 28px;
  height: 28px;
  color: var(--navy);
  stroke-width: 1.6;
  margin-bottom: 14px;
}

.service-title {
  font-size: 15.5px;
  margin-bottom: 8px;
}

.service-text {
  font-size: 12.5px;
  line-height: 1.6;
  flex-grow: 1;
}

.service-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-dark);
  transition: color 0.2s ease;
}

.service-more:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Fenêtre de détail des services */

.service-dialog {
  width: min(560px, calc(100vw - 40px));
  border: none;
  border-radius: 12px;
  padding: 42px 40px 36px;
  margin: auto;
  box-shadow: 0 24px 64px rgba(13, 28, 48, 0.28);
  color: var(--text);
}

.service-dialog::backdrop {
  background: rgba(13, 28, 48, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.service-dialog[open] {
  animation: sd-in 0.3s ease both;
}

.service-dialog[open]::backdrop {
  animation: sd-fade 0.3s ease both;
}

@keyframes sd-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sd-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.sd-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sd-close:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  transform: rotate(90deg);
}

.sd-close .icon {
  width: 18px;
  height: 18px;
}

.sd-icon .icon {
  width: 42px;
  height: 42px;
  color: var(--navy);
  stroke-width: 1.5;
}

.sd-title {
  font-size: 22px;
  margin: 14px 0 10px;
}

.sd-desc {
  font-size: 15px;
  margin-bottom: 18px;
}

.sd-list {
  display: grid;
  gap: 9px;
  margin-bottom: 26px;
}

.sd-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14px;
  color: var(--ink);
}

.sd-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--gold);
  margin-top: 8px;
  flex-shrink: 0;
}

.sd-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 22px;
}

.sd-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  transition: color 0.2s ease;
}

.sd-phone .icon {
  color: var(--gold);
}

.sd-phone:hover {
  color: var(--gold-dark);
}

/* --------------------------------------------------------------------------
   À propos
   -------------------------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
  align-items: center;
}

.about-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 340px;
  background: var(--navy);
  box-shadow: var(--shadow-md);
}

.about-img {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.about-photo.has-photo .about-img {
  display: block;
}

.about-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  padding: 24px;
}

.about-fallback .icon {
  width: 52px;
  height: 52px;
  color: var(--gold);
  opacity: 0.9;
}

.about-fallback span {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
}

.about-photo.has-photo .about-fallback {
  display: none;
}

.about-title {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  margin-bottom: 18px;
}

.about-text {
  font-size: 15.5px;
  margin-bottom: 12px;
}

.about-text strong {
  color: var(--ink);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 28px 0 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.about-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  padding: 0 8px;
}

.about-stats li + li {
  border-left: 1px solid var(--line);
}

.about-stats .icon {
  width: 24px;
  height: 24px;
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   Bandeau engagements
   -------------------------------------------------------------------------- */

.pledge {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pledge-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 40px;
  padding: 30px 0;
}

.pledge-row li {
  display: flex;
  align-items: center;
  gap: 13px;
}

.pledge-row .icon {
  width: 27px;
  height: 27px;
  color: var(--navy);
}

.pledge-row span {
  display: flex;
  flex-direction: column;
  font-size: 12.5px;
  line-height: 1.5;
}

.pledge-row strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 24px;
}

.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-list .icon {
  color: var(--gold);
  margin-top: 4px;
}

.contact-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 2px;
}

.contact-value {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
}

a.contact-value {
  transition: color 0.2s ease;
}

a.contact-value:hover {
  color: var(--gold-dark);
}

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 34px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9aa1ab;
}

.form-field select:invalid {
  color: #9aa1ab;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(191, 158, 77, 0.15);
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  font-size: 12.5px;
  margin-top: 16px;
}

.form-note a {
  color: var(--gold-dark);
  font-weight: 500;
}

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

.form-success {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--gold-soft);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 48px;
  padding-top: 60px;
  padding-bottom: 52px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}

.footer-contact span,
.footer-contact a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact .icon {
  margin-top: 4px;
  color: var(--gold);
}

.footer-contact a {
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-title {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-title-gap {
  margin-top: 26px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
}

.footer-col a {
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
  border-color: var(--gold);
  background: var(--gold);
}

.footer-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  min-width: 54px;
  height: 32px;
  padding: 0 9px;
  border-radius: 4px;
}

.pay svg {
  display: block;
}

.pay-visa svg {
  height: 11px;
  width: 30px;
}

.pay-mc svg {
  height: 17px;
  width: 26px;
}

.pay-amex svg {
  height: 22px;
  width: 22px;
}

.pay-applepay svg {
  height: 15px;
  width: 23px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  font-size: 12.5px;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-credit {
  color: #fff;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-credit:hover {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Fond bleu, sections posées en cartes arrondies
   -------------------------------------------------------------------------- */

body.canvas {
  background: var(--navy);
}

.canvas main {
  padding: 0 40px 56px;
}

/* En-tête en carte */

.canvas .header {
  background: var(--navy);
  border-bottom: none;
  padding: 14px 40px;
}

.canvas .header-inner {
  max-width: 1240px;
  background: var(--paper);
  border-radius: 16px;
  height: 78px;
  padding: 0 28px;
  transition: box-shadow 0.25s ease;
}

.canvas .header.is-scrolled {
  box-shadow: none;
}

.canvas .header.is-scrolled .header-inner {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

@media (max-width: 1200px) {
  .canvas .header {
    padding: 10px 14px;
  }

  .canvas .header-inner {
    height: 66px;
    padding: 0 16px;
  }

  .canvas .nav.is-open {
    left: 14px;
    right: 14px;
    top: calc(100% - 10px);
    border-radius: 0 0 14px 14px;
  }
}

.canvas .hero {
  border-radius: 26px;
}

.canvas .commander,
.canvas .section,
.canvas .pledge {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.canvas .commander {
  border-radius: 26px;
  margin-bottom: 48px;
}

.canvas .section {
  background: var(--paper);
  border-radius: 26px;
  margin-bottom: 48px;
}

/* Engagements posés directement sur le fond bleu */

.canvas .pledge {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 28px;
}

.canvas .pledge .icon {
  color: var(--gold);
}

.canvas .pledge-row strong {
  color: #fff;
}

.canvas .pledge-row span {
  color: rgba(255, 255, 255, 0.72);
}

/* Contact sur le fond bleu, seul le formulaire reste en carte blanche */

.canvas #contact {
  background: transparent;
  border-radius: 0;
  margin-bottom: 0;
}

.canvas #contact .sec-title {
  color: #fff;
}

.canvas #contact .sec-sub {
  color: rgba(255, 255, 255, 0.75);
}

.canvas #contact .contact-label {
  color: rgba(255, 255, 255, 0.55);
}

.canvas #contact .contact-value {
  color: #fff;
}

.canvas #contact a.contact-value:hover {
  color: var(--gold);
}

.canvas #contact .contact-form {
  border: none;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

/* Sections posées directement sur le fond bleu (page notre histoire) */

.canvas .section.on-blue {
  background: transparent;
  border-radius: 0;
}

.canvas .on-blue .sec-title {
  color: #fff;
}

.canvas .on-blue .sec-sub {
  color: rgba(255, 255, 255, 0.75);
}

.canvas .on-blue .timeline::before {
  background: rgba(255, 255, 255, 0.18);
}

.canvas .on-blue .timeline-item::before {
  box-shadow: 0 0 0 4px var(--navy);
}

.canvas .on-blue .timeline-year {
  color: var(--gold);
}

.canvas .on-blue .timeline-title {
  color: #fff;
}

.canvas .on-blue .timeline-text {
  color: rgba(255, 255, 255, 0.72);
}

.canvas .on-blue .group-card {
  border: none;
  box-shadow: var(--shadow-md);
}

@media (max-width: 760px) {
  .canvas main {
    padding: 0 14px 30px;
  }

  .canvas .hero,
  .canvas .commander,
  .canvas .section {
    border-radius: 18px;
  }

  .canvas .commander,
  .canvas .section {
    margin-bottom: 24px;
  }
}

/* --------------------------------------------------------------------------
   Bouton retour en haut
   -------------------------------------------------------------------------- */

.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s,
    background-color 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--gold-dark);
}

.to-top .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.1;
}

@media (max-width: 760px) {
  .to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

/* --------------------------------------------------------------------------
   Animations d'apparition
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--d, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .service-card,
  .nav-link::after,
  .nav-drop,
  .wizard-bar span,
  .to-top,
  .select-panel,
  .select-chevron,
  .faq-a,
  .faq-q .icon {
    transition: none;
  }

  .wz-step.is-active,
  .service-dialog[open],
  .service-dialog[open]::backdrop,
  .wz-address {
    animation: none;
  }

  .hero-box span::before,
  .hero-box span::after {
    animation: none;
  }

  .paid-icon circle,
  .paid-icon path {
    animation: none;
    stroke-dashoffset: 0;
  }

  .merci-recap {
    animation: none;
  }

  .hero-box,
  .hero-box::before,
  .hero-box::after {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Robustesse mobile : textes longs insécables (emails, références) et
   garde-fou contre tout défilement horizontal
   -------------------------------------------------------------------------- */

body {
  overflow-x: clip;
}

.wz-recap li {
  min-width: 0;
}

.wz-recap-val,
.admin-table td,
.contact-value {
  overflow-wrap: anywhere;
}

.key-found-name,
.key-found-meta,
.key-found-desc,
.faq-q,
.faq-a p,
.admin-faq-q,
.admin-faq-a,
.wz-sent-text,
.order-notice {
  overflow-wrap: break-word;
}

.key-found-head > div {
  min-width: 0;
}

/* Lien "Mon compte" : visible uniquement dans le menu mobile */

.nav-link.nav-mobile {
  display: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

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

/* Le menu passe en burger avant que les liens ne manquent de place :
   plus aucun libellé ne doit se replier sur deux lignes */
@media (max-width: 1200px) {
  .topbar-links {
    display: none;
  }

  .topbar-inner {
    justify-content: center;
  }

  .nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .header-inner {
    height: 76px;
  }

  .header-phone {
    margin-left: auto;
  }

  .header-hours {
    display: none;
  }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 16px 24px 24px;
    max-height: calc(100vh - 120px);
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
  }

  .nav.is-open .nav-link.nav-mobile {
    display: block;
  }

  .nav.is-open .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open .nav-link::after {
    display: none;
  }

  .nav.is-open .nav-item {
    display: block;
  }

  .nav.is-open .nav-drop {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    border: none;
    box-shadow: none;
    padding: 6px 0 10px 14px;
  }

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

  /* La règle :has() du bandeau est plus spécifique : on la neutralise ici,
     sinon le visuel garde deux colonnes et déborde sur mobile */
  .hero-inner:has(.hero-visual.has-img) {
    grid-template-columns: 1fr;
  }

  .hero-visual.has-img {
    justify-content: flex-start;
    padding-left: 20px;
  }

  .trust-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 28px;
  }

  .about-photo {
    min-height: 280px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 60px 0;
  }

  .hero {
    padding: 64px 0 130px;
  }

  .hero-trust {
    flex-direction: column;
    gap: 16px;
  }

  .hero-box {
    width: 240px;
    height: 300px;
  }

  .hero-box::before,
  .hero-box::after {
    left: 55px;
  }

  .hero-trust li + li {
    border-left: none;
    margin-left: 0;
    padding-left: 0;
  }

  .commander {
    padding: 48px 0 56px;
  }

  .sec-title::before,
  .sec-title::after {
    width: 28px;
  }

  .wizard-head {
    padding: 22px 22px 0;
  }

  .wizard-body {
    padding: 24px 22px 4px;
  }

  .wizard-foot {
    padding: 18px 22px 26px;
  }

  .service-dialog {
    padding: 34px 24px 28px;
  }

  .trust-list {
    grid-template-columns: 1fr;
  }

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

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 0;
  }

  .about-stats li:nth-child(3) {
    border-left: none;
  }

  .pledge-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form {
    padding: 28px 22px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom-inner {
    justify-content: center;
    text-align: center;
  }

  /* En dessous de 16px, iOS Safari zoome automatiquement la page au focus
     d'un champ : on garantit 16px sur mobile pour l'éviter */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    gap: 12px;
  }

  .header-phone-label {
    display: none;
  }

  .header-phone-num {
    width: 44px;
    height: 44px;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .logo-key {
    width: 34px;
    height: 34px;
  }

  .logo-name {
    font-size: 18px;
  }

  .logo-name2 {
    font-size: 10.5px;
  }

  .logo-tag {
    display: none;
  }

  /* Bouton "Retour au site" du back office : version compacte */
  .header-phone .btn {
    padding: 10px 12px;
    font-size: 11.5px;
    letter-spacing: 0.05em;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Back office
   -------------------------------------------------------------------------- */

.admin {
  max-width: 1220px;
  margin: 0 auto;
  padding: 44px 24px 80px;
  min-height: calc(100vh - 340px);
}

/* Structure : menu latéral + contenu */

.admin-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-menu {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--paper);
  border-radius: 16px;
  padding: 14px 12px 16px;
  box-shadow: var(--shadow-md);
}

.admin-menu-title {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin: 12px 12px 6px;
}

.admin-menu-title:first-child {
  margin-top: 2px;
}

.admin-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: none;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-menu button:hover {
  background: var(--soft);
}

.admin-menu button.is-active {
  background: var(--gold-soft);
  color: var(--gold-dark);
  font-weight: 600;
}

.admin-menu button .icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--gold-dark);
}

.admin-badge {
  margin-left: auto;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  border-radius: 999px;
  padding: 4px 8px;
}

.admin-content {
  min-width: 0;
}

.admin-section {
  display: none;
}

.admin-section.is-active {
  display: block;
}

.admin-login {
  max-width: 430px;
  margin: 32px auto 0;
  background: var(--paper);
  border-radius: 18px;
  padding: 42px 38px 34px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.admin-login-icon {
  width: 40px;
  height: 40px;
  color: var(--gold);
  margin-bottom: 14px;
}

.admin-login-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.admin-login-sub {
  font-size: 14px;
  margin-bottom: 26px;
}

.admin-login form {
  text-align: left;
}

.admin-login .wz-error {
  margin: 0 0 14px;
}

.admin-note {
  font-size: 12px;
  margin-top: 18px;
  color: var(--text);
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.admin-title {
  color: #fff;
  font-size: 26px;
}

.admin-subtitle {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}

.admin-card {
  background: var(--paper);
  border-radius: 16px;
  padding: 26px 28px 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-md);
}

.admin-card-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.admin-card-title {
  font-size: 16.5px;
  margin-bottom: 4px;
}

.admin-count {
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
}

.admin-card-sub {
  font-size: 13px;
  color: var(--text);
}

.admin-card-sub em {
  font-style: normal;
  color: var(--gold-dark);
}

.admin-success {
  font-size: 13.5px;
  font-weight: 600;
  color: #2f9e63;
  margin-bottom: 12px;
}

/* Onglets des pages légales */

.legal-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.legal-tabs .btn.is-active {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.legal-tabs .btn {
  padding: 10px 18px;
  font-size: 12px;
}

.link-btn:disabled {
  opacity: 0.35;
  cursor: default;
  text-decoration: none;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 16px;
}

.admin-form .form-field {
  margin-bottom: 14px;
}

.admin-form-full {
  grid-column: 1 / -1;
}

.admin-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: top;
}

.admin-table tbody tr {
  transition: background-color 0.15s ease;
}

.admin-table tbody tr:hover {
  background: var(--soft);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table .price {
  font-weight: 700;
  color: var(--gold-dark);
  white-space: nowrap;
}

.admin-table .muted {
  color: var(--text);
  font-size: 13px;
}

.admin-table .admin-message {
  min-width: 240px;
  max-width: 420px;
  font-size: 13.5px;
}

.admin-table-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-dark);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

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

.link-btn.danger {
  color: #b3403a;
}

.link-btn.danger:hover {
  color: #7d2b26;
}

.admin-empty {
  font-size: 14px;
  padding: 6px 0;
}

/* Photo de clé dans le back office */

.form-field input[type="file"] {
  padding: 9px 10px;
  font-size: 13px;
  cursor: pointer;
}

.form-field input[type="file"]::file-selector-button {
  font-family: inherit;
  margin-right: 12px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.form-field input[type="file"]::file-selector-button:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.k-photo-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.k-photo-preview img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.key-thumb {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--line);
}

span.key-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  color: #b6bcc5;
}

/* Photo jointe à une demande de devis : clic pour agrandir */

img.quote-photo {
  cursor: zoom-in;
}

img.quote-photo.est-agrandie {
  width: 220px;
  height: auto;
  cursor: zoom-out;
}

@media (max-width: 940px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  /* Le menu devient une barre de raccourcis horizontale */
  .admin-menu {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px;
  }

  .admin-menu-title {
    display: none;
  }

  .admin-menu button {
    width: auto;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12.5px;
  }

  .admin-menu button.is-active {
    border-color: var(--gold);
  }
}

@media (max-width: 760px) {
  .admin-form {
    grid-template-columns: 1fr;
  }

  .admin-card {
    padding: 22px 18px;
  }

  .admin-login {
    padding: 32px 22px 28px;
  }
}

/* --------------------------------------------------------------------------
   Page FAQ
   -------------------------------------------------------------------------- */

.faq-video {
  max-width: 760px;
  margin: 0 auto 36px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-md);
}

.faq-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

.faq-search {
  max-width: 560px;
  margin: 0 auto 28px;
}

.faq-search-empty {
  color: rgba(255, 255, 255, 0.78);
  margin: -4px 0 26px;
}

.faq-search-empty a {
  color: var(--gold);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--paper);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 19px 24px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-q:hover {
  color: var(--gold-dark);
}

.faq-q .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
  color: var(--gold-dark);
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-q .icon {
  transform: rotate(180deg);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a-inner {
  overflow: hidden;
}

.faq-a p {
  padding: 0 24px 20px;
  font-size: 14.5px;
  line-height: 1.7;
}

.faq-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
}

/* FAQ dans le back office */

.admin-faq-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.admin-faq-list li:last-child {
  border-bottom: none;
}

.admin-faq-q {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.admin-faq-a {
  font-size: 13.5px;
  margin-top: 4px;
}

.admin-faq-list .admin-table-actions {
  flex-shrink: 0;
  padding-top: 2px;
}

/* --------------------------------------------------------------------------
   Page de confirmation de paiement
   -------------------------------------------------------------------------- */

.merci {
  display: flex;
  justify-content: center;
  padding-top: 64px;
  min-height: calc(100vh - 320px);
}

.merci-card {
  width: 100%;
  max-width: 580px;
  background: var(--paper);
  border-radius: 22px;
  padding: 52px 48px 44px;
  text-align: center;
  box-shadow: var(--shadow-md);
  align-self: flex-start;
}

/* Icône de paiement vérifié */

.paid-icon {
  display: block;
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
  fill: none;
  stroke: #2f9e63;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.paid-icon circle {
  stroke-width: 5;
  fill: rgba(47, 158, 99, 0.07);
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: paid-draw 0.7s ease forwards;
}

.paid-icon path {
  stroke-width: 6;
  stroke-dasharray: 62;
  stroke-dashoffset: 62;
  animation: paid-draw 0.4s ease 0.55s forwards;
}

@keyframes paid-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.merci-title {
  font-size: clamp(1.5rem, 2.8vw, 1.9rem);
  margin-bottom: 12px;
}

.merci-text {
  font-size: 15px;
  margin-bottom: 28px;
}

/* Notation par étoiles (adaptée de Uiverse.io par TheDuskPD, MIT) */

.merci-rating {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0 20px;
  margin-bottom: 28px;
}

.merci-rating-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.rating {
  display: inline-block;
}

.rating input {
  display: none;
}

.rating label {
  float: right;
  cursor: pointer;
  color: #d5d9df;
  padding: 0 4px;
  transition: color 0.3s;
}

.rating label:before {
  content: "\2605";
  font-size: 34px;
}

.rating input:checked ~ label,
.rating label:hover,
.rating label:hover ~ label {
  color: var(--gold);
  transition: color 0.3s;
}

.rating-msg {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gold-dark);
  margin-top: 6px;
}

.merci-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.merci-recap {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: left;
  animation: wz-next 0.34s ease both;
}

.merci-recap-empty {
  font-size: 14px;
  text-align: center;
}

.merci-help {
  font-size: 13px;
  margin-top: 26px;
}

.merci-help a {
  color: var(--gold-dark);
  font-weight: 600;
}

.merci-help a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  .merci-card {
    padding: 38px 24px 32px;
  }
}

/* --------------------------------------------------------------------------
   Page notre histoire
   -------------------------------------------------------------------------- */

.page-hero {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 72px 0;
}

.page-hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  letter-spacing: -0.01em;
}

.page-hero p {
  max-width: 600px;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}

.story-intro {
  max-width: 720px;
  margin: 0 auto;
}

.story-intro p {
  font-size: 16px;
  margin-bottom: 14px;
}

.story-intro strong {
  color: var(--ink);
}

.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding-bottom: 38px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--paper);
}

.timeline-year {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
}

.timeline-title {
  font-size: 17.5px;
  margin: 3px 0 8px;
}

.timeline-text {
  font-size: 14.5px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
}

.value-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  text-align: center;
}

.value-card .icon {
  width: 30px;
  height: 30px;
  color: var(--navy);
  stroke-width: 1.6;
  margin-bottom: 14px;
}

.value-title {
  font-size: 16.5px;
  margin-bottom: 8px;
}

.value-text {
  font-size: 14px;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
}

.group-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    transform 0.25s ease;
}

.group-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.group-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
}

.group-name .icon {
  width: 17px;
  height: 17px;
  color: #b6bcc5;
  transition: color 0.2s ease;
}

.group-card:hover .group-name .icon {
  color: var(--gold-dark);
}

.group-domain {
  font-size: 13px;
  color: var(--gold-dark);
  font-weight: 500;
}

.group-text {
  font-size: 13.5px;
  margin-top: 8px;
}

.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-bottom: 10px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 28px;
}

.cta-band-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-outline-light:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .values-grid,
  .group-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 52px 0;
  }
}

/* --------------------------------------------------------------------------
   Page mentions légales
   -------------------------------------------------------------------------- */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.legal-intro {
  font-size: 15px;
  margin-bottom: 44px;
}

.legal h2 {
  font-size: 19px;
  margin: 38px 0 12px;
}

.legal p {
  margin-bottom: 12px;
  font-size: 15.5px;
}

.legal a {
  color: var(--gold-dark);
  font-weight: 500;
}

.legal a:hover {
  text-decoration: underline;
}
