:root {
  --bg: #0b1320;
  --bg-alt: #101a2b;
  --text: #e5e7eb;
  --text-muted: #c1c7d0;
  --border: #2b3850;
  --accent: #c7a44c;
  --accent-contrast: #0b1320;
  --max-width: 1120px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  --header-h: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #0a101b 0%, #0b1320 100%);
  color: var(--text);
  line-height: 1.6;
}

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

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

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.page-offset {
  padding-top: calc(var(--header-h) + 0.5rem);
}

.section {
  padding: 4rem 0;
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.section-muted {
  background: var(--bg-alt);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 1.1rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  backdrop-filter: blur(8px);
  background: rgba(10, 16, 27, 0.9);
  border-bottom: 1px solid rgba(199, 164, 76, 0.16);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding-top: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text);
}

.logo-img {
  width: 300px;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  border: 0;
}

.nav {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: #0e1727;
  border-bottom: 1px solid var(--border);
  display: none;
}

.nav.open {
  display: block;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 1rem;
  display: grid;
  gap: 0.55rem;
}

.nav-link {
  color: var(--text-muted);
  padding: 0.35rem 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  border-color: var(--accent);
}

.nav-cta {
  font-weight: 700;
}

.menu-toggle {
  background: transparent;
  border: 0;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0.4rem;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

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

/* Hero accueil */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: center;
}

.hero-home {
  background: radial-gradient(circle at 18% 22%, rgba(199, 164, 76, 0.2), transparent 36%),
    radial-gradient(circle at 90% 80%, rgba(37, 54, 83, 0.45), transparent 34%),
    linear-gradient(130deg, #0b1320 0%, #101d30 50%, #0d1728 100%);
}

.hero-content {
  max-width: 760px;
}

.hero-layout {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.hero-media {
  max-width: 380px;
}

.hero-photo {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(199, 164, 76, 0.45);
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  animation: heroFloat 6s ease-in-out infinite;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.7vw, 1.25rem);
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Boutons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  background: #d6b766;
  box-shadow: 0 10px 22px rgba(199, 164, 76, 0.3);
}

.btn-secondary {
  border-color: var(--border);
  color: var(--text);
  background: #172338;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.btn-primary:active,
.btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

.map-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

/* Cartes info */
.about-grid,
.gallery-grid,
.books-grid {
  display: grid;
  gap: 1rem;
}

.profile-grid {
  display: grid;
  gap: 0.8rem;
}

.profile-photo {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.info-card,
.book-card,
.contact-form {
  background: #0f1a2c;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.info-card:hover,
.book-card:hover {
  transform: translateY(-4px);
  border-color: rgba(199, 164, 76, 0.45);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.info-card,
.book-card {
  padding: 1rem;
}

.bio-block {
  margin-bottom: 1rem;
  padding: 0;
  overflow: hidden;
}

.bio-block h3 {
  margin-bottom: 0.9rem;
}

.about-modern {
  display: grid;
  background:
    radial-gradient(circle at 12% 18%, rgba(199, 164, 76, 0.12), transparent 36%),
    #0f1a2c;
}

.about-media {
  margin: 0;
  min-height: 100%;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-copy {
  padding: 1.1rem;
}

.practice-list {
  margin: 0 0 1rem;
  padding-left: 1rem;
}

.practice-list li {
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.clean-list {
  margin: 0;
  padding-left: 1rem;
}

.clean-list li {
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.social-list {
  list-style: none;
  padding-left: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  color: var(--accent);
  transform: translateX(2px);
}

.social-icon {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  border: 1px solid rgba(199, 164, 76, 0.45);
  display: inline-grid;
  place-items: center;
  background: rgba(11, 19, 32, 0.55);
  flex-shrink: 0;
}

.social-icon svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.gallery-grid img,
.book-card img {
  border: 1px solid var(--border);
  border-radius: 10px;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.gallery-hidden {
  display: none;
}

.gallery-grid img:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(199, 164, 76, 0.45);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.video-wrap {
  position: relative;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.video-slides {
  min-width: 0;
}

.video-slide {
  display: none;
}

.video-slide.active {
  display: block;
}

.video-nav {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(199, 164, 76, 0.45);
  background: rgba(11, 19, 32, 0.92);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.video-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.book-card h3 {
  margin: 0.8rem 0 0;
  font-size: 1rem;
}

/* Gallery lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 10, 18, 0.92);
  padding: 1rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-figure {
  margin: 0;
  width: min(92vw, 960px);
}

.lightbox-figure img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(199, 164, 76, 0.35);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid rgba(199, 164, 76, 0.45);
  background: rgba(11, 19, 32, 0.92);
  color: var(--text);
  cursor: pointer;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav.prev {
  left: 1rem;
}

.lightbox-nav.next {
  right: 1rem;
}

/* Formulaires */
.narrow {
  max-width: 760px;
}

.contact-form {
  padding: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #31435e;
  background: #0d1523;
  color: var(--text);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  margin-bottom: 0.9rem;
  font: inherit;
}

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
  border-color: #df6767;
}

.form-message {
  min-height: 1.2rem;
  margin-top: 0.5rem;
  font-weight: 600;
}

.form-message.success {
  color: #78d49f;
}

.form-message.error {
  color: #ff8f8f;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.wa-note {
  margin-top: 1rem;
  color: #f0d79a;
}

.small-muted {
  font-size: 0.92rem;
  color: #9ca7b5;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: #090f1a;
  padding: 1.25rem 0;
}

.footer-wrap {
  display: grid;
  gap: 0.75rem;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer a {
  color: var(--text-muted);
}

.footer a:hover {
  color: var(--accent);
}

/* Animation légère */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-left {
  transform: translateX(-30px);
}

.reveal-right {
  transform: translateX(30px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.visible.reveal-left,
.reveal.visible.reveal-right {
  transform: translateX(0);
}

.reveal-btn.reveal {
  transform: translateY(18px) scale(0.96);
}

.reveal-btn.reveal.visible {
  transform: translateY(0) scale(1);
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (min-width: 760px) {
  .menu-toggle {
    display: none;
  }

  .nav {
    position: static;
    display: block;
    background: transparent;
    border: 0;
  }

  .nav ul {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
  }

  .about-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-layout {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .hero-media {
    justify-self: end;
  }

  .about-modern {
    grid-template-columns: minmax(260px, 340px) 1fr;
    align-items: stretch;
  }

  .about-copy {
    padding: 1.25rem 1.35rem;
  }

  .practice-list {
    columns: 2;
    column-gap: 1.4rem;
  }

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

  .gallery-grid {
    grid-template-columns: 1.15fr 1fr;
  }

  .gallery-grid img {
    min-height: 280px;
  }

  .gallery-item-1 {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .gallery-item-2 {
    grid-column: 2;
    grid-row: 1;
  }

  .gallery-item-3 {
    grid-column: 2;
    grid-row: 2;
  }

  .books-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-wrap {
    grid-template-columns: 1.2fr 1fr;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 4.6rem 0;
  }
}
