/* Aura Service — site vitrine. Skill design-site-vitrine : bleu nuit + doré,
   mobile d'abord, effets 100 % CSS, contrastes ≥ 4.5:1. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0b1736;
  --navy-2: #17264f;
  --gold: #b88a2d;
  --gold-light: #e8c878;
  --bg: #fbfbf9;
  --surface: #ffffff;
  --ink: #141a33;
  --ink-soft: #5b6066;
  --border: #e3e4e6;
  --on-dark: #ffffff;
  --on-dark-soft: #c9cfdc;
  --focus: #0b1736;

  --font-title: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(11, 23, 54, 0.25);
  --shadow-hover: 0 16px 40px -14px rgba(11, 23, 54, 0.35);
  --container: 1200px;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

h1,
h2,
h3 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--ink);
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

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

.on-dark {
  --focus: var(--gold-light);
  color: var(--on-dark);
}

.on-dark a {
  color: var(--on-dark);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--gold-light);
  color: var(--navy);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
}

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

.prose {
  max-width: 68ch;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.btn--gold:hover {
  background: var(--gold-light);
  box-shadow: 0 8px 24px -10px rgba(184, 138, 45, 0.6);
}

.on-dark .btn--gold {
  color: var(--navy);
}

.btn--ghost {
  border-color: currentColor;
  color: var(--ink);
  background: transparent;
}

.on-dark .btn--ghost {
  color: var(--on-dark);
  border-color: rgba(232, 200, 120, 0.6);
}

.btn--ghost:hover {
  border-color: var(--gold);
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(232, 200, 120, 0.18);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--on-dark);
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 600;
}

.brand__logo {
  flex: none;
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  width: 100%;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-dark-soft);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.site-nav ul a:hover,
.site-nav ul a[aria-current="page"] {
  color: var(--on-dark);
  border-bottom-color: var(--gold);
}

.site-header .btn {
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
}

/* Menu mobile : replié derrière un bouton, uniquement si JavaScript est actif
   (sans JS, les liens restent affichés sous le logo). */
@media (max-width: 899.98px) {
  .js .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-left: auto;
    padding: 0;
    border: 1px solid rgba(232, 200, 120, 0.45);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold-light);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle__bars {
    position: relative;
  }

  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle__bars::before {
    top: -6px;
  }

  .nav-toggle__bars::after {
    top: 6px;
  }

  .nav-open .nav-toggle__bars {
    background: transparent;
  }

  .nav-open .nav-toggle__bars::before {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-open .nav-toggle__bars::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .js .site-nav {
    flex-direction: column;
    align-items: stretch;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.25s ease, visibility 0s linear 0.25s;
  }

  .nav-open .site-nav {
    max-height: 420px;
    visibility: visible;
    transition: max-height 0.25s ease;
  }

  .js .site-nav ul {
    flex-direction: column;
    padding-top: 0.5rem;
  }

  .js .site-nav ul a {
    display: flex;
    min-height: 48px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(232, 200, 120, 0.15);
  }

  .js .site-nav ul a[aria-current="page"] {
    border-bottom-color: var(--gold);
  }

  .js .site-nav .btn {
    width: 100%;
    margin: 0.75rem 0 1rem;
  }
}

@media (min-width: 900px) {
  .site-nav {
    width: auto;
    flex-wrap: nowrap;
  }

  .site-nav ul {
    flex-wrap: nowrap;
  }
}

/* --- Sections ----------------------------------------------------------------- */

.section {
  padding: clamp(64px, 10vw, 120px) 0;
}

.section--dark {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}

.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/svg/motif.svg") repeat;
  background-size: 80px;
  pointer-events: none;
}

.section--dark > * {
  position: relative;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.on-dark .eyebrow,
.section--dark .eyebrow {
  color: var(--gold-light);
}

/* Fine ligne dorée alignée à gauche, sous le sur-titre ou le fil d'Ariane. */
.filet {
  display: block;
  width: 56px;
  height: 2px;
  margin: 0 0 1.25rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.section--dark .lead,
.on-dark .lead {
  color: var(--on-dark-soft);
}

/* --- Hero avec chat ----------------------------------------------------------- */

/* Fond et voile en z-index négatif : le hero ne crée pas de contexte
   d'empilement, ce qui laisse le chat plein écran (mobile) passer au-dessus
   de l'en-tête collant. */
.hero {
  position: relative;
  color: var(--on-dark);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--navy);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 23, 54, 0.82) 0%, rgba(11, 23, 54, 0.9) 100%);
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 40px;
  padding-top: clamp(40px, 8vw, 96px);
  padding-bottom: clamp(48px, 8vw, 104px);
  align-items: center;
}

