/* Raphaël Collard — site officiel
   Palette extraite du portrait vert forêt */

:root {
  --forest-950: #041b15;
  --forest-900: #0a2a1f;
  --forest-800: #103023;
  --forest-700: #1a4635;
  --forest-600: #2a5f48;
  --forest-100: #d8e4dc;
  --cream-50: #f6f1ea;
  --cream-100: #efe6d8;
  --sand: #c4ae97;
  --sand-deep: #ac9480;
  --ink: #14201b;
  --ink-soft: #3d4f46;
  --mist: rgba(246, 241, 234, 0.72);
  --line: rgba(20, 32, 27, 0.12);
  --line-light: rgba(246, 241, 234, 0.18);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: clamp(3.5rem, 8vw, 7rem);
  --space-2xl: clamp(5rem, 12vw, 10rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 4.5rem;
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

@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(--sans);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p,
blockquote,
figure,
cite {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--cream-50);
  color: var(--forest-900);
}

.skip-link:focus {
  top: 1rem;
}

/* ——— Header ——— */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out),
    color 0.3s ease;
  color: var(--cream-50);
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(4, 27, 21, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand__mark {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--sand);
}

.brand__name {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.92;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 0;
}

.menu-toggle__label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.menu-toggle__icon {
  display: grid;
  gap: 6px;
  width: 1.5rem;
}

.menu-toggle__icon span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child {
  transform: translateY(3.5px) rotate(18deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child {
  transform: translateY(-3.5px) rotate(-18deg);
}

/* ——— Nav overlay ——— */

.site-nav {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 1rem) 1.5rem 2rem;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(172, 148, 128, 0.14), transparent 45%),
    linear-gradient(160deg, var(--forest-800), var(--forest-950));
  color: var(--cream-50);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s;
}

.site-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-nav__inner {
  width: min(100%, 40rem);
  display: grid;
  gap: 3rem;
}

.site-nav__list {
  display: grid;
  gap: 0.35rem;
}

.site-nav__list a {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 8vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  transition: color 0.25s ease, padding-left 0.35s var(--ease-out);
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible {
  color: var(--sand);
  padding-left: 0.5rem;
}

.site-nav__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand);
}

.socials {
  display: flex;
  gap: 1.25rem;
}

.socials a {
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.socials a:hover {
  opacity: 1;
}

body.nav-open {
  overflow: hidden;
}

/* ——— Buttons & type ——— */

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand-deep);
}

.section--green .eyebrow,
.hero .eyebrow,
.section--contact .eyebrow {
  color: var(--sand);
}

.section__title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease,
    transform 0.2s var(--ease-out);
}

.btn:active {
  transform: scale(0.98);
}

.btn--ghost {
  border: 1px solid rgba(246, 241, 234, 0.55);
  color: var(--cream-50);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--cream-50);
  color: var(--forest-900);
  border-color: var(--cream-50);
}

.btn--ghost-dark {
  border: 1px solid rgba(20, 32, 27, 0.25);
  color: var(--ink);
}

.btn--ghost-dark:hover,
.btn--ghost-dark:focus-visible {
  background: var(--forest-900);
  color: var(--cream-50);
  border-color: var(--forest-900);
}

.btn--solid {
  background: var(--forest-900);
  color: var(--cream-50);
}

.btn--solid:hover,
.btn--solid:focus-visible {
  background: var(--forest-700);
}

.btn--text {
  min-height: auto;
  padding: 0;
  border-bottom: 1px solid currentColor;
  letter-spacing: 0.14em;
  opacity: 0.85;
}

.btn--text:hover {
  opacity: 1;
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}

/* ——— Hero ——— */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--cream-50);
  background: var(--forest-950);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  transform: scale(1.04);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 27, 21, 0.88) 0%, rgba(4, 27, 21, 0.52) 38%, rgba(4, 27, 21, 0.18) 68%, rgba(4, 27, 21, 0.35) 100%),
    linear-gradient(180deg, rgba(4, 27, 21, 0.28) 0%, rgba(4, 27, 21, 0.08) 32%, rgba(4, 27, 21, 0.9) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: calc(var(--header-h) + 1.5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(3.25rem, 8vw, 5.5rem);
}

.hero__content > * {
  animation: heroIn 0.9s var(--ease-out) both;
}

.hero__content > *:nth-child(2) { animation-delay: 80ms; }
.hero__content > *:nth-child(3) { animation-delay: 160ms; }
.hero__content > *:nth-child(4) { animation-delay: 240ms; }

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 11vw, 7.5rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: 0.35rem 0 1rem;
}

.hero__tagline {
  max-width: 22rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  color: var(--cream-100);
  margin-bottom: 2rem;
}

.hero__scroll {
  position: absolute;
  right: clamp(1.25rem, 4vw, 2.5rem);
  bottom: 2rem;
  z-index: 1;
  writing-mode: vertical-rl;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sand);
  opacity: 0.7;
}

/* ——— Sections ——— */

.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: var(--space-2xl) clamp(1.25rem, 4vw, 2.5rem);
  scroll-margin-top: var(--header-h);
}

#top {
  scroll-margin-top: 0;
}

.section--cream {
  width: 100%;
  max-width: none;
  background: var(--cream-50);
}

.section--cream > * {
  width: min(100%, var(--max));
  margin-left: auto;
  margin-right: auto;
}

.section--cream > .section__head,
.section--cream > .tour-list,
.section--cream > .section__cta,
.section--cream > .news-grid {
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
  box-sizing: border-box;
}

