@font-face { font-family: "Cinzel"; src: url("/fonts/cinzel-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/fonts/garamond-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/fonts/garamond-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/fonts/garamond-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* Couleurs relevées sur le carré lui-même */
  --lie: #5a1020;        /* bordure lie-de-vin */
  --lie-clair: #6e1a2b;
  --encre: #0f2a2f;      /* fleuve d'encre */
  --or: #c9a24e;         /* double filet */
  --or-pale: #e3cb92;
  --sable: #e8dbc3;      /* dunes */
  --ivoire: #f3ebdc;     /* texte sur fond sombre */
  --brun: #3a2418;       /* texte sur fond sable */

  --frame: 14px;
  --gap: 6px;
  --pad: clamp(1.75rem, 6vw, 6rem);
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--lie);
  color: var(--ivoire);
  font-family: "EB Garamond", Garamond, "Times New Roman", serif;
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.62;
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums;
  text-rendering: optimizeLegibility;
}

/* Le double filet d'or du carré, posé autour de toute la page */
body::before, body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 50;
  border: 1px solid var(--or);
}
body::before { inset: var(--frame); }
body::after { inset: calc(var(--frame) + var(--gap)); opacity: .75; }

@media (prefers-reduced-motion: no-preference) {
  body::before { animation: filet 1.6s cubic-bezier(.65,0,.35,1) both; }
  body::after { animation: filet 1.6s .25s cubic-bezier(.65,0,.35,1) both; }
  .hero__mark { animation: apparition 1.4s .9s ease-out both; }
}
@keyframes filet {
  0%   { clip-path: inset(0 100% 100% 0); }
  50%  { clip-path: inset(0 0 100% 0); }
  100% { clip-path: inset(0 0 0 0); }
}
@keyframes apparition { from { opacity: 0; letter-spacing: .18em; } to { opacity: 1; } }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--or-pale); outline-offset: 4px; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 2rem; top: 2rem; z-index: 60; background: var(--ivoire); color: var(--lie); padding: .5rem 1rem; }

.wordmark {
  font-family: "Cinzel", "Trajan Pro", serif;
  font-weight: 400;
  letter-spacing: .34em;
  margin-right: -.34em; /* compense l'approche finale */
}

/* En-tête */
.site-header {
  position: absolute;
  top: calc(var(--frame) + var(--gap) + 1.1rem);
  left: calc(var(--frame) + var(--gap) + 1.5rem);
  right: calc(var(--frame) + var(--gap) + 1.5rem);
  z-index: 10;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-header .wordmark { font-size: 1.05rem; text-decoration: none; color: var(--or-pale); }
.site-nav { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); font-size: 1.02rem; }
.site-nav a { text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--or); }