.hero h1 {
  max-width: 16ch;
}

.hero .lead {
  color: var(--on-dark-soft);
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 980px) {
  .hero__inner {
    grid-template-columns: 1.05fr 1fr;
  }
}

/* --- Chatbot ------------------------------------------------------------------ */

.chat {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.55);
  border-top: 2px solid var(--gold);
  display: flex;
  flex-direction: column;
  max-height: 640px;
  --focus: var(--navy);
}

.chat__head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.chat__avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  display: grid;
  place-items: center;
}

.chat__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

/* La carte du chat est claire, même posée dans le hero sombre. */
.chat a {
  color: var(--ink);
}

.chat__note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.chat__log {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 220px;
}

.msg {
  max-width: 88%;
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  font-size: 0.97rem;
  white-space: pre-line;
  word-wrap: break-word;
}

.msg--bot {
  align-self: flex-start;
  background: #f1f2f6;
  border-bottom-left-radius: 4px;
}

.msg--user {
  align-self: flex-end;
  background: var(--navy);
  color: var(--on-dark);
  border-bottom-right-radius: 4px;
}

.msg__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.msg__links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  text-decoration: none;
}

.chat__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1.25rem 0.75rem;
}

.chip {
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--navy);
  background: var(--surface);
  color: var(--navy);
  font: 500 0.92rem var(--font-body);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

@media (hover: hover) {
  .chip:hover {
    background: var(--navy);
    color: var(--on-dark);
  }
}

.chat__form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
}

.chat__form input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 0.9rem;
  border: 1px solid #c3c7cf;
  border-radius: 999px;
  font: 1rem var(--font-body);
  color: var(--ink);
}

.chat__privacy {
  margin: 0;
  padding: 0 1.25rem 1rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.lead-form {
  align-self: stretch;
  background: #faf6ec;
  border: 1px solid #e6d6ad;
  border-radius: 12px;
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.lead-form p {
  margin: 0;
  font-size: 0.92rem;
}

.chat__heading {
  flex: 1;
  min-width: 0;
}

.chat__close {
  display: none;
}

/* --- Boutons flottants (WhatsApp à droite, chatbot à gauche sur mobile) ---- */

.fab {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--navy);
  border: 1.5px solid var(--gold);
  box-shadow: 0 10px 28px -10px rgba(11, 23, 54, 0.6);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  --focus: var(--gold-light);
}

.fab:hover {
  transform: translateY(-3px);
  border-color: var(--gold-light);
  box-shadow: 0 14px 32px -10px rgba(11, 23, 54, 0.7);
}

.fab--whatsapp {
  right: calc(16px + env(safe-area-inset-right));
}

.nav-open .fab,
.chat-open .fab {
  display: none;
}

/* Lanceur du chatbot : bouton robot + bulle, en bas à gauche, sur toutes les pages. */
.chat-launcher {
  position: fixed;
  left: calc(16px + env(safe-area-inset-left));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 90;
}

.nav-open .chat-launcher,
.chat-open .chat-launcher {
  display: none;
}

.fab--chat {
  position: relative;
  bottom: auto;
  width: 60px;
  height: 60px;
}

.chat-bubble {
  position: absolute;
  left: 0;
  bottom: calc(100% + 14px);
  display: flex;
  align-items: center;
  gap: 0.15rem;
  width: max-content;
  max-width: min(320px, calc(100vw - 32px));
  padding: 0.2rem 0.2rem 0.2rem 0.6rem;
  border-radius: 14px;
  background: var(--navy);
  border: 1px solid var(--gold);
  box-shadow: 0 14px 34px -14px rgba(11, 23, 54, 0.65);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  --focus: var(--gold-light);
}

.chat-bubble::after {
  content: "";
  position: absolute;
  left: 23px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: var(--navy);
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg);
}

