@view-transition { navigation: auto; }

@font-face { font-family: "Pinyon Script"; src: url(fonts/pinyon-script-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(fonts/cormorant-garamond-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Jost"; font-weight: 400; src: url(fonts/jost-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Jost"; font-weight: 500; src: url(fonts/jost-latin-500-normal.woff2) format("woff2"); font-display: swap; }

:root {
  --creme: #f6efe4;
  --ivoire: #fbf7f0;
  --encre: #2a1f1c;
  --bordeaux: #5a1f2b;
  --rose: #d9a7a0;
  --vert: #3d4a3a;
  --or: #b88a4a;
  --blanc: #ffffff;
  --script: "Pinyon Script", cursive;
  --serif: "Cormorant Garamond", serif;
  --sans: "Jost", sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--ivoire); color: var(--encre); font-family: var(--sans); font-size: 17px; line-height: 1.7; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* En-tête : menu en capitales espacées, nom au centre */
.entete { position: absolute; inset: 0 0 auto 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 1.6rem 3vw; color: var(--blanc); }
.entete.clair { position: relative; color: var(--encre); background: var(--ivoire); border-bottom: 1px solid color-mix(in srgb, var(--encre) 12%, transparent); }
.entete nav { display: flex; gap: 2.2rem; }
.entete nav:last-of-type { justify-content: flex-end; }
.entete a { text-decoration: none; text-transform: uppercase; letter-spacing: .24em; font-size: .72rem; font-weight: 500; padding: .4rem 0; border-bottom: 1px solid transparent; transition: border-color .3s; }
.entete a:hover, .entete a[aria-current] { border-color: currentColor; }
.entete .nom { font-family: var(--script); font-size: 2.3rem; letter-spacing: 0; text-transform: none; line-height: 1; text-align: center; border: 0; padding: 0 2rem; }
.menu-mobile { display: none; }

/* Hero plein écran, cadre fin */
.hero { position: relative; min-height: min(100svh, 56rem); display: grid; place-items: center; text-align: center; color: var(--blanc); overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, color-mix(in srgb, var(--encre) 60%, transparent), transparent 70%), linear-gradient(color-mix(in srgb, var(--encre) 40%, transparent), transparent 30%, color-mix(in srgb, var(--encre) 45%, transparent)); z-index: 1; }
.hero::after { content: ""; position: absolute; inset: 7rem 3vw 2rem; border: 1px solid color-mix(in srgb, var(--blanc) 35%, transparent); z-index: 1; pointer-events: none; }
.hero .contenu { position: relative; z-index: 2; padding: 0 1.5rem; margin-top: 6vh; }
.hero h1 { font-family: var(--script); font-weight: 400; font-size: clamp(4rem, 12vw, 10rem); line-height: .95; text-shadow: 0 2px 30px color-mix(in srgb, var(--encre) 50%, transparent); animation: monte 1.6s ease both; }
.hero .sur { text-transform: uppercase; letter-spacing: .4em; font-size: .75rem; margin-top: 3rem; animation: monte 1.6s .3s ease both; }
.hero .bas { position: absolute; z-index: 2; bottom: 3rem; left: 50%; translate: -50% 0; text-transform: uppercase; letter-spacing: .4em; font-size: .65rem; text-decoration: none; }
.hero .bas::after { content: ""; display: block; width: 1px; height: 2.4rem; background: var(--blanc); margin: .8rem auto 0; }
@keyframes monte { from { opacity: 0; translate: 0 24px; } }

.bouton { display: inline-block; margin-top: 2rem; padding: .95rem 2.2rem; border: 1px solid currentColor; border-radius: 999px; text-decoration: none; text-transform: uppercase; letter-spacing: .24em; font-size: .72rem; font-weight: 500; backdrop-filter: blur(8px); background: color-mix(in srgb, var(--blanc) 12%, transparent); transition: background .3s, color .3s; }
.bouton:hover { background: var(--blanc); color: var(--bordeaux); }
.bouton.plein { background: var(--bordeaux); color: var(--blanc); border-color: var(--bordeaux); backdrop-filter: none; }
.bouton.plein:hover { background: var(--encre); border-color: var(--encre); color: var(--blanc); }

/* Sections */
section { padding: clamp(4rem, 9vw, 8rem) 6vw; }
.etiquette { text-transform: uppercase; letter-spacing: .38em; font-size: .7rem; color: var(--or); font-weight: 500; }
h2 { font-family: var(--script); font-weight: 400; font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.05; color: var(--bordeaux); margin: .6rem 0 1.4rem; }
h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.15; }
.lead { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.45; max-width: 34ch; }
p + p { margin-top: 1rem; }

