/* Ethan Lagrain — sous-pages (statiques, sans WebGL)
   Mêmes polices, couleurs et boutons que l'accueil (css/main.css), mise en page de lecture. */

@font-face {
  font-family: 'Cinzel';
  src: url('../assets/fonts/cinzel.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Bodoni Moda';
  src: url('../assets/fonts/bodoni-moda.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/manrope.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --ink: #0c0b0a;
  --charcoal: #15120f;
  --ivory: #efe6d4;
  --ivory-soft: #c9bfae;
  --gold: #c9a24a;
  --gold-line: rgba(201, 162, 74, .3);
  --gold-gradient: linear-gradient(100deg, #7a5a1e 0%, #c9a24a 22%, #f3dc94 42%, #b8860b 62%, #e2c06a 80%, #7a5a1e 100%);
  --roman: 'Cinzel', 'Bodoni Moda', serif;
  --display: 'Bodoni Moda', 'Times New Roman', serif;
  --text: 'Manrope', system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 4rem);
  --measure: 42rem;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

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

html, body { margin: 0; background: var(--ink); color: var(--ivory); }
body {
  font-family: var(--text);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ivory); text-decoration-color: var(--gold); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 10;
  padding: .6rem 1rem; background: var(--ink); color: var(--ivory);
}
.skip:focus { top: 1rem; }

/* --- En-tête ------------------------------------------------------------ */
.top {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 2rem;
  padding: 1.1rem var(--gutter);
  border-bottom: 1px solid var(--gold-line);
}
.top__brand {
  display: grid; text-decoration: none;
  font: 500 1.35rem/1.1 var(--roman); letter-spacing: .06em;
}
.top__brand span { font: 600 .66rem/1.6 var(--text); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.top__nav { margin-left: auto; }
.top__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }
.top__nav a { font-size: .9rem; text-decoration: none; color: var(--ivory-soft); }
.top__nav a:hover, .top__nav a[aria-current] { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--gold); }

/* --- Boutons (repris de l'accueil) -------------------------------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .85rem 1.4rem; overflow: hidden;
  font: 600 .74rem/1 var(--text); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ivory); text-decoration: none;
  border: 1px solid rgba(239, 230, 212, .38);
  background: rgba(12, 11, 10, .55);
  transition: border-color .4s var(--ease-out);
}
.btn:hover { border-color: var(--ivory); }
.btn--gold {
  border: 1px solid transparent;
  background: linear-gradient(var(--charcoal), var(--charcoal)) padding-box, var(--gold-gradient) border-box;
}
.contact-links { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .7rem; }

/* --- Fil d'Ariane ------------------------------------------------------- */
.crumbs { padding: 1rem var(--gutter) 0; font-size: .8rem; color: var(--ivory-soft); }
.crumbs ol { list-style: none; margin: 0 auto; padding: 0; max-width: var(--measure); display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: '›'; margin-right: .4rem; color: var(--gold); }
.crumbs a { color: var(--ivory-soft); }

/* --- Contenu ------------------------------------------------------------ */
.page { padding: 2.5rem var(--gutter) 4rem; }
.page > * { max-width: var(--measure); margin-inline: auto; }
.eyebrow { margin-block: 0; font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.page h1 {
  margin: .5rem auto 0;
  font: 500 clamp(1.75rem, 1.2rem + 3vw, 3.4rem)/1.15 var(--roman); letter-spacing: .03em;
  text-wrap: balance;
}
.lede { margin-top: 1.2rem; font-size: 1.15em; color: var(--ivory); }
.page h2 {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--gold-line);
  font: 500 clamp(1.45rem, 1.2rem + 1vw, 2rem)/1.2 var(--display);
  text-wrap: balance;
}
.page h3 { margin-top: 1.8rem; font: 600 1.05rem/1.4 var(--text); color: var(--ivory); }
.page p, .page ul, .page ol, .page dl, .page table { margin-top: 1rem; margin-bottom: 0; color: var(--ivory-soft); }
.page li + li { margin-top: .4rem; }
.page strong { color: var(--ivory); font-weight: 600; }

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.6rem 1fr; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font: 500 1.3rem/1.5 var(--display); color: var(--gold);
}

