/* Le Petit Lourdes — maquette publique
   Palette : bleu marial, ivoire, or discret
*/

:root {
  --blue-deep: #16243d;
  --blue-marian: #1e3558;
  --blue-mid: #2c4a72;
  --blue-soft: #5a7aa0;
  --blue-pale: #e7eef6;
  --ivory: #f7f4ec;
  --ivory-2: #efe8d6;
  --paper: #fffcf6;
  --gold: #b8954e;
  --gold-light: #d4bc7a;
  --gold-pale: #f3ead3;
  --ink: #243040;
  --muted: #5a6370;
  --line: #d9d0bc;
  --danger: #8a3b3b;
  --shadow: 0 10px 30px rgba(22, 36, 61, 0.08);
  --radius: 6px;
  --header-serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --body-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", Calibri, sans-serif;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    var(--ivory)
    url("../images/motif-etoiles.svg");
  background-size: 280px 280px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--blue-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--blue-deep);
  color: var(--ivory);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
}
.skip-link:focus { top: 0.6rem; }

/* ——— Header ——— */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--gold-pale);
  position: relative;
}
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-marian), var(--gold) 50%, var(--blue-marian));
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1.25rem 0.6rem;
  text-decoration: none;
  color: var(--blue-deep);
}
.brand-mark {
  width: 28px;
  height: 28px;
  margin-bottom: 0.35rem;
}
.brand-name {
  font-family: var(--header-serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin: 0;
}
.brand-tag {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: var(--gold);
  padding: 0.15rem 0 0.55rem;
}
.ornament::before,
.ornament::after {
  content: "";
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament svg { width: 16px; height: 16px; fill: currentColor; }

/* ——— Navigation ——— */
.nav-wrap {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--ivory);
}

#nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 0.85rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-marian);
  align-items: center;
  justify-content: space-between;
}
.nav-toggle-label .burger {
  width: 22px;
  height: 14px;
  position: relative;
}
.nav-toggle-label .burger span,
.nav-toggle-label .burger::before,
.nav-toggle-label .burger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--blue-marian);
}
.nav-toggle-label .burger span { top: 6px; }
.nav-toggle-label .burger::before { top: 0; }
.nav-toggle-label .burger::after { bottom: 0; }

.site-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0.45rem 0.75rem 0.55rem;
  max-width: 1240px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.1rem 0.15rem;
}
.site-nav a {
  display: block;
  text-decoration: none;
  color: var(--blue-marian);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.62rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover {
  color: var(--gold);
}
.site-nav a[aria-current="page"] {
  color: var(--blue-deep);
  border-bottom-color: var(--gold);
}

/* ——— Layout ——— */
.page {
  flex: 1;
}
.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.page-hero {
  background:
    linear-gradient(180deg, rgba(22, 36, 61, 0.55), rgba(22, 36, 61, 0.72)),
    url("../images/grotte-eebie.jpg") center 45% / cover no-repeat;
  color: var(--ivory);
  text-align: center;
  padding: 3.4rem 1.25rem 3.1rem;
  position: relative;
}
.page-hero.plain {
  background: var(--blue-marian);
}
.page-hero h1 {
  font-family: var(--header-serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin: 0 0 0.4rem;
  letter-spacing: 0.03em;
  color: #fff;
}
.page-hero .lead {
  margin: 0 auto;
  max-width: 38rem;
  color: #f3ead3;
  font-size: 1.05rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

/* Home hero */
.home-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
}
.home-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  z-index: -2;
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(16, 28, 48, 0.18) 0%, rgba(16, 28, 48, 0.28) 40%, rgba(16, 28, 48, 0.88) 100%);
}
.home-hero .container {
  padding: 0 1rem 3.2rem;
  width: min(900px, calc(100% - 2rem));
}
.home-hero h1,
.home-hero .tagline,
.home-hero .eyebrow {
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.45);
}
.home-hero .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.home-hero h1 {
  font-family: var(--header-serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: 1.05;
  margin: 0 0 0.7rem;
  letter-spacing: 0.02em;
  color: #fff;
}
.home-hero .tagline {
  font-family: var(--header-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  margin: 0 0 1.4rem;
  max-width: 34rem;
  color: #f3ead3;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.photo-credit {
  font-size: 0.75rem;
  color: rgba(247, 244, 236, 0.75);
  margin: 1.1rem 0 0;
}
.photo-credit a { color: var(--gold-light); }

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  background: none;
}
.btn-gold {
  background: var(--gold);
  color: var(--blue-deep);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-light); color: var(--blue-deep); }
