:root {
  --bg: #060606;
  --bg-elevated: #0f0f0f;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f2ed;
  --muted: rgba(244, 242, 237, 0.55);
  --accent: #c9ae7d;
  --accent-soft: rgba(201, 174, 125, 0.14);
  --radius: 18px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Ambient */
.body-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(201, 174, 125, 0.09), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(255, 255, 255, 0.04), transparent 50%),
    radial-gradient(ellipse 50% 50% at 0% 80%, rgba(201, 174, 125, 0.05), transparent 45%);
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 120px;
  box-sizing: border-box;
  overflow-x: clip;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  margin: 0 -24px 48px;
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, var(--bg), rgba(6, 6, 6, 0.85));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.35s var(--ease-out);
}

.site-nav.is-scrolled {
  border-bottom-color: var(--line);
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.logo span {
  font-weight: 300;
  opacity: 0.7;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: none;
  gap: 28px;
  font-size: 0.875rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out),
    transform 0.25s var(--ease-out);
}

.btn:hover {
  border-color: rgba(201, 174, 125, 0.45);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.btn-primary {
  border-color: rgba(201, 174, 125, 0.5);
  background: rgba(201, 174, 125, 0.12);
  color: var(--text);
}

.btn-primary:hover {
  background: rgba(201, 174, 125, 0.22);
}

@media (min-width: 720px) {
  .nav-links {
    display: flex;
  }
}

/* Hero */
.hero {
  padding: 52px 0 56px;
}

.hero h1 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(1.95rem, 4.8vw, 3.05rem);
  line-height: 1.09;
  letter-spacing: -0.03em;
  color: var(--muted);
}

.hero-h1-main {
  display: block;
  margin-top: 0.06em;
  color: var(--text);
  font-weight: 300;
}

.hero-lead {
  margin: 0 0 30px;
  max-width: 22em;
  font-size: 0.955rem;
  line-height: 1.52;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-bottom: 0;
}

.hero-quiet-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 242, 237, 0.14);
  padding-bottom: 2px;
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.hero-quiet-link:hover {
  color: var(--accent);
  border-bottom-color: rgba(201, 174, 125, 0.4);
}

.hero-quiet-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 3px;
}

/* Section */
.section-head {
  margin-bottom: 40px;
}

.section-kicker {
  margin: 0 0 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-desc {
  margin: 14px 0 0;
  max-width: 36em;
  color: var(--muted);
}

.section-head--tight {
  margin-bottom: 28px;
}

.section-head--tight .section-kicker {
  margin-bottom: 8px;
  letter-spacing: 0.14em;
  font-size: 0.6525rem;
}

.section-head--tight .section-title {
  font-weight: 400;
  font-size: clamp(1.4rem, 2.85vw, 1.92rem);
  line-height: 1.22;
}

.section-head--tight .section-desc {
  margin-top: 10px;
  max-width: 28em;
  font-size: 0.8825rem;
  line-height: 1.45;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

.card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(15, 15, 15, 0.5);
  transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.card:hover {
  border-color: rgba(201, 174, 125, 0.22);
  transform: translateY(-3px);
}

.card-index {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  font-size: 0.955rem;
  color: var(--muted);
}

/* Portfolio */
#portfolio {
  margin-top: 100px;
}

.portfolio-carousel {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.portfolio-viewport {
  display: flex;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  outline: none;
  padding-bottom: 4px;
}

.portfolio-viewport:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
}

.portfolio-viewport::-webkit-scrollbar {
  display: none;
}

.portfolio-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  justify-content: center;
}

.portfolio-slide .portfolio-card {
  width: 100%;
  max-width: 520px;
}

.portfolio-carousel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(244, 242, 237, 0.22);
  cursor: pointer;
  transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.carousel-dot:hover {
  background: rgba(244, 242, 237, 0.45);
}

.carousel-dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

.carousel-arrows {
  display: flex;
  gap: 8px;
}

.carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(15, 15, 15, 0.6);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out),
    color 0.25s var(--ease-out);
}

.carousel-btn:hover:not(:disabled) {
  border-color: rgba(201, 174, 125, 0.35);
  background: var(--accent-soft);
}

.carousel-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.portfolio-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(15, 15, 15, 0.5);
  transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.portfolio-card:hover {
  border-color: rgba(201, 174, 125, 0.22);
  transform: translateY(-3px);
}

.portfolio-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(145deg, #1a1916 0%, #0f0f0f 42%, rgba(201, 174, 125, 0.12) 100%);
}

.portfolio-thumb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.portfolio-thumb-alt {
  background: linear-gradient(
    155deg,
    #101820 0%,
    #0a0f14 48%,
    rgba(244, 242, 237, 0.06) 100%
  );
}

.portfolio-thumb-tertiary {
  background: linear-gradient(135deg, #141210 20%, #0f0f0f 55%, rgba(201, 174, 125, 0.08) 100%);
}

.portfolio-card-body {
  padding: 22px 22px 20px;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.portfolio-tags span {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.portfolio-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.portfolio-card-body > p {
  margin: 0 0 16px;
  font-size: 0.9225rem;
  line-height: 1.55;
  color: var(--muted);
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8675rem;
  font-weight: 500;
  color: var(--accent);
}

.portfolio-link:hover {
  color: #dcc49a;
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-viewport {
    scroll-behavior: auto;
  }
}

/* Selection */
.selection {
  margin-top: 100px;
  padding: 48px 28px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--bg-elevated), rgba(12, 12, 12, 0.6));
  overflow: hidden;
  position: relative;
}

.selection::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 55%;
  height: 120%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.selection-inner {
  position: relative;
}

.selection .section-desc {
  max-width: 42em;
}

.list-check {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .list-check {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 32px;
  }
}

.list-check li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.955rem;
  color: rgba(244, 242, 237, 0.82);
}