.chat-bubble--visible {
  opacity: 1;
  transform: none;
}

.chat-bubble__open {
  min-height: 44px;
  padding: 0.45rem 0.3rem;
  border: 0;
  background: none;
  color: var(--on-dark);
  font: 600 0.95rem/1.3 var(--font-body);
  text-align: left;
  cursor: pointer;
}

.chat-bubble__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  cursor: pointer;
}

/* Fenêtre de chat flottante (pages autres que l'accueil) sur grand écran. */
@media (min-width: 768px) {
  .chat--floating {
    display: none;
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 200;
    width: min(400px, calc(100vw - 32px));
    height: min(620px, calc(100vh - 32px));
    max-height: none;
  }

  .chat-open .chat--floating {
    display: flex;
  }

  .chat--floating .chat__close {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    cursor: pointer;
  }
}

/* Variantes d'images réservées au mobile (robot doré, croix claire). */
.chat__avatar-robot,
.chat__close-light {
  display: none;
}

/* --- Chatbot sur mobile : fenêtre flottante façon Messenger ------------------
   Ouverte au-dessus des boutons flottants (sans les chevaucher), jamais plus de
   60 % de la hauteur de l'écran ; la page reste visible et défilable derrière.
   Le robot reste affiché : un nouveau clic referme la fenêtre. */

@media (max-width: 767.98px) {
  .chat {
    display: flex;
    position: fixed;
    left: calc(16px + env(safe-area-inset-left));
    right: calc(16px + env(safe-area-inset-right));
    bottom: calc(88px + env(safe-area-inset-bottom));
    z-index: 200;
    height: min(560px, 60vh);
    height: min(560px, 60dvh);
    max-height: 60vh;
    overflow: hidden;
    background: var(--navy-2);
    color: var(--on-dark);
    border: 1px solid var(--gold);
    border-radius: 18px;
    box-shadow: 0 22px 50px -18px rgba(0, 0, 0, 0.7);
    --focus: var(--gold-light);
    visibility: hidden;
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    transform-origin: 30px 100%;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
  }

  .chat-open .chat {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s;
  }

  .chat:focus {
    outline: none;
  }

  /* Clavier ouvert : la fenêtre se cale au-dessus du clavier (valeurs posées
     par chat.js via visualViewport) et garde la saisie et les derniers messages. */
  .chat-kb .chat {
    bottom: calc(var(--chat-kb, 0px) + 8px);
    height: min(60vh, calc(var(--chat-vv, 60vh) - 16px));
  }

  .chat-kb .chat__suggestions {
    display: none;
  }

  .chat-open .chat-launcher {
    display: block;
  }

  .chat-open .fab {
    display: grid;
  }

  .nav-open .chat-launcher,
  .nav-open .fab {
    display: none;
  }

  .chat .chat__head {
    align-items: center;
    padding: 0.7rem 0.75rem 0.7rem 0.9rem;
    background: var(--navy);
    border-bottom: 1px solid rgba(184, 138, 45, 0.5);
  }

  .chat .chat__avatar {
    border: 1px solid var(--gold);
  }

  .chat .chat__avatar-logo,
  .chat .chat__close-dark {
    display: none;
  }

  .chat .chat__avatar-robot,
  .chat .chat__close-light {
    display: block;
  }

  .chat .chat__title {
    color: var(--gold-light);
    font-size: 1rem;
  }

  /* Note et confidentialité, déplacées en tête du fil par chat.js. */
  .chat .chat__log .chat__notice {
    margin: 0;
    padding: 0;
    background: none;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--on-dark-soft);
    text-align: center;
  }

  .chat .chat__close {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
  }

  .chat a {
    color: var(--gold-light);
  }

  .chat .chat__log {
    min-height: 0;
    padding: 0.85rem 0.9rem;
    overscroll-behavior: contain;
  }

  .chat .msg {
    max-width: 90%;
    font-size: 0.95rem;
  }

  .chat .msg--bot {
    background: var(--navy);
    color: var(--on-dark);
    border: 1px solid rgba(232, 200, 120, 0.2);
  }

  .chat .msg--user {
    background: var(--gold);
    color: var(--navy);
    font-weight: 500;
  }

  .chat .msg__links a {
    color: var(--gold-light);
    border-color: var(--gold);
  }

  /* Suggestions sur une seule ligne défilante : la fenêtre reste compacte. */
  .chat .chat__suggestions {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.1rem 0.9rem 0.6rem;
    scrollbar-width: none;
  }

  .chat .chip {
    flex: none;
    background: transparent;
    color: var(--gold-light);
    border-color: var(--gold);
  }

  .chat .chip:active {
    background: rgba(184, 138, 45, 0.2);
  }

  .chat .chat__form {
    padding: 0.6rem 0.75rem;
    background: var(--navy);
    border-top: 1px solid rgba(184, 138, 45, 0.4);
  }

  .chat .chat__form input {
    min-height: 44px;
    background: var(--navy-2);
    color: var(--on-dark);
    border-color: var(--gold);
  }

  .chat .chat__form input::placeholder {
    color: var(--on-dark-soft);
    opacity: 1;
  }

  .chat .chat__privacy {
    padding: 0 0.9rem 0.6rem;
    background: var(--navy);
    font-size: 0.74rem;
    color: var(--on-dark-soft);
  }

  .chat .lead-form {
    background: var(--navy);
    border-color: var(--gold);
    color: var(--on-dark);
  }

  .chat .check input {
    accent-color: var(--gold);
  }

  .chat .form-status--error {
    color: #ffb4a8;
  }

  .chat .form-status--ok {
    color: #9ee0b5;
  }
}