.note {
  padding: 1rem 1.2rem; border-left: 2px solid var(--gold);
  background: rgba(201, 162, 74, .06);
}
.todo { color: #f0b37a; font-style: italic; }

/* Tableau de comparaison : défile seul sur mobile, jamais la page. */
.table-wrap { overflow-x: auto; }
.page table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.page th, .page td { padding: .7rem .6rem; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(239, 230, 212, .12); }
.page thead th { color: var(--gold); font-weight: 600; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.page tbody th { color: var(--ivory); font-weight: 600; }

.cols { columns: 2 14rem; column-gap: 2rem; }
.cols li { break-inside: avoid; }

/* --- Bloc « proposer un objet » ----------------------------------------- */
.propose {
  margin: 0 var(--gutter) 4rem; padding: 2rem clamp(1.2rem, 3vw, 2.5rem);
  max-width: calc(var(--measure) + 5rem); margin-inline: auto;
  border: 1px solid var(--gold-line); background: var(--charcoal);
}
.propose__title { margin: 0; font: 500 1.6rem/1.2 var(--display); }
.propose p { margin: .8rem 0 0; color: var(--ivory-soft); }

/* --- Pied de page ------------------------------------------------------- */
.site-footer {
  padding: 4rem var(--gutter) 3rem;
  border-top: 1px solid var(--gold-line);
  display: grid; gap: .3rem;
  color: var(--ivory-soft); font-size: .95rem;
}
.site-footer p { margin: 0; }
.site-footer__name { font: 500 1.8rem/1.2 var(--roman); color: var(--ivory); letter-spacing: .05em; }
.site-footer__address { font-style: normal; }
.site-footer__legal { margin-top: 1.2rem !important; font-size: .8rem; }

@media (max-width: 767px) {
  .top { gap: .8rem; }
  .top__nav { margin-left: 0; order: 3; width: 100%; }
  .top__call { margin-left: auto; min-height: 2.6rem; padding: .6rem .9rem; font-size: .68rem; }
  .btn { padding: .8rem 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* --- Présentation (pages ville et objet) ---------------------------------
   Reprend l'ouverture de l'accueil sans WebGL : fond chaud, titre romain,
   objet détouré qui flotte et suit un peu le pointeur (js/hero.js). */
.has-hero .crumbs { position: relative; z-index: 1; }
.has-hero .crumbs ol { max-width: 72rem; }
.page > .hero {
  position: relative; max-width: 72rem;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 2rem;
  min-height: min(78vh, 46rem); margin-bottom: 1rem;
}
.hero::before {
  content: ''; position: absolute; inset: -6rem calc(-1 * var(--gutter)) -2rem; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 60% at 74% 48%, rgba(122, 82, 38, .42) 0%, transparent 70%),
    radial-gradient(60% 80% at 30% 40%, #1d1712 0%, transparent 75%);
}
.hero .eyebrow, .hero h1, .hero .lede { margin-inline: 0; }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4.2rem); text-shadow: 0 -1px 0 rgba(0, 0, 0, .85), 0 .04em .4em rgba(0, 0, 0, .55); }
.hero .lede { max-width: 34rem; }

.hero__media { --px: 0; --py: 0; display: grid; place-items: center; perspective: 900px; }
.hero__float { animation: hero-float 7s ease-in-out infinite; }
.hero__media img {
  max-height: 64vh; width: auto; margin-inline: auto;
  filter: drop-shadow(0 2.2rem 2.4rem rgba(0, 0, 0, .65)) drop-shadow(0 0 1.2rem rgba(201, 162, 74, .12));
  transform: translate3d(calc(var(--px) * 10px), calc(var(--py) * 8px), 0) rotateY(calc(var(--px) * 6deg)) rotateX(calc(var(--py) * -4deg));
  transition: transform .9s var(--ease-out);
  animation: hero-in 1.1s var(--ease-out) both;
}
.hero--wide .hero__media img { max-width: 100%; max-height: 46vh; }
.hero--tall .hero__media img { max-height: 70vh; }

@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(-.6deg); }
  50% { transform: translateY(-14px) rotate(.6deg); }
}
@keyframes hero-in {
  from { translate: 0 2.5rem; scale: .96; }
  to { translate: 0 0; scale: 1; }
}

@media (max-width: 767px) {
  .page > .hero { grid-template-columns: 1fr; min-height: 0; gap: 1rem; }
  .hero__media { order: -1; }
  .hero__media img { max-height: 34vh; }
  .hero--wide .hero__media img { max-height: 26vh; max-width: 80vw; }
  .hero--tall .hero__media img { max-height: 38vh; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__float, .hero__media img { animation: none; transition: none; }
}

/* Page zone : la carte des villes (css/footer.css) tient lieu d'objet. */
.hero--carte .carte { justify-self: stretch; margin-inline: auto; max-width: 30rem; font-size: .8rem; }
.page .carte__ville a { color: var(--ivory-soft); text-decoration: none; }
.page .carte__ville a:hover, .page .carte__ville a:focus-visible { color: var(--ivory); }
.page .carte__ville:first-child a { color: var(--ivory); }
@media (max-width: 767px) {
  .hero--carte .hero__media { order: 0; }
  .hero--carte .carte { font-size: .74rem; }
}
@media (max-width: 639px) {
  .hero--carte .carte { font-size: .82rem; }
}

/* Date de mise à jour en fin de contenu (fraîcheur, lue aussi par les moteurs). */
.page .maj { margin-top: 3rem; font-size: .8rem; color: rgba(201, 191, 174, .7); }