.list-check li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.45em;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.85;
}

/* CTA band */
.cta-band {
  margin-top: 100px;
  text-align: center;
  padding: 64px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 174, 125, 0.2);
  background: var(--accent-soft);
}

.cta-band h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0 auto 28px;
  max-width: 28em;
  color: var(--muted);
  font-size: 0.98rem;
}

.cta-band-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

/* RDV booking page — version compacte, moins de scroll */
.wrap.rdv-wrap {
  padding-bottom: 72px;
}

.rdv-wrap .site-nav {
  margin-bottom: 18px;
}

.rdv-main {
  max-width: 420px;
  margin: 0 auto 40px;
  transition: max-width 0.35s var(--ease-out);
}

/* Calendly : colonne plus étroite = bloc moins imposant sur la page */
.rdv-main.rdv-main--wide {
  max-width: min(640px, 100%);
}

.rdv-main .section-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
}

.rdv-kicker {
  margin-bottom: 6px;
}

.rdv-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.35rem, 3vw, 1.72rem);
  letter-spacing: -0.028em;
  line-height: 1.12;
}

.rdv-intro {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.rdv-panel {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(15, 15, 15, 0.38);
  padding: 16px 14px;
}

.field label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 9px 11px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: rgba(6, 6, 6, 0.6);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.field input:focus {
  outline: none;
  border-color: rgba(201, 174, 125, 0.45);
  box-shadow: 0 0 0 2px rgba(201, 174, 125, 0.12);
}

.field input::placeholder {
  color: rgba(244, 242, 237, 0.28);
}

.rdv-type-fieldset {
  margin: 0 0 13px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 8, 8, 0.38);
}

.rdv-type-fieldset legend {
  padding: 0 6px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text);
}

.rdv-type-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 5px;
}

.rdv-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 8px 9px;
  margin: 0 -4px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.rdv-option:has(input:focus-visible) {
  border-color: rgba(201, 174, 125, 0.45);
}

.rdv-option:has(input:checked) {
  background: var(--accent-soft);
  border-color: rgba(201, 174, 125, 0.22);
}

.rdv-option-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rdv-option-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8375rem;
}

.rdv-option-desc {
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
}

.rdv-option input[type="radio"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
}

.rdv-actions {
  display: flex;
  justify-content: flex-start;
}

.rdv-panel .btn {
  padding: 10px 16px;
  font-size: 0.7975rem;
}

.rdv-error {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: #e89890;
}

.rdv-recap {
  margin-bottom: 12px;
}

.rdv-recap-dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 14px;
  font-size: 0.78rem;
  line-height: 1.4;
}

.rdv-recap-dl dt {
  color: var(--muted);
  font-weight: 500;
}

.rdv-recap-dl dd {
  margin: 0;
  color: var(--text);
}

.rdv-recap-line {
  margin: 0;
  font-size: 0.7425rem;
  line-height: 1.4;
  color: var(--text);
}

.rdv-book-intro {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.8175rem;
  line-height: 1.45;
}

.rdv-calendly-embed {
  min-height: 520px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow-x: auto;
  overflow-y: hidden;
  background: rgba(8, 8, 8, 0.3);
}

/* Hauteur réduite : moins de scroll sur votre page ; défiler se fait dans le widget si besoin */
.rdv-calendly-embed .calendly-inline-widget {
  min-width: 280px !important;
  min-height: 520px !important;
  height: 520px !important;
}

.rdv-calendly-embed iframe {
  min-height: 520px;
}

/* Panneau réservation : plus compact qu’une grosse « carte » plein écran */
#rdv-step-booking.rdv-panel {
  padding: 10px 10px;
  border-radius: 12px;
}

#rdv-step-booking .rdv-recap {
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

#rdv-step-booking .rdv-recap-line {
  font-size: 0.695rem;
  margin: 0;
}

#rdv-step-booking .rdv-book-intro {
  margin: 6px 0 4px;
  font-size: 0.7175rem;
  line-height: 1.35;
}

#rdv-step-booking .rdv-book-hint {
  margin: 0 0 4px;
  font-size: 0.68rem;
}

#rdv-step-booking .rdv-cal-fallback {
  margin: 0 0 4px;
  font-size: 0.68rem;
}

#rdv-step-booking .rdv-privacy-note {
  margin: 0 0 8px;
  font-size: 0.625rem;
  line-height: 1.35;
}

#rdv-step-booking .rdv-back {
  padding: 8px 12px;
  font-size: 0.7425rem;
}

.rdv-calendly-embed:empty {
  min-height: 0;
  border: none;
  margin: 0;
}

.rdv-cal-fallback {
  margin: 0 0 8px;
  font-size: 0.7375rem;
}

.rdv-fallback-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rdv-fallback-link:hover {
  color: #dcc49a;
}

.rdv-book-hint {
  margin: 0 0 8px;
  font-size: 0.7425rem;
  color: var(--muted);
  line-height: 1.42;
}

.rdv-privacy-note {
  margin: 0 0 12px;
  font-size: 0.68rem;
  color: rgba(244, 242, 237, 0.4);
  line-height: 1.42;
}

.rdv-back {
  padding-left: 14px;
  padding-right: 14px;
  font-size: 0.7825rem;
}

.rdv-nav-mini {
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--muted);
}

.site-footer-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer-text a:hover {
  color: var(--text);
}

.site-footer-ig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

.site-footer-ig:hover {
  color: var(--accent);
}

.site-footer-ig:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-footer-ig svg {
  display: block;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cards .reveal:nth-child(1) {
  transition-delay: 0.04s;
}
.cards .reveal:nth-child(2) {
  transition-delay: 0.11s;
}
.cards .reveal:nth-child(3) {
  transition-delay: 0.18s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
