/* La Brioche — site public. Aucune ressource externe (polices système). */

:root {
  --cream: #fbf6ee;
  --cream-deep: #f3e8d6;
  --paper: #fffdf9;
  --crust: #8a5427;
  --crust-dark: #5e3716;
  --apricot: #d9822b;
  --ink: #2b1d14;
  --ink-soft: #6b5646;
  --line: #e6d8c3;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(60 35 15 / 6%), 0 8px 24px rgb(60 35 15 / 8%);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--crust); text-underline-offset: 3px; }
a:hover { color: var(--crust-dark); }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5vw + 1rem, 4rem); }
h2 { font-size: clamp(1.9rem, 2.5vw + 1rem, 2.75rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  margin: 0 0 .75rem;
  color: var(--apricot);
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}

/* ---- En-tête ---- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(251 246 238 / 88%);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-color: var(--line); }

.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 44px; height: auto; }
.brand-name { font: 600 1.4rem/1 var(--serif); }

.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav ul { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--crust); }

.lang-switch { gap: 2px !important; font-size: .8rem; font-weight: 600; letter-spacing: .05em; }
.lang-switch a {
  display: block; padding: 4px 7px; border-radius: 6px;
  color: var(--ink-soft); text-decoration: none;
}
.lang-switch a:hover { color: var(--ink); background: var(--cream-deep); }
.lang-switch a[aria-current] { color: var(--paper); background: var(--crust); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: grid; place-items: center; margin-left: auto;
    width: 44px; height: 44px; border: 0; border-radius: 10px;
    background: transparent; cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
    content: ""; position: relative; transition: transform .2s, background .2s;
  }
  .nav-toggle-bar::before { position: absolute; top: -7px; }
  .nav-toggle-bar::after { position: absolute; top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    display: none; position: absolute; inset: var(--header-h) 0 auto;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px 16px 24px; background: var(--cream); border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .nav-links { flex-direction: column; gap: 0 !important; }
  .nav-links a { display: block; padding: 12px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .lang-switch { padding-top: 8px !important; }
  .lang-switch a { padding: 8px 12px; font-size: .9rem; }
}

/* ---- Boutons ---- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; transition: background .15s, color .15s, border-color .15s;
}
.button-primary { background: var(--crust); color: var(--paper); }
.button-primary:hover { background: var(--crust-dark); color: var(--paper); }
.button-ghost { border: 1.5px solid var(--line); color: var(--ink); background: var(--paper); }
.button-ghost:hover { border-color: var(--crust); color: var(--crust-dark); }

/* ---- Accueil ---- */

.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 112px);
  background:
    radial-gradient(60% 80% at 85% 30%, rgb(217 130 43 / 16%), transparent 70%),
    radial-gradient(50% 60% at 10% 100%, rgb(138 84 39 / 8%), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 14ch; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 52ch; }
.lead p:last-child { margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-visual { display: grid; place-items: center; }
.hero-badge {
  display: grid; place-items: center;
  width: min(340px, 80vw); aspect-ratio: 1; border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 14px rgb(255 253 249 / 55%), 0 0 0 28px rgb(255 253 249 / 28%), var(--shadow);
}
.hero-badge img { width: 52%; }
.hero-photo {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 200px 200px var(--radius) var(--radius); box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-badge { width: 200px; box-shadow: 0 0 0 10px rgb(255 253 249 / 55%), var(--shadow); }
  .hero-photo { aspect-ratio: 4 / 3; border-radius: var(--radius); }
}

/* ---- Sections ---- */

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding-top: 24px; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }

.section-header { max-width: 680px; margin-bottom: 40px; }
.section-intro { color: var(--ink-soft); font-size: 1.1rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  padding: 28px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
}
.card p { color: var(--ink-soft); margin-bottom: 0; }
.card-number { display: block; margin-bottom: 18px; font: 600 1rem var(--serif); color: var(--apricot); }
.card-image { margin: -28px -28px 22px; width: calc(100% + 56px); max-width: none; aspect-ratio: 3 / 2;
  object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }

.gallery-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.gallery-card {
  position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5;
  border-radius: var(--radius); background: var(--cream-deep); color: var(--paper); text-decoration: none;
}
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-card:hover img { transform: scale(1.04); }
.gallery-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(43 29 20 / 70%), transparent 55%);
}
.gallery-card-empty { position: absolute; inset: 0; background: linear-gradient(135deg, var(--crust), var(--apricot)); }
.gallery-card-title {
  position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 1;
  font: 600 1.5rem/1.2 var(--serif);
}

.infos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.info-card { padding: 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.hours { margin: 0; padding: 0; list-style: none; }
.hours li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.hours li:last-child { border-bottom: 0; }
.contact-links { display: flex; flex-direction: column; gap: 4px; margin: 16px 0 0; font-weight: 600; }
.info-map { padding: 0; overflow: hidden; display: flex; flex-direction: column; min-height: 300px; }
.info-map iframe { flex: 1; width: 100%; min-height: 260px; border: 0; }
.map-link { padding: 12px 20px; font-weight: 600; font-size: .95rem; }

/* ---- Pages intérieures ---- */

.page-header { padding: clamp(40px, 6vw, 72px) 0 24px; }
.page-header h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.4rem); }
.breadcrumb { margin-bottom: 20px; font-weight: 600; }
.breadcrumb a { text-decoration: none; }
.page-404 { padding-bottom: 96px; }
.prose { max-width: 70ch; }
.empty { color: var(--ink-soft); }

.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 20px;
  margin: 0; padding: 0; list-style: none;
}
.photo a { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 14px; background: var(--cream-deep); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo a:hover img { transform: scale(1.03); }
.photo-caption { display: flex; flex-direction: column; margin: 10px 2px 0; font-size: .95rem; }
.photo-caption span { color: var(--ink-soft); }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(20 13 8 / 94%); color: var(--paper);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 56px 72px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); width: auto; border-radius: 8px; }
.lightbox figcaption { text-align: center; }
.lightbox button {
  position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: rgb(255 255 255 / 10%); color: var(--paper); font-size: 2rem; line-height: 1; cursor: pointer;
}
.lightbox button:hover { background: rgb(255 255 255 / 22%); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 16px; top: 50%; translate: 0 -50%; }
@media (max-width: 600px) {
  .lightbox figure { padding: 64px 12px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; translate: none; }
}

/* ---- Pied de page ---- */

.site-footer { background: var(--ink); color: rgb(255 253 249 / 78%); font-size: .95rem; }
.site-footer a { color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand img { width: 64px; background: var(--paper); border-radius: 50%; padding: 8px; }
.footer-title { margin: 0; font: 600 1.4rem var(--serif); color: var(--paper); }
.footer-heading {
  margin-bottom: 12px; font: 700 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--apricot);
}
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { padding: 2px 0; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding: 20px 0 28px; border-top: 1px solid rgb(255 253 249 / 12%); font-size: .875rem;
}
.footer-bottom p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