/* Ouverture */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 100svh;
}
.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem var(--pad) 5rem calc(var(--pad) + var(--frame));
}
.hero__motto { font-style: italic; color: var(--or-pale); font-size: clamp(1.2rem, 1rem + .8vw, 1.7rem); margin: 0 0 .5rem; }
.hero h1 { margin: 0; font-weight: 400; line-height: 1; }
.hero__house { display: block; font-style: italic; font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); color: var(--ivoire); margin-bottom: .2em; }
.hero__mark { display: block; font-size: clamp(3.4rem, 1rem + 9vw, 9.5rem); color: var(--or); }
.hero__lede { max-width: 26rem; margin: 2rem 0 2.4rem; font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; }
.hero__media { position: relative; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.btn {
  display: inline-block;
  padding: .8rem 1.6rem .85rem;
  border: 1px solid var(--or);
  color: var(--or-pale);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: .02em;
  transition: background-color .25s, color .25s;
}
.btn:hover { background: var(--or); color: var(--lie); }
.link { text-decoration: none; border-bottom: 1px solid var(--or); padding-bottom: 1px; }
.link:hover { color: var(--or-pale); }

/* Sections */
.section { padding: clamp(5rem, 11vw, 9rem) calc(var(--pad) + var(--frame)); }
.section h2 { font-weight: 400; font-size: clamp(2.3rem, 1.4rem + 3.2vw, 4rem); line-height: 1.08; margin: 0 0 1.6rem; letter-spacing: -.005em; }
.section p { max-width: var(--measure); }

/* Le carré, posé à plat */
.carre { background: var(--sable); color: var(--brun); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.carre__img { mix-blend-mode: multiply; }
.carre h2 { color: var(--lie); }
.details { margin: 2.2rem 0 2.4rem; display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.6rem; max-width: var(--measure); border-top: 1px solid rgba(90,16,32,.35); padding-top: 1.4rem; }
.details dt { font-style: italic; color: var(--lie-clair); }
.details dd { margin: 0; }
.carre .btn { border-color: var(--lie); color: var(--lie); }
.carre .btn:hover { background: var(--lie); color: var(--ivoire); }

/* Le porter */
.porter { background: var(--encre); }
.porter__intro { max-width: 46rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.porter__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 2rem); align-items: start; }
.porter__grid figure { margin: 0; }
.porter__grid figure:nth-child(even) { margin-top: clamp(2.5rem, 7vw, 6rem); }
.porter__grid img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.porter__grid figcaption { font-style: italic; margin-top: .8rem; font-size: 1rem; line-height: 1.4; color: var(--sable); max-width: 16rem; }

/* L'histoire */
.histoire { padding-top: 0; }
.histoire__img { margin: 0 calc(-1 * (var(--pad) + var(--frame))) clamp(3.5rem, 8vw, 6rem); }
.histoire__img img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.histoire__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.histoire h2 { font-style: italic; color: var(--or-pale); }
.histoire__body p:first-child { margin-top: .4rem; }

.citation { margin: 2rem 0; padding-left: 1.4rem; border-left: 1px solid var(--or); }
.citation p { font-style: italic; font-size: clamp(1.3rem, 1.1rem + .7vw, 1.75rem); line-height: 1.35; margin: 0 0 .5rem; color: var(--ivoire); }
.citation footer { font-size: 1rem; color: var(--or-pale); }
.porter__grid figcaption b { font-weight: 500; font-style: normal; color: var(--ivoire); }

/* Offrir */
.offrir { background: var(--encre); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.offrir__img img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; max-width: 26rem; margin-left: auto; }
.offrir p { margin-bottom: 2.2rem; }

/* Pied de page */
.site-footer { padding: 4.5rem calc(var(--pad) + var(--frame)) calc(var(--frame) + var(--gap) + 3rem); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: end; font-size: 1rem; }
.site-footer .wordmark { font-size: 1.6rem; color: var(--or); display: block; }
.site-footer em { color: var(--or-pale); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.8rem; }
.site-footer p { margin: .4rem 0 0; }

/* Pages simples */
.page { max-width: 44rem; padding: 9rem calc(var(--pad) + var(--frame)) 4rem; }
.page h1 { font-weight: 400; font-size: clamp(2.3rem, 1.4rem + 3vw, 3.6rem); line-height: 1.1; margin: 0 0 2rem; }
.page h2 { font-weight: 500; font-size: 1.3rem; margin: 2.4rem 0 .6rem; color: var(--or-pale); }

/* Tablette et mobile */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__text { padding-top: 7.5rem; padding-bottom: 3.5rem; }
  .hero__media { min-height: 115vw; }
  .carre, .histoire__body, .offrir { grid-template-columns: 1fr; }
  .porter__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offrir__img img { margin-left: 0; }
}
@media (max-width: 640px) {
  :root { --frame: 8px; --gap: 4px; --pad: 1.4rem; }
  .site-header { flex-direction: column; gap: .7rem; top: calc(var(--frame) + var(--gap) + .9rem); left: calc(var(--frame) + var(--gap) + 1.1rem); right: calc(var(--frame) + var(--gap) + 1.1rem); }
  .site-nav { gap: 1.1rem; font-size: .98rem; flex-wrap: wrap; }
  .hero__text { padding-top: 8.5rem; }
  .details { grid-template-columns: 1fr; gap: .1rem; }
  .details dd { margin-bottom: .7rem; }
}
