/* Refonte : one rhythm, one width, softer shapes. Loaded last; « :root body » lifts these rules over the older sheets. */

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

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

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

:root {
  --display: "Fraunces", Georgia, serif;
  --sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --paper: #f8f4ed;
  --surface: #efe7da;
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --espace: clamp(72px, 10vw, 128px); /* between two sections, everywhere */
  --demi: calc(var(--espace) / 2);
  --ecart: clamp(16px, 2.4vw, 28px);
}

/* Type. */
:root body { font-family: var(--sans); font-feature-settings: "cv11", "ss01"; }

:root body :is(h1, h2, h3, .wordmark span) {
  font-family: var(--display);
  font-weight: 450;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

:root body :is(h1, .hero h1, .page-entete h1) {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.02;
}

:root body :is(.section-heading h2, .dogs-copy h2, .practical-heading h2, .page-contenu > h2) {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

:root body :is(h3, .bord-detail h3, .page-contenu > h3) {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
}

:root body main p { text-wrap: pretty; }

/* Eyebrows above section titles: same size as the text, set apart by weight and colour. */
:root body .section-heading > p {
  margin-bottom: 10px;
  color: var(--accent-texte);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Buttons: pills, gentle feedback. */
:root body :is(.wp-block-button__link, .entete-nav .entete-reserver, .arche-contact button, a.arche-bouton-telephone) {
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

:root body :is(.wp-block-button__link, .entete-nav .entete-reserver, .arche-contact button, a.arche-bouton-telephone):active { transform: scale(0.98); }

:root body :is(a, button) { transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease; }

/* Photos: soft corners everywhere. */
:root body main .wp-block-image img,
:root body main figure img { border-radius: var(--r); }

/* Header: sticky on wide screens, two compact rows on phones. */
:root body .site-header-part {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 30;
}

:root body .site-header {
  min-height: 0;
  padding-block: 14px;
  background: rgba(248, 244, 237, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}

:root body .wordmark span { font-size: 1.6rem; line-height: 1.1; }
:root body .entete-nav .entete-reserver { padding: 0 26px; }

@media (max-width: 760px) {
  :root body .site-header-part { position: static; }

  /* Brand on the first row with « Réserver » pinned to its right, the links on the second. */
  :root body .site-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding-block: 12px 4px;
  }

  :root body .entete-nav ul { flex-wrap: wrap; column-gap: 22px; row-gap: 0; }
  :root body .entete-nav li:has(.entete-reserver) { position: absolute; top: 12px; right: 20px; }
  :root body .entete-nav .entete-reserver { padding: 0 20px; }
  :root body .wordmark span { font-size: 1.4rem; }
}

/* Until the header is wide enough for one line, the phone stays in the booking section and the footer. */
@media (max-width: 1180px) {
  :root body .entete-nav li:has(.entete-tel) { display: none; }
}

/* Every home section: same width, same rhythm. The sections stack in a flex column, so margins never merge:
   each one keeps half the rhythm above and below, and any two sit exactly one rhythm apart. */
:root body .page-accueil .entry-content {
  display: flex;
  flex-direction: column;
}

:root body .page-accueil .entry-content > * { margin-block: var(--demi); }
:root body .page-accueil .entry-content > .hero { margin-top: 0; }

:root body :is(.aboard, .reviews, .tarifs) {
  width: var(--content);
  margin-inline: auto;
  padding-block: 0;
}

/* Hero: full screen, the photo bleeding to the right edge; text first on phones, the photo edge to edge below it. */
:root body .hero {
  width: 100%;
  min-height: min(820px, calc(100svh - 86px));
  margin-inline: 0;
  padding: 0 0 0 calc((100% - var(--content)) / 2);
  grid-template-columns: minmax(420px, 44%) 1fr;
  gap: 0;
  align-items: stretch;
}

:root body .hero-copy { padding: clamp(48px, 6vw, 96px) clamp(32px, 5vw, 80px) clamp(48px, 6vw, 96px) 0; }
:root body .hero h1 { max-width: 12ch; margin-bottom: 24px; }
:root body .hero-intro { max-width: 34rem; }
:root body .hero-actions { margin-top: 32px; }

:root body .hero-image-wrap {
  position: relative;
  min-height: 0;
  height: auto;
  margin: 0;
  overflow: hidden;
}

:root body main .hero-image-wrap img { height: 100%; border-radius: 0; }

:root body .hero-image-wrap figcaption.wp-element-caption {
  left: 20px;
  right: auto;
  bottom: 20px;
  max-width: calc(100% - 40px);
  padding: 8px 18px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 1100px) {
  :root body .hero { grid-template-columns: 1fr 1.1fr; min-height: 0; }
}

@media (max-width: 760px) {
  :root body .hero { display: grid; grid-template-columns: 1fr; padding: 0; }
  :root body .hero-copy { padding: 36px 20px 32px; }
  :root body .hero-image-wrap { order: 2; }
  :root body .hero-image-wrap { overflow: visible; aspect-ratio: auto; }
  :root body main figure.hero-image-wrap { height: auto; min-height: 0; }
  :root body main .hero-image-wrap img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
  :root body .hero-image-wrap figcaption.wp-element-caption { position: static; max-width: none; padding: 12px 20px 0; background: none; border-radius: 0; }
}

/* On board: copy and gallery, then three details. */
:root body .aboard { gap: clamp(32px, 6vw, 88px); align-items: start; }
:root body .aboard-copy > p { max-width: 60ch; }
:root body .aboard-gallery { gap: 12px; }

/* Wide screens: the gallery stretches to the height of the copy beside it. */
@media (min-width: 1101px) {
  /* « contain: size » keeps the photos from setting the row height: the copy does. */
  :root body .aboard-gallery { align-self: stretch; contain: size; grid-template-rows: repeat(3, minmax(0, 1fr)); }
  :root body .aboard-gallery > figure { min-height: 0; overflow: hidden; border-radius: var(--r); }
}

@media (max-width: 760px) {
  :root body .aboard-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    gap: 10px;
  }
  :root body .aboard-gallery > figure { aspect-ratio: 1; }
  :root body .aboard-gallery > figure.gallery-large,
  :root body .aboard-gallery > figure:last-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }
  :root body .aboard-gallery img { height: 100%; }
}

:root body .bord-details { gap: var(--ecart); margin-top: var(--demi); }
:root body .bord-detail h3 { margin: 18px 0 6px; }

/* Phones: the three details slide sideways instead of stacking. */
@media (max-width: 760px) {
  :root body .bord-details {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    gap: 14px;
    margin-inline: -20px;
    padding-inline: 20px;
    scroll-padding-inline: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  :root body .bord-details::-webkit-scrollbar { display: none; }
  :root body .bord-detail { scroll-snap-align: start; }
}

/* Dogs: a card within the content width. */
:root body .dogs {
  width: var(--content);
  margin: var(--demi) auto;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: var(--r-lg);
}

:root body .dogs-image-wrap { min-height: 520px; }
:root body main .dogs-image-wrap img { border-radius: 0; }

:root body .dogs-record {
  left: 16px;
  right: auto;
  bottom: 16px;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
}

:root body .dogs-copy { padding: clamp(32px, 6vw, 80px); }
:root body .dogs-copy > p { margin-top: 20px; }

@media (max-width: 760px) {
  :root body .dogs { grid-template-columns: 1fr; border-radius: var(--r); }
  :root body .dogs-image-wrap { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
}

/* Practical facts: a light card of tiles instead of a dark band. */
:root body .practical {
  width: var(--content);
  margin: var(--demi) auto;
  padding: clamp(28px, 5vw, 64px);
  color: var(--ink);
  background: var(--surface);
  border-radius: var(--r-lg);
}

:root body .practical .section-heading > p { color: var(--accent-texte); }
:root body .practical :is(dt, dd, p) { color: var(--ink); }
:root body .practical-heading { display: block; margin-bottom: 28px; }

:root body .facts-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  border: 0;
}

:root body .facts-list > div {
  min-height: 0;
  padding: 18px 20px;
  background: var(--paper);
  border: 0;
  border-radius: var(--r-sm);
}

:root body .facts-list dt { color: var(--muted); font-weight: 600; }
:root body .facts-list dd { margin-top: 4px; font-family: var(--display); font-size: 1.35rem; line-height: 1.25; }

@media (max-width: 760px) {
  /* One line per fact: label left, value right. */
  :root body .facts-list { grid-template-columns: 1fr; gap: 8px; }
  :root body .facts-list > div {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    column-gap: 16px;
    padding: 12px 16px;
  }
  :root body .facts-list dd { margin: 0 0 0 auto; font-size: 1.25rem; text-align: right; }
}
:root body .practical .access-note { margin-top: 16px; color: var(--muted); }

/* Reviews: three soft cards. */
:root body .reviews-heading { margin-bottom: 36px; }
:root body .reviews-grid { gap: var(--ecart); }

:root body .reviews-grid .wp-block-quote {
  min-height: 0;
  margin: 0;
  padding: 28px;
  gap: 20px;
  background: var(--surface);
  border: 0;
  border-radius: var(--r);
}

@media (max-width: 900px) {
  :root body .reviews-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* Prices: two tiles, then the notes at reading width. */
:root body .tarifs-saisons {
  gap: 10px;
  margin-top: 32px;
  border: 0;
}

:root body .tarifs-saisons > div,
:root body .tarifs-saisons > div + div {
  padding: 24px 28px;
  background: var(--surface);
  border: 0;
  border-radius: var(--r);
}

:root body :is(.tarifs-menage, .tarifs-note) { max-width: 65ch; margin-top: 14px; }
:root body .tarifs-menage { margin-top: 24px; }

/* Booking: the one dark band, as the closing call. */
:root body .reserver {
  padding-block: var(--espace);
}

:root body a.arche-bouton-telephone {
  min-height: 56px;
  padding: 12px 28px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.3;
  text-align: center;
}

:root body .arche-reservation-cadre {
  overflow: hidden;
  border: 0;
  border-radius: var(--r);
}

@media (max-width: 760px) {
  :root body a.arche-bouton-telephone { display: flex; width: 100%; border-radius: var(--r); }
}

/* Footer: calmer, tighter on phones. */
:root body .site-footer { padding-block: var(--demi) 28px; border-top: 0; }
:root body .site-footer h2 { font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
:root body .footer-meta { margin-top: 32px; }

@media (max-width: 760px) {
  :root body .site-footer { gap: 32px; }
}

/* Inner pages. */
:root body .page-entete { padding-top: clamp(40px, 7vw, 88px); }
:root body .page-contenu > :is(h2, h3) { margin-top: 1.6em; }

:root body .guide-carte {
  overflow: hidden;
  border: 0;
  border-radius: var(--r);
  background: var(--surface);
  transition: transform 0.2s ease;
}

:root body main .guide-carte img { border-radius: 0; }
:root body .guide-carte:hover { transform: translateY(-3px); border: 0; }

:root body .arche-contact :is(input, textarea) { border-radius: var(--r-sm); }
:root body .arche-contact-retour { border-radius: var(--r-sm); }

@media (prefers-reduced-motion: reduce) {
  :root body * { transition: none !important; }
}

/* Wide photos break out of the text column on screens, keep the gutter on phones. */
:root body .page-contenu > .photo-large { width: min(1040px, calc(100% - 40px)); }
:root body .page-contenu > .photo-pleine { width: min(880px, calc(100% - 40px)); }

/* Anchors (« Réserver », the guide's sections) land below the sticky header. */
@media (min-width: 761px) {
  :root body :is(section[id], h2[id], h3[id]) { scroll-margin-top: 110px; }
}

/* « Guide » alone until the full label fits on the header's single line. */
@media (max-width: 900px) {
  :root body .entete-long { display: none; }
}