.btn-ghost {
  border-color: rgba(243, 234, 211, 0.7);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.btn-outline {
  border-color: var(--blue-marian);
  color: var(--blue-marian);
}
.btn-outline:hover {
  background: var(--blue-marian);
  color: #fff;
}

/* Sections */
.section {
  padding: 3.4rem 0;
}
.section-ivory { background: transparent; }
.section-paper {
  background: var(--paper);
  border-block: 1px solid var(--line);
}
.section-blue {
  background: var(--blue-marian);
  color: var(--ivory);
}
.section-blue h2 { color: #fff; }
.section-blue p,
.section-blue li { color: var(--blue-pale); }

.section-head {
  text-align: center;
  margin-bottom: 2rem;
}
.section-head h2,
.prose h2,
.content-header h2 {
  font-family: var(--header-serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--blue-deep);
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}
.section-head p {
  margin: 0 auto;
  max-width: 40rem;
  color: var(--muted);
}

.prose {
  max-width: 42rem;
  margin-inline: auto;
}
.prose h2 { margin-top: 2.2rem; }
.prose p { margin: 0 0 1.1rem; }
.prose .intro {
  font-size: 1.15rem;
  color: var(--blue-marian);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
a.card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  color: inherit;
}
.card img { width: 100%; height: 180px; object-fit: cover; }
.card-body { padding: 1.15rem 1.2rem 1.3rem; flex: 1; display: flex; flex-direction: column; }
.card h3 {
  font-family: var(--header-serif);
  font-size: 1.45rem;
  margin: 0 0 0.4rem;
  color: var(--blue-deep);
  font-weight: 600;
}
.card p { margin: 0 0 0.8rem; color: var(--muted); flex: 1; }
.card .more {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}

/* Mass teaser */
.teaser-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}
.teaser-item {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 0.95rem 1.15rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.teaser-when {
  font-family: var(--header-serif);
  font-weight: 600;
  color: var(--blue-marian);
  line-height: 1.25;
}
.teaser-when small {
  display: block;
  font-family: var(--body-sans);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.15rem;
}
.teaser-item h3 {
  margin: 0 0 0.15rem;
  font-size: 1.08rem;
  font-family: var(--header-serif);
  font-weight: 600;
  color: var(--blue-deep);
}
.teaser-item p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Timeline */
.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 46rem;
  border-left: 2px solid var(--gold-pale);
}
.timeline li {
  position: relative;
  padding: 0 0 1.7rem 1.6rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-pale);
}
.timeline time {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.2rem;
}
.timeline h3 {
  margin: 0 0 0.25rem;
  font-family: var(--header-serif);
  font-size: 1.3rem;
  color: var(--blue-deep);
  font-weight: 600;
}
.timeline p { margin: 0; color: var(--muted); }

/* Calendar blocks */
.cal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.cal-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
}
.cal-card h3 {
  font-family: var(--header-serif);
  margin: 0 0 0.9rem;
  font-size: 1.5rem;
  color: var(--blue-deep);
  font-weight: 600;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--gold-pale);
}
.cal-card dl { margin: 0; }
.cal-card dt {
  font-weight: 700;
  color: var(--blue-marian);
  margin-top: 0.85rem;
}
.cal-card dt:first-child { margin-top: 0; }
.cal-card dd { margin: 0.15rem 0 0; color: var(--muted); }

/* News / events */
.stack { display: grid; gap: 1.2rem; }
.article-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem 1.4rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.35rem;
}
.article-card h2,
.article-card h3 {
  font-family: var(--header-serif);
  margin: 0;
  font-size: 1.5rem;
  color: var(--blue-deep);
  font-weight: 600;
}
.meta { font-size: 0.86rem; color: var(--muted); }
.article-card p { margin: 0.4rem 0 0; color: var(--ink); }

