:root {
  --background: #f7f2ec;
  --surface: #fffaf4;
  --surface-strong: #ffffff;
  --text: #2f2a2a;
  --muted: #6d625d;
  --red: #a9443f;
  --red-dark: #84342f;
  --gold: #d5a75f;
  --line: #e4d8ce;
  --shadow: 0 22px 60px rgba(47, 42, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.65;
}

a {
  color: inherit;
}

.hero {
  min-height: 78vh;
  background:
    linear-gradient(110deg, rgba(45, 35, 32, 0.86), rgba(132, 52, 47, 0.58)),
    url("assets/eglise-ennevelin.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 22px;
}

.nav {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  background: white;
  padding: 4px;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.nav-links a:hover {
  color: white;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-content {
  max-width: 1060px;
  margin: 120px auto 70px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold);
  margin: 0 0 14px;
}

.hero h1 {
  max-width: 900px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 6vw, 5rem);
  line-height: 1.02;
  margin: 0 0 24px;
}

.intro {
  max-width: 720px;
  font-size: 1.22rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  background: var(--gold);
  color: #281f1d;
  padding: 13px 21px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 26px 65px rgba(47, 42, 42, 0.2);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: none;
}

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 86px 24px;
}

.section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 3.2vw, 3rem);
  line-height: 1.14;
  margin: 0 0 22px;
}

.mission {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: center;
}

.section-text {
  max-width: 710px;
}

.highlight-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px;
  box-shadow: var(--shadow);
  text-align: center;
}

.highlight-card img {
  width: min(100%, 360px);
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 18px;
}

.actions {
  padding-top: 35px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card,
.event-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.card-number {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(169, 68, 63, 0.1);
  color: var(--red-dark);
  font-weight: 800;
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.photo-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 20px;
}

.photo-section img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--shadow);
  display: block;
}

.event-section {
  padding-top: 62px;
}

.event-card {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.date {
  display: inline-block;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(169, 68, 63, 0.11);
  color: var(--red-dark);
  font-weight: 800;
}

.contact {
  text-align: center;
  padding-top: 64px;
}

.contact > div {
  max-width: 760px;
  margin: 0 auto;
}

.mail {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--red-dark);
  font-weight: 800;
  word-break: break-word;
}

.mail span {
  padding: 0 0.1em;
}

.small-note {
  color: var(--muted);
  font-size: 0.95rem;
}

footer {
  border-top: 1px solid var(--line);
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 950px) {
  .mission,
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .highlight-card {
    order: -1;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: auto;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 12px 16px;
  }

  .hero-content {
    margin: 76px auto 54px;
  }

  .section {
    padding: 60px 20px;
  }

  .mission,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .photo-section {
    padding: 0 20px 10px;
  }

  .photo-section img {
    border-radius: 24px;
  }
}

/* Page de contact : styles ajoutés sans modifier les styles existants */
.contact-page-header {
  background:
    linear-gradient(110deg, rgba(45, 35, 32, 0.9), rgba(132, 52, 47, 0.65)),
    url("assets/eglise-ennevelin.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 22px;
}

.contact-page-title {
  max-width: 900px;
  margin: 70px auto 54px;
  text-align: center;
}

.contact-page-title h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.08;
  margin: 0 0 18px;
}

.contact-page-title p:last-child {
  max-width: 690px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.contact-form-section {
  max-width: 820px;
}

.contact-form-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px, 5vw, 46px);
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #cfc1b7;
  border-radius: 12px;
  padding: 12px 14px;
  background: white;
  color: var(--text);
  font: inherit;
}

.form-field textarea {
  min-height: 180px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 3px solid rgba(213, 167, 95, 0.35);
  border-color: var(--gold);
}

.form-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.form-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.form-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-alert {
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 24px;
  font-weight: 700;
}

.form-alert.success {
  background: #e8f5eb;
  border: 1px solid #9dc7a5;
  color: #245c30;
}

.form-alert.error {
  background: #fff0ee;
  border: 1px solid #d9aaa5;
  color: #7b2924;
}

.form-errors {
  margin: 8px 0 0;
  padding-left: 22px;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.back-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--red-dark);
  font-weight: 800;
}

@media (max-width: 720px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-page-title {
    margin: 48px auto 38px;
  }
}

/* Programme des Journées européennes du patrimoine */
.event-card {
  max-width: 900px;
  padding: clamp(28px, 5vw, 48px);
  text-align: left;
}

.event-card > .eyebrow,
.event-card > h2 {
  text-align: center;
}

.event-card .date {
  display: table;
  margin: 0 auto 28px;
  text-align: center;
}

.event-intro {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
}

.event-program {
  display: grid;
  gap: 38px;
}

.event-day {
  position: relative;
}

.event-day + .event-day {
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.event-day h3 {
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--red-dark);
}

.event-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  align-items: start;
  padding: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.event-item time {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 9px 10px;
  border-radius: 14px;
  background: var(--red-dark);
  color: white;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.event-details h4 {
  margin: 1px 0 6px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.event-details p {
  margin: 0;
  color: var(--muted);
}

.event-details em {
  color: var(--text);
}

@media (max-width: 600px) {
  .event-card {
    padding: 24px 18px;
  }

  .event-intro {
    margin-bottom: 32px;
  }

  .event-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .event-item time {
    display: inline-flex;
    width: fit-content;
    min-width: 86px;
    min-height: 0;
  }
}