.duo { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.duo.inverse { grid-template-columns: 1fr 1.05fr; }
.duo.inverse > :first-child { order: 2; }
.duo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 200px 200px 6px 6px; }
.duo img.paysage { aspect-ratio: 4/3; border-radius: 6px; }
.fond-creme { background: var(--creme); }
.fond-vert { background: var(--vert); color: var(--creme); }
.fond-vert h2 { color: var(--rose); }

.trois { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; }
.carte img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 160px 160px 4px 4px; margin-bottom: 1.2rem; }
.carte p { font-size: .95rem; opacity: .85; }
.carte .prix { font-family: var(--serif); font-size: 1.2rem; color: var(--bordeaux); margin-top: .5rem; opacity: 1; }
.carte:nth-child(2) { margin-top: 3rem; }

.titre-page { padding: clamp(3rem, 7vw, 6rem) 6vw 1rem; text-align: center; }
.titre-page h1 { font-family: var(--script); font-weight: 400; font-size: clamp(3.4rem, 9vw, 7rem); color: var(--bordeaux); line-height: 1; }
.titre-page p { max-width: 52ch; margin: 1rem auto 0; font-family: var(--serif); font-size: 1.4rem; }

.liste-horaires { list-style: none; padding: 0; max-width: 28rem; }
.liste-horaires li { display: flex; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); }

.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; counter-reset: e; margin-top: 3rem; }
.etapes div { counter-increment: e; border-top: 1px solid currentColor; padding-top: 1rem; }
.etapes div::before { content: "0" counter(e); font-family: var(--serif); font-size: 2.4rem; color: var(--or); display: block; }

.pied { background: var(--encre); color: var(--creme); padding: 4rem 6vw 2rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; font-size: .92rem; }
.pied .nom { font-family: var(--script); font-size: 2.6rem; line-height: 1; margin-bottom: .6rem; }
.pied h4 { text-transform: uppercase; letter-spacing: .26em; font-size: .7rem; font-weight: 500; color: var(--rose); margin-bottom: .8rem; }
.pied a { display: block; text-decoration: none; opacity: .85; }
.pied a:hover { opacity: 1; text-decoration: underline; }
.pied .mention { grid-column: 1 / -1; border-top: 1px solid color-mix(in srgb, var(--creme) 20%, transparent); padding-top: 1.4rem; font-size: .8rem; opacity: .6; }

/* Apparition au défilement, en CSS seul */
@supports (animation-timeline: view()) {
  .apparait { animation: apparait linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  @keyframes apparait { from { opacity: 0; translate: 0 50px; } }
}

/* Téléphone : menu en <details> */
@media (max-width: 820px) {
  .entete { grid-template-columns: 1fr auto; padding: 1.1rem 5vw; }
  .entete nav { display: none; }
  .entete .nom { grid-row: 1; grid-column: 1; text-align: left; padding: 0; font-size: 2rem; }
  .menu-mobile { display: block; grid-row: 1; grid-column: 2; position: relative; }
  .menu-mobile summary { list-style: none; cursor: pointer; text-transform: uppercase; letter-spacing: .24em; font-size: .72rem; font-weight: 500; }
  .menu-mobile summary::-webkit-details-marker { display: none; }
  .menu-mobile div { position: absolute; right: 0; top: 2rem; min-width: 14rem; background: var(--ivoire); color: var(--encre); padding: 1rem 1.4rem; border-radius: 8px; box-shadow: 0 12px 40px color-mix(in srgb, var(--encre) 30%, transparent); display: grid; gap: .3rem; }
  .menu-mobile a { display: block; padding: .5rem 0; }
  .hero::after { inset: 5.5rem 5vw 1.5rem; }
  .duo, .duo.inverse, .trois, .etapes, .pied { grid-template-columns: 1fr; }
  .duo.inverse > :first-child { order: 0; }
  .carte:nth-child(2) { margin-top: 0; }
  body { font-size: 16px; }
}