/* --- Formulaires -------------------------------------------------------------- */

.field {
  display: grid;
  gap: 0.35rem;
}

.field label,
.field__label {
  font-weight: 600;
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid #c3c7cf;
  border-radius: 10px;
  background: var(--surface);
  font: 1rem var(--font-body);
  color: var(--ink);
}

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

.field__hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.92rem;
}

.check input {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  flex: none;
  accent-color: var(--navy);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-size: 0.95rem;
  margin: 0;
}

.form-status--error {
  color: #a3261f;
}

.form-status--ok {
  color: #1f6b3d;
}

.required {
  color: #a3261f;
}

/* --- Services (accueil) ------------------------------------------------------- */

.services-list {
  display: grid;
  gap: clamp(48px, 8vw, 96px);
}

.service {
  display: grid;
  gap: 24px;
  align-items: center;
}

.service__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.service__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(232, 200, 120, 0.25);
  pointer-events: none;
}

.service__media img {
  width: 100%;
  aspect-ratio: 800 / 537;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.service:hover .service__media img {
  transform: scale(1.02);
}

.service__top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.icon-badge {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(232, 200, 120, 0.35);
}

.icon-badge img {
  width: 30px;
  height: 30px;
}

.service__num {
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}

.service h3 {
  margin-bottom: 0.5rem;
}

.text-link {
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}

@media (min-width: 900px) {
  .service {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .service:nth-child(even) .service__media {
    order: 2;
  }
}

/* --- Étapes / cartes ---------------------------------------------------------- */

.steps {
  display: grid;
  gap: 20px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.step {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(232, 200, 120, 0.22);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.step:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--on-dark-soft);
  margin: 0;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cards {
  display: grid;
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

@media (min-width: 760px) {
  .cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* --- Page intérieure : en-tête ------------------------------------------------- */

.page-head {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--on-dark);
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/svg/motif.svg") repeat;
  background-size: 80px;
}

.page-head > * {
  position: relative;
}

.page-head .lead {
  color: var(--on-dark-soft);
  max-width: 60ch;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--on-dark-soft);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--on-dark-soft);
}

/* --- Services détaillés ------------------------------------------------------- */

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  background: var(--surface);
}

.toc a:hover {
  border-color: var(--gold);
}

.detail {
  scroll-margin-top: 110px;
  display: grid;
  gap: 28px;
  padding: clamp(48px, 7vw, 80px) 0;
  border-top: 1px solid var(--border);
}

.detail__cols {
  display: grid;
  gap: 20px;
}

.detail__box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.detail__box h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
}