/* Placeholder badge */
.badge-exemple {
  display: inline-block;
  background: var(--gold-pale);
  color: #6a4e16;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  vertical-align: middle;
}
.notice-exemple {
  background: var(--gold-pale);
  border-left: 3px solid var(--gold);
  color: #5a4414;
  padding: 0.85rem 1.1rem;
  margin: 0 auto 1.8rem;
  max-width: 46rem;
  font-size: 0.95rem;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.gallery figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery img { width: 100%; height: 320px; object-fit: cover; }
.gallery figcaption {
  padding: 0.8rem 1rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.gallery figcaption a { color: var(--blue-mid); }
.placeholder-frame {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  background:
    repeating-linear-gradient(-45deg, var(--ivory), var(--ivory) 10px, var(--ivory-2) 10px, var(--ivory-2) 20px);
  color: var(--muted);
  border: 1px dashed var(--gold);
}

/* Forms */
form.reserve,
form.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.6rem 1.8rem;
  max-width: 40rem;
  margin: 0 auto;
}
.form-row {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 1rem;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
label, .label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--blue-deep);
}
.hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
textarea,
select {
  width: 100%;
  font: inherit;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 8rem; resize: vertical; }
input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  outline: 2px solid var(--gold-pale);
}
.checks {
  display: grid;
  gap: 0.45rem;
  margin: 0.3rem 0 1rem;
}
.checks label {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.form-actions { margin-top: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.form-note { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* Contact details */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  max-width: 48rem;
  margin: 0 auto;
}
.contact-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}
.contact-block h2 {
  font-family: var(--header-serif);
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
  color: var(--blue-deep);
  font-weight: 600;
}
.contact-block p, .contact-block address {
  margin: 0 0 0.5rem;
  font-style: normal;
}

.sources {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.sources h2 {
  font-family: var(--header-serif);
  font-size: 1.15rem !important;
  margin: 0 0 0.4rem;
}

/* Footer */
.site-footer {
  background: var(--blue-deep);
  color: var(--ivory-2);
  margin-top: auto;
  padding: 2.4rem 0 1.3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.6rem;
}
.site-footer h2 {
  font-family: var(--header-serif);
  color: #fff;
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-footer p, .site-footer address {
  margin: 0 0 0.4rem;
  font-style: normal;
  font-size: 0.95rem;
  color: #d5dbe4;
}
.site-footer a { color: var(--gold-light); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.2rem 0; }
.footer-bottom {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 188, 122, 0.25);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #9aa6b5;
}
.footer-cross {
  display: block;
  width: 10px;
  height: 17px;
  flex: 0 0 auto;
}

/* Utilities */
.center { text-align: center; }
.mt { margin-top: 1.5rem; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .cards,
  .cal-grid,
  .gallery,
  .contact-grid,
  .footer-grid,
  .form-row-2 { grid-template-columns: 1fr; }
  .teaser-item { grid-template-columns: 1fr; gap: 0.25rem; }
  .gallery img { height: 240px; }
}

.only-mobile { display: none; }

@media (max-width: 820px) {
  .only-mobile { display: block; }
  .brand-tag { letter-spacing: 0.16em; line-height: 1.55; }
  .brand-tag .dot { display: none; }

  .nav-toggle-label { display: flex; }
  .site-nav {
    display: none;
    border-top: 1px solid var(--line);
  }
  #nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.4rem 0 0.8rem;
    gap: 0;
  }
  .site-nav a {
    padding: 0.7rem 1.25rem;
    border-bottom: 0;
    border-left: 3px solid transparent;
    white-space: normal;
  }
  .site-nav a[aria-current="page"] {
    border-left-color: var(--gold);
    background: var(--gold-pale);
  }
  .home-hero { min-height: 86vh; }
}

@media (max-width: 600px) {
  .brand { padding-top: 1rem; }
  .section { padding: 2.4rem 0; }
  .page-hero { padding: 2.4rem 1rem; }
}