.section--cream {
  padding-left: 0;
  padding-right: 0;
}

.section--green {
  width: 100%;
  max-width: none;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(172, 148, 128, 0.12), transparent 40%),
    var(--forest-900);
  color: var(--cream-50);
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
}

.section__head {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section__head--center {
  text-align: center;
}

.section__head--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.section__cta {
  margin-top: 3rem;
}

/* ——— Tour ——— */

.tour-list {
  border-top: 1px solid var(--line);
}

.tour-item {
  display: grid;
  grid-template-columns: 6.5rem 1fr auto;
  gap: 1.25rem 2rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.tour-item__date {
  display: grid;
  gap: 0.15rem;
}

.tour-item__day {
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--forest-800);
}

.tour-item__month {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.tour-item__body h3 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.tour-item__place {
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.tour-item__prog {
  margin-top: 0.65rem;
  max-width: 36rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.tour-item .btn--text {
  margin-top: 0.35rem;
  white-space: nowrap;
}

/* ——— Quotes ——— */

.acclaim {
  display: grid;
  justify-items: center;
}

.quote-carousel {
  width: min(100%, 42rem);
  text-align: center;
}

.quote {
  display: none;
  opacity: 0;
  transform: translateY(12px);
}

.quote.is-active {
  display: block;
  animation: quoteIn 0.7s var(--ease-out) forwards;
}

@keyframes quoteIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quote p {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3.5vw, 2.35rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.quote cite {
  display: block;
  margin-top: 1.75rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
}

.quote-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-light);
  color: var(--cream-50);
  transition: background 0.25s ease, color 0.25s ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: var(--cream-50);
  color: var(--forest-900);
}

.quote-dots {
  display: flex;
  gap: 0.55rem;
}

.quote-dots button {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(246, 241, 234, 0.35);
  transition: background 0.25s ease, transform 0.25s ease;
}

.quote-dots button[aria-current="true"] {
  background: var(--sand);
  transform: scale(1.25);
}

/* ——— Bio ——— */

.section--split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.bio__copy {
  display: grid;
  gap: 1.15rem;
  margin: 1.75rem 0 2rem;
  max-width: 38rem;
  color: var(--ink-soft);
}

.bio__copy em {
  color: var(--sand-deep);
  font-style: italic;
}

.bio__figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--forest-800);
}

.bio__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.02) saturate(0.92);
}

.bio__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(20, 32, 27, 0.08);
  pointer-events: none;
}

/* ——— News ——— */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news-card {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.news-card:hover {
  border-color: rgba(16, 48, 35, 0.28);
  background: #fff;
}

.news-card__meta {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand-deep);
}

.news-card h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.15;
  margin: 0.75rem 0 0.85rem;
}

.news-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ——— Gallery ——— */

.section--gallery {
  width: 100%;
  max-width: none;
  background: var(--forest-950);
  color: var(--cream-50);
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
}

.section--gallery .section__head,
.section--gallery .gallery {
  width: min(100%, var(--max));
  margin-left: auto;
  margin-right: auto;
}

.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1rem;
  min-height: 28rem;
}

.gallery__item,
.gallery__placeholder {
  overflow: hidden;
  background: var(--forest-800);
  min-height: 18rem;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.gallery__item:hover img {
  transform: scale(1.04);
}

.gallery__item--wide {
  min-height: 100%;
}

.gallery__placeholder {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(246, 241, 234, 0.25);
  background: transparent;
  color: var(--sand);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 1.5rem;
}

/* ——— Contact ——— */

.section--contact {
  width: 100%;
  max-width: none;
  padding: var(--space-2xl) clamp(1.25rem, 4vw, 2.5rem);
  background:
    linear-gradient(180deg, var(--cream-100), var(--cream-50));
}

.contact__panel {
  width: min(100%, 44rem);
  margin: 0 auto;
  text-align: center;
}

.contact__lead {
  margin: 1.25rem auto 2.5rem;
  max-width: 28rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.contact__grid h3 {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand-deep);
  margin-bottom: 0.55rem;
}

.contact__grid a {
  font-family: var(--serif);
  font-size: 1.2rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.contact__grid a:hover {
  border-bottom-color: currentColor;
}

/* ——— Footer ——— */

.site-footer {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
  padding: 3rem clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
  background: var(--forest-950);
  color: var(--cream-50);
}

.site-footer__brand {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
}

.site-footer__brand p {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
}

.site-footer__nav a:hover {
  color: var(--cream-50);
}

.site-footer__copy {
  font-size: 0.75rem;
  color: rgba(246, 241, 234, 0.45);
}

/* ——— Reveal ——— */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* ——— Responsive ——— */

@media (max-width: 900px) {
  .tour-item {
    grid-template-columns: 5.5rem 1fr;
  }

  .tour-item .btn--text {
    grid-column: 2;
  }

  .section--split {
    grid-template-columns: 1fr;
  }

  .bio__figure {
    order: -1;
    max-width: 28rem;
    margin: 0 auto;
    width: 100%;
  }

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

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

  .gallery__item--wide {
    grid-column: 1 / -1;
    min-height: 22rem;
  }
}

@media (max-width: 640px) {
  .brand__name {
    display: none;
  }

  .hero__media img {
    object-position: 70% center;
  }

  .tour-item {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .tour-item .btn--text {
    grid-column: 1;
  }

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

  .contact__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .gallery__item--wide {
    min-height: 20rem;
  }
}