.detail__box ul {
  margin: 0;
  padding-left: 1.1rem;
}

.detail__box li {
  margin-bottom: 0.35rem;
}

.detail__box--limits {
  background: #f6f6f3;
}

.promise {
  font-family: var(--font-title);
  font-size: 1.25rem;
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  margin: 0 0 1.25rem;
}

@media (min-width: 900px) {
  .detail {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }

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

/* --- Photos à fournir --------------------------------------------------------- */

.photo-slot {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  background: #f6f2e7;
  color: var(--ink);
  font-size: 0.9rem;
}

.stack-top {
  margin-top: 20px;
}

/* --- Équipe -------------------------------------------------------------------- */

.team {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.member {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.member img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
}

.member__tag {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(11, 23, 54, 0.93);
  border: 1px solid rgba(232, 200, 120, 0.45);
  border-left: 3px solid var(--gold);
  color: var(--on-dark);
}

.member__name {
  display: block;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}

.member__role {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--gold-light);
}

/* --- Réseaux sociaux et coordonnées --------------------------------------------- */

.socials {
  display: flex;
  gap: 0.6rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.social {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid rgba(232, 200, 120, 0.45);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.social:hover {
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.socials--light {
  margin-bottom: 1.25rem;
}

.socials--light .social {
  --focus: var(--navy);
}

.contact-links a,
.contact-list a {
  overflow-wrap: anywhere;
}

.contact-links span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Colonne = photo + carte de biographie ; la carte occupe la hauteur restante,
   donc les trois cartes d'une même rangée ont la même hauteur. */
.member-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease;
}

.member__bio {
  flex: 1;
  margin: 0;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background-color: var(--navy);
  background-image: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  border: 1px solid rgba(232, 200, 120, 0.45);
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow);
  color: var(--on-dark-soft);
  font-size: 0.97rem;
  line-height: 1.6;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.member__bio strong {
  color: var(--gold-light);
  font-weight: 600;
}

/* Survol : uniquement à la souris et si le visiteur n'a pas réduit les animations. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .member-card:hover {
    transform: translateY(-4px);
  }

  .member-card:hover .member__bio {
    border-color: var(--gold-light);
    box-shadow: var(--shadow-hover);
  }
}

.photo-slot--16x9 {
  aspect-ratio: 16 / 9;
}

.photo-slot--1x1 {
  aspect-ratio: 1 / 1;
}

.photo-slot--3x2 {
  aspect-ratio: 3 / 2;
}

.card .photo-slot {
  margin-bottom: 1.25rem;
}

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

.contact-layout {
  align-items: start;
}

.contact-title {
  margin-top: 2rem;
  font-size: 1.5rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.form-card h2 {
  font-size: 1.5rem;
}

.form-grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 1rem;
}

.form-grid .btn {
  justify-self: start;
}

/* --- Bandeau CTA -------------------------------------------------------------- */

.cta-band {
  text-align: center;
}

.cta-band .lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 56ch;
}

.cta-band .hero__actions {
  justify-content: center;
}

/* --- Contenu légal ------------------------------------------------------------ */

.legal h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
}

.notice {
  border-left: 3px solid var(--gold);
  background: #faf6ec;
  padding: 1rem 1.25rem;
  border-radius: 0 10px 10px 0;
  margin: 0 0 2rem;
}

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

/* Marge basse : on peut toujours faire défiler le contenu au-delà des boutons
   flottants, qui ne masquent ainsi jamais le bas de page. */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(232, 200, 120, 0.35);
  padding: 56px 0 calc(96px + env(safe-area-inset-bottom));
  font-size: 0.95rem;
}

.site-footer ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-footer ul.socials a {
  display: grid;
}

.site-footer__grid {
  display: grid;
  gap: 32px;
}

.site-footer p,
.site-footer li {
  color: var(--on-dark-soft);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.site-footer ul.socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.site-footer a {
  color: var(--on-dark-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--on-dark);
  text-decoration: underline;
  text-decoration-color: var(--gold);
}

.site-footer__title {
  font-family: var(--font-title);
  color: var(--gold-light) !important;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.site-footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

@media (min-width: 760px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

/* --- Animations réduites ------------------------------------------------------ */

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
